source: trunk/Couenne/configure @ 400

Last change on this file since 400 was 400, checked in by pbelotti, 11 years ago

using newer version of Bonmin

File size: 822.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Couenne trunk.
4#
5# Report bugs to <couenne@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 Carnegie Mellon University, International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Couenne'
431PACKAGE_TARNAME='couenne'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Couenne trunk'
434PACKAGE_BUGREPORT='couenne@list.coin-or.org'
435
436ac_unique_file="src/expression/expression.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP 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 LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS THIRDPARTYSRCDIR THIRDPARTYOBJDIR THIRDPARTYDOCDIR COIN_HAS_THIRDPARTY_TRUE COIN_HAS_THIRDPARTY_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE BONMINSRCDIR BONMINOBJDIR BONMINDOCDIR COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE IPOPTSRCDIR IPOPTOBJDIR IPOPTDOCDIR COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COUENNESRCDIR COUENNEOBJDIR COUENNEDOCDIR COIN_HAS_COUENNE_TRUE COIN_HAS_COUENNE_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE NTYINCDIR NTYLIB COIN_HAS_NTY_TRUE COIN_HAS_NTY_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GRBINCDIR GRBLIB COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Couenne trunk to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Couenne trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-couenne compile this project (Couenne) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-nauty-libcheck use disable-nauty-libcheck to skip the
1096                          link check at configuration time
1097  --enable-cplex-libcheck use disable-cplex-libcheck to skip the
1098                          link check at configuration time
1099  --enable-gurobi-libcheck
1100                          use disable-gurobi-libcheck to skip the
1101                          link check at configuration time
1102  --enable-mosek-libcheck use disable-mosek-libcheck to skip the
1103                          link check at configuration time
1104  --enable-osl-libcheck use disable-osl-libcheck to skip the link
1105                          check at configuration time
1106  --enable-soplex-libcheck
1107                          use disable-soplex-libcheck to skip the
1108                          link check at configuration time
1109  --enable-xpress-libcheck
1110                          use disable-xpress-libcheck to skip the
1111                          link check at configuration time
1112
1113Optional Packages:
1114  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1115  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1116  --with-couenne-verbosity
1117                          specify the debug verbosity level for project
1118                          Couenne
1119  --with-couenne-checklevel
1120                          specify the sanity check level for project Couenne
1121  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1122  --with-pic              try to use only PIC/non-PIC objects [default=use
1123                          both]
1124  --with-tags[=TAGS]
1125                          include additional configurations [automatic]
1126  --with-asldir           specify path to AMPL solver directory (or BUILD for
1127                          compilation, or "no" for disabling AMPL)
1128  --with-nauty-incdir specify the header file directory for library Nauty
1129  --with-nauty-lib specify the flags used to link with the library Nauty
1130  --with-cplex-incdir specify the header file directory for library Cplex
1131  --with-cplex-lib specify the flags used to link with the library Cplex
1132  --with-gurobi-incdir specify the header file directory for library Gurobi
1133  --with-gurobi-lib specify the flags used to link with the library Gurobi
1134  --with-mosek-incdir specify the header file directory for library Mosek
1135  --with-mosek-lib specify the flags used to link with the library Mosek
1136  --with-osl-incdir specify the header file directory for library Osl
1137  --with-osl-lib specify the flags used to link with the library Osl
1138  --with-soplex-incdir specify the header file directory for library Soplex
1139  --with-soplex-lib specify the flags used to link with the library Soplex
1140  --with-xpress-incdir specify the header file directory for library Xpress
1141  --with-xpress-lib specify the flags used to link with the library Xpress
1142
1143Some influential environment variables:
1144  CDEFS       Additional -D flags to be used when compiling C code.
1145  ADD_CFLAGS  Additional C compiler options
1146  DBG_CFLAGS  Debug C compiler options
1147  OPT_CFLAGS  Optimize C compiler options
1148  CC          C compiler command
1149  CFLAGS      C compiler flags
1150  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1151              nonstandard directory <lib dir>
1152  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1153              headers in a nonstandard directory <include dir>
1154  MPICC       C MPI Compiler
1155  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1156  ADD_CXXFLAGS
1157              Additional C++ compiler options
1158  DBG_CXXFLAGS
1159              Debug C++ compiler options
1160  OPT_CXXFLAGS
1161              Optimize C++ compiler options
1162  CXX         C++ compiler command
1163  CXXFLAGS    C++ compiler flags
1164  MPICXX      C++ MPI Compiler
1165  CPP         C preprocessor
1166  CXXCPP      C++ preprocessor
1167  F77         Fortran 77 compiler command
1168  FFLAGS      Fortran 77 compiler flags
1169
1170Use these variables to override the choices made by `configure' or to help
1171it to find libraries and programs with nonstandard names/locations.
1172
1173Report bugs to <couenne@list.coin-or.org>.
1174_ACEOF
1175fi
1176
1177if test "$ac_init_help" = "recursive"; then
1178  # If there are subdirs, report their specific --help.
1179  ac_popdir=`pwd`
1180  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1181    test -d $ac_dir || continue
1182    ac_builddir=.
1183
1184if test "$ac_dir" != .; then
1185  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1186  # A "../" for each directory in $ac_dir_suffix.
1187  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1188else
1189  ac_dir_suffix= ac_top_builddir=
1190fi
1191
1192case $srcdir in
1193  .)  # No --srcdir option.  We are building in place.
1194    ac_srcdir=.
1195    if test -z "$ac_top_builddir"; then
1196       ac_top_srcdir=.
1197    else
1198       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1199    fi ;;
1200  [\\/]* | ?:[\\/]* )  # Absolute path.
1201    ac_srcdir=$srcdir$ac_dir_suffix;
1202    ac_top_srcdir=$srcdir ;;
1203  *) # Relative path.
1204    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1205    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1206esac
1207
1208# Do not use `cd foo && pwd` to compute absolute paths, because
1209# the directories may not exist.
1210case `pwd` in
1211.) ac_abs_builddir="$ac_dir";;
1212*)
1213  case "$ac_dir" in
1214  .) ac_abs_builddir=`pwd`;;
1215  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1216  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1217  esac;;
1218esac
1219case $ac_abs_builddir in
1220.) ac_abs_top_builddir=${ac_top_builddir}.;;
1221*)
1222  case ${ac_top_builddir}. in
1223  .) ac_abs_top_builddir=$ac_abs_builddir;;
1224  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1225  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1226  esac;;
1227esac
1228case $ac_abs_builddir in
1229.) ac_abs_srcdir=$ac_srcdir;;
1230*)
1231  case $ac_srcdir in
1232  .) ac_abs_srcdir=$ac_abs_builddir;;
1233  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1234  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1235  esac;;
1236esac
1237case $ac_abs_builddir in
1238.) ac_abs_top_srcdir=$ac_top_srcdir;;
1239*)
1240  case $ac_top_srcdir in
1241  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1242  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1243  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1244  esac;;
1245esac
1246
1247    cd $ac_dir
1248    # Check for guested configure; otherwise get Cygnus style configure.
1249    if test -f $ac_srcdir/configure.gnu; then
1250      echo
1251      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1252    elif test -f $ac_srcdir/configure; then
1253      echo
1254      $SHELL $ac_srcdir/configure  --help=recursive
1255    elif test -f $ac_srcdir/configure.ac ||
1256           test -f $ac_srcdir/configure.in; then
1257      echo
1258      $ac_configure --help
1259    else
1260      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1261    fi
1262    cd $ac_popdir
1263  done
1264fi
1265
1266test -n "$ac_init_help" && exit 0
1267if $ac_init_version; then
1268  cat <<\_ACEOF
1269Couenne configure trunk
1270generated by GNU Autoconf 2.59
1271
1272Copyright (C) 2003 Free Software Foundation, Inc.
1273This configure script is free software; the Free Software Foundation
1274gives unlimited permission to copy, distribute and modify it.
1275
1276
1277Copyright 2006 Carnegie Mellon University, International Business Machines and others.
1278All Rights Reserved.
1279This file is part of the open source package Coin which is distributed
1280under the Common Public License.
1281_ACEOF
1282  exit 0
1283fi
1284exec 5>config.log
1285cat >&5 <<_ACEOF
1286This file contains any messages produced by compilers while
1287running configure, to aid debugging if configure makes a mistake.
1288
1289It was created by Couenne $as_me trunk, which was
1290generated by GNU Autoconf 2.59.  Invocation command line was
1291
1292  $ $0 $@
1293
1294_ACEOF
1295{
1296cat <<_ASUNAME
1297## --------- ##
1298## Platform. ##
1299## --------- ##
1300
1301hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1302uname -m = `(uname -m) 2>/dev/null || echo unknown`
1303uname -r = `(uname -r) 2>/dev/null || echo unknown`
1304uname -s = `(uname -s) 2>/dev/null || echo unknown`
1305uname -v = `(uname -v) 2>/dev/null || echo unknown`
1306
1307/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1308/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1309
1310/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1311/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1312/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1313hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1314/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1315/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1316/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1317
1318_ASUNAME
1319
1320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1321for as_dir in $PATH
1322do
1323  IFS=$as_save_IFS
1324  test -z "$as_dir" && as_dir=.
1325  echo "PATH: $as_dir"
1326done
1327
1328} >&5
1329
1330cat >&5 <<_ACEOF
1331
1332
1333## ----------- ##
1334## Core tests. ##
1335## ----------- ##
1336
1337_ACEOF
1338
1339
1340# Keep a trace of the command line.
1341# Strip out --no-create and --no-recursion so they do not pile up.
1342# Strip out --silent because we don't want to record it for future runs.
1343# Also quote any args containing shell meta-characters.
1344# Make two passes to allow for proper duplicate-argument suppression.
1345ac_configure_args=
1346ac_configure_args0=
1347ac_configure_args1=
1348ac_sep=
1349ac_must_keep_next=false
1350for ac_pass in 1 2
1351do
1352  for ac_arg
1353  do
1354    case $ac_arg in
1355    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1356    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1357    | -silent | --silent | --silen | --sile | --sil)
1358      continue ;;
1359    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1360      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1361    esac
1362    case $ac_pass in
1363    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1364    2)
1365      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1366      if test $ac_must_keep_next = true; then
1367        ac_must_keep_next=false # Got value, back to normal.
1368      else
1369        case $ac_arg in
1370          *=* | --config-cache | -C | -disable-* | --disable-* \
1371          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1372          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1373          | -with-* | --with-* | -without-* | --without-* | --x)
1374            case "$ac_configure_args0 " in
1375              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1376            esac
1377            ;;
1378          -* ) ac_must_keep_next=true ;;
1379        esac
1380      fi
1381      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1382      # Get rid of the leading space.
1383      ac_sep=" "
1384      ;;
1385    esac
1386  done
1387done
1388$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1389$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1390
1391# When interrupted or exit'd, cleanup temporary files, and complete
1392# config.log.  We remove comments because anyway the quotes in there
1393# would cause problems or look ugly.
1394# WARNING: Be sure not to use single quotes in there, as some shells,
1395# such as our DU 5.0 friend, will then `close' the trap.
1396trap 'exit_status=$?
1397  # Save into config.log some information that might help in debugging.
1398  {
1399    echo
1400
1401    cat <<\_ASBOX
1402## ---------------- ##
1403## Cache variables. ##
1404## ---------------- ##
1405_ASBOX
1406    echo
1407    # The following way of writing the cache mishandles newlines in values,
1408{
1409  (set) 2>&1 |
1410    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1411    *ac_space=\ *)
1412      sed -n \
1413        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1414          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1415      ;;
1416    *)
1417      sed -n \
1418        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1419      ;;
1420    esac;
1421}
1422    echo
1423
1424    cat <<\_ASBOX
1425## ----------------- ##
1426## Output variables. ##
1427## ----------------- ##
1428_ASBOX
1429    echo
1430    for ac_var in $ac_subst_vars
1431    do
1432      eval ac_val=$`echo $ac_var`
1433      echo "$ac_var='"'"'$ac_val'"'"'"
1434    done | sort
1435    echo
1436
1437    if test -n "$ac_subst_files"; then
1438      cat <<\_ASBOX
1439## ------------- ##
1440## Output files. ##
1441## ------------- ##
1442_ASBOX
1443      echo
1444      for ac_var in $ac_subst_files
1445      do
1446        eval ac_val=$`echo $ac_var`
1447        echo "$ac_var='"'"'$ac_val'"'"'"
1448      done | sort
1449      echo
1450    fi
1451
1452    if test -s confdefs.h; then
1453      cat <<\_ASBOX
1454## ----------- ##
1455## confdefs.h. ##
1456## ----------- ##
1457_ASBOX
1458      echo
1459      sed "/^$/d" confdefs.h | sort
1460      echo
1461    fi
1462    test "$ac_signal" != 0 &&
1463      echo "$as_me: caught signal $ac_signal"
1464    echo "$as_me: exit $exit_status"
1465  } >&5
1466  rm -f core *.core &&
1467  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1468    exit $exit_status
1469     ' 0
1470for ac_signal in 1 2 13 15; do
1471  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1472done
1473ac_signal=0
1474
1475# confdefs.h avoids OS command line length limits that DEFS can exceed.
1476rm -rf conftest* confdefs.h
1477# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1478echo >confdefs.h
1479
1480# Predefined preprocessor variables.
1481
1482cat >>confdefs.h <<_ACEOF
1483#define PACKAGE_NAME "$PACKAGE_NAME"
1484_ACEOF
1485
1486
1487cat >>confdefs.h <<_ACEOF
1488#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1489_ACEOF
1490
1491
1492cat >>confdefs.h <<_ACEOF
1493#define PACKAGE_VERSION "$PACKAGE_VERSION"
1494_ACEOF
1495
1496
1497cat >>confdefs.h <<_ACEOF
1498#define PACKAGE_STRING "$PACKAGE_STRING"
1499_ACEOF
1500
1501
1502cat >>confdefs.h <<_ACEOF
1503#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1504_ACEOF
1505
1506
1507# Let the site file select an alternate cache file if it wants to.
1508# Prefer explicitly selected file to automatically selected ones.
1509if test -z "$CONFIG_SITE"; then
1510  if test "x$prefix" != xNONE; then
1511    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1512  else
1513    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1514  fi
1515fi
1516for ac_site_file in $CONFIG_SITE; do
1517  if test -r "$ac_site_file"; then
1518    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1519echo "$as_me: loading site script $ac_site_file" >&6;}
1520    sed 's/^/| /' "$ac_site_file" >&5
1521    . "$ac_site_file"
1522  fi
1523done
1524
1525if test -r "$cache_file"; then
1526  # Some versions of bash will fail to source /dev/null (special
1527  # files actually), so we avoid doing that.
1528  if test -f "$cache_file"; then
1529    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1530echo "$as_me: loading cache $cache_file" >&6;}
1531    case $cache_file in
1532      [\\/]* | ?:[\\/]* ) . $cache_file;;
1533      *)                      . ./$cache_file;;
1534    esac
1535  fi
1536else
1537  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1538echo "$as_me: creating cache $cache_file" >&6;}
1539  >$cache_file
1540fi
1541
1542# Check that the precious variables saved in the cache have kept the same
1543# value.
1544ac_cache_corrupted=false
1545for ac_var in `(set) 2>&1 |
1546               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1547  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1548  eval ac_new_set=\$ac_env_${ac_var}_set
1549  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1550  eval ac_new_val="\$ac_env_${ac_var}_value"
1551  case $ac_old_set,$ac_new_set in
1552    set,)
1553      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1554echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1555      ac_cache_corrupted=: ;;
1556    ,set)
1557      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1558echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1559      ac_cache_corrupted=: ;;
1560    ,);;
1561    *)
1562      if test "x$ac_old_val" != "x$ac_new_val"; then
1563        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1564echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1565        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1566echo "$as_me:   former value:  $ac_old_val" >&2;}
1567        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1568echo "$as_me:   current value: $ac_new_val" >&2;}
1569        ac_cache_corrupted=:
1570      fi;;
1571  esac
1572  # Pass precious variables to config.status.
1573  if test "$ac_new_set" = set; then
1574    case $ac_new_val in
1575    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1576      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1577    *) ac_arg=$ac_var=$ac_new_val ;;
1578    esac
1579    case " $ac_configure_args " in
1580      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1581      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1582    esac
1583  fi
1584done
1585if $ac_cache_corrupted; then
1586  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1587echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1588  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1589echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1590   { (exit 1); exit 1; }; }
1591fi
1592
1593ac_ext=c
1594ac_cpp='$CPP $CPPFLAGS'
1595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1597ac_compiler_gnu=$ac_cv_c_compiler_gnu
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628# List one file in the package so that the configure script can test
1629# whether the package is actually there
1630
1631
1632# Where should everything be installed by default?  Here, we want it
1633# to be installed directly in 'bin', 'lib', 'include' subdirectories
1634# of the directory where configure is run.  The default would be
1635# /usr/local.
1636
1637
1638#############################################################################
1639#                         Standard build tool stuff                         #
1640#############################################################################
1641
1642# Get the system type
1643ac_aux_dir=
1644for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1645  if test -f $ac_dir/install-sh; then
1646    ac_aux_dir=$ac_dir
1647    ac_install_sh="$ac_aux_dir/install-sh -c"
1648    break
1649  elif test -f $ac_dir/install.sh; then
1650    ac_aux_dir=$ac_dir
1651    ac_install_sh="$ac_aux_dir/install.sh -c"
1652    break
1653  elif test -f $ac_dir/shtool; then
1654    ac_aux_dir=$ac_dir
1655    ac_install_sh="$ac_aux_dir/shtool install -c"
1656    break
1657  fi
1658done
1659if test -z "$ac_aux_dir"; then
1660  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1661echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1662   { (exit 1); exit 1; }; }
1663fi
1664ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1665ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1666ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1667
1668# Make sure we can run config.sub.
1669$ac_config_sub sun4 >/dev/null 2>&1 ||
1670  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1671echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1672   { (exit 1); exit 1; }; }
1673
1674echo "$as_me:$LINENO: checking build system type" >&5
1675echo $ECHO_N "checking build system type... $ECHO_C" >&6
1676if test "${ac_cv_build+set}" = set; then
1677  echo $ECHO_N "(cached) $ECHO_C" >&6
1678else
1679  ac_cv_build_alias=$build_alias
1680test -z "$ac_cv_build_alias" &&
1681  ac_cv_build_alias=`$ac_config_guess`
1682test -z "$ac_cv_build_alias" &&
1683  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1684echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1685   { (exit 1); exit 1; }; }
1686ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1687  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1688echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1689   { (exit 1); exit 1; }; }
1690
1691fi
1692echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1693echo "${ECHO_T}$ac_cv_build" >&6
1694build=$ac_cv_build
1695build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1698
1699
1700
1701# Initialization specifically for project main directories
1702# Initialize the ADDLIBS variable
1703ADDLIBS="-lm $LIBS"
1704
1705
1706# As backup, we make sure we don't loose an FLIBS if it has been set
1707# by the user
1708save_FLIBS="$FLIBS"
1709
1710# Initialize the FADDLIBS variable (which is to be used with a fortran
1711# compiler and will not include FLIBS)
1712FADDLIBS="$LIBS"
1713
1714
1715# A useful makefile conditional that is always false
1716
1717
1718if false; then
1719  ALWAYS_FALSE_TRUE=
1720  ALWAYS_FALSE_FALSE='#'
1721else
1722  ALWAYS_FALSE_TRUE='#'
1723  ALWAYS_FALSE_FALSE=
1724fi
1725
1726
1727# We set the following variable so that we know later in AC_COIN_FINALIZE
1728# that we are in a project main directory
1729coin_projectdir=yes
1730
1731# Set the project's version number. Use m4_ifval here to avoid defining
1732# _VERSION when the user has not supplied a parameter.
1733
1734
1735
1736# Check if user wants to produce debugging code
1737
1738echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1739echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1740
1741# Check whether --enable-debug or --disable-debug was given.
1742if test "${enable_debug+set}" = set; then
1743  enableval="$enable_debug"
1744  case "${enableval}" in
1745   yes) coin_debug_compile=true
1746        if test "${enable_shared+set}" = set; then :; else
1747          enable_shared=no
1748        fi
1749        ;;
1750   no)  coin_debug_compile=false
1751        ;;
1752   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1753echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1754   { (exit 1); exit 1; }; }
1755        ;;
1756esac
1757else
1758  coin_debug_compile=false
1759fi;
1760
1761# Check whether --enable-debug-couenne or --disable-debug-couenne was given.
1762if test "${enable_debug_couenne+set}" = set; then
1763  enableval="$enable_debug_couenne"
1764  case "${enableval}" in
1765    yes) coin_debug_compile=true
1766         enable_shared=no
1767         ;;
1768    no)  coin_debug_compile=false
1769         ;;
1770    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-couenne" >&5
1771echo "$as_me: error: bad value ${enableval} for --enable-debug-couenne" >&2;}
1772   { (exit 1); exit 1; }; }
1773         ;;
1774 esac
1775else
1776  :
1777fi;
1778
1779 # m4_ifvaln([Couenne],
1780
1781if test $coin_debug_compile = true; then
1782  echo "$as_me:$LINENO: result: yes" >&5
1783echo "${ECHO_T}yes" >&6
1784else
1785  echo "$as_me:$LINENO: result: no" >&5
1786echo "${ECHO_T}no" >&6
1787fi
1788
1789
1790# Check whether --with-couenne-verbosity or --without-couenne-verbosity was given.
1791if test "${with_couenne_verbosity+set}" = set; then
1792  withval="$with_couenne_verbosity"
1793  if test "$withval" = yes; then
1794                withval=1
1795              fi
1796              coin_couenne_verbosity=$withval
1797else
1798  coin_couenne_verbosity=0
1799fi;
1800
1801cat >>confdefs.h <<_ACEOF
1802#define COIN_COUENNE_VERBOSITY $coin_couenne_verbosity
1803_ACEOF
1804
1805
1806
1807# Check whether --with-couenne-checklevel or --without-couenne-checklevel was given.
1808if test "${with_couenne_checklevel+set}" = set; then
1809  withval="$with_couenne_checklevel"
1810  if test "$withval" = yes; then
1811                withval=1
1812              fi
1813              coin_couenne_checklevel=$withval
1814else
1815  coin_couenne_checklevel=0
1816fi;
1817
1818cat >>confdefs.h <<_ACEOF
1819#define COIN_COUENNE_CHECKLEVEL $coin_couenne_checklevel
1820_ACEOF
1821
1822
1823# We use the following variable to have a string with the upper case
1824# version of the project name
1825COIN_PRJCT=COUENNE
1826
1827
1828 # m4_ifvaln([Couenne],
1829
1830
1831
1832# Get the name of the C++ compiler and appropriate compiler options
1833case $build in
1834  *-mingw*)
1835    if test "${LD+set}" = set; then :; else
1836      LD=link
1837    fi
1838    ;;
1839 esac
1840 case $enable_doscompile in
1841   msvc)
1842     if test "x${LD+set}" = xset; then :; else
1843       LD=link
1844     fi
1845     ;;
1846 esac
1847
1848
1849 # Check whether --enable-doscompile or --disable-doscompile was given.
1850if test "${enable_doscompile+set}" = set; then
1851  enableval="$enable_doscompile"
1852  if test "$enable_doscompile" != no; then
1853     case $build in
1854       *-cygwin* | *-mingw*) ;;
1855       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1856echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1857   { (exit 1); exit 1; }; } ;;
1858     esac
1859   fi
1860else
1861  enable_doscompile=no
1862fi;
1863 case "$enable_doscompile" in
1864   mingw)
1865     case $build in
1866       *-mingw*) enable_doscompile=no ;;
1867     esac
1868     ;;
1869   msvc|no) ;;
1870   yes) enable_doscompile=mingw ;;
1871   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1872                    Try configure --help=recursive." >&5
1873echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1874                    Try configure --help=recursive." >&2;}
1875   { (exit 1); exit 1; }; }
1876      ;;
1877  esac
1878  if test "$enable_doscompile" != no ; then
1879    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1880echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1881  fi
1882
1883
1884
1885
1886ac_ext=c
1887ac_cpp='$CPP $CPPFLAGS'
1888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1890ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891
1892
1893# For consistency, we set the C compiler to the same value of the C++
1894# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1895if test x"$CXX" != x; then
1896  case "$CXX" in
1897    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1898      if test x"$CC" = x; then
1899        CC="$CXX"
1900        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1901echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1902      fi
1903      ;;
1904  esac
1905fi
1906
1907
1908
1909
1910
1911
1912coin_has_cc=yes
1913
1914save_cflags="$CFLAGS"
1915
1916# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1917# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1918# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1919# compiler. In this case, put cc after gcc.
1920
1921case $build in
1922  *-cygwin* | *-mingw*)
1923             if test "$enable_doscompile" = msvc ; then
1924               comps="icl cl"
1925             else
1926               comps="gcc cl"
1927             fi ;;
1928  *-*-solaris*)
1929             # Extract the first word of "cc", so it can be a program name with args.
1930set dummy cc; ac_word=$2
1931echo "$as_me:$LINENO: checking for $ac_word" >&5
1932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1934  echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
1936  if test -n "$sol_cc_compiler"; then
1937  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1938else
1939  ac_prog_rejected=no
1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943  IFS=$as_save_IFS
1944  test -z "$as_dir" && as_dir=.
1945  for ac_exec_ext in '' $ac_executable_extensions; do
1946  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948       ac_prog_rejected=yes
1949       continue
1950     fi
1951    ac_cv_prog_sol_cc_compiler="cc"
1952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953    break 2
1954  fi
1955done
1956done
1957
1958if test $ac_prog_rejected = yes; then
1959  # We found a bogon in the path, so make sure we never use it.
1960  set dummy $ac_cv_prog_sol_cc_compiler
1961  shift
1962  if test $# != 0; then
1963    # We chose a different compiler from the bogus one.
1964    # However, it has the same basename, so the bogon will be chosen
1965    # first if we set sol_cc_compiler to just the basename; use the full file name.
1966    shift
1967    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1968  fi
1969fi
1970fi
1971fi
1972sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1973if test -n "$sol_cc_compiler"; then
1974  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1975echo "${ECHO_T}$sol_cc_compiler" >&6
1976else
1977  echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6
1979fi
1980
1981             if test "$sol_cc_compiler" = "cc" ; then
1982               comps="cc xlc gcc pgcc icc"
1983             else
1984               comps="xlc gcc pgcc icc cc"
1985             fi
1986             ;;
1987  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1988  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1989esac
1990
1991# We delete the cached value, since the test might not have been
1992# performed with our choice of compilers earlier
1993$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1994# AC_MSG_NOTICE([C compiler candidates: $comps])
1995ac_ext=c
1996ac_cpp='$CPP $CPPFLAGS'
1997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000if test -n "$ac_tool_prefix"; then
2001  for ac_prog in $comps
2002  do
2003    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2004set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2005echo "$as_me:$LINENO: checking for $ac_word" >&5
2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007if test "${ac_cv_prog_CC+set}" = set; then
2008  echo $ECHO_N "(cached) $ECHO_C" >&6
2009else
2010  if test -n "$CC"; then
2011  ac_cv_prog_CC="$CC" # Let the user override the test.
2012else
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016  IFS=$as_save_IFS
2017  test -z "$as_dir" && as_dir=.
2018  for ac_exec_ext in '' $ac_executable_extensions; do
2019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022    break 2
2023  fi
2024done
2025done
2026
2027fi
2028fi
2029CC=$ac_cv_prog_CC
2030if test -n "$CC"; then
2031  echo "$as_me:$LINENO: result: $CC" >&5
2032echo "${ECHO_T}$CC" >&6
2033else
2034  echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6
2036fi
2037
2038    test -n "$CC" && break
2039  done
2040fi
2041if test -z "$CC"; then
2042  ac_ct_CC=$CC
2043  for ac_prog in $comps
2044do
2045  # Extract the first word of "$ac_prog", so it can be a program name with args.
2046set dummy $ac_prog; ac_word=$2
2047echo "$as_me:$LINENO: checking for $ac_word" >&5
2048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050  echo $ECHO_N "(cached) $ECHO_C" >&6
2051else
2052  if test -n "$ac_ct_CC"; then
2053  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054else
2055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056for as_dir in $PATH
2057do
2058  IFS=$as_save_IFS
2059  test -z "$as_dir" && as_dir=.
2060  for ac_exec_ext in '' $ac_executable_extensions; do
2061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062    ac_cv_prog_ac_ct_CC="$ac_prog"
2063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064    break 2
2065  fi
2066done
2067done
2068
2069fi
2070fi
2071ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072if test -n "$ac_ct_CC"; then
2073  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074echo "${ECHO_T}$ac_ct_CC" >&6
2075else
2076  echo "$as_me:$LINENO: result: no" >&5
2077echo "${ECHO_T}no" >&6
2078fi
2079
2080  test -n "$ac_ct_CC" && break
2081done
2082
2083  CC=$ac_ct_CC
2084fi
2085
2086
2087test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2088See \`config.log' for more details." >&5
2089echo "$as_me: error: no acceptable C compiler found in \$PATH
2090See \`config.log' for more details." >&2;}
2091   { (exit 1); exit 1; }; }
2092
2093# Provide some information about the compiler.
2094echo "$as_me:$LINENO:" \
2095     "checking for C compiler version" >&5
2096ac_compiler=`set X $ac_compile; echo $2`
2097{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2098  (eval $ac_compiler --version </dev/null >&5) 2>&5
2099  ac_status=$?
2100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101  (exit $ac_status); }
2102{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2103  (eval $ac_compiler -v </dev/null >&5) 2>&5
2104  ac_status=$?
2105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106  (exit $ac_status); }
2107{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2108  (eval $ac_compiler -V </dev/null >&5) 2>&5
2109  ac_status=$?
2110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111  (exit $ac_status); }
2112
2113cat >conftest.$ac_ext <<_ACEOF
2114/* confdefs.h.  */
2115_ACEOF
2116cat confdefs.h >>conftest.$ac_ext
2117cat >>conftest.$ac_ext <<_ACEOF
2118/* end confdefs.h.  */
2119
2120int
2121main ()
2122{
2123
2124  ;
2125  return 0;
2126}
2127_ACEOF
2128ac_clean_files_save=$ac_clean_files
2129ac_clean_files="$ac_clean_files a.out a.exe b.out"
2130# Try to create an executable without -o first, disregard a.out.
2131# It will help us diagnose broken compilers, and finding out an intuition
2132# of exeext.
2133echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2134echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2135ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2136if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2137  (eval $ac_link_default) 2>&5
2138  ac_status=$?
2139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140  (exit $ac_status); }; then
2141  # Find the output, starting from the most likely.  This scheme is
2142# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2143# resort.
2144
2145# Be careful to initialize this variable, since it used to be cached.
2146# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2147ac_cv_exeext=
2148# b.out is created by i960 compilers.
2149for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2150do
2151  test -f "$ac_file" || continue
2152  case $ac_file in
2153    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2154        ;;
2155    conftest.$ac_ext )
2156        # This is the source file.
2157        ;;
2158    [ab].out )
2159        # We found the default executable, but exeext='' is most
2160        # certainly right.
2161        break;;
2162    *.* )
2163        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2164        # FIXME: I believe we export ac_cv_exeext for Libtool,
2165        # but it would be cool to find out if it's true.  Does anybody
2166        # maintain Libtool? --akim.
2167        export ac_cv_exeext
2168        break;;
2169    * )
2170        break;;
2171  esac
2172done
2173else
2174  echo "$as_me: failed program was:" >&5
2175sed 's/^/| /' conftest.$ac_ext >&5
2176
2177{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2178See \`config.log' for more details." >&5
2179echo "$as_me: error: C compiler cannot create executables
2180See \`config.log' for more details." >&2;}
2181   { (exit 77); exit 77; }; }
2182fi
2183
2184ac_exeext=$ac_cv_exeext
2185echo "$as_me:$LINENO: result: $ac_file" >&5
2186echo "${ECHO_T}$ac_file" >&6
2187
2188# Check the compiler produces executables we can run.  If not, either
2189# the compiler is broken, or we cross compile.
2190echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2191echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2192# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2193# If not cross compiling, check that we can run a simple program.
2194if test "$cross_compiling" != yes; then
2195  if { ac_try='./$ac_file'
2196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197  (eval $ac_try) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }; }; then
2201    cross_compiling=no
2202  else
2203    if test "$cross_compiling" = maybe; then
2204        cross_compiling=yes
2205    else
2206        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2207If you meant to cross compile, use \`--host'.
2208See \`config.log' for more details." >&5
2209echo "$as_me: error: cannot run C compiled programs.
2210If you meant to cross compile, use \`--host'.
2211See \`config.log' for more details." >&2;}
2212   { (exit 1); exit 1; }; }
2213    fi
2214  fi
2215fi
2216echo "$as_me:$LINENO: result: yes" >&5
2217echo "${ECHO_T}yes" >&6
2218
2219rm -f a.out a.exe conftest$ac_cv_exeext b.out
2220ac_clean_files=$ac_clean_files_save
2221# Check the compiler produces executables we can run.  If not, either
2222# the compiler is broken, or we cross compile.
2223echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2224echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2225echo "$as_me:$LINENO: result: $cross_compiling" >&5
2226echo "${ECHO_T}$cross_compiling" >&6
2227
2228echo "$as_me:$LINENO: checking for suffix of executables" >&5
2229echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2231  (eval $ac_link) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; then
2235  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2236# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2237# work properly (i.e., refer to `conftest.exe'), while it won't with
2238# `rm'.
2239for ac_file in conftest.exe conftest conftest.*; do
2240  test -f "$ac_file" || continue
2241  case $ac_file in
2242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2243    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2244          export ac_cv_exeext
2245          break;;
2246    * ) break;;
2247  esac
2248done
2249else
2250  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2251See \`config.log' for more details." >&5
2252echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2253See \`config.log' for more details." >&2;}
2254   { (exit 1); exit 1; }; }
2255fi
2256
2257rm -f conftest$ac_cv_exeext
2258echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2259echo "${ECHO_T}$ac_cv_exeext" >&6
2260
2261rm -f conftest.$ac_ext
2262EXEEXT=$ac_cv_exeext
2263ac_exeext=$EXEEXT
2264echo "$as_me:$LINENO: checking for suffix of object files" >&5
2265echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2266if test "${ac_cv_objext+set}" = set; then
2267  echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269  cat >conftest.$ac_ext <<_ACEOF
2270/* confdefs.h.  */
2271_ACEOF
2272cat confdefs.h >>conftest.$ac_ext
2273cat >>conftest.$ac_ext <<_ACEOF
2274/* end confdefs.h.  */
2275
2276int
2277main ()
2278{
2279
2280  ;
2281  return 0;
2282}
2283_ACEOF
2284rm -f conftest.o conftest.obj
2285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2286  (eval $ac_compile) 2>&5
2287  ac_status=$?
2288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289  (exit $ac_status); }; then
2290  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2291  case $ac_file in
2292    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2293    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2294       break;;
2295  esac
2296done
2297else
2298  echo "$as_me: failed program was:" >&5
2299sed 's/^/| /' conftest.$ac_ext >&5
2300
2301{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2302See \`config.log' for more details." >&5
2303echo "$as_me: error: cannot compute suffix of object files: cannot compile
2304See \`config.log' for more details." >&2;}
2305   { (exit 1); exit 1; }; }
2306fi
2307
2308rm -f conftest.$ac_cv_objext conftest.$ac_ext
2309fi
2310echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2311echo "${ECHO_T}$ac_cv_objext" >&6
2312OBJEXT=$ac_cv_objext
2313ac_objext=$OBJEXT
2314echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2315echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2316if test "${ac_cv_c_compiler_gnu+set}" = set; then
2317  echo $ECHO_N "(cached) $ECHO_C" >&6
2318else
2319  cat >conftest.$ac_ext <<_ACEOF
2320/* confdefs.h.  */
2321_ACEOF
2322cat confdefs.h >>conftest.$ac_ext
2323cat >>conftest.$ac_ext <<_ACEOF
2324/* end confdefs.h.  */
2325
2326int
2327main ()
2328{
2329#ifndef __GNUC__
2330       choke me
2331#endif
2332
2333  ;
2334  return 0;
2335}
2336_ACEOF
2337rm -f conftest.$ac_objext
2338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339  (eval $ac_compile) 2>conftest.er1
2340  ac_status=$?
2341  grep -v '^ *+' conftest.er1 >conftest.err
2342  rm -f conftest.er1
2343  cat conftest.err >&5
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); } &&
2346         { ac_try='test -z "$ac_c_werror_flag"
2347                         || test ! -s conftest.err'
2348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349  (eval $ac_try) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; } &&
2353         { ac_try='test -s conftest.$ac_objext'
2354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355  (eval $ac_try) 2>&5
2356  ac_status=$?
2357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358  (exit $ac_status); }; }; then
2359  ac_compiler_gnu=yes
2360else
2361  echo "$as_me: failed program was:" >&5
2362sed 's/^/| /' conftest.$ac_ext >&5
2363
2364ac_compiler_gnu=no
2365fi
2366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2367ac_cv_c_compiler_gnu=$ac_compiler_gnu
2368
2369fi
2370echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2371echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2372GCC=`test $ac_compiler_gnu = yes && echo yes`
2373ac_test_CFLAGS=${CFLAGS+set}
2374ac_save_CFLAGS=$CFLAGS
2375CFLAGS="-g"
2376echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2377echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2378if test "${ac_cv_prog_cc_g+set}" = set; then
2379  echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381  cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387
2388int
2389main ()
2390{
2391
2392  ;
2393  return 0;
2394}
2395_ACEOF
2396rm -f conftest.$ac_objext
2397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398  (eval $ac_compile) 2>conftest.er1
2399  ac_status=$?
2400  grep -v '^ *+' conftest.er1 >conftest.err
2401  rm -f conftest.er1
2402  cat conftest.err >&5
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); } &&
2405         { ac_try='test -z "$ac_c_werror_flag"
2406                         || test ! -s conftest.err'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; } &&
2412         { ac_try='test -s conftest.$ac_objext'
2413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414  (eval $ac_try) 2>&5
2415  ac_status=$?
2416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417  (exit $ac_status); }; }; then
2418  ac_cv_prog_cc_g=yes
2419else
2420  echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423ac_cv_prog_cc_g=no
2424fi
2425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2426fi
2427echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2428echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2429if test "$ac_test_CFLAGS" = set; then
2430  CFLAGS=$ac_save_CFLAGS
2431elif test $ac_cv_prog_cc_g = yes; then
2432  if test "$GCC" = yes; then
2433    CFLAGS="-g -O2"
2434  else
2435    CFLAGS="-g"
2436  fi
2437else
2438  if test "$GCC" = yes; then
2439    CFLAGS="-O2"
2440  else
2441    CFLAGS=
2442  fi
2443fi
2444echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2445echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2446if test "${ac_cv_prog_cc_stdc+set}" = set; then
2447  echo $ECHO_N "(cached) $ECHO_C" >&6
2448else
2449  ac_cv_prog_cc_stdc=no
2450ac_save_CC=$CC
2451cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h.  */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h.  */
2457#include <stdarg.h>
2458#include <stdio.h>
2459#include <sys/types.h>
2460#include <sys/stat.h>
2461/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2462struct buf { int x; };
2463FILE * (*rcsopen) (struct buf *, struct stat *, int);
2464static char *e (p, i)
2465     char **p;
2466     int i;
2467{
2468  return p[i];
2469}
2470static char *f (char * (*g) (char **, int), char **p, ...)
2471{
2472  char *s;
2473  va_list v;
2474  va_start (v,p);
2475  s = g (p, va_arg (v,int));
2476  va_end (v);
2477  return s;
2478}
2479
2480/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2481   function prototypes and stuff, but not '\xHH' hex character constants.
2482   These don't provoke an error unfortunately, instead are silently treated
2483   as 'x'.  The following induces an error, until -std1 is added to get
2484   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2485   array size at least.  It's necessary to write '\x00'==0 to get something
2486   that's true only with -std1.  */
2487int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2488
2489int test (int i, double x);
2490struct s1 {int (*f) (int a);};
2491struct s2 {int (*f) (double a);};
2492int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2493int argc;
2494char **argv;
2495int
2496main ()
2497{
2498return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2499  ;
2500  return 0;
2501}
2502_ACEOF
2503# Don't try gcc -ansi; that turns off useful extensions and
2504# breaks some systems' header files.
2505# AIX                   -qlanglvl=ansi
2506# Ultrix and OSF/1      -std1
2507# HP-UX 10.20 and later -Ae
2508# HP-UX older versions  -Aa -D_HPUX_SOURCE
2509# SVR4                  -Xc -D__EXTENSIONS__
2510for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2511do
2512  CC="$ac_save_CC $ac_arg"
2513  rm -f conftest.$ac_objext
2514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515  (eval $ac_compile) 2>conftest.er1
2516  ac_status=$?
2517  grep -v '^ *+' conftest.er1 >conftest.err
2518  rm -f conftest.er1
2519  cat conftest.err >&5
2520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521  (exit $ac_status); } &&
2522         { ac_try='test -z "$ac_c_werror_flag"
2523                         || test ! -s conftest.err'
2524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525  (eval $ac_try) 2>&5
2526  ac_status=$?
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); }; } &&
2529         { ac_try='test -s conftest.$ac_objext'
2530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531  (eval $ac_try) 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }; }; then
2535  ac_cv_prog_cc_stdc=$ac_arg
2536break
2537else
2538  echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541fi
2542rm -f conftest.err conftest.$ac_objext
2543done
2544rm -f conftest.$ac_ext conftest.$ac_objext
2545CC=$ac_save_CC
2546
2547fi
2548
2549case "x$ac_cv_prog_cc_stdc" in
2550  x|xno)
2551    echo "$as_me:$LINENO: result: none needed" >&5
2552echo "${ECHO_T}none needed" >&6 ;;
2553  *)
2554    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2555echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2556    CC="$CC $ac_cv_prog_cc_stdc" ;;
2557esac
2558
2559# Some people use a C++ compiler to compile C.  Since we use `exit',
2560# in C++ we need to declare it.  In case someone uses the same compiler
2561# for both compiling C and C++ we need to have the C++ compiler decide
2562# the declaration of exit, since it's the most demanding environment.
2563cat >conftest.$ac_ext <<_ACEOF
2564#ifndef __cplusplus
2565  choke me
2566#endif
2567_ACEOF
2568rm -f conftest.$ac_objext
2569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570  (eval $ac_compile) 2>conftest.er1
2571  ac_status=$?
2572  grep -v '^ *+' conftest.er1 >conftest.err
2573  rm -f conftest.er1
2574  cat conftest.err >&5
2575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576  (exit $ac_status); } &&
2577         { ac_try='test -z "$ac_c_werror_flag"
2578                         || test ! -s conftest.err'
2579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580  (eval $ac_try) 2>&5
2581  ac_status=$?
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); }; } &&
2584         { ac_try='test -s conftest.$ac_objext'
2585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586  (eval $ac_try) 2>&5
2587  ac_status=$?
2588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589  (exit $ac_status); }; }; then
2590  for ac_declaration in \
2591   '' \
2592   'extern "C" void std::exit (int) throw (); using std::exit;' \
2593   'extern "C" void std::exit (int); using std::exit;' \
2594   'extern "C" void exit (int) throw ();' \
2595   'extern "C" void exit (int);' \
2596   'void exit (int);'
2597do
2598  cat >conftest.$ac_ext <<_ACEOF
2599/* confdefs.h.  */
2600_ACEOF
2601cat confdefs.h >>conftest.$ac_ext
2602cat >>conftest.$ac_ext <<_ACEOF
2603/* end confdefs.h.  */
2604$ac_declaration
2605#include <stdlib.h>
2606int
2607main ()
2608{
2609exit (42);
2610  ;
2611  return 0;
2612}
2613_ACEOF
2614rm -f conftest.$ac_objext
2615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616  (eval $ac_compile) 2>conftest.er1
2617  ac_status=$?
2618  grep -v '^ *+' conftest.er1 >conftest.err
2619  rm -f conftest.er1
2620  cat conftest.err >&5
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); } &&
2623         { ac_try='test -z "$ac_c_werror_flag"
2624                         || test ! -s conftest.err'
2625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626  (eval $ac_try) 2>&5
2627  ac_status=$?
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); }; } &&
2630         { ac_try='test -s conftest.$ac_objext'
2631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632  (eval $ac_try) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; }; then
2636  :
2637else
2638  echo "$as_me: failed program was:" >&5
2639sed 's/^/| /' conftest.$ac_ext >&5
2640
2641continue
2642fi
2643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644  cat >conftest.$ac_ext <<_ACEOF
2645/* confdefs.h.  */
2646_ACEOF
2647cat confdefs.h >>conftest.$ac_ext
2648cat >>conftest.$ac_ext <<_ACEOF
2649/* end confdefs.h.  */
2650$ac_declaration
2651int
2652main ()
2653{
2654exit (42);
2655  ;
2656  return 0;
2657}
2658_ACEOF
2659rm -f conftest.$ac_objext
2660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661  (eval $ac_compile) 2>conftest.er1
2662  ac_status=$?
2663  grep -v '^ *+' conftest.er1 >conftest.err
2664  rm -f conftest.er1
2665  cat conftest.err >&5
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); } &&
2668         { ac_try='test -z "$ac_c_werror_flag"
2669                         || test ! -s conftest.err'
2670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671  (eval $ac_try) 2>&5
2672  ac_status=$?
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); }; } &&
2675         { ac_try='test -s conftest.$ac_objext'
2676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677  (eval $ac_try) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; }; then
2681  break
2682else
2683  echo "$as_me: failed program was:" >&5
2684sed 's/^/| /' conftest.$ac_ext >&5
2685
2686fi
2687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688done
2689rm -f conftest*
2690if test -n "$ac_declaration"; then
2691  echo '#ifdef __cplusplus' >>confdefs.h
2692  echo $ac_declaration      >>confdefs.h
2693  echo '#endif'             >>confdefs.h
2694fi
2695
2696else
2697  echo "$as_me: failed program was:" >&5
2698sed 's/^/| /' conftest.$ac_ext >&5
2699
2700fi
2701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702ac_ext=c
2703ac_cpp='$CPP $CPPFLAGS'
2704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707
2708if test -z "$CC" ; then
2709  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2710echo "$as_me: error: Failed to find a C compiler!" >&2;}
2711   { (exit 1); exit 1; }; }
2712fi
2713# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2714case "$CC" in
2715  cl* | */cl* | CL* | */CL* )
2716    if test "$ac_cv_prog_cc_g" = yes ; then
2717      ac_cv_prog_cc_g=no
2718      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2719echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2720    fi ;;
2721esac
2722CFLAGS="$save_cflags"
2723
2724# Check if a project specific CFLAGS variable has been set
2725if test x$COIN_PRJCT != x; then
2726  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2727  if test x$coin_tmp = xset; then
2728    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2729  fi
2730fi
2731
2732if test x"$CFLAGS" = x; then
2733
2734  coin_add_cflags=
2735  coin_opt_cflags=
2736  coin_dbg_cflags=
2737  coin_warn_cflags=
2738
2739  if test "$GCC" = "yes"; then
2740    case "$CC" in
2741      icc* | */icc*)
2742        ;;
2743      *)
2744        coin_opt_cflags="-O3 -fomit-frame-pointer"
2745        coin_add_cflags="-pipe"
2746        coin_dbg_cflags="-g"
2747        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2748        case $build in
2749          *-darwin*)
2750            ;;
2751          *)
2752            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2753            ;;
2754        esac
2755        case $enable_doscompile in
2756          mingw)
2757            CFLAGS="-mno-cygwin"
2758            cat >conftest.$ac_ext <<_ACEOF
2759/* confdefs.h.  */
2760_ACEOF
2761cat confdefs.h >>conftest.$ac_ext
2762cat >>conftest.$ac_ext <<_ACEOF
2763/* end confdefs.h.  */
2764
2765int
2766main ()
2767{
2768int i=0; i++;
2769  ;
2770  return 0;
2771}
2772_ACEOF
2773rm -f conftest.$ac_objext conftest$ac_exeext
2774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2775  (eval $ac_link) 2>conftest.er1
2776  ac_status=$?
2777  grep -v '^ *+' conftest.er1 >conftest.err
2778  rm -f conftest.er1
2779  cat conftest.err >&5
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); } &&
2782         { ac_try='test -z "$ac_c_werror_flag"
2783                         || test ! -s conftest.err'
2784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785  (eval $ac_try) 2>&5
2786  ac_status=$?
2787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788  (exit $ac_status); }; } &&
2789         { ac_try='test -s conftest$ac_exeext'
2790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791  (eval $ac_try) 2>&5
2792  ac_status=$?
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); }; }; then
2795  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2796else
2797  echo "$as_me: failed program was:" >&5
2798sed 's/^/| /' conftest.$ac_ext >&5
2799
2800fi
2801rm -f conftest.err conftest.$ac_objext \
2802      conftest$ac_exeext conftest.$ac_ext
2803            CFLAGS=
2804          ;;
2805        esac
2806    esac
2807  fi
2808  if test -z "$coin_opt_cflags"; then
2809    case $build in
2810      *-cygwin* | *-mingw*)
2811        case "$CC" in
2812          cl* | */cl* | CL* | */CL*)
2813            coin_opt_cflags='-MT -O2'
2814            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2815            coin_dbg_cflags='-MTd'
2816            ;;
2817          icl* | */icl* | ICL* | */ICL*)
2818            coin_opt_cflags='-MT -Ox'
2819            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2820            coin_dbg_cflags='-MTd -debug'
2821            ;;
2822        esac
2823        ;;
2824      *-linux-*)
2825        case "$CC" in
2826          icc* | */icc*)
2827            coin_opt_cflags="-O3 -ip -mp1"
2828            coin_add_cflags=""
2829            coin_dbg_cflags="-g"
2830            # Check if -i_dynamic is necessary (for new glibc library)
2831            CFLAGS=
2832            cat >conftest.$ac_ext <<_ACEOF
2833/* confdefs.h.  */
2834_ACEOF
2835cat confdefs.h >>conftest.$ac_ext
2836cat >>conftest.$ac_ext <<_ACEOF
2837/* end confdefs.h.  */
2838
2839int
2840main ()
2841{
2842int i=0; i++;
2843  ;
2844  return 0;
2845}
2846_ACEOF
2847rm -f conftest.$ac_objext conftest$ac_exeext
2848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2849  (eval $ac_link) 2>conftest.er1
2850  ac_status=$?
2851  grep -v '^ *+' conftest.er1 >conftest.err
2852  rm -f conftest.er1
2853  cat conftest.err >&5
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); } &&
2856         { ac_try='test -z "$ac_c_werror_flag"
2857                         || test ! -s conftest.err'
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); }; } &&
2863         { ac_try='test -s conftest$ac_exeext'
2864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865  (eval $ac_try) 2>&5
2866  ac_status=$?
2867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868  (exit $ac_status); }; }; then
2869  :
2870else
2871  echo "$as_me: failed program was:" >&5
2872sed 's/^/| /' conftest.$ac_ext >&5
2873
2874coin_add_cflags="-i_dynamic $coin_add_cflags"
2875fi
2876rm -f conftest.err conftest.$ac_objext \
2877      conftest$ac_exeext conftest.$ac_ext
2878            ;;
2879          pgcc* | */pgcc*)
2880            coin_opt_cflags="-fast"
2881            coin_add_cflags="-Kieee -pc 64"
2882            coin_dbg_cflags="-g"
2883            ;;
2884        esac
2885        ;;
2886      *-ibm-*)
2887        case "$CC" in
2888          xlc* | */xlc* | mpxlc* | */mpxlc*)
2889            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2890            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2891            coin_dbg_cflags="-g"
2892          ;;
2893        esac
2894        ;;
2895      *-hp-*)
2896        coin_opt_cflags="-O"
2897        coin_add_cflags="-Ae"
2898        coin_dbg_cflags="-g"
2899        ;;
2900      *-*-solaris*)
2901        coin_opt_cflags="-xO4"
2902        coin_dbg_cflags="-g"
2903        ;;
2904      *-sgi-*)
2905        coin_opt_cflags="-O -OPT:Olimit=0"
2906        coin_dbg_cflags="-g"
2907        ;;
2908    esac
2909  fi
2910
2911  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2912    coin_dbg_cflags="-g"
2913  fi
2914
2915  if test -z "$coin_opt_cflags"; then
2916    # Try if -O option works if nothing else is set
2917    CFLAGS="-O"
2918    cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h.  */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h.  */
2924
2925int
2926main ()
2927{
2928int i=0; i++;
2929  ;
2930  return 0;
2931}
2932_ACEOF
2933rm -f conftest.$ac_objext conftest$ac_exeext
2934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935  (eval $ac_link) 2>conftest.er1
2936  ac_status=$?
2937  grep -v '^ *+' conftest.er1 >conftest.err
2938  rm -f conftest.er1
2939  cat conftest.err >&5
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); } &&
2942         { ac_try='test -z "$ac_c_werror_flag"
2943                         || test ! -s conftest.err'
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); }; } &&
2949         { ac_try='test -s conftest$ac_exeext'
2950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951  (eval $ac_try) 2>&5
2952  ac_status=$?
2953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); }; }; then
2955  coin_opt_cflags="-O"
2956else
2957  echo "$as_me: failed program was:" >&5
2958sed 's/^/| /' conftest.$ac_ext >&5
2959
2960fi
2961rm -f conftest.err conftest.$ac_objext \
2962      conftest$ac_exeext conftest.$ac_ext
2963  fi
2964
2965  # if PM doesn't want the warning messages, take them out
2966  if test x"$coin_skip_warn_cflags" = xyes; then
2967    coin_warn_cflags=
2968  fi
2969
2970  if test x${DBG_CFLAGS+set} != xset; then
2971    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2972  fi
2973  if test x${OPT_CFLAGS+set} != xset; then
2974    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2975  fi
2976
2977  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2978  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2979
2980  if test "$coin_debug_compile" = "true"; then
2981    CFLAGS="$DBG_CFLAGS"
2982  else
2983    CFLAGS="$OPT_CFLAGS"
2984  fi
2985else
2986  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2987  if test x${DBG_CFLAGS+set} != xset; then
2988    DBG_CFLAGS="$CFLAGS"
2989  fi
2990  if test x${OPT_CFLAGS+set} != xset; then
2991    OPT_CFLAGS="$CFLAGS"
2992  fi
2993fi
2994
2995# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2996
2997case "$CFLAGS" in
2998  *-mno-cygwin*)
2999    if test x${CPPFLAGS+set} != xset ; then
3000      CPPFLAGS="-mno-cygwin"
3001    else
3002      case "$CPPFLAGS" in
3003        *-mno-cygwin*)
3004          ;;
3005        *)
3006          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3007          ;;
3008      esac
3009    fi ;;
3010esac
3011
3012# Try if CFLAGS works
3013save_CFLAGS="$CFLAGS"
3014cat >conftest.$ac_ext <<_ACEOF
3015/* confdefs.h.  */
3016_ACEOF
3017cat confdefs.h >>conftest.$ac_ext
3018cat >>conftest.$ac_ext <<_ACEOF
3019/* end confdefs.h.  */
3020
3021int
3022main ()
3023{
3024int i=0; i++;
3025  ;
3026  return 0;
3027}
3028_ACEOF
3029rm -f conftest.$ac_objext conftest$ac_exeext
3030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3031  (eval $ac_link) 2>conftest.er1
3032  ac_status=$?
3033  grep -v '^ *+' conftest.er1 >conftest.err
3034  rm -f conftest.er1
3035  cat conftest.err >&5
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); } &&
3038         { ac_try='test -z "$ac_c_werror_flag"
3039                         || test ! -s conftest.err'
3040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041  (eval $ac_try) 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }; } &&
3045         { ac_try='test -s conftest$ac_exeext'
3046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047  (eval $ac_try) 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }; }; then
3051  :
3052else
3053  echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056CFLAGS=
3057fi
3058rm -f conftest.err conftest.$ac_objext \
3059      conftest$ac_exeext conftest.$ac_ext
3060if test -z "$CFLAGS"; then
3061  { 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
3062echo "$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;}
3063  CFLAGS='-O'
3064  cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h.  */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h.  */
3070
3071int
3072main ()
3073{
3074int i=0; i++;
3075  ;
3076  return 0;
3077}
3078_ACEOF
3079rm -f conftest.$ac_objext conftest$ac_exeext
3080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3081  (eval $ac_link) 2>conftest.er1
3082  ac_status=$?
3083  grep -v '^ *+' conftest.er1 >conftest.err
3084  rm -f conftest.er1
3085  cat conftest.err >&5
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); } &&
3088         { ac_try='test -z "$ac_c_werror_flag"
3089                         || test ! -s conftest.err'
3090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091  (eval $ac_try) 2>&5
3092  ac_status=$?
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); }; } &&
3095         { ac_try='test -s conftest$ac_exeext'
3096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097  (eval $ac_try) 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }; }; then
3101  :
3102else
3103  echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106CFLAGS=
3107fi
3108rm -f conftest.err conftest.$ac_objext \
3109      conftest$ac_exeext conftest.$ac_ext
3110  if test -z "$CFLAGS"; then
3111    { 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
3112echo "$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;}
3113  fi
3114fi
3115
3116{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3117echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3118
3119
3120if test x"$MPICC" = x; then :; else
3121  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3122echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3123  CC="$MPICC"
3124fi
3125
3126# Correct ADDLIBS initialization if we are using the MS compiler
3127case "$CC" in
3128  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3129    ADDLIBS=
3130    case $build in
3131  *-mingw*)
3132    if test "${LD+set}" = set; then :; else
3133      LD=link
3134    fi
3135    ;;
3136 esac
3137 case $enable_doscompile in
3138   msvc)
3139     if test "x${LD+set}" = xset; then :; else
3140       LD=link
3141     fi
3142     ;;
3143 esac
3144
3145    ;;
3146esac
3147
3148ac_ext=c
3149ac_cpp='$CPP $CPPFLAGS'
3150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153
3154
3155
3156 #Let's try if that overcomes configuration problem with VC++ 6.0
3157
3158ac_ext=cc
3159ac_cpp='$CXXCPP $CPPFLAGS'
3160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3163
3164
3165
3166
3167
3168
3169
3170coin_has_cxx=yes
3171
3172save_cxxflags="$CXXFLAGS"
3173# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3174case $build in
3175  *-cygwin* | *-mingw*)
3176             if test "$enable_doscompile" = msvc ; then
3177               comps="icl cl"
3178             else
3179               comps="g++ cl"
3180             fi ;;
3181  *-*-solaris*)
3182             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3183  *-darwin*) comps="g++ c++ CC" ;;
3184          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3185esac
3186
3187# We delete the cached value, since the test might not have been
3188# performed with our choice of compilers earlier
3189$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3190# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3191ac_ext=cc
3192ac_cpp='$CXXCPP $CPPFLAGS'
3193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3196if test -n "$ac_tool_prefix"; then
3197  for ac_prog in $CCC $comps
3198  do
3199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3201echo "$as_me:$LINENO: checking for $ac_word" >&5
3202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203if test "${ac_cv_prog_CXX+set}" = set; then
3204  echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206  if test -n "$CXX"; then
3207  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212  IFS=$as_save_IFS
3213  test -z "$as_dir" && as_dir=.
3214  for ac_exec_ext in '' $ac_executable_extensions; do
3215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218    break 2
3219  fi
3220done
3221done
3222
3223fi
3224fi
3225CXX=$ac_cv_prog_CXX
3226if test -n "$CXX"; then
3227  echo "$as_me:$LINENO: result: $CXX" >&5
3228echo "${ECHO_T}$CXX" >&6
3229else
3230  echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
3232fi
3233
3234    test -n "$CXX" && break
3235  done
3236fi
3237if test -z "$CXX"; then
3238  ac_ct_CXX=$CXX
3239  for ac_prog in $CCC $comps
3240do
3241  # Extract the first word of "$ac_prog", so it can be a program name with args.
3242set dummy $ac_prog; ac_word=$2
3243echo "$as_me:$LINENO: checking for $ac_word" >&5
3244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3245if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3246  echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248  if test -n "$ac_ct_CXX"; then
3249  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256  for ac_exec_ext in '' $ac_executable_extensions; do
3257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258    ac_cv_prog_ac_ct_CXX="$ac_prog"
3259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262done
3263done
3264
3265fi
3266fi
3267ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3268if test -n "$ac_ct_CXX"; then
3269  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3270echo "${ECHO_T}$ac_ct_CXX" >&6
3271else
3272  echo "$as_me:$LINENO: result: no" >&5
3273echo "${ECHO_T}no" >&6
3274fi
3275
3276  test -n "$ac_ct_CXX" && break
3277done
3278test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3279
3280  CXX=$ac_ct_CXX
3281fi
3282
3283
3284# Provide some information about the compiler.
3285echo "$as_me:$LINENO:" \
3286     "checking for C++ compiler version" >&5
3287ac_compiler=`set X $ac_compile; echo $2`
3288{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3289  (eval $ac_compiler --version </dev/null >&5) 2>&5
3290  ac_status=$?
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); }
3293{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3294  (eval $ac_compiler -v </dev/null >&5) 2>&5
3295  ac_status=$?
3296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297  (exit $ac_status); }
3298{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3299  (eval $ac_compiler -V </dev/null >&5) 2>&5
3300  ac_status=$?
3301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302  (exit $ac_status); }
3303
3304echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3305echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3306if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3307  echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
3309  cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h.  */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h.  */
3315
3316int
3317main ()
3318{
3319#ifndef __GNUC__
3320       choke me
3321#endif
3322
3323  ;
3324  return 0;
3325}
3326_ACEOF
3327rm -f conftest.$ac_objext
3328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3329  (eval $ac_compile) 2>conftest.er1
3330  ac_status=$?
3331  grep -v '^ *+' conftest.er1 >conftest.err
3332  rm -f conftest.er1
3333  cat conftest.err >&5
3334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); } &&
3336         { ac_try='test -z "$ac_cxx_werror_flag"
3337                         || test ! -s conftest.err'
3338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339  (eval $ac_try) 2>&5
3340  ac_status=$?
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); }; } &&
3343         { ac_try='test -s conftest.$ac_objext'
3344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345  (eval $ac_try) 2>&5
3346  ac_status=$?
3347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348  (exit $ac_status); }; }; then
3349  ac_compiler_gnu=yes
3350else
3351  echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354ac_compiler_gnu=no
3355fi
3356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3357ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3358
3359fi
3360echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3361echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3362GXX=`test $ac_compiler_gnu = yes && echo yes`
3363ac_test_CXXFLAGS=${CXXFLAGS+set}
3364ac_save_CXXFLAGS=$CXXFLAGS
3365CXXFLAGS="-g"
3366echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3367echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3368if test "${ac_cv_prog_cxx_g+set}" = set; then
3369  echo $ECHO_N "(cached) $ECHO_C" >&6
3370else
3371  cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h.  */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h.  */
3377
3378int
3379main ()
3380{
3381
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386rm -f conftest.$ac_objext
3387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388  (eval $ac_compile) 2>conftest.er1
3389  ac_status=$?
3390  grep -v '^ *+' conftest.er1 >conftest.err
3391  rm -f conftest.er1
3392  cat conftest.err >&5
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); } &&
3395         { ac_try='test -z "$ac_cxx_werror_flag"
3396                         || test ! -s conftest.err'
3397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398  (eval $ac_try) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; } &&
3402         { ac_try='test -s conftest.$ac_objext'
3403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404  (eval $ac_try) 2>&5
3405  ac_status=$?
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); }; }; then
3408  ac_cv_prog_cxx_g=yes
3409else
3410  echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413ac_cv_prog_cxx_g=no
3414fi
3415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3416fi
3417echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3418echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3419if test "$ac_test_CXXFLAGS" = set; then
3420  CXXFLAGS=$ac_save_CXXFLAGS
3421elif test $ac_cv_prog_cxx_g = yes; then
3422  if test "$GXX" = yes; then
3423    CXXFLAGS="-g -O2"
3424  else
3425    CXXFLAGS="-g"
3426  fi
3427else
3428  if test "$GXX" = yes; then
3429    CXXFLAGS="-O2"
3430  else
3431    CXXFLAGS=
3432  fi
3433fi
3434for ac_declaration in \
3435   '' \
3436   'extern "C" void std::exit (int) throw (); using std::exit;' \
3437   'extern "C" void std::exit (int); using std::exit;' \
3438   'extern "C" void exit (int) throw ();' \
3439   'extern "C" void exit (int);' \
3440   'void exit (int);'
3441do
3442  cat >conftest.$ac_ext <<_ACEOF
3443/* confdefs.h.  */
3444_ACEOF
3445cat confdefs.h >>conftest.$ac_ext
3446cat >>conftest.$ac_ext <<_ACEOF
3447/* end confdefs.h.  */
3448$ac_declaration
3449#include <stdlib.h>
3450int
3451main ()
3452{
3453exit (42);
3454  ;
3455  return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext
3459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460  (eval $ac_compile) 2>conftest.er1
3461  ac_status=$?
3462  grep -v '^ *+' conftest.er1 >conftest.err
3463  rm -f conftest.er1
3464  cat conftest.err >&5
3465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); } &&
3467         { ac_try='test -z "$ac_cxx_werror_flag"
3468                         || test ! -s conftest.err'
3469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470  (eval $ac_try) 2>&5
3471  ac_status=$?
3472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473  (exit $ac_status); }; } &&
3474         { ac_try='test -s conftest.$ac_objext'
3475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476  (eval $ac_try) 2>&5
3477  ac_status=$?
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); }; }; then
3480  :
3481else
3482  echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
3485continue
3486fi
3487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3488  cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h.  */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h.  */
3494$ac_declaration
3495int
3496main ()
3497{
3498exit (42);
3499  ;
3500  return 0;
3501}
3502_ACEOF
3503rm -f conftest.$ac_objext
3504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505  (eval $ac_compile) 2>conftest.er1
3506  ac_status=$?
3507  grep -v '^ *+' conftest.er1 >conftest.err
3508  rm -f conftest.er1
3509  cat conftest.err >&5
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); } &&
3512         { ac_try='test -z "$ac_cxx_werror_flag"
3513                         || test ! -s conftest.err'
3514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515  (eval $ac_try) 2>&5
3516  ac_status=$?
3517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518  (exit $ac_status); }; } &&
3519         { ac_try='test -s conftest.$ac_objext'
3520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521  (eval $ac_try) 2>&5
3522  ac_status=$?
3523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524  (exit $ac_status); }; }; then
3525  break
3526else
3527  echo "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
3529
3530fi
3531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3532done
3533rm -f conftest*
3534if test -n "$ac_declaration"; then
3535  echo '#ifdef __cplusplus' >>confdefs.h
3536  echo $ac_declaration      >>confdefs.h
3537  echo '#endif'             >>confdefs.h
3538fi
3539
3540ac_ext=cc
3541ac_cpp='$CXXCPP $CPPFLAGS'
3542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3545
3546
3547#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3548#thus, we test here whether $CXX is actually working
3549ac_ext=cc
3550ac_cpp='$CXXCPP $CPPFLAGS'
3551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3554
3555echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3556echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3557cat >conftest.$ac_ext <<_ACEOF
3558/* confdefs.h.  */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h.  */
3563
3564int
3565main ()
3566{
3567int i=0;
3568  ;
3569  return 0;
3570}
3571_ACEOF
3572rm -f conftest.$ac_objext
3573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574  (eval $ac_compile) 2>conftest.er1
3575  ac_status=$?
3576  grep -v '^ *+' conftest.er1 >conftest.err
3577  rm -f conftest.er1
3578  cat conftest.err >&5
3579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); } &&
3581         { ac_try='test -z "$ac_cxx_werror_flag"
3582                         || test ! -s conftest.err'
3583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584  (eval $ac_try) 2>&5
3585  ac_status=$?
3586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); }; } &&
3588         { ac_try='test -s conftest.$ac_objext'
3589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590  (eval $ac_try) 2>&5
3591  ac_status=$?
3592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593  (exit $ac_status); }; }; then
3594  echo "$as_me:$LINENO: result: yes" >&5
3595echo "${ECHO_T}yes" >&6
3596else
3597  echo "$as_me: failed program was:" >&5
3598sed 's/^/| /' conftest.$ac_ext >&5
3599
3600echo "$as_me:$LINENO: result: no" >&5
3601echo "${ECHO_T}no" >&6
3602   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3603echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3604   { (exit 1); exit 1; }; }
3605
3606fi
3607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608ac_ext=cc
3609ac_cpp='$CXXCPP $CPPFLAGS'
3610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3613
3614
3615# It seems that we need to cleanup something here for the Windows
3616case "$CXX" in
3617  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3618    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3619    mv confdefs.hh confdefs.h
3620    ;;
3621esac
3622
3623# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3624case "$CXX" in
3625  cl* | */cl* | CL* | */CL* )
3626    if test "$ac_cv_prog_cxx_g" = yes ; then
3627      ac_cv_prog_cxx_g=no
3628      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3629echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3630    fi ;;
3631esac
3632CXXFLAGS="$save_cxxflags"
3633
3634# Check if a project specific CXXFLAGS variable has been set
3635if test x$COIN_PRJCT != x; then
3636  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3637  if test x$coin_tmp = xset; then
3638    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3639  fi
3640fi
3641
3642if test x"$CXXFLAGS" = x; then
3643
3644# ToDo decide whether we want -DNDEBUG for optimization
3645  coin_add_cxxflags=
3646  coin_opt_cxxflags=
3647  coin_dbg_cxxflags=
3648  coin_warn_cxxflags=
3649
3650  if test "$GXX" = "yes"; then
3651    case "$CXX" in
3652      icpc* | */icpc*)
3653        ;;
3654      *)
3655# ToDo decide about unroll-loops
3656        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3657        coin_add_cxxflags="-pipe"
3658        coin_dbg_cxxflags="-g"
3659        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3660        case $build in
3661          *-darwin*)
3662            ;;
3663          *)
3664            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3665            ;;
3666        esac
3667
3668        case $enable_doscompile in
3669          mingw)
3670            CXXFLAGS="-mno-cygwin"
3671            cat >conftest.$ac_ext <<_ACEOF
3672/* confdefs.h.  */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h.  */
3677
3678int
3679main ()
3680{
3681int i=0; i++;
3682  ;
3683  return 0;
3684}
3685_ACEOF
3686rm -f conftest.$ac_objext conftest$ac_exeext
3687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3688  (eval $ac_link) 2>conftest.er1
3689  ac_status=$?
3690  grep -v '^ *+' conftest.er1 >conftest.err
3691  rm -f conftest.er1
3692  cat conftest.err >&5
3693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694  (exit $ac_status); } &&
3695         { ac_try='test -z "$ac_cxx_werror_flag"
3696                         || test ! -s conftest.err'
3697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698  (eval $ac_try) 2>&5
3699  ac_status=$?
3700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701  (exit $ac_status); }; } &&
3702         { ac_try='test -s conftest$ac_exeext'
3703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704  (eval $ac_try) 2>&5
3705  ac_status=$?
3706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); }; }; then
3708  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3709else
3710  echo "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
3712
3713fi
3714rm -f conftest.err conftest.$ac_objext \
3715      conftest$ac_exeext conftest.$ac_ext
3716            CXXFLAGS=
3717          ;;
3718        esac
3719    esac
3720  fi
3721
3722# Note that we do not need to cover GCC in the following tests.
3723
3724  if test -z "$coin_opt_cxxflags"; then
3725    case $build in
3726      *-cygwin* | *-mingw*)
3727        case "$CXX" in
3728          cl* | */cl* | CL* | */CL*)
3729            # The MT and MTd options are mutually exclusive
3730            coin_opt_cxxflags='-MT -O2'
3731            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3732            coin_dbg_cxxflags='-MTd'
3733            ;;
3734          icl* | */icl* | ICL* | */ICL*)
3735            # The MT and MTd options are mutually exclusive
3736            coin_opt_cxxflags='-MT -Ox'
3737            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3738            coin_dbg_cxxflags='-MTd -debug'
3739            ;;
3740        esac
3741        ;;
3742      *-linux-*)
3743        case "$CXX" in
3744          icpc* | */icpc*)
3745            coin_opt_cxxflags="-O3 -ip -mp1"
3746            coin_add_cxxflags=""
3747            coin_dbg_cxxflags="-g"
3748            # Check if -i_dynamic is necessary (for new glibc library)
3749            CXXFLAGS=
3750            cat >conftest.$ac_ext <<_ACEOF
3751/* confdefs.h.  */
3752_ACEOF
3753cat confdefs.h >>conftest.$ac_ext
3754cat >>conftest.$ac_ext <<_ACEOF
3755/* end confdefs.h.  */
3756
3757int
3758main ()
3759{
3760int i=0; i++;
3761  ;
3762  return 0;
3763}
3764_ACEOF
3765rm -f conftest.$ac_objext conftest$ac_exeext
3766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3767  (eval $ac_link) 2>conftest.er1
3768  ac_status=$?
3769  grep -v '^ *+' conftest.er1 >conftest.err
3770  rm -f conftest.er1
3771  cat conftest.err >&5
3772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773  (exit $ac_status); } &&
3774         { ac_try='test -z "$ac_cxx_werror_flag"
3775                         || test ! -s conftest.err'
3776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777  (eval $ac_try) 2>&5
3778  ac_status=$?
3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780  (exit $ac_status); }; } &&
3781         { ac_try='test -s conftest$ac_exeext'
3782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783  (eval $ac_try) 2>&5
3784  ac_status=$?
3785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786  (exit $ac_status); }; }; then
3787  :
3788else
3789  echo "$as_me: failed program was:" >&5
3790sed 's/^/| /' conftest.$ac_ext >&5
3791
3792coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3793fi
3794rm -f conftest.err conftest.$ac_objext \
3795      conftest$ac_exeext conftest.$ac_ext
3796            ;;
3797          pgCC* | */pgCC*)
3798            coin_opt_cxxflags="-fast"
3799            coin_add_cxxflags="-Kieee -pc 64"
3800            coin_dbg_cxxflags="-g"
3801            ;;
3802        esac
3803        ;;
3804      *-ibm-*)
3805        case "$CXX" in
3806          xlC* | */xlC* | mpxlC* | */mpxlC*)
3807            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3808            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3809            coin_dbg_cxxflags="-g"
3810            ;;
3811        esac
3812        ;;
3813      *-hp-*)
3814        case "$CXX" in
3815          aCC* | */aCC* )
3816            coin_opt_cxxflags="-O"
3817            coin_add_cxxflags="-AA"
3818            coin_dbg_cxxflags="-g"
3819            ;;
3820        esac
3821        ;;
3822      *-*-solaris*)
3823          coin_opt_cxxflags="-O4"
3824          coin_dbg_cxxflags="-g"
3825        ;;
3826    esac
3827  fi
3828
3829# Generic flag settings. If these don't work, add a case above.
3830
3831  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3832    coin_dbg_cxxflags="-g"
3833  fi
3834
3835  if test -z "$coin_opt_cxxflags"; then
3836    # Try if -O option works if nothing else is set
3837    CXXFLAGS=-O
3838    cat >conftest.$ac_ext <<_ACEOF
3839/* confdefs.h.  */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h.  */
3844
3845int
3846main ()
3847{
3848int i=0; i++;
3849  ;
3850  return 0;
3851}
3852_ACEOF
3853rm -f conftest.$ac_objext conftest$ac_exeext
3854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855  (eval $ac_link) 2>conftest.er1
3856  ac_status=$?
3857  grep -v '^ *+' conftest.er1 >conftest.err
3858  rm -f conftest.er1
3859  cat conftest.err >&5
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); } &&
3862         { ac_try='test -z "$ac_cxx_werror_flag"
3863                         || test ! -s conftest.err'
3864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865  (eval $ac_try) 2>&5
3866  ac_status=$?
3867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868  (exit $ac_status); }; } &&
3869         { ac_try='test -s conftest$ac_exeext'
3870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871  (eval $ac_try) 2>&5
3872  ac_status=$?
3873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874  (exit $ac_status); }; }; then
3875  coin_opt_cxxflags="-O"
3876else
3877  echo "$as_me: failed program was:" >&5
3878sed 's/^/| /' conftest.$ac_ext >&5
3879
3880fi
3881rm -f conftest.err conftest.$ac_objext \
3882      conftest$ac_exeext conftest.$ac_ext
3883  fi
3884
3885  # if PM doesn't want the warning messages, take them out
3886  if test x"$coin_skip_warn_cxxflags" = xyes; then
3887    coin_warn_cxxflags=
3888  fi
3889
3890# Do final setup of flags based on values determined above.
3891
3892  if test x${DBG_CXXFLAGS+set} != xset; then
3893    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3894  fi
3895  if test x${OPT_CXXFLAGS+set} != xset; then
3896    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3897  fi
3898
3899  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3900  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3901
3902  if test "$coin_debug_compile" = "true"; then
3903    CXXFLAGS="$DBG_CXXFLAGS"
3904  else
3905    CXXFLAGS="$OPT_CXXFLAGS"
3906  fi
3907
3908# Handle the case where CXXFLAGS was set externally.
3909else
3910  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3911  if test x${DBG_CXXFLAGS+set} != xset; then
3912    DBG_CXXFLAGS="$CXXFLAGS"
3913  fi
3914  if test x${OPT_CXXFLAGS+set} != xset; then
3915    OPT_CXXFLAGS="$CXXFLAGS"
3916  fi
3917fi
3918
3919# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3920
3921case "$CXXFLAGS" in
3922  *-mno-cygwin*)
3923    if test x${CPPFLAGS+set} != xset ; then
3924      CPPFLAGS="-mno-cygwin"
3925    else
3926      case "$CPPFLAGS" in
3927        *-mno-cygwin*)
3928          ;;
3929        *)
3930          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3931          ;;
3932      esac
3933    fi ;;
3934esac
3935
3936# Try if CXXFLAGS works
3937save_CXXFLAGS="$CXXFLAGS"
3938cat >conftest.$ac_ext <<_ACEOF
3939/* confdefs.h.  */
3940_ACEOF
3941cat confdefs.h >>conftest.$ac_ext
3942cat >>conftest.$ac_ext <<_ACEOF
3943/* end confdefs.h.  */
3944
3945int
3946main ()
3947{
3948int i=0; i++;
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953rm -f conftest.$ac_objext conftest$ac_exeext
3954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3955  (eval $ac_link) 2>conftest.er1
3956  ac_status=$?
3957  grep -v '^ *+' conftest.er1 >conftest.err
3958  rm -f conftest.er1
3959  cat conftest.err >&5
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); } &&
3962         { ac_try='test -z "$ac_cxx_werror_flag"
3963                         || test ! -s conftest.err'
3964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965  (eval $ac_try) 2>&5
3966  ac_status=$?
3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968  (exit $ac_status); }; } &&
3969         { ac_try='test -s conftest$ac_exeext'
3970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971  (eval $ac_try) 2>&5
3972  ac_status=$?
3973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974  (exit $ac_status); }; }; then
3975  :
3976else
3977  echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980CXXFLAGS=
3981fi
3982rm -f conftest.err conftest.$ac_objext \
3983      conftest$ac_exeext conftest.$ac_ext
3984if test -z "$CXXFLAGS"; then
3985  { 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
3986echo "$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;}
3987  CXXFLAGS='-O'
3988  cat >conftest.$ac_ext <<_ACEOF
3989/* confdefs.h.  */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h.  */
3994
3995int
3996main ()
3997{
3998int i=0; i++;
3999  ;
4000  return 0;
4001}
4002_ACEOF
4003rm -f conftest.$ac_objext conftest$ac_exeext
4004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005  (eval $ac_link) 2>conftest.er1
4006  ac_status=$?
4007  grep -v '^ *+' conftest.er1 >conftest.err
4008  rm -f conftest.er1
4009  cat conftest.err >&5
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); } &&
4012         { ac_try='test -z "$ac_cxx_werror_flag"
4013                         || test ! -s conftest.err'
4014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015  (eval $ac_try) 2>&5
4016  ac_status=$?
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); }; } &&
4019         { ac_try='test -s conftest$ac_exeext'
4020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021  (eval $ac_try) 2>&5
4022  ac_status=$?
4023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024  (exit $ac_status); }; }; then
4025  :
4026else
4027  echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
4029
4030CXXFLAGS=
4031fi
4032rm -f conftest.err conftest.$ac_objext \
4033      conftest$ac_exeext conftest.$ac_ext
4034  if test -z "$CXXFLAGS"; then
4035    { 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
4036echo "$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;}
4037  fi
4038fi
4039
4040{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4041echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4042
4043
4044if test x"$MPICXX" = x; then :; else
4045  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4046echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4047  CXX="$MPICXX"
4048fi
4049
4050case "$CXX" in
4051  cl* | */cl* | CL* | */CL* )
4052    case $build in
4053  *-mingw*)
4054    if test "${LD+set}" = set; then :; else
4055      LD=link
4056    fi
4057    ;;
4058 esac
4059 case $enable_doscompile in
4060   msvc)
4061     if test "x${LD+set}" = xset; then :; else
4062       LD=link
4063     fi
4064     ;;
4065 esac
4066
4067    ;;
4068esac
4069
4070ac_ext=c
4071ac_cpp='$CPP $CPPFLAGS'
4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076
4077
4078# Get the name of the C compiler and appropriate compiler options
4079
4080
4081ac_ext=c
4082ac_cpp='$CPP $CPPFLAGS'
4083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087
4088# For consistency, we set the C compiler to the same value of the C++
4089# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
4090if test x"$CXX" != x; then
4091  case "$CXX" in
4092    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4093      if test x"$CC" = x; then
4094        CC="$CXX"
4095        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
4096echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
4097      fi
4098      ;;
4099  esac
4100fi
4101
4102
4103
4104
4105
4106
4107coin_has_cc=yes
4108
4109save_cflags="$CFLAGS"
4110
4111# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
4112# Depending on the user's PATH, when Studio/Workshop cc is not present we may
4113# find /usr/ucb/cc, which is almost certainly not a good choice for the C
4114# compiler. In this case, put cc after gcc.
4115
4116case $build in
4117  *-cygwin* | *-mingw*)
4118             if test "$enable_doscompile" = msvc ; then
4119               comps="icl cl"
4120             else
4121               comps="gcc cl"
4122             fi ;;
4123  *-*-solaris*)
4124             # Extract the first word of "cc", so it can be a program name with args.
4125set dummy cc; ac_word=$2
4126echo "$as_me:$LINENO: checking for $ac_word" >&5
4127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4128if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
4129  echo $ECHO_N "(cached) $ECHO_C" >&6
4130else
4131  if test -n "$sol_cc_compiler"; then
4132  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
4133else
4134  ac_prog_rejected=no
4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH
4137do
4138  IFS=$as_save_IFS
4139  test -z "$as_dir" && as_dir=.
4140  for ac_exec_ext in '' $ac_executable_extensions; do
4141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4143       ac_prog_rejected=yes
4144       continue
4145     fi
4146    ac_cv_prog_sol_cc_compiler="cc"
4147    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148    break 2
4149  fi
4150done
4151done
4152
4153if test $ac_prog_rejected = yes; then
4154  # We found a bogon in the path, so make sure we never use it.
4155  set dummy $ac_cv_prog_sol_cc_compiler
4156  shift
4157  if test $# != 0; then
4158    # We chose a different compiler from the bogus one.
4159    # However, it has the same basename, so the bogon will be chosen
4160    # first if we set sol_cc_compiler to just the basename; use the full file name.
4161    shift
4162    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
4163  fi
4164fi
4165fi
4166fi
4167sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
4168if test -n "$sol_cc_compiler"; then
4169  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
4170echo "${ECHO_T}$sol_cc_compiler" >&6
4171else
4172  echo "$as_me:$LINENO: result: no" >&5
4173echo "${ECHO_T}no" >&6
4174fi
4175
4176             if test "$sol_cc_compiler" = "cc" ; then
4177               comps="cc xlc gcc pgcc icc"
4178             else
4179               comps="xlc gcc pgcc icc cc"
4180             fi
4181             ;;
4182  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
4183  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
4184esac
4185
4186# We delete the cached value, since the test might not have been
4187# performed with our choice of compilers earlier
4188$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
4189# AC_MSG_NOTICE([C compiler candidates: $comps])
4190ac_ext=c
4191ac_cpp='$CPP $CPPFLAGS'
4192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195if test -n "$ac_tool_prefix"; then
4196  for ac_prog in $comps
4197  do
4198    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4199set dummy $ac_tool_prefix$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_CC+set}" = set; then
4203  echo $ECHO_N "(cached) $ECHO_C" >&6
4204else
4205  if test -n "$CC"; then
4206  ac_cv_prog_CC="$CC" # 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_CC="$ac_tool_prefix$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
4224CC=$ac_cv_prog_CC
4225if test -n "$CC"; then
4226  echo "$as_me:$LINENO: result: $CC" >&5
4227echo "${ECHO_T}$CC" >&6
4228else
4229  echo "$as_me:$LINENO: result: no" >&5
4230echo "${ECHO_T}no" >&6
4231fi
4232
4233    test -n "$CC" && break
4234  done
4235fi
4236if test -z "$CC"; then
4237  ac_ct_CC=$CC
4238  for ac_prog in $comps
4239do
4240  # Extract the first word of "$ac_prog", so it can be a program name with args.
4241set dummy $ac_prog; ac_word=$2
4242echo "$as_me:$LINENO: checking for $ac_word" >&5
4243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4245  echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247  if test -n "$ac_ct_CC"; then
4248  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4249else
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253  IFS=$as_save_IFS
4254  test -z "$as_dir" && as_dir=.
4255  for ac_exec_ext in '' $ac_executable_extensions; do
4256  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257    ac_cv_prog_ac_ct_CC="$ac_prog"
4258    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259    break 2
4260  fi
4261done
4262done
4263
4264fi
4265fi
4266ac_ct_CC=$ac_cv_prog_ac_ct_CC
4267if test -n "$ac_ct_CC"; then
4268  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4269echo "${ECHO_T}$ac_ct_CC" >&6
4270else
4271  echo "$as_me:$LINENO: result: no" >&5
4272echo "${ECHO_T}no" >&6
4273fi
4274
4275  test -n "$ac_ct_CC" && break
4276done
4277
4278  CC=$ac_ct_CC
4279fi
4280
4281
4282test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4283See \`config.log' for more details." >&5
4284echo "$as_me: error: no acceptable C compiler found in \$PATH
4285See \`config.log' for more details." >&2;}
4286   { (exit 1); exit 1; }; }
4287
4288# Provide some information about the compiler.
4289echo "$as_me:$LINENO:" \
4290     "checking for C compiler version" >&5
4291ac_compiler=`set X $ac_compile; echo $2`
4292{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4293  (eval $ac_compiler --version </dev/null >&5) 2>&5
4294  ac_status=$?
4295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296  (exit $ac_status); }
4297{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4298  (eval $ac_compiler -v </dev/null >&5) 2>&5
4299  ac_status=$?
4300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301  (exit $ac_status); }
4302{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4303  (eval $ac_compiler -V </dev/null >&5) 2>&5
4304  ac_status=$?
4305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306  (exit $ac_status); }
4307
4308echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4309echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4310if test "${ac_cv_c_compiler_gnu+set}" = set; then
4311  echo $ECHO_N "(cached) $ECHO_C" >&6
4312else
4313  cat >conftest.$ac_ext <<_ACEOF
4314/* confdefs.h.  */
4315_ACEOF
4316cat confdefs.h >>conftest.$ac_ext
4317cat >>conftest.$ac_ext <<_ACEOF
4318/* end confdefs.h.  */
4319
4320int
4321main ()
4322{
4323#ifndef __GNUC__
4324       choke me
4325#endif
4326
4327  ;
4328  return 0;
4329}
4330_ACEOF
4331rm -f conftest.$ac_objext
4332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333  (eval $ac_compile) 2>conftest.er1
4334  ac_status=$?
4335  grep -v '^ *+' conftest.er1 >conftest.err
4336  rm -f conftest.er1
4337  cat conftest.err >&5
4338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339  (exit $ac_status); } &&
4340         { ac_try='test -z "$ac_c_werror_flag"
4341                         || test ! -s conftest.err'
4342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343  (eval $ac_try) 2>&5
4344  ac_status=$?
4345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346  (exit $ac_status); }; } &&
4347         { ac_try='test -s conftest.$ac_objext'
4348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349  (eval $ac_try) 2>&5
4350  ac_status=$?
4351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352  (exit $ac_status); }; }; then
4353  ac_compiler_gnu=yes
4354else
4355  echo "$as_me: failed program was:" >&5
4356sed 's/^/| /' conftest.$ac_ext >&5
4357
4358ac_compiler_gnu=no
4359fi
4360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4361ac_cv_c_compiler_gnu=$ac_compiler_gnu
4362
4363fi
4364echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4365echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4366GCC=`test $ac_compiler_gnu = yes && echo yes`
4367ac_test_CFLAGS=${CFLAGS+set}
4368ac_save_CFLAGS=$CFLAGS
4369CFLAGS="-g"
4370echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4371echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4372if test "${ac_cv_prog_cc_g+set}" = set; then
4373  echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375  cat >conftest.$ac_ext <<_ACEOF
4376/* confdefs.h.  */
4377_ACEOF
4378cat confdefs.h >>conftest.$ac_ext
4379cat >>conftest.$ac_ext <<_ACEOF
4380/* end confdefs.h.  */
4381
4382int
4383main ()
4384{
4385
4386  ;
4387  return 0;
4388}
4389_ACEOF
4390rm -f conftest.$ac_objext
4391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392  (eval $ac_compile) 2>conftest.er1
4393  ac_status=$?
4394  grep -v '^ *+' conftest.er1 >conftest.err
4395  rm -f conftest.er1
4396  cat conftest.err >&5
4397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398  (exit $ac_status); } &&
4399         { ac_try='test -z "$ac_c_werror_flag"
4400                         || test ! -s conftest.err'
4401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402  (eval $ac_try) 2>&5
4403  ac_status=$?
4404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); }; } &&
4406         { ac_try='test -s conftest.$ac_objext'
4407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408  (eval $ac_try) 2>&5
4409  ac_status=$?
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); }; }; then
4412  ac_cv_prog_cc_g=yes
4413else
4414  echo "$as_me: failed program was:" >&5
4415sed 's/^/| /' conftest.$ac_ext >&5
4416
4417ac_cv_prog_cc_g=no
4418fi
4419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4420fi
4421echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4422echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4423if test "$ac_test_CFLAGS" = set; then
4424  CFLAGS=$ac_save_CFLAGS
4425elif test $ac_cv_prog_cc_g = yes; then
4426  if test "$GCC" = yes; then
4427    CFLAGS="-g -O2"
4428  else
4429    CFLAGS="-g"
4430  fi
4431else
4432  if test "$GCC" = yes; then
4433    CFLAGS="-O2"
4434  else
4435    CFLAGS=
4436  fi
4437fi
4438echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4439echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4440if test "${ac_cv_prog_cc_stdc+set}" = set; then
4441  echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443  ac_cv_prog_cc_stdc=no
4444ac_save_CC=$CC
4445cat >conftest.$ac_ext <<_ACEOF
4446/* confdefs.h.  */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h.  */
4451#include <stdarg.h>
4452#include <stdio.h>
4453#include <sys/types.h>
4454#include <sys/stat.h>
4455/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4456struct buf { int x; };
4457FILE * (*rcsopen) (struct buf *, struct stat *, int);
4458static char *e (p, i)
4459     char **p;
4460     int i;
4461{
4462  return p[i];
4463}
4464static char *f (char * (*g) (char **, int), char **p, ...)
4465{
4466  char *s;
4467  va_list v;
4468  va_start (v,p);
4469  s = g (p, va_arg (v,int));
4470  va_end (v);
4471  return s;
4472}
4473
4474/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4475   function prototypes and stuff, but not '\xHH' hex character constants.
4476   These don't provoke an error unfortunately, instead are silently treated
4477   as 'x'.  The following induces an error, until -std1 is added to get
4478   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4479   array size at least.  It's necessary to write '\x00'==0 to get something
4480   that's true only with -std1.  */
4481int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4482
4483int test (int i, double x);
4484struct s1 {int (*f) (int a);};
4485struct s2 {int (*f) (double a);};
4486int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4487int argc;
4488char **argv;
4489int
4490main ()
4491{
4492return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4493  ;
4494  return 0;
4495}
4496_ACEOF
4497# Don't try gcc -ansi; that turns off useful extensions and
4498# breaks some systems' header files.
4499# AIX                   -qlanglvl=ansi
4500# Ultrix and OSF/1      -std1
4501# HP-UX 10.20 and later -Ae
4502# HP-UX older versions  -Aa -D_HPUX_SOURCE
4503# SVR4                  -Xc -D__EXTENSIONS__
4504for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4505do
4506  CC="$ac_save_CC $ac_arg"
4507  rm -f conftest.$ac_objext
4508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509  (eval $ac_compile) 2>conftest.er1
4510  ac_status=$?
4511  grep -v '^ *+' conftest.er1 >conftest.err
4512  rm -f conftest.er1
4513  cat conftest.err >&5
4514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515  (exit $ac_status); } &&
4516         { ac_try='test -z "$ac_c_werror_flag"
4517                         || test ! -s conftest.err'
4518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519  (eval $ac_try) 2>&5
4520  ac_status=$?
4521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522  (exit $ac_status); }; } &&
4523         { ac_try='test -s conftest.$ac_objext'
4524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525  (eval $ac_try) 2>&5
4526  ac_status=$?
4527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528  (exit $ac_status); }; }; then
4529  ac_cv_prog_cc_stdc=$ac_arg
4530break
4531else
4532  echo "$as_me: failed program was:" >&5
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
4535fi
4536rm -f conftest.err conftest.$ac_objext
4537done
4538rm -f conftest.$ac_ext conftest.$ac_objext
4539CC=$ac_save_CC
4540
4541fi
4542
4543case "x$ac_cv_prog_cc_stdc" in
4544  x|xno)
4545    echo "$as_me:$LINENO: result: none needed" >&5
4546echo "${ECHO_T}none needed" >&6 ;;
4547  *)
4548    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4549echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4550    CC="$CC $ac_cv_prog_cc_stdc" ;;
4551esac
4552
4553# Some people use a C++ compiler to compile C.  Since we use `exit',
4554# in C++ we need to declare it.  In case someone uses the same compiler
4555# for both compiling C and C++ we need to have the C++ compiler decide
4556# the declaration of exit, since it's the most demanding environment.
4557cat >conftest.$ac_ext <<_ACEOF
4558#ifndef __cplusplus
4559  choke me
4560#endif
4561_ACEOF
4562rm -f conftest.$ac_objext
4563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4564  (eval $ac_compile) 2>conftest.er1
4565  ac_status=$?
4566  grep -v '^ *+' conftest.er1 >conftest.err
4567  rm -f conftest.er1
4568  cat conftest.err >&5
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); } &&
4571         { ac_try='test -z "$ac_c_werror_flag"
4572                         || test ! -s conftest.err'
4573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574  (eval $ac_try) 2>&5
4575  ac_status=$?
4576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577  (exit $ac_status); }; } &&
4578         { ac_try='test -s conftest.$ac_objext'
4579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580  (eval $ac_try) 2>&5
4581  ac_status=$?
4582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583  (exit $ac_status); }; }; then
4584  for ac_declaration in \
4585   '' \
4586   'extern "C" void std::exit (int) throw (); using std::exit;' \
4587   'extern "C" void std::exit (int); using std::exit;' \
4588   'extern "C" void exit (int) throw ();' \
4589   'extern "C" void exit (int);' \
4590   'void exit (int);'
4591do
4592  cat >conftest.$ac_ext <<_ACEOF
4593/* confdefs.h.  */
4594_ACEOF
4595cat confdefs.h >>conftest.$ac_ext
4596cat >>conftest.$ac_ext <<_ACEOF
4597/* end confdefs.h.  */
4598$ac_declaration
4599#include <stdlib.h>
4600int
4601main ()
4602{
4603exit (42);
4604  ;
4605  return 0;
4606}
4607_ACEOF
4608rm -f conftest.$ac_objext
4609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610  (eval $ac_compile) 2>conftest.er1
4611  ac_status=$?
4612  grep -v '^ *+' conftest.er1 >conftest.err
4613  rm -f conftest.er1
4614  cat conftest.err >&5
4615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616  (exit $ac_status); } &&
4617         { ac_try='test -z "$ac_c_werror_flag"
4618                         || test ! -s conftest.err'
4619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620  (eval $ac_try) 2>&5
4621  ac_status=$?
4622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623  (exit $ac_status); }; } &&
4624         { ac_try='test -s conftest.$ac_objext'
4625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626  (eval $ac_try) 2>&5
4627  ac_status=$?
4628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629  (exit $ac_status); }; }; then
4630  :
4631else
4632  echo "$as_me: failed program was:" >&5
4633sed 's/^/| /' conftest.$ac_ext >&5
4634
4635continue
4636fi
4637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4638  cat >conftest.$ac_ext <<_ACEOF
4639/* confdefs.h.  */
4640_ACEOF
4641cat confdefs.h >>conftest.$ac_ext
4642cat >>conftest.$ac_ext <<_ACEOF
4643/* end confdefs.h.  */
4644$ac_declaration
4645int
4646main ()
4647{
4648exit (42);
4649  ;
4650  return 0;
4651}
4652_ACEOF
4653rm -f conftest.$ac_objext
4654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655  (eval $ac_compile) 2>conftest.er1
4656  ac_status=$?
4657  grep -v '^ *+' conftest.er1 >conftest.err
4658  rm -f conftest.er1
4659  cat conftest.err >&5
4660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661  (exit $ac_status); } &&
4662         { ac_try='test -z "$ac_c_werror_flag"
4663                         || test ! -s conftest.err'
4664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665  (eval $ac_try) 2>&5
4666  ac_status=$?
4667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668  (exit $ac_status); }; } &&
4669         { ac_try='test -s conftest.$ac_objext'
4670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671  (eval $ac_try) 2>&5
4672  ac_status=$?
4673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674  (exit $ac_status); }; }; then
4675  break
4676else
4677  echo "$as_me: failed program was:" >&5
4678sed 's/^/| /' conftest.$ac_ext >&5
4679
4680fi
4681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682done
4683rm -f conftest*
4684if test -n "$ac_declaration"; then
4685  echo '#ifdef __cplusplus' >>confdefs.h
4686  echo $ac_declaration      >>confdefs.h
4687  echo '#endif'             >>confdefs.h
4688fi
4689
4690else
4691  echo "$as_me: failed program was:" >&5
4692sed 's/^/| /' conftest.$ac_ext >&5
4693
4694fi
4695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696ac_ext=c
4697ac_cpp='$CPP $CPPFLAGS'
4698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701
4702if test -z "$CC" ; then
4703  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
4704echo "$as_me: error: Failed to find a C compiler!" >&2;}
4705   { (exit 1); exit 1; }; }
4706fi
4707# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
4708case "$CC" in
4709  cl* | */cl* | CL* | */CL* )
4710    if test "$ac_cv_prog_cc_g" = yes ; then
4711      ac_cv_prog_cc_g=no
4712      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
4713echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
4714    fi ;;
4715esac
4716CFLAGS="$save_cflags"
4717
4718# Check if a project specific CFLAGS variable has been set
4719if test x$COIN_PRJCT != x; then
4720  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
4721  if test x$coin_tmp = xset; then
4722    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
4723  fi
4724fi
4725
4726if test x"$CFLAGS" = x; then
4727
4728  coin_add_cflags=
4729  coin_opt_cflags=
4730  coin_dbg_cflags=
4731  coin_warn_cflags=
4732
4733  if test "$GCC" = "yes"; then
4734    case "$CC" in
4735      icc* | */icc*)
4736        ;;
4737      *)
4738        coin_opt_cflags="-O3 -fomit-frame-pointer"
4739        coin_add_cflags="-pipe"
4740        coin_dbg_cflags="-g"
4741        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
4742        case $build in
4743          *-darwin*)
4744            ;;
4745          *)
4746            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
4747            ;;
4748        esac
4749        case $enable_doscompile in
4750          mingw)
4751            CFLAGS="-mno-cygwin"
4752            cat >conftest.$ac_ext <<_ACEOF
4753/* confdefs.h.  */
4754_ACEOF
4755cat confdefs.h >>conftest.$ac_ext
4756cat >>conftest.$ac_ext <<_ACEOF
4757/* end confdefs.h.  */
4758
4759int
4760main ()
4761{
4762int i=0; i++;
4763  ;
4764  return 0;
4765}
4766_ACEOF
4767rm -f conftest.$ac_objext conftest$ac_exeext
4768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4769  (eval $ac_link) 2>conftest.er1
4770  ac_status=$?
4771  grep -v '^ *+' conftest.er1 >conftest.err
4772  rm -f conftest.er1
4773  cat conftest.err >&5
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); } &&
4776         { ac_try='test -z "$ac_c_werror_flag"
4777                         || test ! -s conftest.err'
4778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779  (eval $ac_try) 2>&5
4780  ac_status=$?
4781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); }; } &&
4783         { ac_try='test -s conftest$ac_exeext'
4784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785  (eval $ac_try) 2>&5
4786  ac_status=$?
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); }; }; then
4789  coin_add_cflags="-mno-cygwin $coin_add_cflags"
4790else
4791  echo "$as_me: failed program was:" >&5
4792sed 's/^/| /' conftest.$ac_ext >&5
4793
4794fi
4795rm -f conftest.err conftest.$ac_objext \
4796      conftest$ac_exeext conftest.$ac_ext
4797            CFLAGS=
4798          ;;
4799        esac
4800    esac
4801  fi
4802  if test -z "$coin_opt_cflags"; then
4803    case $build in
4804      *-cygwin* | *-mingw*)
4805        case "$CC" in
4806          cl* | */cl* | CL* | */CL*)
4807            coin_opt_cflags='-MT -O2'
4808            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
4809            coin_dbg_cflags='-MTd'
4810            ;;
4811          icl* | */icl* | ICL* | */ICL*)
4812            coin_opt_cflags='-MT -Ox'
4813            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
4814            coin_dbg_cflags='-MTd -debug'
4815            ;;
4816        esac
4817        ;;
4818      *-linux-*)
4819        case "$CC" in
4820          icc* | */icc*)
4821            coin_opt_cflags="-O3 -ip -mp1"
4822            coin_add_cflags=""
4823            coin_dbg_cflags="-g"
4824            # Check if -i_dynamic is necessary (for new glibc library)
4825            CFLAGS=
4826            cat >conftest.$ac_ext <<_ACEOF
4827/* confdefs.h.  */
4828_ACEOF
4829cat confdefs.h >>conftest.$ac_ext
4830cat >>conftest.$ac_ext <<_ACEOF
4831/* end confdefs.h.  */
4832
4833int
4834main ()
4835{
4836int i=0; i++;
4837  ;
4838  return 0;
4839}
4840_ACEOF
4841rm -f conftest.$ac_objext conftest$ac_exeext
4842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4843  (eval $ac_link) 2>conftest.er1
4844  ac_status=$?
4845  grep -v '^ *+' conftest.er1 >conftest.err
4846  rm -f conftest.er1
4847  cat conftest.err >&5
4848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849  (exit $ac_status); } &&
4850         { ac_try='test -z "$ac_c_werror_flag"
4851                         || test ! -s conftest.err'
4852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853  (eval $ac_try) 2>&5
4854  ac_status=$?
4855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856  (exit $ac_status); }; } &&
4857         { ac_try='test -s conftest$ac_exeext'
4858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859  (eval $ac_try) 2>&5
4860  ac_status=$?
4861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862  (exit $ac_status); }; }; then
4863  :
4864else
4865  echo "$as_me: failed program was:" >&5
4866sed 's/^/| /' conftest.$ac_ext >&5
4867
4868coin_add_cflags="-i_dynamic $coin_add_cflags"
4869fi
4870rm -f conftest.err conftest.$ac_objext \
4871      conftest$ac_exeext conftest.$ac_ext
4872            ;;
4873          pgcc* | */pgcc*)
4874            coin_opt_cflags="-fast"
4875            coin_add_cflags="-Kieee -pc 64"
4876            coin_dbg_cflags="-g"
4877            ;;
4878        esac
4879        ;;
4880      *-ibm-*)
4881        case "$CC" in
4882          xlc* | */xlc* | mpxlc* | */mpxlc*)
4883            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4884            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4885            coin_dbg_cflags="-g"
4886          ;;
4887        esac
4888        ;;
4889      *-hp-*)
4890        coin_opt_cflags="-O"
4891        coin_add_cflags="-Ae"
4892        coin_dbg_cflags="-g"
4893        ;;
4894      *-*-solaris*)
4895        coin_opt_cflags="-xO4"
4896        coin_dbg_cflags="-g"
4897        ;;
4898      *-sgi-*)
4899        coin_opt_cflags="-O -OPT:Olimit=0"
4900        coin_dbg_cflags="-g"
4901        ;;
4902    esac
4903  fi
4904
4905  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
4906    coin_dbg_cflags="-g"
4907  fi
4908
4909  if test -z "$coin_opt_cflags"; then
4910    # Try if -O option works if nothing else is set
4911    CFLAGS="-O"
4912    cat >conftest.$ac_ext <<_ACEOF
4913/* confdefs.h.  */
4914_ACEOF
4915cat confdefs.h >>conftest.$ac_ext
4916cat >>conftest.$ac_ext <<_ACEOF
4917/* end confdefs.h.  */
4918
4919int
4920main ()
4921{
4922int i=0; i++;
4923  ;
4924  return 0;
4925}
4926_ACEOF
4927rm -f conftest.$ac_objext conftest$ac_exeext
4928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4929  (eval $ac_link) 2>conftest.er1
4930  ac_status=$?
4931  grep -v '^ *+' conftest.er1 >conftest.err
4932  rm -f conftest.er1
4933  cat conftest.err >&5
4934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935  (exit $ac_status); } &&
4936         { ac_try='test -z "$ac_c_werror_flag"
4937                         || test ! -s conftest.err'
4938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939  (eval $ac_try) 2>&5
4940  ac_status=$?
4941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); }; } &&
4943         { ac_try='test -s conftest$ac_exeext'
4944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945  (eval $ac_try) 2>&5
4946  ac_status=$?
4947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948  (exit $ac_status); }; }; then
4949  coin_opt_cflags="-O"
4950else
4951  echo "$as_me: failed program was:" >&5
4952sed 's/^/| /' conftest.$ac_ext >&5
4953
4954fi
4955rm -f conftest.err conftest.$ac_objext \
4956      conftest$ac_exeext conftest.$ac_ext
4957  fi
4958
4959  # if PM doesn't want the warning messages, take them out
4960  if test x"$coin_skip_warn_cflags" = xyes; then
4961    coin_warn_cflags=
4962  fi
4963
4964  if test x${DBG_CFLAGS+set} != xset; then
4965    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
4966  fi
4967  if test x${OPT_CFLAGS+set} != xset; then
4968    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
4969  fi
4970
4971  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
4972  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
4973
4974  if test "$coin_debug_compile" = "true"; then
4975    CFLAGS="$DBG_CFLAGS"
4976  else
4977    CFLAGS="$OPT_CFLAGS"
4978  fi
4979else
4980  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
4981  if test x${DBG_CFLAGS+set} != xset; then
4982    DBG_CFLAGS="$CFLAGS"
4983  fi
4984  if test x${OPT_CFLAGS+set} != xset; then
4985    OPT_CFLAGS="$CFLAGS"
4986  fi
4987fi
4988
4989# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4990
4991case "$CFLAGS" in
4992  *-mno-cygwin*)
4993    if test x${CPPFLAGS+set} != xset ; then
4994      CPPFLAGS="-mno-cygwin"
4995    else
4996      case "$CPPFLAGS" in
4997        *-mno-cygwin*)
4998          ;;
4999        *)
5000          CPPFLAGS="$CPPFLAGS -mno-cygwin"
5001          ;;
5002      esac
5003    fi ;;
5004esac
5005
5006# Try if CFLAGS works
5007save_CFLAGS="$CFLAGS"
5008cat >conftest.$ac_ext <<_ACEOF
5009/* confdefs.h.  */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h.  */
5014
5015int
5016main ()
5017{
5018int i=0; i++;
5019  ;
5020  return 0;
5021}
5022_ACEOF
5023rm -f conftest.$ac_objext conftest$ac_exeext
5024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5025  (eval $ac_link) 2>conftest.er1
5026  ac_status=$?
5027  grep -v '^ *+' conftest.er1 >conftest.err
5028  rm -f conftest.er1
5029  cat conftest.err >&5
5030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031  (exit $ac_status); } &&
5032         { ac_try='test -z "$ac_c_werror_flag"
5033                         || test ! -s conftest.err'
5034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035  (eval $ac_try) 2>&5
5036  ac_status=$?
5037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038  (exit $ac_status); }; } &&
5039         { ac_try='test -s conftest$ac_exeext'
5040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041  (eval $ac_try) 2>&5
5042  ac_status=$?
5043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044  (exit $ac_status); }; }; then
5045  :
5046else
5047  echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050CFLAGS=
5051fi
5052rm -f conftest.err conftest.$ac_objext \
5053      conftest$ac_exeext conftest.$ac_ext
5054if test -z "$CFLAGS"; then
5055  { 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
5056echo "$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;}
5057  CFLAGS='-O'
5058  cat >conftest.$ac_ext <<_ACEOF
5059/* confdefs.h.  */
5060_ACEOF
5061cat confdefs.h >>conftest.$ac_ext
5062cat >>conftest.$ac_ext <<_ACEOF
5063/* end confdefs.h.  */
5064
5065int
5066main ()
5067{
5068int i=0; i++;
5069  ;
5070  return 0;
5071}
5072_ACEOF
5073rm -f conftest.$ac_objext conftest$ac_exeext
5074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075  (eval $ac_link) 2>conftest.er1
5076  ac_status=$?
5077  grep -v '^ *+' conftest.er1 >conftest.err
5078  rm -f conftest.er1
5079  cat conftest.err >&5
5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081  (exit $ac_status); } &&
5082         { ac_try='test -z "$ac_c_werror_flag"
5083                         || test ! -s conftest.err'
5084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085  (eval $ac_try) 2>&5
5086  ac_status=$?
5087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088  (exit $ac_status); }; } &&
5089         { ac_try='test -s conftest$ac_exeext'
5090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091  (eval $ac_try) 2>&5
5092  ac_status=$?
5093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094  (exit $ac_status); }; }; then
5095  :
5096else
5097  echo "$as_me: failed program was:" >&5
5098sed 's/^/| /' conftest.$ac_ext >&5
5099
5100CFLAGS=
5101fi
5102rm -f conftest.err conftest.$ac_objext \
5103      conftest$ac_exeext conftest.$ac_ext
5104  if test -z "$CFLAGS"; then
5105    { 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
5106echo "$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;}
5107  fi
5108fi
5109
5110{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
5111echo "$as_me: C compiler options are: $CFLAGS" >&6;}
5112
5113
5114if test x"$MPICC" = x; then :; else
5115  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
5116echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
5117  CC="$MPICC"
5118fi
5119
5120# Correct ADDLIBS initialization if we are using the MS compiler
5121case "$CC" in
5122  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5123    ADDLIBS=
5124    case $build in
5125  *-mingw*)
5126    if test "${LD+set}" = set; then :; else
5127      LD=link
5128    fi
5129    ;;
5130 esac
5131 case $enable_doscompile in
5132   msvc)
5133     if test "x${LD+set}" = xset; then :; else
5134       LD=link
5135     fi
5136     ;;
5137 esac
5138
5139    ;;
5140esac
5141
5142ac_ext=c
5143ac_cpp='$CPP $CPPFLAGS'
5144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147
5148
5149
5150# Initialize automake and libtool
5151{
5152
5153
5154
5155# START
5156
5157# Test if force_shared has been set
5158if test "x" = xforce_shared; then
5159  if test x$enable_shared = xno; then
5160    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5161echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5162   { (exit 1); exit 1; }; }
5163  fi
5164  enable_shared=yes;
5165else
5166  # On Cygwin and AIX, building DLLs doesn't work
5167  case $build in
5168    *-cygwin*)
5169      coin_disable_shared=yes
5170      platform=Cygwin
5171    ;;
5172    *-aix*)
5173      coin_disable_shared=yes
5174      platform=AIX
5175    ;;
5176    *-mingw*)
5177      coin_disable_shared=yes
5178      platform="Msys"
5179#      case "$CXX" in
5180#        cl*)
5181#          coin_disable_shared=yes
5182#          platform="Msys with cl"
5183#      ;;
5184#      esac
5185    ;;
5186  esac
5187fi
5188if test x"$coin_disable_shared" = xyes; then
5189  if test x"$enable_shared" = xyes; then
5190    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5191echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5192  fi
5193  enable_shared=no
5194fi
5195# By default, we only want the shared objects to be compiled
5196# Check whether --enable-static or --disable-static was given.
5197if test "${enable_static+set}" = set; then
5198  enableval="$enable_static"
5199  p=${PACKAGE-default}
5200    case $enableval in
5201    yes) enable_static=yes ;;
5202    no) enable_static=no ;;
5203    *)
5204     enable_static=no
5205      # Look at the argument we got.  We use all the common list separators.
5206      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5207      for pkg in $enableval; do
5208        IFS="$lt_save_ifs"
5209        if test "X$pkg" = "X$p"; then
5210          enable_static=yes
5211        fi
5212      done
5213      IFS="$lt_save_ifs"
5214      ;;
5215    esac
5216else
5217  enable_static=no
5218fi;
5219
5220
5221
5222
5223# Initialize automake
5224echo "$as_me:$LINENO: checking for egrep" >&5
5225echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5226if test "${ac_cv_prog_egrep+set}" = set; then
5227  echo $ECHO_N "(cached) $ECHO_C" >&6
5228else
5229  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5230    then ac_cv_prog_egrep='grep -E'
5231    else ac_cv_prog_egrep='egrep'
5232    fi
5233fi
5234echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5235echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5236 EGREP=$ac_cv_prog_egrep
5237
5238
5239am__api_version="1.9"
5240# Find a good install program.  We prefer a C program (faster),
5241# so one script is as good as another.  But avoid the broken or
5242# incompatible versions:
5243# SysV /etc/install, /usr/sbin/install
5244# SunOS /usr/etc/install
5245# IRIX /sbin/install
5246# AIX /bin/install
5247# AmigaOS /C/install, which installs bootblocks on floppy discs
5248# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5249# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5250# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5251# OS/2's system install, which has a completely different semantic
5252# ./install, which can be erroneously created by make from ./install.sh.
5253echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5254echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5255if test -z "$INSTALL"; then
5256if test "${ac_cv_path_install+set}" = set; then
5257  echo $ECHO_N "(cached) $ECHO_C" >&6
5258else
5259  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262  IFS=$as_save_IFS
5263  test -z "$as_dir" && as_dir=.
5264  # Account for people who put trailing slashes in PATH elements.
5265case $as_dir/ in
5266  ./ | .// | /cC/* | \
5267  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5268  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5269  /usr/ucb/* ) ;;
5270  *)
5271    # OSF1 and SCO ODT 3.0 have their own names for install.
5272    # Don't use installbsd from OSF since it installs stuff as root
5273    # by default.
5274    for ac_prog in ginstall scoinst install; do
5275      for ac_exec_ext in '' $ac_executable_extensions; do
5276        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5277          if test $ac_prog = install &&
5278            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5279            # AIX install.  It has an incompatible calling convention.
5280            :
5281          elif test $ac_prog = install &&
5282            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5283            # program-specific install script used by HP pwplus--don't use.
5284            :
5285          else
5286            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5287            break 3
5288          fi
5289        fi
5290      done
5291    done
5292    ;;
5293esac
5294done
5295
5296
5297fi
5298  if test "${ac_cv_path_install+set}" = set; then
5299    INSTALL=$ac_cv_path_install
5300  else
5301    # As a last resort, use the slow shell script.  We don't cache a
5302    # path for INSTALL within a source directory, because that will
5303    # break other packages using the cache if that directory is
5304    # removed, or if the path is relative.
5305    INSTALL=$ac_install_sh
5306  fi
5307fi
5308echo "$as_me:$LINENO: result: $INSTALL" >&5
5309echo "${ECHO_T}$INSTALL" >&6
5310
5311# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5312# It thinks the first close brace ends the variable substitution.
5313test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5314
5315test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5316
5317test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5318
5319echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5320echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5321# Just in case
5322sleep 1
5323echo timestamp > conftest.file
5324# Do `set' in a subshell so we don't clobber the current shell's
5325# arguments.  Must try -L first in case configure is actually a
5326# symlink; some systems play weird games with the mod time of symlinks
5327# (eg FreeBSD returns the mod time of the symlink's containing
5328# directory).
5329if (
5330   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5331   if test "$*" = "X"; then
5332      # -L didn't work.
5333      set X `ls -t $srcdir/configure conftest.file`
5334   fi
5335   rm -f conftest.file
5336   if test "$*" != "X $srcdir/configure conftest.file" \
5337      && test "$*" != "X conftest.file $srcdir/configure"; then
5338
5339      # If neither matched, then we have a broken ls.  This can happen
5340      # if, for instance, CONFIG_SHELL is bash and it inherits a
5341      # broken ls alias from the environment.  This has actually
5342      # happened.  Such a system could not be considered "sane".
5343      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5344alias in your environment" >&5
5345echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5346alias in your environment" >&2;}
5347   { (exit 1); exit 1; }; }
5348   fi
5349
5350   test "$2" = conftest.file
5351   )
5352then
5353   # Ok.
5354   :
5355else
5356   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5357Check your system clock" >&5
5358echo "$as_me: error: newly created file is older than distributed files!
5359Check your system clock" >&2;}
5360   { (exit 1); exit 1; }; }
5361fi
5362echo "$as_me:$LINENO: result: yes" >&5
5363echo "${ECHO_T}yes" >&6
5364test "$program_prefix" != NONE &&
5365  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5366# Use a double $ so make ignores it.
5367test "$program_suffix" != NONE &&
5368  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5369# Double any \ or $.  echo might interpret backslashes.
5370# By default was `s,x,x', remove it if useless.
5371cat <<\_ACEOF >conftest.sed
5372s/[\\$]/&&/g;s/;s,x,x,$//
5373_ACEOF
5374program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5375rm conftest.sed
5376
5377# expand $ac_aux_dir to an absolute path
5378am_aux_dir=`cd $ac_aux_dir && pwd`
5379
5380test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5381# Use eval to expand $SHELL
5382if eval "$MISSING --run true"; then
5383  am_missing_run="$MISSING --run "
5384else
5385  am_missing_run=
5386  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5387echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5388fi
5389
5390if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5391  # We used to keeping the `.' as first argument, in order to
5392  # allow $(mkdir_p) to be used without argument.  As in
5393  #   $(mkdir_p) $(somedir)
5394  # where $(somedir) is conditionally defined.  However this is wrong
5395  # for two reasons:
5396  #  1. if the package is installed by a user who cannot write `.'
5397  #     make install will fail,
5398  #  2. the above comment should most certainly read
5399  #     $(mkdir_p) $(DESTDIR)$(somedir)
5400  #     so it does not work when $(somedir) is undefined and
5401  #     $(DESTDIR) is not.
5402  #  To support the latter case, we have to write
5403  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5404  #  so the `.' trick is pointless.
5405  mkdir_p='mkdir -p --'
5406else
5407  # On NextStep and OpenStep, the `mkdir' command does not
5408  # recognize any option.  It will interpret all options as
5409  # directories to create, and then abort because `.' already
5410  # exists.
5411  for d in ./-p ./--version;
5412  do
5413    test -d $d && rmdir $d
5414  done
5415  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5416  if test -f "$ac_aux_dir/mkinstalldirs"; then
5417    mkdir_p='$(mkinstalldirs)'
5418  else
5419    mkdir_p='$(install_sh) -d'
5420  fi
5421fi
5422
5423for ac_prog in gawk mawk nawk awk
5424do
5425  # Extract the first word of "$ac_prog", so it can be a program name with args.
5426set dummy $ac_prog; ac_word=$2
5427echo "$as_me:$LINENO: checking for $ac_word" >&5
5428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429if test "${ac_cv_prog_AWK+set}" = set; then
5430  echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432  if test -n "$AWK"; then
5433  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5434else
5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438  IFS=$as_save_IFS
5439  test -z "$as_dir" && as_dir=.
5440  for ac_exec_ext in '' $ac_executable_extensions; do
5441  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442    ac_cv_prog_AWK="$ac_prog"
5443    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444    break 2
5445  fi
5446done
5447done
5448
5449fi
5450fi
5451AWK=$ac_cv_prog_AWK
5452if test -n "$AWK"; then
5453  echo "$as_me:$LINENO: result: $AWK" >&5
5454echo "${ECHO_T}$AWK" >&6
5455else
5456  echo "$as_me:$LINENO: result: no" >&5
5457echo "${ECHO_T}no" >&6
5458fi
5459
5460  test -n "$AWK" && break
5461done
5462
5463echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5464echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5465set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5466if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5467  echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469  cat >conftest.make <<\_ACEOF
5470all:
5471        @echo 'ac_maketemp="$(MAKE)"'
5472_ACEOF
5473# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5474eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5475if test -n "$ac_maketemp"; then
5476  eval ac_cv_prog_make_${ac_make}_set=yes
5477else
5478  eval ac_cv_prog_make_${ac_make}_set=no
5479fi
5480rm -f conftest.make
5481fi
5482if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5483  echo "$as_me:$LINENO: result: yes" >&5
5484echo "${ECHO_T}yes" >&6
5485  SET_MAKE=
5486else
5487  echo "$as_me:$LINENO: result: no" >&5
5488echo "${ECHO_T}no" >&6
5489  SET_MAKE="MAKE=${MAKE-make}"
5490fi
5491
5492rm -rf .tst 2>/dev/null
5493mkdir .tst 2>/dev/null
5494if test -d .tst; then
5495  am__leading_dot=.
5496else
5497  am__leading_dot=_
5498fi
5499rmdir .tst 2>/dev/null
5500
5501DEPDIR="${am__leading_dot}deps"
5502
5503          ac_config_commands="$ac_config_commands depfiles"
5504
5505
5506am_make=${MAKE-make}
5507cat > confinc << 'END'
5508am__doit:
5509        @echo done
5510.PHONY: am__doit
5511END
5512# If we don't find an include directive, just comment out the code.
5513echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5514echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5515am__include="#"
5516am__quote=
5517_am_result=none
5518# First try GNU make style include.
5519echo "include confinc" > confmf
5520# We grep out `Entering directory' and `Leaving directory'
5521# messages which can occur if `w' ends up in MAKEFLAGS.
5522# In particular we don't look at `^make:' because GNU make might
5523# be invoked under some other name (usually "gmake"), in which
5524# case it prints its new name instead of `make'.
5525if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5526   am__include=include
5527   am__quote=
5528   _am_result=GNU
5529fi
5530# Now try BSD make style include.
5531if test "$am__include" = "#"; then
5532   echo '.include "confinc"' > confmf
5533   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5534      am__include=.include
5535      am__quote="\""
5536      _am_result=BSD
5537   fi
5538fi
5539
5540
5541echo "$as_me:$LINENO: result: $_am_result" >&5
5542echo "${ECHO_T}$_am_result" >&6
5543rm -f confinc confmf
5544
5545# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5546if test "${enable_dependency_tracking+set}" = set; then
5547  enableval="$enable_dependency_tracking"
5548
5549fi;
5550if test "x$enable_dependency_tracking" != xno; then
5551  am_depcomp="$ac_aux_dir/depcomp"
5552  AMDEPBACKSLASH='\'
5553fi
5554
5555
5556if test "x$enable_dependency_tracking" != xno; then
5557  AMDEP_TRUE=
5558  AMDEP_FALSE='#'
5559else
5560  AMDEP_TRUE='#'
5561  AMDEP_FALSE=
5562fi
5563
5564
5565
5566
5567
5568# AC_MSG_NOTICE([Beginning automake initialisation.])
5569# Stuff for automake
5570# test to see if srcdir already configured
5571if test "`cd $srcdir && pwd`" != "`pwd`" &&
5572   test -f $srcdir/config.status; then
5573  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5574echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5575   { (exit 1); exit 1; }; }
5576fi
5577
5578# test whether we have cygpath
5579if test -z "$CYGPATH_W"; then
5580  if (cygpath --version) >/dev/null 2>/dev/null; then
5581    CYGPATH_W='cygpath -w'
5582  else
5583    CYGPATH_W=echo
5584  fi
5585fi
5586
5587
5588# Define the identity of the package.
5589 PACKAGE='couenne'
5590 VERSION='trunk'
5591
5592
5593cat >>confdefs.h <<_ACEOF
5594#define PACKAGE "$PACKAGE"
5595_ACEOF
5596
5597
5598cat >>confdefs.h <<_ACEOF
5599#define VERSION "$VERSION"
5600_ACEOF
5601
5602# Some tools Automake needs.
5603
5604ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5605
5606
5607AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5608
5609
5610AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5611
5612
5613AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5614
5615
5616MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5617
5618install_sh=${install_sh-"$am_aux_dir/install-sh"}
5619
5620# Installed binaries are usually stripped using `strip' when the user
5621# run `make install-strip'.  However `strip' might not be the right
5622# tool to use in cross-compilation environments, therefore Automake
5623# will honor the `STRIP' environment variable to overrule this program.
5624if test "$cross_compiling" != no; then
5625  if test -n "$ac_tool_prefix"; then
5626  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5627set dummy ${ac_tool_prefix}strip; ac_word=$2
5628echo "$as_me:$LINENO: checking for $ac_word" >&5
5629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5630if test "${ac_cv_prog_STRIP+set}" = set; then
5631  echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633  if test -n "$STRIP"; then
5634  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5635else
5636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637for as_dir in $PATH
5638do
5639  IFS=$as_save_IFS
5640  test -z "$as_dir" && as_dir=.
5641  for ac_exec_ext in '' $ac_executable_extensions; do
5642  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5645    break 2
5646  fi
5647done
5648done
5649
5650fi
5651fi
5652STRIP=$ac_cv_prog_STRIP
5653if test -n "$STRIP"; then
5654  echo "$as_me:$LINENO: result: $STRIP" >&5
5655echo "${ECHO_T}$STRIP" >&6
5656else
5657  echo "$as_me:$LINENO: result: no" >&5
5658echo "${ECHO_T}no" >&6
5659fi
5660
5661fi
5662if test -z "$ac_cv_prog_STRIP"; then
5663  ac_ct_STRIP=$STRIP
5664  # Extract the first word of "strip", so it can be a program name with args.
5665set dummy strip; ac_word=$2
5666echo "$as_me:$LINENO: checking for $ac_word" >&5
5667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5669  echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671  if test -n "$ac_ct_STRIP"; then
5672  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5673else
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677  IFS=$as_save_IFS
5678  test -z "$as_dir" && as_dir=.
5679  for ac_exec_ext in '' $ac_executable_extensions; do
5680  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681    ac_cv_prog_ac_ct_STRIP="strip"
5682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5683    break 2
5684  fi
5685done
5686done
5687
5688  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5689fi
5690fi
5691ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5692if test -n "$ac_ct_STRIP"; then
5693  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5694echo "${ECHO_T}$ac_ct_STRIP" >&6
5695else
5696  echo "$as_me:$LINENO: result: no" >&5
5697echo "${ECHO_T}no" >&6
5698fi
5699
5700  STRIP=$ac_ct_STRIP
5701else
5702  STRIP="$ac_cv_prog_STRIP"
5703fi
5704
5705fi
5706INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5707
5708# We need awk for the "check" target.  The system "awk" is bad on
5709# some platforms.
5710# Always define AMTAR for backward compatibility.
5711
5712AMTAR=${AMTAR-"${am_missing_run}tar"}
5713
5714am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5715
5716
5717
5718
5719depcc="$CC"   am_compiler_list=
5720
5721echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5722echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5723if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5724  echo $ECHO_N "(cached) $ECHO_C" >&6
5725else
5726  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5727  # We make a subdir and do the tests there.  Otherwise we can end up
5728  # making bogus files that we don't know about and never remove.  For
5729  # instance it was reported that on HP-UX the gcc test will end up
5730  # making a dummy file named `D' -- because `-MD' means `put the output
5731  # in D'.
5732  mkdir conftest.dir
5733  # Copy depcomp to subdir because otherwise we won't find it if we're
5734  # using a relative directory.
5735  cp "$am_depcomp" conftest.dir
5736  cd conftest.dir
5737  # We will build objects and dependencies in a subdirectory because
5738  # it helps to detect inapplicable dependency modes.  For instance
5739  # both Tru64's cc and ICC support -MD to output dependencies as a
5740  # side effect of compilation, but ICC will put the dependencies in
5741  # the current directory while Tru64 will put them in the object
5742  # directory.
5743  mkdir sub
5744
5745  am_cv_CC_dependencies_compiler_type=none
5746  if test "$am_compiler_list" = ""; then
5747     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5748  fi
5749  for depmode in $am_compiler_list; do
5750    # Setup a source with many dependencies, because some compilers
5751    # like to wrap large dependency lists on column 80 (with \), and
5752    # we should not choose a depcomp mode which is confused by this.
5753    #
5754    # We need to recreate these files for each test, as the compiler may
5755    # overwrite some of them when testing with obscure command lines.
5756    # This happens at least with the AIX C compiler.
5757    : > sub/conftest.c
5758    for i in 1 2 3 4 5 6; do
5759      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5760      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5761      # Solaris 8's {/usr,}/bin/sh.
5762      touch sub/conftst$i.h
5763    done
5764    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5765
5766    case $depmode in
5767    nosideeffect)
5768      # after this tag, mechanisms are not by side-effect, so they'll
5769      # only be used when explicitly requested
5770      if test "x$enable_dependency_tracking" = xyes; then
5771        continue
5772      else
5773        break
5774      fi
5775      ;;
5776    none) break ;;
5777    esac
5778    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5779    # mode.  It turns out that the SunPro C++ compiler does not properly
5780    # handle `-M -o', and we need to detect this.
5781    if depmode=$depmode \
5782       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5783       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5784       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5785         >/dev/null 2>conftest.err &&
5786       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5787       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5788       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5789      # icc doesn't choke on unknown options, it will just issue warnings
5790      # or remarks (even with -Werror).  So we grep stderr for any message
5791      # that says an option was ignored or not supported.
5792      # When given -MP, icc 7.0 and 7.1 complain thusly:
5793      #   icc: Command line warning: ignoring option '-M'; no argument required
5794      # The diagnosis changed in icc 8.0:
5795      #   icc: Command line remark: option '-MP' not supported
5796      if (grep 'ignoring option' conftest.err ||
5797          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5798        am_cv_CC_dependencies_compiler_type=$depmode
5799        break
5800      fi
5801    fi
5802  done
5803
5804  cd ..
5805  rm -rf conftest.dir
5806else
5807  am_cv_CC_dependencies_compiler_type=none
5808fi
5809
5810fi
5811echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5812echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5813CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5814
5815
5816
5817if
5818  test "x$enable_dependency_tracking" != xno \
5819  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5820  am__fastdepCC_TRUE=
5821  am__fastdepCC_FALSE='#'
5822else
5823  am__fastdepCC_TRUE='#'
5824  am__fastdepCC_FALSE=
5825fi
5826
5827
5828depcc="$CXX"  am_compiler_list=
5829
5830echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5831echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5832if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5833  echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5836  # We make a subdir and do the tests there.  Otherwise we can end up
5837  # making bogus files that we don't know about and never remove.  For
5838  # instance it was reported that on HP-UX the gcc test will end up
5839  # making a dummy file named `D' -- because `-MD' means `put the output
5840  # in D'.
5841  mkdir conftest.dir
5842  # Copy depcomp to subdir because otherwise we won't find it if we're
5843  # using a relative directory.
5844  cp "$am_depcomp" conftest.dir
5845  cd conftest.dir
5846  # We will build objects and dependencies in a subdirectory because
5847  # it helps to detect inapplicable dependency modes.  For instance
5848  # both Tru64's cc and ICC support -MD to output dependencies as a
5849  # side effect of compilation, but ICC will put the dependencies in
5850  # the current directory while Tru64 will put them in the object
5851  # directory.
5852  mkdir sub
5853
5854  am_cv_CXX_dependencies_compiler_type=none
5855  if test "$am_compiler_list" = ""; then
5856     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5857  fi
5858  for depmode in $am_compiler_list; do
5859    # Setup a source with many dependencies, because some compilers
5860    # like to wrap large dependency lists on column 80 (with \), and
5861    # we should not choose a depcomp mode which is confused by this.
5862    #
5863    # We need to recreate these files for each test, as the compiler may
5864    # overwrite some of them when testing with obscure command lines.
5865    # This happens at least with the AIX C compiler.
5866    : > sub/conftest.c
5867    for i in 1 2 3 4 5 6; do
5868      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5869      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5870      # Solaris 8's {/usr,}/bin/sh.
5871      touch sub/conftst$i.h
5872    done
5873    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5874
5875    case $depmode in
5876    nosideeffect)
5877      # after this tag, mechanisms are not by side-effect, so they'll
5878      # only be used when explicitly requested
5879      if test "x$enable_dependency_tracking" = xyes; then
5880        continue
5881      else
5882        break
5883      fi
5884      ;;
5885    none) break ;;
5886    esac
5887    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5888    # mode.  It turns out that the SunPro C++ compiler does not properly
5889    # handle `-M -o', and we need to detect this.
5890    if depmode=$depmode \
5891       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5892       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5893       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5894         >/dev/null 2>conftest.err &&
5895       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5896       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5897       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5898      # icc doesn't choke on unknown options, it will just issue warnings
5899      # or remarks (even with -Werror).  So we grep stderr for any message
5900      # that says an option was ignored or not supported.
5901      # When given -MP, icc 7.0 and 7.1 complain thusly:
5902      #   icc: Command line warning: ignoring option '-M'; no argument required
5903      # The diagnosis changed in icc 8.0:
5904      #   icc: Command line remark: option '-MP' not supported
5905      if (grep 'ignoring option' conftest.err ||
5906          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5907        am_cv_CXX_dependencies_compiler_type=$depmode
5908        break
5909      fi
5910    fi
5911  done
5912
5913  cd ..
5914  rm -rf conftest.dir
5915else
5916  am_cv_CXX_dependencies_compiler_type=none
5917fi
5918
5919fi
5920echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5921echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5922CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5923
5924
5925
5926if
5927  test "x$enable_dependency_tracking" != xno \
5928  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5929  am__fastdepCXX_TRUE=
5930  am__fastdepCXX_FALSE='#'
5931else
5932  am__fastdepCXX_TRUE='#'
5933  am__fastdepCXX_FALSE=
5934fi
5935
5936
5937
5938echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5939echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5940    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5941if test "${enable_maintainer_mode+set}" = set; then
5942  enableval="$enable_maintainer_mode"
5943  USE_MAINTAINER_MODE=$enableval
5944else
5945  USE_MAINTAINER_MODE=no
5946fi;
5947  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5948echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5949
5950
5951if test $USE_MAINTAINER_MODE = yes; then
5952  MAINTAINER_MODE_TRUE=
5953  MAINTAINER_MODE_FALSE='#'
5954else
5955  MAINTAINER_MODE_TRUE='#'
5956  MAINTAINER_MODE_FALSE=
5957fi
5958
5959  MAINT=$MAINTAINER_MODE_TRUE
5960
5961
5962
5963coin_have_externals=no
5964if test "$enable_maintainer_mode" = yes; then
5965
5966  # If maintainer mode is chosen, we make sure that the correct versions
5967  # of the tools are used, and that we know where libtool.m4 is (to
5968  # recreate acinclude.m4)
5969
5970
5971  LIBTOOLM4=
5972  # Normally, $HOME
5973  AUTOTOOLS_DFLT=$HOME
5974
5975  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5976echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5977if test "${ac_cv_use_correct_autotools+set}" = set; then
5978  echo $ECHO_N "(cached) $ECHO_C" >&6
5979else
5980  ac_cv_use_correct_autotools=check
5981fi
5982echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5983echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5984
5985  if test $ac_cv_use_correct_autotools = check; then
5986    ac_cv_use_correct_autotools=yes
5987    # Check if we have autoconf
5988    # Extract the first word of "autoconf", so it can be a program name with args.
5989set dummy autoconf; ac_word=$2
5990echo "$as_me:$LINENO: checking for $ac_word" >&5
5991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5992if test "${ac_cv_prog_have_autoconf+set}" = set; then
5993  echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995  if test -n "$have_autoconf"; then
5996  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001  IFS=$as_save_IFS
6002  test -z "$as_dir" && as_dir=.
6003  for ac_exec_ext in '' $ac_executable_extensions; do
6004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005    ac_cv_prog_have_autoconf="yes"
6006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007    break 2
6008  fi
6009done
6010done
6011
6012  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6013fi
6014fi
6015have_autoconf=$ac_cv_prog_have_autoconf
6016if test -n "$have_autoconf"; then
6017  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6018echo "${ECHO_T}$have_autoconf" >&6
6019else
6020  echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6
6022fi
6023
6024    if test $have_autoconf = no; then
6025      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6026echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6027   { (exit 1); exit 1; }; }
6028    fi
6029
6030    # Check whether autoconf is the correct version
6031    correct_version='2.59'
6032    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6033    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6034echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6035    autoconf --version > confauto.out 2>&1
6036    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6037      echo "$as_me:$LINENO: result: yes" >&5
6038echo "${ECHO_T}yes" >&6
6039    else
6040      rm -f confauto.out
6041      echo "$as_me:$LINENO: result: no" >&5
6042echo "${ECHO_T}no" >&6
6043      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6044echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6045   { (exit 1); exit 1; }; }
6046    fi
6047    rm -f confauto.out
6048
6049    # Check if the executable autoconf is picked up from the correct location
6050    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6051echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6052    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6053    autoconf_dir=`cd $autoconf_dir; pwd`
6054    if test x$AUTOTOOLS_DIR = x; then
6055      want_dir=$AUTOTOOLS_DFLT/bin
6056    else
6057      want_dir=$AUTOTOOLS_DIR/bin
6058    fi
6059    if test $autoconf_dir = `cd $want_dir; pwd`; then
6060      echo "$as_me:$LINENO: result: yes" >&5
6061echo "${ECHO_T}yes" >&6
6062    else
6063      rm -f confauto.out
6064      echo "$as_me:$LINENO: result: no" >&5
6065echo "${ECHO_T}no" >&6
6066      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6067echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6068   { (exit 1); exit 1; }; }
6069    fi
6070
6071    # Check if we have automake
6072    # Extract the first word of "automake", so it can be a program name with args.
6073set dummy automake; ac_word=$2
6074echo "$as_me:$LINENO: checking for $ac_word" >&5
6075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076if test "${ac_cv_prog_have_automake+set}" = set; then
6077  echo $ECHO_N "(cached) $ECHO_C" >&6
6078else
6079  if test -n "$have_automake"; then
6080  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085  IFS=$as_save_IFS
6086  test -z "$as_dir" && as_dir=.
6087  for ac_exec_ext in '' $ac_executable_extensions; do
6088  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089    ac_cv_prog_have_automake="yes"
6090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091    break 2
6092  fi
6093done
6094done
6095
6096  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6097fi
6098fi
6099have_automake=$ac_cv_prog_have_automake
6100if test -n "$have_automake"; then
6101  echo "$as_me:$LINENO: result: $have_automake" >&5
6102echo "${ECHO_T}$have_automake" >&6
6103else
6104  echo "$as_me:$LINENO: result: no" >&5
6105echo "${ECHO_T}no" >&6
6106fi
6107
6108    if test $have_automake = no; then
6109      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6110echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6111   { (exit 1); exit 1; }; }
6112    fi
6113
6114    # Check whether automake is the correct version
6115    correct_version='1.9.6'
6116    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6117    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6118echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6119    automake --version > confauto.out 2>&1
6120    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6121      echo "$as_me:$LINENO: result: yes" >&5
6122echo "${ECHO_T}yes" >&6
6123    else
6124      rm -f confauto.out
6125      echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6
6127      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6128echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6129   { (exit 1); exit 1; }; }
6130    fi
6131    rm -f confauto.out
6132
6133    # Check if the executable automake is picked up from the correct location
6134    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6135echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6136    automake_dir=`which automake | sed -e 's=/automake=='`
6137    automake_dir=`cd $automake_dir; pwd`
6138    if test x$AUTOTOOLS_DIR = x; then
6139      want_dir=$AUTOTOOLS_DFLT/bin
6140    else
6141      want_dir=$AUTOTOOLS_DIR/bin
6142    fi
6143    if test $automake_dir = `cd $want_dir; pwd`; then
6144      echo "$as_me:$LINENO: result: yes" >&5
6145echo "${ECHO_T}yes" >&6
6146    else
6147      rm -f confauto.out
6148      echo "$as_me:$LINENO: result: no" >&5
6149echo "${ECHO_T}no" >&6
6150      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6151echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6152   { (exit 1); exit 1; }; }
6153    fi
6154
6155    # Check if this is the correct version of libtool (with escaped dots)
6156    if test x$AUTOTOOLS_DIR = x; then
6157      want_dir=$AUTOTOOLS_DFLT/share
6158    else
6159      want_dir=$AUTOTOOLS_DIR/share
6160    fi
6161    correct_version='1.5.22'
6162    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6163    if test -r $want_dir/libtool/ltmain.sh; then
6164  have_ltmain=yes
6165  :
6166else
6167  have_ltmain=no
6168  :
6169fi
6170
6171    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6172echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6173    if test $have_ltmain = yes; then
6174    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6175        echo "$as_me:$LINENO: result: yes" >&5
6176echo "${ECHO_T}yes" >&6
6177      else
6178        echo "$as_me:$LINENO: result: no" >&5
6179echo "${ECHO_T}no" >&6
6180        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6181echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6182   { (exit 1); exit 1; }; }
6183      fi
6184    else
6185      echo "$as_me:$LINENO: result: no" >&5
6186echo "${ECHO_T}no" >&6
6187      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6188echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6189   { (exit 1); exit 1; }; }
6190    fi
6191  fi
6192
6193  # Check if we can find the libtool file
6194  if test x$AUTOTOOLS_DIR = x; then
6195    want_dir=$AUTOTOOLS_DFLT/share
6196  else
6197    want_dir=$AUTOTOOLS_DIR/share
6198  fi
6199  if test -r $want_dir/aclocal/libtool.m4; then
6200  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6201  :
6202else
6203  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6204echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6205   { (exit 1); exit 1; }; }
6206  :
6207fi
6208
6209
6210  # Check if we have an Externals file
6211  if test -r $srcdir/Externals; then
6212    coin_have_externals=yes
6213  fi
6214  # Check if subversion is installed and understands https
6215  # Extract the first word of "svn", so it can be a program name with args.
6216set dummy svn; ac_word=$2
6217echo "$as_me:$LINENO: checking for $ac_word" >&5
6218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6219if test "${ac_cv_prog_have_svn+set}" = set; then
6220  echo $ECHO_N "(cached) $ECHO_C" >&6
6221else
6222  if test -n "$have_svn"; then
6223  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6224else
6225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226for as_dir in $PATH
6227do
6228  IFS=$as_save_IFS
6229  test -z "$as_dir" && as_dir=.
6230  for ac_exec_ext in '' $ac_executable_extensions; do
6231  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232    ac_cv_prog_have_svn="yes"
6233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234    break 2
6235  fi
6236done
6237done
6238
6239  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6240fi
6241fi
6242have_svn=$ac_cv_prog_have_svn
6243if test -n "$have_svn"; then
6244  echo "$as_me:$LINENO: result: $have_svn" >&5
6245echo "${ECHO_T}$have_svn" >&6
6246else
6247  echo "$as_me:$LINENO: result: no" >&5
6248echo "${ECHO_T}no" >&6
6249fi
6250
6251  if test x$have_svn = xyes; then
6252    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6253echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6254if test "${ac_cv_svn_understands_https+set}" = set; then
6255  echo $ECHO_N "(cached) $ECHO_C" >&6
6256else
6257  svn --version > confauto.out 2>&1
6258                    if $EGREP https confauto.out >/dev/null 2>&1; then
6259                      ac_cv_svn_understands_https=yes
6260                    else
6261                      ac_cv_svn_understands_https=no
6262                      have_svn=no
6263                      ac_cv_prog_have_svn=no
6264                    fi
6265                    rm -f confauto.out
6266fi
6267echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6268echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6269  fi
6270
6271  # Find the location of the BuildTools directory
6272  BUILDTOOLSDIR=
6273  if test -r $srcdir/BuildTools/coin.m4; then
6274    BUILDTOOLSDIR=$srcdir/BuildTools
6275  else
6276    if test -r $srcdir/../BuildTools/coin.m4; then
6277      BUILDTOOLSDIR=$srcdir/../BuildTools
6278    else
6279      if test -r $srcdir/../../BuildTools/coin.m4; then
6280        BUILDTOOLSDIR=$srcdir/../../BuildTools
6281      else
6282        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6283echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6284   { (exit 1); exit 1; }; }
6285      fi
6286    fi
6287  fi
6288
6289
6290  # The following variable is set to the name of the directory where
6291  # the autotool scripts are located
6292
6293  AUX_DIR=$ac_aux_dir
6294fi
6295
6296# helpful variable for the base directory of this package
6297abs_source_dir=`cd $srcdir; pwd`
6298
6299
6300# Stuff for example Makefiles
6301if test x$prefix = xNONE; then
6302  full_prefix=$ac_default_prefix
6303else
6304  full_prefix=$prefix
6305fi
6306full_prefix=`cd $full_prefix ; pwd`
6307
6308abs_lib_dir=$full_prefix/lib
6309
6310abs_include_dir=$full_prefix/include
6311
6312abs_bin_dir=$full_prefix/bin
6313
6314
6315
6316if test $coin_have_externals = yes && test x$have_svn = xyes; then
6317  HAVE_EXTERNALS_TRUE=
6318  HAVE_EXTERNALS_FALSE='#'
6319else
6320  HAVE_EXTERNALS_TRUE='#'
6321  HAVE_EXTERNALS_FALSE=
6322fi
6323
6324
6325# AC_MSG_NOTICE([End automake initialisation.])
6326
6327
6328
6329LIBTOOL=
6330if test -r ../libtool; then
6331  coin_config_dir=..
6332  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6333fi
6334if test "x$LIBTOOL" = x; then
6335  if test -r ../../libtool; then
6336    coin_config_dir=../..
6337    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6338  fi
6339fi
6340
6341if test "x$LIBTOOL" = x; then
6342# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6343  # Stuff for libtool
6344  # Check whether --enable-shared or --disable-shared was given.
6345if test "${enable_shared+set}" = set; then
6346  enableval="$enable_shared"
6347  p=${PACKAGE-default}
6348    case $enableval in
6349    yes) enable_shared=yes ;;
6350    no) enable_shared=no ;;
6351    *)
6352      enable_shared=no
6353      # Look at the argument we got.  We use all the common list separators.
6354      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6355      for pkg in $enableval; do
6356        IFS="$lt_save_ifs"
6357        if test "X$pkg" = "X$p"; then
6358          enable_shared=yes
6359        fi
6360      done
6361      IFS="$lt_save_ifs"
6362      ;;
6363    esac
6364else
6365  enable_shared=yes
6366fi;
6367
6368# Check whether --enable-fast-install or --disable-fast-install was given.
6369if test "${enable_fast_install+set}" = set; then
6370  enableval="$enable_fast_install"
6371  p=${PACKAGE-default}
6372    case $enableval in
6373    yes) enable_fast_install=yes ;;
6374    no) enable_fast_install=no ;;
6375    *)
6376      enable_fast_install=no
6377      # Look at the argument we got.  We use all the common list separators.
6378      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6379      for pkg in $enableval; do
6380        IFS="$lt_save_ifs"
6381        if test "X$pkg" = "X$p"; then
6382          enable_fast_install=yes
6383        fi
6384      done
6385      IFS="$lt_save_ifs"
6386      ;;
6387    esac
6388else
6389  enable_fast_install=yes
6390fi;
6391
6392echo "$as_me:$LINENO: checking host system type" >&5
6393echo $ECHO_N "checking host system type... $ECHO_C" >&6
6394if test "${ac_cv_host+set}" = set; then
6395  echo $ECHO_N "(cached) $ECHO_C" >&6
6396else
6397  ac_cv_host_alias=$host_alias
6398test -z "$ac_cv_host_alias" &&
6399  ac_cv_host_alias=$ac_cv_build_alias
6400ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6401  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6402echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6403   { (exit 1); exit 1; }; }
6404
6405fi
6406echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6407echo "${ECHO_T}$ac_cv_host" >&6
6408host=$ac_cv_host
6409host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6410host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6411host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6412
6413
6414echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6415echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6416if test "${lt_cv_path_SED+set}" = set; then
6417  echo $ECHO_N "(cached) $ECHO_C" >&6
6418else
6419  # Loop through the user's path and test for sed and gsed.
6420# Then use that list of sed's as ones to test for truncation.
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424  IFS=$as_save_IFS
6425  test -z "$as_dir" && as_dir=.
6426  for lt_ac_prog in sed gsed; do
6427    for ac_exec_ext in '' $ac_executable_extensions; do
6428      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6429        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6430      fi
6431    done
6432  done
6433done
6434lt_ac_max=0
6435lt_ac_count=0
6436# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6437# along with /bin/sed that truncates output.
6438for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6439  test ! -f $lt_ac_sed && continue
6440  cat /dev/null > conftest.in
6441  lt_ac_count=0
6442  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6443  # Check for GNU sed and select it if it is found.
6444  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6445    lt_cv_path_SED=$lt_ac_sed
6446    break
6447  fi
6448  while true; do
6449    cat conftest.in conftest.in >conftest.tmp
6450    mv conftest.tmp conftest.in
6451    cp conftest.in conftest.nl
6452    echo >>conftest.nl
6453    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6454    cmp -s conftest.out conftest.nl || break
6455    # 10000 chars as input seems more than enough
6456    test $lt_ac_count -gt 10 && break
6457    lt_ac_count=`expr $lt_ac_count + 1`
6458    if test $lt_ac_count -gt $lt_ac_max; then
6459      lt_ac_max=$lt_ac_count
6460      lt_cv_path_SED=$lt_ac_sed
6461    fi
6462  done
6463done
6464
6465fi
6466
6467SED=$lt_cv_path_SED
6468echo "$as_me:$LINENO: result: $SED" >&5
6469echo "${ECHO_T}$SED" >&6
6470
6471
6472# Check whether --with-gnu-ld or --without-gnu-ld was given.
6473if test "${with_gnu_ld+set}" = set; then
6474  withval="$with_gnu_ld"
6475  test "$withval" = no || with_gnu_ld=yes
6476else
6477  with_gnu_ld=no
6478fi;
6479ac_prog=ld
6480if test "$GCC" = yes; then
6481  # Check if gcc -print-prog-name=ld gives a path.
6482  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6483echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6484  case $host in
6485  *-*-mingw*)
6486    # gcc leaves a trailing carriage return which upsets mingw
6487    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6488  *)
6489    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6490  esac
6491  case $ac_prog in
6492    # Accept absolute paths.
6493    [\\/]* | ?:[\\/]*)
6494      re_direlt='/[^/][^/]*/\.\./'
6495      # Canonicalize the pathname of ld
6496      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6497      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6498        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6499      done
6500      test -z "$LD" && LD="$ac_prog"
6501      ;;
6502  "")
6503    # If it fails, then pretend we aren't using GCC.
6504    ac_prog=ld
6505    ;;
6506  *)
6507    # If it is relative, then search for the first ld in PATH.
6508    with_gnu_ld=unknown
6509    ;;
6510  esac
6511elif test "$with_gnu_ld" = yes; then
6512  echo "$as_me:$LINENO: checking for GNU ld" >&5
6513echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6514else
6515  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6516echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6517fi
6518if test "${lt_cv_path_LD+set}" = set; then
6519  echo $ECHO_N "(cached) $ECHO_C" >&6
6520else
6521  if test -z "$LD"; then
6522  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6523  for ac_dir in $PATH; do
6524    IFS="$lt_save_ifs"
6525    test -z "$ac_dir" && ac_dir=.
6526    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6527      lt_cv_path_LD="$ac_dir/$ac_prog"
6528      # Check to see if the program is GNU ld.  I'd rather use --version,
6529      # but apparently some variants of GNU ld only accept -v.
6530      # Break only if it was the GNU/non-GNU ld that we prefer.
6531      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6532      *GNU* | *'with BFD'*)
6533        test "$with_gnu_ld" != no && break
6534        ;;
6535      *)
6536        test "$with_gnu_ld" != yes && break
6537        ;;
6538      esac
6539    fi
6540  done
6541  IFS="$lt_save_ifs"
6542else
6543  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6544fi
6545fi
6546
6547LD="$lt_cv_path_LD"
6548if test -n "$LD"; then
6549  echo "$as_me:$LINENO: result: $LD" >&5
6550echo "${ECHO_T}$LD" >&6
6551else
6552  echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6
6554fi
6555test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6556echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6557   { (exit 1); exit 1; }; }
6558echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6559echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6560if test "${lt_cv_prog_gnu_ld+set}" = set; then
6561  echo $ECHO_N "(cached) $ECHO_C" >&6
6562else
6563  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6564case `$LD -v 2>&1 </dev/null` in
6565*GNU* | *'with BFD'*)
6566  lt_cv_prog_gnu_ld=yes
6567  ;;
6568*)
6569  lt_cv_prog_gnu_ld=no
6570  ;;
6571esac
6572fi
6573echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6574echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6575with_gnu_ld=$lt_cv_prog_gnu_ld
6576
6577
6578echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6579echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6580if test "${lt_cv_ld_reload_flag+set}" = set; then
6581  echo $ECHO_N "(cached) $ECHO_C" >&6
6582else
6583  lt_cv_ld_reload_flag='-r'
6584fi
6585echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6586echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6587reload_flag=$lt_cv_ld_reload_flag
6588case $reload_flag in
6589"" | " "*) ;;
6590*) reload_flag=" $reload_flag" ;;
6591esac
6592reload_cmds='$LD$reload_flag -o $output$reload_objs'
6593case $host_os in
6594  darwin*)
6595    if test "$GCC" = yes; then
6596      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6597    else
6598      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6599    fi
6600    ;;
6601esac
6602
6603echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6604echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6605if test "${lt_cv_path_NM+set}" = set; then
6606  echo $ECHO_N "(cached) $ECHO_C" >&6
6607else
6608  if test -n "$NM"; then
6609  # Let the user override the test.
6610  lt_cv_path_NM="$NM"
6611else
6612  lt_nm_to_check="${ac_tool_prefix}nm"
6613  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6614    lt_nm_to_check="$lt_nm_to_check nm"
6615  fi
6616  for lt_tmp_nm in $lt_nm_to_check; do
6617    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6618    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6619      IFS="$lt_save_ifs"
6620      test -z "$ac_dir" && ac_dir=.
6621      tmp_nm="$ac_dir/$lt_tmp_nm"
6622      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6623        # Check to see if the nm accepts a BSD-compat flag.
6624        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6625        #   nm: unknown option "B" ignored
6626        # Tru64's nm complains that /dev/null is an invalid object file
6627        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6628        */dev/null* | *'Invalid file or object type'*)
6629          lt_cv_path_NM="$tmp_nm -B"
6630          break
6631          ;;
6632        *)
6633          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6634          */dev/null*)
6635            lt_cv_path_NM="$tmp_nm -p"
6636            break
6637            ;;
6638          *)
6639            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6640            continue # so that we can try to find one that supports BSD flags
6641            ;;
6642          esac
6643          ;;
6644        esac
6645      fi
6646    done
6647    IFS="$lt_save_ifs"
6648  done
6649  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6650fi
6651fi
6652echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6653echo "${ECHO_T}$lt_cv_path_NM" >&6
6654NM="$lt_cv_path_NM"
6655
6656echo "$as_me:$LINENO: checking whether ln -s works" >&5
6657echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6658LN_S=$as_ln_s
6659if test "$LN_S" = "ln -s"; then
6660  echo "$as_me:$LINENO: result: yes" >&5
6661echo "${ECHO_T}yes" >&6
6662else
6663  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6664echo "${ECHO_T}no, using $LN_S" >&6
6665fi
6666
6667echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6668echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6669if test "${lt_cv_deplibs_check_method+set}" = set; then
6670  echo $ECHO_N "(cached) $ECHO_C" >&6
6671else
6672  lt_cv_file_magic_cmd='$MAGIC_CMD'
6673lt_cv_file_magic_test_file=
6674lt_cv_deplibs_check_method='unknown'
6675# Need to set the preceding variable on all platforms that support
6676# interlibrary dependencies.
6677# 'none' -- dependencies not supported.
6678# `unknown' -- same as none, but documents that we really don't know.
6679# 'pass_all' -- all dependencies passed with no checks.
6680# 'test_compile' -- check by making test program.
6681# 'file_magic [[regex]]' -- check by looking for files in library path
6682# which responds to the $file_magic_cmd with a given extended regex.
6683# If you have `file' or equivalent on your system and you're not sure
6684# whether `pass_all' will *always* work, you probably want this one.
6685
6686case $host_os in
6687aix4* | aix5*)
6688  lt_cv_deplibs_check_method=pass_all
6689  ;;
6690
6691beos*)
6692  lt_cv_deplibs_check_method=pass_all
6693  ;;
6694
6695bsdi[45]*)
6696  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6697  lt_cv_file_magic_cmd='/usr/bin/file -L'
6698  lt_cv_file_magic_test_file=/shlib/libc.so
6699  ;;
6700
6701cygwin*)
6702  # func_win32_libid is a shell function defined in ltmain.sh
6703  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6704  lt_cv_file_magic_cmd='func_win32_libid'
6705  ;;
6706
6707mingw* | pw32*)
6708  # Base MSYS/MinGW do not provide the 'file' command needed by
6709  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6710  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6711  lt_cv_file_magic_cmd='$OBJDUMP -f'
6712  ;;
6713
6714darwin* | rhapsody*)
6715  lt_cv_deplibs_check_method=pass_all
6716  ;;
6717
6718freebsd* | kfreebsd*-gnu | dragonfly*)
6719  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6720    case $host_cpu in
6721    i*86 )
6722      # Not sure whether the presence of OpenBSD here was a mistake.
6723      # Let's accept both of them until this is cleared up.
6724      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6725      lt_cv_file_magic_cmd=/usr/bin/file
6726      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6727      ;;
6728    esac
6729  else
6730    lt_cv_deplibs_check_method=pass_all
6731  fi
6732  ;;
6733
6734gnu*)
6735  lt_cv_deplibs_check_method=pass_all
6736  ;;
6737
6738hpux10.20* | hpux11*)
6739  lt_cv_file_magic_cmd=/usr/bin/file
6740  case $host_cpu in
6741  ia64*)
6742    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6743    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6744    ;;
6745  hppa*64*)
6746    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]'
6747    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6748    ;;
6749  *)
6750    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6751    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6752    ;;
6753  esac
6754  ;;
6755
6756interix3*)
6757  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6758  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6759  ;;
6760
6761irix5* | irix6* | nonstopux*)
6762  case $LD in
6763  *-32|*"-32 ") libmagic=32-bit;;
6764  *-n32|*"-n32 ") libmagic=N32;;
6765  *-64|*"-64 ") libmagic=64-bit;;
6766  *) libmagic=never-match;;
6767  esac
6768  lt_cv_deplibs_check_method=pass_all
6769  ;;
6770
6771# This must be Linux ELF.
6772linux*)
6773  lt_cv_deplibs_check_method=pass_all
6774  ;;
6775
6776netbsd*)
6777  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6778    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6779  else
6780    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6781  fi
6782  ;;
6783
6784newos6*)
6785  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6786  lt_cv_file_magic_cmd=/usr/bin/file
6787  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6788  ;;
6789
6790nto-qnx*)
6791  lt_cv_deplibs_check_method=unknown
6792  ;;
6793
6794openbsd*)
6795  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6796    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6797  else
6798    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6799  fi
6800  ;;
6801
6802osf3* | osf4* | osf5*)
6803  lt_cv_deplibs_check_method=pass_all
6804  ;;
6805
6806solaris*)
6807  lt_cv_deplibs_check_method=pass_all
6808  ;;
6809
6810sysv4 | sysv4.3*)
6811  case $host_vendor in
6812  motorola)
6813    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]'
6814    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6815    ;;
6816  ncr)
6817    lt_cv_deplibs_check_method=pass_all
6818    ;;
6819  sequent)
6820    lt_cv_file_magic_cmd='/bin/file'
6821    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6822    ;;
6823  sni)
6824    lt_cv_file_magic_cmd='/bin/file'
6825    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6826    lt_cv_file_magic_test_file=/lib/libc.so
6827    ;;
6828  siemens)
6829    lt_cv_deplibs_check_method=pass_all
6830    ;;
6831  pc)
6832    lt_cv_deplibs_check_method=pass_all
6833    ;;
6834  esac
6835  ;;
6836
6837sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6838  lt_cv_deplibs_check_method=pass_all
6839  ;;
6840esac
6841
6842fi
6843echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6844echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6845file_magic_cmd=$lt_cv_file_magic_cmd
6846deplibs_check_method=$lt_cv_deplibs_check_method
6847test -z "$deplibs_check_method" && deplibs_check_method=unknown
6848
6849
6850
6851
6852# If no C compiler was specified, use CC.
6853LTCC=${LTCC-"$CC"}
6854
6855# If no C compiler flags were specified, use CFLAGS.
6856LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6857
6858# Allow CC to be a program name with arguments.
6859compiler=$CC
6860
6861# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6862if test "${enable_libtool_lock+set}" = set; then
6863  enableval="$enable_libtool_lock"
6864
6865fi;
6866test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6867
6868# Some flags need to be propagated to the compiler or linker for good
6869# libtool support.
6870case $host in
6871ia64-*-hpux*)
6872  # Find out which ABI we are using.
6873  echo 'int i;' > conftest.$ac_ext
6874  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6875  (eval $ac_compile) 2>&5
6876  ac_status=$?
6877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878  (exit $ac_status); }; then
6879    case `/usr/bin/file conftest.$ac_objext` in
6880    *ELF-32*)
6881      HPUX_IA64_MODE="32"
6882      ;;
6883    *ELF-64*)
6884      HPUX_IA64_MODE="64"
6885      ;;
6886    esac
6887  fi
6888  rm -rf conftest*
6889  ;;
6890*-*-irix6*)
6891  # Find out which ABI we are using.
6892  echo '#line 6892 "configure"' > conftest.$ac_ext
6893  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894  (eval $ac_compile) 2>&5
6895  ac_status=$?
6896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897  (exit $ac_status); }; then
6898   if test "$lt_cv_prog_gnu_ld" = yes; then
6899    case `/usr/bin/file conftest.$ac_objext` in
6900    *32-bit*)
6901      LD="${LD-ld} -melf32bsmip"
6902      ;;
6903    *N32*)
6904      LD="${LD-ld} -melf32bmipn32"
6905      ;;
6906    *64-bit*)
6907      LD="${LD-ld} -melf64bmip"
6908      ;;
6909    esac
6910   else
6911    case `/usr/bin/file conftest.$ac_objext` in
6912    *32-bit*)
6913      LD="${LD-ld} -32"
6914      ;;
6915    *N32*)
6916      LD="${LD-ld} -n32"
6917      ;;
6918    *64-bit*)
6919      LD="${LD-ld} -64"
6920      ;;
6921    esac
6922   fi
6923  fi
6924  rm -rf conftest*
6925  ;;
6926
6927x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6928  # Find out which ABI we are using.
6929  echo 'int i;' > conftest.$ac_ext
6930  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931  (eval $ac_compile) 2>&5
6932  ac_status=$?
6933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934  (exit $ac_status); }; then
6935    case `/usr/bin/file conftest.o` in
6936    *32-bit*)
6937      case $host in
6938        x86_64-*linux*)
6939          LD="${LD-ld} -m elf_i386"
6940          ;;
6941        ppc64-*linux*|powerpc64-*linux*)
6942          LD="${LD-ld} -m elf32ppclinux"
6943          ;;
6944        s390x-*linux*)
6945          LD="${LD-ld} -m elf_s390"
6946          ;;
6947        sparc64-*linux*)
6948          LD="${LD-ld} -m elf32_sparc"
6949          ;;
6950      esac
6951      ;;
6952    *64-bit*)
6953      case $host in
6954        x86_64-*linux*)
6955          LD="${LD-ld} -m elf_x86_64"
6956          ;;
6957        ppc*-*linux*|powerpc*-*linux*)
6958          LD="${LD-ld} -m elf64ppc"
6959          ;;
6960        s390*-*linux*)
6961          LD="${LD-ld} -m elf64_s390"
6962          ;;
6963        sparc*-*linux*)
6964          LD="${LD-ld} -m elf64_sparc"
6965          ;;
6966      esac
6967      ;;
6968    esac
6969  fi
6970  rm -rf conftest*
6971  ;;
6972
6973*-*-sco3.2v5*)
6974  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6975  SAVE_CFLAGS="$CFLAGS"
6976  CFLAGS="$CFLAGS -belf"
6977  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6978echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6979if test "${lt_cv_cc_needs_belf+set}" = set; then
6980  echo $ECHO_N "(cached) $ECHO_C" >&6
6981else
6982  ac_ext=c
6983ac_cpp='$CPP $CPPFLAGS'
6984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986ac_compiler_gnu=$ac_cv_c_compiler_gnu
6987
6988     cat >conftest.$ac_ext <<_ACEOF
6989/* confdefs.h.  */
6990_ACEOF
6991cat confdefs.h >>conftest.$ac_ext
6992cat >>conftest.$ac_ext <<_ACEOF
6993/* end confdefs.h.  */
6994
6995int
6996main ()
6997{
6998
6999  ;
7000  return 0;
7001}
7002_ACEOF
7003rm -f conftest.$ac_objext conftest$ac_exeext
7004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005  (eval $ac_link) 2>conftest.er1
7006  ac_status=$?
7007  grep -v '^ *+' conftest.er1 >conftest.err
7008  rm -f conftest.er1
7009  cat conftest.err >&5
7010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011  (exit $ac_status); } &&
7012         { ac_try='test -z "$ac_c_werror_flag"
7013                         || test ! -s conftest.err'
7014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015  (eval $ac_try) 2>&5
7016  ac_status=$?
7017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018  (exit $ac_status); }; } &&
7019         { ac_try='test -s conftest$ac_exeext'
7020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021  (eval $ac_try) 2>&5
7022  ac_status=$?
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); }; }; then
7025  lt_cv_cc_needs_belf=yes
7026else
7027  echo "$as_me: failed program was:" >&5
7028sed 's/^/| /' conftest.$ac_ext >&5
7029
7030lt_cv_cc_needs_belf=no
7031fi
7032rm -f conftest.err conftest.$ac_objext \
7033      conftest$ac_exeext conftest.$ac_ext
7034     ac_ext=c
7035ac_cpp='$CPP $CPPFLAGS'
7036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038ac_compiler_gnu=$ac_cv_c_compiler_gnu
7039
7040fi
7041echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7042echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7043  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7044    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7045    CFLAGS="$SAVE_CFLAGS"
7046  fi
7047  ;;
7048sparc*-*solaris*)
7049  # Find out which ABI we are using.
7050  echo 'int i;' > conftest.$ac_ext
7051  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7052  (eval $ac_compile) 2>&5
7053  ac_status=$?
7054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055  (exit $ac_status); }; then
7056    case `/usr/bin/file conftest.o` in
7057    *64-bit*)
7058      case $lt_cv_prog_gnu_ld in
7059      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7060      *)    LD="${LD-ld} -64" ;;
7061      esac
7062      ;;
7063    esac
7064  fi
7065  rm -rf conftest*
7066  ;;
7067
7068
7069esac
7070
7071need_locks="$enable_libtool_lock"
7072
7073
7074ac_ext=c
7075ac_cpp='$CPP $CPPFLAGS'
7076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7080echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7081# On Suns, sometimes $CPP names a directory.
7082if test -n "$CPP" && test -d "$CPP"; then
7083  CPP=
7084fi
7085if test -z "$CPP"; then
7086  if test "${ac_cv_prog_CPP+set}" = set; then
7087  echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089      # Double quotes because CPP needs to be expanded
7090    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7091    do
7092      ac_preproc_ok=false
7093for ac_c_preproc_warn_flag in '' yes
7094do
7095  # Use a header file that comes with gcc, so configuring glibc
7096  # with a fresh cross-compiler works.
7097  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7098  # <limits.h> exists even on freestanding compilers.
7099  # On the NeXT, cc -E runs the code through the compiler's parser,
7100  # not just through cpp. "Syntax error" is here to catch this case.
7101  cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h.  */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h.  */
7107#ifdef __STDC__
7108# include <limits.h>
7109#else
7110# include <assert.h>
7111#endif
7112                     Syntax error
7113_ACEOF
7114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7115  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7116  ac_status=$?
7117  grep -v '^ *+' conftest.er1 >conftest.err
7118  rm -f conftest.er1
7119  cat conftest.err >&5
7120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121  (exit $ac_status); } >/dev/null; then
7122  if test -s conftest.err; then
7123    ac_cpp_err=$ac_c_preproc_warn_flag
7124    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7125  else
7126    ac_cpp_err=
7127  fi
7128else
7129  ac_cpp_err=yes
7130fi
7131if test -z "$ac_cpp_err"; then
7132  :
7133else
7134  echo "$as_me: failed program was:" >&5
7135sed 's/^/| /' conftest.$ac_ext >&5
7136
7137  # Broken: fails on valid input.
7138continue
7139fi
7140rm -f conftest.err conftest.$ac_ext
7141
7142  # OK, works on sane cases.  Now check whether non-existent headers
7143  # can be detected and how.
7144  cat >conftest.$ac_ext <<_ACEOF
7145/* confdefs.h.  */
7146_ACEOF
7147cat confdefs.h >>conftest.$ac_ext
7148cat >>conftest.$ac_ext <<_ACEOF
7149/* end confdefs.h.  */
7150#include <ac_nonexistent.h>
7151_ACEOF
7152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7153  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7154  ac_status=$?
7155  grep -v '^ *+' conftest.er1 >conftest.err
7156  rm -f conftest.er1
7157  cat conftest.err >&5
7158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159  (exit $ac_status); } >/dev/null; then
7160  if test -s conftest.err; then
7161    ac_cpp_err=$ac_c_preproc_warn_flag
7162    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7163  else
7164    ac_cpp_err=
7165  fi
7166else
7167  ac_cpp_err=yes
7168fi
7169if test -z "$ac_cpp_err"; then
7170  # Broken: success on invalid input.
7171continue
7172else
7173  echo "$as_me: failed program was:" >&5
7174sed 's/^/| /' conftest.$ac_ext >&5
7175
7176  # Passes both tests.
7177ac_preproc_ok=:
7178break
7179fi
7180rm -f conftest.err conftest.$ac_ext
7181
7182done
7183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7184rm -f conftest.err conftest.$ac_ext
7185if $ac_preproc_ok; then
7186  break
7187fi
7188
7189    done
7190    ac_cv_prog_CPP=$CPP
7191
7192fi
7193  CPP=$ac_cv_prog_CPP
7194else
7195  ac_cv_prog_CPP=$CPP
7196fi
7197echo "$as_me:$LINENO: result: $CPP" >&5
7198echo "${ECHO_T}$CPP" >&6
7199ac_preproc_ok=false
7200for ac_c_preproc_warn_flag in '' yes
7201do
7202  # Use a header file that comes with gcc, so configuring glibc
7203  # with a fresh cross-compiler works.
7204  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7205  # <limits.h> exists even on freestanding compilers.
7206  # On the NeXT, cc -E runs the code through the compiler's parser,
7207  # not just through cpp. "Syntax error" is here to catch this case.
7208  cat >conftest.$ac_ext <<_ACEOF
7209/* confdefs.h.  */
7210_ACEOF
7211cat confdefs.h >>conftest.$ac_ext
7212cat >>conftest.$ac_ext <<_ACEOF
7213/* end confdefs.h.  */
7214#ifdef __STDC__
7215# include <limits.h>
7216#else
7217# include <assert.h>
7218#endif
7219                     Syntax error
7220_ACEOF
7221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7222  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7223  ac_status=$?
7224  grep -v '^ *+' conftest.er1 >conftest.err
7225  rm -f conftest.er1
7226  cat conftest.err >&5
7227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228  (exit $ac_status); } >/dev/null; then
7229  if test -s conftest.err; then
7230    ac_cpp_err=$ac_c_preproc_warn_flag
7231    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7232  else
7233    ac_cpp_err=
7234  fi
7235else
7236  ac_cpp_err=yes
7237fi
7238if test -z "$ac_cpp_err"; then
7239  :
7240else
7241  echo "$as_me: failed program was:" >&5
7242sed 's/^/| /' conftest.$ac_ext >&5
7243
7244  # Broken: fails on valid input.
7245continue
7246fi
7247rm -f conftest.err conftest.$ac_ext
7248
7249  # OK, works on sane cases.  Now check whether non-existent headers
7250  # can be detected and how.
7251  cat >conftest.$ac_ext <<_ACEOF
7252/* confdefs.h.  */
7253_ACEOF
7254cat confdefs.h >>conftest.$ac_ext
7255cat >>conftest.$ac_ext <<_ACEOF
7256/* end confdefs.h.  */
7257#include <ac_nonexistent.h>
7258_ACEOF
7259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7260  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7261  ac_status=$?
7262  grep -v '^ *+' conftest.er1 >conftest.err
7263  rm -f conftest.er1
7264  cat conftest.err >&5
7265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266  (exit $ac_status); } >/dev/null; then
7267  if test -s conftest.err; then
7268    ac_cpp_err=$ac_c_preproc_warn_flag
7269    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7270  else
7271    ac_cpp_err=
7272  fi
7273else
7274  ac_cpp_err=yes
7275fi
7276if test -z "$ac_cpp_err"; then
7277  # Broken: success on invalid input.
7278continue
7279else
7280  echo "$as_me: failed program was:" >&5
7281sed 's/^/| /' conftest.$ac_ext >&5
7282
7283  # Passes both tests.
7284ac_preproc_ok=:
7285break
7286fi
7287rm -f conftest.err conftest.$ac_ext
7288
7289done
7290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7291rm -f conftest.err conftest.$ac_ext
7292if $ac_preproc_ok; then
7293  :
7294else
7295  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7296See \`config.log' for more details." >&5
7297echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7298See \`config.log' for more details." >&2;}
7299   { (exit 1); exit 1; }; }
7300fi
7301
7302ac_ext=c
7303ac_cpp='$CPP $CPPFLAGS'
7304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306ac_compiler_gnu=$ac_cv_c_compiler_gnu
7307
7308
7309echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7310echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7311if test "${ac_cv_header_stdc+set}" = set; then
7312  echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314  cat >conftest.$ac_ext <<_ACEOF
7315/* confdefs.h.  */
7316_ACEOF
7317cat confdefs.h >>conftest.$ac_ext
7318cat >>conftest.$ac_ext <<_ACEOF
7319/* end confdefs.h.  */
7320#include <stdlib.h>
7321#include <stdarg.h>
7322#include <string.h>
7323#include <float.h>
7324
7325int
7326main ()
7327{
7328
7329  ;
7330  return 0;
7331}
7332_ACEOF
7333rm -f conftest.$ac_objext
7334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7335  (eval $ac_compile) 2>conftest.er1
7336  ac_status=$?
7337  grep -v '^ *+' conftest.er1 >conftest.err
7338  rm -f conftest.er1
7339  cat conftest.err >&5
7340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341  (exit $ac_status); } &&
7342         { ac_try='test -z "$ac_c_werror_flag"
7343                         || test ! -s conftest.err'
7344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345  (eval $ac_try) 2>&5
7346  ac_status=$?
7347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348  (exit $ac_status); }; } &&
7349         { ac_try='test -s conftest.$ac_objext'
7350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351  (eval $ac_try) 2>&5
7352  ac_status=$?
7353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354  (exit $ac_status); }; }; then
7355  ac_cv_header_stdc=yes
7356else
7357  echo "$as_me: failed program was:" >&5
7358sed 's/^/| /' conftest.$ac_ext >&5
7359
7360ac_cv_header_stdc=no
7361fi
7362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7363
7364if test $ac_cv_header_stdc = yes; then
7365  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7366  cat >conftest.$ac_ext <<_ACEOF
7367/* confdefs.h.  */
7368_ACEOF
7369cat confdefs.h >>conftest.$ac_ext
7370cat >>conftest.$ac_ext <<_ACEOF
7371/* end confdefs.h.  */
7372#include <string.h>
7373
7374_ACEOF
7375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7376  $EGREP "memchr" >/dev/null 2>&1; then
7377  :
7378else
7379  ac_cv_header_stdc=no
7380fi
7381rm -f conftest*
7382
7383fi
7384
7385if test $ac_cv_header_stdc = yes; then
7386  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7387  cat >conftest.$ac_ext <<_ACEOF
7388/* confdefs.h.  */
7389_ACEOF
7390cat confdefs.h >>conftest.$ac_ext
7391cat >>conftest.$ac_ext <<_ACEOF
7392/* end confdefs.h.  */
7393#include <stdlib.h>
7394
7395_ACEOF
7396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7397  $EGREP "free" >/dev/null 2>&1; then
7398  :
7399else
7400  ac_cv_header_stdc=no
7401fi
7402rm -f conftest*
7403
7404fi
7405
7406if test $ac_cv_header_stdc = yes; then
7407  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7408  if test "$cross_compiling" = yes; then
7409  :
7410else
7411  cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h.  */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h.  */
7417#include <ctype.h>
7418#if ((' ' & 0x0FF) == 0x020)
7419# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7420# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7421#else
7422# define ISLOWER(c) \
7423                   (('a' <= (c) && (c) <= 'i') \
7424                     || ('j' <= (c) && (c) <= 'r') \
7425                     || ('s' <= (c) && (c) <= 'z'))
7426# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7427#endif
7428
7429#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7430int
7431main ()
7432{
7433  int i;
7434  for (i = 0; i < 256; i++)
7435    if (XOR (islower (i), ISLOWER (i))
7436        || toupper (i) != TOUPPER (i))
7437      exit(2);
7438  exit (0);
7439}
7440_ACEOF
7441rm -f conftest$ac_exeext
7442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443  (eval $ac_link) 2>&5
7444  ac_status=$?
7445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448  (eval $ac_try) 2>&5
7449  ac_status=$?
7450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451  (exit $ac_status); }; }; then
7452  :
7453else
7454  echo "$as_me: program exited with status $ac_status" >&5
7455echo "$as_me: failed program was:" >&5
7456sed 's/^/| /' conftest.$ac_ext >&5
7457
7458( exit $ac_status )
7459ac_cv_header_stdc=no
7460fi
7461rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7462fi
7463fi
7464fi
7465echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7466echo "${ECHO_T}$ac_cv_header_stdc" >&6
7467if test $ac_cv_header_stdc = yes; then
7468
7469cat >>confdefs.h <<\_ACEOF
7470#define STDC_HEADERS 1
7471_ACEOF
7472
7473fi
7474
7475# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7486                  inttypes.h stdint.h unistd.h
7487do
7488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7489echo "$as_me:$LINENO: checking for $ac_header" >&5
7490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7491if eval "test \"\${$as_ac_Header+set}\" = set"; then
7492  echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494  cat >conftest.$ac_ext <<_ACEOF
7495/* confdefs.h.  */
7496_ACEOF
7497cat confdefs.h >>conftest.$ac_ext
7498cat >>conftest.$ac_ext <<_ACEOF
7499/* end confdefs.h.  */
7500$ac_includes_default
7501
7502#include <$ac_header>
7503_ACEOF
7504rm -f conftest.$ac_objext
7505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506  (eval $ac_compile) 2>conftest.er1
7507  ac_status=$?
7508  grep -v '^ *+' conftest.er1 >conftest.err
7509  rm -f conftest.er1
7510  cat conftest.err >&5
7511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512  (exit $ac_status); } &&
7513         { ac_try='test -z "$ac_c_werror_flag"
7514                         || test ! -s conftest.err'
7515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516  (eval $ac_try) 2>&5
7517  ac_status=$?
7518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519  (exit $ac_status); }; } &&
7520         { ac_try='test -s conftest.$ac_objext'
7521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522  (eval $ac_try) 2>&5
7523  ac_status=$?
7524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525  (exit $ac_status); }; }; then
7526  eval "$as_ac_Header=yes"
7527else
7528  echo "$as_me: failed program was:" >&5
7529sed 's/^/| /' conftest.$ac_ext >&5
7530
7531eval "$as_ac_Header=no"
7532fi
7533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7534fi
7535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7537if test `eval echo '${'$as_ac_Header'}'` = yes; then
7538  cat >>confdefs.h <<_ACEOF
7539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7540_ACEOF
7541
7542fi
7543
7544done
7545
7546
7547
7548for ac_header in dlfcn.h
7549do
7550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7551if eval "test \"\${$as_ac_Header+set}\" = set"; then
7552  echo "$as_me:$LINENO: checking for $ac_header" >&5
7553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7554if eval "test \"\${$as_ac_Header+set}\" = set"; then
7555  echo $ECHO_N "(cached) $ECHO_C" >&6
7556fi
7557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7559else
7560  # Is the header compilable?
7561echo "$as_me:$LINENO: checking $ac_header usability" >&5
7562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7563cat >conftest.$ac_ext <<_ACEOF
7564/* confdefs.h.  */
7565_ACEOF
7566cat confdefs.h >>conftest.$ac_ext
7567cat >>conftest.$ac_ext <<_ACEOF
7568/* end confdefs.h.  */
7569$ac_includes_default
7570#include <$ac_header>
7571_ACEOF
7572rm -f conftest.$ac_objext
7573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574  (eval $ac_compile) 2>conftest.er1
7575  ac_status=$?
7576  grep -v '^ *+' conftest.er1 >conftest.err
7577  rm -f conftest.er1
7578  cat conftest.err >&5
7579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580  (exit $ac_status); } &&
7581         { ac_try='test -z "$ac_c_werror_flag"
7582                         || test ! -s conftest.err'
7583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584  (eval $ac_try) 2>&5
7585  ac_status=$?
7586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587  (exit $ac_status); }; } &&
7588         { ac_try='test -s conftest.$ac_objext'
7589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590  (eval $ac_try) 2>&5
7591  ac_status=$?
7592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593  (exit $ac_status); }; }; then
7594  ac_header_compiler=yes
7595else
7596  echo "$as_me: failed program was:" >&5
7597sed 's/^/| /' conftest.$ac_ext >&5
7598
7599ac_header_compiler=no
7600fi
7601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7603echo "${ECHO_T}$ac_header_compiler" >&6
7604
7605# Is the header present?
7606echo "$as_me:$LINENO: checking $ac_header presence" >&5
7607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7608cat >conftest.$ac_ext <<_ACEOF
7609/* confdefs.h.  */
7610_ACEOF
7611cat confdefs.h >>conftest.$ac_ext
7612cat >>conftest.$ac_ext <<_ACEOF
7613/* end confdefs.h.  */
7614#include <$ac_header>
7615_ACEOF
7616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7617  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7618  ac_status=$?
7619  grep -v '^ *+' conftest.er1 >conftest.err
7620  rm -f conftest.er1
7621  cat conftest.err >&5
7622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623  (exit $ac_status); } >/dev/null; then
7624  if test -s conftest.err; then
7625    ac_cpp_err=$ac_c_preproc_warn_flag
7626    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7627  else
7628    ac_cpp_err=
7629  fi
7630else
7631  ac_cpp_err=yes
7632fi
7633if test -z "$ac_cpp_err"; then
7634  ac_header_preproc=yes
7635else
7636  echo "$as_me: failed program was:" >&5
7637sed 's/^/| /' conftest.$ac_ext >&5
7638
7639  ac_header_preproc=no
7640fi
7641rm -f conftest.err conftest.$ac_ext
7642echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7643echo "${ECHO_T}$ac_header_preproc" >&6
7644
7645# So?  What about this header?
7646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7647  yes:no: )
7648    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7650    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7652    ac_header_preproc=yes
7653    ;;
7654  no:yes:* )
7655    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7657    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7658echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7659    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7661    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7662echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7663    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7665    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7667    (
7668      cat <<\_ASBOX
7669## --------------------------------------- ##
7670## Report this to couenne@list.coin-or.org ##
7671## --------------------------------------- ##
7672_ASBOX
7673    ) |
7674      sed "s/^/$as_me: WARNING:     /" >&2
7675    ;;
7676esac
7677echo "$as_me:$LINENO: checking for $ac_header" >&5
7678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7679if eval "test \"\${$as_ac_Header+set}\" = set"; then
7680  echo $ECHO_N "(cached) $ECHO_C" >&6
7681else
7682  eval "$as_ac_Header=\$ac_header_preproc"
7683fi
7684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7686
7687fi
7688if test `eval echo '${'$as_ac_Header'}'` = yes; then
7689  cat >>confdefs.h <<_ACEOF
7690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7691_ACEOF
7692
7693fi
7694
7695done
7696
7697
7698
7699if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7700    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7701    (test "X$CXX" != "Xg++"))) ; then
7702  ac_ext=cc
7703ac_cpp='$CXXCPP $CPPFLAGS'
7704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7707echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7708echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7709if test -z "$CXXCPP"; then
7710  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7711  echo $ECHO_N "(cached) $ECHO_C" >&6
7712else
7713      # Double quotes because CXXCPP needs to be expanded
7714    for CXXCPP in "$CXX -E" "/lib/cpp"
7715    do
7716      ac_preproc_ok=false
7717for ac_cxx_preproc_warn_flag in '' yes
7718do
7719  # Use a header file that comes with gcc, so configuring glibc
7720  # with a fresh cross-compiler works.
7721  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7722  # <limits.h> exists even on freestanding compilers.
7723  # On the NeXT, cc -E runs the code through the compiler's parser,
7724  # not just through cpp. "Syntax error" is here to catch this case.
7725  cat >conftest.$ac_ext <<_ACEOF
7726/* confdefs.h.  */
7727_ACEOF
7728cat confdefs.h >>conftest.$ac_ext
7729cat >>conftest.$ac_ext <<_ACEOF
7730/* end confdefs.h.  */
7731#ifdef __STDC__
7732# include <limits.h>
7733#else
7734# include <assert.h>
7735#endif
7736                     Syntax error
7737_ACEOF
7738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7739  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7740  ac_status=$?
7741  grep -v '^ *+' conftest.er1 >conftest.err
7742  rm -f conftest.er1
7743  cat conftest.err >&5
7744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745  (exit $ac_status); } >/dev/null; then
7746  if test -s conftest.err; then
7747    ac_cpp_err=$ac_cxx_preproc_warn_flag
7748    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7749  else
7750    ac_cpp_err=
7751  fi
7752else
7753  ac_cpp_err=yes
7754fi
7755if test -z "$ac_cpp_err"; then
7756  :
7757else
7758  echo "$as_me: failed program was:" >&5
7759sed 's/^/| /' conftest.$ac_ext >&5
7760
7761  # Broken: fails on valid input.
7762continue
7763fi
7764rm -f conftest.err conftest.$ac_ext
7765
7766  # OK, works on sane cases.  Now check whether non-existent headers
7767  # can be detected and how.
7768  cat >conftest.$ac_ext <<_ACEOF
7769/* confdefs.h.  */
7770_ACEOF
7771cat confdefs.h >>conftest.$ac_ext
7772cat >>conftest.$ac_ext <<_ACEOF
7773/* end confdefs.h.  */
7774#include <ac_nonexistent.h>
7775_ACEOF
7776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7777  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7778  ac_status=$?
7779  grep -v '^ *+' conftest.er1 >conftest.err
7780  rm -f conftest.er1
7781  cat conftest.err >&5
7782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783  (exit $ac_status); } >/dev/null; then
7784  if test -s conftest.err; then
7785    ac_cpp_err=$ac_cxx_preproc_warn_flag
7786    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7787  else
7788    ac_cpp_err=
7789  fi
7790else
7791  ac_cpp_err=yes
7792fi
7793if test -z "$ac_cpp_err"; then
7794  # Broken: success on invalid input.
7795continue
7796else
7797  echo "$as_me: failed program was:" >&5
7798sed 's/^/| /' conftest.$ac_ext >&5
7799
7800  # Passes both tests.
7801ac_preproc_ok=:
7802break
7803fi
7804rm -f conftest.err conftest.$ac_ext
7805
7806done
7807# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7808rm -f conftest.err conftest.$ac_ext
7809if $ac_preproc_ok; then
7810  break
7811fi
7812
7813    done
7814    ac_cv_prog_CXXCPP=$CXXCPP
7815
7816fi
7817  CXXCPP=$ac_cv_prog_CXXCPP
7818else
7819  ac_cv_prog_CXXCPP=$CXXCPP
7820fi
7821echo "$as_me:$LINENO: result: $CXXCPP" >&5
7822echo "${ECHO_T}$CXXCPP" >&6
7823ac_preproc_ok=false
7824for ac_cxx_preproc_warn_flag in '' yes
7825do
7826  # Use a header file that comes with gcc, so configuring glibc
7827  # with a fresh cross-compiler works.
7828  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7829  # <limits.h> exists even on freestanding compilers.
7830  # On the NeXT, cc -E runs the code through the compiler's parser,
7831  # not just through cpp. "Syntax error" is here to catch this case.
7832  cat >conftest.$ac_ext <<_ACEOF
7833/* confdefs.h.  */
7834_ACEOF
7835cat confdefs.h >>conftest.$ac_ext
7836cat >>conftest.$ac_ext <<_ACEOF
7837/* end confdefs.h.  */
7838#ifdef __STDC__
7839# include <limits.h>
7840#else
7841# include <assert.h>
7842#endif
7843                     Syntax error
7844_ACEOF
7845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7846  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7847  ac_status=$?
7848  grep -v '^ *+' conftest.er1 >conftest.err
7849  rm -f conftest.er1
7850  cat conftest.err >&5
7851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852  (exit $ac_status); } >/dev/null; then
7853  if test -s conftest.err; then
7854    ac_cpp_err=$ac_cxx_preproc_warn_flag
7855    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7856  else
7857    ac_cpp_err=
7858  fi
7859else
7860  ac_cpp_err=yes
7861fi
7862if test -z "$ac_cpp_err"; then
7863  :
7864else
7865  echo "$as_me: failed program was:" >&5
7866sed 's/^/| /' conftest.$ac_ext >&5
7867
7868  # Broken: fails on valid input.
7869continue
7870fi
7871rm -f conftest.err conftest.$ac_ext
7872
7873  # OK, works on sane cases.  Now check whether non-existent headers
7874  # can be detected and how.
7875  cat >conftest.$ac_ext <<_ACEOF
7876/* confdefs.h.  */
7877_ACEOF
7878cat confdefs.h >>conftest.$ac_ext
7879cat >>conftest.$ac_ext <<_ACEOF
7880/* end confdefs.h.  */
7881#include <ac_nonexistent.h>
7882_ACEOF
7883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7884  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7885  ac_status=$?
7886  grep -v '^ *+' conftest.er1 >conftest.err
7887  rm -f conftest.er1
7888  cat conftest.err >&5
7889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890  (exit $ac_status); } >/dev/null; then
7891  if test -s conftest.err; then
7892    ac_cpp_err=$ac_cxx_preproc_warn_flag
7893    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7894  else
7895    ac_cpp_err=
7896  fi
7897else
7898  ac_cpp_err=yes
7899fi
7900if test -z "$ac_cpp_err"; then
7901  # Broken: success on invalid input.
7902continue
7903else
7904  echo "$as_me: failed program was:" >&5
7905sed 's/^/| /' conftest.$ac_ext >&5
7906
7907  # Passes both tests.
7908ac_preproc_ok=:
7909break
7910fi
7911rm -f conftest.err conftest.$ac_ext
7912
7913done
7914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7915rm -f conftest.err conftest.$ac_ext
7916if $ac_preproc_ok; then
7917  :
7918else
7919  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7920See \`config.log' for more details." >&5
7921echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7922See \`config.log' for more details." >&2;}
7923   { (exit 1); exit 1; }; }
7924fi
7925
7926ac_ext=cc
7927ac_cpp='$CXXCPP $CPPFLAGS'
7928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7931
7932fi
7933
7934ac_ext=f
7935ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7936ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7937ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7938if test -n "$ac_tool_prefix"; then
7939  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7940  do
7941    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7942set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7943echo "$as_me:$LINENO: checking for $ac_word" >&5
7944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7945if test "${ac_cv_prog_F77+set}" = set; then
7946  echo $ECHO_N "(cached) $ECHO_C" >&6
7947else
7948  if test -n "$F77"; then
7949  ac_cv_prog_F77="$F77" # Let the user override the test.
7950else
7951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952for as_dir in $PATH
7953do
7954  IFS=$as_save_IFS
7955  test -z "$as_dir" && as_dir=.
7956  for ac_exec_ext in '' $ac_executable_extensions; do
7957  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7959    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7960    break 2
7961  fi
7962done
7963done
7964
7965fi
7966fi
7967F77=$ac_cv_prog_F77
7968if test -n "$F77"; then
7969  echo "$as_me:$LINENO: result: $F77" >&5
7970echo "${ECHO_T}$F77" >&6
7971else
7972  echo "$as_me:$LINENO: result: no" >&5
7973echo "${ECHO_T}no" >&6
7974fi
7975
7976    test -n "$F77" && break
7977  done
7978fi
7979if test -z "$F77"; then
7980  ac_ct_F77=$F77
7981  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7982do
7983  # Extract the first word of "$ac_prog", so it can be a program name with args.
7984set dummy $ac_prog; ac_word=$2
7985echo "$as_me:$LINENO: checking for $ac_word" >&5
7986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7987if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7988  echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990  if test -n "$ac_ct_F77"; then
7991  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7992else
7993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994for as_dir in $PATH
7995do
7996  IFS=$as_save_IFS
7997  test -z "$as_dir" && as_dir=.
7998  for ac_exec_ext in '' $ac_executable_extensions; do
7999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000    ac_cv_prog_ac_ct_F77="$ac_prog"
8001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8002    break 2
8003  fi
8004done
8005done
8006
8007fi
8008fi
8009ac_ct_F77=$ac_cv_prog_ac_ct_F77
8010if test -n "$ac_ct_F77"; then
8011  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8012echo "${ECHO_T}$ac_ct_F77" >&6
8013else
8014  echo "$as_me:$LINENO: result: no" >&5
8015echo "${ECHO_T}no" >&6
8016fi
8017
8018  test -n "$ac_ct_F77" && break
8019done
8020
8021  F77=$ac_ct_F77
8022fi
8023
8024
8025# Provide some information about the compiler.
8026echo "$as_me:8026:" \
8027     "checking for Fortran 77 compiler version" >&5
8028ac_compiler=`set X $ac_compile; echo $2`
8029{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8030  (eval $ac_compiler --version </dev/null >&5) 2>&5
8031  ac_status=$?
8032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033  (exit $ac_status); }
8034{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8035  (eval $ac_compiler -v </dev/null >&5) 2>&5
8036  ac_status=$?
8037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038  (exit $ac_status); }
8039{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8040  (eval $ac_compiler -V </dev/null >&5) 2>&5
8041  ac_status=$?
8042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043  (exit $ac_status); }
8044rm -f a.out
8045
8046# If we don't use `.F' as extension, the preprocessor is not run on the
8047# input file.  (Note that this only needs to work for GNU compilers.)
8048ac_save_ext=$ac_ext
8049ac_ext=F
8050echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8051echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
8052if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8053  echo $ECHO_N "(cached) $ECHO_C" >&6
8054else
8055  cat >conftest.$ac_ext <<_ACEOF
8056      program main
8057#ifndef __GNUC__
8058       choke me
8059#endif
8060
8061      end
8062_ACEOF
8063rm -f conftest.$ac_objext
8064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8065  (eval $ac_compile) 2>conftest.er1
8066  ac_status=$?
8067  grep -v '^ *+' conftest.er1 >conftest.err
8068  rm -f conftest.er1
8069  cat conftest.err >&5
8070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071  (exit $ac_status); } &&
8072         { ac_try='test -z "$ac_f77_werror_flag"
8073                         || test ! -s conftest.err'
8074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075  (eval $ac_try) 2>&5
8076  ac_status=$?
8077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078  (exit $ac_status); }; } &&
8079         { ac_try='test -s conftest.$ac_objext'
8080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081  (eval $ac_try) 2>&5
8082  ac_status=$?
8083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084  (exit $ac_status); }; }; then
8085  ac_compiler_gnu=yes
8086else
8087  echo "$as_me: failed program was:" >&5
8088sed 's/^/| /' conftest.$ac_ext >&5
8089
8090ac_compiler_gnu=no
8091fi
8092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8093ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8094
8095fi
8096echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8097echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
8098ac_ext=$ac_save_ext
8099ac_test_FFLAGS=${FFLAGS+set}
8100ac_save_FFLAGS=$FFLAGS
8101FFLAGS=
8102echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8103echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
8104if test "${ac_cv_prog_f77_g+set}" = set; then
8105  echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107  FFLAGS=-g
8108cat >conftest.$ac_ext <<_ACEOF
8109      program main
8110
8111      end
8112_ACEOF
8113rm -f conftest.$ac_objext
8114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115  (eval $ac_compile) 2>conftest.er1
8116  ac_status=$?
8117  grep -v '^ *+' conftest.er1 >conftest.err
8118  rm -f conftest.er1
8119  cat conftest.err >&5
8120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121  (exit $ac_status); } &&
8122         { ac_try='test -z "$ac_f77_werror_flag"
8123                         || test ! -s conftest.err'
8124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125  (eval $ac_try) 2>&5
8126  ac_status=$?
8127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128  (exit $ac_status); }; } &&
8129         { ac_try='test -s conftest.$ac_objext'
8130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131  (eval $ac_try) 2>&5
8132  ac_status=$?
8133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134  (exit $ac_status); }; }; then
8135  ac_cv_prog_f77_g=yes
8136else
8137  echo "$as_me: failed program was:" >&5
8138sed 's/^/| /' conftest.$ac_ext >&5
8139
8140ac_cv_prog_f77_g=no
8141fi
8142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8143
8144fi
8145echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8146echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
8147if test "$ac_test_FFLAGS" = set; then
8148  FFLAGS=$ac_save_FFLAGS
8149elif test $ac_cv_prog_f77_g = yes; then
8150  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8151    FFLAGS="-g -O2"
8152  else
8153    FFLAGS="-g"
8154  fi
8155else
8156  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8157    FFLAGS="-O2"
8158  else
8159    FFLAGS=
8160  fi
8161fi
8162
8163G77=`test $ac_compiler_gnu = yes && echo yes`
8164ac_ext=c
8165ac_cpp='$CPP $CPPFLAGS'
8166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168ac_compiler_gnu=$ac_cv_c_compiler_gnu
8169
8170
8171
8172# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8173
8174# find the maximum length of command line arguments
8175echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8176echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8177if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8178  echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180    i=0
8181  teststring="ABCD"
8182
8183  case $build_os in
8184  msdosdjgpp*)
8185    # On DJGPP, this test can blow up pretty badly due to problems in libc
8186    # (any single argument exceeding 2000 bytes causes a buffer overrun
8187    # during glob expansion).  Even if it were fixed, the result of this
8188    # check would be larger than it should be.
8189    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8190    ;;
8191
8192  gnu*)
8193    # Under GNU Hurd, this test is not required because there is
8194    # no limit to the length of command line arguments.
8195    # Libtool will interpret -1 as no limit whatsoever
8196    lt_cv_sys_max_cmd_len=-1;
8197    ;;
8198
8199  cygwin* | mingw*)
8200    # On Win9x/ME, this test blows up -- it succeeds, but takes
8201    # about 5 minutes as the teststring grows exponentially.
8202    # Worse, since 9x/ME are not pre-emptively multitasking,
8203    # you end up with a "frozen" computer, even though with patience
8204    # the test eventually succeeds (with a max line length of 256k).
8205    # Instead, let's just punt: use the minimum linelength reported by
8206    # all of the supported platforms: 8192 (on NT/2K/XP).
8207    lt_cv_sys_max_cmd_len=8192;
8208    ;;
8209
8210  amigaos*)
8211    # On AmigaOS with pdksh, this test takes hours, literally.
8212    # So we just punt and use a minimum line length of 8192.
8213    lt_cv_sys_max_cmd_len=8192;
8214    ;;
8215
8216  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8217    # This has been around since 386BSD, at least.  Likely further.
8218    if test -x /sbin/sysctl; then
8219      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8220    elif test -x /usr/sbin/sysctl; then
8221      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8222    else
8223      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8224    fi
8225    # And add a safety zone
8226    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8227    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8228    ;;
8229
8230  interix*)
8231    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8232    lt_cv_sys_max_cmd_len=196608
8233    ;;
8234
8235  osf*)
8236    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8237    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8238    # nice to cause kernel panics so lets avoid the loop below.
8239    # First set a reasonable default.
8240    lt_cv_sys_max_cmd_len=16384
8241    #
8242    if test -x /sbin/sysconfig; then
8243      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8244        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8245      esac
8246    fi
8247    ;;
8248  sco3.2v5*)
8249    lt_cv_sys_max_cmd_len=102400
8250    ;;
8251  sysv5* | sco5v6* | sysv4.2uw2*)
8252    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8253    if test -n "$kargmax"; then
8254      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8255    else
8256      lt_cv_sys_max_cmd_len=32768
8257    fi
8258    ;;
8259  *)
8260    # If test is not a shell built-in, we'll probably end up computing a
8261    # maximum length that is only half of the actual maximum length, but
8262    # we can't tell.
8263    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8264    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8265               = "XX$teststring") >/dev/null 2>&1 &&
8266            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8267            lt_cv_sys_max_cmd_len=$new_result &&
8268            test $i != 17 # 1/2 MB should be enough
8269    do
8270      i=`expr $i + 1`
8271      teststring=$teststring$teststring
8272    done
8273    teststring=
8274    # Add a significant safety factor because C++ compilers can tack on massive
8275    # amounts of additional arguments before passing them to the linker.
8276    # It appears as though 1/2 is a usable value.
8277    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8278    ;;
8279  esac
8280
8281fi
8282
8283if test -n $lt_cv_sys_max_cmd_len ; then
8284  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8285echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8286else
8287  echo "$as_me:$LINENO: result: none" >&5
8288echo "${ECHO_T}none" >&6
8289fi
8290
8291
8292
8293
8294# Check for command to grab the raw symbol name followed by C symbol from nm.
8295echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8296echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8297if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8298  echo $ECHO_N "(cached) $ECHO_C" >&6
8299else
8300
8301# These are sane defaults that work on at least a few old systems.
8302# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8303
8304# Character class describing NM global symbol codes.
8305symcode='[BCDEGRST]'
8306
8307# Regexp to match symbols that can be accessed directly from C.
8308sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8309
8310# Transform an extracted symbol line into a proper C declaration
8311lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8312
8313# Transform an extracted symbol line into symbol name and symbol address
8314lt_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'"
8315
8316# Define system-specific variables.
8317case $host_os in
8318aix*)
8319  symcode='[BCDT]'
8320  ;;
8321cygwin* | mingw* | pw32*)
8322  symcode='[ABCDGISTW]'
8323  ;;
8324hpux*) # Its linker distinguishes data from code symbols
8325  if test "$host_cpu" = ia64; then
8326    symcode='[ABCDEGRST]'
8327  fi
8328  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8329  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'"
8330  ;;
8331linux*)
8332  if test "$host_cpu" = ia64; then
8333    symcode='[ABCDGIRSTW]'
8334    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8335    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'"
8336  fi
8337  ;;
8338irix* | nonstopux*)
8339  symcode='[BCDEGRST]'
8340  ;;
8341osf*)
8342  symcode='[BCDEGQRST]'
8343  ;;
8344solaris*)
8345  symcode='[BDRT]'
8346  ;;
8347sco3.2v5*)
8348  symcode='[DT]'
8349  ;;
8350sysv4.2uw2*)
8351  symcode='[DT]'
8352  ;;
8353sysv5* | sco5v6* | unixware* | OpenUNIX*)
8354  symcode='[ABDT]'
8355  ;;
8356sysv4)
8357  symcode='[DFNSTU]'
8358  ;;
8359esac
8360
8361# Handle CRLF in mingw tool chain
8362opt_cr=
8363case $build_os in
8364mingw*)
8365  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8366  ;;
8367esac
8368
8369# If we're using GNU nm, then use its standard symbol codes.
8370case `$NM -V 2>&1` in
8371*GNU* | *'with BFD'*)
8372  symcode='[ABCDGIRSTW]' ;;
8373esac
8374
8375# Try without a prefix undercore, then with it.
8376for ac_symprfx in "" "_"; do
8377
8378  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8379  symxfrm="\\1 $ac_symprfx\\2 \\2"
8380
8381  # Write the raw and C identifiers.
8382  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8383
8384  # Check to see that the pipe works correctly.
8385  pipe_works=no
8386
8387  rm -f conftest*
8388  cat > conftest.$ac_ext <<EOF
8389#ifdef __cplusplus
8390extern "C" {
8391#endif
8392char nm_test_var;
8393void nm_test_func(){}
8394#ifdef __cplusplus
8395}
8396#endif
8397int main(){nm_test_var='a';nm_test_func();return(0);}
8398EOF
8399
8400  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401  (eval $ac_compile) 2>&5
8402  ac_status=$?
8403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404  (exit $ac_status); }; then
8405    # Now try to grab the symbols.
8406    nlist=conftest.nm
8407    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8408  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8409  ac_status=$?
8410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411  (exit $ac_status); } && test -s "$nlist"; then
8412      # Try sorting and uniquifying the output.
8413      if sort "$nlist" | uniq > "$nlist"T; then
8414        mv -f "$nlist"T "$nlist"
8415      else
8416        rm -f "$nlist"T
8417      fi
8418
8419      # Make sure that we snagged all the symbols we need.
8420      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8421        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8422          cat <<EOF > conftest.$ac_ext
8423#ifdef __cplusplus
8424extern "C" {
8425#endif
8426
8427EOF
8428          # Now generate the symbol file.
8429          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8430
8431          cat <<EOF >> conftest.$ac_ext
8432#if defined (__STDC__) && __STDC__
8433# define lt_ptr_t void *
8434#else
8435# define lt_ptr_t char *
8436# define const
8437#endif
8438
8439/* The mapping between symbol names and symbols. */
8440const struct {
8441  const char *name;
8442  lt_ptr_t address;
8443}
8444lt_preloaded_symbols[] =
8445{
8446EOF
8447          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8448          cat <<\EOF >> conftest.$ac_ext
8449  {0, (lt_ptr_t) 0}
8450};
8451
8452#ifdef __cplusplus
8453}
8454#endif
8455EOF
8456          # Now try linking the two files.
8457          mv conftest.$ac_objext conftstm.$ac_objext
8458          lt_save_LIBS="$LIBS"
8459          lt_save_CFLAGS="$CFLAGS"
8460          LIBS="conftstm.$ac_objext"
8461          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8462          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8463  (eval $ac_link) 2>&5
8464  ac_status=$?
8465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8467            pipe_works=yes
8468          fi
8469          LIBS="$lt_save_LIBS"
8470          CFLAGS="$lt_save_CFLAGS"
8471        else
8472          echo "cannot find nm_test_func in $nlist" >&5
8473        fi
8474      else
8475        echo "cannot find nm_test_var in $nlist" >&5
8476      fi
8477    else
8478      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8479    fi
8480  else
8481    echo "$progname: failed program was:" >&5
8482    cat conftest.$ac_ext >&5
8483  fi
8484  rm -f conftest* conftst*
8485
8486  # Do not use the global_symbol_pipe unless it works.
8487  if test "$pipe_works" = yes; then
8488    break
8489  else
8490    lt_cv_sys_global_symbol_pipe=
8491  fi
8492done
8493
8494fi
8495
8496if test -z "$lt_cv_sys_global_symbol_pipe"; then
8497  lt_cv_sys_global_symbol_to_cdecl=
8498fi
8499if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8500  echo "$as_me:$LINENO: result: failed" >&5
8501echo "${ECHO_T}failed" >&6
8502else
8503  echo "$as_me:$LINENO: result: ok" >&5
8504echo "${ECHO_T}ok" >&6
8505fi
8506
8507echo "$as_me:$LINENO: checking for objdir" >&5
8508echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8509if test "${lt_cv_objdir+set}" = set; then
8510  echo $ECHO_N "(cached) $ECHO_C" >&6
8511else
8512  rm -f .libs 2>/dev/null
8513mkdir .libs 2>/dev/null
8514if test -d .libs; then
8515  lt_cv_objdir=.libs
8516else
8517  # MS-DOS does not allow filenames that begin with a dot.
8518  lt_cv_objdir=_libs
8519fi
8520rmdir .libs 2>/dev/null
8521fi
8522echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8523echo "${ECHO_T}$lt_cv_objdir" >&6
8524objdir=$lt_cv_objdir
8525
8526
8527
8528
8529
8530case $host_os in
8531aix3*)
8532  # AIX sometimes has problems with the GCC collect2 program.  For some
8533  # reason, if we set the COLLECT_NAMES environment variable, the problems
8534  # vanish in a puff of smoke.
8535  if test "X${COLLECT_NAMES+set}" != Xset; then
8536    COLLECT_NAMES=
8537    export COLLECT_NAMES
8538  fi
8539  ;;
8540esac
8541
8542# Sed substitution that helps us do robust quoting.  It backslashifies
8543# metacharacters that are still active within double-quoted strings.
8544Xsed='sed -e 1s/^X//'
8545sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8546
8547# Same as above, but do not quote variable references.
8548double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8549
8550# Sed substitution to delay expansion of an escaped shell variable in a
8551# double_quote_subst'ed string.
8552delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8553
8554# Sed substitution to avoid accidental globbing in evaled expressions
8555no_glob_subst='s/\*/\\\*/g'
8556
8557# Constants:
8558rm="rm -f"
8559
8560# Global variables:
8561default_ofile=libtool
8562can_build_shared=yes
8563
8564# All known linkers require a `.a' archive for static linking (except MSVC,
8565# which needs '.lib').
8566libext=a
8567ltmain="$ac_aux_dir/ltmain.sh"
8568ofile="$default_ofile"
8569with_gnu_ld="$lt_cv_prog_gnu_ld"
8570
8571if test -n "$ac_tool_prefix"; then
8572  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8573set dummy ${ac_tool_prefix}ar; ac_word=$2
8574echo "$as_me:$LINENO: checking for $ac_word" >&5
8575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8576if test "${ac_cv_prog_AR+set}" = set; then
8577  echo $ECHO_N "(cached) $ECHO_C" >&6
8578else
8579  if test -n "$AR"; then
8580  ac_cv_prog_AR="$AR" # Let the user override the test.
8581else
8582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585  IFS=$as_save_IFS
8586  test -z "$as_dir" && as_dir=.
8587  for ac_exec_ext in '' $ac_executable_extensions; do
8588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8589    ac_cv_prog_AR="${ac_tool_prefix}ar"
8590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8591    break 2
8592  fi
8593done
8594done
8595
8596fi
8597fi
8598AR=$ac_cv_prog_AR
8599if test -n "$AR"; then
8600  echo "$as_me:$LINENO: result: $AR" >&5
8601echo "${ECHO_T}$AR" >&6
8602else
8603  echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605fi
8606
8607fi
8608if test -z "$ac_cv_prog_AR"; then
8609  ac_ct_AR=$AR
8610  # Extract the first word of "ar", so it can be a program name with args.
8611set dummy ar; ac_word=$2
8612echo "$as_me:$LINENO: checking for $ac_word" >&5
8613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8614if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8615  echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617  if test -n "$ac_ct_AR"; then
8618  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8619else
8620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621for as_dir in $PATH
8622do
8623  IFS=$as_save_IFS
8624  test -z "$as_dir" && as_dir=.
8625  for ac_exec_ext in '' $ac_executable_extensions; do
8626  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627    ac_cv_prog_ac_ct_AR="ar"
8628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8629    break 2
8630  fi
8631done
8632done
8633
8634  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8635fi
8636fi
8637ac_ct_AR=$ac_cv_prog_ac_ct_AR
8638if test -n "$ac_ct_AR"; then
8639  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8640echo "${ECHO_T}$ac_ct_AR" >&6
8641else
8642  echo "$as_me:$LINENO: result: no" >&5
8643echo "${ECHO_T}no" >&6
8644fi
8645
8646  AR=$ac_ct_AR
8647else
8648  AR="$ac_cv_prog_AR"
8649fi
8650
8651if test -n "$ac_tool_prefix"; then
8652  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8653set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8654echo "$as_me:$LINENO: checking for $ac_word" >&5
8655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8656if test "${ac_cv_prog_RANLIB+set}" = set; then
8657  echo $ECHO_N "(cached) $ECHO_C" >&6
8658else
8659  if test -n "$RANLIB"; then
8660  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8661else
8662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663for as_dir in $PATH
8664do
8665  IFS=$as_save_IFS
8666  test -z "$as_dir" && as_dir=.
8667  for ac_exec_ext in '' $ac_executable_extensions; do
8668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8671    break 2
8672  fi
8673done
8674done
8675
8676fi
8677fi
8678RANLIB=$ac_cv_prog_RANLIB
8679if test -n "$RANLIB"; then
8680  echo "$as_me:$LINENO: result: $RANLIB" >&5
8681echo "${ECHO_T}$RANLIB" >&6
8682else
8683  echo "$as_me:$LINENO: result: no" >&5
8684echo "${ECHO_T}no" >&6
8685fi
8686
8687fi
8688if test -z "$ac_cv_prog_RANLIB"; then
8689  ac_ct_RANLIB=$RANLIB
8690  # Extract the first word of "ranlib", so it can be a program name with args.
8691set dummy ranlib; ac_word=$2
8692echo "$as_me:$LINENO: checking for $ac_word" >&5
8693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8694if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8695  echo $ECHO_N "(cached) $ECHO_C" >&6
8696else
8697  if test -n "$ac_ct_RANLIB"; then
8698  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8699else
8700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703  IFS=$as_save_IFS
8704  test -z "$as_dir" && as_dir=.
8705  for ac_exec_ext in '' $ac_executable_extensions; do
8706  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707    ac_cv_prog_ac_ct_RANLIB="ranlib"
8708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8709    break 2
8710  fi
8711done
8712done
8713
8714  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8715fi
8716fi
8717ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8718if test -n "$ac_ct_RANLIB"; then
8719  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8720echo "${ECHO_T}$ac_ct_RANLIB" >&6
8721else
8722  echo "$as_me:$LINENO: result: no" >&5
8723echo "${ECHO_T}no" >&6
8724fi
8725
8726  RANLIB=$ac_ct_RANLIB
8727else
8728  RANLIB="$ac_cv_prog_RANLIB"
8729fi
8730
8731if test -n "$ac_tool_prefix"; then
8732  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8733set dummy ${ac_tool_prefix}strip; ac_word=$2
8734echo "$as_me:$LINENO: checking for $ac_word" >&5
8735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8736if test "${ac_cv_prog_STRIP+set}" = set; then
8737  echo $ECHO_N "(cached) $ECHO_C" >&6
8738else
8739  if test -n "$STRIP"; then
8740  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8741else
8742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743for as_dir in $PATH
8744do
8745  IFS=$as_save_IFS
8746  test -z "$as_dir" && as_dir=.
8747  for ac_exec_ext in '' $ac_executable_extensions; do
8748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8749    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8751    break 2
8752  fi
8753done
8754done
8755
8756fi
8757fi
8758STRIP=$ac_cv_prog_STRIP
8759if test -n "$STRIP"; then
8760  echo "$as_me:$LINENO: result: $STRIP" >&5
8761echo "${ECHO_T}$STRIP" >&6
8762else
8763  echo "$as_me:$LINENO: result: no" >&5
8764echo "${ECHO_T}no" >&6
8765fi
8766
8767fi
8768if test -z "$ac_cv_prog_STRIP"; then
8769  ac_ct_STRIP=$STRIP
8770  # Extract the first word of "strip", so it can be a program name with args.
8771set dummy strip; ac_word=$2
8772echo "$as_me:$LINENO: checking for $ac_word" >&5
8773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8774if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8775  echo $ECHO_N "(cached) $ECHO_C" >&6
8776else
8777  if test -n "$ac_ct_STRIP"; then
8778  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8779else
8780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781for as_dir in $PATH
8782do
8783  IFS=$as_save_IFS
8784  test -z "$as_dir" && as_dir=.
8785  for ac_exec_ext in '' $ac_executable_extensions; do
8786  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8787    ac_cv_prog_ac_ct_STRIP="strip"
8788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8789    break 2
8790  fi
8791done
8792done
8793
8794  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8795fi
8796fi
8797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8798if test -n "$ac_ct_STRIP"; then
8799  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8800echo "${ECHO_T}$ac_ct_STRIP" >&6
8801else
8802  echo "$as_me:$LINENO: result: no" >&5
8803echo "${ECHO_T}no" >&6
8804fi
8805
8806  STRIP=$ac_ct_STRIP
8807else
8808  STRIP="$ac_cv_prog_STRIP"
8809fi
8810
8811
8812old_CC="$CC"
8813old_CFLAGS="$CFLAGS"
8814
8815# Set sane defaults for various variables
8816test -z "$AR" && AR=ar
8817test -z "$AR_FLAGS" && AR_FLAGS=cru
8818test -z "$AS" && AS=as
8819test -z "$CC" && CC=cc
8820test -z "$LTCC" && LTCC=$CC
8821test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8822test -z "$DLLTOOL" && DLLTOOL=dlltool
8823test -z "$LD" && LD=ld
8824test -z "$LN_S" && LN_S="ln -s"
8825test -z "$MAGIC_CMD" && MAGIC_CMD=file
8826test -z "$NM" && NM=nm
8827test -z "$SED" && SED=sed
8828test -z "$OBJDUMP" && OBJDUMP=objdump
8829test -z "$RANLIB" && RANLIB=:
8830test -z "$STRIP" && STRIP=:
8831test -z "$ac_objext" && ac_objext=o
8832
8833# Determine commands to create old-style static archives.
8834old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8835old_postinstall_cmds='chmod 644 $oldlib'
8836old_postuninstall_cmds=
8837
8838if test -n "$RANLIB"; then
8839  case $host_os in
8840  openbsd*)
8841    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8842    ;;
8843  *)
8844    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8845    ;;
8846  esac
8847  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8848fi
8849
8850for cc_temp in $compiler""; do
8851  case $cc_temp in
8852    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8853    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8854    \-*) ;;
8855    *) break;;
8856  esac
8857done
8858cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8859
8860
8861# Only perform the check for file, if the check method requires it
8862case $deplibs_check_method in
8863file_magic*)
8864  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8865    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8866echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8867if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8868  echo $ECHO_N "(cached) $ECHO_C" >&6
8869else
8870  case $MAGIC_CMD in
8871[\\/*] |  ?:[\\/]*)
8872  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8873  ;;
8874*)
8875  lt_save_MAGIC_CMD="$MAGIC_CMD"
8876  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8877  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8878  for ac_dir in $ac_dummy; do
8879    IFS="$lt_save_ifs"
8880    test -z "$ac_dir" && ac_dir=.
8881    if test -f $ac_dir/${ac_tool_prefix}file; then
8882      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8883      if test -n "$file_magic_test_file"; then
8884        case $deplibs_check_method in
8885        "file_magic "*)
8886          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8887          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8888          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8889            $EGREP "$file_magic_regex" > /dev/null; then
8890            :
8891          else
8892            cat <<EOF 1>&2
8893
8894*** Warning: the command libtool uses to detect shared libraries,
8895*** $file_magic_cmd, produces output that libtool cannot recognize.
8896*** The result is that libtool may fail to recognize shared libraries
8897*** as such.  This will affect the creation of libtool libraries that
8898*** depend on shared libraries, but programs linked with such libtool
8899*** libraries will work regardless of this problem.  Nevertheless, you
8900*** may want to report the problem to your system manager and/or to
8901*** bug-libtool@gnu.org
8902
8903EOF
8904          fi ;;
8905        esac
8906      fi
8907      break
8908    fi
8909  done
8910  IFS="$lt_save_ifs"
8911  MAGIC_CMD="$lt_save_MAGIC_CMD"
8912  ;;
8913esac
8914fi
8915
8916MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8917if test -n "$MAGIC_CMD"; then
8918  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8919echo "${ECHO_T}$MAGIC_CMD" >&6
8920else
8921  echo "$as_me:$LINENO: result: no" >&5
8922echo "${ECHO_T}no" >&6
8923fi
8924
8925if test -z "$lt_cv_path_MAGIC_CMD"; then
8926  if test -n "$ac_tool_prefix"; then
8927    echo "$as_me:$LINENO: checking for file" >&5
8928echo $ECHO_N "checking for file... $ECHO_C" >&6
8929if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8930  echo $ECHO_N "(cached) $ECHO_C" >&6
8931else
8932  case $MAGIC_CMD in
8933[\\/*] |  ?:[\\/]*)
8934  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8935  ;;
8936*)
8937  lt_save_MAGIC_CMD="$MAGIC_CMD"
8938  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8939  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8940  for ac_dir in $ac_dummy; do
8941    IFS="$lt_save_ifs"
8942    test -z "$ac_dir" && ac_dir=.
8943    if test -f $ac_dir/file; then
8944      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8945      if test -n "$file_magic_test_file"; then
8946        case $deplibs_check_method in
8947        "file_magic "*)
8948          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8949          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8950          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8951            $EGREP "$file_magic_regex" > /dev/null; then
8952            :
8953          else
8954            cat <<EOF 1>&2
8955
8956*** Warning: the command libtool uses to detect shared libraries,
8957*** $file_magic_cmd, produces output that libtool cannot recognize.
8958*** The result is that libtool may fail to recognize shared libraries
8959*** as such.  This will affect the creation of libtool libraries that
8960*** depend on shared libraries, but programs linked with such libtool
8961*** libraries will work regardless of this problem.  Nevertheless, you
8962*** may want to report the problem to your system manager and/or to
8963*** bug-libtool@gnu.org
8964
8965EOF
8966          fi ;;
8967        esac
8968      fi
8969      break
8970    fi
8971  done
8972  IFS="$lt_save_ifs"
8973  MAGIC_CMD="$lt_save_MAGIC_CMD"
8974  ;;
8975esac
8976fi
8977
8978MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8979if test -n "$MAGIC_CMD"; then
8980  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8981echo "${ECHO_T}$MAGIC_CMD" >&6
8982else
8983  echo "$as_me:$LINENO: result: no" >&5
8984echo "${ECHO_T}no" >&6
8985fi
8986
8987  else
8988    MAGIC_CMD=:
8989  fi
8990fi
8991
8992  fi
8993  ;;
8994esac
8995
8996enable_dlopen=no
8997enable_win32_dll=no
8998
8999# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9000if test "${enable_libtool_lock+set}" = set; then
9001  enableval="$enable_libtool_lock"
9002
9003fi;
9004test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9005
9006
9007# Check whether --with-pic or --without-pic was given.
9008if test "${with_pic+set}" = set; then
9009  withval="$with_pic"
9010  pic_mode="$withval"
9011else
9012  pic_mode=default
9013fi;
9014test -z "$pic_mode" && pic_mode=default
9015
9016# Use C for the default configuration in the libtool script
9017tagname=
9018lt_save_CC="$CC"
9019ac_ext=c
9020ac_cpp='$CPP $CPPFLAGS'
9021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9023ac_compiler_gnu=$ac_cv_c_compiler_gnu
9024
9025
9026# Source file extension for C test sources.
9027ac_ext=c
9028
9029# Object file extension for compiled C test sources.
9030objext=o
9031objext=$objext
9032
9033# Code to be used in simple compile tests
9034lt_simple_compile_test_code="int some_variable = 0;\n"
9035
9036# Code to be used in simple link tests
9037lt_simple_link_test_code='int main(){return(0);}\n'
9038
9039
9040# If no C compiler was specified, use CC.
9041LTCC=${LTCC-"$CC"}
9042
9043# If no C compiler flags were specified, use CFLAGS.
9044LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9045
9046# Allow CC to be a program name with arguments.
9047compiler=$CC
9048
9049
9050# save warnings/boilerplate of simple test code
9051ac_outfile=conftest.$ac_objext
9052printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9053eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9054_lt_compiler_boilerplate=`cat conftest.err`
9055$rm conftest*
9056
9057ac_outfile=conftest.$ac_objext
9058printf "$lt_simple_link_test_code" >conftest.$ac_ext
9059eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9060_lt_linker_boilerplate=`cat conftest.err`
9061$rm conftest*
9062
9063
9064## CAVEAT EMPTOR:
9065## There is no encapsulation within the following macros, do not change
9066## the running order or otherwise move them around unless you know exactly
9067## what you are doing...
9068
9069lt_prog_compiler_no_builtin_flag=
9070
9071if test "$GCC" = yes; then
9072  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9073
9074
9075echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9076echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9077if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9078  echo $ECHO_N "(cached) $ECHO_C" >&6
9079else
9080  lt_cv_prog_compiler_rtti_exceptions=no
9081  ac_outfile=conftest.$ac_objext
9082   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9083   lt_compiler_flag="-fno-rtti -fno-exceptions"
9084   # Insert the option either (1) after the last *FLAGS variable, or
9085   # (2) before a word containing "conftest.", or (3) at the end.
9086   # Note that $ac_compile itself does not contain backslashes and begins
9087   # with a dollar sign (not a hyphen), so the echo should work correctly.
9088   # The option is referenced via a variable to avoid confusing sed.
9089   lt_compile=`echo "$ac_compile" | $SED \
9090   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9091   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9092   -e 's:$: $lt_compiler_flag:'`
9093   (eval echo "\"\$as_me:9093: $lt_compile\"" >&5)
9094   (eval "$lt_compile" 2>conftest.err)
9095   ac_status=$?
9096   cat conftest.err >&5
9097   echo "$as_me:9097: \$? = $ac_status" >&5
9098   if (exit $ac_status) && test -s "$ac_outfile"; then
9099     # The compiler can only warn and ignore the option if not recognized
9100     # So say no if there are warnings other than the usual output.
9101     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9102     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9103     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9104       lt_cv_prog_compiler_rtti_exceptions=yes
9105     fi
9106   fi
9107   $rm conftest*
9108
9109fi
9110echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9111echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9112
9113if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9114    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9115else
9116    :
9117fi
9118
9119fi
9120
9121lt_prog_compiler_wl=
9122lt_prog_compiler_pic=
9123lt_prog_compiler_static=
9124
9125echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9126echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9127
9128  if test "$GCC" = yes; then
9129    lt_prog_compiler_wl='-Wl,'
9130    lt_prog_compiler_static='-static'
9131
9132    case $host_os in
9133      aix*)
9134      # All AIX code is PIC.
9135      if test "$host_cpu" = ia64; then
9136        # AIX 5 now supports IA64 processor
9137        lt_prog_compiler_static='-Bstatic'
9138      fi
9139      ;;
9140
9141    amigaos*)
9142      # FIXME: we need at least 68020 code to build shared libraries, but
9143      # adding the `-m68020' flag to GCC prevents building anything better,
9144      # like `-m68040'.
9145      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9146      ;;
9147
9148    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9149      # PIC is the default for these OSes.
9150      ;;
9151
9152    mingw* | pw32* | os2*)
9153      # This hack is so that the source file can tell whether it is being
9154      # built for inclusion in a dll (and should export symbols for example).
9155      lt_prog_compiler_pic='-DDLL_EXPORT'
9156      ;;
9157
9158    darwin* | rhapsody*)
9159      # PIC is the default on this platform
9160      # Common symbols not allowed in MH_DYLIB files
9161      lt_prog_compiler_pic='-fno-common'
9162      ;;
9163
9164    interix3*)
9165      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9166      # Instead, we relocate shared libraries at runtime.
9167      ;;
9168
9169    msdosdjgpp*)
9170      # Just because we use GCC doesn't mean we suddenly get shared libraries
9171      # on systems that don't support them.
9172      lt_prog_compiler_can_build_shared=no
9173      enable_shared=no
9174      ;;
9175
9176    sysv4*MP*)
9177      if test -d /usr/nec; then
9178        lt_prog_compiler_pic=-Kconform_pic
9179      fi
9180      ;;
9181
9182    hpux*)
9183      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9184      # not for PA HP-UX.
9185      case $host_cpu in
9186      hppa*64*|ia64*)
9187        # +Z the default
9188        ;;
9189      *)
9190        lt_prog_compiler_pic='-fPIC'
9191        ;;
9192      esac
9193      ;;
9194
9195    *)
9196      lt_prog_compiler_pic='-fPIC'
9197      ;;
9198    esac
9199  else
9200    # PORTME Check for flag to pass linker flags through the system compiler.
9201    case $host_os in
9202    aix*)
9203      lt_prog_compiler_wl='-Wl,'
9204      if test "$host_cpu" = ia64; then
9205        # AIX 5 now supports IA64 processor
9206        lt_prog_compiler_static='-Bstatic'
9207      else
9208        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9209      fi
9210      ;;
9211      darwin*)
9212        # PIC is the default on this platform
9213        # Common symbols not allowed in MH_DYLIB files
9214       case $cc_basename in
9215         xlc*)
9216         lt_prog_compiler_pic='-qnocommon'
9217         lt_prog_compiler_wl='-Wl,'
9218         ;;
9219       esac
9220       ;;
9221
9222    mingw* | pw32* | os2*)
9223      # This hack is so that the source file can tell whether it is being
9224      # built for inclusion in a dll (and should export symbols for example).
9225      lt_prog_compiler_pic='-DDLL_EXPORT'
9226      ;;
9227
9228    hpux9* | hpux10* | hpux11*)
9229      lt_prog_compiler_wl='-Wl,'
9230      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9231      # not for PA HP-UX.
9232      case $host_cpu in
9233      hppa*64*|ia64*)
9234        # +Z the default
9235        ;;
9236      *)
9237        lt_prog_compiler_pic='+Z'
9238        ;;
9239      esac
9240      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9241      lt_prog_compiler_static='${wl}-a ${wl}archive'
9242      ;;
9243
9244    irix5* | irix6* | nonstopux*)
9245      lt_prog_compiler_wl='-Wl,'
9246      # PIC (with -KPIC) is the default.
9247      lt_prog_compiler_static='-non_shared'
9248      ;;
9249
9250    newsos6)
9251      lt_prog_compiler_pic='-KPIC'
9252      lt_prog_compiler_static='-Bstatic'
9253      ;;
9254
9255    linux*)
9256      case $cc_basename in
9257      icc* | ecc*)
9258        lt_prog_compiler_wl='-Wl,'
9259        lt_prog_compiler_pic='-KPIC'
9260        lt_prog_compiler_static='-static'
9261        ;;
9262      pgcc* | pgf77* | pgf90* | pgf95*)
9263        # Portland Group compilers (*not* the Pentium gcc compiler,
9264        # which looks to be a dead project)
9265        lt_prog_compiler_wl='-Wl,'
9266        lt_prog_compiler_pic='-fpic'
9267        lt_prog_compiler_static='-Bstatic'
9268        ;;
9269      ccc*)
9270        lt_prog_compiler_wl='-Wl,'
9271        # All Alpha code is PIC.
9272        lt_prog_compiler_static='-non_shared'
9273        ;;
9274      esac
9275      ;;
9276
9277    osf3* | osf4* | osf5*)
9278      lt_prog_compiler_wl='-Wl,'
9279      # All OSF/1 code is PIC.
9280      lt_prog_compiler_static='-non_shared'
9281      ;;
9282
9283    solaris*)
9284      lt_prog_compiler_pic='-KPIC'
9285      lt_prog_compiler_static='-Bstatic'
9286      case $cc_basename in
9287      f77* | f90* | f95*)
9288        lt_prog_compiler_wl='-Qoption ld ';;
9289      *)
9290        lt_prog_compiler_wl='-Wl,';;
9291      esac
9292      ;;
9293
9294    sunos4*)
9295      lt_prog_compiler_wl='-Qoption ld '
9296      lt_prog_compiler_pic='-PIC'
9297      lt_prog_compiler_static='-Bstatic'
9298      ;;
9299
9300    sysv4 | sysv4.2uw2* | sysv4.3*)
9301      lt_prog_compiler_wl='-Wl,'
9302      lt_prog_compiler_pic='-KPIC'
9303      lt_prog_compiler_static='-Bstatic'
9304      ;;
9305
9306    sysv4*MP*)
9307      if test -d /usr/nec ;then
9308        lt_prog_compiler_pic='-Kconform_pic'
9309        lt_prog_compiler_static='-Bstatic'
9310      fi
9311      ;;
9312
9313    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9314      lt_prog_compiler_wl='-Wl,'
9315      lt_prog_compiler_pic='-KPIC'
9316      lt_prog_compiler_static='-Bstatic'
9317      ;;
9318
9319    unicos*)
9320      lt_prog_compiler_wl='-Wl,'
9321      lt_prog_compiler_can_build_shared=no
9322      ;;
9323
9324    uts4*)
9325      lt_prog_compiler_pic='-pic'
9326      lt_prog_compiler_static='-Bstatic'
9327      ;;
9328
9329    *)
9330      lt_prog_compiler_can_build_shared=no
9331      ;;
9332    esac
9333  fi
9334
9335echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9336echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9337
9338#
9339# Check to make sure the PIC flag actually works.
9340#
9341if test -n "$lt_prog_compiler_pic"; then
9342
9343echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9344echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9345if test "${lt_prog_compiler_pic_works+set}" = set; then
9346  echo $ECHO_N "(cached) $ECHO_C" >&6
9347else
9348  lt_prog_compiler_pic_works=no
9349  ac_outfile=conftest.$ac_objext
9350   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9351   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9352   # Insert the option either (1) after the last *FLAGS variable, or
9353   # (2) before a word containing "conftest.", or (3) at the end.
9354   # Note that $ac_compile itself does not contain backslashes and begins
9355   # with a dollar sign (not a hyphen), so the echo should work correctly.
9356   # The option is referenced via a variable to avoid confusing sed.
9357   lt_compile=`echo "$ac_compile" | $SED \
9358   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9359   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9360   -e 's:$: $lt_compiler_flag:'`
9361   (eval echo "\"\$as_me:9361: $lt_compile\"" >&5)
9362   (eval "$lt_compile" 2>conftest.err)
9363   ac_status=$?
9364   cat conftest.err >&5
9365   echo "$as_me:9365: \$? = $ac_status" >&5
9366   if (exit $ac_status) && test -s "$ac_outfile"; then
9367     # The compiler can only warn and ignore the option if not recognized
9368     # So say no if there are warnings other than the usual output.
9369     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9370     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9371     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9372       lt_prog_compiler_pic_works=yes
9373     fi
9374   fi
9375   $rm conftest*
9376
9377fi
9378echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9379echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9380
9381if test x"$lt_prog_compiler_pic_works" = xyes; then
9382    case $lt_prog_compiler_pic in
9383     "" | " "*) ;;
9384     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9385     esac
9386else
9387    lt_prog_compiler_pic=
9388     lt_prog_compiler_can_build_shared=no
9389fi
9390
9391fi
9392case $host_os in
9393  # For platforms which do not support PIC, -DPIC is meaningless:
9394  *djgpp*)
9395    lt_prog_compiler_pic=
9396    ;;
9397  *)
9398    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9399    ;;
9400esac
9401
9402#
9403# Check to make sure the static flag actually works.
9404#
9405wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9406echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9407echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9408if test "${lt_prog_compiler_static_works+set}" = set; then
9409  echo $ECHO_N "(cached) $ECHO_C" >&6
9410else
9411  lt_prog_compiler_static_works=no
9412   save_LDFLAGS="$LDFLAGS"
9413   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9414   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9415   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9416     # The linker can only warn and ignore the option if not recognized
9417     # So say no if there are warnings
9418     if test -s conftest.err; then
9419       # Append any errors to the config.log.
9420       cat conftest.err 1>&5
9421       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9422       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9423       if diff conftest.exp conftest.er2 >/dev/null; then
9424         lt_prog_compiler_static_works=yes
9425       fi
9426     else
9427       lt_prog_compiler_static_works=yes
9428     fi
9429   fi
9430   $rm conftest*
9431   LDFLAGS="$save_LDFLAGS"
9432
9433fi
9434echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9435echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9436
9437if test x"$lt_prog_compiler_static_works" = xyes; then
9438    :
9439else
9440    lt_prog_compiler_static=
9441fi
9442
9443
9444echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9445echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9446if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9447  echo $ECHO_N "(cached) $ECHO_C" >&6
9448else
9449  lt_cv_prog_compiler_c_o=no
9450   $rm -r conftest 2>/dev/null
9451   mkdir conftest
9452   cd conftest
9453   mkdir out
9454   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9455
9456   lt_compiler_flag="-o out/conftest2.$ac_objext"
9457   # Insert the option either (1) after the last *FLAGS variable, or
9458   # (2) before a word containing "conftest.", or (3) at the end.
9459   # Note that $ac_compile itself does not contain backslashes and begins
9460   # with a dollar sign (not a hyphen), so the echo should work correctly.
9461   lt_compile=`echo "$ac_compile" | $SED \
9462   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9463   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9464   -e 's:$: $lt_compiler_flag:'`
9465   (eval echo "\"\$as_me:9465: $lt_compile\"" >&5)
9466   (eval "$lt_compile" 2>out/conftest.err)
9467   ac_status=$?
9468   cat out/conftest.err >&5
9469   echo "$as_me:9469: \$? = $ac_status" >&5
9470   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9471   then
9472     # The compiler can only warn and ignore the option if not recognized
9473     # So say no if there are warnings
9474     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9475     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9476     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9477       lt_cv_prog_compiler_c_o=yes
9478     fi
9479   fi
9480   chmod u+w . 2>&5
9481   $rm conftest*
9482   # SGI C++ compiler will create directory out/ii_files/ for
9483   # template instantiation
9484   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9485   $rm out/* && rmdir out
9486   cd ..
9487   rmdir conftest
9488   $rm conftest*
9489
9490fi
9491echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9492echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9493
9494
9495hard_links="nottested"
9496if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9497  # do not overwrite the value of need_locks provided by the user
9498  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9499echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9500  hard_links=yes
9501  $rm conftest*
9502  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9503  touch conftest.a
9504  ln conftest.a conftest.b 2>&5 || hard_links=no
9505  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9506  echo "$as_me:$LINENO: result: $hard_links" >&5
9507echo "${ECHO_T}$hard_links" >&6
9508  if test "$hard_links" = no; then
9509    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9510echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9511    need_locks=warn
9512  fi
9513else
9514  need_locks=no
9515fi
9516
9517echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9518echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9519
9520  runpath_var=
9521  allow_undefined_flag=
9522  enable_shared_with_static_runtimes=no
9523  archive_cmds=
9524  archive_expsym_cmds=
9525  old_archive_From_new_cmds=
9526  old_archive_from_expsyms_cmds=
9527  export_dynamic_flag_spec=
9528  whole_archive_flag_spec=
9529  thread_safe_flag_spec=
9530  hardcode_libdir_flag_spec=
9531  hardcode_libdir_flag_spec_ld=
9532  hardcode_libdir_separator=
9533  hardcode_direct=no
9534  hardcode_minus_L=no
9535  hardcode_shlibpath_var=unsupported
9536  link_all_deplibs=unknown
9537  hardcode_automatic=no
9538  module_cmds=
9539  module_expsym_cmds=
9540  always_export_symbols=no
9541  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9542  # include_expsyms should be a list of space-separated symbols to be *always*
9543  # included in the symbol list
9544  include_expsyms=
9545  # exclude_expsyms can be an extended regexp of symbols to exclude
9546  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9547  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9548  # as well as any symbol that contains `d'.
9549  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9550  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9551  # platforms (ab)use it in PIC code, but their linkers get confused if
9552  # the symbol is explicitly referenced.  Since portable code cannot
9553  # rely on this symbol name, it's probably fine to never include it in
9554  # preloaded symbol tables.
9555  extract_expsyms_cmds=
9556  # Just being paranoid about ensuring that cc_basename is set.
9557  for cc_temp in $compiler""; do
9558  case $cc_temp in
9559    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9560    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9561    \-*) ;;
9562    *) break;;
9563  esac
9564done
9565cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9566
9567  case $host_os in
9568  cygwin* | mingw* | pw32*)
9569    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9570    # When not using gcc, we currently assume that we are using
9571    # Microsoft Visual C++.
9572    if test "$GCC" != yes; then
9573      with_gnu_ld=no
9574    fi
9575    ;;
9576  interix*)
9577    # we just hope/assume this is gcc and not c89 (= MSVC++)
9578    with_gnu_ld=yes
9579    ;;
9580  openbsd*)
9581    with_gnu_ld=no
9582    ;;
9583  esac
9584
9585  ld_shlibs=yes
9586  if test "$with_gnu_ld" = yes; then
9587    # If archive_cmds runs LD, not CC, wlarc should be empty
9588    wlarc='${wl}'
9589
9590    # Set some defaults for GNU ld with shared library support. These
9591    # are reset later if shared libraries are not supported. Putting them
9592    # here allows them to be overridden if necessary.
9593    runpath_var=LD_RUN_PATH
9594    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9595    export_dynamic_flag_spec='${wl}--export-dynamic'
9596    # ancient GNU ld didn't support --whole-archive et. al.
9597    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9598        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9599      else
9600        whole_archive_flag_spec=
9601    fi
9602    supports_anon_versioning=no
9603    case `$LD -v 2>/dev/null` in
9604      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9605      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9606      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9607      *\ 2.11.*) ;; # other 2.11 versions
9608      *) supports_anon_versioning=yes ;;
9609    esac
9610
9611    # See if GNU ld supports shared libraries.
9612    case $host_os in
9613    aix3* | aix4* | aix5*)
9614      # On AIX/PPC, the GNU linker is very broken
9615      if test "$host_cpu" != ia64; then
9616        ld_shlibs=no
9617        cat <<EOF 1>&2
9618
9619*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9620*** to be unable to reliably create shared libraries on AIX.
9621*** Therefore, libtool is disabling shared libraries support.  If you
9622*** really care for shared libraries, you may want to modify your PATH
9623*** so that a non-GNU linker is found, and then restart.
9624
9625EOF
9626      fi
9627      ;;
9628
9629    amigaos*)
9630      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)'
9631      hardcode_libdir_flag_spec='-L$libdir'
9632      hardcode_minus_L=yes
9633
9634      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9635      # that the semantics of dynamic libraries on AmigaOS, at least up
9636      # to version 4, is to share data among multiple programs linked
9637      # with the same dynamic library.  Since this doesn't match the
9638      # behavior of shared libraries on other platforms, we can't use
9639      # them.
9640      ld_shlibs=no
9641      ;;
9642
9643    beos*)
9644      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9645        allow_undefined_flag=unsupported
9646        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9647        # support --undefined.  This deserves some investigation.  FIXME
9648        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649      else
9650        ld_shlibs=no
9651      fi
9652      ;;
9653
9654    cygwin* | mingw* | pw32*)
9655      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9656      # as there is no search path for DLLs.
9657      hardcode_libdir_flag_spec='-L$libdir'
9658      allow_undefined_flag=unsupported
9659      always_export_symbols=no
9660      enable_shared_with_static_runtimes=yes
9661      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9662
9663      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9664        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9665        # If the export-symbols file already is a .def file (1st line
9666        # is EXPORTS), use it as is; otherwise, prepend...
9667        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9668          cp $export_symbols $output_objdir/$soname.def;
9669        else
9670          echo EXPORTS > $output_objdir/$soname.def;
9671          cat $export_symbols >> $output_objdir/$soname.def;
9672        fi~
9673        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9674      else
9675        ld_shlibs=no
9676      fi
9677      ;;
9678
9679    interix3*)
9680      hardcode_direct=no
9681      hardcode_shlibpath_var=no
9682      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9683      export_dynamic_flag_spec='${wl}-E'
9684      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9685      # Instead, shared libraries are loaded at an image base (0x10000000 by
9686      # default) and relocated if they conflict, which is a slow very memory
9687      # consuming and fragmenting process.  To avoid this, we pick a random,
9688      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9689      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9690      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9691      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'
9692      ;;
9693
9694    linux*)
9695      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9696        tmp_addflag=
9697        case $cc_basename,$host_cpu in
9698        pgcc*)                          # Portland Group C compiler
9699          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'
9700          tmp_addflag=' $pic_flag'
9701          ;;
9702        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9703          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'
9704          tmp_addflag=' $pic_flag -Mnomain' ;;
9705        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9706          tmp_addflag=' -i_dynamic' ;;
9707        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9708          tmp_addflag=' -i_dynamic -nofor_main' ;;
9709        ifc* | ifort*)                  # Intel Fortran compiler
9710          tmp_addflag=' -nofor_main' ;;
9711        esac
9712        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9713
9714        if test $supports_anon_versioning = yes; then
9715          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9716  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9717  $echo "local: *; };" >> $output_objdir/$libname.ver~
9718          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9719        fi
9720      else
9721        ld_shlibs=no
9722      fi
9723      ;;
9724
9725    netbsd*)
9726      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9727        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9728        wlarc=
9729      else
9730        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9732      fi
9733      ;;
9734
9735    solaris*)
9736      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9737        ld_shlibs=no
9738        cat <<EOF 1>&2
9739
9740*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9741*** create shared libraries on Solaris systems.  Therefore, libtool
9742*** is disabling shared libraries support.  We urge you to upgrade GNU
9743*** binutils to release 2.9.1 or newer.  Another option is to modify
9744*** your PATH or compiler configuration so that the native linker is
9745*** used, and then restart.
9746
9747EOF
9748      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9749        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9751      else
9752        ld_shlibs=no
9753      fi
9754      ;;
9755
9756    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9757      case `$LD -v 2>&1` in
9758        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9759        ld_shlibs=no
9760        cat <<_LT_EOF 1>&2
9761
9762*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9763*** reliably create shared libraries on SCO systems.  Therefore, libtool
9764*** is disabling shared libraries support.  We urge you to upgrade GNU
9765*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9766*** your PATH or compiler configuration so that the native linker is
9767*** used, and then restart.
9768
9769_LT_EOF
9770        ;;
9771        *)
9772          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9773            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9774            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9775            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9776          else
9777            ld_shlibs=no
9778          fi
9779        ;;
9780      esac
9781      ;;
9782
9783    sunos4*)
9784      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9785      wlarc=
9786      hardcode_direct=yes
9787      hardcode_shlibpath_var=no
9788      ;;
9789
9790    *)
9791      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9792        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9794      else
9795        ld_shlibs=no
9796      fi
9797      ;;
9798    esac
9799
9800    if test "$ld_shlibs" = no; then
9801      runpath_var=
9802      hardcode_libdir_flag_spec=
9803      export_dynamic_flag_spec=
9804      whole_archive_flag_spec=
9805    fi
9806  else
9807    # PORTME fill in a description of your system's linker (not GNU ld)
9808    case $host_os in
9809    aix3*)
9810      allow_undefined_flag=unsupported
9811      always_export_symbols=yes
9812      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'
9813      # Note: this linker hardcodes the directories in LIBPATH if there
9814      # are no directories specified by -L.
9815      hardcode_minus_L=yes
9816      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9817        # Neither direct hardcoding nor static linking is supported with a
9818        # broken collect2.
9819        hardcode_direct=unsupported
9820      fi
9821      ;;
9822
9823    aix4* | aix5*)
9824      if test "$host_cpu" = ia64; then
9825        # On IA64, the linker does run time linking by default, so we don't
9826        # have to do anything special.
9827        aix_use_runtimelinking=no
9828        exp_sym_flag='-Bexport'
9829        no_entry_flag=""
9830      else
9831        # If we're using GNU nm, then we don't want the "-C" option.
9832        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9833        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9834          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'
9835        else
9836          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'
9837        fi
9838        aix_use_runtimelinking=no
9839
9840        # Test if we are trying to use run time linking or normal
9841        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9842        # need to do runtime linking.
9843        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9844          for ld_flag in $LDFLAGS; do
9845          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9846            aix_use_runtimelinking=yes
9847            break
9848          fi
9849          done
9850          ;;
9851        esac
9852
9853        exp_sym_flag='-bexport'
9854        no_entry_flag='-bnoentry'
9855      fi
9856
9857      # When large executables or shared objects are built, AIX ld can
9858      # have problems creating the table of contents.  If linking a library
9859      # or program results in "error TOC overflow" add -mminimal-toc to
9860      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9861      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9862
9863      archive_cmds=''
9864      hardcode_direct=yes
9865      hardcode_libdir_separator=':'
9866      link_all_deplibs=yes
9867
9868      if test "$GCC" = yes; then
9869        case $host_os in aix4.[012]|aix4.[012].*)
9870        # We only want to do this on AIX 4.2 and lower, the check
9871        # below for broken collect2 doesn't work under 4.3+
9872          collect2name=`${CC} -print-prog-name=collect2`
9873          if test -f "$collect2name" && \
9874           strings "$collect2name" | grep resolve_lib_name >/dev/null
9875          then
9876          # We have reworked collect2
9877          hardcode_direct=yes
9878          else
9879          # We have old collect2
9880          hardcode_direct=unsupported
9881          # It fails to find uninstalled libraries when the uninstalled
9882          # path is not listed in the libpath.  Setting hardcode_minus_L
9883          # to unsupported forces relinking
9884          hardcode_minus_L=yes
9885          hardcode_libdir_flag_spec='-L$libdir'
9886          hardcode_libdir_separator=
9887          fi
9888          ;;
9889        esac
9890        shared_flag='-shared'
9891        if test "$aix_use_runtimelinking" = yes; then
9892          shared_flag="$shared_flag "'${wl}-G'
9893        fi
9894      else
9895        # not using gcc
9896        if test "$host_cpu" = ia64; then
9897        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9898        # chokes on -Wl,-G. The following line is correct:
9899          shared_flag='-G'
9900        else
9901          if test "$aix_use_runtimelinking" = yes; then
9902            shared_flag='${wl}-G'
9903          else
9904            shared_flag='${wl}-bM:SRE'
9905          fi
9906        fi
9907      fi
9908
9909      # It seems that -bexpall does not export symbols beginning with
9910      # underscore (_), so it is better to generate a list of symbols to export.
9911      always_export_symbols=yes
9912      if test "$aix_use_runtimelinking" = yes; then
9913        # Warning - without using the other runtime loading flags (-brtl),
9914        # -berok will link without error, but may produce a broken library.
9915        allow_undefined_flag='-berok'
9916       # Determine the default libpath from the value encoded in an empty executable.
9917       cat >conftest.$ac_ext <<_ACEOF
9918/* confdefs.h.  */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h.  */
9923
9924int
9925main ()
9926{
9927
9928  ;
9929  return 0;
9930}
9931_ACEOF
9932rm -f conftest.$ac_objext conftest$ac_exeext
9933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934  (eval $ac_link) 2>conftest.er1
9935  ac_status=$?
9936  grep -v '^ *+' conftest.er1 >conftest.err
9937  rm -f conftest.er1
9938  cat conftest.err >&5
9939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940  (exit $ac_status); } &&
9941         { ac_try='test -z "$ac_c_werror_flag"
9942                         || test ! -s conftest.err'
9943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944  (eval $ac_try) 2>&5
9945  ac_status=$?
9946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947  (exit $ac_status); }; } &&
9948         { ac_try='test -s conftest$ac_exeext'
9949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950  (eval $ac_try) 2>&5
9951  ac_status=$?
9952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953  (exit $ac_status); }; }; then
9954
9955aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9956}'`
9957# Check for a 64-bit object if we didn't find anything.
9958if 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; }
9959}'`; fi
9960else
9961  echo "$as_me: failed program was:" >&5
9962sed 's/^/| /' conftest.$ac_ext >&5
9963
9964fi
9965rm -f conftest.err conftest.$ac_objext \
9966      conftest$ac_exeext conftest.$ac_ext
9967if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9968
9969       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9970        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"
9971       else
9972        if test "$host_cpu" = ia64; then
9973          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9974          allow_undefined_flag="-z nodefs"
9975          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"
9976        else
9977         # Determine the default libpath from the value encoded in an empty executable.
9978         cat >conftest.$ac_ext <<_ACEOF
9979/* confdefs.h.  */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>conftest.$ac_ext <<_ACEOF
9983/* end confdefs.h.  */
9984
9985int
9986main ()
9987{
9988
9989  ;
9990  return 0;
9991}
9992_ACEOF
9993rm -f conftest.$ac_objext conftest$ac_exeext
9994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9995  (eval $ac_link) 2>conftest.er1
9996  ac_status=$?
9997  grep -v '^ *+' conftest.er1 >conftest.err
9998  rm -f conftest.er1
9999  cat conftest.err >&5
10000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001  (exit $ac_status); } &&
10002         { ac_try='test -z "$ac_c_werror_flag"
10003                         || test ! -s conftest.err'
10004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005  (eval $ac_try) 2>&5
10006  ac_status=$?
10007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008  (exit $ac_status); }; } &&
10009         { ac_try='test -s conftest$ac_exeext'
10010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011  (eval $ac_try) 2>&5
10012  ac_status=$?
10013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014  (exit $ac_status); }; }; then
10015
10016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10017}'`
10018# Check for a 64-bit object if we didn't find anything.
10019if 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; }
10020}'`; fi
10021else
10022  echo "$as_me: failed program was:" >&5
10023sed 's/^/| /' conftest.$ac_ext >&5
10024
10025fi
10026rm -f conftest.err conftest.$ac_objext \
10027      conftest$ac_exeext conftest.$ac_ext
10028if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10029
10030         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10031          # Warning - without using the other run time loading flags,
10032          # -berok will link without error, but may produce a broken library.
10033          no_undefined_flag=' ${wl}-bernotok'
10034          allow_undefined_flag=' ${wl}-berok'
10035          # Exported symbols can be pulled into shared objects from archives
10036          whole_archive_flag_spec='$convenience'
10037          archive_cmds_need_lc=yes
10038          # This is similar to how AIX traditionally builds its shared libraries.
10039          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'
10040        fi
10041      fi
10042      ;;
10043
10044    amigaos*)
10045      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)'
10046      hardcode_libdir_flag_spec='-L$libdir'
10047      hardcode_minus_L=yes
10048      # see comment about different semantics on the GNU ld section
10049      ld_shlibs=no
10050      ;;
10051
10052    bsdi[45]*)
10053      export_dynamic_flag_spec=-rdynamic
10054      ;;
10055
10056    cygwin* | mingw* | pw32*)
10057      # When not using gcc, we currently assume that we are using
10058      # Microsoft Visual C++.
10059      # hardcode_libdir_flag_spec is actually meaningless, as there is
10060      # no search path for DLLs.
10061      hardcode_libdir_flag_spec=' '
10062      allow_undefined_flag=unsupported
10063      # Tell ltmain to make .lib files, not .a files.
10064      libext=lib
10065      # Tell ltmain to make .dll files, not .so files.
10066      shrext_cmds=".dll"
10067      # FIXME: Setting linknames here is a bad hack.
10068      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10069      # The linker will automatically build a .lib file if we build a DLL.
10070      old_archive_From_new_cmds='true'
10071      # FIXME: Should let the user specify the lib program.
10072      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10073      fix_srcfile_path='`cygpath -w "$srcfile"`'
10074      enable_shared_with_static_runtimes=yes
10075      ;;
10076
10077    darwin* | rhapsody*)
10078      case $host_os in
10079        rhapsody* | darwin1.[012])
10080         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10081         ;;
10082       *) # Darwin 1.3 on
10083         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10084           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10085         else
10086           case ${MACOSX_DEPLOYMENT_TARGET} in
10087             10.[012])
10088               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10089               ;;
10090             10.*)
10091               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10092               ;;
10093           esac
10094         fi
10095         ;;
10096      esac
10097      archive_cmds_need_lc=no
10098      hardcode_direct=no
10099      hardcode_automatic=yes
10100      hardcode_shlibpath_var=unsupported
10101      whole_archive_flag_spec=''
10102      link_all_deplibs=yes
10103    if test "$GCC" = yes ; then
10104        output_verbose_link_cmd='echo'
10105        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10106      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10107      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10108      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}'
10109      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}'
10110    else
10111      case $cc_basename in
10112        xlc*)
10113         output_verbose_link_cmd='echo'
10114         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10115         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10116          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10117         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}'
10118          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}'
10119          ;;
10120       *)
10121         ld_shlibs=no
10122          ;;
10123      esac
10124    fi
10125      ;;
10126
10127    dgux*)
10128      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129      hardcode_libdir_flag_spec='-L$libdir'
10130      hardcode_shlibpath_var=no
10131      ;;
10132
10133    freebsd1*)
10134      ld_shlibs=no
10135      ;;
10136
10137    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10138    # support.  Future versions do this automatically, but an explicit c++rt0.o
10139    # does not break anything, and helps significantly (at the cost of a little
10140    # extra space).
10141    freebsd2.2*)
10142      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10143      hardcode_libdir_flag_spec='-R$libdir'
10144      hardcode_direct=yes
10145      hardcode_shlibpath_var=no
10146      ;;
10147
10148    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10149    freebsd2*)
10150      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10151      hardcode_direct=yes
10152      hardcode_minus_L=yes
10153      hardcode_shlibpath_var=no
10154      ;;
10155
10156    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10157    freebsd* | kfreebsd*-gnu | dragonfly*)
10158      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10159      hardcode_libdir_flag_spec='-R$libdir'
10160      hardcode_direct=yes
10161      hardcode_shlibpath_var=no
10162      ;;
10163
10164    hpux9*)
10165      if test "$GCC" = yes; then
10166        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'
10167      else
10168        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'
10169      fi
10170      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10171      hardcode_libdir_separator=:
10172      hardcode_direct=yes
10173
10174      # hardcode_minus_L: Not really in the search PATH,
10175      # but as the default location of the library.
10176      hardcode_minus_L=yes
10177      export_dynamic_flag_spec='${wl}-E'
10178      ;;
10179
10180    hpux10*)
10181      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10182        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10183      else
10184        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10185      fi
10186      if test "$with_gnu_ld" = no; then
10187        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10188        hardcode_libdir_separator=:
10189
10190        hardcode_direct=yes
10191        export_dynamic_flag_spec='${wl}-E'
10192
10193        # hardcode_minus_L: Not really in the search PATH,
10194        # but as the default location of the library.
10195        hardcode_minus_L=yes
10196      fi
10197      ;;
10198
10199    hpux11*)
10200      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10201        case $host_cpu in
10202        hppa*64*)
10203          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10204          ;;
10205        ia64*)
10206          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10207          ;;
10208        *)
10209          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10210          ;;
10211        esac
10212      else
10213        case $host_cpu in
10214        hppa*64*)
10215          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10216          ;;
10217        ia64*)
10218          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10219          ;;
10220        *)
10221          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10222          ;;
10223        esac
10224      fi
10225      if test "$with_gnu_ld" = no; then
10226        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10227        hardcode_libdir_separator=:
10228
10229        case $host_cpu in
10230        hppa*64*|ia64*)
10231          hardcode_libdir_flag_spec_ld='+b $libdir'
10232          hardcode_direct=no
10233          hardcode_shlibpath_var=no
10234          ;;
10235        *)
10236          hardcode_direct=yes
10237          export_dynamic_flag_spec='${wl}-E'
10238
10239          # hardcode_minus_L: Not really in the search PATH,
10240          # but as the default location of the library.
10241          hardcode_minus_L=yes
10242          ;;
10243        esac
10244      fi
10245      ;;
10246
10247    irix5* | irix6* | nonstopux*)
10248      if test "$GCC" = yes; then
10249        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'
10250      else
10251        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'
10252        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10253      fi
10254      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10255      hardcode_libdir_separator=:
10256      link_all_deplibs=yes
10257      ;;
10258
10259    netbsd*)
10260      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10261        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10262      else
10263        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10264      fi
10265      hardcode_libdir_flag_spec='-R$libdir'
10266      hardcode_direct=yes
10267      hardcode_shlibpath_var=no
10268      ;;
10269
10270    newsos6)
10271      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10272      hardcode_direct=yes
10273      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10274      hardcode_libdir_separator=:
10275      hardcode_shlibpath_var=no
10276      ;;
10277
10278    openbsd*)
10279      hardcode_direct=yes
10280      hardcode_shlibpath_var=no
10281      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10282        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10283        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10284        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10285        export_dynamic_flag_spec='${wl}-E'
10286      else
10287       case $host_os in
10288         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10289           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10290           hardcode_libdir_flag_spec='-R$libdir'
10291           ;;
10292         *)
10293           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10294           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10295           ;;
10296       esac
10297      fi
10298      ;;
10299
10300    os2*)
10301      hardcode_libdir_flag_spec='-L$libdir'
10302      hardcode_minus_L=yes
10303      allow_undefined_flag=unsupported
10304      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'
10305      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10306      ;;
10307
10308    osf3*)
10309      if test "$GCC" = yes; then
10310        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10311        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'
10312      else
10313        allow_undefined_flag=' -expect_unresolved \*'
10314        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'
10315      fi
10316      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10317      hardcode_libdir_separator=:
10318      ;;
10319
10320    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10321      if test "$GCC" = yes; then
10322        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10323        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'
10324        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10325      else
10326        allow_undefined_flag=' -expect_unresolved \*'
10327        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'
10328        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10329        $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'
10330
10331        # Both c and cxx compiler support -rpath directly
10332        hardcode_libdir_flag_spec='-rpath $libdir'
10333      fi
10334      hardcode_libdir_separator=:
10335      ;;
10336
10337    solaris*)
10338      no_undefined_flag=' -z text'
10339      if test "$GCC" = yes; then
10340        wlarc='${wl}'
10341        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10342        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10343          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10344      else
10345        wlarc=''
10346        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10347        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10348        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10349      fi
10350      hardcode_libdir_flag_spec='-R$libdir'
10351      hardcode_shlibpath_var=no
10352      case $host_os in
10353      solaris2.[0-5] | solaris2.[0-5].*) ;;
10354      *)
10355        # The compiler driver will combine linker options so we
10356        # cannot just pass the convience library names through
10357        # without $wl, iff we do not link with $LD.
10358        # Luckily, gcc supports the same syntax we need for Sun Studio.
10359        # Supported since Solaris 2.6 (maybe 2.5.1?)
10360        case $wlarc in
10361        '')
10362          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10363        *)
10364          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' ;;
10365        esac ;;
10366      esac
10367      link_all_deplibs=yes
10368      ;;
10369
10370    sunos4*)
10371      if test "x$host_vendor" = xsequent; then
10372        # Use $CC to link under sequent, because it throws in some extra .o
10373        # files that make .init and .fini sections work.
10374        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10375      else
10376        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10377      fi
10378      hardcode_libdir_flag_spec='-L$libdir'
10379      hardcode_direct=yes
10380      hardcode_minus_L=yes
10381      hardcode_shlibpath_var=no
10382      ;;
10383
10384    sysv4)
10385      case $host_vendor in
10386        sni)
10387          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10388          hardcode_direct=yes # is this really true???
10389        ;;
10390        siemens)
10391          ## LD is ld it makes a PLAMLIB
10392          ## CC just makes a GrossModule.
10393          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10394          reload_cmds='$CC -r -o $output$reload_objs'
10395          hardcode_direct=no
10396        ;;
10397        motorola)
10398          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10400        ;;
10401      esac
10402      runpath_var='LD_RUN_PATH'
10403      hardcode_shlibpath_var=no
10404      ;;
10405
10406    sysv4.3*)
10407      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10408      hardcode_shlibpath_var=no
10409      export_dynamic_flag_spec='-Bexport'
10410      ;;
10411
10412    sysv4*MP*)
10413      if test -d /usr/nec; then
10414        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10415        hardcode_shlibpath_var=no
10416        runpath_var=LD_RUN_PATH
10417        hardcode_runpath_var=yes
10418        ld_shlibs=yes
10419      fi
10420      ;;
10421
10422    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10423      no_undefined_flag='${wl}-z,text'
10424      archive_cmds_need_lc=no
10425      hardcode_shlibpath_var=no
10426      runpath_var='LD_RUN_PATH'
10427
10428      if test "$GCC" = yes; then
10429        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10430        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10431      else
10432        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10433        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10434      fi
10435      ;;
10436
10437    sysv5* | sco3.2v5* | sco5v6*)
10438      # Note: We can NOT use -z defs as we might desire, because we do not
10439      # link with -lc, and that would cause any symbols used from libc to
10440      # always be unresolved, which means just about no library would
10441      # ever link correctly.  If we're not using GNU ld we use -z text
10442      # though, which does catch some bad symbols but isn't as heavy-handed
10443      # as -z defs.
10444      no_undefined_flag='${wl}-z,text'
10445      allow_undefined_flag='${wl}-z,nodefs'
10446      archive_cmds_need_lc=no
10447      hardcode_shlibpath_var=no
10448      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10449      hardcode_libdir_separator=':'
10450      link_all_deplibs=yes
10451      export_dynamic_flag_spec='${wl}-Bexport'
10452      runpath_var='LD_RUN_PATH'
10453
10454      if test "$GCC" = yes; then
10455        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10456        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10457      else
10458        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10459        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10460      fi
10461      ;;
10462
10463    uts4*)
10464      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10465      hardcode_libdir_flag_spec='-L$libdir'
10466      hardcode_shlibpath_var=no
10467      ;;
10468
10469    *)
10470      ld_shlibs=no
10471      ;;
10472    esac
10473  fi
10474
10475echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10476echo "${ECHO_T}$ld_shlibs" >&6
10477test "$ld_shlibs" = no && can_build_shared=no
10478
10479#
10480# Do we need to explicitly link libc?
10481#
10482case "x$archive_cmds_need_lc" in
10483x|xyes)
10484  # Assume -lc should be added
10485  archive_cmds_need_lc=yes
10486
10487  if test "$enable_shared" = yes && test "$GCC" = yes; then
10488    case $archive_cmds in
10489    *'~'*)
10490      # FIXME: we may have to deal with multi-command sequences.
10491      ;;
10492    '$CC '*)
10493      # Test whether the compiler implicitly links with -lc since on some
10494      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10495      # to ld, don't add -lc before -lgcc.
10496      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10497echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10498      $rm conftest*
10499      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10500
10501      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502  (eval $ac_compile) 2>&5
10503  ac_status=$?
10504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505  (exit $ac_status); } 2>conftest.err; then
10506        soname=conftest
10507        lib=conftest
10508        libobjs=conftest.$ac_objext
10509        deplibs=
10510        wl=$lt_prog_compiler_wl
10511        pic_flag=$lt_prog_compiler_pic
10512        compiler_flags=-v
10513        linker_flags=-v
10514        verstring=
10515        output_objdir=.
10516        libname=conftest
10517        lt_save_allow_undefined_flag=$allow_undefined_flag
10518        allow_undefined_flag=
10519        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10520  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10521  ac_status=$?
10522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523  (exit $ac_status); }
10524        then
10525          archive_cmds_need_lc=no
10526        else
10527          archive_cmds_need_lc=yes
10528        fi
10529        allow_undefined_flag=$lt_save_allow_undefined_flag
10530      else
10531        cat conftest.err 1>&5
10532      fi
10533      $rm conftest*
10534      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10535echo "${ECHO_T}$archive_cmds_need_lc" >&6
10536      ;;
10537    esac
10538  fi
10539  ;;
10540esac
10541
10542echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10543echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10544library_names_spec=
10545libname_spec='lib$name'
10546soname_spec=
10547shrext_cmds=".so"
10548postinstall_cmds=
10549postuninstall_cmds=
10550finish_cmds=
10551finish_eval=
10552shlibpath_var=
10553shlibpath_overrides_runpath=unknown
10554version_type=none
10555dynamic_linker="$host_os ld.so"
10556sys_lib_dlsearch_path_spec="/lib /usr/lib"
10557if test "$GCC" = yes; then
10558  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10559  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10560    # if the path contains ";" then we assume it to be the separator
10561    # otherwise default to the standard path separator (i.e. ":") - it is
10562    # assumed that no part of a normal pathname contains ";" but that should
10563    # okay in the real world where ";" in dirpaths is itself problematic.
10564    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10565  else
10566    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10567  fi
10568else
10569  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10570fi
10571need_lib_prefix=unknown
10572hardcode_into_libs=no
10573
10574# when you set need_version to no, make sure it does not cause -set_version
10575# flags to be left without arguments
10576need_version=unknown
10577
10578case $host_os in
10579aix3*)
10580  version_type=linux
10581  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10582  shlibpath_var=LIBPATH
10583
10584  # AIX 3 has no versioning support, so we append a major version to the name.
10585  soname_spec='${libname}${release}${shared_ext}$major'
10586  ;;
10587
10588aix4* | aix5*)
10589  version_type=linux
10590  need_lib_prefix=no
10591  need_version=no
10592  hardcode_into_libs=yes
10593  if test "$host_cpu" = ia64; then
10594    # AIX 5 supports IA64
10595    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10596    shlibpath_var=LD_LIBRARY_PATH
10597  else
10598    # With GCC up to 2.95.x, collect2 would create an import file
10599    # for dependence libraries.  The import file would start with
10600    # the line `#! .'.  This would cause the generated library to
10601    # depend on `.', always an invalid library.  This was fixed in
10602    # development snapshots of GCC prior to 3.0.
10603    case $host_os in
10604      aix4 | aix4.[01] | aix4.[01].*)
10605      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10606           echo ' yes '
10607           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10608        :
10609      else
10610        can_build_shared=no
10611      fi
10612      ;;
10613    esac
10614    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10615    # soname into executable. Probably we can add versioning support to
10616    # collect2, so additional links can be useful in future.
10617    if test "$aix_use_runtimelinking" = yes; then
10618      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10619      # instead of lib<name>.a to let people know that these are not
10620      # typical AIX shared libraries.
10621      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622    else
10623      # We preserve .a as extension for shared libraries through AIX4.2
10624      # and later when we are not doing run time linking.
10625      library_names_spec='${libname}${release}.a $libname.a'
10626      soname_spec='${libname}${release}${shared_ext}$major'
10627    fi
10628    shlibpath_var=LIBPATH
10629  fi
10630  ;;
10631
10632amigaos*)
10633  library_names_spec='$libname.ixlibrary $libname.a'
10634  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10635  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'
10636  ;;
10637
10638beos*)
10639  library_names_spec='${libname}${shared_ext}'
10640  dynamic_linker="$host_os ld.so"
10641  shlibpath_var=LIBRARY_PATH
10642  ;;
10643
10644bsdi[45]*)
10645  version_type=linux
10646  need_version=no
10647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648  soname_spec='${libname}${release}${shared_ext}$major'
10649  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10650  shlibpath_var=LD_LIBRARY_PATH
10651  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10652  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10653  # the default ld.so.conf also contains /usr/contrib/lib and
10654  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10655  # libtool to hard-code these into programs
10656  ;;
10657
10658cygwin* | mingw* | pw32*)
10659  version_type=windows
10660  shrext_cmds=".dll"
10661  need_version=no
10662  need_lib_prefix=no
10663
10664  case $GCC,$host_os in
10665  yes,cygwin* | yes,mingw* | yes,pw32*)
10666    library_names_spec='$libname.dll.a'
10667    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10668    postinstall_cmds='base_file=`basename \${file}`~
10669      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10670      dldir=$destdir/`dirname \$dlpath`~
10671      test -d \$dldir || mkdir -p \$dldir~
10672      $install_prog $dir/$dlname \$dldir/$dlname~
10673      chmod a+x \$dldir/$dlname'
10674    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10675      dlpath=$dir/\$dldll~
10676       $rm \$dlpath'
10677    shlibpath_overrides_runpath=yes
10678
10679    case $host_os in
10680    cygwin*)
10681      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10682      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10683      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10684      ;;
10685    mingw*)
10686      # MinGW DLLs use traditional 'lib' prefix
10687      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10688      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10689      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10690        # It is most probably a Windows format PATH printed by
10691        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10692        # path with ; separators, and with drive letters. We can handle the
10693        # drive letters (cygwin fileutils understands them), so leave them,
10694        # especially as we might pass files found there to a mingw objdump,
10695        # which wouldn't understand a cygwinified path. Ahh.
10696        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10697      else
10698        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10699      fi
10700      ;;
10701    pw32*)
10702      # pw32 DLLs use 'pw' prefix rather than 'lib'
10703      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10704      ;;
10705    esac
10706    ;;
10707
10708  *)
10709    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10710    ;;
10711  esac
10712  dynamic_linker='Win32 ld.exe'
10713  # FIXME: first we should search . and the directory the executable is in
10714  shlibpath_var=PATH
10715  ;;
10716
10717darwin* | rhapsody*)
10718  dynamic_linker="$host_os dyld"
10719  version_type=darwin
10720  need_lib_prefix=no
10721  need_version=no
10722  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10723  soname_spec='${libname}${release}${major}$shared_ext'
10724  shlibpath_overrides_runpath=yes
10725  shlibpath_var=DYLD_LIBRARY_PATH
10726  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10727  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10728  if test "$GCC" = yes; then
10729    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"`
10730  else
10731    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10732  fi
10733  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10734  ;;
10735
10736dgux*)
10737  version_type=linux
10738  need_lib_prefix=no
10739  need_version=no
10740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10741  soname_spec='${libname}${release}${shared_ext}$major'
10742  shlibpath_var=LD_LIBRARY_PATH
10743  ;;
10744
10745freebsd1*)
10746  dynamic_linker=no
10747  ;;
10748
10749kfreebsd*-gnu)
10750  version_type=linux
10751  need_lib_prefix=no
10752  need_version=no
10753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10754  soname_spec='${libname}${release}${shared_ext}$major'
10755  shlibpath_var=LD_LIBRARY_PATH
10756  shlibpath_overrides_runpath=no
10757  hardcode_into_libs=yes
10758  dynamic_linker='GNU ld.so'
10759  ;;
10760
10761freebsd* | dragonfly*)
10762  # DragonFly does not have aout.  When/if they implement a new
10763  # versioning mechanism, adjust this.
10764  if test -x /usr/bin/objformat; then
10765    objformat=`/usr/bin/objformat`
10766  else
10767    case $host_os in
10768    freebsd[123]*) objformat=aout ;;
10769    *) objformat=elf ;;
10770    esac
10771  fi
10772  version_type=freebsd-$objformat
10773  case $version_type in
10774    freebsd-elf*)
10775      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10776      need_version=no
10777      need_lib_prefix=no
10778      ;;
10779    freebsd-*)
10780      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10781