source: trunk/configure @ 934

Last change on this file since 934 was 786, checked in by pbelotti, 8 years ago

attempt at fixing exprMul extra cut. Introducing performance indicator for BT (used in Fixed Point LP).

File size: 785.6 KB
Line 
1#! /bin/sh
2# From configure.ac 0.0.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Couenne trunk.
5#
6# Report bugs to <couenne@list.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2011 Pietro Belotti
14# All Rights Reserved.
15# This file is part of the open source package Coin-OR which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Couenne'
432PACKAGE_TARNAME='couenne'
433PACKAGE_VERSION='trunk'
434PACKAGE_STRING='Couenne trunk'
435PACKAGE_BUGREPORT='couenne@list.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/HSL"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
481ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
482ac_subdirs_all="$ac_subdirs_all ThirdParty/SoPlex"
483ac_subdirs_all="$ac_subdirs_all CoinUtils"
484ac_subdirs_all="$ac_subdirs_all Osi"
485ac_subdirs_all="$ac_subdirs_all Clp"
486ac_subdirs_all="$ac_subdirs_all Cgl"
487ac_subdirs_all="$ac_subdirs_all Cbc"
488ac_subdirs_all="$ac_subdirs_all Ipopt"
489ac_subdirs_all="$ac_subdirs_all ThirdParty/SCIP"
490ac_subdirs_all="$ac_subdirs_all Bonmin"
491ac_subdirs_all="$ac_subdirs_all Couenne"
492ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
493ac_subst_files=''
494
495# Initialize some variables set by options.
496ac_init_help=
497ac_init_version=false
498# The variables have the same names as the options, with
499# dashes changed to underlines.
500cache_file=/dev/null
501exec_prefix=NONE
502no_create=
503no_recursion=
504prefix=NONE
505program_prefix=NONE
506program_suffix=NONE
507program_transform_name=s,x,x,
508silent=
509site=
510srcdir=
511verbose=
512x_includes=NONE
513x_libraries=NONE
514
515# Installation directory options.
516# These are left unexpanded so users can "make install exec_prefix=/foo"
517# and all the variables that are supposed to be based on exec_prefix
518# by default will actually change.
519# Use braces instead of parens because sh, perl, etc. also accept them.
520bindir='${exec_prefix}/bin'
521sbindir='${exec_prefix}/sbin'
522libexecdir='${exec_prefix}/libexec'
523datadir='${prefix}/share'
524sysconfdir='${prefix}/etc'
525sharedstatedir='${prefix}/com'
526localstatedir='${prefix}/var'
527libdir='${exec_prefix}/lib'
528includedir='${prefix}/include'
529oldincludedir='/usr/include'
530infodir='${prefix}/info'
531mandir='${prefix}/man'
532
533ac_prev=
534for ac_option
535do
536  # If the previous option needs an argument, assign it.
537  if test -n "$ac_prev"; then
538    eval "$ac_prev=\$ac_option"
539    ac_prev=
540    continue
541  fi
542
543  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
544
545  # Accept the important Cygnus configure options, so we can diagnose typos.
546
547  case $ac_option in
548
549  -bindir | --bindir | --bindi | --bind | --bin | --bi)
550    ac_prev=bindir ;;
551  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
552    bindir=$ac_optarg ;;
553
554  -build | --build | --buil | --bui | --bu)
555    ac_prev=build_alias ;;
556  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
557    build_alias=$ac_optarg ;;
558
559  -cache-file | --cache-file | --cache-fil | --cache-fi \
560  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
561    ac_prev=cache_file ;;
562  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
563  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
564    cache_file=$ac_optarg ;;
565
566  --config-cache | -C)
567    cache_file=config.cache ;;
568
569  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
570    ac_prev=datadir ;;
571  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
572  | --da=*)
573    datadir=$ac_optarg ;;
574
575  -disable-* | --disable-*)
576    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
577    # Reject names that are not valid shell variable names.
578    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
579      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
580   { (exit 1); exit 1; }; }
581    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
582    eval "enable_$ac_feature=no" ;;
583
584  -enable-* | --enable-*)
585    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
586    # Reject names that are not valid shell variable names.
587    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
589   { (exit 1); exit 1; }; }
590    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
591    case $ac_option in
592      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593      *) ac_optarg=yes ;;
594    esac
595    eval "enable_$ac_feature='$ac_optarg'" ;;
596
597  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
598  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
599  | --exec | --exe | --ex)
600    ac_prev=exec_prefix ;;
601  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
602  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
603  | --exec=* | --exe=* | --ex=*)
604    exec_prefix=$ac_optarg ;;
605
606  -gas | --gas | --ga | --g)
607    # Obsolete; use --with-gas.
608    with_gas=yes ;;
609
610  -help | --help | --hel | --he | -h)
611    ac_init_help=long ;;
612  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
613    ac_init_help=recursive ;;
614  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
615    ac_init_help=short ;;
616
617  -host | --host | --hos | --ho)
618    ac_prev=host_alias ;;
619  -host=* | --host=* | --hos=* | --ho=*)
620    host_alias=$ac_optarg ;;
621
622  -includedir | --includedir | --includedi | --included | --include \
623  | --includ | --inclu | --incl | --inc)
624    ac_prev=includedir ;;
625  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
626  | --includ=* | --inclu=* | --incl=* | --inc=*)
627    includedir=$ac_optarg ;;
628
629  -infodir | --infodir | --infodi | --infod | --info | --inf)
630    ac_prev=infodir ;;
631  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
632    infodir=$ac_optarg ;;
633
634  -libdir | --libdir | --libdi | --libd)
635    ac_prev=libdir ;;
636  -libdir=* | --libdir=* | --libdi=* | --libd=*)
637    libdir=$ac_optarg ;;
638
639  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
640  | --libexe | --libex | --libe)
641    ac_prev=libexecdir ;;
642  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
643  | --libexe=* | --libex=* | --libe=*)
644    libexecdir=$ac_optarg ;;
645
646  -localstatedir | --localstatedir | --localstatedi | --localstated \
647  | --localstate | --localstat | --localsta | --localst \
648  | --locals | --local | --loca | --loc | --lo)
649    ac_prev=localstatedir ;;
650  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
651  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
652  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
653    localstatedir=$ac_optarg ;;
654
655  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
656    ac_prev=mandir ;;
657  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
658    mandir=$ac_optarg ;;
659
660  -nfp | --nfp | --nf)
661    # Obsolete; use --without-fp.
662    with_fp=no ;;
663
664  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
665  | --no-cr | --no-c | -n)
666    no_create=yes ;;
667
668  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
669  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
670    no_recursion=yes ;;
671
672  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
673  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
674  | --oldin | --oldi | --old | --ol | --o)
675    ac_prev=oldincludedir ;;
676  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
677  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
678  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
679    oldincludedir=$ac_optarg ;;
680
681  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
682    ac_prev=prefix ;;
683  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
684    prefix=$ac_optarg ;;
685
686  -program-prefix | --program-prefix | --program-prefi | --program-pref \
687  | --program-pre | --program-pr | --program-p)
688    ac_prev=program_prefix ;;
689  -program-prefix=* | --program-prefix=* | --program-prefi=* \
690  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
691    program_prefix=$ac_optarg ;;
692
693  -program-suffix | --program-suffix | --program-suffi | --program-suff \
694  | --program-suf | --program-su | --program-s)
695    ac_prev=program_suffix ;;
696  -program-suffix=* | --program-suffix=* | --program-suffi=* \
697  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698    program_suffix=$ac_optarg ;;
699
700  -program-transform-name | --program-transform-name \
701  | --program-transform-nam | --program-transform-na \
702  | --program-transform-n | --program-transform- \
703  | --program-transform | --program-transfor \
704  | --program-transfo | --program-transf \
705  | --program-trans | --program-tran \
706  | --progr-tra | --program-tr | --program-t)
707    ac_prev=program_transform_name ;;
708  -program-transform-name=* | --program-transform-name=* \
709  | --program-transform-nam=* | --program-transform-na=* \
710  | --program-transform-n=* | --program-transform-=* \
711  | --program-transform=* | --program-transfor=* \
712  | --program-transfo=* | --program-transf=* \
713  | --program-trans=* | --program-tran=* \
714  | --progr-tra=* | --program-tr=* | --program-t=*)
715    program_transform_name=$ac_optarg ;;
716
717  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
718  | -silent | --silent | --silen | --sile | --sil)
719    silent=yes ;;
720
721  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
722    ac_prev=sbindir ;;
723  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
724  | --sbi=* | --sb=*)
725    sbindir=$ac_optarg ;;
726
727  -sharedstatedir | --sharedstatedir | --sharedstatedi \
728  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
729  | --sharedst | --shareds | --shared | --share | --shar \
730  | --sha | --sh)
731    ac_prev=sharedstatedir ;;
732  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
733  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
734  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
735  | --sha=* | --sh=*)
736    sharedstatedir=$ac_optarg ;;
737
738  -site | --site | --sit)
739    ac_prev=site ;;
740  -site=* | --site=* | --sit=*)
741    site=$ac_optarg ;;
742
743  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
744    ac_prev=srcdir ;;
745  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
746    srcdir=$ac_optarg ;;
747
748  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
749  | --syscon | --sysco | --sysc | --sys | --sy)
750    ac_prev=sysconfdir ;;
751  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
752  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
753    sysconfdir=$ac_optarg ;;
754
755  -target | --target | --targe | --targ | --tar | --ta | --t)
756    ac_prev=target_alias ;;
757  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
758    target_alias=$ac_optarg ;;
759
760  -v | -verbose | --verbose | --verbos | --verbo | --verb)
761    verbose=yes ;;
762
763  -version | --version | --versio | --versi | --vers | -V)
764    ac_init_version=: ;;
765
766  -with-* | --with-*)
767    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
768    # Reject names that are not valid shell variable names.
769    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770      { echo "$as_me: error: invalid package name: $ac_package" >&2
771   { (exit 1); exit 1; }; }
772    ac_package=`echo $ac_package| sed 's/-/_/g'`
773    case $ac_option in
774      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
775      *) ac_optarg=yes ;;
776    esac
777    eval "with_$ac_package='$ac_optarg'" ;;
778
779  -without-* | --without-*)
780    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
781    # Reject names that are not valid shell variable names.
782    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
783      { echo "$as_me: error: invalid package name: $ac_package" >&2
784   { (exit 1); exit 1; }; }
785    ac_package=`echo $ac_package | sed 's/-/_/g'`
786    eval "with_$ac_package=no" ;;
787
788  --x)
789    # Obsolete; use --with-x.
790    with_x=yes ;;
791
792  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
793  | --x-incl | --x-inc | --x-in | --x-i)
794    ac_prev=x_includes ;;
795  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
796  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
797    x_includes=$ac_optarg ;;
798
799  -x-libraries | --x-libraries | --x-librarie | --x-librari \
800  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
801    ac_prev=x_libraries ;;
802  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
803  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
804    x_libraries=$ac_optarg ;;
805
806  -*) { echo "$as_me: error: unrecognized option: $ac_option
807Try \`$0 --help' for more information." >&2
808   { (exit 1); exit 1; }; }
809    ;;
810
811  *=*)
812    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
813    # Reject names that are not valid shell variable names.
814    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
815      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
816   { (exit 1); exit 1; }; }
817    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
818    eval "$ac_envvar='$ac_optarg'"
819    export $ac_envvar ;;
820
821  *)
822    # FIXME: should be removed in autoconf 3.0.
823    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
824    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
825      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
826    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
827    ;;
828
829  esac
830done
831
832if test -n "$ac_prev"; then
833  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
834  { echo "$as_me: error: missing argument to $ac_option" >&2
835   { (exit 1); exit 1; }; }
836fi
837
838# Be sure to have absolute paths.
839for ac_var in exec_prefix prefix
840do
841  eval ac_val=$`echo $ac_var`
842  case $ac_val in
843    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
844    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845   { (exit 1); exit 1; }; };;
846  esac
847done
848
849# Be sure to have absolute paths.
850for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
851              localstatedir libdir includedir oldincludedir infodir mandir
852do
853  eval ac_val=$`echo $ac_var`
854  case $ac_val in
855    [\\/$]* | ?:[\\/]* ) ;;
856    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
857   { (exit 1); exit 1; }; };;
858  esac
859done
860
861# There might be people who depend on the old broken behavior: `$host'
862# used to hold the argument of --host etc.
863# FIXME: To remove some day.
864build=$build_alias
865host=$host_alias
866target=$target_alias
867
868# FIXME: To remove some day.
869if test "x$host_alias" != x; then
870  if test "x$build_alias" = x; then
871    cross_compiling=maybe
872    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
873    If a cross compiler is detected then cross compile mode will be used." >&2
874  elif test "x$build_alias" != "x$host_alias"; then
875    cross_compiling=yes
876  fi
877fi
878
879ac_tool_prefix=
880test -n "$host_alias" && ac_tool_prefix=$host_alias-
881
882test "$silent" = yes && exec 6>/dev/null
883
884
885# Find the source files, if location was not specified.
886if test -z "$srcdir"; then
887  ac_srcdir_defaulted=yes
888  # Try the directory containing this script, then its parent.
889  ac_confdir=`(dirname "$0") 2>/dev/null ||
890$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
891         X"$0" : 'X\(//\)[^/]' \| \
892         X"$0" : 'X\(//\)$' \| \
893         X"$0" : 'X\(/\)' \| \
894         .     : '\(.\)' 2>/dev/null ||
895echo X"$0" |
896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
897          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
898          /^X\(\/\/\)$/{ s//\1/; q; }
899          /^X\(\/\).*/{ s//\1/; q; }
900          s/.*/./; q'`
901  srcdir=$ac_confdir
902  if test ! -r $srcdir/$ac_unique_file; then
903    srcdir=..
904  fi
905else
906  ac_srcdir_defaulted=no
907fi
908if test ! -r $srcdir/$ac_unique_file; then
909  if test "$ac_srcdir_defaulted" = yes; then
910    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
911   { (exit 1); exit 1; }; }
912  else
913    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
914   { (exit 1); exit 1; }; }
915  fi
916fi
917(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
918  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
919   { (exit 1); exit 1; }; }
920srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
921ac_env_build_alias_set=${build_alias+set}
922ac_env_build_alias_value=$build_alias
923ac_cv_env_build_alias_set=${build_alias+set}
924ac_cv_env_build_alias_value=$build_alias
925ac_env_host_alias_set=${host_alias+set}
926ac_env_host_alias_value=$host_alias
927ac_cv_env_host_alias_set=${host_alias+set}
928ac_cv_env_host_alias_value=$host_alias
929ac_env_target_alias_set=${target_alias+set}
930ac_env_target_alias_value=$target_alias
931ac_cv_env_target_alias_set=${target_alias+set}
932ac_cv_env_target_alias_value=$target_alias
933ac_env_CDEFS_set=${CDEFS+set}
934ac_env_CDEFS_value=$CDEFS
935ac_cv_env_CDEFS_set=${CDEFS+set}
936ac_cv_env_CDEFS_value=$CDEFS
937ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
938ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
939ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
940ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
941ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
942ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
943ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
944ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
945ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
946ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
947ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
948ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
949ac_env_CC_set=${CC+set}
950ac_env_CC_value=$CC
951ac_cv_env_CC_set=${CC+set}
952ac_cv_env_CC_value=$CC
953ac_env_CFLAGS_set=${CFLAGS+set}
954ac_env_CFLAGS_value=$CFLAGS
955ac_cv_env_CFLAGS_set=${CFLAGS+set}
956ac_cv_env_CFLAGS_value=$CFLAGS
957ac_env_LDFLAGS_set=${LDFLAGS+set}
958ac_env_LDFLAGS_value=$LDFLAGS
959ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
960ac_cv_env_LDFLAGS_value=$LDFLAGS
961ac_env_CPPFLAGS_set=${CPPFLAGS+set}
962ac_env_CPPFLAGS_value=$CPPFLAGS
963ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
964ac_cv_env_CPPFLAGS_value=$CPPFLAGS
965ac_env_MPICC_set=${MPICC+set}
966ac_env_MPICC_value=$MPICC
967ac_cv_env_MPICC_set=${MPICC+set}
968ac_cv_env_MPICC_value=$MPICC
969ac_env_CXXDEFS_set=${CXXDEFS+set}
970ac_env_CXXDEFS_value=$CXXDEFS
971ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
972ac_cv_env_CXXDEFS_value=$CXXDEFS
973ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
974ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
975ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
976ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
977ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
978ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
979ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
980ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
981ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
982ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
983ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
984ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
985ac_env_CXX_set=${CXX+set}
986ac_env_CXX_value=$CXX
987ac_cv_env_CXX_set=${CXX+set}
988ac_cv_env_CXX_value=$CXX
989ac_env_CXXFLAGS_set=${CXXFLAGS+set}
990ac_env_CXXFLAGS_value=$CXXFLAGS
991ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
992ac_cv_env_CXXFLAGS_value=$CXXFLAGS
993ac_env_MPICXX_set=${MPICXX+set}
994ac_env_MPICXX_value=$MPICXX
995ac_cv_env_MPICXX_set=${MPICXX+set}
996ac_cv_env_MPICXX_value=$MPICXX
997ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
998ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
999ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1000ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1001ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1002ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1003ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1004ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1005ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1006ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1007ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1008ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1009ac_env_F77_set=${F77+set}
1010ac_env_F77_value=$F77
1011ac_cv_env_F77_set=${F77+set}
1012ac_cv_env_F77_value=$F77
1013ac_env_FFLAGS_set=${FFLAGS+set}
1014ac_env_FFLAGS_value=$FFLAGS
1015ac_cv_env_FFLAGS_set=${FFLAGS+set}
1016ac_cv_env_FFLAGS_value=$FFLAGS
1017ac_env_MPIF77_set=${MPIF77+set}
1018ac_env_MPIF77_value=$MPIF77
1019ac_cv_env_MPIF77_set=${MPIF77+set}
1020ac_cv_env_MPIF77_value=$MPIF77
1021ac_env_CPP_set=${CPP+set}
1022ac_env_CPP_value=$CPP
1023ac_cv_env_CPP_set=${CPP+set}
1024ac_cv_env_CPP_value=$CPP
1025ac_env_CXXCPP_set=${CXXCPP+set}
1026ac_env_CXXCPP_value=$CXXCPP
1027ac_cv_env_CXXCPP_set=${CXXCPP+set}
1028ac_cv_env_CXXCPP_value=$CXXCPP
1029ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1030ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1031ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1032ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1033
1034#
1035# Report the --help message.
1036#
1037if test "$ac_init_help" = "long"; then
1038  # Omit some internal or obsolete options to make the list less imposing.
1039  # This message is too long to be a string in the A/UX 3.1 sh.
1040  cat <<_ACEOF
1041\`configure' configures Couenne trunk to adapt to many kinds of systems.
1042
1043Usage: $0 [OPTION]... [VAR=VALUE]...
1044
1045To assign environment variables (e.g., CC, CFLAGS...), specify them as
1046VAR=VALUE.  See below for descriptions of some of the useful variables.
1047
1048Defaults for the options are specified in brackets.
1049
1050Configuration:
1051  -h, --help              display this help and exit
1052      --help=short        display options specific to this package
1053      --help=recursive    display the short help of all the included packages
1054  -V, --version           display version information and exit
1055  -q, --quiet, --silent   do not print \`checking...' messages
1056      --cache-file=FILE   cache test results in FILE [disabled]
1057  -C, --config-cache      alias for \`--cache-file=config.cache'
1058  -n, --no-create         do not create output files
1059      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1060
1061_ACEOF
1062
1063  cat <<_ACEOF
1064Installation directories:
1065  --prefix=PREFIX         install architecture-independent files in PREFIX
1066                          [$ac_default_prefix]
1067  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1068                          [PREFIX]
1069
1070By default, \`make install' will install all the files in
1071\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1072an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1073for instance \`--prefix=\$HOME'.
1074
1075For better control, use the options below.
1076
1077Fine tuning of the installation directories:
1078  --bindir=DIR           user executables [EPREFIX/bin]
1079  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1080  --libexecdir=DIR       program executables [EPREFIX/libexec]
1081  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1082  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1083  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1084  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1085  --libdir=DIR           object code libraries [EPREFIX/lib]
1086  --includedir=DIR       C header files [PREFIX/include]
1087  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1088  --infodir=DIR          info documentation [PREFIX/info]
1089  --mandir=DIR           man documentation [PREFIX/man]
1090_ACEOF
1091
1092  cat <<\_ACEOF
1093
1094Program names:
1095  --program-prefix=PREFIX            prepend PREFIX to installed program names
1096  --program-suffix=SUFFIX            append SUFFIX to installed program names
1097  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1098
1099System types:
1100  --build=BUILD     configure for building on BUILD [guessed]
1101  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1102_ACEOF
1103fi
1104
1105if test -n "$ac_init_help"; then
1106  case $ac_init_help in
1107     short | recursive ) echo "Configuration of Couenne trunk:";;
1108   esac
1109  cat <<\_ACEOF
1110
1111Optional Features:
1112  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1113  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1114  --enable-debug          compile all projects with debug options tests
1115                          (implies --disable-shared)
1116  --enable-doscompile     Under Cygwin, compile so that executables run under
1117                          DOS. Set to mingw to use gcc/g++/ld with
1118                          -mno-cygwin. Set to msvc to use cl/link (or
1119                          icl/link). Default when mentioned: mingw. Default
1120                          when not mentioned: disabled.
1121  --enable-static[=PKGS]
1122                          build static libraries [default=no]
1123  --disable-dependency-tracking  speeds up one-time build
1124  --enable-dependency-tracking   do not reject slow dependency extractors
1125  --enable-maintainer-mode  enable make rules and dependencies not useful
1126                          (and sometimes confusing) to the casual installer
1127  --enable-shared[=PKGS]
1128                          build shared libraries [default=yes]
1129  --enable-fast-install[=PKGS]
1130                          optimize for fast installation [default=yes]
1131  --disable-libtool-lock  avoid locking (might break parallel builds)
1132
1133Optional Packages:
1134  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1135  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1136  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1137  --with-pic              try to use only PIC/non-PIC objects [default=use
1138                          both]
1139  --with-tags[=TAGS]
1140                          include additional configurations [automatic]
1141
1142  --with-asl-lib linker flags for using project ASL
1143  --with-asl-incdir directory with header files for using project ASL
1144  --with-asl-datadir directory with data files for using project ASL
1145  --with-blas-lib linker flags for using project Blas
1146  --with-blas-incdir directory with header files for using project Blas
1147  --with-blas-datadir directory with data files for using project Blas
1148  --with-blas             specify BLAS library (or BUILD to enforce use of
1149                          ThirdParty/Blas)
1150  --with-lapack-lib linker flags for using project Lapack
1151  --with-lapack-incdir directory with header files for using project Lapack
1152  --with-lapack-datadir directory with data files for using project Lapack
1153  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1154                          ThirdParty/Lapack)
1155  --with-hsl-lib linker flags for using project HSL
1156  --with-hsl-incdir directory with header files for using project HSL
1157  --with-hsl-datadir directory with data files for using project HSL
1158  --with-metis-lib linker flags for using project Metis
1159  --with-metis-incdir directory with header files for using project Metis
1160  --with-metis-datadir directory with data files for using project Metis
1161  --with-mumps-lib linker flags for using project Mumps
1162  --with-mumps-incdir directory with header files for using project Mumps
1163  --with-mumps-datadir directory with data files for using project Mumps
1164  --with-soplex-lib linker flags for using project SoPlex
1165  --with-soplex-incdir directory with header files for using project SoPlex
1166  --with-soplex-datadir directory with data files for using project SoPlex
1167  --with-coinutils-lib linker flags for using project CoinUtils
1168  --with-coinutils-incdir directory with header files for using project
1169                          CoinUtils
1170  --with-coinutils-datadir
1171                          directory with data files for using project
1172                          CoinUtils
1173  --with-osi-lib linker flags for using project Osi
1174  --with-osi-incdir directory with header files for using project Osi
1175  --with-osi-datadir directory with data files for using project Osi
1176  --with-clp-lib linker flags for using project Clp
1177  --with-clp-incdir directory with header files for using project Clp
1178  --with-clp-datadir directory with data files for using project Clp
1179  --with-cgl-lib linker flags for using project Cgl
1180  --with-cgl-incdir directory with header files for using project Cgl
1181  --with-cgl-datadir directory with data files for using project Cgl
1182  --with-cbc-lib linker flags for using project Cbc
1183  --with-cbc-incdir directory with header files for using project Cbc
1184  --with-cbc-datadir directory with data files for using project Cbc
1185  --with-ipopt-lib linker flags for using project Ipopt
1186  --with-ipopt-incdir directory with header files for using project Ipopt
1187  --with-ipopt-datadir directory with data files for using project Ipopt
1188  --with-scip-lib linker flags for using project SCIP
1189  --with-scip-incdir directory with header files for using project SCIP
1190  --with-scip-datadir directory with data files for using project SCIP
1191  --with-bonmin-lib linker flags for using project Bonmin
1192  --with-bonmin-incdir directory with header files for using project Bonmin
1193  --with-bonmin-datadir directory with data files for using project Bonmin
1194  --with-couenne-lib linker flags for using project Couenne
1195  --with-couenne-incdir directory with header files for using project Couenne
1196  --with-couenne-datadir directory with data files for using project Couenne
1197
1198Some influential environment variables:
1199  CDEFS       Additional -D flags to be used when compiling C code.
1200  ADD_CFLAGS  Additional C compiler options
1201  DBG_CFLAGS  Debug C compiler options
1202  OPT_CFLAGS  Optimize C compiler options
1203  CC          C compiler command
1204  CFLAGS      C compiler flags
1205  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1206              nonstandard directory <lib dir>
1207  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1208              headers in a nonstandard directory <include dir>
1209  MPICC       C MPI Compiler
1210  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1211  ADD_CXXFLAGS
1212              Additional C++ compiler options
1213  DBG_CXXFLAGS
1214              Debug C++ compiler options
1215  OPT_CXXFLAGS
1216              Optimize C++ compiler options
1217  CXX         C++ compiler command
1218  CXXFLAGS    C++ compiler flags
1219  MPICXX      C++ MPI Compiler
1220  ADD_FFLAGS  Additional Fortran compiler options
1221  DBG_FFLAGS  Debug Fortran compiler options
1222  OPT_FFLAGS  Optimize Fortran compiler options
1223  F77         Fortran 77 compiler command
1224  FFLAGS      Fortran 77 compiler flags
1225  MPIF77      Fortran MPI Compiler
1226  CPP         C preprocessor
1227  CXXCPP      C++ preprocessor
1228  COIN_SKIP_PROJECTS
1229              Set to the subdirectories of projects that should be skipped in
1230              the configuration
1231
1232Use these variables to override the choices made by `configure' or to help
1233it to find libraries and programs with nonstandard names/locations.
1234
1235Report bugs to <couenne@list.coin-or.org>.
1236_ACEOF
1237fi
1238
1239if test "$ac_init_help" = "recursive"; then
1240  # If there are subdirs, report their specific --help.
1241  ac_popdir=`pwd`
1242  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1243    test -d $ac_dir || continue
1244    ac_builddir=.
1245
1246if test "$ac_dir" != .; then
1247  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1248  # A "../" for each directory in $ac_dir_suffix.
1249  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1250else
1251  ac_dir_suffix= ac_top_builddir=
1252fi
1253
1254case $srcdir in
1255  .)  # No --srcdir option.  We are building in place.
1256    ac_srcdir=.
1257    if test -z "$ac_top_builddir"; then
1258       ac_top_srcdir=.
1259    else
1260       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1261    fi ;;
1262  [\\/]* | ?:[\\/]* )  # Absolute path.
1263    ac_srcdir=$srcdir$ac_dir_suffix;
1264    ac_top_srcdir=$srcdir ;;
1265  *) # Relative path.
1266    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1267    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1268esac
1269
1270# Do not use `cd foo && pwd` to compute absolute paths, because
1271# the directories may not exist.
1272case `pwd` in
1273.) ac_abs_builddir="$ac_dir";;
1274*)
1275  case "$ac_dir" in
1276  .) ac_abs_builddir=`pwd`;;
1277  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1278  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1279  esac;;
1280esac
1281case $ac_abs_builddir in
1282.) ac_abs_top_builddir=${ac_top_builddir}.;;
1283*)
1284  case ${ac_top_builddir}. in
1285  .) ac_abs_top_builddir=$ac_abs_builddir;;
1286  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1287  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1288  esac;;
1289esac
1290case $ac_abs_builddir in
1291.) ac_abs_srcdir=$ac_srcdir;;
1292*)
1293  case $ac_srcdir in
1294  .) ac_abs_srcdir=$ac_abs_builddir;;
1295  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1296  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1297  esac;;
1298esac
1299case $ac_abs_builddir in
1300.) ac_abs_top_srcdir=$ac_top_srcdir;;
1301*)
1302  case $ac_top_srcdir in
1303  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1304  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1305  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1306  esac;;
1307esac
1308
1309    cd $ac_dir
1310    # Check for guested configure; otherwise get Cygnus style configure.
1311    if test -f $ac_srcdir/configure.gnu; then
1312      echo
1313      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1314    elif test -f $ac_srcdir/configure; then
1315      echo
1316      $SHELL $ac_srcdir/configure  --help=recursive
1317    elif test -f $ac_srcdir/configure.ac ||
1318           test -f $ac_srcdir/configure.in; then
1319      echo
1320      $ac_configure --help
1321    else
1322      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1323    fi
1324    cd $ac_popdir
1325  done
1326fi
1327
1328test -n "$ac_init_help" && exit 0
1329if $ac_init_version; then
1330  cat <<\_ACEOF
1331Couenne configure trunk
1332generated by GNU Autoconf 2.59
1333
1334Copyright (C) 2003 Free Software Foundation, Inc.
1335This configure script is free software; the Free Software Foundation
1336gives unlimited permission to copy, distribute and modify it.
1337
1338
1339Copyright 2011 Pietro Belotti
1340All Rights Reserved.
1341This file is part of the open source package Coin-OR which is distributed
1342under the Eclipse Public License.
1343_ACEOF
1344  exit 0
1345fi
1346exec 5>config.log
1347cat >&5 <<_ACEOF
1348This file contains any messages produced by compilers while
1349running configure, to aid debugging if configure makes a mistake.
1350
1351It was created by Couenne $as_me trunk, which was
1352generated by GNU Autoconf 2.59.  Invocation command line was
1353
1354  $ $0 $@
1355
1356_ACEOF
1357{
1358cat <<_ASUNAME
1359## --------- ##
1360## Platform. ##
1361## --------- ##
1362
1363hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1364uname -m = `(uname -m) 2>/dev/null || echo unknown`
1365uname -r = `(uname -r) 2>/dev/null || echo unknown`
1366uname -s = `(uname -s) 2>/dev/null || echo unknown`
1367uname -v = `(uname -v) 2>/dev/null || echo unknown`
1368
1369/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1370/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1371
1372/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1373/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1374/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1375hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1376/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1377/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1378/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1379
1380_ASUNAME
1381
1382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383for as_dir in $PATH
1384do
1385  IFS=$as_save_IFS
1386  test -z "$as_dir" && as_dir=.
1387  echo "PATH: $as_dir"
1388done
1389
1390} >&5
1391
1392cat >&5 <<_ACEOF
1393
1394
1395## ----------- ##
1396## Core tests. ##
1397## ----------- ##
1398
1399_ACEOF
1400
1401
1402# Keep a trace of the command line.
1403# Strip out --no-create and --no-recursion so they do not pile up.
1404# Strip out --silent because we don't want to record it for future runs.
1405# Also quote any args containing shell meta-characters.
1406# Make two passes to allow for proper duplicate-argument suppression.
1407ac_configure_args=
1408ac_configure_args0=
1409ac_configure_args1=
1410ac_sep=
1411ac_must_keep_next=false
1412for ac_pass in 1 2
1413do
1414  for ac_arg
1415  do
1416    case $ac_arg in
1417    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1418    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1419    | -silent | --silent | --silen | --sile | --sil)
1420      continue ;;
1421    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1422      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1423    esac
1424    case $ac_pass in
1425    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1426    2)
1427      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1428      if test $ac_must_keep_next = true; then
1429        ac_must_keep_next=false # Got value, back to normal.
1430      else
1431        case $ac_arg in
1432          *=* | --config-cache | -C | -disable-* | --disable-* \
1433          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1434          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1435          | -with-* | --with-* | -without-* | --without-* | --x)
1436            case "$ac_configure_args0 " in
1437              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1438            esac
1439            ;;
1440          -* ) ac_must_keep_next=true ;;
1441        esac
1442      fi
1443      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1444      # Get rid of the leading space.
1445      ac_sep=" "
1446      ;;
1447    esac
1448  done
1449done
1450$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1451$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1452
1453# When interrupted or exit'd, cleanup temporary files, and complete
1454# config.log.  We remove comments because anyway the quotes in there
1455# would cause problems or look ugly.
1456# WARNING: Be sure not to use single quotes in there, as some shells,
1457# such as our DU 5.0 friend, will then `close' the trap.
1458trap 'exit_status=$?
1459  # Save into config.log some information that might help in debugging.
1460  {
1461    echo
1462
1463    cat <<\_ASBOX
1464## ---------------- ##
1465## Cache variables. ##
1466## ---------------- ##
1467_ASBOX
1468    echo
1469    # The following way of writing the cache mishandles newlines in values,
1470{
1471  (set) 2>&1 |
1472    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1473    *ac_space=\ *)
1474      sed -n \
1475        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1476          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1477      ;;
1478    *)
1479      sed -n \
1480        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1481      ;;
1482    esac;
1483}
1484    echo
1485
1486    cat <<\_ASBOX
1487## ----------------- ##
1488## Output variables. ##
1489## ----------------- ##
1490_ASBOX
1491    echo
1492    for ac_var in $ac_subst_vars
1493    do
1494      eval ac_val=$`echo $ac_var`
1495      echo "$ac_var='"'"'$ac_val'"'"'"
1496    done | sort
1497    echo
1498
1499    if test -n "$ac_subst_files"; then
1500      cat <<\_ASBOX
1501## ------------- ##
1502## Output files. ##
1503## ------------- ##
1504_ASBOX
1505      echo
1506      for ac_var in $ac_subst_files
1507      do
1508        eval ac_val=$`echo $ac_var`
1509        echo "$ac_var='"'"'$ac_val'"'"'"
1510      done | sort
1511      echo
1512    fi
1513
1514    if test -s confdefs.h; then
1515      cat <<\_ASBOX
1516## ----------- ##
1517## confdefs.h. ##
1518## ----------- ##
1519_ASBOX
1520      echo
1521      sed "/^$/d" confdefs.h | sort
1522      echo
1523    fi
1524    test "$ac_signal" != 0 &&
1525      echo "$as_me: caught signal $ac_signal"
1526    echo "$as_me: exit $exit_status"
1527  } >&5
1528  rm -f core *.core &&
1529  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1530    exit $exit_status
1531     ' 0
1532for ac_signal in 1 2 13 15; do
1533  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1534done
1535ac_signal=0
1536
1537# confdefs.h avoids OS command line length limits that DEFS can exceed.
1538rm -rf conftest* confdefs.h
1539# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1540echo >confdefs.h
1541
1542# Predefined preprocessor variables.
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_NAME "$PACKAGE_NAME"
1546_ACEOF
1547
1548
1549cat >>confdefs.h <<_ACEOF
1550#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1551_ACEOF
1552
1553
1554cat >>confdefs.h <<_ACEOF
1555#define PACKAGE_VERSION "$PACKAGE_VERSION"
1556_ACEOF
1557
1558
1559cat >>confdefs.h <<_ACEOF
1560#define PACKAGE_STRING "$PACKAGE_STRING"
1561_ACEOF
1562
1563
1564cat >>confdefs.h <<_ACEOF
1565#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1566_ACEOF
1567
1568
1569# Let the site file select an alternate cache file if it wants to.
1570# Prefer explicitly selected file to automatically selected ones.
1571if test -z "$CONFIG_SITE"; then
1572  if test "x$prefix" != xNONE; then
1573    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1574  else
1575    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1576  fi
1577fi
1578for ac_site_file in $CONFIG_SITE; do
1579  if test -r "$ac_site_file"; then
1580    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1581echo "$as_me: loading site script $ac_site_file" >&6;}
1582    sed 's/^/| /' "$ac_site_file" >&5
1583    . "$ac_site_file"
1584  fi
1585done
1586
1587if test -r "$cache_file"; then
1588  # Some versions of bash will fail to source /dev/null (special
1589  # files actually), so we avoid doing that.
1590  if test -f "$cache_file"; then
1591    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1592echo "$as_me: loading cache $cache_file" >&6;}
1593    case $cache_file in
1594      [\\/]* | ?:[\\/]* ) . $cache_file;;
1595      *)                      . ./$cache_file;;
1596    esac
1597  fi
1598else
1599  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1600echo "$as_me: creating cache $cache_file" >&6;}
1601  >$cache_file
1602fi
1603
1604# Check that the precious variables saved in the cache have kept the same
1605# value.
1606ac_cache_corrupted=false
1607for ac_var in `(set) 2>&1 |
1608               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1609  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1610  eval ac_new_set=\$ac_env_${ac_var}_set
1611  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1612  eval ac_new_val="\$ac_env_${ac_var}_value"
1613  case $ac_old_set,$ac_new_set in
1614    set,)
1615      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1616echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1617      ac_cache_corrupted=: ;;
1618    ,set)
1619      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1620echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1621      ac_cache_corrupted=: ;;
1622    ,);;
1623    *)
1624      if test "x$ac_old_val" != "x$ac_new_val"; then
1625        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1626echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1627        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1628echo "$as_me:   former value:  $ac_old_val" >&2;}
1629        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1630echo "$as_me:   current value: $ac_new_val" >&2;}
1631        ac_cache_corrupted=:
1632      fi;;
1633  esac
1634  # Pass precious variables to config.status.
1635  if test "$ac_new_set" = set; then
1636    case $ac_new_val in
1637    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1638      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1639    *) ac_arg=$ac_var=$ac_new_val ;;
1640    esac
1641    case " $ac_configure_args " in
1642      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1643      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1644    esac
1645  fi
1646done
1647if $ac_cache_corrupted; then
1648  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1649echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1650  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1651echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1652   { (exit 1); exit 1; }; }
1653fi
1654
1655ac_ext=c
1656ac_cpp='$CPP $CPPFLAGS'
1657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1659ac_compiler_gnu=$ac_cv_c_compiler_gnu
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692# List one file in the package so that the configure script can test
1693# whether the package is actually there
1694
1695
1696# Where should everything be installed by default?  Here, we want it
1697# to be installed directly in 'bin', 'lib', 'include' subdirectories
1698# of the directory where configure is run.  The default would be
1699# /usr/local.
1700
1701
1702#############################################################################
1703#              Create the libtool script for the subdirectories             #
1704#############################################################################
1705
1706ac_aux_dir=
1707for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1708  if test -f $ac_dir/install-sh; then
1709    ac_aux_dir=$ac_dir
1710    ac_install_sh="$ac_aux_dir/install-sh -c"
1711    break
1712  elif test -f $ac_dir/install.sh; then
1713    ac_aux_dir=$ac_dir
1714    ac_install_sh="$ac_aux_dir/install.sh -c"
1715    break
1716  elif test -f $ac_dir/shtool; then
1717    ac_aux_dir=$ac_dir
1718    ac_install_sh="$ac_aux_dir/shtool install -c"
1719    break
1720  fi
1721done
1722if test -z "$ac_aux_dir"; then
1723  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1724echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1725   { (exit 1); exit 1; }; }
1726fi
1727ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1728ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1729ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1730
1731# Make sure we can run config.sub.
1732$ac_config_sub sun4 >/dev/null 2>&1 ||
1733  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1734echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1735   { (exit 1); exit 1; }; }
1736
1737echo "$as_me:$LINENO: checking build system type" >&5
1738echo $ECHO_N "checking build system type... $ECHO_C" >&6
1739if test "${ac_cv_build+set}" = set; then
1740  echo $ECHO_N "(cached) $ECHO_C" >&6
1741else
1742  ac_cv_build_alias=$build_alias
1743test -z "$ac_cv_build_alias" &&
1744  ac_cv_build_alias=`$ac_config_guess`
1745test -z "$ac_cv_build_alias" &&
1746  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1747echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1748   { (exit 1); exit 1; }; }
1749ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1750  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1751echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1752   { (exit 1); exit 1; }; }
1753
1754fi
1755echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1756echo "${ECHO_T}$ac_cv_build" >&6
1757build=$ac_cv_build
1758build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1761
1762
1763
1764# Check if user wants to produce debugging code
1765
1766echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1767echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1768
1769# Check whether --enable-debug or --disable-debug was given.
1770if test "${enable_debug+set}" = set; then
1771  enableval="$enable_debug"
1772  case "${enableval}" in
1773   yes) coin_debug_compile=true
1774        if test "${enable_shared+set}" = set; then :; else
1775          enable_shared=no
1776        fi
1777        ;;
1778   no)  coin_debug_compile=false
1779        ;;
1780   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1781echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1782   { (exit 1); exit 1; }; }
1783        ;;
1784esac
1785else
1786  coin_debug_compile=false
1787fi;
1788
1789 # m4_ifvaln([],
1790
1791if test $coin_debug_compile = true; then
1792  echo "$as_me:$LINENO: result: yes" >&5
1793echo "${ECHO_T}yes" >&6
1794else
1795  echo "$as_me:$LINENO: result: no" >&5
1796echo "${ECHO_T}no" >&6
1797fi
1798
1799 # m4_ifvaln([],
1800
1801
1802
1803# Get the name of the C compiler and appropriate compiler options
1804case $build in
1805  *-mingw*)
1806    if test "${LD+set}" = set; then :; else
1807      LD=link
1808    fi
1809    ;;
1810 esac
1811 case $enable_doscompile in
1812   msvc)
1813     if test "x${LD+set}" = xset; then :; else
1814       LD=link
1815     fi
1816     ;;
1817 esac
1818
1819
1820 # Check whether --enable-doscompile or --disable-doscompile was given.
1821if test "${enable_doscompile+set}" = set; then
1822  enableval="$enable_doscompile"
1823  if test "$enable_doscompile" != no; then
1824     case $build in
1825       *-cygwin* | *-mingw*) ;;
1826       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1827echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1828   { (exit 1); exit 1; }; } ;;
1829     esac
1830   fi
1831else
1832  enable_doscompile=no
1833fi;
1834 case "$enable_doscompile" in
1835   mingw)
1836     case $build in
1837       *-mingw*) enable_doscompile=no ;;
1838     esac
1839     ;;
1840   msvc|no) ;;
1841   yes) enable_doscompile=mingw ;;
1842   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1843                    Try configure --help=recursive." >&5
1844echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1845                    Try configure --help=recursive." >&2;}
1846   { (exit 1); exit 1; }; }
1847      ;;
1848  esac
1849  if test "$enable_doscompile" != no ; then
1850    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1851echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1852  fi
1853
1854
1855
1856
1857ac_ext=c
1858ac_cpp='$CPP $CPPFLAGS'
1859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862
1863
1864# For consistency, we set the C compiler to the same value of the C++
1865# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1866if test x"$CXX" != x; then
1867  case "$CXX" in
1868    clang* ) ;;
1869    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1870      if test x"$CC" = x; then
1871        CC="$CXX"
1872        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1873echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1874      fi
1875      ;;
1876  esac
1877fi
1878
1879
1880
1881
1882
1883
1884coin_has_cc=yes
1885
1886save_cflags="$CFLAGS"
1887
1888# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1889# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1890# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1891# compiler. In this case, put cc after gcc.
1892
1893case $build in
1894  *-cygwin* | *-mingw*)
1895             if test "$enable_doscompile" = msvc ; then
1896               comps="icl cl"
1897             else
1898               comps="gcc cl"
1899             fi ;;
1900  *-*-solaris*)
1901             # Extract the first word of "cc", so it can be a program name with args.
1902set dummy cc; ac_word=$2
1903echo "$as_me:$LINENO: checking for $ac_word" >&5
1904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1906  echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908  if test -n "$sol_cc_compiler"; then
1909  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1910else
1911  ac_prog_rejected=no
1912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913for as_dir in $PATH
1914do
1915  IFS=$as_save_IFS
1916  test -z "$as_dir" && as_dir=.
1917  for ac_exec_ext in '' $ac_executable_extensions; do
1918  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1920       ac_prog_rejected=yes
1921       continue
1922     fi
1923    ac_cv_prog_sol_cc_compiler="cc"
1924    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925    break 2
1926  fi
1927done
1928done
1929
1930if test $ac_prog_rejected = yes; then
1931  # We found a bogon in the path, so make sure we never use it.
1932  set dummy $ac_cv_prog_sol_cc_compiler
1933  shift
1934  if test $# != 0; then
1935    # We chose a different compiler from the bogus one.
1936    # However, it has the same basename, so the bogon will be chosen
1937    # first if we set sol_cc_compiler to just the basename; use the full file name.
1938    shift
1939    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1940  fi
1941fi
1942fi
1943fi
1944sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1945if test -n "$sol_cc_compiler"; then
1946  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1947echo "${ECHO_T}$sol_cc_compiler" >&6
1948else
1949  echo "$as_me:$LINENO: result: no" >&5
1950echo "${ECHO_T}no" >&6
1951fi
1952
1953             if test "$sol_cc_compiler" = "cc" ; then
1954               comps="cc xlc gcc pgcc icc"
1955             else
1956               comps="xlc gcc pgcc icc cc"
1957             fi
1958             ;;
1959  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1960  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1961  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1962esac
1963
1964# We delete the cached value, since the test might not have been
1965# performed with our choice of compilers earlier
1966$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1967# AC_MSG_NOTICE([C compiler candidates: $comps])
1968ac_ext=c
1969ac_cpp='$CPP $CPPFLAGS'
1970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973if test -n "$ac_tool_prefix"; then
1974  for ac_prog in $comps
1975  do
1976    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1977set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1978echo "$as_me:$LINENO: checking for $ac_word" >&5
1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980if test "${ac_cv_prog_CC+set}" = set; then
1981  echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983  if test -n "$CC"; then
1984  ac_cv_prog_CC="$CC" # Let the user override the test.
1985else
1986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989  IFS=$as_save_IFS
1990  test -z "$as_dir" && as_dir=.
1991  for ac_exec_ext in '' $ac_executable_extensions; do
1992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995    break 2
1996  fi
1997done
1998done
1999
2000fi
2001fi
2002CC=$ac_cv_prog_CC
2003if test -n "$CC"; then
2004  echo "$as_me:$LINENO: result: $CC" >&5
2005echo "${ECHO_T}$CC" >&6
2006else
2007  echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6
2009fi
2010
2011    test -n "$CC" && break
2012  done
2013fi
2014if test -z "$CC"; then
2015  ac_ct_CC=$CC
2016  for ac_prog in $comps
2017do
2018  # Extract the first word of "$ac_prog", so it can be a program name with args.
2019set dummy $ac_prog; ac_word=$2
2020echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023  echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025  if test -n "$ac_ct_CC"; then
2026  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2027else
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031  IFS=$as_save_IFS
2032  test -z "$as_dir" && as_dir=.
2033  for ac_exec_ext in '' $ac_executable_extensions; do
2034  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035    ac_cv_prog_ac_ct_CC="$ac_prog"
2036    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037    break 2
2038  fi
2039done
2040done
2041
2042fi
2043fi
2044ac_ct_CC=$ac_cv_prog_ac_ct_CC
2045if test -n "$ac_ct_CC"; then
2046  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2047echo "${ECHO_T}$ac_ct_CC" >&6
2048else
2049  echo "$as_me:$LINENO: result: no" >&5
2050echo "${ECHO_T}no" >&6
2051fi
2052
2053  test -n "$ac_ct_CC" && break
2054done
2055
2056  CC=$ac_ct_CC
2057fi
2058
2059
2060test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2061See \`config.log' for more details." >&5
2062echo "$as_me: error: no acceptable C compiler found in \$PATH
2063See \`config.log' for more details." >&2;}
2064   { (exit 1); exit 1; }; }
2065
2066# Provide some information about the compiler.
2067echo "$as_me:$LINENO:" \
2068     "checking for C compiler version" >&5
2069ac_compiler=`set X $ac_compile; echo $2`
2070{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2071  (eval $ac_compiler --version </dev/null >&5) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }
2075{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2076  (eval $ac_compiler -v </dev/null >&5) 2>&5
2077  ac_status=$?
2078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079  (exit $ac_status); }
2080{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2081  (eval $ac_compiler -V </dev/null >&5) 2>&5
2082  ac_status=$?
2083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084  (exit $ac_status); }
2085
2086cat >conftest.$ac_ext <<_ACEOF
2087/* confdefs.h.  */
2088_ACEOF
2089cat confdefs.h >>conftest.$ac_ext
2090cat >>conftest.$ac_ext <<_ACEOF
2091/* end confdefs.h.  */
2092
2093int
2094main ()
2095{
2096
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101ac_clean_files_save=$ac_clean_files
2102ac_clean_files="$ac_clean_files a.out a.exe b.out"
2103# Try to create an executable without -o first, disregard a.out.
2104# It will help us diagnose broken compilers, and finding out an intuition
2105# of exeext.
2106echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2107echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2108ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2109if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2110  (eval $ac_link_default) 2>&5
2111  ac_status=$?
2112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113  (exit $ac_status); }; then
2114  # Find the output, starting from the most likely.  This scheme is
2115# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2116# resort.
2117
2118# Be careful to initialize this variable, since it used to be cached.
2119# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2120ac_cv_exeext=
2121# b.out is created by i960 compilers.
2122for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2123do
2124  test -f "$ac_file" || continue
2125  case $ac_file in
2126    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2127        ;;
2128    conftest.$ac_ext )
2129        # This is the source file.
2130        ;;
2131    [ab].out )
2132        # We found the default executable, but exeext='' is most
2133        # certainly right.
2134        break;;
2135    *.* )
2136        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2137        # FIXME: I believe we export ac_cv_exeext for Libtool,
2138        # but it would be cool to find out if it's true.  Does anybody
2139        # maintain Libtool? --akim.
2140        export ac_cv_exeext
2141        break;;
2142    * )
2143        break;;
2144  esac
2145done
2146else
2147  echo "$as_me: failed program was:" >&5
2148sed 's/^/| /' conftest.$ac_ext >&5
2149
2150{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2151See \`config.log' for more details." >&5
2152echo "$as_me: error: C compiler cannot create executables
2153See \`config.log' for more details." >&2;}
2154   { (exit 77); exit 77; }; }
2155fi
2156
2157ac_exeext=$ac_cv_exeext
2158echo "$as_me:$LINENO: result: $ac_file" >&5
2159echo "${ECHO_T}$ac_file" >&6
2160
2161# Check the compiler produces executables we can run.  If not, either
2162# the compiler is broken, or we cross compile.
2163echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2164echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2165# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2166# If not cross compiling, check that we can run a simple program.
2167if test "$cross_compiling" != yes; then
2168  if { ac_try='./$ac_file'
2169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170  (eval $ac_try) 2>&5
2171  ac_status=$?
2172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173  (exit $ac_status); }; }; then
2174    cross_compiling=no
2175  else
2176    if test "$cross_compiling" = maybe; then
2177        cross_compiling=yes
2178    else
2179        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2180If you meant to cross compile, use \`--host'.
2181See \`config.log' for more details." >&5
2182echo "$as_me: error: cannot run C compiled programs.
2183If you meant to cross compile, use \`--host'.
2184See \`config.log' for more details." >&2;}
2185   { (exit 1); exit 1; }; }
2186    fi
2187  fi
2188fi
2189echo "$as_me:$LINENO: result: yes" >&5
2190echo "${ECHO_T}yes" >&6
2191
2192rm -f a.out a.exe conftest$ac_cv_exeext b.out
2193ac_clean_files=$ac_clean_files_save
2194# Check the compiler produces executables we can run.  If not, either
2195# the compiler is broken, or we cross compile.
2196echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2197echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2198echo "$as_me:$LINENO: result: $cross_compiling" >&5
2199echo "${ECHO_T}$cross_compiling" >&6
2200
2201echo "$as_me:$LINENO: checking for suffix of executables" >&5
2202echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2204  (eval $ac_link) 2>&5
2205  ac_status=$?
2206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207  (exit $ac_status); }; then
2208  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2209# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2210# work properly (i.e., refer to `conftest.exe'), while it won't with
2211# `rm'.
2212for ac_file in conftest.exe conftest conftest.*; do
2213  test -f "$ac_file" || continue
2214  case $ac_file in
2215    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2216    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217          export ac_cv_exeext
2218          break;;
2219    * ) break;;
2220  esac
2221done
2222else
2223  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2226See \`config.log' for more details." >&2;}
2227   { (exit 1); exit 1; }; }
2228fi
2229
2230rm -f conftest$ac_cv_exeext
2231echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2232echo "${ECHO_T}$ac_cv_exeext" >&6
2233
2234rm -f conftest.$ac_ext
2235EXEEXT=$ac_cv_exeext
2236ac_exeext=$EXEEXT
2237echo "$as_me:$LINENO: checking for suffix of object files" >&5
2238echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2239if test "${ac_cv_objext+set}" = set; then
2240  echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242  cat >conftest.$ac_ext <<_ACEOF
2243/* confdefs.h.  */
2244_ACEOF
2245cat confdefs.h >>conftest.$ac_ext
2246cat >>conftest.$ac_ext <<_ACEOF
2247/* end confdefs.h.  */
2248
2249int
2250main ()
2251{
2252
2253  ;
2254  return 0;
2255}
2256_ACEOF
2257rm -f conftest.o conftest.obj
2258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259  (eval $ac_compile) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; then
2263  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2264  case $ac_file in
2265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2266    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2267       break;;
2268  esac
2269done
2270else
2271  echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2275See \`config.log' for more details." >&5
2276echo "$as_me: error: cannot compute suffix of object files: cannot compile
2277See \`config.log' for more details." >&2;}
2278   { (exit 1); exit 1; }; }
2279fi
2280
2281rm -f conftest.$ac_cv_objext conftest.$ac_ext
2282fi
2283echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2284echo "${ECHO_T}$ac_cv_objext" >&6
2285OBJEXT=$ac_cv_objext
2286ac_objext=$OBJEXT
2287echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2288echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2289if test "${ac_cv_c_compiler_gnu+set}" = set; then
2290  echo $ECHO_N "(cached) $ECHO_C" >&6
2291else
2292  cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h.  */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
2297/* end confdefs.h.  */
2298
2299int
2300main ()
2301{
2302#ifndef __GNUC__
2303       choke me
2304#endif
2305
2306  ;
2307  return 0;
2308}
2309_ACEOF
2310rm -f conftest.$ac_objext
2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312  (eval $ac_compile) 2>conftest.er1
2313  ac_status=$?
2314  grep -v '^ *+' conftest.er1 >conftest.err
2315  rm -f conftest.er1
2316  cat conftest.err >&5
2317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318  (exit $ac_status); } &&
2319         { ac_try='test -z "$ac_c_werror_flag"
2320                         || test ! -s conftest.err'
2321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322  (eval $ac_try) 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }; } &&
2326         { ac_try='test -s conftest.$ac_objext'
2327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328  (eval $ac_try) 2>&5
2329  ac_status=$?
2330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331  (exit $ac_status); }; }; then
2332  ac_compiler_gnu=yes
2333else
2334  echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337ac_compiler_gnu=no
2338fi
2339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340ac_cv_c_compiler_gnu=$ac_compiler_gnu
2341
2342fi
2343echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2344echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2345GCC=`test $ac_compiler_gnu = yes && echo yes`
2346ac_test_CFLAGS=${CFLAGS+set}
2347ac_save_CFLAGS=$CFLAGS
2348CFLAGS="-g"
2349echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2350echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2351if test "${ac_cv_prog_cc_g+set}" = set; then
2352  echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354  cat >conftest.$ac_ext <<_ACEOF
2355/* confdefs.h.  */
2356_ACEOF
2357cat confdefs.h >>conftest.$ac_ext
2358cat >>conftest.$ac_ext <<_ACEOF
2359/* end confdefs.h.  */
2360
2361int
2362main ()
2363{
2364
2365  ;
2366  return 0;
2367}
2368_ACEOF
2369rm -f conftest.$ac_objext
2370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371  (eval $ac_compile) 2>conftest.er1
2372  ac_status=$?
2373  grep -v '^ *+' conftest.er1 >conftest.err
2374  rm -f conftest.er1
2375  cat conftest.err >&5
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); } &&
2378         { ac_try='test -z "$ac_c_werror_flag"
2379                         || test ! -s conftest.err'
2380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381  (eval $ac_try) 2>&5
2382  ac_status=$?
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); }; } &&
2385         { ac_try='test -s conftest.$ac_objext'
2386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387  (eval $ac_try) 2>&5
2388  ac_status=$?
2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  (exit $ac_status); }; }; then
2391  ac_cv_prog_cc_g=yes
2392else
2393  echo "$as_me: failed program was:" >&5
2394sed 's/^/| /' conftest.$ac_ext >&5
2395
2396ac_cv_prog_cc_g=no
2397fi
2398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399fi
2400echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2401echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2402if test "$ac_test_CFLAGS" = set; then
2403  CFLAGS=$ac_save_CFLAGS
2404elif test $ac_cv_prog_cc_g = yes; then
2405  if test "$GCC" = yes; then
2406    CFLAGS="-g -O2"
2407  else
2408    CFLAGS="-g"
2409  fi
2410else
2411  if test "$GCC" = yes; then
2412    CFLAGS="-O2"
2413  else
2414    CFLAGS=
2415  fi
2416fi
2417echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2418echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2419if test "${ac_cv_prog_cc_stdc+set}" = set; then
2420  echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422  ac_cv_prog_cc_stdc=no
2423ac_save_CC=$CC
2424cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h.  */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
2429/* end confdefs.h.  */
2430#include <stdarg.h>
2431#include <stdio.h>
2432#include <sys/types.h>
2433#include <sys/stat.h>
2434/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2435struct buf { int x; };
2436FILE * (*rcsopen) (struct buf *, struct stat *, int);
2437static char *e (p, i)
2438     char **p;
2439     int i;
2440{
2441  return p[i];
2442}
2443static char *f (char * (*g) (char **, int), char **p, ...)
2444{
2445  char *s;
2446  va_list v;
2447  va_start (v,p);
2448  s = g (p, va_arg (v,int));
2449  va_end (v);
2450  return s;
2451}
2452
2453/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2454   function prototypes and stuff, but not '\xHH' hex character constants.
2455   These don't provoke an error unfortunately, instead are silently treated
2456   as 'x'.  The following induces an error, until -std1 is added to get
2457   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2458   array size at least.  It's necessary to write '\x00'==0 to get something
2459   that's true only with -std1.  */
2460int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2461
2462int test (int i, double x);
2463struct s1 {int (*f) (int a);};
2464struct s2 {int (*f) (double a);};
2465int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2466int argc;
2467char **argv;
2468int
2469main ()
2470{
2471return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2472  ;
2473  return 0;
2474}
2475_ACEOF
2476# Don't try gcc -ansi; that turns off useful extensions and
2477# breaks some systems' header files.
2478# AIX                   -qlanglvl=ansi
2479# Ultrix and OSF/1      -std1
2480# HP-UX 10.20 and later -Ae
2481# HP-UX older versions  -Aa -D_HPUX_SOURCE
2482# SVR4                  -Xc -D__EXTENSIONS__
2483for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2484do
2485  CC="$ac_save_CC $ac_arg"
2486  rm -f conftest.$ac_objext
2487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488  (eval $ac_compile) 2>conftest.er1
2489  ac_status=$?
2490  grep -v '^ *+' conftest.er1 >conftest.err
2491  rm -f conftest.er1
2492  cat conftest.err >&5
2493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494  (exit $ac_status); } &&
2495         { ac_try='test -z "$ac_c_werror_flag"
2496                         || test ! -s conftest.err'
2497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498  (eval $ac_try) 2>&5
2499  ac_status=$?
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); }; } &&
2502         { ac_try='test -s conftest.$ac_objext'
2503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504  (eval $ac_try) 2>&5
2505  ac_status=$?
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); }; }; then
2508  ac_cv_prog_cc_stdc=$ac_arg
2509break
2510else
2511  echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
2513
2514fi
2515rm -f conftest.err conftest.$ac_objext
2516done
2517rm -f conftest.$ac_ext conftest.$ac_objext
2518CC=$ac_save_CC
2519
2520fi
2521
2522case "x$ac_cv_prog_cc_stdc" in
2523  x|xno)
2524    echo "$as_me:$LINENO: result: none needed" >&5
2525echo "${ECHO_T}none needed" >&6 ;;
2526  *)
2527    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2528echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2529    CC="$CC $ac_cv_prog_cc_stdc" ;;
2530esac
2531
2532# Some people use a C++ compiler to compile C.  Since we use `exit',
2533# in C++ we need to declare it.  In case someone uses the same compiler
2534# for both compiling C and C++ we need to have the C++ compiler decide
2535# the declaration of exit, since it's the most demanding environment.
2536cat >conftest.$ac_ext <<_ACEOF
2537#ifndef __cplusplus
2538  choke me
2539#endif
2540_ACEOF
2541rm -f conftest.$ac_objext
2542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543  (eval $ac_compile) 2>conftest.er1
2544  ac_status=$?
2545  grep -v '^ *+' conftest.er1 >conftest.err
2546  rm -f conftest.er1
2547  cat conftest.err >&5
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); } &&
2550         { ac_try='test -z "$ac_c_werror_flag"
2551                         || test ! -s conftest.err'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; } &&
2557         { ac_try='test -s conftest.$ac_objext'
2558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559  (eval $ac_try) 2>&5
2560  ac_status=$?
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); }; }; then
2563  for ac_declaration in \
2564   '' \
2565   'extern "C" void std::exit (int) throw (); using std::exit;' \
2566   'extern "C" void std::exit (int); using std::exit;' \
2567   'extern "C" void exit (int) throw ();' \
2568   'extern "C" void exit (int);' \
2569   'void exit (int);'
2570do
2571  cat >conftest.$ac_ext <<_ACEOF
2572/* confdefs.h.  */
2573_ACEOF
2574cat confdefs.h >>conftest.$ac_ext
2575cat >>conftest.$ac_ext <<_ACEOF
2576/* end confdefs.h.  */
2577$ac_declaration
2578#include <stdlib.h>
2579int
2580main ()
2581{
2582exit (42);
2583  ;
2584  return 0;
2585}
2586_ACEOF
2587rm -f conftest.$ac_objext
2588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589  (eval $ac_compile) 2>conftest.er1
2590  ac_status=$?
2591  grep -v '^ *+' conftest.er1 >conftest.err
2592  rm -f conftest.er1
2593  cat conftest.err >&5
2594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595  (exit $ac_status); } &&
2596         { ac_try='test -z "$ac_c_werror_flag"
2597                         || test ! -s conftest.err'
2598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599  (eval $ac_try) 2>&5
2600  ac_status=$?
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); }; } &&
2603         { ac_try='test -s conftest.$ac_objext'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; }; then
2609  :
2610else
2611  echo "$as_me: failed program was:" >&5
2612sed 's/^/| /' conftest.$ac_ext >&5
2613
2614continue
2615fi
2616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617  cat >conftest.$ac_ext <<_ACEOF
2618/* confdefs.h.  */
2619_ACEOF
2620cat confdefs.h >>conftest.$ac_ext
2621cat >>conftest.$ac_ext <<_ACEOF
2622/* end confdefs.h.  */
2623$ac_declaration
2624int
2625main ()
2626{
2627exit (42);
2628  ;
2629  return 0;
2630}
2631_ACEOF
2632rm -f conftest.$ac_objext
2633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634  (eval $ac_compile) 2>conftest.er1
2635  ac_status=$?
2636  grep -v '^ *+' conftest.er1 >conftest.err
2637  rm -f conftest.er1
2638  cat conftest.err >&5
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); } &&
2641         { ac_try='test -z "$ac_c_werror_flag"
2642                         || test ! -s conftest.err'
2643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644  (eval $ac_try) 2>&5
2645  ac_status=$?
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); }; } &&
2648         { ac_try='test -s conftest.$ac_objext'
2649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650  (eval $ac_try) 2>&5
2651  ac_status=$?
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); }; }; then
2654  break
2655else
2656  echo "$as_me: failed program was:" >&5
2657sed 's/^/| /' conftest.$ac_ext >&5
2658
2659fi
2660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2661done
2662rm -f conftest*
2663if test -n "$ac_declaration"; then
2664  echo '#ifdef __cplusplus' >>confdefs.h
2665  echo $ac_declaration      >>confdefs.h
2666  echo '#endif'             >>confdefs.h
2667fi
2668
2669else
2670  echo "$as_me: failed program was:" >&5
2671sed 's/^/| /' conftest.$ac_ext >&5
2672
2673fi
2674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675ac_ext=c
2676ac_cpp='$CPP $CPPFLAGS'
2677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680
2681if test -z "$CC" ; then
2682  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2683echo "$as_me: error: Failed to find a C compiler!" >&2;}
2684   { (exit 1); exit 1; }; }
2685fi
2686# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2687case "$CC" in
2688  clang* ) ;;
2689  cl* | */cl* | CL* | */CL* )
2690    if test "$ac_cv_prog_cc_g" = yes ; then
2691      ac_cv_prog_cc_g=no
2692      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2693echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2694    fi ;;
2695esac
2696CFLAGS="$save_cflags"
2697
2698# add automake conditional so we can recognize cl compiler in makefile
2699coin_cc_is_cl=false
2700case "$CC" in
2701  clang* ) ;;
2702  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2703    coin_cc_is_cl=true
2704    ;;
2705esac
2706
2707
2708if test $coin_cc_is_cl = true; then
2709  COIN_CC_IS_CL_TRUE=
2710  COIN_CC_IS_CL_FALSE='#'
2711else
2712  COIN_CC_IS_CL_TRUE='#'
2713  COIN_CC_IS_CL_FALSE=
2714fi
2715
2716
2717# Check if a project specific CFLAGS variable has been set
2718if test x$COIN_PRJCT != x; then
2719  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2720  if test x$coin_tmp = xset; then
2721    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2722  fi
2723fi
2724
2725if test x"$CFLAGS" = x; then
2726
2727  coin_add_cflags=
2728  coin_opt_cflags=
2729  coin_dbg_cflags=
2730  coin_warn_cflags=
2731
2732  if test "$GCC" = "yes"; then
2733    case "$CC" in
2734      icc* | */icc*)
2735        ;;
2736      *)
2737        coin_opt_cflags="-O3"
2738        coin_add_cflags="-pipe"
2739        coin_dbg_cflags="-g -O0"
2740        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2741        case $build in
2742          *-darwin*)
2743            ;;
2744          *)
2745            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2746            ;;
2747        esac
2748        case $enable_doscompile in
2749          mingw)
2750            CFLAGS="-mno-cygwin"
2751            cat >conftest.$ac_ext <<_ACEOF
2752/* confdefs.h.  */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h.  */
2757
2758int
2759main ()
2760{
2761int i=0; i++;
2762  ;
2763  return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext conftest$ac_exeext
2767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2768  (eval $ac_link) 2>conftest.er1
2769  ac_status=$?
2770  grep -v '^ *+' conftest.er1 >conftest.err
2771  rm -f conftest.er1
2772  cat conftest.err >&5
2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); } &&
2775         { ac_try='test -z "$ac_c_werror_flag"
2776                         || test ! -s conftest.err'
2777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778  (eval $ac_try) 2>&5
2779  ac_status=$?
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); }; } &&
2782         { ac_try='test -s conftest$ac_exeext'
2783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784  (eval $ac_try) 2>&5
2785  ac_status=$?
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); }; }; then
2788  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2789else
2790  echo "$as_me: failed program was:" >&5
2791sed 's/^/| /' conftest.$ac_ext >&5
2792
2793fi
2794rm -f conftest.err conftest.$ac_objext \
2795      conftest$ac_exeext conftest.$ac_ext
2796            CFLAGS=
2797          ;;
2798        esac
2799    esac
2800  fi
2801  if test -z "$coin_opt_cflags"; then
2802    case $build in
2803      *-cygwin* | *-mingw*)
2804        case "$CC" in
2805          clang* ) ;;
2806          cl* | */cl* | CL* | */CL*)
2807            coin_opt_cflags='-MT -O2'
2808            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2809            coin_dbg_cflags='-MTd'
2810            ;;
2811          icl* | */icl* | ICL* | */ICL*)
2812            coin_opt_cflags='-MT -Ox'
2813            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2814            coin_dbg_cflags='-MTd -debug'
2815            ;;
2816        esac
2817        ;;
2818      *-linux-*)
2819        case "$CC" in
2820          icc* | */icc*)
2821            coin_opt_cflags="-O3 -ip -mp1"
2822            coin_add_cflags=""
2823            coin_dbg_cflags="-g"
2824            # Check if -i_dynamic is necessary (for new glibc library)
2825            CFLAGS=
2826            cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h.  */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h.  */
2832
2833int
2834main ()
2835{
2836int i=0; i++;
2837  ;
2838  return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext conftest$ac_exeext
2842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2843  (eval $ac_link) 2>conftest.er1
2844  ac_status=$?
2845  grep -v '^ *+' conftest.er1 >conftest.err
2846  rm -f conftest.er1
2847  cat conftest.err >&5
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); } &&
2850         { ac_try='test -z "$ac_c_werror_flag"
2851                         || test ! -s conftest.err'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; } &&
2857         { ac_try='test -s conftest$ac_exeext'
2858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859  (eval $ac_try) 2>&5
2860  ac_status=$?
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); }; }; then
2863  :
2864else
2865  echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868coin_add_cflags="-i_dynamic $coin_add_cflags"
2869fi
2870rm -f conftest.err conftest.$ac_objext \
2871      conftest$ac_exeext conftest.$ac_ext
2872            ;;
2873          pgcc* | */pgcc*)
2874            coin_opt_cflags="-fast"
2875            coin_add_cflags="-Kieee -pc 64"
2876            coin_dbg_cflags="-g"
2877            ;;
2878        esac
2879        ;;
2880      *-ibm-*)
2881        case "$CC" in
2882          xlc* | */xlc* | mpxlc* | */mpxlc*)
2883            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2884            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2885            coin_dbg_cflags="-g"
2886          ;;
2887        esac
2888        ;;
2889      *-hp-*)
2890        coin_opt_cflags="-O"
2891        coin_add_cflags="-Ae"
2892        coin_dbg_cflags="-g"
2893        ;;
2894      *-*-solaris*)
2895        coin_opt_cflags="-xO4"
2896        coin_dbg_cflags="-g"
2897        ;;
2898      *-sgi-*)
2899        coin_opt_cflags="-O -OPT:Olimit=0"
2900        coin_dbg_cflags="-g"
2901        ;;
2902    esac
2903  fi
2904
2905  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2906    coin_dbg_cflags="-g"
2907  fi
2908
2909  if test -z "$coin_opt_cflags"; then
2910    # Try if -O option works if nothing else is set
2911    CFLAGS="-O"
2912    cat >conftest.$ac_ext <<_ACEOF
2913/* confdefs.h.  */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h.  */
2918
2919int
2920main ()
2921{
2922int i=0; i++;
2923  ;
2924  return 0;
2925}
2926_ACEOF
2927rm -f conftest.$ac_objext conftest$ac_exeext
2928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929  (eval $ac_link) 2>conftest.er1
2930  ac_status=$?
2931  grep -v '^ *+' conftest.er1 >conftest.err
2932  rm -f conftest.er1
2933  cat conftest.err >&5
2934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935  (exit $ac_status); } &&
2936         { ac_try='test -z "$ac_c_werror_flag"
2937                         || test ! -s conftest.err'
2938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939  (eval $ac_try) 2>&5
2940  ac_status=$?
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); }; } &&
2943         { ac_try='test -s conftest$ac_exeext'
2944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945  (eval $ac_try) 2>&5
2946  ac_status=$?
2947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948  (exit $ac_status); }; }; then
2949  coin_opt_cflags="-O"
2950else
2951  echo "$as_me: failed program was:" >&5
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
2954fi
2955rm -f conftest.err conftest.$ac_objext \
2956      conftest$ac_exeext conftest.$ac_ext
2957  fi
2958
2959  # if PM doesn't want the warning messages, take them out
2960  if test x"$coin_skip_warn_cflags" = xyes; then
2961    coin_warn_cflags=
2962  fi
2963
2964  if test x${DBG_CFLAGS+set} != xset; then
2965    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2966  fi
2967  if test x${OPT_CFLAGS+set} != xset; then
2968    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2969  fi
2970
2971  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2972  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2973
2974  if test "$coin_debug_compile" = "true"; then
2975    CFLAGS="$DBG_CFLAGS"
2976  else
2977    CFLAGS="$OPT_CFLAGS"
2978  fi
2979else
2980  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2981  if test x${DBG_CFLAGS+set} != xset; then
2982    DBG_CFLAGS="$CFLAGS"
2983  fi
2984  if test x${OPT_CFLAGS+set} != xset; then
2985    OPT_CFLAGS="$CFLAGS"
2986  fi
2987fi
2988
2989# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2990
2991case "$CFLAGS" in
2992  *-mno-cygwin*)
2993    if test x${CPPFLAGS+set} != xset ; then
2994      CPPFLAGS="-mno-cygwin"
2995    else
2996      case "$CPPFLAGS" in
2997        *-mno-cygwin*)
2998          ;;
2999        *)
3000          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3001          ;;
3002      esac
3003    fi ;;
3004esac
3005
3006# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3007if test x$COIN_PRJCT != x; then
3008  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3009fi
3010
3011# Try if CFLAGS works
3012save_CFLAGS="$CFLAGS"
3013cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023int i=0; i++;
3024  ;
3025  return 0;
3026}
3027_ACEOF
3028rm -f conftest.$ac_objext conftest$ac_exeext
3029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3030  (eval $ac_link) 2>conftest.er1
3031  ac_status=$?
3032  grep -v '^ *+' conftest.er1 >conftest.err
3033  rm -f conftest.er1
3034  cat conftest.err >&5
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); } &&
3037         { ac_try='test -z "$ac_c_werror_flag"
3038                         || test ! -s conftest.err'
3039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040  (eval $ac_try) 2>&5
3041  ac_status=$?
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); }; } &&
3044         { ac_try='test -s conftest$ac_exeext'
3045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046  (eval $ac_try) 2>&5
3047  ac_status=$?
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); }; }; then
3050  :
3051else
3052  echo "$as_me: failed program was:" >&5
3053sed 's/^/| /' conftest.$ac_ext >&5
3054
3055CFLAGS=
3056fi
3057rm -f conftest.err conftest.$ac_objext \
3058      conftest$ac_exeext conftest.$ac_ext
3059if test -z "$CFLAGS"; then
3060  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3061echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3062  CFLAGS='-O'
3063  cat >conftest.$ac_ext <<_ACEOF
3064/* confdefs.h.  */
3065_ACEOF
3066cat confdefs.h >>conftest.$ac_ext
3067cat >>conftest.$ac_ext <<_ACEOF
3068/* end confdefs.h.  */
3069
3070int
3071main ()
3072{
3073int i=0; i++;
3074  ;
3075  return 0;
3076}
3077_ACEOF
3078rm -f conftest.$ac_objext conftest$ac_exeext
3079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3080  (eval $ac_link) 2>conftest.er1
3081  ac_status=$?
3082  grep -v '^ *+' conftest.er1 >conftest.err
3083  rm -f conftest.er1
3084  cat conftest.err >&5
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); } &&
3087         { ac_try='test -z "$ac_c_werror_flag"
3088                         || test ! -s conftest.err'
3089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090  (eval $ac_try) 2>&5
3091  ac_status=$?
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); }; } &&
3094         { ac_try='test -s conftest$ac_exeext'
3095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096  (eval $ac_try) 2>&5
3097  ac_status=$?
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); }; }; then
3100  :
3101else
3102  echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105CFLAGS=
3106fi
3107rm -f conftest.err conftest.$ac_objext \
3108      conftest$ac_exeext conftest.$ac_ext
3109  if test -z "$CFLAGS"; then
3110    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3111echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3112  fi
3113fi
3114
3115{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3116echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3117
3118
3119if test x"$MPICC" = x; then :; else
3120  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3121echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3122  CC="$MPICC"
3123fi
3124
3125# Correct the LD variable if we are using the MS or Intel-windows compiler
3126case "$CC" in
3127  clang* ) ;;
3128  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3129    case $build in
3130  *-mingw*)
3131    if test "${LD+set}" = set; then :; else
3132      LD=link
3133    fi
3134    ;;
3135 esac
3136 case $enable_doscompile in
3137   msvc)
3138     if test "x${LD+set}" = xset; then :; else
3139       LD=link
3140     fi
3141     ;;
3142 esac
3143
3144    ;;
3145esac
3146
3147ac_ext=c
3148ac_cpp='$CPP $CPPFLAGS'
3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152
3153
3154
3155# Get the name of the C++ compiler and appropriate compiler options
3156
3157 #Let's try if that overcomes configuration problem with VC++ 6.0
3158
3159ac_ext=cc
3160ac_cpp='$CXXCPP $CPPFLAGS'
3161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3164
3165
3166
3167
3168
3169
3170
3171coin_has_cxx=yes
3172
3173save_cxxflags="$CXXFLAGS"
3174# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3175case $build in
3176  *-cygwin* | *-mingw*)
3177             if test "$enable_doscompile" = msvc ; then
3178               comps="icl cl"
3179             else
3180               comps="g++ cl"
3181             fi ;;
3182  *-*-solaris*)
3183             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3184  *-darwin*) comps="g++ c++ CC" ;;
3185  *-linux-gnu*)
3186             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3187          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3188esac
3189
3190# We delete the cached value, since the test might not have been
3191# performed with our choice of compilers earlier
3192$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3193# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3194ac_ext=cc
3195ac_cpp='$CXXCPP $CPPFLAGS'
3196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3199if test -n "$ac_tool_prefix"; then
3200  for ac_prog in $CCC $comps
3201  do
3202    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3203set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3204echo "$as_me:$LINENO: checking for $ac_word" >&5
3205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206if test "${ac_cv_prog_CXX+set}" = set; then
3207  echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209  if test -n "$CXX"; then
3210  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3211else
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH
3214do
3215  IFS=$as_save_IFS
3216  test -z "$as_dir" && as_dir=.
3217  for ac_exec_ext in '' $ac_executable_extensions; do
3218  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221    break 2
3222  fi
3223done
3224done
3225
3226fi
3227fi
3228CXX=$ac_cv_prog_CXX
3229if test -n "$CXX"; then
3230  echo "$as_me:$LINENO: result: $CXX" >&5
3231echo "${ECHO_T}$CXX" >&6
3232else
3233  echo "$as_me:$LINENO: result: no" >&5
3234echo "${ECHO_T}no" >&6
3235fi
3236
3237    test -n "$CXX" && break
3238  done
3239fi
3240if test -z "$CXX"; then
3241  ac_ct_CXX=$CXX
3242  for ac_prog in $CCC $comps
3243do
3244  # Extract the first word of "$ac_prog", so it can be a program name with args.
3245set dummy $ac_prog; ac_word=$2
3246echo "$as_me:$LINENO: checking for $ac_word" >&5
3247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3249  echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
3251  if test -n "$ac_ct_CXX"; then
3252  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3253else
3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255for as_dir in $PATH
3256do
3257  IFS=$as_save_IFS
3258  test -z "$as_dir" && as_dir=.
3259  for ac_exec_ext in '' $ac_executable_extensions; do
3260  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261    ac_cv_prog_ac_ct_CXX="$ac_prog"
3262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263    break 2
3264  fi
3265done
3266done
3267
3268fi
3269fi
3270ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3271if test -n "$ac_ct_CXX"; then
3272  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3273echo "${ECHO_T}$ac_ct_CXX" >&6
3274else
3275  echo "$as_me:$LINENO: result: no" >&5
3276echo "${ECHO_T}no" >&6
3277fi
3278
3279  test -n "$ac_ct_CXX" && break
3280done
3281test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3282
3283  CXX=$ac_ct_CXX
3284fi
3285
3286
3287# Provide some information about the compiler.
3288echo "$as_me:$LINENO:" \
3289     "checking for C++ compiler version" >&5
3290ac_compiler=`set X $ac_compile; echo $2`
3291{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3292  (eval $ac_compiler --version </dev/null >&5) 2>&5
3293  ac_status=$?
3294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295  (exit $ac_status); }
3296{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3297  (eval $ac_compiler -v </dev/null >&5) 2>&5
3298  ac_status=$?
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); }
3301{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3302  (eval $ac_compiler -V </dev/null >&5) 2>&5
3303  ac_status=$?
3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305  (exit $ac_status); }
3306
3307echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3308echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3309if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3310  echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312  cat >conftest.$ac_ext <<_ACEOF
3313/* confdefs.h.  */
3314_ACEOF
3315cat confdefs.h >>conftest.$ac_ext
3316cat >>conftest.$ac_ext <<_ACEOF
3317/* end confdefs.h.  */
3318
3319int
3320main ()
3321{
3322#ifndef __GNUC__
3323       choke me
3324#endif
3325
3326  ;
3327  return 0;
3328}
3329_ACEOF
3330rm -f conftest.$ac_objext
3331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332  (eval $ac_compile) 2>conftest.er1
3333  ac_status=$?
3334  grep -v '^ *+' conftest.er1 >conftest.err
3335  rm -f conftest.er1
3336  cat conftest.err >&5
3337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338  (exit $ac_status); } &&
3339         { ac_try='test -z "$ac_cxx_werror_flag"
3340                         || test ! -s conftest.err'
3341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342  (eval $ac_try) 2>&5
3343  ac_status=$?
3344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345  (exit $ac_status); }; } &&
3346         { ac_try='test -s conftest.$ac_objext'
3347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348  (eval $ac_try) 2>&5
3349  ac_status=$?
3350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351  (exit $ac_status); }; }; then
3352  ac_compiler_gnu=yes
3353else
3354  echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357ac_compiler_gnu=no
3358fi
3359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3360ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3361
3362fi
3363echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3364echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3365GXX=`test $ac_compiler_gnu = yes && echo yes`
3366ac_test_CXXFLAGS=${CXXFLAGS+set}
3367ac_save_CXXFLAGS=$CXXFLAGS
3368CXXFLAGS="-g"
3369echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3370echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3371if test "${ac_cv_prog_cxx_g+set}" = set; then
3372  echo $ECHO_N "(cached) $ECHO_C" >&6
3373else
3374  cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h.  */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h.  */
3380
3381int
3382main ()
3383{
3384
3385  ;
3386  return 0;
3387}
3388_ACEOF
3389rm -f conftest.$ac_objext
3390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391  (eval $ac_compile) 2>conftest.er1
3392  ac_status=$?
3393  grep -v '^ *+' conftest.er1 >conftest.err
3394  rm -f conftest.er1
3395  cat conftest.err >&5
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); } &&
3398         { ac_try='test -z "$ac_cxx_werror_flag"
3399                         || test ! -s conftest.err'
3400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401  (eval $ac_try) 2>&5
3402  ac_status=$?
3403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }; } &&
3405         { ac_try='test -s conftest.$ac_objext'
3406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407  (eval $ac_try) 2>&5
3408  ac_status=$?
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); }; }; then
3411  ac_cv_prog_cxx_g=yes
3412else
3413  echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416ac_cv_prog_cxx_g=no
3417fi
3418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3419fi
3420echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3421echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3422if test "$ac_test_CXXFLAGS" = set; then
3423  CXXFLAGS=$ac_save_CXXFLAGS
3424elif test $ac_cv_prog_cxx_g = yes; then
3425  if test "$GXX" = yes; then
3426    CXXFLAGS="-g -O2"
3427  else
3428    CXXFLAGS="-g"
3429  fi
3430else
3431  if test "$GXX" = yes; then
3432    CXXFLAGS="-O2"
3433  else
3434    CXXFLAGS=
3435  fi
3436fi
3437for ac_declaration in \
3438   '' \
3439   'extern "C" void std::exit (int) throw (); using std::exit;' \
3440   'extern "C" void std::exit (int); using std::exit;' \
3441   'extern "C" void exit (int) throw ();' \
3442   'extern "C" void exit (int);' \
3443   'void exit (int);'
3444do
3445  cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h.  */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
3450/* end confdefs.h.  */
3451$ac_declaration
3452#include <stdlib.h>
3453int
3454main ()
3455{
3456exit (42);
3457  ;
3458  return 0;
3459}
3460_ACEOF
3461rm -f conftest.$ac_objext
3462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463  (eval $ac_compile) 2>conftest.er1
3464  ac_status=$?
3465  grep -v '^ *+' conftest.er1 >conftest.err
3466  rm -f conftest.er1
3467  cat conftest.err >&5
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); } &&
3470         { ac_try='test -z "$ac_cxx_werror_flag"
3471                         || test ! -s conftest.err'
3472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473  (eval $ac_try) 2>&5
3474  ac_status=$?
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); }; } &&
3477         { ac_try='test -s conftest.$ac_objext'
3478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479  (eval $ac_try) 2>&5
3480  ac_status=$?
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); }; }; then
3483  :
3484else
3485  echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488continue
3489fi
3490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3491  cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h.  */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h.  */
3497$ac_declaration
3498int
3499main ()
3500{
3501exit (42);
3502  ;
3503  return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext
3507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508  (eval $ac_compile) 2>conftest.er1
3509  ac_status=$?
3510  grep -v '^ *+' conftest.er1 >conftest.err
3511  rm -f conftest.er1
3512  cat conftest.err >&5
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); } &&
3515         { ac_try='test -z "$ac_cxx_werror_flag"
3516                         || test ! -s conftest.err'
3517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518  (eval $ac_try) 2>&5
3519  ac_status=$?
3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521  (exit $ac_status); }; } &&
3522         { ac_try='test -s conftest.$ac_objext'
3523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524  (eval $ac_try) 2>&5
3525  ac_status=$?
3526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527  (exit $ac_status); }; }; then
3528  break
3529else
3530  echo "$as_me: failed program was:" >&5
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
3533fi
3534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3535done
3536rm -f conftest*
3537if test -n "$ac_declaration"; then
3538  echo '#ifdef __cplusplus' >>confdefs.h
3539  echo $ac_declaration      >>confdefs.h
3540  echo '#endif'             >>confdefs.h
3541fi
3542
3543ac_ext=cc
3544ac_cpp='$CXXCPP $CPPFLAGS'
3545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3548
3549
3550#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3551#thus, we test here whether $CXX is actually working
3552ac_ext=cc
3553ac_cpp='$CXXCPP $CPPFLAGS'
3554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3557
3558echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3559echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3560cat >conftest.$ac_ext <<_ACEOF
3561/* confdefs.h.  */
3562_ACEOF
3563cat confdefs.h >>conftest.$ac_ext
3564cat >>conftest.$ac_ext <<_ACEOF
3565/* end confdefs.h.  */
3566
3567int
3568main ()
3569{
3570int i=0;
3571  ;
3572  return 0;
3573}
3574_ACEOF
3575rm -f conftest.$ac_objext
3576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577  (eval $ac_compile) 2>conftest.er1
3578  ac_status=$?
3579  grep -v '^ *+' conftest.er1 >conftest.err
3580  rm -f conftest.er1
3581  cat conftest.err >&5
3582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583  (exit $ac_status); } &&
3584         { ac_try='test -z "$ac_cxx_werror_flag"
3585                         || test ! -s conftest.err'
3586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587  (eval $ac_try) 2>&5
3588  ac_status=$?
3589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590  (exit $ac_status); }; } &&
3591         { ac_try='test -s conftest.$ac_objext'
3592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593  (eval $ac_try) 2>&5
3594  ac_status=$?
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); }; }; then
3597  echo "$as_me:$LINENO: result: yes" >&5
3598echo "${ECHO_T}yes" >&6
3599else
3600  echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603echo "$as_me:$LINENO: result: no" >&5
3604echo "${ECHO_T}no" >&6
3605   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3606echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3607   { (exit 1); exit 1; }; }
3608
3609fi
3610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3611ac_ext=cc
3612ac_cpp='$CXXCPP $CPPFLAGS'
3613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3616
3617
3618coin_cxx_is_cl=false
3619# It seems that we need to cleanup something here for the Windows
3620case "$CXX" in
3621  clang* ) ;;
3622  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3623    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3624    mv confdefs.hh confdefs.h
3625    coin_cxx_is_cl=true
3626    ;;
3627esac
3628
3629# add automake conditional so we can recognize cl compiler in makefile
3630
3631
3632if test $coin_cxx_is_cl = true; then
3633  COIN_CXX_IS_CL_TRUE=
3634  COIN_CXX_IS_CL_FALSE='#'
3635else
3636  COIN_CXX_IS_CL_TRUE='#'
3637  COIN_CXX_IS_CL_FALSE=
3638fi
3639
3640
3641# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3642case "$CXX" in
3643  clang* ) ;;
3644  cl* | */cl* | CL* | */CL* )
3645    if test "$ac_cv_prog_cxx_g" = yes ; then
3646      ac_cv_prog_cxx_g=no
3647      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3648echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3649    fi ;;
3650esac
3651CXXFLAGS="$save_cxxflags"
3652
3653# Check if a project specific CXXFLAGS variable has been set
3654if test x$COIN_PRJCT != x; then
3655  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3656  if test x$coin_tmp = xset; then
3657    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3658  fi
3659fi
3660
3661if test x"$CXXFLAGS" = x; then
3662
3663# ToDo decide whether we want -DNDEBUG for optimization
3664  coin_add_cxxflags=
3665  coin_opt_cxxflags=
3666  coin_dbg_cxxflags=
3667  coin_warn_cxxflags=
3668
3669  if test "$GXX" = "yes"; then
3670    case "$CXX" in
3671      icpc* | */icpc*)
3672        ;;
3673      *)
3674# ToDo decide about unroll-loops
3675        coin_opt_cxxflags="-O3"
3676        coin_add_cxxflags="-pipe"
3677        coin_dbg_cxxflags="-g -O0"
3678        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3679        case $build in
3680          *-darwin*)
3681            ;;
3682          *)
3683            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3684            ;;
3685        esac
3686
3687        case $enable_doscompile in
3688          mingw)
3689            CXXFLAGS="-mno-cygwin"
3690            cat >conftest.$ac_ext <<_ACEOF
3691/* confdefs.h.  */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h.  */
3696
3697int
3698main ()
3699{
3700int i=0; i++;
3701  ;
3702  return 0;
3703}
3704_ACEOF
3705rm -f conftest.$ac_objext conftest$ac_exeext
3706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707  (eval $ac_link) 2>conftest.er1
3708  ac_status=$?
3709  grep -v '^ *+' conftest.er1 >conftest.err
3710  rm -f conftest.er1
3711  cat conftest.err >&5
3712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); } &&
3714         { ac_try='test -z "$ac_cxx_werror_flag"
3715                         || test ! -s conftest.err'
3716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717  (eval $ac_try) 2>&5
3718  ac_status=$?
3719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720  (exit $ac_status); }; } &&
3721         { ac_try='test -s conftest$ac_exeext'
3722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723  (eval $ac_try) 2>&5
3724  ac_status=$?
3725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); }; }; then
3727  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3728else
3729  echo "$as_me: failed program was:" >&5
3730sed 's/^/| /' conftest.$ac_ext >&5
3731
3732fi
3733rm -f conftest.err conftest.$ac_objext \
3734      conftest$ac_exeext conftest.$ac_ext
3735            CXXFLAGS=
3736          ;;
3737        esac
3738    esac
3739  fi
3740
3741# Note that we do not need to cover GCC in the following tests.
3742
3743  if test -z "$coin_opt_cxxflags"; then
3744    case $build in
3745      *-cygwin* | *-mingw*)
3746        case "$CXX" in
3747          clang* ) ;;
3748          cl* | */cl* | CL* | */CL*)
3749            # The MT and MTd options are mutually exclusive
3750            coin_opt_cxxflags='-MT -O2'
3751            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3752            coin_dbg_cxxflags='-MTd'
3753            ;;
3754          icl* | */icl* | ICL* | */ICL*)
3755            # The MT and MTd options are mutually exclusive
3756            coin_opt_cxxflags='-MT -Ox'
3757            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3758            coin_dbg_cxxflags='-MTd -debug'
3759            ;;
3760        esac
3761        ;;
3762      *-linux-*)
3763        case "$CXX" in
3764          icpc* | */icpc*)
3765            coin_opt_cxxflags="-O3 -ip -mp1"
3766            coin_add_cxxflags=""
3767            coin_dbg_cxxflags="-g"
3768            # Check if -i_dynamic is necessary (for new glibc library)
3769            CXXFLAGS=
3770            cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h.  */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
3775/* end confdefs.h.  */
3776
3777int
3778main ()
3779{
3780int i=0; i++;
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785rm -f conftest.$ac_objext conftest$ac_exeext
3786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3787  (eval $ac_link) 2>conftest.er1
3788  ac_status=$?
3789  grep -v '^ *+' conftest.er1 >conftest.err
3790  rm -f conftest.er1
3791  cat conftest.err >&5
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); } &&
3794         { ac_try='test -z "$ac_cxx_werror_flag"
3795                         || test ! -s conftest.err'
3796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797  (eval $ac_try) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); }; } &&
3801         { ac_try='test -s conftest$ac_exeext'
3802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803  (eval $ac_try) 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); }; }; then
3807  :
3808else
3809  echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3813fi
3814rm -f conftest.err conftest.$ac_objext \
3815      conftest$ac_exeext conftest.$ac_ext
3816            ;;
3817          pgCC* | */pgCC*)
3818            coin_opt_cxxflags="-fast"
3819            coin_add_cxxflags="-Kieee -pc 64"
3820            coin_dbg_cxxflags="-g"
3821            ;;
3822        esac
3823        ;;
3824      *-ibm-*)
3825        case "$CXX" in
3826          xlC* | */xlC* | mpxlC* | */mpxlC*)
3827            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3828            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3829            coin_dbg_cxxflags="-g"
3830            ;;
3831        esac
3832        ;;
3833      *-hp-*)
3834        case "$CXX" in
3835          aCC* | */aCC* )
3836            coin_opt_cxxflags="-O"
3837            coin_add_cxxflags="-AA"
3838            coin_dbg_cxxflags="-g"
3839            ;;
3840        esac
3841        ;;
3842      *-*-solaris*)
3843          coin_opt_cxxflags="-O4"
3844          coin_dbg_cxxflags="-g"
3845        ;;
3846    esac
3847  fi
3848
3849# Generic flag settings. If these don't work, add a case above.
3850
3851  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3852    coin_dbg_cxxflags="-g"
3853  fi
3854
3855  if test -z "$coin_opt_cxxflags"; then
3856    # Try if -O option works if nothing else is set
3857    CXXFLAGS=-O
3858    cat >conftest.$ac_ext <<_ACEOF
3859/* confdefs.h.  */
3860_ACEOF
3861cat confdefs.h >>conftest.$ac_ext
3862cat >>conftest.$ac_ext <<_ACEOF
3863/* end confdefs.h.  */
3864
3865int
3866main ()
3867{
3868int i=0; i++;
3869  ;
3870  return 0;
3871}
3872_ACEOF
3873rm -f conftest.$ac_objext conftest$ac_exeext
3874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3875  (eval $ac_link) 2>conftest.er1
3876  ac_status=$?
3877  grep -v '^ *+' conftest.er1 >conftest.err
3878  rm -f conftest.er1
3879  cat conftest.err >&5
3880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881  (exit $ac_status); } &&
3882         { ac_try='test -z "$ac_cxx_werror_flag"
3883                         || test ! -s conftest.err'
3884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885  (eval $ac_try) 2>&5
3886  ac_status=$?
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); }; } &&
3889         { ac_try='test -s conftest$ac_exeext'
3890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891  (eval $ac_try) 2>&5
3892  ac_status=$?
3893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894  (exit $ac_status); }; }; then
3895  coin_opt_cxxflags="-O"
3896else
3897  echo "$as_me: failed program was:" >&5
3898sed 's/^/| /' conftest.$ac_ext >&5
3899
3900fi
3901rm -f conftest.err conftest.$ac_objext \
3902      conftest$ac_exeext conftest.$ac_ext
3903  fi
3904
3905  # if PM doesn't want the warning messages, take them out
3906  if test x"$coin_skip_warn_cxxflags" = xyes; then
3907    coin_warn_cxxflags=
3908  fi
3909
3910# Do final setup of flags based on values determined above.
3911
3912  if test x${DBG_CXXFLAGS+set} != xset; then
3913    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3914  fi
3915  if test x${OPT_CXXFLAGS+set} != xset; then
3916    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3917  fi
3918
3919  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3920  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3921
3922  if test "$coin_debug_compile" = "true"; then
3923    CXXFLAGS="$DBG_CXXFLAGS"
3924  else
3925    CXXFLAGS="$OPT_CXXFLAGS"
3926  fi
3927
3928# Handle the case where CXXFLAGS was set externally.
3929else
3930  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3931  if test x${DBG_CXXFLAGS+set} != xset; then
3932    DBG_CXXFLAGS="$CXXFLAGS"
3933  fi
3934  if test x${OPT_CXXFLAGS+set} != xset; then
3935    OPT_CXXFLAGS="$CXXFLAGS"
3936  fi
3937fi
3938
3939# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3940
3941case "$CXXFLAGS" in
3942  *-mno-cygwin*)
3943    if test x${CPPFLAGS+set} != xset ; then
3944      CPPFLAGS="-mno-cygwin"
3945    else
3946      case "$CPPFLAGS" in
3947        *-mno-cygwin*)
3948          ;;
3949        *)
3950          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3951          ;;
3952      esac
3953    fi ;;
3954esac
3955
3956# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3957if test x$COIN_PRJCT != x; then
3958  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3959fi
3960
3961# Try if CXXFLAGS works
3962save_CXXFLAGS="$CXXFLAGS"
3963cat >conftest.$ac_ext <<_ACEOF
3964/* confdefs.h.  */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h.  */
3969
3970int
3971main ()
3972{
3973int i=0; i++;
3974  ;
3975  return 0;
3976}
3977_ACEOF
3978rm -f conftest.$ac_objext conftest$ac_exeext
3979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3980  (eval $ac_link) 2>conftest.er1
3981  ac_status=$?
3982  grep -v '^ *+' conftest.er1 >conftest.err
3983  rm -f conftest.er1
3984  cat conftest.err >&5
3985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986  (exit $ac_status); } &&
3987         { ac_try='test -z "$ac_cxx_werror_flag"
3988                         || test ! -s conftest.err'
3989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990  (eval $ac_try) 2>&5
3991  ac_status=$?
3992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993  (exit $ac_status); }; } &&
3994         { ac_try='test -s conftest$ac_exeext'
3995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996  (eval $ac_try) 2>&5
3997  ac_status=$?
3998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999  (exit $ac_status); }; }; then
4000  :
4001else
4002  echo "$as_me: failed program was:" >&5
4003sed 's/^/| /' conftest.$ac_ext >&5
4004
4005CXXFLAGS=
4006fi
4007rm -f conftest.err conftest.$ac_objext \
4008      conftest$ac_exeext conftest.$ac_ext
4009if test -z "$CXXFLAGS"; then
4010  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
4011echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
4012  CXXFLAGS='-O'
4013  cat >conftest.$ac_ext <<_ACEOF
4014/* confdefs.h.  */
4015_ACEOF
4016cat confdefs.h >>conftest.$ac_ext
4017cat >>conftest.$ac_ext <<_ACEOF
4018/* end confdefs.h.  */
4019
4020int
4021main ()
4022{
4023int i=0; i++;
4024  ;
4025  return 0;
4026}
4027_ACEOF
4028rm -f conftest.$ac_objext conftest$ac_exeext
4029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030  (eval $ac_link) 2>conftest.er1
4031  ac_status=$?
4032  grep -v '^ *+' conftest.er1 >conftest.err
4033  rm -f conftest.er1
4034  cat conftest.err >&5
4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036  (exit $ac_status); } &&
4037         { ac_try='test -z "$ac_cxx_werror_flag"
4038                         || test ! -s conftest.err'
4039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040  (eval $ac_try) 2>&5
4041  ac_status=$?
4042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043  (exit $ac_status); }; } &&
4044         { ac_try='test -s conftest$ac_exeext'
4045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046  (eval $ac_try) 2>&5
4047  ac_status=$?
4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049  (exit $ac_status); }; }; then
4050  :
4051else
4052  echo "$as_me: failed program was:" >&5
4053sed 's/^/| /' conftest.$ac_ext >&5
4054
4055CXXFLAGS=
4056fi
4057rm -f conftest.err conftest.$ac_objext \
4058      conftest$ac_exeext conftest.$ac_ext
4059  if test -z "$CXXFLAGS"; then
4060    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
4061echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
4062  fi
4063fi
4064
4065{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4066echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4067
4068
4069if test x"$MPICXX" = x; then :; else
4070  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4071echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4072  CXX="$MPICXX"
4073fi
4074
4075# correct the LD variable in a mingw build with MS or intel compiler
4076case "$CXX" in
4077  clang* ) ;;
4078  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4079    case $build in
4080  *-mingw*)
4081    if test "${LD+set}" = set; then :; else
4082      LD=link
4083    fi
4084    ;;
4085 esac
4086 case $enable_doscompile in
4087   msvc)
4088     if test "x${LD+set}" = xset; then :; else
4089       LD=link
4090     fi
4091     ;;
4092 esac
4093
4094    ;;
4095esac
4096
4097ac_ext=c
4098ac_cpp='$CPP $CPPFLAGS'
4099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102
4103
4104
4105# Get the name of the Fortran compiler and appropriate compiler options
4106case $build in
4107  *-cygwin* | *-mingw*)
4108     if test "$enable_doscompile" = msvc ; then
4109       coin_f77_comps="ifort fl32 compile_f2c"
4110     else
4111       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
4112     fi ;;
4113  *-*-solaris*)
4114     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4115  *-linux-gnu*)
4116     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4117  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
4118 esac
4119
4120
4121
4122
4123
4124
4125ac_ext=f
4126ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4127ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4129
4130
4131
4132
4133
4134
4135coin_has_f77=yes
4136
4137save_fflags="$FFLAGS"
4138
4139# We delete the cached value, since the test might not have been
4140# performed with our choice of compilers earlier
4141$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4142
4143# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4144# coin_f77_comps to see if there's a program that matches one of the names.
4145# If there's no such program, F77 = unavailable. If we match the name,
4146# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4147# compiler.
4148# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4149
4150
4151{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4152echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4153if test -n "$ac_tool_prefix"; then
4154  for ac_prog in $coin_f77_comps
4155  do
4156    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4157set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4158echo "$as_me:$LINENO: checking for $ac_word" >&5
4159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160if test "${ac_cv_prog_F77+set}" = set; then
4161  echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163  if test -n "$F77"; then
4164  ac_cv_prog_F77="$F77" # Let the user override the test.
4165else
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169  IFS=$as_save_IFS
4170  test -z "$as_dir" && as_dir=.
4171  for ac_exec_ext in '' $ac_executable_extensions; do
4172  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4174    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175    break 2
4176  fi
4177done
4178done
4179
4180fi
4181fi
4182F77=$ac_cv_prog_F77
4183if test -n "$F77"; then
4184  echo "$as_me:$LINENO: result: $F77" >&5
4185echo "${ECHO_T}$F77" >&6
4186else
4187  echo "$as_me:$LINENO: result: no" >&5
4188echo "${ECHO_T}no" >&6
4189fi
4190
4191    test -n "$F77" && break
4192  done
4193fi
4194if test -z "$F77"; then
4195  ac_ct_F77=$F77
4196  for ac_prog in $coin_f77_comps
4197do
4198  # Extract the first word of "$ac_prog", so it can be a program name with args.
4199set dummy $ac_prog; ac_word=$2
4200echo "$as_me:$LINENO: checking for $ac_word" >&5
4201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4203  echo $ECHO_N "(cached) $ECHO_C" >&6
4204else
4205  if test -n "$ac_ct_F77"; then
4206  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4207else
4208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211  IFS=$as_save_IFS
4212  test -z "$as_dir" && as_dir=.
4213  for ac_exec_ext in '' $ac_executable_extensions; do
4214  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215    ac_cv_prog_ac_ct_F77="$ac_prog"
4216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217    break 2
4218  fi
4219done
4220done
4221
4222fi
4223fi
4224ac_ct_F77=$ac_cv_prog_ac_ct_F77
4225if test -n "$ac_ct_F77"; then
4226  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4227echo "${ECHO_T}$ac_ct_F77" >&6
4228else
4229  echo "$as_me:$LINENO: result: no" >&5
4230echo "${ECHO_T}no" >&6
4231fi
4232
4233  test -n "$ac_ct_F77" && break
4234done
4235test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4236
4237  F77=$ac_ct_F77
4238fi
4239
4240
4241if test "$F77" != "unavailable" ; then
4242  ac_ext=f
4243ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4244ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4246if test -n "$ac_tool_prefix"; then
4247  for ac_prog in $coin_f77_comps
4248  do
4249    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4251echo "$as_me:$LINENO: checking for $ac_word" >&5
4252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4253if test "${ac_cv_prog_F77+set}" = set; then
4254  echo $ECHO_N "(cached) $ECHO_C" >&6
4255else
4256  if test -n "$F77"; then
4257  ac_cv_prog_F77="$F77" # Let the user override the test.
4258else
4259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260for as_dir in $PATH
4261do
4262  IFS=$as_save_IFS
4263  test -z "$as_dir" && as_dir=.
4264  for ac_exec_ext in '' $ac_executable_extensions; do
4265  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4266    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4267    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4268    break 2
4269  fi
4270done
4271done
4272
4273fi
4274fi
4275F77=$ac_cv_prog_F77
4276if test -n "$F77"; then
4277  echo "$as_me:$LINENO: result: $F77" >&5
4278echo "${ECHO_T}$F77" >&6
4279else
4280  echo "$as_me:$LINENO: result: no" >&5
4281echo "${ECHO_T}no" >&6
4282fi
4283
4284    test -n "$F77" && break
4285  done
4286fi
4287if test -z "$F77"; then
4288  ac_ct_F77=$F77
4289  for ac_prog in $coin_f77_comps
4290do
4291  # Extract the first word of "$ac_prog", so it can be a program name with args.
4292set dummy $ac_prog; ac_word=$2
4293echo "$as_me:$LINENO: checking for $ac_word" >&5
4294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4296  echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298  if test -n "$ac_ct_F77"; then
4299  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4300else
4301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH
4303do
4304  IFS=$as_save_IFS
4305  test -z "$as_dir" && as_dir=.
4306  for ac_exec_ext in '' $ac_executable_extensions; do
4307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4308    ac_cv_prog_ac_ct_F77="$ac_prog"
4309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310    break 2
4311  fi
4312done
4313done
4314
4315fi
4316fi
4317ac_ct_F77=$ac_cv_prog_ac_ct_F77
4318if test -n "$ac_ct_F77"; then
4319  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4320echo "${ECHO_T}$ac_ct_F77" >&6
4321else
4322  echo "$as_me:$LINENO: result: no" >&5
4323echo "${ECHO_T}no" >&6
4324fi
4325
4326  test -n "$ac_ct_F77" && break
4327done
4328
4329  F77=$ac_ct_F77
4330fi
4331
4332
4333# Provide some information about the compiler.
4334echo "$as_me:4334:" \
4335     "checking for Fortran 77 compiler version" >&5
4336ac_compiler=`set X $ac_compile; echo $2`
4337{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4338  (eval $ac_compiler --version </dev/null >&5) 2>&5
4339  ac_status=$?
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); }
4342{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4343  (eval $ac_compiler -v </dev/null >&5) 2>&5
4344  ac_status=$?
4345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346  (exit $ac_status); }
4347{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4348  (eval $ac_compiler -V </dev/null >&5) 2>&5
4349  ac_status=$?
4350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351  (exit $ac_status); }
4352rm -f a.out
4353
4354# If we don't use `.F' as extension, the preprocessor is not run on the
4355# input file.  (Note that this only needs to work for GNU compilers.)
4356ac_save_ext=$ac_ext
4357ac_ext=F
4358echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4359echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4360if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4361  echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363  cat >conftest.$ac_ext <<_ACEOF
4364      program main
4365#ifndef __GNUC__
4366       choke me
4367#endif
4368
4369      end
4370_ACEOF
4371rm -f conftest.$ac_objext
4372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373  (eval $ac_compile) 2>conftest.er1
4374  ac_status=$?
4375  grep -v '^ *+' conftest.er1 >conftest.err
4376  rm -f conftest.er1
4377  cat conftest.err >&5
4378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379  (exit $ac_status); } &&
4380         { ac_try='test -z "$ac_f77_werror_flag"
4381                         || test ! -s conftest.err'
4382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383  (eval $ac_try) 2>&5
4384  ac_status=$?
4385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386  (exit $ac_status); }; } &&
4387         { ac_try='test -s conftest.$ac_objext'
4388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389  (eval $ac_try) 2>&5
4390  ac_status=$?
4391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392  (exit $ac_status); }; }; then
4393  ac_compiler_gnu=yes
4394else
4395  echo "$as_me: failed program was:" >&5
4396sed 's/^/| /' conftest.$ac_ext >&5
4397
4398ac_compiler_gnu=no
4399fi
4400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4402
4403fi
4404echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4405echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4406ac_ext=$ac_save_ext
4407ac_test_FFLAGS=${FFLAGS+set}
4408ac_save_FFLAGS=$FFLAGS
4409FFLAGS=
4410echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4411echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4412if test "${ac_cv_prog_f77_g+set}" = set; then
4413  echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415  FFLAGS=-g
4416cat >conftest.$ac_ext <<_ACEOF
4417      program main
4418
4419      end
4420_ACEOF
4421rm -f conftest.$ac_objext
4422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423  (eval $ac_compile) 2>conftest.er1
4424  ac_status=$?
4425  grep -v '^ *+' conftest.er1 >conftest.err
4426  rm -f conftest.er1
4427  cat conftest.err >&5
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); } &&
4430         { ac_try='test -z "$ac_f77_werror_flag"
4431                         || test ! -s conftest.err'
4432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433  (eval $ac_try) 2>&5
4434  ac_status=$?
4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); }; } &&
4437         { ac_try='test -s conftest.$ac_objext'
4438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439  (eval $ac_try) 2>&5
4440  ac_status=$?
4441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442  (exit $ac_status); }; }; then
4443  ac_cv_prog_f77_g=yes
4444else
4445  echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
4448ac_cv_prog_f77_g=no
4449fi
4450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451
4452fi
4453echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4454echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4455if test "$ac_test_FFLAGS" = set; then
4456  FFLAGS=$ac_save_FFLAGS
4457elif test $ac_cv_prog_f77_g = yes; then
4458  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4459    FFLAGS="-g -O2"
4460  else
4461    FFLAGS="-g"
4462  fi
4463else
4464  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4465    FFLAGS="-O2"
4466  else
4467    FFLAGS=
4468  fi
4469fi
4470
4471G77=`test $ac_compiler_gnu = yes && echo yes`
4472ac_ext=f
4473ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4474ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4476
4477else
4478  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4479echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4480fi
4481
4482FFLAGS="$save_fflags"
4483
4484# Check if a project specific FFLAGS variable has been set
4485if test x$COIN_PRJCT != x; then
4486  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4487  if test x$coin_tmp = xset; then
4488    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4489  fi
4490fi
4491
4492if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4493
4494  coin_add_fflags=
4495  coin_opt_fflags=
4496  coin_dbg_fflags=
4497  coin_warn_fflags=
4498
4499  if test "$G77" = "yes"; then
4500    coin_opt_fflags="-O3"
4501    coin_add_fflags="-pipe"
4502    coin_dbg_fflags="-g -O0"
4503    case $enable_doscompile in
4504      mingw)
4505        FFLAGS="-mno-cygwin"
4506        cat >conftest.$ac_ext <<_ACEOF
4507      program main
4508      write(*,*) 'Hello world'
4509      end
4510_ACEOF
4511rm -f conftest.$ac_objext conftest$ac_exeext
4512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513  (eval $ac_link) 2>conftest.er1
4514  ac_status=$?
4515  grep -v '^ *+' conftest.er1 >conftest.err
4516  rm -f conftest.er1
4517  cat conftest.err >&5
4518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519  (exit $ac_status); } &&
4520         { ac_try='test -z "$ac_f77_werror_flag"
4521                         || test ! -s conftest.err'
4522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523  (eval $ac_try) 2>&5
4524  ac_status=$?
4525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526  (exit $ac_status); }; } &&
4527         { ac_try='test -s conftest$ac_exeext'
4528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529  (eval $ac_try) 2>&5
4530  ac_status=$?
4531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); }; }; then
4533  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4534else
4535  echo "$as_me: failed program was:" >&5
4536sed 's/^/| /' conftest.$ac_ext >&5
4537
4538fi
4539rm -f conftest.err conftest.$ac_objext \
4540      conftest$ac_exeext conftest.$ac_ext
4541        FFLAGS=
4542      ;;
4543    esac
4544  else
4545    case $build in
4546      *-cygwin* | *-mingw*)
4547        case $F77 in
4548          ifort* | */ifort* | IFORT* | */IFORT* )
4549            coin_opt_fflags='-MT -O3'
4550            coin_add_fflags='-fpp -nologo'
4551            coin_dbg_fflags='-MTd -debug'
4552          ;;
4553          compile_f2c*)
4554            coin_opt_fflags='-MT -O2'
4555            coin_add_fflags='-nologo -wd4996'
4556            coin_dbg_fflags='-MTd'
4557          ;;
4558        esac
4559        ;;
4560      *-linux-*)
4561        case $F77 in
4562          ifc* | */ifc* | ifort* | */ifort*)
4563            coin_opt_fflags="-O3 -ip"
4564            coin_add_fflags="-cm -w90 -w95"
4565            coin_dbg_fflags="-g -CA -CB -CS"
4566            # Check if -i_dynamic is necessary (for new glibc library)
4567            FFLAGS=
4568            cat >conftest.$ac_ext <<_ACEOF
4569      program main
4570      write(*,*) 'Hello world'
4571      end
4572_ACEOF
4573rm -f conftest.$ac_objext conftest$ac_exeext
4574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4575  (eval $ac_link) 2>conftest.er1
4576  ac_status=$?
4577  grep -v '^ *+' conftest.er1 >conftest.err
4578  rm -f conftest.er1
4579  cat conftest.err >&5
4580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581  (exit $ac_status); } &&
4582         { ac_try='test -z "$ac_f77_werror_flag"
4583                         || test ! -s conftest.err'
4584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585  (eval $ac_try) 2>&5
4586  ac_status=$?
4587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); }; } &&
4589         { ac_try='test -s conftest$ac_exeext'
4590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591  (eval $ac_try) 2>&5
4592  ac_status=$?
4593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594  (exit $ac_status); }; }; then
4595  :
4596else
4597  echo "$as_me: failed program was:" >&5
4598sed 's/^/| /' conftest.$ac_ext >&5
4599
4600coin_add_fflags="-i_dynamic $coin_add_fflags"
4601fi
4602rm -f conftest.err conftest.$ac_objext \
4603      conftest$ac_exeext conftest.$ac_ext
4604            ;;
4605          pgf77* | */pgf77* | pgf90* | */pgf90*)
4606            coin_opt_fflags="-fast"
4607            coin_add_fflags="-Kieee -pc 64"
4608            coin_dbg_fflags="-g"
4609          ;;
4610        esac
4611        ;;
4612      *-ibm-*)
4613        case "$F77" in
4614          xlf* | */xlf* | mpxlf* | */mpxlf* )
4615            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4616            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4617            coin_dbg_fflags="-g -C"
4618            ;;
4619        esac
4620        ;;
4621      *-hp-*)
4622        coin_opt_fflags="+O3"
4623        coin_add_fflags="+U77"
4624        coin_dbg_fflags="-C -g"
4625        ;;
4626      *-*-solaris*)
4627        coin_opt_fflags="-O4"
4628        coin_dbg_fflags="-g"
4629        ;;
4630      *-sgi-*)
4631        coin_opt_fflags="-O5 -OPT:Olimit=0"
4632        coin_dbg_fflags="-g"
4633        ;;
4634    esac
4635  fi
4636
4637  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4638    coin_dbg_fflags="-g"
4639  fi
4640
4641  if test -z "$coin_opt_fflags"; then
4642    # Try if -O option works if nothing else is set
4643    FFLAGS=-O
4644    cat >conftest.$ac_ext <<_ACEOF
4645      program main
4646      integer i
4647      end
4648_ACEOF
4649rm -f conftest.$ac_objext conftest$ac_exeext
4650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651  (eval $ac_link) 2>conftest.er1
4652  ac_status=$?
4653  grep -v '^ *+' conftest.er1 >conftest.err
4654  rm -f conftest.er1
4655  cat conftest.err >&5
4656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657  (exit $ac_status); } &&
4658         { ac_try='test -z "$ac_f77_werror_flag"
4659                         || test ! -s conftest.err'
4660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661  (eval $ac_try) 2>&5
4662  ac_status=$?
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); }; } &&
4665         { ac_try='test -s conftest$ac_exeext'
4666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667  (eval $ac_try) 2>&5
4668  ac_status=$?
4669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670  (exit $ac_status); }; }; then
4671  coin_opt_fflags="-O"
4672else
4673  echo "$as_me: failed program was:" >&5
4674sed 's/^/| /' conftest.$ac_ext >&5
4675
4676fi
4677rm -f conftest.err conftest.$ac_objext \
4678      conftest$ac_exeext conftest.$ac_ext
4679  fi
4680
4681  # if PM doesn't want the warning messages, take them out
4682  if test x"$coin_skip_warn_fflags" = xyes; then
4683    coin_warn_fflags=
4684  fi
4685
4686  if test x${DBG_FFLAGS+set} != xset; then
4687    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4688  fi
4689  if test x${OPT_FFLAGS+set} != xset; then
4690    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4691  fi
4692
4693  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4694  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4695
4696  if test "$coin_debug_compile" = "true"; then
4697    FFLAGS="$DBG_FFLAGS"
4698  else
4699    FFLAGS="$OPT_FFLAGS"
4700  fi
4701else
4702  FFLAGS="$FFLAGS $ADD_FFLAGS"
4703  if test x${DBG_FFLAGS+set} != xset; then
4704    DBG_FFLAGS="$FFLAGS"
4705  fi
4706  if test x${OPT_FFLAGS+set} != xset; then
4707    OPT_FFLAGS="$FFLAGS"
4708  fi
4709fi
4710
4711# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4712case "$FFLAGS" in
4713  *-mno-cygwin*)
4714    if test x${CPPFLAGS+set} != xset ; then
4715      CPPFLAGS="-mno-cygwin"
4716    else
4717      case "$CPPFLAGS" in
4718        *-mno-cygwin*)
4719          ;;
4720        *)
4721          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4722          ;;
4723      esac
4724    fi ;;
4725esac
4726
4727# Try if FFLAGS works
4728if test "$F77" != "unavailable" ; then
4729  cat >conftest.$ac_ext <<_ACEOF
4730      program main
4731      integer i
4732      end
4733_ACEOF
4734rm -f conftest.$ac_objext conftest$ac_exeext
4735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736  (eval $ac_link) 2>conftest.er1
4737  ac_status=$?
4738  grep -v '^ *+' conftest.er1 >conftest.err
4739  rm -f conftest.er1
4740  cat conftest.err >&5
4741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742  (exit $ac_status); } &&
4743         { ac_try='test -z "$ac_f77_werror_flag"
4744                         || test ! -s conftest.err'
4745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746  (eval $ac_try) 2>&5
4747  ac_status=$?
4748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749  (exit $ac_status); }; } &&
4750         { ac_try='test -s conftest$ac_exeext'
4751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752  (eval $ac_try) 2>&5
4753  ac_status=$?
4754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755  (exit $ac_status); }; }; then
4756  :
4757else
4758  echo "$as_me: failed program was:" >&5
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
4761FFLAGS=
4762fi
4763rm -f conftest.err conftest.$ac_objext \
4764      conftest$ac_exeext conftest.$ac_ext
4765  if test -z "$FFLAGS"; then
4766    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4767echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4768    FFLAGS='-O'
4769    cat >conftest.$ac_ext <<_ACEOF
4770      program main
4771      integer i
4772      end
4773_ACEOF
4774rm -f conftest.$ac_objext conftest$ac_exeext
4775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4776  (eval $ac_link) 2>conftest.er1
4777  ac_status=$?
4778  grep -v '^ *+' conftest.er1 >conftest.err
4779  rm -f conftest.er1
4780  cat conftest.err >&5
4781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); } &&
4783         { ac_try='test -z "$ac_f77_werror_flag"
4784                         || test ! -s conftest.err'
4785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786  (eval $ac_try) 2>&5
4787  ac_status=$?
4788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789  (exit $ac_status); }; } &&
4790         { ac_try='test -s conftest$ac_exeext'
4791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792  (eval $ac_try) 2>&5
4793  ac_status=$?
4794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795  (exit $ac_status); }; }; then
4796  :
4797else
4798  echo "$as_me: failed program was:" >&5
4799sed 's/^/| /' conftest.$ac_ext >&5
4800
4801FFLAGS=
4802fi
4803rm -f conftest.err conftest.$ac_objext \
4804      conftest$ac_exeext conftest.$ac_ext
4805    if test -z "$FFLAGS"; then
4806      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4807echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4808    fi
4809  fi
4810fi
4811
4812{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4813echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4814
4815
4816if test x"$MPIF77" = x; then :; else
4817  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4818echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4819  F77="$MPIF77"
4820fi
4821
4822# correct the LD variable if we use the intel fortran compiler in windows
4823case "$F77" in
4824  ifort* | */ifort* | IFORT* | */IFORT*)
4825    case $build in
4826  *-mingw*)
4827    if test "${LD+set}" = set; then :; else
4828      LD=link
4829    fi
4830    ;;
4831 esac
4832 case $enable_doscompile in
4833   msvc)
4834     if test "x${LD+set}" = xset; then :; else
4835       LD=link
4836     fi
4837     ;;
4838 esac
4839
4840    ;;
4841esac
4842
4843ac_ext=c
4844ac_cpp='$CPP $CPPFLAGS'
4845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848
4849
4850
4851# Initialize automake and libtool
4852# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4853{
4854
4855
4856
4857# START
4858
4859# Test if force_shared has been set
4860if test "x" = xforce_shared; then
4861  if test x$enable_shared = xno; then
4862    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4863echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4864   { (exit 1); exit 1; }; }
4865  fi
4866  enable_shared=yes;
4867else
4868  # On Cygwin and AIX, building DLLs doesn't work
4869  case $build in
4870    *-cygwin*)
4871      coin_disable_shared=yes
4872      platform=Cygwin
4873    ;;
4874    *-aix*)
4875      coin_disable_shared=yes
4876      platform=AIX
4877    ;;
4878    *-mingw*)
4879      coin_disable_shared=yes
4880      platform="Msys"
4881#      case "$CXX" in
4882#        cl*)
4883#          coin_disable_shared=yes
4884#          platform="Msys with cl"
4885#      ;;
4886#      esac
4887    ;;
4888  esac
4889fi
4890if test x"$coin_disable_shared" = xyes; then
4891  if test x"$enable_shared" = xyes; then
4892    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4893echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4894  fi
4895  enable_shared=no
4896fi
4897# By default, we only want the shared objects to be compiled
4898# Check whether --enable-static or --disable-static was given.
4899if test "${enable_static+set}" = set; then
4900  enableval="$enable_static"
4901  p=${PACKAGE-default}
4902    case $enableval in
4903    yes) enable_static=yes ;;
4904    no) enable_static=no ;;
4905    *)
4906     enable_static=no
4907      # Look at the argument we got.  We use all the common list separators.
4908      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4909      for pkg in $enableval; do
4910        IFS="$lt_save_ifs"
4911        if test "X$pkg" = "X$p"; then
4912          enable_static=yes
4913        fi
4914      done
4915      IFS="$lt_save_ifs"
4916      ;;
4917    esac
4918else
4919  enable_static=no
4920fi;
4921
4922
4923
4924
4925# Initialize automake
4926echo "$as_me:$LINENO: checking for egrep" >&5
4927echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4928if test "${ac_cv_prog_egrep+set}" = set; then
4929  echo $ECHO_N "(cached) $ECHO_C" >&6
4930else
4931  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4932    then ac_cv_prog_egrep='grep -E'
4933    else ac_cv_prog_egrep='egrep'
4934    fi
4935fi
4936echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4937echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4938 EGREP=$ac_cv_prog_egrep
4939
4940
4941echo "$as_me:$LINENO: checking whether ln -s works" >&5
4942echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4943LN_S=$as_ln_s
4944if test "$LN_S" = "ln -s"; then
4945  echo "$as_me:$LINENO: result: yes" >&5
4946echo "${ECHO_T}yes" >&6
4947else
4948  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4949echo "${ECHO_T}no, using $LN_S" >&6
4950fi
4951
4952am__api_version="1.9"
4953# Find a good install program.  We prefer a C program (faster),
4954# so one script is as good as another.  But avoid the broken or
4955# incompatible versions:
4956# SysV /etc/install, /usr/sbin/install
4957# SunOS /usr/etc/install
4958# IRIX /sbin/install
4959# AIX /bin/install
4960# AmigaOS /C/install, which installs bootblocks on floppy discs
4961# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4962# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4963# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4964# OS/2's system install, which has a completely different semantic
4965# ./install, which can be erroneously created by make from ./install.sh.
4966echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4967echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4968if test -z "$INSTALL"; then
4969if test "${ac_cv_path_install+set}" = set; then
4970  echo $ECHO_N "(cached) $ECHO_C" >&6
4971else
4972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973for as_dir in $PATH
4974do
4975  IFS=$as_save_IFS
4976  test -z "$as_dir" && as_dir=.
4977  # Account for people who put trailing slashes in PATH elements.
4978case $as_dir/ in
4979  ./ | .// | /cC/* | \
4980  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4981  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4982  /usr/ucb/* ) ;;
4983  *)
4984    # OSF1 and SCO ODT 3.0 have their own names for install.
4985    # Don't use installbsd from OSF since it installs stuff as root
4986    # by default.
4987    for ac_prog in ginstall scoinst install; do
4988      for ac_exec_ext in '' $ac_executable_extensions; do
4989        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4990          if test $ac_prog = install &&
4991            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4992            # AIX install.  It has an incompatible calling convention.
4993            :
4994          elif test $ac_prog = install &&
4995            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4996            # program-specific install script used by HP pwplus--don't use.
4997            :
4998          else
4999            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5000            break 3
5001          fi
5002        fi
5003      done
5004    done
5005    ;;
5006esac
5007done
5008
5009
5010fi
5011  if test "${ac_cv_path_install+set}" = set; then
5012    INSTALL=$ac_cv_path_install
5013  else
5014    # As a last resort, use the slow shell script.  We don't cache a
5015    # path for INSTALL within a source directory, because that will
5016    # break other packages using the cache if that directory is
5017    # removed, or if the path is relative.
5018    INSTALL=$ac_install_sh
5019  fi
5020fi
5021echo "$as_me:$LINENO: result: $INSTALL" >&5
5022echo "${ECHO_T}$INSTALL" >&6
5023
5024# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5025# It thinks the first close brace ends the variable substitution.
5026test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5027
5028test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5029
5030test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5031
5032echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5033echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5034# Just in case
5035sleep 1
5036echo timestamp > conftest.file
5037# Do `set' in a subshell so we don't clobber the current shell's
5038# arguments.  Must try -L first in case configure is actually a
5039# symlink; some systems play weird games with the mod time of symlinks
5040# (eg FreeBSD returns the mod time of the symlink's containing
5041# directory).
5042if (
5043   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5044   if test "$*" = "X"; then
5045      # -L didn't work.
5046      set X `ls -t $srcdir/configure conftest.file`
5047   fi
5048   rm -f conftest.file
5049   if test "$*" != "X $srcdir/configure conftest.file" \
5050      && test "$*" != "X conftest.file $srcdir/configure"; then
5051
5052      # If neither matched, then we have a broken ls.  This can happen
5053      # if, for instance, CONFIG_SHELL is bash and it inherits a
5054      # broken ls alias from the environment.  This has actually
5055      # happened.  Such a system could not be considered "sane".
5056      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5057alias in your environment" >&5
5058echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5059alias in your environment" >&2;}
5060   { (exit 1); exit 1; }; }
5061   fi
5062
5063   test "$2" = conftest.file
5064   )
5065then
5066   # Ok.
5067   :
5068else
5069   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5070Check your system clock" >&5
5071echo "$as_me: error: newly created file is older than distributed files!
5072Check your system clock" >&2;}
5073   { (exit 1); exit 1; }; }
5074fi
5075echo "$as_me:$LINENO: result: yes" >&5
5076echo "${ECHO_T}yes" >&6
5077test "$program_prefix" != NONE &&
5078  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5079# Use a double $ so make ignores it.
5080test "$program_suffix" != NONE &&
5081  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5082# Double any \ or $.  echo might interpret backslashes.
5083# By default was `s,x,x', remove it if useless.
5084cat <<\_ACEOF >conftest.sed
5085s/[\\$]/&&/g;s/;s,x,x,$//
5086_ACEOF
5087program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5088rm conftest.sed
5089
5090# expand $ac_aux_dir to an absolute path
5091am_aux_dir=`cd $ac_aux_dir && pwd`
5092
5093test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5094# Use eval to expand $SHELL
5095if eval "$MISSING --run true"; then
5096  am_missing_run="$MISSING --run "
5097else
5098  am_missing_run=
5099  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5100echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5101fi
5102
5103if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5104  # We used to keeping the `.' as first argument, in order to
5105  # allow $(mkdir_p) to be used without argument.  As in
5106  #   $(mkdir_p) $(somedir)
5107  # where $(somedir) is conditionally defined.  However this is wrong
5108  # for two reasons:
5109  #  1. if the package is installed by a user who cannot write `.'
5110  #     make install will fail,
5111  #  2. the above comment should most certainly read
5112  #     $(mkdir_p) $(DESTDIR)$(somedir)
5113  #     so it does not work when $(somedir) is undefined and
5114  #     $(DESTDIR) is not.
5115  #  To support the latter case, we have to write
5116  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5117  #  so the `.' trick is pointless.
5118  mkdir_p='mkdir -p --'
5119else
5120  # On NextStep and OpenStep, the `mkdir' command does not
5121  # recognize any option.  It will interpret all options as
5122  # directories to create, and then abort because `.' already
5123  # exists.
5124  for d in ./-p ./--version;
5125  do
5126    test -d $d && rmdir $d
5127  done
5128  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5129  if test -f "$ac_aux_dir/mkinstalldirs"; then
5130    mkdir_p='$(mkinstalldirs)'
5131  else
5132    mkdir_p='$(install_sh) -d'
5133  fi
5134fi
5135
5136for ac_prog in gawk mawk nawk awk
5137do
5138  # Extract the first word of "$ac_prog", so it can be a program name with args.
5139set dummy $ac_prog; ac_word=$2
5140echo "$as_me:$LINENO: checking for $ac_word" >&5
5141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142if test "${ac_cv_prog_AWK+set}" = set; then
5143  echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145  if test -n "$AWK"; then
5146  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151  IFS=$as_save_IFS
5152  test -z "$as_dir" && as_dir=.
5153  for ac_exec_ext in '' $ac_executable_extensions; do
5154  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155    ac_cv_prog_AWK="$ac_prog"
5156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157    break 2
5158  fi
5159done
5160done
5161
5162fi
5163fi
5164AWK=$ac_cv_prog_AWK
5165if test -n "$AWK"; then
5166  echo "$as_me:$LINENO: result: $AWK" >&5
5167echo "${ECHO_T}$AWK" >&6
5168else
5169  echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6
5171fi
5172
5173  test -n "$AWK" && break
5174done
5175
5176echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5177echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5178set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5179if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5180  echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182  cat >conftest.make <<\_ACEOF
5183all:
5184        @echo 'ac_maketemp="$(MAKE)"'
5185_ACEOF
5186# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5187eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5188if test -n "$ac_maketemp"; then
5189  eval ac_cv_prog_make_${ac_make}_set=yes
5190else
5191  eval ac_cv_prog_make_${ac_make}_set=no
5192fi
5193rm -f conftest.make
5194fi
5195if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5196  echo "$as_me:$LINENO: result: yes" >&5
5197echo "${ECHO_T}yes" >&6
5198  SET_MAKE=
5199else
5200  echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
5202  SET_MAKE="MAKE=${MAKE-make}"
5203fi
5204
5205rm -rf .tst 2>/dev/null
5206mkdir .tst 2>/dev/null
5207if test -d .tst; then
5208  am__leading_dot=.
5209else
5210  am__leading_dot=_
5211fi
5212rmdir .tst 2>/dev/null
5213
5214DEPDIR="${am__leading_dot}deps"
5215
5216          ac_config_commands="$ac_config_commands depfiles"
5217
5218
5219am_make=${MAKE-make}
5220cat > confinc << 'END'
5221am__doit:
5222        @echo done
5223.PHONY: am__doit
5224END
5225# If we don't find an include directive, just comment out the code.
5226echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5227echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5228am__include="#"
5229am__quote=
5230_am_result=none
5231# First try GNU make style include.
5232echo "include confinc" > confmf
5233# We grep out `Entering directory' and `Leaving directory'
5234# messages which can occur if `w' ends up in MAKEFLAGS.
5235# In particular we don't look at `^make:' because GNU make might
5236# be invoked under some other name (usually "gmake"), in which
5237# case it prints its new name instead of `make'.
5238if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5239   am__include=include
5240   am__quote=
5241   _am_result=GNU
5242fi
5243# Now try BSD make style include.
5244if test "$am__include" = "#"; then
5245   echo '.include "confinc"' > confmf
5246   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5247      am__include=.include
5248      am__quote="\""
5249      _am_result=BSD
5250   fi
5251fi
5252
5253
5254echo "$as_me:$LINENO: result: $_am_result" >&5
5255echo "${ECHO_T}$_am_result" >&6
5256rm -f confinc confmf
5257
5258# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5259if test "${enable_dependency_tracking+set}" = set; then
5260  enableval="$enable_dependency_tracking"
5261
5262fi;
5263if test "x$enable_dependency_tracking" != xno; then
5264  am_depcomp="$ac_aux_dir/depcomp"
5265  AMDEPBACKSLASH='\'
5266fi
5267
5268
5269if test "x$enable_dependency_tracking" != xno; then
5270  AMDEP_TRUE=
5271  AMDEP_FALSE='#'
5272else
5273  AMDEP_TRUE='#'
5274  AMDEP_FALSE=
5275fi
5276
5277
5278
5279
5280
5281
5282# AC_MSG_NOTICE([Beginning automake initialisation.])
5283# Stuff for automake
5284# test to see if srcdir already configured
5285if test "`cd $srcdir && pwd`" != "`pwd`" &&
5286   test -f $srcdir/config.status; then
5287  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5288echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5289   { (exit 1); exit 1; }; }
5290fi
5291
5292# test whether we have cygpath
5293if test -z "$CYGPATH_W"; then
5294  if (cygpath --version) >/dev/null 2>/dev/null; then
5295    CYGPATH_W='cygpath -w'
5296  else
5297    CYGPATH_W=echo
5298  fi
5299fi
5300
5301
5302# Define the identity of the package.
5303 PACKAGE='couenne'
5304 VERSION='trunk'
5305
5306
5307cat >>confdefs.h <<_ACEOF
5308#define PACKAGE "$PACKAGE"
5309_ACEOF
5310
5311
5312cat >>confdefs.h <<_ACEOF
5313#define VERSION "$VERSION"
5314_ACEOF
5315
5316# Some tools Automake needs.
5317
5318ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5319
5320
5321AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5322
5323
5324AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5325
5326
5327AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5328
5329
5330MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5331
5332install_sh=${install_sh-"$am_aux_dir/install-sh"}
5333
5334# Installed binaries are usually stripped using `strip' when the user
5335# run `make install-strip'.  However `strip' might not be the right
5336# tool to use in cross-compilation environments, therefore Automake
5337# will honor the `STRIP' environment variable to overrule this program.
5338if test "$cross_compiling" != no; then
5339  if test -n "$ac_tool_prefix"; then
5340  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5341set dummy ${ac_tool_prefix}strip; ac_word=$2
5342echo "$as_me:$LINENO: checking for $ac_word" >&5
5343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5344if test "${ac_cv_prog_STRIP+set}" = set; then
5345  echo $ECHO_N "(cached) $ECHO_C" >&6
5346else
5347  if test -n "$STRIP"; then
5348  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5349else
5350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH
5352do
5353  IFS=$as_save_IFS
5354  test -z "$as_dir" && as_dir=.
5355  for ac_exec_ext in '' $ac_executable_extensions; do
5356  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5358    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359    break 2
5360  fi
5361done
5362done
5363
5364fi
5365fi
5366STRIP=$ac_cv_prog_STRIP
5367if test -n "$STRIP"; then
5368  echo "$as_me:$LINENO: result: $STRIP" >&5
5369echo "${ECHO_T}$STRIP" >&6
5370else
5371  echo "$as_me:$LINENO: result: no" >&5
5372echo "${ECHO_T}no" >&6
5373fi
5374
5375fi
5376if test -z "$ac_cv_prog_STRIP"; then
5377  ac_ct_STRIP=$STRIP
5378  # Extract the first word of "strip", so it can be a program name with args.
5379set dummy strip; ac_word=$2
5380echo "$as_me:$LINENO: checking for $ac_word" >&5
5381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5383  echo $ECHO_N "(cached) $ECHO_C" >&6
5384else
5385  if test -n "$ac_ct_STRIP"; then
5386  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5387else
5388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389for as_dir in $PATH
5390do
5391  IFS=$as_save_IFS
5392  test -z "$as_dir" && as_dir=.
5393  for ac_exec_ext in '' $ac_executable_extensions; do
5394  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395    ac_cv_prog_ac_ct_STRIP="strip"
5396    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397    break 2
5398  fi
5399done
5400done
5401
5402  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5403fi
5404fi
5405ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5406if test -n "$ac_ct_STRIP"; then
5407  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5408echo "${ECHO_T}$ac_ct_STRIP" >&6
5409else
5410  echo "$as_me:$LINENO: result: no" >&5
5411echo "${ECHO_T}no" >&6
5412fi
5413
5414  STRIP=$ac_ct_STRIP
5415else
5416  STRIP="$ac_cv_prog_STRIP"
5417fi
5418
5419fi
5420INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5421
5422# We need awk for the "check" target.  The system "awk" is bad on
5423# some platforms.
5424# Always define AMTAR for backward compatibility.
5425
5426AMTAR=${AMTAR-"${am_missing_run}tar"}
5427
5428am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5429
5430
5431
5432
5433depcc="$CC"   am_compiler_list=
5434
5435echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5436echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5437if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5438  echo $ECHO_N "(cached) $ECHO_C" >&6
5439else
5440  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5441  # We make a subdir and do the tests there.  Otherwise we can end up
5442  # making bogus files that we don't know about and never remove.  For
5443  # instance it was reported that on HP-UX the gcc test will end up
5444  # making a dummy file named `D' -- because `-MD' means `put the output
5445  # in D'.
5446  mkdir conftest.dir
5447  # Copy depcomp to subdir because otherwise we won't find it if we're
5448  # using a relative directory.
5449  cp "$am_depcomp" conftest.dir
5450  cd conftest.dir
5451  # We will build objects and dependencies in a subdirectory because
5452  # it helps to detect inapplicable dependency modes.  For instance
5453  # both Tru64's cc and ICC support -MD to output dependencies as a
5454  # side effect of compilation, but ICC will put the dependencies in
5455  # the current directory while Tru64 will put them in the object
5456  # directory.
5457  mkdir sub
5458
5459  am_cv_CC_dependencies_compiler_type=none
5460  if test "$am_compiler_list" = ""; then
5461     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5462  fi
5463  for depmode in $am_compiler_list; do
5464    # Setup a source with many dependencies, because some compilers
5465    # like to wrap large dependency lists on column 80 (with \), and
5466    # we should not choose a depcomp mode which is confused by this.
5467    #
5468    # We need to recreate these files for each test, as the compiler may
5469    # overwrite some of them when testing with obscure command lines.
5470    # This happens at least with the AIX C compiler.
5471    : > sub/conftest.c
5472    for i in 1 2 3 4 5 6; do
5473      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5474      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5475      # Solaris 8's {/usr,}/bin/sh.
5476      touch sub/conftst$i.h
5477    done
5478    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5479
5480    case $depmode in
5481    nosideeffect)
5482      # after this tag, mechanisms are not by side-effect, so they'll
5483      # only be used when explicitly requested
5484      if test "x$enable_dependency_tracking" = xyes; then
5485        continue
5486      else
5487        break
5488      fi
5489      ;;
5490    none) break ;;
5491    esac
5492    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5493    # mode.  It turns out that the SunPro C++ compiler does not properly
5494    # handle `-M -o', and we need to detect this.
5495    if depmode=$depmode \
5496       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5497       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5498       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5499         >/dev/null 2>conftest.err &&
5500       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5501       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5502       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5503      # icc doesn't choke on unknown options, it will just issue warnings
5504      # or remarks (even with -Werror).  So we grep stderr for any message
5505      # that says an option was ignored or not supported.
5506      # When given -MP, icc 7.0 and 7.1 complain thusly:
5507      #   icc: Command line warning: ignoring option '-M'; no argument required
5508      # The diagnosis changed in icc 8.0:
5509      #   icc: Command line remark: option '-MP' not supported
5510      if (grep 'ignoring option' conftest.err ||
5511          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5512        am_cv_CC_dependencies_compiler_type=$depmode
5513        break
5514      fi
5515    fi
5516  done
5517
5518  cd ..
5519  rm -rf conftest.dir
5520else
5521  am_cv_CC_dependencies_compiler_type=none
5522fi
5523
5524fi
5525echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5526echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5527CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5528
5529
5530
5531if
5532  test "x$enable_dependency_tracking" != xno \
5533  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5534  am__fastdepCC_TRUE=
5535  am__fastdepCC_FALSE='#'
5536else
5537  am__fastdepCC_TRUE='#'
5538  am__fastdepCC_FALSE=
5539fi
5540
5541
5542depcc="$CXX"  am_compiler_list=
5543
5544echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5545echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5546if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5547  echo $ECHO_N "(cached) $ECHO_C" >&6
5548else
5549  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5550  # We make a subdir and do the tests there.  Otherwise we can end up
5551  # making bogus files that we don't know about and never remove.  For
5552  # instance it was reported that on HP-UX the gcc test will end up
5553  # making a dummy file named `D' -- because `-MD' means `put the output
5554  # in D'.
5555  mkdir conftest.dir
5556  # Copy depcomp to subdir because otherwise we won't find it if we're
5557  # using a relative directory.
5558  cp "$am_depcomp" conftest.dir
5559  cd conftest.dir
5560  # We will build objects and dependencies in a subdirectory because
5561  # it helps to detect inapplicable dependency modes.  For instance
5562  # both Tru64's cc and ICC support -MD to output dependencies as a
5563  # side effect of compilation, but ICC will put the dependencies in
5564  # the current directory while Tru64 will put them in the object
5565  # directory.
5566  mkdir sub
5567
5568  am_cv_CXX_dependencies_compiler_type=none
5569  if test "$am_compiler_list" = ""; then
5570     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5571  fi
5572  for depmode in $am_compiler_list; do
5573    # Setup a source with many dependencies, because some compilers
5574    # like to wrap large dependency lists on column 80 (with \), and
5575    # we should not choose a depcomp mode which is confused by this.
5576    #
5577    # We need to recreate these files for each test, as the compiler may
5578    # overwrite some of them when testing with obscure command lines.
5579    # This happens at least with the AIX C compiler.
5580    : > sub/conftest.c
5581    for i in 1 2 3 4 5 6; do
5582      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5583      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5584      # Solaris 8's {/usr,}/bin/sh.
5585      touch sub/conftst$i.h
5586    done
5587    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5588
5589    case $depmode in
5590    nosideeffect)
5591      # after this tag, mechanisms are not by side-effect, so they'll
5592      # only be used when explicitly requested
5593      if test "x$enable_dependency_tracking" = xyes; then
5594        continue
5595      else
5596        break
5597      fi
5598      ;;
5599    none) break ;;
5600    esac
5601    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5602    # mode.  It turns out that the SunPro C++ compiler does not properly
5603    # handle `-M -o', and we need to detect this.
5604    if depmode=$depmode \
5605       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5606       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5607       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5608         >/dev/null 2>conftest.err &&
5609       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5610       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5611       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5612      # icc doesn't choke on unknown options, it will just issue warnings
5613      # or remarks (even with -Werror).  So we grep stderr for any message
5614      # that says an option was ignored or not supported.
5615      # When given -MP, icc 7.0 and 7.1 complain thusly:
5616      #   icc: Command line warning: ignoring option '-M'; no argument required
5617      # The diagnosis changed in icc 8.0:
5618      #   icc: Command line remark: option '-MP' not supported
5619      if (grep 'ignoring option' conftest.err ||
5620          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5621        am_cv_CXX_dependencies_compiler_type=$depmode
5622        break
5623      fi
5624    fi
5625  done
5626
5627  cd ..
5628  rm -rf conftest.dir
5629else
5630  am_cv_CXX_dependencies_compiler_type=none
5631fi
5632
5633fi
5634echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5635echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5636CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5637
5638
5639
5640if
5641  test "x$enable_dependency_tracking" != xno \
5642  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5643  am__fastdepCXX_TRUE=
5644  am__fastdepCXX_FALSE='#'
5645else
5646  am__fastdepCXX_TRUE='#'
5647  am__fastdepCXX_FALSE=
5648fi
5649
5650
5651
5652echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5653echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5654    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5655if test "${enable_maintainer_mode+set}" = set; then
5656  enableval="$enable_maintainer_mode"
5657  USE_MAINTAINER_MODE=$enableval
5658else
5659  USE_MAINTAINER_MODE=no
5660fi;
5661  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5662echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5663
5664
5665if test $USE_MAINTAINER_MODE = yes; then
5666  MAINTAINER_MODE_TRUE=
5667  MAINTAINER_MODE_FALSE='#'
5668else
5669  MAINTAINER_MODE_TRUE='#'
5670  MAINTAINER_MODE_FALSE=
5671fi
5672
5673  MAINT=$MAINTAINER_MODE_TRUE
5674
5675
5676
5677coin_have_externals=no
5678if test "$enable_maintainer_mode" = yes; then
5679
5680  # If maintainer mode is chosen, we make sure that the correct versions
5681  # of the tools are used, and that we know where libtool.m4 is (to
5682  # recreate acinclude.m4)
5683
5684
5685  LIBTOOLM4=
5686  # Normally, $HOME
5687  AUTOTOOLS_DFLT=$HOME
5688
5689  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5690echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5691if test "${ac_cv_use_correct_autotools+set}" = set; then
5692  echo $ECHO_N "(cached) $ECHO_C" >&6
5693else
5694  ac_cv_use_correct_autotools=check
5695fi
5696echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5697echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5698
5699  if test $ac_cv_use_correct_autotools = check; then
5700    ac_cv_use_correct_autotools=yes
5701    # Check if we have autoconf
5702    # Extract the first word of "autoconf", so it can be a program name with args.
5703set dummy autoconf; ac_word=$2
5704echo "$as_me:$LINENO: checking for $ac_word" >&5
5705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5706if test "${ac_cv_prog_have_autoconf+set}" = set; then
5707  echo $ECHO_N "(cached) $ECHO_C" >&6
5708else
5709  if test -n "$have_autoconf"; then
5710  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5711else
5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715  IFS=$as_save_IFS
5716  test -z "$as_dir" && as_dir=.
5717  for ac_exec_ext in '' $ac_executable_extensions; do
5718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719    ac_cv_prog_have_autoconf="yes"
5720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721    break 2
5722  fi
5723done
5724done
5725
5726  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5727fi
5728fi
5729have_autoconf=$ac_cv_prog_have_autoconf
5730if test -n "$have_autoconf"; then
5731  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5732echo "${ECHO_T}$have_autoconf" >&6
5733else
5734  echo "$as_me:$LINENO: result: no" >&5
5735echo "${ECHO_T}no" >&6
5736fi
5737
5738    if test $have_autoconf = no; then
5739      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5740echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5741   { (exit 1); exit 1; }; }
5742    fi
5743
5744    # Check whether autoconf is the correct version
5745    correct_version='2.59'
5746    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5747    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5748echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5749    autoconf --version > confauto.out 2>&1
5750    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5751      echo "$as_me:$LINENO: result: yes" >&5
5752echo "${ECHO_T}yes" >&6
5753    else
5754      rm -f confauto.out
5755      echo "$as_me:$LINENO: result: no" >&5
5756echo "${ECHO_T}no" >&6
5757      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5758echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5759   { (exit 1); exit 1; }; }
5760    fi
5761    rm -f confauto.out
5762
5763    # Check if the executable autoconf is picked up from the correct location
5764    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5765echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5766    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5767    autoconf_dir=`cd $autoconf_dir; pwd`
5768    if test x$AUTOTOOLS_DIR = x; then
5769      want_dir=$AUTOTOOLS_DFLT/bin
5770    else
5771      want_dir=$AUTOTOOLS_DIR/bin
5772    fi
5773    if test $autoconf_dir = `cd $want_dir; pwd`; then
5774      echo "$as_me:$LINENO: result: yes" >&5
5775echo "${ECHO_T}yes" >&6
5776    else
5777      rm -f confauto.out
5778      echo "$as_me:$LINENO: result: no" >&5
5779echo "${ECHO_T}no" >&6
5780      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5781echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5782   { (exit 1); exit 1; }; }
5783    fi
5784
5785    # Check if we have automake
5786    # Extract the first word of "automake", so it can be a program name with args.
5787set dummy automake; ac_word=$2
5788echo "$as_me:$LINENO: checking for $ac_word" >&5
5789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790if test "${ac_cv_prog_have_automake+set}" = set; then
5791  echo $ECHO_N "(cached) $ECHO_C" >&6
5792else
5793  if test -n "$have_automake"; then
5794  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5795else
5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799  IFS=$as_save_IFS
5800  test -z "$as_dir" && as_dir=.
5801  for ac_exec_ext in '' $ac_executable_extensions; do
5802  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803    ac_cv_prog_have_automake="yes"
5804    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805    break 2
5806  fi
5807done
5808done
5809
5810  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5811fi
5812fi
5813have_automake=$ac_cv_prog_have_automake
5814if test -n "$have_automake"; then
5815  echo "$as_me:$LINENO: result: $have_automake" >&5
5816echo "${ECHO_T}$have_automake" >&6
5817else
5818  echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6
5820fi
5821
5822    if test $have_automake = no; then
5823      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5824echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5825   { (exit 1); exit 1; }; }
5826    fi
5827
5828    # Check whether automake is the correct version
5829    correct_version='1.9.6'
5830    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5831    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5832echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5833    automake --version > confauto.out 2>&1
5834    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5835      echo "$as_me:$LINENO: result: yes" >&5
5836echo "${ECHO_T}yes" >&6
5837    else
5838      rm -f confauto.out
5839      echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5842echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5843   { (exit 1); exit 1; }; }
5844    fi
5845    rm -f confauto.out
5846
5847    # Check if the executable automake is picked up from the correct location
5848    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5849echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5850    automake_dir=`which automake | sed -e 's=/automake=='`
5851    automake_dir=`cd $automake_dir; pwd`
5852    if test x$AUTOTOOLS_DIR = x; then
5853      want_dir=$AUTOTOOLS_DFLT/bin
5854    else
5855      want_dir=$AUTOTOOLS_DIR/bin
5856    fi
5857    if test $automake_dir = `cd $want_dir; pwd`; then
5858      echo "$as_me:$LINENO: result: yes" >&5
5859echo "${ECHO_T}yes" >&6
5860    else
5861      rm -f confauto.out
5862      echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
5864      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5865echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5866   { (exit 1); exit 1; }; }
5867    fi
5868
5869    # Check if this is the correct version of libtool (with escaped dots)
5870    if test x$AUTOTOOLS_DIR = x; then
5871      want_dir=$AUTOTOOLS_DFLT/share
5872    else
5873      want_dir=$AUTOTOOLS_DIR/share
5874    fi
5875    correct_version='1.5.22'
5876    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5877    if test -r $want_dir/libtool/ltmain.sh; then
5878  have_ltmain=yes
5879  :
5880else
5881  have_ltmain=no
5882  :
5883fi
5884
5885    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5886echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5887    if test $have_ltmain = yes; then
5888    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5889        echo "$as_me:$LINENO: result: yes" >&5
5890echo "${ECHO_T}yes" >&6
5891      else
5892        echo "$as_me:$LINENO: result: no" >&5
5893echo "${ECHO_T}no" >&6
5894        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5895echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5896   { (exit 1); exit 1; }; }
5897      fi
5898    else
5899      echo "$as_me:$LINENO: result: no" >&5
5900echo "${ECHO_T}no" >&6
5901      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5902echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5903   { (exit 1); exit 1; }; }
5904    fi
5905  fi
5906
5907  # Check if we can find the libtool file
5908  if test x$AUTOTOOLS_DIR = x; then
5909    want_dir=$AUTOTOOLS_DFLT/share
5910  else
5911    want_dir=$AUTOTOOLS_DIR/share
5912  fi
5913  if test -r $want_dir/aclocal/libtool.m4; then
5914  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5915  :
5916else
5917  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5918echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5919   { (exit 1); exit 1; }; }
5920  :
5921fi
5922
5923
5924  # Check if we have an Dependencies file
5925  if test -r $srcdir/Dependencies; then
5926    coin_have_externals=yes
5927  fi
5928  # Check if subversion is installed and understands https
5929  # Extract the first word of "svn", so it can be a program name with args.
5930set dummy svn; ac_word=$2
5931echo "$as_me:$LINENO: checking for $ac_word" >&5
5932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933if test "${ac_cv_prog_have_svn+set}" = set; then
5934  echo $ECHO_N "(cached) $ECHO_C" >&6
5935else
5936  if test -n "$have_svn"; then
5937  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5938else
5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942  IFS=$as_save_IFS
5943  test -z "$as_dir" && as_dir=.
5944  for ac_exec_ext in '' $ac_executable_extensions; do
5945  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946    ac_cv_prog_have_svn="yes"
5947    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948    break 2
5949  fi
5950done
5951done
5952
5953  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5954fi
5955fi
5956have_svn=$ac_cv_prog_have_svn
5957if test -n "$have_svn"; then
5958  echo "$as_me:$LINENO: result: $have_svn" >&5
5959echo "${ECHO_T}$have_svn" >&6
5960else
5961  echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6
5963fi
5964
5965  if test x$have_svn = xyes; then
5966    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5967echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5968if test "${ac_cv_svn_understands_https+set}" = set; then
5969  echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
5971  svn --version > confauto.out 2>&1
5972                    if $EGREP https confauto.out >/dev/null 2>&1; then
5973                      ac_cv_svn_understands_https=yes
5974                    else
5975                      ac_cv_svn_understands_https=no
5976                      have_svn=no
5977                      ac_cv_prog_have_svn=no
5978                    fi
5979                    rm -f confauto.out
5980fi
5981echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5982echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5983  fi
5984
5985  # Find the location of the BuildTools directory
5986  BUILDTOOLSDIR=
5987  if test -r $srcdir/BuildTools/coin.m4; then
5988    BUILDTOOLSDIR=$srcdir/BuildTools
5989  else
5990    if test -r $srcdir/../BuildTools/coin.m4; then
5991      BUILDTOOLSDIR=$srcdir/../BuildTools
5992    else
5993      if test -r $srcdir/../../BuildTools/coin.m4; then
5994        BUILDTOOLSDIR=$srcdir/../../BuildTools
5995      else
5996        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5997echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5998   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5999      fi
6000    fi
6001  fi
6002
6003
6004  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6005  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6006    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6007  fi
6008
6009  # The following variable is set to the name of the directory where
6010  # the autotool scripts are located
6011
6012  AUX_DIR=$ac_aux_dir
6013fi
6014
6015# helpful variable for the base directory of this package
6016abs_source_dir=`cd $srcdir; pwd`
6017
6018
6019# Stuff for example Makefiles
6020if test x$prefix = xNONE; then
6021  full_prefix=$ac_default_prefix
6022else
6023  full_prefix=$prefix
6024fi
6025full_prefix=`cd $full_prefix ; pwd`
6026
6027abs_lib_dir=$full_prefix/lib
6028
6029abs_include_dir=$full_prefix/include
6030
6031abs_bin_dir=$full_prefix/bin
6032
6033
6034
6035if test $coin_have_externals = yes && test x$have_svn = xyes; then
6036  HAVE_EXTERNALS_TRUE=
6037  HAVE_EXTERNALS_FALSE='#'
6038else
6039  HAVE_EXTERNALS_TRUE='#'
6040  HAVE_EXTERNALS_FALSE=
6041fi
6042
6043
6044# AC_MSG_NOTICE([End automake initialisation.])
6045
6046
6047
6048LIBTOOL=
6049if test -r ../libtool; then
6050  coin_config_dir=..
6051  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6052fi
6053if test "x$LIBTOOL" = x; then
6054  if test -r ../../libtool; then
6055    coin_config_dir=../..
6056    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6057  fi
6058fi
6059
6060if test "x$LIBTOOL" = x; then
6061# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6062  # Stuff for libtool
6063  # Check whether --enable-shared or --disable-shared was given.
6064if test "${enable_shared+set}" = set; then
6065  enableval="$enable_shared"
6066  p=${PACKAGE-default}
6067    case $enableval in
6068    yes) enable_shared=yes ;;
6069    no) enable_shared=no ;;
6070    *)
6071      enable_shared=no
6072      # Look at the argument we got.  We use all the common list separators.
6073      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6074      for pkg in $enableval; do
6075        IFS="$lt_save_ifs"
6076        if test "X$pkg" = "X$p"; then
6077          enable_shared=yes
6078        fi
6079      done
6080      IFS="$lt_save_ifs"
6081      ;;
6082    esac
6083else
6084  enable_shared=yes
6085fi;
6086
6087# Check whether --enable-fast-install or --disable-fast-install was given.
6088if test "${enable_fast_install+set}" = set; then
6089  enableval="$enable_fast_install"
6090  p=${PACKAGE-default}
6091    case $enableval in
6092    yes) enable_fast_install=yes ;;
6093    no) enable_fast_install=no ;;
6094    *)
6095      enable_fast_install=no
6096      # Look at the argument we got.  We use all the common list separators.
6097      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6098      for pkg in $enableval; do
6099        IFS="$lt_save_ifs"
6100        if test "X$pkg" = "X$p"; then
6101          enable_fast_install=yes
6102        fi
6103      done
6104      IFS="$lt_save_ifs"
6105      ;;
6106    esac
6107else
6108  enable_fast_install=yes
6109fi;
6110
6111echo "$as_me:$LINENO: checking host system type" >&5
6112echo $ECHO_N "checking host system type... $ECHO_C" >&6
6113if test "${ac_cv_host+set}" = set; then
6114  echo $ECHO_N "(cached) $ECHO_C" >&6
6115else
6116  ac_cv_host_alias=$host_alias
6117test -z "$ac_cv_host_alias" &&
6118  ac_cv_host_alias=$ac_cv_build_alias
6119ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6120  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6121echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6122   { (exit 1); exit 1; }; }
6123
6124fi
6125echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6126echo "${ECHO_T}$ac_cv_host" >&6
6127host=$ac_cv_host
6128host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6129host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6130host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6131
6132
6133echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6134echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6135if test "${lt_cv_path_SED+set}" = set; then
6136  echo $ECHO_N "(cached) $ECHO_C" >&6
6137else
6138  # Loop through the user's path and test for sed and gsed.
6139# Then use that list of sed's as ones to test for truncation.
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143  IFS=$as_save_IFS
6144  test -z "$as_dir" && as_dir=.
6145  for lt_ac_prog in sed gsed; do
6146    for ac_exec_ext in '' $ac_executable_extensions; do
6147      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6148        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6149      fi
6150    done
6151  done
6152done
6153lt_ac_max=0
6154lt_ac_count=0
6155# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6156# along with /bin/sed that truncates output.
6157for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6158  test ! -f $lt_ac_sed && continue
6159  cat /dev/null > conftest.in
6160  lt_ac_count=0
6161  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6162  # Check for GNU sed and select it if it is found.
6163  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6164    lt_cv_path_SED=$lt_ac_sed
6165    break
6166  fi
6167  while true; do
6168    cat conftest.in conftest.in >conftest.tmp
6169    mv conftest.tmp conftest.in
6170    cp conftest.in conftest.nl
6171    echo >>conftest.nl
6172    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6173    cmp -s conftest.out conftest.nl || break
6174    # 10000 chars as input seems more than enough
6175    test $lt_ac_count -gt 10 && break
6176    lt_ac_count=`expr $lt_ac_count + 1`
6177    if test $lt_ac_count -gt $lt_ac_max; then
6178      lt_ac_max=$lt_ac_count
6179      lt_cv_path_SED=$lt_ac_sed
6180    fi
6181  done
6182done
6183
6184fi
6185
6186SED=$lt_cv_path_SED
6187echo "$as_me:$LINENO: result: $SED" >&5
6188echo "${ECHO_T}$SED" >&6
6189
6190
6191# Check whether --with-gnu-ld or --without-gnu-ld was given.
6192if test "${with_gnu_ld+set}" = set; then
6193  withval="$with_gnu_ld"
6194  test "$withval" = no || with_gnu_ld=yes
6195else
6196  with_gnu_ld=no
6197fi;
6198ac_prog=ld
6199if test "$GCC" = yes; then
6200  # Check if gcc -print-prog-name=ld gives a path.
6201  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6202echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6203  case $host in
6204  *-*-mingw*)
6205    # gcc leaves a trailing carriage return which upsets mingw
6206    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6207  *)
6208    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6209  esac
6210  case $ac_prog in
6211    # Accept absolute paths.
6212    [\\/]* | ?:[\\/]*)
6213      re_direlt='/[^/][^/]*/\.\./'
6214      # Canonicalize the pathname of ld
6215      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6216      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6217        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6218      done
6219      test -z "$LD" && LD="$ac_prog"
6220      ;;
6221  "")
6222    # If it fails, then pretend we aren't using GCC.
6223    ac_prog=ld
6224    ;;
6225  *)
6226    # If it is relative, then search for the first ld in PATH.
6227    with_gnu_ld=unknown
6228    ;;
6229  esac
6230elif test "$with_gnu_ld" = yes; then
6231  echo "$as_me:$LINENO: checking for GNU ld" >&5
6232echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6233else
6234  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6235echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6236fi
6237if test "${lt_cv_path_LD+set}" = set; then
6238  echo $ECHO_N "(cached) $ECHO_C" >&6
6239else
6240  if test -z "$LD"; then
6241  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6242  for ac_dir in $PATH; do
6243    IFS="$lt_save_ifs"
6244    test -z "$ac_dir" && ac_dir=.
6245    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6246      lt_cv_path_LD="$ac_dir/$ac_prog"
6247      # Check to see if the program is GNU ld.  I'd rather use --version,
6248      # but apparently some variants of GNU ld only accept -v.
6249      # Break only if it was the GNU/non-GNU ld that we prefer.
6250      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6251      *GNU* | *'with BFD'*)
6252        test "$with_gnu_ld" != no && break
6253        ;;
6254      *)
6255        test "$with_gnu_ld" != yes && break
6256        ;;
6257      esac
6258    fi
6259  done
6260  IFS="$lt_save_ifs"
6261else
6262  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6263fi
6264fi
6265
6266LD="$lt_cv_path_LD"
6267if test -n "$LD"; then
6268  echo "$as_me:$LINENO: result: $LD" >&5
6269echo "${ECHO_T}$LD" >&6
6270else
6271  echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6
6273fi
6274test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6275echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6276   { (exit 1); exit 1; }; }
6277echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6278echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6279if test "${lt_cv_prog_gnu_ld+set}" = set; then
6280  echo $ECHO_N "(cached) $ECHO_C" >&6
6281else
6282  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6283case `$LD -v 2>&1 </dev/null` in
6284*GNU* | *'with BFD'*)
6285  lt_cv_prog_gnu_ld=yes
6286  ;;
6287*)
6288  lt_cv_prog_gnu_ld=no
6289  ;;
6290esac
6291fi
6292echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6293echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6294with_gnu_ld=$lt_cv_prog_gnu_ld
6295
6296
6297echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6298echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6299if test "${lt_cv_ld_reload_flag+set}" = set; then
6300  echo $ECHO_N "(cached) $ECHO_C" >&6
6301else
6302  lt_cv_ld_reload_flag='-r'
6303fi
6304echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6305echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6306reload_flag=$lt_cv_ld_reload_flag
6307case $reload_flag in
6308"" | " "*) ;;
6309*) reload_flag=" $reload_flag" ;;
6310esac
6311reload_cmds='$LD$reload_flag -o $output$reload_objs'
6312case $host_os in
6313  darwin*)
6314    if test "$GCC" = yes; then
6315      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6316    else
6317      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6318    fi
6319    ;;
6320esac
6321
6322echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6323echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6324if test "${lt_cv_path_NM+set}" = set; then
6325  echo $ECHO_N "(cached) $ECHO_C" >&6
6326else
6327  if test -n "$NM"; then
6328  # Let the user override the test.
6329  lt_cv_path_NM="$NM"
6330else
6331  lt_nm_to_check="${ac_tool_prefix}nm"
6332  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6333    lt_nm_to_check="$lt_nm_to_check nm"
6334  fi
6335  for lt_tmp_nm in $lt_nm_to_check; do
6336    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6337    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6338      IFS="$lt_save_ifs"
6339      test -z "$ac_dir" && ac_dir=.
6340      tmp_nm="$ac_dir/$lt_tmp_nm"
6341      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6342        # Check to see if the nm accepts a BSD-compat flag.
6343        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6344        #   nm: unknown option "B" ignored
6345        # Tru64's nm complains that /dev/null is an invalid object file
6346        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6347        */dev/null* | *'Invalid file or object type'*)
6348          lt_cv_path_NM="$tmp_nm -B"
6349          break
6350          ;;
6351        *)
6352          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6353          */dev/null*)
6354            lt_cv_path_NM="$tmp_nm -p"
6355            break
6356            ;;
6357          *)
6358            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6359            continue # so that we can try to find one that supports BSD flags
6360            ;;
6361          esac
6362          ;;
6363        esac
6364      fi
6365    done
6366    IFS="$lt_save_ifs"
6367  done
6368  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6369fi
6370fi
6371echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6372echo "${ECHO_T}$lt_cv_path_NM" >&6
6373NM="$lt_cv_path_NM"
6374
6375echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6376echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6377if test "${lt_cv_deplibs_check_method+set}" = set; then
6378  echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380  lt_cv_file_magic_cmd='$MAGIC_CMD'
6381lt_cv_file_magic_test_file=
6382lt_cv_deplibs_check_method='unknown'
6383# Need to set the preceding variable on all platforms that support
6384# interlibrary dependencies.
6385# 'none' -- dependencies not supported.
6386# `unknown' -- same as none, but documents that we really don't know.
6387# 'pass_all' -- all dependencies passed with no checks.
6388# 'test_compile' -- check by making test program.
6389# 'file_magic [[regex]]' -- check by looking for files in library path
6390# which responds to the $file_magic_cmd with a given extended regex.
6391# If you have `file' or equivalent on your system and you're not sure
6392# whether `pass_all' will *always* work, you probably want this one.
6393
6394case $host_os in
6395aix4* | aix5*)
6396  lt_cv_deplibs_check_method=pass_all
6397  ;;
6398
6399beos*)
6400  lt_cv_deplibs_check_method=pass_all
6401  ;;
6402
6403bsdi[45]*)
6404  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6405  lt_cv_file_magic_cmd='/usr/bin/file -L'
6406  lt_cv_file_magic_test_file=/shlib/libc.so
6407  ;;
6408
6409cygwin*)
6410  # func_win32_libid is a shell function defined in ltmain.sh
6411  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6412  lt_cv_file_magic_cmd='func_win32_libid'
6413  ;;
6414
6415mingw* | pw32*)
6416  # Base MSYS/MinGW do not provide the 'file' command needed by
6417  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6418  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6419  lt_cv_file_magic_cmd='$OBJDUMP -f'
6420  ;;
6421
6422darwin* | rhapsody*)
6423  lt_cv_deplibs_check_method=pass_all
6424  ;;
6425
6426freebsd* | kfreebsd*-gnu | dragonfly*)
6427  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6428    case $host_cpu in
6429    i*86 )
6430      # Not sure whether the presence of OpenBSD here was a mistake.
6431      # Let's accept both of them until this is cleared up.
6432      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6433      lt_cv_file_magic_cmd=/usr/bin/file
6434      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6435      ;;
6436    esac
6437  else
6438    lt_cv_deplibs_check_method=pass_all
6439  fi
6440  ;;
6441
6442gnu*)
6443  lt_cv_deplibs_check_method=pass_all
6444  ;;
6445
6446hpux10.20* | hpux11*)
6447  lt_cv_file_magic_cmd=/usr/bin/file
6448  case $host_cpu in
6449  ia64*)
6450    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6451    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6452    ;;
6453  hppa*64*)
6454    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6455    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6456    ;;
6457  *)
6458    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6459    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6460    ;;
6461  esac
6462  ;;
6463
6464interix3*)
6465  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6466  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6467  ;;
6468
6469irix5* | irix6* | nonstopux*)
6470  case $LD in
6471  *-32|*"-32 ") libmagic=32-bit;;
6472  *-n32|*"-n32 ") libmagic=N32;;
6473  *-64|*"-64 ") libmagic=64-bit;;
6474  *) libmagic=never-match;;
6475  esac
6476  lt_cv_deplibs_check_method=pass_all
6477  ;;
6478
6479# This must be Linux ELF.
6480linux*)
6481  lt_cv_deplibs_check_method=pass_all
6482  ;;
6483
6484netbsd*)
6485  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6486    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6487  else
6488    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6489  fi
6490  ;;
6491
6492newos6*)
6493  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6494  lt_cv_file_magic_cmd=/usr/bin/file
6495  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6496  ;;
6497
6498nto-qnx*)
6499  lt_cv_deplibs_check_method=unknown
6500  ;;
6501
6502openbsd*)
6503  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6504    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6505  else
6506    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6507  fi
6508  ;;
6509
6510osf3* | osf4* | osf5*)
6511  lt_cv_deplibs_check_method=pass_all
6512  ;;
6513
6514solaris*)
6515  lt_cv_deplibs_check_method=pass_all
6516  ;;
6517
6518sysv4 | sysv4.3*)
6519  case $host_vendor in
6520  motorola)
6521    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6522    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6523    ;;
6524  ncr)
6525    lt_cv_deplibs_check_method=pass_all
6526    ;;
6527  sequent)
6528    lt_cv_file_magic_cmd='/bin/file'
6529    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6530    ;;
6531  sni)
6532    lt_cv_file_magic_cmd='/bin/file'
6533    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6534    lt_cv_file_magic_test_file=/lib/libc.so
6535    ;;
6536  siemens)
6537    lt_cv_deplibs_check_method=pass_all
6538    ;;
6539  pc)
6540    lt_cv_deplibs_check_method=pass_all
6541    ;;
6542  esac
6543  ;;
6544
6545sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6546  lt_cv_deplibs_check_method=pass_all
6547  ;;
6548esac
6549
6550fi
6551echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6552echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6553file_magic_cmd=$lt_cv_file_magic_cmd
6554deplibs_check_method=$lt_cv_deplibs_check_method
6555test -z "$deplibs_check_method" && deplibs_check_method=unknown
6556
6557
6558
6559
6560# If no C compiler was specified, use CC.
6561LTCC=${LTCC-"$CC"}
6562
6563# If no C compiler flags were specified, use CFLAGS.
6564LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6565
6566# Allow CC to be a program name with arguments.
6567compiler=$CC
6568
6569# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6570if test "${enable_libtool_lock+set}" = set; then
6571  enableval="$enable_libtool_lock"
6572
6573fi;
6574test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6575
6576# Some flags need to be propagated to the compiler or linker for good
6577# libtool support.
6578case $host in
6579ia64-*-hpux*)
6580  # Find out which ABI we are using.
6581  echo 'int i;' > conftest.$ac_ext
6582  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583  (eval $ac_compile) 2>&5
6584  ac_status=$?
6585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586  (exit $ac_status); }; then
6587    case `/usr/bin/file conftest.$ac_objext` in
6588    *ELF-32*)
6589      HPUX_IA64_MODE="32"
6590      ;;
6591    *ELF-64*)
6592      HPUX_IA64_MODE="64"
6593      ;;
6594    esac
6595  fi
6596  rm -rf conftest*
6597  ;;
6598*-*-irix6*)
6599  # Find out which ABI we are using.
6600  echo '#line 6600 "configure"' > conftest.$ac_ext
6601  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602  (eval $ac_compile) 2>&5
6603  ac_status=$?
6604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605  (exit $ac_status); }; then
6606   if test "$lt_cv_prog_gnu_ld" = yes; then
6607    case `/usr/bin/file conftest.$ac_objext` in
6608    *32-bit*)
6609      LD="${LD-ld} -melf32bsmip"
6610      ;;
6611    *N32*)
6612      LD="${LD-ld} -melf32bmipn32"
6613      ;;
6614    *64-bit*)
6615      LD="${LD-ld} -melf64bmip"
6616      ;;
6617    esac
6618   else
6619    case `/usr/bin/file conftest.$ac_objext` in
6620    *32-bit*)
6621      LD="${LD-ld} -32"
6622      ;;
6623    *N32*)
6624      LD="${LD-ld} -n32"
6625      ;;
6626    *64-bit*)
6627      LD="${LD-ld} -64"
6628      ;;
6629    esac
6630   fi
6631  fi
6632  rm -rf conftest*
6633  ;;
6634
6635x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6636  # Find out which ABI we are using.
6637  echo 'int i;' > conftest.$ac_ext
6638  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6639  (eval $ac_compile) 2>&5
6640  ac_status=$?
6641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642  (exit $ac_status); }; then
6643    case `/usr/bin/file conftest.o` in
6644    *32-bit*)
6645      case $host in
6646        x86_64-*linux*)
6647          LD="${LD-ld} -m elf_i386"
6648          ;;
6649        ppc64-*linux*|powerpc64-*linux*)
6650          LD="${LD-ld} -m elf32ppclinux"
6651          ;;
6652        s390x-*linux*)
6653          LD="${LD-ld} -m elf_s390"
6654          ;;
6655        sparc64-*linux*)
6656          LD="${LD-ld} -m elf32_sparc"
6657          ;;
6658      esac
6659      ;;
6660    *64-bit*)
6661      case $host in
6662        x86_64-*linux*)
6663          LD="${LD-ld} -m elf_x86_64"
6664          ;;
6665        ppc*-*linux*|powerpc*-*linux*)
6666          LD="${LD-ld} -m elf64ppc"
6667          ;;
6668        s390*-*linux*)
6669          LD="${LD-ld} -m elf64_s390"
6670          ;;
6671        sparc*-*linux*)
6672          LD="${LD-ld} -m elf64_sparc"
6673          ;;
6674      esac
6675      ;;
6676    esac
6677  fi
6678  rm -rf conftest*
6679  ;;
6680
6681*-*-sco3.2v5*)
6682  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6683  SAVE_CFLAGS="$CFLAGS"
6684  CFLAGS="$CFLAGS -belf"
6685  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6686echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6687if test "${lt_cv_cc_needs_belf+set}" = set; then
6688  echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690  ac_ext=c
6691ac_cpp='$CPP $CPPFLAGS'
6692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6694ac_compiler_gnu=$ac_cv_c_compiler_gnu
6695
6696     cat >conftest.$ac_ext <<_ACEOF
6697/* confdefs.h.  */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
6701/* end confdefs.h.  */
6702
6703int
6704main ()
6705{
6706
6707  ;
6708  return 0;
6709}
6710_ACEOF
6711rm -f conftest.$ac_objext conftest$ac_exeext
6712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713  (eval $ac_link) 2>conftest.er1
6714  ac_status=$?
6715  grep -v '^ *+' conftest.er1 >conftest.err
6716  rm -f conftest.er1
6717  cat conftest.err >&5
6718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719  (exit $ac_status); } &&
6720         { ac_try='test -z "$ac_c_werror_flag"
6721                         || test ! -s conftest.err'
6722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723  (eval $ac_try) 2>&5
6724  ac_status=$?
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); }; } &&
6727         { ac_try='test -s conftest$ac_exeext'
6728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729  (eval $ac_try) 2>&5
6730  ac_status=$?
6731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732  (exit $ac_status); }; }; then
6733  lt_cv_cc_needs_belf=yes
6734else
6735  echo "$as_me: failed program was:" >&5
6736sed 's/^/| /' conftest.$ac_ext >&5
6737
6738lt_cv_cc_needs_belf=no
6739fi
6740rm -f conftest.err conftest.$ac_objext \
6741      conftest$ac_exeext conftest.$ac_ext
6742     ac_ext=c
6743ac_cpp='$CPP $CPPFLAGS'
6744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6746ac_compiler_gnu=$ac_cv_c_compiler_gnu
6747
6748fi
6749echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6750echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6751  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6752    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6753    CFLAGS="$SAVE_CFLAGS"
6754  fi
6755  ;;
6756sparc*-*solaris*)
6757  # Find out which ABI we are using.
6758  echo 'int i;' > conftest.$ac_ext
6759  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760  (eval $ac_compile) 2>&5
6761  ac_status=$?
6762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763  (exit $ac_status); }; then
6764    case `/usr/bin/file conftest.o` in
6765    *64-bit*)
6766      case $lt_cv_prog_gnu_ld in
6767      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6768      *)    LD="${LD-ld} -64" ;;
6769      esac
6770      ;;
6771    esac
6772  fi
6773  rm -rf conftest*
6774  ;;
6775
6776
6777esac
6778
6779need_locks="$enable_libtool_lock"
6780
6781
6782ac_ext=c
6783ac_cpp='$CPP $CPPFLAGS'
6784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786ac_compiler_gnu=$ac_cv_c_compiler_gnu
6787echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6788echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6789# On Suns, sometimes $CPP names a directory.
6790if test -n "$CPP" && test -d "$CPP"; then
6791  CPP=
6792fi
6793if test -z "$CPP"; then
6794  if test "${ac_cv_prog_CPP+set}" = set; then
6795  echo $ECHO_N "(cached) $ECHO_C" >&6
6796else
6797      # Double quotes because CPP needs to be expanded
6798    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6799    do
6800      ac_preproc_ok=false
6801for ac_c_preproc_warn_flag in '' yes
6802do
6803  # Use a header file that comes with gcc, so configuring glibc
6804  # with a fresh cross-compiler works.
6805  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6806  # <limits.h> exists even on freestanding compilers.
6807  # On the NeXT, cc -E runs the code through the compiler's parser,
6808  # not just through cpp. "Syntax error" is here to catch this case.
6809  cat >conftest.$ac_ext <<_ACEOF
6810/* confdefs.h.  */
6811_ACEOF
6812cat confdefs.h >>conftest.$ac_ext
6813cat >>conftest.$ac_ext <<_ACEOF
6814/* end confdefs.h.  */
6815#ifdef __STDC__
6816# include <limits.h>
6817#else
6818# include <assert.h>
6819#endif
6820                     Syntax error
6821_ACEOF
6822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6823  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6824  ac_status=$?
6825  grep -v '^ *+' conftest.er1 >conftest.err
6826  rm -f conftest.er1
6827  cat conftest.err >&5
6828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829  (exit $ac_status); } >/dev/null; then
6830  if test -s conftest.err; then
6831    ac_cpp_err=$ac_c_preproc_warn_flag
6832    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6833  else
6834    ac_cpp_err=
6835  fi
6836else
6837  ac_cpp_err=yes
6838fi
6839if test -z "$ac_cpp_err"; then
6840  :
6841else
6842  echo "$as_me: failed program was:" >&5
6843sed 's/^/| /' conftest.$ac_ext >&5
6844
6845  # Broken: fails on valid input.
6846continue
6847fi
6848rm -f conftest.err conftest.$ac_ext
6849
6850  # OK, works on sane cases.  Now check whether non-existent headers
6851  # can be detected and how.
6852  cat >conftest.$ac_ext <<_ACEOF
6853/* confdefs.h.  */
6854_ACEOF
6855cat confdefs.h >>conftest.$ac_ext
6856cat >>conftest.$ac_ext <<_ACEOF
6857/* end confdefs.h.  */
6858#include <ac_nonexistent.h>
6859_ACEOF
6860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6861  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6862  ac_status=$?
6863  grep -v '^ *+' conftest.er1 >conftest.err
6864  rm -f conftest.er1
6865  cat conftest.err >&5
6866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867  (exit $ac_status); } >/dev/null; then
6868  if test -s conftest.err; then
6869    ac_cpp_err=$ac_c_preproc_warn_flag
6870    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6871  else
6872    ac_cpp_err=
6873  fi
6874else
6875  ac_cpp_err=yes
6876fi
6877if test -z "$ac_cpp_err"; then
6878  # Broken: success on invalid input.
6879continue
6880else
6881  echo "$as_me: failed program was:" >&5
6882sed 's/^/| /' conftest.$ac_ext >&5
6883
6884  # Passes both tests.
6885ac_preproc_ok=:
6886break
6887fi
6888rm -f conftest.err conftest.$ac_ext
6889
6890done
6891# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6892rm -f conftest.err conftest.$ac_ext
6893if $ac_preproc_ok; then
6894  break
6895fi
6896
6897    done
6898    ac_cv_prog_CPP=$CPP
6899
6900fi
6901  CPP=$ac_cv_prog_CPP
6902else
6903  ac_cv_prog_CPP=$CPP
6904fi
6905echo "$as_me:$LINENO: result: $CPP" >&5
6906echo "${ECHO_T}$CPP" >&6
6907ac_preproc_ok=false
6908for ac_c_preproc_warn_flag in '' yes
6909do
6910  # Use a header file that comes with gcc, so configuring glibc
6911  # with a fresh cross-compiler works.
6912  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6913  # <limits.h> exists even on freestanding compilers.
6914  # On the NeXT, cc -E runs the code through the compiler's parser,
6915  # not just through cpp. "Syntax error" is here to catch this case.
6916  cat >conftest.$ac_ext <<_ACEOF
6917/* confdefs.h.  */
6918_ACEOF
6919cat confdefs.h >>conftest.$ac_ext
6920cat >>conftest.$ac_ext <<_ACEOF
6921/* end confdefs.h.  */
6922#ifdef __STDC__
6923# include <limits.h>
6924#else
6925# include <assert.h>
6926#endif
6927                     Syntax error
6928_ACEOF
6929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6930  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6931  ac_status=$?
6932  grep -v '^ *+' conftest.er1 >conftest.err
6933  rm -f conftest.er1
6934  cat conftest.err >&5
6935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936  (exit $ac_status); } >/dev/null; then
6937  if test -s conftest.err; then
6938    ac_cpp_err=$ac_c_preproc_warn_flag
6939    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6940  else
6941    ac_cpp_err=
6942  fi
6943else
6944  ac_cpp_err=yes
6945fi
6946if test -z "$ac_cpp_err"; then
6947  :
6948else
6949  echo "$as_me: failed program was:" >&5
6950sed 's/^/| /' conftest.$ac_ext >&5
6951
6952  # Broken: fails on valid input.
6953continue
6954fi
6955rm -f conftest.err conftest.$ac_ext
6956
6957  # OK, works on sane cases.  Now check whether non-existent headers
6958  # can be detected and how.
6959  cat >conftest.$ac_ext <<_ACEOF
6960/* confdefs.h.  */
6961_ACEOF
6962cat confdefs.h >>conftest.$ac_ext
6963cat >>conftest.$ac_ext <<_ACEOF
6964/* end confdefs.h.  */
6965#include <ac_nonexistent.h>
6966_ACEOF
6967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6968  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6969  ac_status=$?
6970  grep -v '^ *+' conftest.er1 >conftest.err
6971  rm -f conftest.er1
6972  cat conftest.err >&5
6973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974  (exit $ac_status); } >/dev/null; then
6975  if test -s conftest.err; then
6976    ac_cpp_err=$ac_c_preproc_warn_flag
6977    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6978  else
6979    ac_cpp_err=
6980  fi
6981else
6982  ac_cpp_err=yes
6983fi
6984if test -z "$ac_cpp_err"; then
6985  # Broken: success on invalid input.
6986continue
6987else
6988  echo "$as_me: failed program was:" >&5
6989sed 's/^/| /' conftest.$ac_ext >&5
6990
6991  # Passes both tests.
6992ac_preproc_ok=:
6993break
6994fi
6995rm -f conftest.err conftest.$ac_ext
6996
6997done
6998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6999rm -f conftest.err conftest.$ac_ext
7000if $ac_preproc_ok; then
7001  :
7002else
7003  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7004See \`config.log' for more details." >&5
7005echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7006See \`config.log' for more details." >&2;}
7007   { (exit 1); exit 1; }; }
7008fi
7009
7010ac_ext=c
7011ac_cpp='$CPP $CPPFLAGS'
7012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015
7016
7017echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7018echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7019if test "${ac_cv_header_stdc+set}" = set; then
7020  echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022  cat >conftest.$ac_ext <<_ACEOF
7023/* confdefs.h.  */
7024_ACEOF
7025cat confdefs.h >>conftest.$ac_ext
7026cat >>conftest.$ac_ext <<_ACEOF
7027/* end confdefs.h.  */
7028#include <stdlib.h>
7029#include <stdarg.h>
7030#include <string.h>
7031#include <float.h>
7032
7033int
7034main ()
7035{
7036
7037  ;
7038  return 0;
7039}
7040_ACEOF
7041rm -f conftest.$ac_objext
7042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043  (eval $ac_compile) 2>conftest.er1
7044  ac_status=$?
7045  grep -v '^ *+' conftest.er1 >conftest.err
7046  rm -f conftest.er1
7047  cat conftest.err >&5
7048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049  (exit $ac_status); } &&
7050         { ac_try='test -z "$ac_c_werror_flag"
7051                         || test ! -s conftest.err'
7052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053  (eval $ac_try) 2>&5
7054  ac_status=$?
7055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056  (exit $ac_status); }; } &&
7057         { ac_try='test -s conftest.$ac_objext'
7058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059  (eval $ac_try) 2>&5
7060  ac_status=$?
7061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062  (exit $ac_status); }; }; then
7063  ac_cv_header_stdc=yes
7064else
7065  echo "$as_me: failed program was:" >&5
7066sed 's/^/| /' conftest.$ac_ext >&5
7067
7068ac_cv_header_stdc=no
7069fi
7070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071
7072if test $ac_cv_header_stdc = yes; then
7073  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7074  cat >conftest.$ac_ext <<_ACEOF
7075/* confdefs.h.  */
7076_ACEOF
7077cat confdefs.h >>conftest.$ac_ext
7078cat >>conftest.$ac_ext <<_ACEOF
7079/* end confdefs.h.  */
7080#include <string.h>
7081
7082_ACEOF
7083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084  $EGREP "memchr" >/dev/null 2>&1; then
7085  :
7086else
7087  ac_cv_header_stdc=no
7088fi
7089rm -f conftest*
7090
7091fi
7092
7093if test $ac_cv_header_stdc = yes; then
7094  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7095  cat >conftest.$ac_ext <<_ACEOF
7096/* confdefs.h.  */
7097_ACEOF
7098cat confdefs.h >>conftest.$ac_ext
7099cat >>conftest.$ac_ext <<_ACEOF
7100/* end confdefs.h.  */
7101#include <stdlib.h>
7102
7103_ACEOF
7104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7105  $EGREP "free" >/dev/null 2>&1; then
7106  :
7107else
7108  ac_cv_header_stdc=no
7109fi
7110rm -f conftest*
7111
7112fi
7113
7114if test $ac_cv_header_stdc = yes; then
7115  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7116  if test "$cross_compiling" = yes; then
7117  :
7118else
7119  cat >conftest.$ac_ext <<_ACEOF
7120/* confdefs.h.  */
7121_ACEOF
7122cat confdefs.h >>conftest.$ac_ext
7123cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h.  */
7125#include <ctype.h>
7126#if ((' ' & 0x0FF) == 0x020)
7127# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7128# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7129#else
7130# define ISLOWER(c) \
7131                   (('a' <= (c) && (c) <= 'i') \
7132                     || ('j' <= (c) && (c) <= 'r') \
7133                     || ('s' <= (c) && (c) <= 'z'))
7134# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7135#endif
7136
7137#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7138int
7139main ()
7140{
7141  int i;
7142  for (i = 0; i < 256; i++)
7143    if (XOR (islower (i), ISLOWER (i))
7144        || toupper (i) != TOUPPER (i))
7145      exit(2);
7146  exit (0);
7147}
7148_ACEOF
7149rm -f conftest$ac_exeext
7150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151  (eval $ac_link) 2>&5
7152  ac_status=$?
7153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156  (eval $ac_try) 2>&5
7157  ac_status=$?
7158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159  (exit $ac_status); }; }; then
7160  :
7161else
7162  echo "$as_me: program exited with status $ac_status" >&5
7163echo "$as_me: failed program was:" >&5
7164sed 's/^/| /' conftest.$ac_ext >&5
7165
7166( exit $ac_status )
7167ac_cv_header_stdc=no
7168fi
7169rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7170fi
7171fi
7172fi
7173echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7174echo "${ECHO_T}$ac_cv_header_stdc" >&6
7175if test $ac_cv_header_stdc = yes; then
7176
7177cat >>confdefs.h <<\_ACEOF
7178#define STDC_HEADERS 1
7179_ACEOF
7180
7181fi
7182
7183# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7194                  inttypes.h stdint.h unistd.h
7195do
7196as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7197echo "$as_me:$LINENO: checking for $ac_header" >&5
7198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7199if eval "test \"\${$as_ac_Header+set}\" = set"; then
7200  echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202  cat >conftest.$ac_ext <<_ACEOF
7203/* confdefs.h.  */
7204_ACEOF
7205cat confdefs.h >>conftest.$ac_ext
7206cat >>conftest.$ac_ext <<_ACEOF
7207/* end confdefs.h.  */
7208$ac_includes_default
7209
7210#include <$ac_header>
7211_ACEOF
7212rm -f conftest.$ac_objext
7213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214  (eval $ac_compile) 2>conftest.er1
7215  ac_status=$?
7216  grep -v '^ *+' conftest.er1 >conftest.err
7217  rm -f conftest.er1
7218  cat conftest.err >&5
7219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220  (exit $ac_status); } &&
7221         { ac_try='test -z "$ac_c_werror_flag"
7222                         || test ! -s conftest.err'
7223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224  (eval $ac_try) 2>&5
7225  ac_status=$?
7226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227  (exit $ac_status); }; } &&
7228         { ac_try='test -s conftest.$ac_objext'
7229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230  (eval $ac_try) 2>&5
7231  ac_status=$?
7232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233  (exit $ac_status); }; }; then
7234  eval "$as_ac_Header=yes"
7235else
7236  echo "$as_me: failed program was:" >&5
7237sed 's/^/| /' conftest.$ac_ext >&5
7238
7239eval "$as_ac_Header=no"
7240fi
7241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242fi
7243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7245if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246  cat >>confdefs.h <<_ACEOF
7247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7248_ACEOF
7249
7250fi
7251
7252done
7253
7254
7255
7256for ac_header in dlfcn.h
7257do
7258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7259if eval "test \"\${$as_ac_Header+set}\" = set"; then
7260  echo "$as_me:$LINENO: checking for $ac_header" >&5
7261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7262if eval "test \"\${$as_ac_Header+set}\" = set"; then
7263  echo $ECHO_N "(cached) $ECHO_C" >&6
7264fi
7265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7267else
7268  # Is the header compilable?
7269echo "$as_me:$LINENO: checking $ac_header usability" >&5
7270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7271cat >conftest.$ac_ext <<_ACEOF
7272/* confdefs.h.  */
7273_ACEOF
7274cat confdefs.h >>conftest.$ac_ext
7275cat >>conftest.$ac_ext <<_ACEOF
7276/* end confdefs.h.  */
7277$ac_includes_default
7278#include <$ac_header>
7279_ACEOF
7280rm -f conftest.$ac_objext
7281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7282  (eval $ac_compile) 2>conftest.er1
7283  ac_status=$?
7284  grep -v '^ *+' conftest.er1 >conftest.err
7285  rm -f conftest.er1
7286  cat conftest.err >&5
7287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288  (exit $ac_status); } &&
7289         { ac_try='test -z "$ac_c_werror_flag"
7290                         || test ! -s conftest.err'
7291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292  (eval $ac_try) 2>&5
7293  ac_status=$?
7294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295  (exit $ac_status); }; } &&
7296         { ac_try='test -s conftest.$ac_objext'
7297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298  (eval $ac_try) 2>&5
7299  ac_status=$?
7300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301  (exit $ac_status); }; }; then
7302  ac_header_compiler=yes
7303else
7304  echo "$as_me: failed program was:" >&5
7305sed 's/^/| /' conftest.$ac_ext >&5
7306
7307ac_header_compiler=no
7308fi
7309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7310echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7311echo "${ECHO_T}$ac_header_compiler" >&6
7312
7313# Is the header present?
7314echo "$as_me:$LINENO: checking $ac_header presence" >&5
7315echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7316cat >conftest.$ac_ext <<_ACEOF
7317/* confdefs.h.  */
7318_ACEOF
7319cat confdefs.h >>conftest.$ac_ext
7320cat >>conftest.$ac_ext <<_ACEOF
7321/* end confdefs.h.  */
7322#include <$ac_header>
7323_ACEOF
7324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7325  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7326  ac_status=$?
7327  grep -v '^ *+' conftest.er1 >conftest.err
7328  rm -f conftest.er1
7329  cat conftest.err >&5
7330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331  (exit $ac_status); } >/dev/null; then
7332  if test -s conftest.err; then
7333    ac_cpp_err=$ac_c_preproc_warn_flag
7334    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7335  else
7336    ac_cpp_err=
7337  fi
7338else
7339  ac_cpp_err=yes
7340fi
7341if test -z "$ac_cpp_err"; then
7342  ac_header_preproc=yes
7343else
7344  echo "$as_me: failed program was:" >&5
7345sed 's/^/| /' conftest.$ac_ext >&5
7346
7347  ac_header_preproc=no
7348fi
7349rm -f conftest.err conftest.$ac_ext
7350echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7351echo "${ECHO_T}$ac_header_preproc" >&6
7352
7353# So?  What about this header?
7354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7355  yes:no: )
7356    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7358    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7360    ac_header_preproc=yes
7361    ;;
7362  no:yes:* )
7363    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7365    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7366echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7367    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7369    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7370echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7371    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7373    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7375    (
7376      cat <<\_ASBOX
7377## --------------------------------------- ##
7378## Report this to couenne@list.coin-or.org ##
7379## --------------------------------------- ##
7380_ASBOX
7381    ) |
7382      sed "s/^/$as_me: WARNING:     /" >&2
7383    ;;
7384esac
7385echo "$as_me:$LINENO: checking for $ac_header" >&5
7386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7387if eval "test \"\${$as_ac_Header+set}\" = set"; then
7388  echo $ECHO_N "(cached) $ECHO_C" >&6
7389else
7390  eval "$as_ac_Header=\$ac_header_preproc"
7391fi
7392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7394
7395fi
7396if test `eval echo '${'$as_ac_Header'}'` = yes; then
7397  cat >>confdefs.h <<_ACEOF
7398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7399_ACEOF
7400
7401fi
7402
7403done
7404
7405
7406
7407if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7408    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7409    (test "X$CXX" != "Xg++"))) ; then
7410  ac_ext=cc
7411ac_cpp='$CXXCPP $CPPFLAGS'
7412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7415echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7416echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7417if test -z "$CXXCPP"; then
7418  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7419  echo $ECHO_N "(cached) $ECHO_C" >&6
7420else
7421      # Double quotes because CXXCPP needs to be expanded
7422    for CXXCPP in "$CXX -E" "/lib/cpp"
7423    do
7424      ac_preproc_ok=false
7425for ac_cxx_preproc_warn_flag in '' yes
7426do
7427  # Use a header file that comes with gcc, so configuring glibc
7428  # with a fresh cross-compiler works.
7429  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7430  # <limits.h> exists even on freestanding compilers.
7431  # On the NeXT, cc -E runs the code through the compiler's parser,
7432  # not just through cpp. "Syntax error" is here to catch this case.
7433  cat >conftest.$ac_ext <<_ACEOF
7434/* confdefs.h.  */
7435_ACEOF
7436cat confdefs.h >>conftest.$ac_ext
7437cat >>conftest.$ac_ext <<_ACEOF
7438/* end confdefs.h.  */
7439#ifdef __STDC__
7440# include <limits.h>
7441#else
7442# include <assert.h>
7443#endif
7444                     Syntax error
7445_ACEOF
7446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7447  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7448  ac_status=$?
7449  grep -v '^ *+' conftest.er1 >conftest.err
7450  rm -f conftest.er1
7451  cat conftest.err >&5
7452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453  (exit $ac_status); } >/dev/null; then
7454  if test -s conftest.err; then
7455    ac_cpp_err=$ac_cxx_preproc_warn_flag
7456    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7457  else
7458    ac_cpp_err=
7459  fi
7460else
7461  ac_cpp_err=yes
7462fi
7463if test -z "$ac_cpp_err"; then
7464  :
7465else
7466  echo "$as_me: failed program was:" >&5
7467sed 's/^/| /' conftest.$ac_ext >&5
7468
7469  # Broken: fails on valid input.
7470continue
7471fi
7472rm -f conftest.err conftest.$ac_ext
7473
7474  # OK, works on sane cases.  Now check whether non-existent headers
7475  # can be detected and how.
7476  cat >conftest.$ac_ext <<_ACEOF
7477/* confdefs.h.  */
7478_ACEOF
7479cat confdefs.h >>conftest.$ac_ext
7480cat >>conftest.$ac_ext <<_ACEOF
7481/* end confdefs.h.  */
7482#include <ac_nonexistent.h>
7483_ACEOF
7484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7485  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7486  ac_status=$?
7487  grep -v '^ *+' conftest.er1 >conftest.err
7488  rm -f conftest.er1
7489  cat conftest.err >&5
7490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491  (exit $ac_status); } >/dev/null; then
7492  if test -s conftest.err; then
7493    ac_cpp_err=$ac_cxx_preproc_warn_flag
7494    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7495  else
7496    ac_cpp_err=
7497  fi
7498else
7499  ac_cpp_err=yes
7500fi
7501if test -z "$ac_cpp_err"; then
7502  # Broken: success on invalid input.
7503continue
7504else
7505  echo "$as_me: failed program was:" >&5
7506sed 's/^/| /' conftest.$ac_ext >&5
7507
7508  # Passes both tests.
7509ac_preproc_ok=:
7510break
7511fi
7512rm -f conftest.err conftest.$ac_ext
7513
7514done
7515# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7516rm -f conftest.err conftest.$ac_ext
7517if $ac_preproc_ok; then
7518  break
7519fi
7520
7521    done
7522    ac_cv_prog_CXXCPP=$CXXCPP
7523
7524fi
7525  CXXCPP=$ac_cv_prog_CXXCPP
7526else
7527  ac_cv_prog_CXXCPP=$CXXCPP
7528fi
7529echo "$as_me:$LINENO: result: $CXXCPP" >&5
7530echo "${ECHO_T}$CXXCPP" >&6
7531ac_preproc_ok=false
7532for ac_cxx_preproc_warn_flag in '' yes
7533do
7534  # Use a header file that comes with gcc, so configuring glibc
7535  # with a fresh cross-compiler works.
7536  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7537  # <limits.h> exists even on freestanding compilers.
7538  # On the NeXT, cc -E runs the code through the compiler's parser,
7539  # not just through cpp. "Syntax error" is here to catch this case.
7540  cat >conftest.$ac_ext <<_ACEOF
7541/* confdefs.h.  */
7542_ACEOF
7543cat confdefs.h >>conftest.$ac_ext
7544cat >>conftest.$ac_ext <<_ACEOF
7545/* end confdefs.h.  */
7546#ifdef __STDC__
7547# include <limits.h>
7548#else
7549# include <assert.h>
7550#endif
7551                     Syntax error
7552_ACEOF
7553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7554  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7555  ac_status=$?
7556  grep -v '^ *+' conftest.er1 >conftest.err
7557  rm -f conftest.er1
7558  cat conftest.err >&5
7559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560  (exit $ac_status); } >/dev/null; then
7561  if test -s conftest.err; then
7562    ac_cpp_err=$ac_cxx_preproc_warn_flag
7563    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7564  else
7565    ac_cpp_err=
7566  fi
7567else
7568  ac_cpp_err=yes
7569fi
7570if test -z "$ac_cpp_err"; then
7571  :
7572else
7573  echo "$as_me: failed program was:" >&5
7574sed 's/^/| /' conftest.$ac_ext >&5
7575
7576  # Broken: fails on valid input.
7577continue
7578fi
7579rm -f conftest.err conftest.$ac_ext
7580
7581  # OK, works on sane cases.  Now check whether non-existent headers
7582  # can be detected and how.
7583  cat >conftest.$ac_ext <<_ACEOF
7584/* confdefs.h.  */
7585_ACEOF
7586cat confdefs.h >>conftest.$ac_ext
7587cat >>conftest.$ac_ext <<_ACEOF
7588/* end confdefs.h.  */
7589#include <ac_nonexistent.h>
7590_ACEOF
7591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7592  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7593  ac_status=$?
7594  grep -v '^ *+' conftest.er1 >conftest.err
7595  rm -f conftest.er1
7596  cat conftest.err >&5
7597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598  (exit $ac_status); } >/dev/null; then
7599  if test -s conftest.err; then
7600    ac_cpp_err=$ac_cxx_preproc_warn_flag
7601    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7602  else
7603    ac_cpp_err=
7604  fi
7605else
7606  ac_cpp_err=yes
7607fi
7608if test -z "$ac_cpp_err"; then
7609  # Broken: success on invalid input.
7610continue
7611else
7612  echo "$as_me: failed program was:" >&5
7613sed 's/^/| /' conftest.$ac_ext >&5
7614
7615  # Passes both tests.
7616ac_preproc_ok=:
7617break
7618fi
7619rm -f conftest.err conftest.$ac_ext
7620
7621done
7622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7623rm -f conftest.err conftest.$ac_ext
7624if $ac_preproc_ok; then
7625  :
7626else
7627  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7628See \`config.log' for more details." >&5
7629echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7630See \`config.log' for more details." >&2;}
7631   { (exit 1); exit 1; }; }
7632fi
7633
7634ac_ext=cc
7635ac_cpp='$CXXCPP $CPPFLAGS'
7636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7639
7640fi
7641
7642
7643# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7644
7645# find the maximum length of command line arguments
7646echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7647echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7648if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7649  echo $ECHO_N "(cached) $ECHO_C" >&6
7650else
7651    i=0
7652  teststring="ABCD"
7653
7654  case $build_os in
7655  msdosdjgpp*)
7656    # On DJGPP, this test can blow up pretty badly due to problems in libc
7657    # (any single argument exceeding 2000 bytes causes a buffer overrun
7658    # during glob expansion).  Even if it were fixed, the result of this
7659    # check would be larger than it should be.
7660    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7661    ;;
7662
7663  gnu*)
7664    # Under GNU Hurd, this test is not required because there is
7665    # no limit to the length of command line arguments.
7666    # Libtool will interpret -1 as no limit whatsoever
7667    lt_cv_sys_max_cmd_len=-1;
7668    ;;
7669
7670  cygwin* | mingw*)
7671    # On Win9x/ME, this test blows up -- it succeeds, but takes
7672    # about 5 minutes as the teststring grows exponentially.
7673    # Worse, since 9x/ME are not pre-emptively multitasking,
7674    # you end up with a "frozen" computer, even though with patience
7675    # the test eventually succeeds (with a max line length of 256k).
7676    # Instead, let's just punt: use the minimum linelength reported by
7677    # all of the supported platforms: 8192 (on NT/2K/XP).
7678    lt_cv_sys_max_cmd_len=8192;
7679    ;;
7680
7681  amigaos*)
7682    # On AmigaOS with pdksh, this test takes hours, literally.
7683    # So we just punt and use a minimum line length of 8192.
7684    lt_cv_sys_max_cmd_len=8192;
7685    ;;
7686
7687  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7688    # This has been around since 386BSD, at least.  Likely further.
7689    if test -x /sbin/sysctl; then
7690      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7691    elif test -x /usr/sbin/sysctl; then
7692      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7693    else
7694      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7695    fi
7696    # And add a safety zone
7697    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7698    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7699    ;;
7700
7701  interix*)
7702    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7703    lt_cv_sys_max_cmd_len=196608
7704    ;;
7705
7706  osf*)
7707    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7708    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7709    # nice to cause kernel panics so lets avoid the loop below.
7710    # First set a reasonable default.
7711    lt_cv_sys_max_cmd_len=16384
7712    #
7713    if test -x /sbin/sysconfig; then
7714      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7715        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7716      esac
7717    fi
7718    ;;
7719  sco3.2v5*)
7720    lt_cv_sys_max_cmd_len=102400
7721    ;;
7722  sysv5* | sco5v6* | sysv4.2uw2*)
7723    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7724    if test -n "$kargmax"; then
7725      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7726    else
7727      lt_cv_sys_max_cmd_len=32768
7728    fi
7729    ;;
7730  *)
7731    # If test is not a shell built-in, we'll probably end up computing a
7732    # maximum length that is only half of the actual maximum length, but
7733    # we can't tell.
7734    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7735    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7736               = "XX$teststring") >/dev/null 2>&1 &&
7737            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7738            lt_cv_sys_max_cmd_len=$new_result &&
7739            test $i != 17 # 1/2 MB should be enough
7740    do
7741      i=`expr $i + 1`
7742      teststring=$teststring$teststring
7743    done
7744    teststring=
7745    # Add a significant safety factor because C++ compilers can tack on massive
7746    # amounts of additional arguments before passing them to the linker.
7747    # It appears as though 1/2 is a usable value.
7748    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7749    ;;
7750  esac
7751
7752fi
7753
7754if test -n $lt_cv_sys_max_cmd_len ; then
7755  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7756echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7757else
7758  echo "$as_me:$LINENO: result: none" >&5
7759echo "${ECHO_T}none" >&6
7760fi
7761
7762
7763
7764
7765# Check for command to grab the raw symbol name followed by C symbol from nm.
7766echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7767echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7768if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7769  echo $ECHO_N "(cached) $ECHO_C" >&6
7770else
7771
7772# These are sane defaults that work on at least a few old systems.
7773# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7774
7775# Character class describing NM global symbol codes.
7776symcode='[BCDEGRST]'
7777
7778# Regexp to match symbols that can be accessed directly from C.
7779sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7780
7781# Transform an extracted symbol line into a proper C declaration
7782lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7783
7784# Transform an extracted symbol line into symbol name and symbol address
7785lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7786
7787# Define system-specific variables.
7788case $host_os in
7789aix*)
7790  symcode='[BCDT]'
7791  ;;
7792cygwin* | mingw* | pw32*)
7793  symcode='[ABCDGISTW]'
7794  ;;
7795hpux*) # Its linker distinguishes data from code symbols
7796  if test "$host_cpu" = ia64; then
7797    symcode='[ABCDEGRST]'
7798  fi
7799  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7800  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7801  ;;
7802linux*)
7803  if test "$host_cpu" = ia64; then
7804    symcode='[ABCDGIRSTW]'
7805    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7806    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7807  fi
7808  ;;
7809irix* | nonstopux*)
7810  symcode='[BCDEGRST]'
7811  ;;
7812osf*)
7813  symcode='[BCDEGQRST]'
7814  ;;
7815solaris*)
7816  symcode='[BDRT]'
7817  ;;
7818sco3.2v5*)
7819  symcode='[DT]'
7820  ;;
7821sysv4.2uw2*)
7822  symcode='[DT]'
7823  ;;
7824sysv5* | sco5v6* | unixware* | OpenUNIX*)
7825  symcode='[ABDT]'
7826  ;;
7827sysv4)
7828  symcode='[DFNSTU]'
7829  ;;
7830esac
7831
7832# Handle CRLF in mingw tool chain
7833opt_cr=
7834case $build_os in
7835mingw*)
7836  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7837  ;;
7838esac
7839
7840# If we're using GNU nm, then use its standard symbol codes.
7841case `$NM -V 2>&1` in
7842*GNU* | *'with BFD'*)
7843  symcode='[ABCDGIRSTW]' ;;
7844esac
7845
7846# Try without a prefix undercore, then with it.
7847for ac_symprfx in "" "_"; do
7848
7849  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7850  symxfrm="\\1 $ac_symprfx\\2 \\2"
7851
7852  # Write the raw and C identifiers.
7853  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7854
7855  # Check to see that the pipe works correctly.
7856  pipe_works=no
7857
7858  rm -f conftest*
7859  cat > conftest.$ac_ext <<EOF
7860#ifdef __cplusplus
7861extern "C" {
7862#endif
7863char nm_test_var;
7864void nm_test_func(){}
7865#ifdef __cplusplus
7866}
7867#endif
7868int main(){nm_test_var='a';nm_test_func();return(0);}
7869EOF
7870
7871  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7872  (eval $ac_compile) 2>&5
7873  ac_status=$?
7874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875  (exit $ac_status); }; then
7876    # Now try to grab the symbols.
7877    nlist=conftest.nm
7878    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7879  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7880  ac_status=$?
7881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882  (exit $ac_status); } && test -s "$nlist"; then
7883      # Try sorting and uniquifying the output.
7884      if sort "$nlist" | uniq > "$nlist"T; then
7885        mv -f "$nlist"T "$nlist"
7886      else
7887        rm -f "$nlist"T
7888      fi
7889
7890      # Make sure that we snagged all the symbols we need.
7891      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7892        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7893          cat <<EOF > conftest.$ac_ext
7894#ifdef __cplusplus
7895extern "C" {
7896#endif
7897
7898EOF
7899          # Now generate the symbol file.
7900          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7901
7902          cat <<EOF >> conftest.$ac_ext
7903#if defined (__STDC__) && __STDC__
7904# define lt_ptr_t void *
7905#else
7906# define lt_ptr_t char *
7907# define const
7908#endif
7909
7910/* The mapping between symbol names and symbols. */
7911const struct {
7912  const char *name;
7913  lt_ptr_t address;
7914}
7915lt_preloaded_symbols[] =
7916{
7917EOF
7918          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7919          cat <<\EOF >> conftest.$ac_ext
7920  {0, (lt_ptr_t) 0}
7921};
7922
7923#ifdef __cplusplus
7924}
7925#endif
7926EOF
7927          # Now try linking the two files.
7928          mv conftest.$ac_objext conftstm.$ac_objext
7929          lt_save_LIBS="$LIBS"
7930          lt_save_CFLAGS="$CFLAGS"
7931          LIBS="conftstm.$ac_objext"
7932          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7933          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7934  (eval $ac_link) 2>&5
7935  ac_status=$?
7936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7938            pipe_works=yes
7939          fi
7940          LIBS="$lt_save_LIBS"
7941          CFLAGS="$lt_save_CFLAGS"
7942        else
7943          echo "cannot find nm_test_func in $nlist" >&5
7944        fi
7945      else
7946        echo "cannot find nm_test_var in $nlist" >&5
7947      fi
7948    else
7949      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7950    fi
7951  else
7952    echo "$progname: failed program was:" >&5
7953    cat conftest.$ac_ext >&5
7954  fi
7955  rm -f conftest* conftst*
7956
7957  # Do not use the global_symbol_pipe unless it works.
7958  if test "$pipe_works" = yes; then
7959    break
7960  else
7961    lt_cv_sys_global_symbol_pipe=
7962  fi
7963done
7964
7965fi
7966
7967if test -z "$lt_cv_sys_global_symbol_pipe"; then
7968  lt_cv_sys_global_symbol_to_cdecl=
7969fi
7970if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7971  echo "$as_me:$LINENO: result: failed" >&5
7972echo "${ECHO_T}failed" >&6
7973else
7974  echo "$as_me:$LINENO: result: ok" >&5
7975echo "${ECHO_T}ok" >&6
7976fi
7977
7978echo "$as_me:$LINENO: checking for objdir" >&5
7979echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7980if test "${lt_cv_objdir+set}" = set; then
7981  echo $ECHO_N "(cached) $ECHO_C" >&6
7982else
7983  rm -f .libs 2>/dev/null
7984mkdir .libs 2>/dev/null
7985if test -d .libs; then
7986  lt_cv_objdir=.libs
7987else
7988  # MS-DOS does not allow filenames that begin with a dot.
7989  lt_cv_objdir=_libs
7990fi
7991rmdir .libs 2>/dev/null
7992fi
7993echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7994echo "${ECHO_T}$lt_cv_objdir" >&6
7995objdir=$lt_cv_objdir
7996
7997
7998
7999
8000
8001case $host_os in
8002aix3*)
8003  # AIX sometimes has problems with the GCC collect2 program.  For some
8004  # reason, if we set the COLLECT_NAMES environment variable, the problems
8005  # vanish in a puff of smoke.
8006  if test "X${COLLECT_NAMES+set}" != Xset; then
8007    COLLECT_NAMES=
8008    export COLLECT_NAMES
8009  fi
8010  ;;
8011esac
8012
8013# Sed substitution that helps us do robust quoting.  It backslashifies
8014# metacharacters that are still active within double-quoted strings.
8015Xsed='sed -e 1s/^X//'
8016sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8017
8018# Same as above, but do not quote variable references.
8019double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8020
8021# Sed substitution to delay expansion of an escaped shell variable in a
8022# double_quote_subst'ed string.
8023delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8024
8025# Sed substitution to avoid accidental globbing in evaled expressions
8026no_glob_subst='s/\*/\\\*/g'
8027
8028# Constants:
8029rm="rm -f"
8030
8031# Global variables:
8032default_ofile=libtool
8033can_build_shared=yes
8034
8035# All known linkers require a `.a' archive for static linking (except MSVC,
8036# which needs '.lib').
8037libext=a
8038ltmain="$ac_aux_dir/ltmain.sh"
8039ofile="$default_ofile"
8040with_gnu_ld="$lt_cv_prog_gnu_ld"
8041
8042if test -n "$ac_tool_prefix"; then
8043  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8044set dummy ${ac_tool_prefix}ar; ac_word=$2
8045echo "$as_me:$LINENO: checking for $ac_word" >&5
8046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8047if test "${ac_cv_prog_AR+set}" = set; then
8048  echo $ECHO_N "(cached) $ECHO_C" >&6
8049else
8050  if test -n "$AR"; then
8051  ac_cv_prog_AR="$AR" # Let the user override the test.
8052else
8053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054for as_dir in $PATH
8055do
8056  IFS=$as_save_IFS
8057  test -z "$as_dir" && as_dir=.
8058  for ac_exec_ext in '' $ac_executable_extensions; do
8059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8060    ac_cv_prog_AR="${ac_tool_prefix}ar"
8061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8062    break 2
8063  fi
8064done
8065done
8066
8067fi
8068fi
8069AR=$ac_cv_prog_AR
8070if test -n "$AR"; then
8071  echo "$as_me:$LINENO: result: $AR" >&5
8072echo "${ECHO_T}$AR" >&6
8073else
8074  echo "$as_me:$LINENO: result: no" >&5
8075echo "${ECHO_T}no" >&6
8076fi
8077
8078fi
8079if test -z "$ac_cv_prog_AR"; then
8080  ac_ct_AR=$AR
8081  # Extract the first word of "ar", so it can be a program name with args.
8082set dummy ar; ac_word=$2
8083echo "$as_me:$LINENO: checking for $ac_word" >&5
8084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8085if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8086  echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088  if test -n "$ac_ct_AR"; then
8089  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8090else
8091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092for as_dir in $PATH
8093do
8094  IFS=$as_save_IFS
8095  test -z "$as_dir" && as_dir=.
8096  for ac_exec_ext in '' $ac_executable_extensions; do
8097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098    ac_cv_prog_ac_ct_AR="ar"
8099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8100    break 2
8101  fi
8102done
8103done
8104
8105  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8106fi
8107fi
8108ac_ct_AR=$ac_cv_prog_ac_ct_AR
8109if test -n "$ac_ct_AR"; then
8110  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8111echo "${ECHO_T}$ac_ct_AR" >&6
8112else
8113  echo "$as_me:$LINENO: result: no" >&5
8114echo "${ECHO_T}no" >&6
8115fi
8116
8117  AR=$ac_ct_AR
8118else
8119  AR="$ac_cv_prog_AR"
8120fi
8121
8122if test -n "$ac_tool_prefix"; then
8123  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8124set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8125echo "$as_me:$LINENO: checking for $ac_word" >&5
8126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8127if test "${ac_cv_prog_RANLIB+set}" = set; then
8128  echo $ECHO_N "(cached) $ECHO_C" >&6
8129else
8130  if test -n "$RANLIB"; then
8131  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8132else
8133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134for as_dir in $PATH
8135do
8136  IFS=$as_save_IFS
8137  test -z "$as_dir" && as_dir=.
8138  for ac_exec_ext in '' $ac_executable_extensions; do
8139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8142    break 2
8143  fi
8144done
8145done
8146
8147fi
8148fi
8149RANLIB=$ac_cv_prog_RANLIB
8150if test -n "$RANLIB"; then
8151  echo "$as_me:$LINENO: result: $RANLIB" >&5
8152echo "${ECHO_T}$RANLIB" >&6
8153else
8154  echo "$as_me:$LINENO: result: no" >&5
8155echo "${ECHO_T}no" >&6
8156fi
8157
8158fi
8159if test -z "$ac_cv_prog_RANLIB"; then
8160  ac_ct_RANLIB=$RANLIB
8161  # Extract the first word of "ranlib", so it can be a program name with args.
8162set dummy ranlib; ac_word=$2
8163echo "$as_me:$LINENO: checking for $ac_word" >&5
8164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8165if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8166  echo $ECHO_N "(cached) $ECHO_C" >&6
8167else
8168  if test -n "$ac_ct_RANLIB"; then
8169  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8170else
8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172for as_dir in $PATH
8173do
8174  IFS=$as_save_IFS
8175  test -z "$as_dir" && as_dir=.
8176  for ac_exec_ext in '' $ac_executable_extensions; do
8177  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178    ac_cv_prog_ac_ct_RANLIB="ranlib"
8179    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8180    break 2
8181  fi
8182done
8183done
8184
8185  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8186fi
8187fi
8188ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8189if test -n "$ac_ct_RANLIB"; then
8190  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8191echo "${ECHO_T}$ac_ct_RANLIB" >&6
8192else
8193  echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195fi
8196
8197  RANLIB=$ac_ct_RANLIB
8198else
8199  RANLIB="$ac_cv_prog_RANLIB"
8200fi
8201
8202if test -n "$ac_tool_prefix"; then
8203  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8204set dummy ${ac_tool_prefix}strip; ac_word=$2
8205echo "$as_me:$LINENO: checking for $ac_word" >&5
8206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8207if test "${ac_cv_prog_STRIP+set}" = set; then
8208  echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210  if test -n "$STRIP"; then
8211  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8212else
8213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214for as_dir in $PATH
8215do
8216  IFS=$as_save_IFS
8217  test -z "$as_dir" && as_dir=.
8218  for ac_exec_ext in '' $ac_executable_extensions; do
8219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8220    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8222    break 2
8223  fi
8224done
8225done
8226
8227fi
8228fi
8229STRIP=$ac_cv_prog_STRIP
8230if test -n "$STRIP"; then
8231  echo "$as_me:$LINENO: result: $STRIP" >&5
8232echo "${ECHO_T}$STRIP" >&6
8233else
8234  echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236fi
8237
8238fi
8239if test -z "$ac_cv_prog_STRIP"; then
8240  ac_ct_STRIP=$STRIP
8241  # Extract the first word of "strip", so it can be a program name with args.
8242set dummy strip; ac_word=$2
8243echo "$as_me:$LINENO: checking for $ac_word" >&5
8244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8245if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8246  echo $ECHO_N "(cached) $ECHO_C" >&6
8247else
8248  if test -n "$ac_ct_STRIP"; then
8249  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8250else
8251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252for as_dir in $PATH
8253do
8254  IFS=$as_save_IFS
8255  test -z "$as_dir" && as_dir=.
8256  for ac_exec_ext in '' $ac_executable_extensions; do
8257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258    ac_cv_prog_ac_ct_STRIP="strip"
8259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8260    break 2
8261  fi
8262done
8263done
8264
8265  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8266fi
8267fi
8268ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8269if test -n "$ac_ct_STRIP"; then
8270  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8271echo "${ECHO_T}$ac_ct_STRIP" >&6
8272else
8273  echo "$as_me:$LINENO: result: no" >&5
8274echo "${ECHO_T}no" >&6
8275fi
8276
8277  STRIP=$ac_ct_STRIP
8278else
8279  STRIP="$ac_cv_prog_STRIP"
8280fi
8281
8282
8283old_CC="$CC"
8284old_CFLAGS="$CFLAGS"
8285
8286# Set sane defaults for various variables
8287test -z "$AR" && AR=ar
8288test -z "$AR_FLAGS" && AR_FLAGS=cru
8289test -z "$AS" && AS=as
8290test -z "$CC" && CC=cc
8291test -z "$LTCC" && LTCC=$CC
8292test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8293test -z "$DLLTOOL" && DLLTOOL=dlltool
8294test -z "$LD" && LD=ld
8295test -z "$LN_S" && LN_S="ln -s"
8296test -z "$MAGIC_CMD" && MAGIC_CMD=file
8297test -z "$NM" && NM=nm
8298test -z "$SED" && SED=sed
8299test -z "$OBJDUMP" && OBJDUMP=objdump
8300test -z "$RANLIB" && RANLIB=:
8301test -z "$STRIP" && STRIP=:
8302test -z "$ac_objext" && ac_objext=o
8303
8304# Determine commands to create old-style static archives.
8305old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8306old_postinstall_cmds='chmod 644 $oldlib'
8307old_postuninstall_cmds=
8308
8309if test -n "$RANLIB"; then
8310  case $host_os in
8311  openbsd*)
8312    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8313    ;;
8314  *)
8315    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8316    ;;
8317  esac
8318  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8319fi
8320
8321for cc_temp in $compiler""; do
8322  case $cc_temp in
8323    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8324    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8325    \-*) ;;
8326    *) break;;
8327  esac
8328done
8329cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8330
8331
8332# Only perform the check for file, if the check method requires it
8333case $deplibs_check_method in
8334file_magic*)
8335  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8336    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8337echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8338if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8339  echo $ECHO_N "(cached) $ECHO_C" >&6
8340else
8341  case $MAGIC_CMD in
8342[\\/*] |  ?:[\\/]*)
8343  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8344  ;;
8345*)
8346  lt_save_MAGIC_CMD="$MAGIC_CMD"
8347  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8348  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8349  for ac_dir in $ac_dummy; do
8350    IFS="$lt_save_ifs"
8351    test -z "$ac_dir" && ac_dir=.
8352    if test -f $ac_dir/${ac_tool_prefix}file; then
8353      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8354      if test -n "$file_magic_test_file"; then
8355        case $deplibs_check_method in
8356        "file_magic "*)
8357          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8358          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8359          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8360            $EGREP "$file_magic_regex" > /dev/null; then
8361            :
8362          else
8363            cat <<EOF 1>&2
8364
8365*** Warning: the command libtool uses to detect shared libraries,
8366*** $file_magic_cmd, produces output that libtool cannot recognize.
8367*** The result is that libtool may fail to recognize shared libraries
8368*** as such.  This will affect the creation of libtool libraries that
8369*** depend on shared libraries, but programs linked with such libtool
8370*** libraries will work regardless of this problem.  Nevertheless, you
8371*** may want to report the problem to your system manager and/or to
8372*** bug-libtool@gnu.org
8373
8374EOF
8375          fi ;;
8376        esac
8377      fi
8378      break
8379    fi
8380  done
8381  IFS="$lt_save_ifs"
8382  MAGIC_CMD="$lt_save_MAGIC_CMD"
8383  ;;
8384esac
8385fi
8386
8387MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8388if test -n "$MAGIC_CMD"; then
8389  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8390echo "${ECHO_T}$MAGIC_CMD" >&6
8391else
8392  echo "$as_me:$LINENO: result: no" >&5
8393echo "${ECHO_T}no" >&6
8394fi
8395
8396if test -z "$lt_cv_path_MAGIC_CMD"; then
8397  if test -n "$ac_tool_prefix"; then
8398    echo "$as_me:$LINENO: checking for file" >&5
8399echo $ECHO_N "checking for file... $ECHO_C" >&6
8400if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8401  echo $ECHO_N "(cached) $ECHO_C" >&6
8402else
8403  case $MAGIC_CMD in
8404[\\/*] |  ?:[\\/]*)
8405  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8406  ;;
8407*)
8408  lt_save_MAGIC_CMD="$MAGIC_CMD"
8409  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8410  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8411  for ac_dir in $ac_dummy; do
8412    IFS="$lt_save_ifs"
8413    test -z "$ac_dir" && ac_dir=.
8414    if test -f $ac_dir/file; then
8415      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8416      if test -n "$file_magic_test_file"; then
8417        case $deplibs_check_method in
8418        "file_magic "*)
8419          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8420          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8422            $EGREP "$file_magic_regex" > /dev/null; then
8423            :
8424          else
8425            cat <<EOF 1>&2
8426
8427*** Warning: the command libtool uses to detect shared libraries,
8428*** $file_magic_cmd, produces output that libtool cannot recognize.
8429*** The result is that libtool may fail to recognize shared libraries
8430*** as such.  This will affect the creation of libtool libraries that
8431*** depend on shared libraries, but programs linked with such libtool
8432*** libraries will work regardless of this problem.  Nevertheless, you
8433*** may want to report the problem to your system manager and/or to
8434*** bug-libtool@gnu.org
8435
8436EOF
8437          fi ;;
8438        esac
8439      fi
8440      break
8441    fi
8442  done
8443  IFS="$lt_save_ifs"
8444  MAGIC_CMD="$lt_save_MAGIC_CMD"
8445  ;;
8446esac
8447fi
8448
8449MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450if test -n "$MAGIC_CMD"; then
8451  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8452echo "${ECHO_T}$MAGIC_CMD" >&6
8453else
8454  echo "$as_me:$LINENO: result: no" >&5
8455echo "${ECHO_T}no" >&6
8456fi
8457
8458  else
8459    MAGIC_CMD=:
8460  fi
8461fi
8462
8463  fi
8464  ;;
8465esac
8466
8467enable_dlopen=no
8468enable_win32_dll=no
8469
8470# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8471if test "${enable_libtool_lock+set}" = set; then
8472  enableval="$enable_libtool_lock"
8473
8474fi;
8475test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8476
8477
8478# Check whether --with-pic or --without-pic was given.
8479if test "${with_pic+set}" = set; then
8480  withval="$with_pic"
8481  pic_mode="$withval"
8482else
8483  pic_mode=default
8484fi;
8485test -z "$pic_mode" && pic_mode=default
8486
8487# Use C for the default configuration in the libtool script
8488tagname=
8489lt_save_CC="$CC"
8490ac_ext=c
8491ac_cpp='$CPP $CPPFLAGS'
8492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8494ac_compiler_gnu=$ac_cv_c_compiler_gnu
8495
8496
8497# Source file extension for C test sources.
8498ac_ext=c
8499
8500# Object file extension for compiled C test sources.
8501objext=o
8502objext=$objext
8503
8504# Code to be used in simple compile tests
8505lt_simple_compile_test_code="int some_variable = 0;\n"
8506
8507# Code to be used in simple link tests
8508lt_simple_link_test_code='int main(){return(0);}\n'
8509
8510
8511# If no C compiler was specified, use CC.
8512LTCC=${LTCC-"$CC"}
8513
8514# If no C compiler flags were specified, use CFLAGS.
8515LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8516
8517# Allow CC to be a program name with arguments.
8518compiler=$CC
8519
8520
8521# save warnings/boilerplate of simple test code
8522ac_outfile=conftest.$ac_objext
8523printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8524eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8525_lt_compiler_boilerplate=`cat conftest.err`
8526$rm conftest*
8527
8528ac_outfile=conftest.$ac_objext
8529printf "$lt_simple_link_test_code" >conftest.$ac_ext
8530eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8531_lt_linker_boilerplate=`cat conftest.err`
8532$rm conftest*
8533
8534
8535## CAVEAT EMPTOR:
8536## There is no encapsulation within the following macros, do not change
8537## the running order or otherwise move them around unless you know exactly
8538## what you are doing...
8539
8540lt_prog_compiler_no_builtin_flag=
8541
8542if test "$GCC" = yes; then
8543  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8544
8545
8546echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8547echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8548if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8549  echo $ECHO_N "(cached) $ECHO_C" >&6
8550else
8551  lt_cv_prog_compiler_rtti_exceptions=no
8552  ac_outfile=conftest.$ac_objext
8553   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8554   lt_compiler_flag="-fno-rtti -fno-exceptions"
8555   # Insert the option either (1) after the last *FLAGS variable, or
8556   # (2) before a word containing "conftest.", or (3) at the end.
8557   # Note that $ac_compile itself does not contain backslashes and begins
8558   # with a dollar sign (not a hyphen), so the echo should work correctly.
8559   # The option is referenced via a variable to avoid confusing sed.
8560   lt_compile=`echo "$ac_compile" | $SED \
8561   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563   -e 's:$: $lt_compiler_flag:'`
8564   (eval echo "\"\$as_me:8564: $lt_compile\"" >&5)
8565   (eval "$lt_compile" 2>conftest.err)
8566   ac_status=$?
8567   cat conftest.err >&5
8568   echo "$as_me:8568: \$? = $ac_status" >&5
8569   if (exit $ac_status) && test -s "$ac_outfile"; then
8570     # The compiler can only warn and ignore the option if not recognized
8571     # So say no if there are warnings other than the usual output.
8572     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8573     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8574     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8575       lt_cv_prog_compiler_rtti_exceptions=yes
8576     fi
8577   fi
8578   $rm conftest*
8579
8580fi
8581echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8582echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8583
8584if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8585    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8586else
8587    :
8588fi
8589
8590fi
8591
8592lt_prog_compiler_wl=
8593lt_prog_compiler_pic=
8594lt_prog_compiler_static=
8595
8596echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8597echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8598
8599  if test "$GCC" = yes; then
8600    lt_prog_compiler_wl='-Wl,'
8601    lt_prog_compiler_static='-static'
8602
8603    case $host_os in
8604      aix*)
8605      # All AIX code is PIC.
8606      if test "$host_cpu" = ia64; then
8607        # AIX 5 now supports IA64 processor
8608        lt_prog_compiler_static='-Bstatic'
8609      fi
8610      ;;
8611
8612    amigaos*)
8613      # FIXME: we need at least 68020 code to build shared libraries, but
8614      # adding the `-m68020' flag to GCC prevents building anything better,
8615      # like `-m68040'.
8616      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8617      ;;
8618
8619    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8620      # PIC is the default for these OSes.
8621      ;;
8622
8623    mingw* | pw32* | os2*)
8624      # This hack is so that the source file can tell whether it is being
8625      # built for inclusion in a dll (and should export symbols for example).
8626      lt_prog_compiler_pic='-DDLL_EXPORT'
8627      ;;
8628
8629    darwin* | rhapsody*)
8630      # PIC is the default on this platform
8631      # Common symbols not allowed in MH_DYLIB files
8632      lt_prog_compiler_pic='-fno-common'
8633      ;;
8634
8635    interix3*)
8636      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8637      # Instead, we relocate shared libraries at runtime.
8638      ;;
8639
8640    msdosdjgpp*)
8641      # Just because we use GCC doesn't mean we suddenly get shared libraries
8642      # on systems that don't support them.
8643      lt_prog_compiler_can_build_shared=no
8644      enable_shared=no
8645      ;;
8646
8647    sysv4*MP*)
8648      if test -d /usr/nec; then
8649        lt_prog_compiler_pic=-Kconform_pic
8650      fi
8651      ;;
8652
8653    hpux*)
8654      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8655      # not for PA HP-UX.
8656      case $host_cpu in
8657      hppa*64*|ia64*)
8658        # +Z the default
8659        ;;
8660      *)
8661        lt_prog_compiler_pic='-fPIC'
8662        ;;
8663      esac
8664      ;;
8665
8666    *)
8667      lt_prog_compiler_pic='-fPIC'
8668      ;;
8669    esac
8670  else
8671    # PORTME Check for flag to pass linker flags through the system compiler.
8672    case $host_os in
8673    aix*)
8674      lt_prog_compiler_wl='-Wl,'
8675      if test "$host_cpu" = ia64; then
8676        # AIX 5 now supports IA64 processor
8677        lt_prog_compiler_static='-Bstatic'
8678      else
8679        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8680      fi
8681      ;;
8682      darwin*)
8683        # PIC is the default on this platform
8684        # Common symbols not allowed in MH_DYLIB files
8685       case $cc_basename in
8686         xlc*)
8687         lt_prog_compiler_pic='-qnocommon'
8688         lt_prog_compiler_wl='-Wl,'
8689         ;;
8690       esac
8691       ;;
8692
8693    mingw* | pw32* | os2*)
8694      # This hack is so that the source file can tell whether it is being
8695      # built for inclusion in a dll (and should export symbols for example).
8696      lt_prog_compiler_pic='-DDLL_EXPORT'
8697      ;;
8698
8699    hpux9* | hpux10* | hpux11*)
8700      lt_prog_compiler_wl='-Wl,'
8701      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8702      # not for PA HP-UX.
8703      case $host_cpu in
8704      hppa*64*|ia64*)
8705        # +Z the default
8706        ;;
8707      *)
8708        lt_prog_compiler_pic='+Z'
8709        ;;
8710      esac
8711      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8712      lt_prog_compiler_static='${wl}-a ${wl}archive'
8713      ;;
8714
8715    irix5* | irix6* | nonstopux*)
8716      lt_prog_compiler_wl='-Wl,'
8717      # PIC (with -KPIC) is the default.
8718      lt_prog_compiler_static='-non_shared'
8719      ;;
8720
8721    newsos6)
8722      lt_prog_compiler_pic='-KPIC'
8723      lt_prog_compiler_static='-Bstatic'
8724      ;;
8725
8726    linux*)
8727      case $cc_basename in
8728      icc* | ecc*)
8729        lt_prog_compiler_wl='-Wl,'
8730        lt_prog_compiler_pic='-KPIC'
8731        lt_prog_compiler_static='-static'
8732        ;;
8733      pgcc* | pgf77* | pgf90* | pgf95*)
8734        # Portland Group compilers (*not* the Pentium gcc compiler,
8735        # which looks to be a dead project)
8736        lt_prog_compiler_wl='-Wl,'
8737        lt_prog_compiler_pic='-fpic'
8738        lt_prog_compiler_static='-Bstatic'
8739        ;;
8740      ccc*)
8741        lt_prog_compiler_wl='-Wl,'
8742        # All Alpha code is PIC.
8743        lt_prog_compiler_static='-non_shared'
8744        ;;
8745      esac
8746      ;;
8747
8748    osf3* | osf4* | osf5*)
8749      lt_prog_compiler_wl='-Wl,'
8750      # All OSF/1 code is PIC.
8751      lt_prog_compiler_static='-non_shared'
8752      ;;
8753
8754    solaris*)
8755      lt_prog_compiler_pic='-KPIC'
8756      lt_prog_compiler_static='-Bstatic'
8757      case $cc_basename in
8758      f77* | f90* | f95*)
8759        lt_prog_compiler_wl='-Qoption ld ';;
8760      *)
8761        lt_prog_compiler_wl='-Wl,';;
8762      esac
8763      ;;
8764
8765    sunos4*)
8766      lt_prog_compiler_wl='-Qoption ld '
8767      lt_prog_compiler_pic='-PIC'
8768      lt_prog_compiler_static='-Bstatic'
8769      ;;
8770
8771    sysv4 | sysv4.2uw2* | sysv4.3*)
8772      lt_prog_compiler_wl='-Wl,'
8773      lt_prog_compiler_pic='-KPIC'
8774      lt_prog_compiler_static='-Bstatic'
8775      ;;
8776
8777    sysv4*MP*)
8778      if test -d /usr/nec ;then
8779        lt_prog_compiler_pic='-Kconform_pic'
8780        lt_prog_compiler_static='-Bstatic'
8781      fi
8782      ;;
8783
8784    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8785      lt_prog_compiler_wl='-Wl,'
8786      lt_prog_compiler_pic='-KPIC'
8787      lt_prog_compiler_static='-Bstatic'
8788      ;;
8789
8790    unicos*)
8791      lt_prog_compiler_wl='-Wl,'
8792      lt_prog_compiler_can_build_shared=no
8793      ;;
8794
8795    uts4*)
8796      lt_prog_compiler_pic='-pic'
8797      lt_prog_compiler_static='-Bstatic'
8798      ;;
8799
8800    *)
8801      lt_prog_compiler_can_build_shared=no
8802      ;;
8803    esac
8804  fi
8805
8806echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8807echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8808
8809#
8810# Check to make sure the PIC flag actually works.
8811#
8812if test -n "$lt_prog_compiler_pic"; then
8813
8814echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8815echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8816if test "${lt_prog_compiler_pic_works+set}" = set; then
8817  echo $ECHO_N "(cached) $ECHO_C" >&6
8818else
8819  lt_prog_compiler_pic_works=no
8820  ac_outfile=conftest.$ac_objext
8821   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8822   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8823   # Insert the option either (1) after the last *FLAGS variable, or
8824   # (2) before a word containing "conftest.", or (3) at the end.
8825   # Note that $ac_compile itself does not contain backslashes and begins
8826   # with a dollar sign (not a hyphen), so the echo should work correctly.
8827   # The option is referenced via a variable to avoid confusing sed.
8828   lt_compile=`echo "$ac_compile" | $SED \
8829   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8830   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8831   -e 's:$: $lt_compiler_flag:'`
8832   (eval echo "\"\$as_me:8832: $lt_compile\"" >&5)
8833   (eval "$lt_compile" 2>conftest.err)
8834   ac_status=$?
8835   cat conftest.err >&5
8836   echo "$as_me:8836: \$? = $ac_status" >&5
8837   if (exit $ac_status) && test -s "$ac_outfile"; then
8838     # The compiler can only warn and ignore the option if not recognized
8839     # So say no if there are warnings other than the usual output.
8840     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8841     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8842     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8843       lt_prog_compiler_pic_works=yes
8844     fi
8845   fi
8846   $rm conftest*
8847
8848fi
8849echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8850echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8851
8852if test x"$lt_prog_compiler_pic_works" = xyes; then
8853    case $lt_prog_compiler_pic in
8854     "" | " "*) ;;
8855     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8856     esac
8857else
8858    lt_prog_compiler_pic=
8859     lt_prog_compiler_can_build_shared=no
8860fi
8861
8862fi
8863case $host_os in
8864  # For platforms which do not support PIC, -DPIC is meaningless:
8865  *djgpp*)
8866    lt_prog_compiler_pic=
8867    ;;
8868  *)
8869    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8870    ;;
8871esac
8872
8873#
8874# Check to make sure the static flag actually works.
8875#
8876wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8877echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8878echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8879if test "${lt_prog_compiler_static_works+set}" = set; then
8880  echo $ECHO_N "(cached) $ECHO_C" >&6
8881else
8882  lt_prog_compiler_static_works=no
8883   save_LDFLAGS="$LDFLAGS"
8884   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8885   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8886   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8887     # The linker can only warn and ignore the option if not recognized
8888     # So say no if there are warnings
8889     if test -s conftest.err; then
8890       # Append any errors to the config.log.
8891       cat conftest.err 1>&5
8892       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8893       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8894       if diff conftest.exp conftest.er2 >/dev/null; then
8895         lt_prog_compiler_static_works=yes
8896       fi
8897     else
8898       lt_prog_compiler_static_works=yes
8899     fi
8900   fi
8901   $rm conftest*
8902   LDFLAGS="$save_LDFLAGS"
8903
8904fi
8905echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8906echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8907
8908if test x"$lt_prog_compiler_static_works" = xyes; then
8909    :
8910else
8911    lt_prog_compiler_static=
8912fi
8913
8914
8915echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8916echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8917if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8918  echo $ECHO_N "(cached) $ECHO_C" >&6
8919else
8920  lt_cv_prog_compiler_c_o=no
8921   $rm -r conftest 2>/dev/null
8922   mkdir conftest
8923   cd conftest
8924   mkdir out
8925   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8926
8927   lt_compiler_flag="-o out/conftest2.$ac_objext"
8928   # Insert the option either (1) after the last *FLAGS variable, or
8929   # (2) before a word containing "conftest.", or (3) at the end.
8930   # Note that $ac_compile itself does not contain backslashes and begins
8931   # with a dollar sign (not a hyphen), so the echo should work correctly.
8932   lt_compile=`echo "$ac_compile" | $SED \
8933   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8934   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8935   -e 's:$: $lt_compiler_flag:'`
8936   (eval echo "\"\$as_me:8936: $lt_compile\"" >&5)
8937   (eval "$lt_compile" 2>out/conftest.err)
8938   ac_status=$?
8939   cat out/conftest.err >&5
8940   echo "$as_me:8940: \$? = $ac_status" >&5
8941   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8942   then
8943     # The compiler can only warn and ignore the option if not recognized
8944     # So say no if there are warnings
8945     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8946     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8947     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8948       lt_cv_prog_compiler_c_o=yes
8949     fi
8950   fi
8951   chmod u+w . 2>&5
8952   $rm conftest*
8953   # SGI C++ compiler will create directory out/ii_files/ for
8954   # template instantiation
8955   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8956   $rm out/* && rmdir out
8957   cd ..
8958   rmdir conftest
8959   $rm conftest*
8960
8961fi
8962echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8963echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8964
8965
8966hard_links="nottested"
8967if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8968  # do not overwrite the value of need_locks provided by the user
8969  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8970echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8971  hard_links=yes
8972  $rm conftest*
8973  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8974  touch conftest.a
8975  ln conftest.a conftest.b 2>&5 || hard_links=no
8976  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8977  echo "$as_me:$LINENO: result: $hard_links" >&5
8978echo "${ECHO_T}$hard_links" >&6
8979  if test "$hard_links" = no; then
8980    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8981echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8982    need_locks=warn
8983  fi
8984else
8985  need_locks=no
8986fi
8987
8988echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8989echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8990
8991  runpath_var=
8992  allow_undefined_flag=
8993  enable_shared_with_static_runtimes=no
8994  archive_cmds=
8995  archive_expsym_cmds=
8996  old_archive_From_new_cmds=
8997  old_archive_from_expsyms_cmds=
8998  export_dynamic_flag_spec=
8999  whole_archive_flag_spec=
9000  thread_safe_flag_spec=
9001  hardcode_libdir_flag_spec=
9002  hardcode_libdir_flag_spec_ld=
9003  hardcode_libdir_separator=
9004  hardcode_direct=no
9005  hardcode_minus_L=no
9006  hardcode_shlibpath_var=unsupported
9007  link_all_deplibs=unknown
9008  hardcode_automatic=no
9009  module_cmds=
9010  module_expsym_cmds=
9011  always_export_symbols=no
9012  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9013  # include_expsyms should be a list of space-separated symbols to be *always*
9014  # included in the symbol list
9015  include_expsyms=
9016  # exclude_expsyms can be an extended regexp of symbols to exclude
9017  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9018  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9019  # as well as any symbol that contains `d'.
9020  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9021  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9022  # platforms (ab)use it in PIC code, but their linkers get confused if
9023  # the symbol is explicitly referenced.  Since portable code cannot
9024  # rely on this symbol name, it's probably fine to never include it in
9025  # preloaded symbol tables.
9026  extract_expsyms_cmds=
9027  # Just being paranoid about ensuring that cc_basename is set.
9028  for cc_temp in $compiler""; do
9029  case $cc_temp in
9030    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9031    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9032    \-*) ;;
9033    *) break;;
9034  esac
9035done
9036cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9037
9038  case $host_os in
9039  cygwin* | mingw* | pw32*)
9040    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9041    # When not using gcc, we currently assume that we are using
9042    # Microsoft Visual C++.
9043    if test "$GCC" != yes; then
9044      with_gnu_ld=no
9045    fi
9046    ;;
9047  interix*)
9048    # we just hope/assume this is gcc and not c89 (= MSVC++)
9049    with_gnu_ld=yes
9050    ;;
9051  openbsd*)
9052    with_gnu_ld=no
9053    ;;
9054  esac
9055
9056  ld_shlibs=yes
9057  if test "$with_gnu_ld" = yes; then
9058    # If archive_cmds runs LD, not CC, wlarc should be empty
9059    wlarc='${wl}'
9060
9061    # Set some defaults for GNU ld with shared library support. These
9062    # are reset later if shared libraries are not supported. Putting them
9063    # here allows them to be overridden if necessary.
9064    runpath_var=LD_RUN_PATH
9065    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9066    export_dynamic_flag_spec='${wl}--export-dynamic'
9067    # ancient GNU ld didn't support --whole-archive et. al.
9068    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9069        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9070      else
9071        whole_archive_flag_spec=
9072    fi
9073    supports_anon_versioning=no
9074    case `$LD -v 2>/dev/null` in
9075      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9076      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9077      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9078      *\ 2.11.*) ;; # other 2.11 versions
9079      *) supports_anon_versioning=yes ;;
9080    esac
9081
9082    # See if GNU ld supports shared libraries.
9083    case $host_os in
9084    aix3* | aix4* | aix5*)
9085      # On AIX/PPC, the GNU linker is very broken
9086      if test "$host_cpu" != ia64; then
9087        ld_shlibs=no
9088        cat <<EOF 1>&2
9089
9090*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9091*** to be unable to reliably create shared libraries on AIX.
9092*** Therefore, libtool is disabling shared libraries support.  If you
9093*** really care for shared libraries, you may want to modify your PATH
9094*** so that a non-GNU linker is found, and then restart.
9095
9096EOF
9097      fi
9098      ;;
9099
9100    amigaos*)
9101      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9102      hardcode_libdir_flag_spec='-L$libdir'
9103      hardcode_minus_L=yes
9104
9105      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9106      # that the semantics of dynamic libraries on AmigaOS, at least up
9107      # to version 4, is to share data among multiple programs linked
9108      # with the same dynamic library.  Since this doesn't match the
9109      # behavior of shared libraries on other platforms, we can't use
9110      # them.
9111      ld_shlibs=no
9112      ;;
9113
9114    beos*)
9115      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9116        allow_undefined_flag=unsupported
9117        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9118        # support --undefined.  This deserves some investigation.  FIXME
9119        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120      else
9121        ld_shlibs=no
9122      fi
9123      ;;
9124
9125    cygwin* | mingw* | pw32*)
9126      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9127      # as there is no search path for DLLs.
9128      hardcode_libdir_flag_spec='-L$libdir'
9129      allow_undefined_flag=unsupported
9130      always_export_symbols=no
9131      enable_shared_with_static_runtimes=yes
9132      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9133
9134      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9135        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9136        # If the export-symbols file already is a .def file (1st line
9137        # is EXPORTS), use it as is; otherwise, prepend...
9138        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9139          cp $export_symbols $output_objdir/$soname.def;
9140        else
9141          echo EXPORTS > $output_objdir/$soname.def;
9142          cat $export_symbols >> $output_objdir/$soname.def;
9143        fi~
9144        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9145      else
9146        ld_shlibs=no
9147      fi
9148      ;;
9149
9150    interix3*)
9151      hardcode_direct=no
9152      hardcode_shlibpath_var=no
9153      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9154      export_dynamic_flag_spec='${wl}-E'
9155      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9156      # Instead, shared libraries are loaded at an image base (0x10000000 by
9157      # default) and relocated if they conflict, which is a slow very memory
9158      # consuming and fragmenting process.  To avoid this, we pick a random,
9159      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9160      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9161      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9162      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9163      ;;
9164
9165    linux*)
9166      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9167        tmp_addflag=
9168        case $cc_basename,$host_cpu in
9169        pgcc*)                          # Portland Group C compiler
9170          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9171          tmp_addflag=' $pic_flag'
9172          ;;
9173        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9174          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9175          tmp_addflag=' $pic_flag -Mnomain' ;;
9176        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9177          tmp_addflag=' -i_dynamic' ;;
9178        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9179          tmp_addflag=' -i_dynamic -nofor_main' ;;
9180        ifc* | ifort*)                  # Intel Fortran compiler
9181          tmp_addflag=' -nofor_main' ;;
9182        esac
9183        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9184
9185        if test $supports_anon_versioning = yes; then
9186          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9187  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9188  $echo "local: *; };" >> $output_objdir/$libname.ver~
9189          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9190        fi
9191      else
9192        ld_shlibs=no
9193      fi
9194      ;;
9195
9196    netbsd*)
9197      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9198        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9199        wlarc=
9200      else
9201        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9203      fi
9204      ;;
9205
9206    solaris*)
9207      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9208        ld_shlibs=no
9209        cat <<EOF 1>&2
9210
9211*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9212*** create shared libraries on Solaris systems.  Therefore, libtool
9213*** is disabling shared libraries support.  We urge you to upgrade GNU
9214*** binutils to release 2.9.1 or newer.  Another option is to modify
9215*** your PATH or compiler configuration so that the native linker is
9216*** used, and then restart.
9217
9218EOF
9219      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9220        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9222      else
9223        ld_shlibs=no
9224      fi
9225      ;;
9226
9227    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9228      case `$LD -v 2>&1` in
9229        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9230        ld_shlibs=no
9231        cat <<_LT_EOF 1>&2
9232
9233*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9234*** reliably create shared libraries on SCO systems.  Therefore, libtool
9235*** is disabling shared libraries support.  We urge you to upgrade GNU
9236*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9237*** your PATH or compiler configuration so that the native linker is
9238*** used, and then restart.
9239
9240_LT_EOF
9241        ;;
9242        *)
9243          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9244            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9245            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9246            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9247          else
9248            ld_shlibs=no
9249          fi
9250        ;;
9251      esac
9252      ;;
9253
9254    sunos4*)
9255      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9256      wlarc=
9257      hardcode_direct=yes
9258      hardcode_shlibpath_var=no
9259      ;;
9260
9261    *)
9262      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9263        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9265      else
9266        ld_shlibs=no
9267      fi
9268      ;;
9269    esac
9270
9271    if test "$ld_shlibs" = no; then
9272      runpath_var=
9273      hardcode_libdir_flag_spec=
9274      export_dynamic_flag_spec=
9275      whole_archive_flag_spec=
9276    fi
9277  else
9278    # PORTME fill in a description of your system's linker (not GNU ld)
9279    case $host_os in
9280    aix3*)
9281      allow_undefined_flag=unsupported
9282      always_export_symbols=yes
9283      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9284      # Note: this linker hardcodes the directories in LIBPATH if there
9285      # are no directories specified by -L.
9286      hardcode_minus_L=yes
9287      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9288        # Neither direct hardcoding nor static linking is supported with a
9289        # broken collect2.
9290        hardcode_direct=unsupported
9291      fi
9292      ;;
9293
9294    aix4* | aix5*)
9295      if test "$host_cpu" = ia64; then
9296        # On IA64, the linker does run time linking by default, so we don't
9297        # have to do anything special.
9298        aix_use_runtimelinking=no
9299        exp_sym_flag='-Bexport'
9300        no_entry_flag=""
9301      else
9302        # If we're using GNU nm, then we don't want the "-C" option.
9303        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9304        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9305          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9306        else
9307          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9308        fi
9309        aix_use_runtimelinking=no
9310
9311        # Test if we are trying to use run time linking or normal
9312        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9313        # need to do runtime linking.
9314        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9315          for ld_flag in $LDFLAGS; do
9316          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9317            aix_use_runtimelinking=yes
9318            break
9319          fi
9320          done
9321          ;;
9322        esac
9323
9324        exp_sym_flag='-bexport'
9325        no_entry_flag='-bnoentry'
9326      fi
9327
9328      # When large executables or shared objects are built, AIX ld can
9329      # have problems creating the table of contents.  If linking a library
9330      # or program results in "error TOC overflow" add -mminimal-toc to
9331      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9332      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9333
9334      archive_cmds=''
9335      hardcode_direct=yes
9336      hardcode_libdir_separator=':'
9337      link_all_deplibs=yes
9338
9339      if test "$GCC" = yes; then
9340        case $host_os in aix4.[012]|aix4.[012].*)
9341        # We only want to do this on AIX 4.2 and lower, the check
9342        # below for broken collect2 doesn't work under 4.3+
9343          collect2name=`${CC} -print-prog-name=collect2`
9344          if test -f "$collect2name" && \
9345           strings "$collect2name" | grep resolve_lib_name >/dev/null
9346          then
9347          # We have reworked collect2
9348          hardcode_direct=yes
9349          else
9350          # We have old collect2
9351          hardcode_direct=unsupported
9352          # It fails to find uninstalled libraries when the uninstalled
9353          # path is not listed in the libpath.  Setting hardcode_minus_L
9354          # to unsupported forces relinking
9355          hardcode_minus_L=yes
9356          hardcode_libdir_flag_spec='-L$libdir'
9357          hardcode_libdir_separator=
9358          fi
9359          ;;
9360        esac
9361        shared_flag='-shared'
9362        if test "$aix_use_runtimelinking" = yes; then
9363          shared_flag="$shared_flag "'${wl}-G'
9364        fi
9365      else
9366        # not using gcc
9367        if test "$host_cpu" = ia64; then
9368        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9369        # chokes on -Wl,-G. The following line is correct:
9370          shared_flag='-G'
9371        else
9372          if test "$aix_use_runtimelinking" = yes; then
9373            shared_flag='${wl}-G'
9374          else
9375            shared_flag='${wl}-bM:SRE'
9376          fi
9377        fi
9378      fi
9379
9380      # It seems that -bexpall does not export symbols beginning with
9381      # underscore (_), so it is better to generate a list of symbols to export.
9382      always_export_symbols=yes
9383      if test "$aix_use_runtimelinking" = yes; then
9384        # Warning - without using the other runtime loading flags (-brtl),
9385        # -berok will link without error, but may produce a broken library.
9386        allow_undefined_flag='-berok'
9387       # Determine the default libpath from the value encoded in an empty executable.
9388       cat >conftest.$ac_ext <<_ACEOF
9389/* confdefs.h.  */
9390_ACEOF
9391cat confdefs.h >>conftest.$ac_ext
9392cat >>conftest.$ac_ext <<_ACEOF
9393/* end confdefs.h.  */
9394
9395int
9396main ()
9397{
9398
9399  ;
9400  return 0;
9401}
9402_ACEOF
9403rm -f conftest.$ac_objext conftest$ac_exeext
9404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9405  (eval $ac_link) 2>conftest.er1
9406  ac_status=$?
9407  grep -v '^ *+' conftest.er1 >conftest.err
9408  rm -f conftest.er1
9409  cat conftest.err >&5
9410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411  (exit $ac_status); } &&
9412         { ac_try='test -z "$ac_c_werror_flag"
9413                         || test ! -s conftest.err'
9414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415  (eval $ac_try) 2>&5
9416  ac_status=$?
9417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418  (exit $ac_status); }; } &&
9419         { ac_try='test -s conftest$ac_exeext'
9420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421  (eval $ac_try) 2>&5
9422  ac_status=$?
9423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424  (exit $ac_status); }; }; then
9425
9426aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9427}'`
9428# Check for a 64-bit object if we didn't find anything.
9429if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9430}'`; fi
9431else
9432  echo "$as_me: failed program was:" >&5
9433sed 's/^/| /' conftest.$ac_ext >&5
9434
9435fi
9436rm -f conftest.err conftest.$ac_objext \
9437      conftest$ac_exeext conftest.$ac_ext
9438if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9439
9440       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9441        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9442       else
9443        if test "$host_cpu" = ia64; then
9444          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9445          allow_undefined_flag="-z nodefs"
9446          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9447        else
9448         # Determine the default libpath from the value encoded in an empty executable.
9449         cat >conftest.$ac_ext <<_ACEOF
9450/* confdefs.h.  */
9451_ACEOF
9452cat confdefs.h >>conftest.$ac_ext
9453cat >>conftest.$ac_ext <<_ACEOF
9454/* end confdefs.h.  */
9455
9456int
9457main ()
9458{
9459
9460  ;
9461  return 0;
9462}
9463_ACEOF
9464rm -f conftest.$ac_objext conftest$ac_exeext
9465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466  (eval $ac_link) 2>conftest.er1
9467  ac_status=$?
9468  grep -v '^ *+' conftest.er1 >conftest.err
9469  rm -f conftest.er1
9470  cat conftest.err >&5
9471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472  (exit $ac_status); } &&
9473         { ac_try='test -z "$ac_c_werror_flag"
9474                         || test ! -s conftest.err'
9475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476  (eval $ac_try) 2>&5
9477  ac_status=$?
9478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479  (exit $ac_status); }; } &&
9480         { ac_try='test -s conftest$ac_exeext'
9481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482  (eval $ac_try) 2>&5
9483  ac_status=$?
9484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485  (exit $ac_status); }; }; then
9486
9487aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9488}'`
9489# Check for a 64-bit object if we didn't find anything.
9490if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9491}'`; fi
9492else
9493  echo "$as_me: failed program was:" >&5
9494sed 's/^/| /' conftest.$ac_ext >&5
9495
9496fi
9497rm -f conftest.err conftest.$ac_objext \
9498      conftest$ac_exeext conftest.$ac_ext
9499if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9500
9501         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9502          # Warning - without using the other run time loading flags,
9503          # -berok will link without error, but may produce a broken library.
9504          no_undefined_flag=' ${wl}-bernotok'
9505          allow_undefined_flag=' ${wl}-berok'
9506          # Exported symbols can be pulled into shared objects from archives
9507          whole_archive_flag_spec='$convenience'
9508          archive_cmds_need_lc=yes
9509          # This is similar to how AIX traditionally builds its shared libraries.
9510          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9511        fi
9512      fi
9513      ;;
9514
9515    amigaos*)
9516      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9517      hardcode_libdir_flag_spec='-L$libdir'
9518      hardcode_minus_L=yes
9519      # see comment about different semantics on the GNU ld section
9520      ld_shlibs=no
9521      ;;
9522
9523    bsdi[45]*)
9524      export_dynamic_flag_spec=-rdynamic
9525      ;;
9526
9527    cygwin* | mingw* | pw32*)
9528      # When not using gcc, we currently assume that we are using
9529      # Microsoft Visual C++.
9530      # hardcode_libdir_flag_spec is actually meaningless, as there is
9531      # no search path for DLLs.
9532      hardcode_libdir_flag_spec=' '
9533      allow_undefined_flag=unsupported
9534      # Tell ltmain to make .lib files, not .a files.
9535      libext=lib
9536      # Tell ltmain to make .dll files, not .so files.
9537      shrext_cmds=".dll"
9538      # FIXME: Setting linknames here is a bad hack.
9539      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9540      # The linker will automatically build a .lib file if we build a DLL.
9541      old_archive_From_new_cmds='true'
9542      # FIXME: Should let the user specify the lib program.
9543      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9544      fix_srcfile_path='`cygpath -w "$srcfile"`'
9545      enable_shared_with_static_runtimes=yes
9546      ;;
9547
9548    darwin* | rhapsody*)
9549      case $host_os in
9550        rhapsody* | darwin1.[012])
9551         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9552         ;;
9553       *) # Darwin 1.3 on
9554         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9555           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9556         else
9557           case ${MACOSX_DEPLOYMENT_TARGET} in
9558             10.[012])
9559               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9560               ;;
9561             10.*)
9562               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9563               ;;
9564           esac
9565         fi
9566         ;;
9567      esac
9568      archive_cmds_need_lc=no
9569      hardcode_direct=no
9570      hardcode_automatic=yes
9571      hardcode_shlibpath_var=unsupported
9572      whole_archive_flag_spec=''
9573      link_all_deplibs=yes
9574    if test "$GCC" = yes ; then
9575        output_verbose_link_cmd='echo'
9576        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9577      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9578      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9579      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9580      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9581    else
9582      case $cc_basename in
9583        xlc*)
9584         output_verbose_link_cmd='echo'
9585         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9586         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9587          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9588         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9589          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9590          ;;
9591       *)
9592         ld_shlibs=no
9593          ;;
9594      esac
9595    fi
9596      ;;
9597
9598    dgux*)
9599      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9600      hardcode_libdir_flag_spec='-L$libdir'
9601      hardcode_shlibpath_var=no
9602      ;;
9603
9604    freebsd1*)
9605      ld_shlibs=no
9606      ;;
9607
9608    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9609    # support.  Future versions do this automatically, but an explicit c++rt0.o
9610    # does not break anything, and helps significantly (at the cost of a little
9611    # extra space).
9612    freebsd2.2*)
9613      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9614      hardcode_libdir_flag_spec='-R$libdir'
9615      hardcode_direct=yes
9616      hardcode_shlibpath_var=no
9617      ;;
9618
9619    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9620    freebsd2*)
9621      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9622      hardcode_direct=yes
9623      hardcode_minus_L=yes
9624      hardcode_shlibpath_var=no
9625      ;;
9626
9627    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9628    freebsd* | kfreebsd*-gnu | dragonfly*)
9629      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9630      hardcode_libdir_flag_spec='-R$libdir'
9631      hardcode_direct=yes
9632      hardcode_shlibpath_var=no
9633      ;;
9634
9635    hpux9*)
9636      if test "$GCC" = yes; then
9637        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9638      else
9639        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9640      fi
9641      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9642      hardcode_libdir_separator=:
9643      hardcode_direct=yes
9644
9645      # hardcode_minus_L: Not really in the search PATH,
9646      # but as the default location of the library.
9647      hardcode_minus_L=yes
9648      export_dynamic_flag_spec='${wl}-E'
9649      ;;
9650
9651    hpux10*)
9652      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9653        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9654      else
9655        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9656      fi
9657      if test "$with_gnu_ld" = no; then
9658        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9659        hardcode_libdir_separator=:
9660
9661        hardcode_direct=yes
9662        export_dynamic_flag_spec='${wl}-E'
9663
9664        # hardcode_minus_L: Not really in the search PATH,
9665        # but as the default location of the library.
9666        hardcode_minus_L=yes
9667      fi
9668      ;;
9669
9670    hpux11*)
9671      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9672        case $host_cpu in
9673        hppa*64*)
9674          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9675          ;;
9676        ia64*)
9677          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9678          ;;
9679        *)
9680          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9681          ;;
9682        esac
9683      else
9684        case $host_cpu in
9685        hppa*64*)
9686          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9687          ;;
9688        ia64*)
9689          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9690          ;;
9691        *)
9692          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9693          ;;
9694        esac
9695      fi
9696      if test "$with_gnu_ld" = no; then
9697        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9698        hardcode_libdir_separator=:
9699
9700        case $host_cpu in
9701        hppa*64*|ia64*)
9702          hardcode_libdir_flag_spec_ld='+b $libdir'
9703          hardcode_direct=no
9704          hardcode_shlibpath_var=no
9705          ;;
9706        *)
9707          hardcode_direct=yes
9708          export_dynamic_flag_spec='${wl}-E'
9709
9710          # hardcode_minus_L: Not really in the search PATH,
9711          # but as the default location of the library.
9712          hardcode_minus_L=yes
9713          ;;
9714        esac
9715      fi
9716      ;;
9717
9718    irix5* | irix6* | nonstopux*)
9719      if test "$GCC" = yes; then
9720        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9721      else
9722        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9723        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9724      fi
9725      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9726      hardcode_libdir_separator=:
9727      link_all_deplibs=yes
9728      ;;
9729
9730    netbsd*)
9731      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9732        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9733      else
9734        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9735      fi
9736      hardcode_libdir_flag_spec='-R$libdir'
9737      hardcode_direct=yes
9738      hardcode_shlibpath_var=no
9739      ;;
9740
9741    newsos6)
9742      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743      hardcode_direct=yes
9744      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745      hardcode_libdir_separator=:
9746      hardcode_shlibpath_var=no
9747      ;;
9748
9749    openbsd*)
9750      hardcode_direct=yes
9751      hardcode_shlibpath_var=no
9752      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9753        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9754        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9755        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9756        export_dynamic_flag_spec='${wl}-E'
9757      else
9758       case $host_os in
9759         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9760           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9761           hardcode_libdir_flag_spec='-R$libdir'
9762           ;;
9763         *)
9764           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9765           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9766           ;;
9767       esac
9768      fi
9769      ;;
9770
9771    os2*)
9772      hardcode_libdir_flag_spec='-L$libdir'
9773      hardcode_minus_L=yes
9774      allow_undefined_flag=unsupported
9775      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9776      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9777      ;;
9778
9779    osf3*)
9780      if test "$GCC" = yes; then
9781        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9782        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9783      else
9784        allow_undefined_flag=' -expect_unresolved \*'
9785        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9786      fi
9787      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9788      hardcode_libdir_separator=:
9789      ;;
9790
9791    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9792      if test "$GCC" = yes; then
9793        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9794        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9795        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9796      else
9797        allow_undefined_flag=' -expect_unresolved \*'
9798        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9799        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9800        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9801
9802        # Both c and cxx compiler support -rpath directly
9803        hardcode_libdir_flag_spec='-rpath $libdir'
9804      fi
9805      hardcode_libdir_separator=:
9806      ;;
9807
9808    solaris*)
9809      no_undefined_flag=' -z text'
9810      if test "$GCC" = yes; then
9811        wlarc='${wl}'
9812        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9813        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9814          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9815      else
9816        wlarc=''
9817        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9818        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9819        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9820      fi
9821      hardcode_libdir_flag_spec='-R$libdir'
9822      hardcode_shlibpath_var=no
9823      case $host_os in
9824      solaris2.[0-5] | solaris2.[0-5].*) ;;
9825      *)
9826        # The compiler driver will combine linker options so we
9827        # cannot just pass the convience library names through
9828        # without $wl, iff we do not link with $LD.
9829        # Luckily, gcc supports the same syntax we need for Sun Studio.
9830        # Supported since Solaris 2.6 (maybe 2.5.1?)
9831        case $wlarc in
9832        '')
9833          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9834        *)
9835          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9836        esac ;;
9837      esac
9838      link_all_deplibs=yes
9839      ;;
9840
9841    sunos4*)
9842      if test "x$host_vendor" = xsequent; then
9843        # Use $CC to link under sequent, because it throws in some extra .o
9844        # files that make .init and .fini sections work.
9845        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9846      else
9847        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9848      fi
9849      hardcode_libdir_flag_spec='-L$libdir'
9850      hardcode_direct=yes
9851      hardcode_minus_L=yes
9852      hardcode_shlibpath_var=no
9853      ;;
9854
9855    sysv4)
9856      case $host_vendor in
9857        sni)
9858          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859          hardcode_direct=yes # is this really true???
9860        ;;
9861        siemens)
9862          ## LD is ld it makes a PLAMLIB
9863          ## CC just makes a GrossModule.
9864          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9865          reload_cmds='$CC -r -o $output$reload_objs'
9866          hardcode_direct=no
9867        ;;
9868        motorola)
9869          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9870          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9871        ;;
9872      esac
9873      runpath_var='LD_RUN_PATH'
9874      hardcode_shlibpath_var=no
9875      ;;
9876
9877    sysv4.3*)
9878      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9879      hardcode_shlibpath_var=no
9880      export_dynamic_flag_spec='-Bexport'
9881      ;;
9882
9883    sysv4*MP*)
9884      if test -d /usr/nec; then
9885        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886        hardcode_shlibpath_var=no
9887        runpath_var=LD_RUN_PATH
9888        hardcode_runpath_var=yes
9889        ld_shlibs=yes
9890      fi
9891      ;;
9892
9893    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9894      no_undefined_flag='${wl}-z,text'
9895      archive_cmds_need_lc=no
9896      hardcode_shlibpath_var=no
9897      runpath_var='LD_RUN_PATH'
9898
9899      if test "$GCC" = yes; then
9900        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9901        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9902      else
9903        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9904        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9905      fi
9906      ;;
9907
9908    sysv5* | sco3.2v5* | sco5v6*)
9909      # Note: We can NOT use -z defs as we might desire, because we do not
9910      # link with -lc, and that would cause any symbols used from libc to
9911      # always be unresolved, which means just about no library would
9912      # ever link correctly.  If we're not using GNU ld we use -z text
9913      # though, which does catch some bad symbols but isn't as heavy-handed
9914      # as -z defs.
9915      no_undefined_flag='${wl}-z,text'
9916      allow_undefined_flag='${wl}-z,nodefs'
9917      archive_cmds_need_lc=no
9918      hardcode_shlibpath_var=no
9919      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9920      hardcode_libdir_separator=':'
9921      link_all_deplibs=yes
9922      export_dynamic_flag_spec='${wl}-Bexport'
9923      runpath_var='LD_RUN_PATH'
9924
9925      if test "$GCC" = yes; then
9926        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9927        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9928      else
9929        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9930        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9931      fi
9932      ;;
9933
9934    uts4*)
9935      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936      hardcode_libdir_flag_spec='-L$libdir'
9937      hardcode_shlibpath_var=no
9938      ;;
9939
9940    *)
9941      ld_shlibs=no
9942      ;;
9943    esac
9944  fi
9945
9946echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9947echo "${ECHO_T}$ld_shlibs" >&6
9948test "$ld_shlibs" = no && can_build_shared=no
9949
9950#
9951# Do we need to explicitly link libc?
9952#
9953case "x$archive_cmds_need_lc" in
9954x|xyes)
9955  # Assume -lc should be added
9956  archive_cmds_need_lc=yes
9957
9958  if test "$enable_shared" = yes && test "$GCC" = yes; then
9959    case $archive_cmds in
9960    *'~'*)
9961      # FIXME: we may have to deal with multi-command sequences.
9962      ;;
9963    '$CC '*)
9964      # Test whether the compiler implicitly links with -lc since on some
9965      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9966      # to ld, don't add -lc before -lgcc.
9967      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9968echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9969      $rm conftest*
9970      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9971
9972      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9973  (eval $ac_compile) 2>&5
9974  ac_status=$?
9975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976  (exit $ac_status); } 2>conftest.err; then
9977        soname=conftest
9978        lib=conftest
9979        libobjs=conftest.$ac_objext
9980        deplibs=
9981        wl=$lt_prog_compiler_wl
9982        pic_flag=$lt_prog_compiler_pic
9983        compiler_flags=-v
9984        linker_flags=-v
9985        verstring=
9986        output_objdir=.
9987        libname=conftest
9988        lt_save_allow_undefined_flag=$allow_undefined_flag
9989        allow_undefined_flag=
9990        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9991  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9992  ac_status=$?
9993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994  (exit $ac_status); }
9995        then
9996          archive_cmds_need_lc=no
9997        else
9998          archive_cmds_need_lc=yes
9999        fi
10000        allow_undefined_flag=$lt_save_allow_undefined_flag
10001      else
10002        cat conftest.err 1>&5
10003      fi
10004      $rm conftest*
10005      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10006echo "${ECHO_T}$archive_cmds_need_lc" >&6
10007      ;;
10008    esac
10009  fi
10010  ;;
10011esac
10012
10013echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10014echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10015library_names_spec=
10016libname_spec='lib$name'
10017soname_spec=
10018shrext_cmds=".so"
10019postinstall_cmds=
10020postuninstall_cmds=
10021finish_cmds=
10022finish_eval=
10023shlibpath_var=
10024shlibpath_overrides_runpath=unknown
10025version_type=none
10026dynamic_linker="$host_os ld.so"
10027sys_lib_dlsearch_path_spec="/lib /usr/lib"
10028if test "$GCC" = yes; then
10029  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10030  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10031    # if the path contains ";" then we assume it to be the separator
10032    # otherwise default to the standard path separator (i.e. ":") - it is
10033    # assumed that no part of a normal pathname contains ";" but that should
10034    # okay in the real world where ";" in dirpaths is itself problematic.
10035    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10036  else
10037    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10038  fi
10039else
10040  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10041fi
10042need_lib_prefix=unknown
10043hardcode_into_libs=no
10044
10045# when you set need_version to no, make sure it does not cause -set_version
10046# flags to be left without arguments
10047need_version=unknown
10048
10049case $host_os in
10050aix3*)
10051  version_type=linux
10052  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10053  shlibpath_var=LIBPATH
10054
10055  # AIX 3 has no versioning support, so we append a major version to the name.
10056  soname_spec='${libname}${release}${shared_ext}$major'
10057  ;;
10058
10059aix4* | aix5*)
10060  version_type=linux
10061  need_lib_prefix=no
10062  need_version=no
10063  hardcode_into_libs=yes
10064  if test "$host_cpu" = ia64; then
10065    # AIX 5 supports IA64
10066    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10067    shlibpath_var=LD_LIBRARY_PATH
10068  else
10069    # With GCC up to 2.95.x, collect2 would create an import file
10070    # for dependence libraries.  The import file would start with
10071    # the line `#! .'.  This would cause the generated library to
10072    # depend on `.', always an invalid library.  This was fixed in
10073    # development snapshots of GCC prior to 3.0.
10074    case $host_os in
10075      aix4 | aix4.[01] | aix4.[01].*)
10076      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10077           echo ' yes '
10078           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10079        :
10080      else
10081        can_build_shared=no
10082      fi
10083      ;;
10084    esac
10085    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10086    # soname into executable. Probably we can add versioning support to
10087    # collect2, so additional links can be useful in future.
10088    if test "$aix_use_runtimelinking" = yes; then
10089      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10090      # instead of lib<name>.a to let people know that these are not
10091      # typical AIX shared libraries.
10092      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093    else
10094      # We preserve .a as extension for shared libraries through AIX4.2
10095      # and later when we are not doing run time linking.
10096      library_names_spec='${libname}${release}.a $libname.a'
10097      soname_spec='${libname}${release}${shared_ext}$major'
10098    fi
10099    shlibpath_var=LIBPATH
10100  fi
10101  ;;
10102
10103amigaos*)
10104  library_names_spec='$libname.ixlibrary $libname.a'
10105  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10106  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10107  ;;
10108
10109beos*)
10110  library_names_spec='${libname}${shared_ext}'
10111  dynamic_linker="$host_os ld.so"
10112  shlibpath_var=LIBRARY_PATH
10113  ;;
10114
10115bsdi[45]*)
10116  version_type=linux
10117  need_version=no
10118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119  soname_spec='${libname}${release}${shared_ext}$major'
10120  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10121  shlibpath_var=LD_LIBRARY_PATH
10122  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10123  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10124  # the default ld.so.conf also contains /usr/contrib/lib and
10125  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10126  # libtool to hard-code these into programs
10127  ;;
10128
10129cygwin* | mingw* | pw32*)
10130  version_type=windows
10131  shrext_cmds=".dll"
10132  need_version=no
10133  need_lib_prefix=no
10134
10135  case $GCC,$host_os in
10136  yes,cygwin* | yes,mingw* | yes,pw32*)
10137    library_names_spec='$libname.dll.a'
10138    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10139    postinstall_cmds='base_file=`basename \${file}`~
10140      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10141      dldir=$destdir/`dirname \$dlpath`~
10142      test -d \$dldir || mkdir -p \$dldir~
10143      $install_prog $dir/$dlname \$dldir/$dlname~
10144      chmod a+x \$dldir/$dlname'
10145    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10146      dlpath=$dir/\$dldll~
10147       $rm \$dlpath'
10148    shlibpath_overrides_runpath=yes
10149
10150    case $host_os in
10151    cygwin*)
10152      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10153      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10154      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10155      ;;
10156    mingw*)
10157      # MinGW DLLs use traditional 'lib' prefix
10158      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10159      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10160      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10161        # It is most probably a Windows format PATH printed by
10162        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10163        # path with ; separators, and with drive letters. We can handle the
10164        # drive letters (cygwin fileutils understands them), so leave them,
10165        # especially as we might pass files found there to a mingw objdump,
10166        # which wouldn't understand a cygwinified path. Ahh.
10167        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10168      else
10169        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10170      fi
10171      ;;
10172    pw32*)
10173      # pw32 DLLs use 'pw' prefix rather than 'lib'
10174      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10175      ;;
10176    esac
10177    ;;
10178
10179  *)
10180    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10181    ;;
10182  esac
10183  dynamic_linker='Win32 ld.exe'
10184  # FIXME: first we should search . and the directory the executable is in
10185  shlibpath_var=PATH
10186  ;;
10187
10188darwin* | rhapsody*)
10189  dynamic_linker="$host_os dyld"
10190  version_type=darwin
10191  need_lib_prefix=no
10192  need_version=no
10193  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10194  soname_spec='${libname}${release}${major}$shared_ext'
10195  shlibpath_overrides_runpath=yes
10196  shlibpath_var=DYLD_LIBRARY_PATH
10197  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10198  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10199  if test "$GCC" = yes; then
10200    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10201  else
10202    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10203  fi
10204  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10205  ;;
10206
10207dgux*)
10208  version_type=linux
10209  need_lib_prefix=no
10210  need_version=no
10211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10212  soname_spec='${libname}${release}${shared_ext}$major'
10213  shlibpath_var=LD_LIBRARY_PATH
10214  ;;
10215
10216freebsd1*)
10217  dynamic_linker=no
10218  ;;
10219
10220kfreebsd*-gnu)
10221  version_type=linux
10222  need_lib_prefix=no
10223  need_version=no
10224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10225  soname_spec='${libname}${release}${shared_ext}$major'
10226  shlibpath_var=LD_LIBRARY_PATH
10227  shlibpath_overrides_runpath=no
10228  hardcode_into_libs=yes
10229  dynamic_linker='GNU ld.so'
10230  ;;
10231
10232freebsd* | dragonfly*)
10233  # DragonFly does not have aout.  When/if they implement a new
10234  # versioning mechanism, adjust this.
10235  if test -x /usr/bin/objformat; then
10236    objformat=`/usr/bin/objformat`
10237  else
10238    case $host_os in
10239    freebsd[123]*) objformat=aout ;;
10240    *) objformat=elf ;;
10241    esac
10242  fi
10243  version_type=freebsd-$objformat
10244  case $version_type in
10245    freebsd-elf*)
10246      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10247      need_version=no
10248      need_lib_prefix=no
10249      ;;
10250    freebsd-*)
10251      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10252      need_version=yes
10253      ;;
10254  esac
10255  shlibpath_var=LD_LIBRARY_PATH
10256  case $host_os in
10257  freebsd2*)
10258    shlibpath_overrides_runpath=yes
10259    ;;
10260  freebsd3.[01]* | freebsdelf3.[01]*)
10261    shlibpath_overrides_runpath=yes
10262    hardcode_into_libs=yes
10263    ;;
10264  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10265  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10266    shlibpath_overrides_runpath=no
10267    hardcode_into_libs=yes
10268    ;;
10269  freebsd*) # from 4.6 on
10270    shlibpath_overrides_runpath=yes
10271    hardcode_into_libs=yes
10272    ;;
10273  esac
10274  ;;
10275
10276gnu*)
10277  version_type=linux
10278  need_lib_prefix=no
10279  need_version=no
10280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10281  soname_spec='${libname}${release}${shared_ext}$major'
10282  shlibpath_var=LD_LIBRARY_PATH
10283  hardcode_into_libs=yes
10284  ;;
10285
10286hpux9* | hpux10* | hpux11*)
10287  # Give a soname corresponding to the major version so that dld.sl refuses to
10288  # link against other versions.
10289  version_type=sunos
10290  need_lib_prefix=no
10291  need_version=no
10292  case $host_cpu in
10293  ia64*)
10294    shrext_cmds='.so'
10295    hardcode_into_libs=yes
10296    dynamic_linker="$host_os dld.so"
10297    shlibpath_var=LD_LIBRARY_PATH
10298    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10299    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300    soname_spec='${libname}${release}${shared_ext}$major'
10301    if test "X$HPUX_IA64_MODE" = X32; then
10302      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10303    else
10304      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10305    fi
10306    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10307    ;;
10308   hppa*64*)
10309     shrext_cmds='.sl'
10310     hardcode_into_libs=yes
10311     dynamic_linker="$host_os dld.sl"
10312     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10313     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315     soname_spec='${libname}${release}${shared_ext}$major'
10316     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10317     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10318     ;;
10319   *)
10320    shrext_cmds='.sl'
10321    dynamic_linker="$host_os dld.sl"
10322    shlibpath_var=SHLIB_PATH
10323    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10324    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325    soname_spec='${libname}${release}${shared_ext}$major'
10326    ;;
10327  esac
10328  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10329  postinstall_cmds='chmod 555 $lib'
10330  ;;
10331
10332interix3*)
10333  version_type=linux
10334  need_lib_prefix=no
10335  need_version=no
10336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10337  soname_spec='${libname}${release}${shared_ext}$major'
10338  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10339  shlibpath_var=LD_LIBRARY_PATH
10340  shlibpath_overrides_runpath=no
10341  hardcode_into_libs=yes
10342  ;;
10343
10344irix5* | irix6* | nonstopux*)
10345  case $host_os in
10346    nonstopux*) version_type=nonstopux ;;
10347    *)
10348        if test "$lt_cv_prog_gnu_ld" = yes; then
10349                version_type=linux
10350        else
10351                version_type=irix
10352        fi ;;
10353  esac
10354  need_lib_prefix=no
10355  need_version=no
10356  soname_spec='${libname}${release}${shared_ext}$major'
10357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10358  case $host_os in
10359  irix5* | nonstopux*)
10360    libsuff= shlibsuff=
10361    ;;
10362  *)
10363    case $LD in # libtool.m4 will add one of these switches to LD
10364    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10365      libsuff= shlibsuff= libmagic=32-bit;;
10366    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10367      libsuff=32 shlibsuff=N32 libmagic=N32;;
10368    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10369      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10370    *) libsuff= shlibsuff= libmagic=never-match;;
10371    esac
10372    ;;
10373  esac
10374  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10375  shlibpath_overrides_runpath=no
10376  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10377  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10378  hardcode_into_libs=yes
10379  ;;
10380
10381# No shared lib support for Linux oldld, aout, or coff.
10382linux*oldld* | linux*aout* | linux*coff*)
10383  dynamic_linker=no
10384  ;;
10385
10386# This must be Linux ELF.
10387linux*)
10388  version_type=linux
10389  need_lib_prefix=no
10390  need_version=no
10391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392  soname_spec='${libname}${release}${shared_ext}$major'
10393  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10394  shlibpath_var=LD_LIBRARY_PATH
10395  shlibpath_overrides_runpath=no
10396  # This implies no fast_install, which is unacceptable.
10397  # Some rework will be needed to allow for fast_install
10398  # before this can be enabled.
10399  hardcode_into_libs=yes
10400
10401  # Append ld.so.conf contents to the search path
10402  if test -f /etc/ld.so.conf; then
10403    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10404    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10405  fi
10406
10407  # We used to test for /lib/ld.so.1 and disable shared libraries on
10408  # powerpc, because MkLinux only supported shared libraries with the
10409  # GNU dynamic linker.  Since this was broken with cross compilers,
10410  # most powerpc-linux boxes support dynamic linking these days and
10411  # people can always --disable-shared, the test was removed, and we
10412  # assume the GNU/Linux dynamic linker is in use.
10413  dynamic_linker='GNU/Linux ld.so'
10414  ;;
10415
10416knetbsd*-gnu)
10417  version_type=linux
10418  need_lib_prefix=no
10419  need_version=no
10420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10421  soname_spec='${libname}${release}${shared_ext}$major'
10422  shlibpath_var=LD_LIBRARY_PATH
10423  shlibpath_overrides_runpath=no
10424  hardcode_into_libs=yes
10425  dynamic_linker='GNU ld.so'
10426  ;;
10427
10428netbsd*)
10429  version_type=sunos
10430  need_lib_prefix=no
10431  need_version=no
10432  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10433    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10434    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10435    dynamic_linker='NetBSD (a.out) ld.so'
10436  else
10437    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10438    soname_spec='${libname}${release}${shared_ext}$major'
10439    dynamic_linker='NetBSD ld.elf_so'
10440  fi
10441  shlibpath_var=LD_LIBRARY_PATH
10442  shlibpath_overrides_runpath=yes
10443  hardcode_into_libs=yes
10444  ;;
10445
10446newsos6)
10447  version_type=linux
10448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449  shlibpath_var=LD_LIBRARY_PATH
10450  shlibpath_overrides_runpath=yes
10451  ;;
10452
10453nto-qnx*)
10454  version_type=linux
10455  need_lib_prefix=no
10456  need_version=no
10457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458  soname_spec='${libname}${release}${shared_ext}$major'
10459  shlibpath_var=LD_LIBRARY_PATH
10460  shlibpath_overrides_runpath=yes
10461  ;;
10462
10463openbsd*)
10464  version_type=sunos
10465  sys_lib_dlsearch_path_spec="/usr/lib"
10466  need_lib_prefix=no
10467  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10468  case $host_os in
10469    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10470    *)                         need_version=no  ;;
10471  esac
10472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10473  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10474  shlibpath_var=LD_LIBRARY_PATH
10475  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10476    case $host_os in
10477      openbsd2.[89] | openbsd2.[89].*)
10478        shlibpath_overrides_runpath=no
10479        ;;
10480      *)
10481        shlibpath_overrides_runpath=yes
10482        ;;
10483      esac
10484  else
10485    shlibpath_overrides_runpath=yes
10486  fi
10487  ;;
10488
10489os2*)
10490  libname_spec='$name'
10491  shrext_cmds=".dll"
10492  need_lib_prefix=no
10493  library_names_spec='$libname${shared_ext} $libname.a'
10494  dynamic_linker='OS/2 ld.exe'
10495  shlibpath_var=LIBPATH
10496  ;;
10497
10498osf3* | osf4* | osf5*)
10499  version_type=osf
10500  need_lib_prefix=no
10501  need_version=no
10502  soname_spec='${libname}${release}${shared_ext}$major'
10503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504  shlibpath_var=LD_LIBRARY_PATH
10505  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10506  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10507  ;;
10508
10509solaris*)
10510  version_type=linux
10511  need_lib_prefix=no
10512  need_version=no
10513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514  soname_spec='${libname}${release}${shared_ext}$major'
10515  shlibpath_var=LD_LIBRARY_PATH
10516  shlibpath_overrides_runpath=yes
10517  hardcode_into_libs=yes
10518  # ldd complains unless libraries are executable
10519  postinstall_cmds='chmod +x $lib'
10520  ;;
10521
10522sunos4*)
10523  version_type=sunos
10524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10525  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10526  shlibpath_var=LD_LIBRARY_PATH
10527  shlibpath_overrides_runpath=yes
10528  if test "$with_gnu_ld" = yes; then
10529    need_lib_prefix=no
10530  fi
10531  need_version=yes
10532  ;;
10533
10534sysv4 | sysv4.3*)
10535  version_type=linux
10536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537  soname_spec='${libname}${release}${shared_ext}$major'
10538  shlibpath_var=LD_LIBRARY_PATH
10539  case $host_vendor in
10540    sni)
10541      shlibpath_overrides_runpath=no
10542      need_lib_prefix=no
10543      export_dynamic_flag_spec='${wl}-Blargedynsym'
10544      runpath_var=LD_RUN_PATH
10545      ;;
10546    siemens)
10547      need_lib_prefix=no
10548      ;;
10549    motorola)
10550      need_lib_prefix=no
10551      need_version=no
10552      shlibpath_overrides_runpath=no
10553      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10554      ;;
10555  esac
10556  ;;
10557
10558sysv4*MP*)
10559  if test -d /usr/nec ;then
10560    version_type=linux
10561    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10562    soname_spec='$libname${shared_ext}.$major'
10563    shlibpath_var=LD_LIBRARY_PATH
10564  fi
10565  ;;
10566
10567sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10568  version_type=freebsd-elf
10569  need_lib_prefix=no
10570  need_version=no
10571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10572  soname_spec='${libname}${release}${shared_ext}$major'
10573  shlibpath_var=LD_LIBRARY_PATH
10574  hardcode_into_libs=yes
10575  if test "$with_gnu_ld" = yes; then
10576    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10577    shlibpath_overrides_runpath=no
10578  else
10579    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10580    shlibpath_overrides_runpath=yes
10581    case $host_os in
10582      sco3.2v5*)
10583        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10584        ;;
10585    esac
10586  fi
10587  sys_lib_dlsearch_path_spec='/usr/lib'
10588  ;;
10589
10590uts4*)
10591  version_type=linux
10592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593  soname_spec='${libname}${release}${shared_ext}$major'
10594  shlibpath_var=LD_LIBRARY_PATH
10595  ;;
10596
10597*)
10598  dynamic_linker=no
10599  ;;
10600esac
10601echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10602echo "${ECHO_T}$dynamic_linker" >&6
10603test "$dynamic_linker" = no && can_build_shared=no
10604
10605variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10606if test "$GCC" = yes; then
10607  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10608fi
10609
10610echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10611echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10612hardcode_action=
10613if test -n "$hardcode_libdir_flag_spec" || \
10614   test -n "$runpath_var" || \
10615   test "X$hardcode_automatic" = "Xyes" ; then
10616
10617  # We can hardcode non-existant directories.
10618  if test "$hardcode_direct" != no &&
10619     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10620     # have to relink, otherwise we might link with an installed library
10621     # when we should be linking with a yet-to-be-installed one
10622     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10623     test "$hardcode_minus_L" != no; then
10624    # Linking always hardcodes the temporary library directory.
10625    hardcode_action=relink
10626  else
10627    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10628    hardcode_action=immediate
10629  fi
10630else
10631  # We cannot hardcode anything, or else we can only hardcode existing
10632  # directories.
10633  hardcode_action=unsupported
10634fi
10635echo "$as_me:$LINENO: result: $hardcode_action" >&5
10636echo "${ECHO_T}$hardcode_action" >&6
10637
10638if test "$hardcode_action" = relink; then
10639  # Fast installation is not supported
10640  enable_fast_install=no
10641elif test "$shlibpath_overrides_runpath" = yes ||
10642     test "$enable_shared" = no; then
10643  # Fast installation is not necessary
10644  enable_fast_install=needless
10645fi
10646
10647striplib=
10648old_striplib=
10649echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10650echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10651if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10652  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10653  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10654  echo "$as_me:$LINENO: result: yes" >&5
10655echo "${ECHO_T}yes" >&6
10656else
10657# FIXME - insert some real tests, host_os isn't really good enough
10658  case $host_os in
10659   darwin*)
10660       if test -n "$STRIP" ; then
10661         striplib="$STRIP -x"
10662         echo "$as_me:$LINENO: result: yes" >&5
10663echo "${ECHO_T}yes" >&6
10664       else
10665  echo "$as_me:$LINENO: result: no" >&5
10666echo "${ECHO_T}no" >&6
10667fi
10668       ;;
10669   *)
10670  echo "$as_me:$LINENO: result: no" >&5
10671echo "${ECHO_T}no" >&6
10672    ;;
10673  esac
10674fi
10675
10676if test "x$enable_dlopen" != xyes; then
10677  enable_dlopen=unknown
10678  enable_dlopen_self=unknown
10679  enable_dlopen_self_static=unknown
10680else
10681  lt_cv_dlopen=no
10682  lt_cv_dlopen_libs=
10683
10684  case $host_os in
10685  beos*)
10686    lt_cv_dlopen="load_add_on"
10687    lt_cv_dlopen_libs=
10688    lt_cv_dlopen_self=yes
10689    ;;
10690
10691  mingw* | pw32*)
10692    lt_cv_dlopen="LoadLibrary"
10693    lt_cv_dlopen_libs=
10694   ;;
10695
10696  cygwin*)
10697    lt_cv_dlopen="dlopen"
10698    lt_cv_dlopen_libs=
10699   ;;
10700
10701  darwin*)
10702  # if libdl is installed we need to link against it
10703    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10704echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10705if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10706  echo $ECHO_N "(cached) $ECHO_C" >&6
10707else
10708  ac_check_lib_save_LIBS=$LIBS
10709LIBS="-ldl  $LIBS"
10710cat >conftest.$ac_ext <<_ACEOF
10711/* confdefs.h.  */
10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h.  */
10716
10717/* Override any gcc2 internal prototype to avoid an error.  */
10718#ifdef __cplusplus
10719extern "C"
10720#endif
10721/* We use char because int might match the return type of a gcc2
10722   builtin and then its argument prototype would still apply.  */
10723char dlopen ();
10724int
10725main ()
10726{
10727dlopen ();
10728  ;
10729  return 0;
10730}
10731_ACEOF
10732rm -f conftest.$ac_objext conftest$ac_exeext
10733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734  (eval $ac_link) 2>conftest.er1
10735  ac_status=$?
10736  grep -v '^ *+' conftest.er1 >conftest.err
10737  rm -f conftest.er1
10738  cat conftest.err >&5
10739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740  (exit $ac_status); } &&
10741         { ac_try='test -z "$ac_c_werror_flag"
10742                         || test ! -s conftest.err'
10743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744  (eval $ac_try) 2>&5
10745  ac_status=$?
10746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747  (exit $ac_status); }; } &&
10748         { ac_try='test -s conftest$ac_exeext'
10749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750  (eval $ac_try) 2>&5
10751  ac_status=$?
10752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753  (exit $ac_status); }; }; then
10754  ac_cv_lib_dl_dlopen=yes
10755else
10756  echo "$as_me: failed program was:" >&5
10757sed 's/^/| /' conftest.$ac_ext >&5
10758
10759ac_cv_lib_dl_dlopen=no
10760fi
10761rm -f conftest.err conftest.$ac_objext \
10762      conftest$ac_exeext conftest.$ac_ext
10763LIBS=$ac_check_lib_save_LIBS
10764