source: branches/0.9/Bonmin/configure @ 830

Last change on this file since 830 was 830, checked in by pbonami, 12 years ago

Merge some changes to branches/0.9

  • Property svn:executable set to *
File size: 824.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Bonmin 0.9.
4#
5# Report bugs to <coin-bonmin@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 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package BONMIN 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='Bonmin'
431PACKAGE_TARNAME='bonmin'
432PACKAGE_VERSION='0.9'
433PACKAGE_STRING='Bonmin 0.9'
434PACKAGE_BUGREPORT='coin-bonmin@list.coin-or.org'
435
436ac_unique_file="src/CbcBonmin/BonCbc.hpp"
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS 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 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS CBCSRCDIR CBCOBJDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE DYLPSRCDIR DYLPOBJDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE IPOPTSRCDIR IPOPTOBJDIR COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE OSISRCDIR OSIOBJDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE SYMSRCDIR SYMOBJDIR COIN_HAS_SYM_TRUE COIN_HAS_SYM_FALSE VOLSRCDIR VOLOBJDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE BCPSRCDIR BCPOBJDIR COIN_HAS_BCP_TRUE COIN_HAS_BCP_FALSE COUENNESRCDIR COUENNEOBJDIR COIN_HAS_COUENNE_TRUE COIN_HAS_COUENNE_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_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 ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE BUILD_FP_TRUE BUILD_FP_FALSE COIN_HAS_FILTERSQP_TRUE COIN_HAS_FILTERSQP_FALSE FILTERSQPLIBADD ASTYLE ASTYLEFLAGS 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_ADD_FFLAGS_set=${ADD_FFLAGS+set}
981ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
982ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
983ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
984ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
985ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
986ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
987ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
988ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
989ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
990ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
991ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
992ac_env_F77_set=${F77+set}
993ac_env_F77_value=$F77
994ac_cv_env_F77_set=${F77+set}
995ac_cv_env_F77_value=$F77
996ac_env_FFLAGS_set=${FFLAGS+set}
997ac_env_FFLAGS_value=$FFLAGS
998ac_cv_env_FFLAGS_set=${FFLAGS+set}
999ac_cv_env_FFLAGS_value=$FFLAGS
1000ac_env_MPIF77_set=${MPIF77+set}
1001ac_env_MPIF77_value=$MPIF77
1002ac_cv_env_MPIF77_set=${MPIF77+set}
1003ac_cv_env_MPIF77_value=$MPIF77
1004ac_env_CPP_set=${CPP+set}
1005ac_env_CPP_value=$CPP
1006ac_cv_env_CPP_set=${CPP+set}
1007ac_cv_env_CPP_value=$CPP
1008ac_env_CXXCPP_set=${CXXCPP+set}
1009ac_env_CXXCPP_value=$CXXCPP
1010ac_cv_env_CXXCPP_set=${CXXCPP+set}
1011ac_cv_env_CXXCPP_value=$CXXCPP
1012
1013#
1014# Report the --help message.
1015#
1016if test "$ac_init_help" = "long"; then
1017  # Omit some internal or obsolete options to make the list less imposing.
1018  # This message is too long to be a string in the A/UX 3.1 sh.
1019  cat <<_ACEOF
1020\`configure' configures Bonmin 0.9 to adapt to many kinds of systems.
1021
1022Usage: $0 [OPTION]... [VAR=VALUE]...
1023
1024To assign environment variables (e.g., CC, CFLAGS...), specify them as
1025VAR=VALUE.  See below for descriptions of some of the useful variables.
1026
1027Defaults for the options are specified in brackets.
1028
1029Configuration:
1030  -h, --help              display this help and exit
1031      --help=short        display options specific to this package
1032      --help=recursive    display the short help of all the included packages
1033  -V, --version           display version information and exit
1034  -q, --quiet, --silent   do not print \`checking...' messages
1035      --cache-file=FILE   cache test results in FILE [disabled]
1036  -C, --config-cache      alias for \`--cache-file=config.cache'
1037  -n, --no-create         do not create output files
1038      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1039
1040_ACEOF
1041
1042  cat <<_ACEOF
1043Installation directories:
1044  --prefix=PREFIX         install architecture-independent files in PREFIX
1045                          [$ac_default_prefix]
1046  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1047                          [PREFIX]
1048
1049By default, \`make install' will install all the files in
1050\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1051an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1052for instance \`--prefix=\$HOME'.
1053
1054For better control, use the options below.
1055
1056Fine tuning of the installation directories:
1057  --bindir=DIR           user executables [EPREFIX/bin]
1058  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1059  --libexecdir=DIR       program executables [EPREFIX/libexec]
1060  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1061  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1062  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1063  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1064  --libdir=DIR           object code libraries [EPREFIX/lib]
1065  --includedir=DIR       C header files [PREFIX/include]
1066  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1067  --infodir=DIR          info documentation [PREFIX/info]
1068  --mandir=DIR           man documentation [PREFIX/man]
1069_ACEOF
1070
1071  cat <<\_ACEOF
1072
1073Program names:
1074  --program-prefix=PREFIX            prepend PREFIX to installed program names
1075  --program-suffix=SUFFIX            append SUFFIX to installed program names
1076  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1077
1078System types:
1079  --build=BUILD     configure for building on BUILD [guessed]
1080  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1081_ACEOF
1082fi
1083
1084if test -n "$ac_init_help"; then
1085  case $ac_init_help in
1086     short | recursive ) echo "Configuration of Bonmin 0.9:";;
1087   esac
1088  cat <<\_ACEOF
1089
1090Optional Features:
1091  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1092  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1093  --enable-debug          compile all projects with debug options tests
1094  --enable-doscompile     Under Cygwin, compile so that executables run under
1095                          DOS. Set to mingw to use gcc/g++/ld with
1096                          -mno-cygwin. Set to msvc to use cl/link. Default
1097                          when mentioned: mingw. Default when not mentioned:
1098                          disabled.
1099  --enable-static[=PKGS]
1100                          build static libraries [default=no]
1101  --disable-dependency-tracking  speeds up one-time build
1102  --enable-dependency-tracking   do not reject slow dependency extractors
1103  --enable-maintainer-mode  enable make rules and dependencies not useful
1104                          (and sometimes confusing) to the casual installer
1105  --enable-shared[=PKGS]
1106                          build shared libraries [default=yes]
1107  --enable-fast-install[=PKGS]
1108                          optimize for fast installation [default=yes]
1109  --disable-libtool-lock  avoid locking (might break parallel builds)
1110  --enable-cplex-libcheck use disable-cplex-libcheck to skip the
1111                          link check at configuration time
1112  --enable-glpk-libcheck use disable-glpk-libcheck to skip the
1113                          link check at configuration time
1114  --enable-fortmp-libcheck
1115                          use disable-fortmp-libcheck to skip the
1116                          link check at configuration time
1117  --enable-mosek-libcheck use disable-mosek-libcheck to skip the
1118                          link check at configuration time
1119  --enable-osl-libcheck use disable-osl-libcheck to skip the link
1120                          check at configuration time
1121  --enable-soplex-libcheck
1122                          use disable-soplex-libcheck to skip the
1123                          link check at configuration time
1124  --enable-xpress-libcheck
1125                          use disable-xpress-libcheck to skip the
1126                          link check at configuration time
1127
1128Optional Packages:
1129  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1130  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1131  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1132  --with-pic              try to use only PIC/non-PIC objects [default=use
1133                          both]
1134  --with-tags[=TAGS]
1135                          include additional configurations [automatic]
1136  --with-cplex-incdir specify the header file directory for library Cplex
1137  --with-cplex-lib specify the flags used to link with the library Cplex
1138  --with-glpk-incdir specify the header file directory for library Glpk
1139  --with-glpk-lib specify the flags used to link with the library Glpk
1140  --with-fortmp-incdir specify the header file directory for library FortMP
1141  --with-fortmp-lib specify the flags used to link with the library FortMP
1142  --with-mosek-incdir specify the header file directory for library Mosek
1143  --with-mosek-lib specify the flags used to link with the library Mosek
1144  --with-osl-incdir specify the header file directory for library Osl
1145  --with-osl-lib specify the flags used to link with the library Osl
1146  --with-soplex-incdir specify the header file directory for library Soplex
1147  --with-soplex-lib specify the flags used to link with the library Soplex
1148  --with-xpress-incdir specify the header file directory for library Xpress
1149  --with-xpress-lib specify the flags used to link with the library Xpress
1150  --with-asldir           specify path to AMPL solver directory (or BUILD for
1151                          compilation, or "no" for disabling AMPL)
1152  --with-filtersqp        specify library for FilterSQP (or BUILD for
1153                          compilation)
1154
1155Some influential environment variables:
1156  CDEFS       Additional -D flags to be used when compiling C code.
1157  ADD_CFLAGS  Additional C compiler options
1158  DBG_CFLAGS  Debug C compiler options
1159  OPT_CFLAGS  Optimize C compiler options
1160  CC          C compiler command
1161  CFLAGS      C compiler flags
1162  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1163              nonstandard directory <lib dir>
1164  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1165              headers in a nonstandard directory <include dir>
1166  MPICC       C MPI Compiler
1167  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1168  ADD_CXXFLAGS
1169              Additional C++ compiler options
1170  DBG_CXXFLAGS
1171              Debug C++ compiler options
1172  OPT_CXXFLAGS
1173              Optimize C++ compiler options
1174  CXX         C++ compiler command
1175  CXXFLAGS    C++ compiler flags
1176  MPICXX      C++ MPI Compiler
1177  ADD_FFLAGS  Additional Fortran compiler options
1178  DBG_FFLAGS  Debug Fortran compiler options
1179  OPT_FFLAGS  Optimize Fortran compiler options
1180  F77         Fortran 77 compiler command
1181  FFLAGS      Fortran 77 compiler flags
1182  MPIF77      Fortran MPI Compiler
1183  CPP         C preprocessor
1184  CXXCPP      C++ preprocessor
1185
1186Use these variables to override the choices made by `configure' or to help
1187it to find libraries and programs with nonstandard names/locations.
1188
1189Report bugs to <coin-bonmin@list.coin-or.org>.
1190_ACEOF
1191fi
1192
1193if test "$ac_init_help" = "recursive"; then
1194  # If there are subdirs, report their specific --help.
1195  ac_popdir=`pwd`
1196  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1197    test -d $ac_dir || continue
1198    ac_builddir=.
1199
1200if test "$ac_dir" != .; then
1201  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1202  # A "../" for each directory in $ac_dir_suffix.
1203  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1204else
1205  ac_dir_suffix= ac_top_builddir=
1206fi
1207
1208case $srcdir in
1209  .)  # No --srcdir option.  We are building in place.
1210    ac_srcdir=.
1211    if test -z "$ac_top_builddir"; then
1212       ac_top_srcdir=.
1213    else
1214       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1215    fi ;;
1216  [\\/]* | ?:[\\/]* )  # Absolute path.
1217    ac_srcdir=$srcdir$ac_dir_suffix;
1218    ac_top_srcdir=$srcdir ;;
1219  *) # Relative path.
1220    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1221    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1222esac
1223
1224# Do not use `cd foo && pwd` to compute absolute paths, because
1225# the directories may not exist.
1226case `pwd` in
1227.) ac_abs_builddir="$ac_dir";;
1228*)
1229  case "$ac_dir" in
1230  .) ac_abs_builddir=`pwd`;;
1231  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1232  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1233  esac;;
1234esac
1235case $ac_abs_builddir in
1236.) ac_abs_top_builddir=${ac_top_builddir}.;;
1237*)
1238  case ${ac_top_builddir}. in
1239  .) ac_abs_top_builddir=$ac_abs_builddir;;
1240  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1241  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1242  esac;;
1243esac
1244case $ac_abs_builddir in
1245.) ac_abs_srcdir=$ac_srcdir;;
1246*)
1247  case $ac_srcdir in
1248  .) ac_abs_srcdir=$ac_abs_builddir;;
1249  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1250  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1251  esac;;
1252esac
1253case $ac_abs_builddir in
1254.) ac_abs_top_srcdir=$ac_top_srcdir;;
1255*)
1256  case $ac_top_srcdir in
1257  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1258  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1259  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1260  esac;;
1261esac
1262
1263    cd $ac_dir
1264    # Check for guested configure; otherwise get Cygnus style configure.
1265    if test -f $ac_srcdir/configure.gnu; then
1266      echo
1267      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1268    elif test -f $ac_srcdir/configure; then
1269      echo
1270      $SHELL $ac_srcdir/configure  --help=recursive
1271    elif test -f $ac_srcdir/configure.ac ||
1272           test -f $ac_srcdir/configure.in; then
1273      echo
1274      $ac_configure --help
1275    else
1276      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1277    fi
1278    cd $ac_popdir
1279  done
1280fi
1281
1282test -n "$ac_init_help" && exit 0
1283if $ac_init_version; then
1284  cat <<\_ACEOF
1285Bonmin configure 0.9
1286generated by GNU Autoconf 2.59
1287
1288Copyright (C) 2003 Free Software Foundation, Inc.
1289This configure script is free software; the Free Software Foundation
1290gives unlimited permission to copy, distribute and modify it.
1291
1292
1293Copyright 2006 International Business Machines and others.
1294All Rights Reserved.
1295This file is part of the open source package BONMIN which is distributed
1296under the Common Public License.
1297_ACEOF
1298  exit 0
1299fi
1300exec 5>config.log
1301cat >&5 <<_ACEOF
1302This file contains any messages produced by compilers while
1303running configure, to aid debugging if configure makes a mistake.
1304
1305It was created by Bonmin $as_me 0.9, which was
1306generated by GNU Autoconf 2.59.  Invocation command line was
1307
1308  $ $0 $@
1309
1310_ACEOF
1311{
1312cat <<_ASUNAME
1313## --------- ##
1314## Platform. ##
1315## --------- ##
1316
1317hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1318uname -m = `(uname -m) 2>/dev/null || echo unknown`
1319uname -r = `(uname -r) 2>/dev/null || echo unknown`
1320uname -s = `(uname -s) 2>/dev/null || echo unknown`
1321uname -v = `(uname -v) 2>/dev/null || echo unknown`
1322
1323/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1324/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1325
1326/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1327/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1328/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1329hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1330/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1331/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1332/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1333
1334_ASUNAME
1335
1336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1337for as_dir in $PATH
1338do
1339  IFS=$as_save_IFS
1340  test -z "$as_dir" && as_dir=.
1341  echo "PATH: $as_dir"
1342done
1343
1344} >&5
1345
1346cat >&5 <<_ACEOF
1347
1348
1349## ----------- ##
1350## Core tests. ##
1351## ----------- ##
1352
1353_ACEOF
1354
1355
1356# Keep a trace of the command line.
1357# Strip out --no-create and --no-recursion so they do not pile up.
1358# Strip out --silent because we don't want to record it for future runs.
1359# Also quote any args containing shell meta-characters.
1360# Make two passes to allow for proper duplicate-argument suppression.
1361ac_configure_args=
1362ac_configure_args0=
1363ac_configure_args1=
1364ac_sep=
1365ac_must_keep_next=false
1366for ac_pass in 1 2
1367do
1368  for ac_arg
1369  do
1370    case $ac_arg in
1371    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1372    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1373    | -silent | --silent | --silen | --sile | --sil)
1374      continue ;;
1375    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1376      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1377    esac
1378    case $ac_pass in
1379    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1380    2)
1381      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1382      if test $ac_must_keep_next = true; then
1383        ac_must_keep_next=false # Got value, back to normal.
1384      else
1385        case $ac_arg in
1386          *=* | --config-cache | -C | -disable-* | --disable-* \
1387          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1388          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1389          | -with-* | --with-* | -without-* | --without-* | --x)
1390            case "$ac_configure_args0 " in
1391              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1392            esac
1393            ;;
1394          -* ) ac_must_keep_next=true ;;
1395        esac
1396      fi
1397      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1398      # Get rid of the leading space.
1399      ac_sep=" "
1400      ;;
1401    esac
1402  done
1403done
1404$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1405$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1406
1407# When interrupted or exit'd, cleanup temporary files, and complete
1408# config.log.  We remove comments because anyway the quotes in there
1409# would cause problems or look ugly.
1410# WARNING: Be sure not to use single quotes in there, as some shells,
1411# such as our DU 5.0 friend, will then `close' the trap.
1412trap 'exit_status=$?
1413  # Save into config.log some information that might help in debugging.
1414  {
1415    echo
1416
1417    cat <<\_ASBOX
1418## ---------------- ##
1419## Cache variables. ##
1420## ---------------- ##
1421_ASBOX
1422    echo
1423    # The following way of writing the cache mishandles newlines in values,
1424{
1425  (set) 2>&1 |
1426    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1427    *ac_space=\ *)
1428      sed -n \
1429        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1430          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1431      ;;
1432    *)
1433      sed -n \
1434        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1435      ;;
1436    esac;
1437}
1438    echo
1439
1440    cat <<\_ASBOX
1441## ----------------- ##
1442## Output variables. ##
1443## ----------------- ##
1444_ASBOX
1445    echo
1446    for ac_var in $ac_subst_vars
1447    do
1448      eval ac_val=$`echo $ac_var`
1449      echo "$ac_var='"'"'$ac_val'"'"'"
1450    done | sort
1451    echo
1452
1453    if test -n "$ac_subst_files"; then
1454      cat <<\_ASBOX
1455## ------------- ##
1456## Output files. ##
1457## ------------- ##
1458_ASBOX
1459      echo
1460      for ac_var in $ac_subst_files
1461      do
1462        eval ac_val=$`echo $ac_var`
1463        echo "$ac_var='"'"'$ac_val'"'"'"
1464      done | sort
1465      echo
1466    fi
1467
1468    if test -s confdefs.h; then
1469      cat <<\_ASBOX
1470## ----------- ##
1471## confdefs.h. ##
1472## ----------- ##
1473_ASBOX
1474      echo
1475      sed "/^$/d" confdefs.h | sort
1476      echo
1477    fi
1478    test "$ac_signal" != 0 &&
1479      echo "$as_me: caught signal $ac_signal"
1480    echo "$as_me: exit $exit_status"
1481  } >&5
1482  rm -f core *.core &&
1483  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1484    exit $exit_status
1485     ' 0
1486for ac_signal in 1 2 13 15; do
1487  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1488done
1489ac_signal=0
1490
1491# confdefs.h avoids OS command line length limits that DEFS can exceed.
1492rm -rf conftest* confdefs.h
1493# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1494echo >confdefs.h
1495
1496# Predefined preprocessor variables.
1497
1498cat >>confdefs.h <<_ACEOF
1499#define PACKAGE_NAME "$PACKAGE_NAME"
1500_ACEOF
1501
1502
1503cat >>confdefs.h <<_ACEOF
1504#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1505_ACEOF
1506
1507
1508cat >>confdefs.h <<_ACEOF
1509#define PACKAGE_VERSION "$PACKAGE_VERSION"
1510_ACEOF
1511
1512
1513cat >>confdefs.h <<_ACEOF
1514#define PACKAGE_STRING "$PACKAGE_STRING"
1515_ACEOF
1516
1517
1518cat >>confdefs.h <<_ACEOF
1519#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1520_ACEOF
1521
1522
1523# Let the site file select an alternate cache file if it wants to.
1524# Prefer explicitly selected file to automatically selected ones.
1525if test -z "$CONFIG_SITE"; then
1526  if test "x$prefix" != xNONE; then
1527    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1528  else
1529    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1530  fi
1531fi
1532for ac_site_file in $CONFIG_SITE; do
1533  if test -r "$ac_site_file"; then
1534    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1535echo "$as_me: loading site script $ac_site_file" >&6;}
1536    sed 's/^/| /' "$ac_site_file" >&5
1537    . "$ac_site_file"
1538  fi
1539done
1540
1541if test -r "$cache_file"; then
1542  # Some versions of bash will fail to source /dev/null (special
1543  # files actually), so we avoid doing that.
1544  if test -f "$cache_file"; then
1545    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1546echo "$as_me: loading cache $cache_file" >&6;}
1547    case $cache_file in
1548      [\\/]* | ?:[\\/]* ) . $cache_file;;
1549      *)                      . ./$cache_file;;
1550    esac
1551  fi
1552else
1553  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1554echo "$as_me: creating cache $cache_file" >&6;}
1555  >$cache_file
1556fi
1557
1558# Check that the precious variables saved in the cache have kept the same
1559# value.
1560ac_cache_corrupted=false
1561for ac_var in `(set) 2>&1 |
1562               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1563  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1564  eval ac_new_set=\$ac_env_${ac_var}_set
1565  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1566  eval ac_new_val="\$ac_env_${ac_var}_value"
1567  case $ac_old_set,$ac_new_set in
1568    set,)
1569      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1570echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1571      ac_cache_corrupted=: ;;
1572    ,set)
1573      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1574echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1575      ac_cache_corrupted=: ;;
1576    ,);;
1577    *)
1578      if test "x$ac_old_val" != "x$ac_new_val"; then
1579        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1580echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1581        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1582echo "$as_me:   former value:  $ac_old_val" >&2;}
1583        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1584echo "$as_me:   current value: $ac_new_val" >&2;}
1585        ac_cache_corrupted=:
1586      fi;;
1587  esac
1588  # Pass precious variables to config.status.
1589  if test "$ac_new_set" = set; then
1590    case $ac_new_val in
1591    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1592      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1593    *) ac_arg=$ac_var=$ac_new_val ;;
1594    esac
1595    case " $ac_configure_args " in
1596      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1597      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1598    esac
1599  fi
1600done
1601if $ac_cache_corrupted; then
1602  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1603echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1604  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1605echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1606   { (exit 1); exit 1; }; }
1607fi
1608
1609ac_ext=c
1610ac_cpp='$CPP $CPPFLAGS'
1611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644# List one file in the package so that the configure script can test
1645# whether the package is actually there
1646
1647
1648# Where should everything be installed by default?  Here, we want it
1649# to be installed directly in 'bin', 'lib', 'include' subdirectories
1650# of the directory where configure is run.  The default would be
1651# /usr/local.
1652
1653
1654#############################################################################
1655#                         Standard build tool stuff                         #
1656#############################################################################
1657
1658# Get the system type
1659ac_aux_dir=
1660for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1661  if test -f $ac_dir/install-sh; then
1662    ac_aux_dir=$ac_dir
1663    ac_install_sh="$ac_aux_dir/install-sh -c"
1664    break
1665  elif test -f $ac_dir/install.sh; then
1666    ac_aux_dir=$ac_dir
1667    ac_install_sh="$ac_aux_dir/install.sh -c"
1668    break
1669  elif test -f $ac_dir/shtool; then
1670    ac_aux_dir=$ac_dir
1671    ac_install_sh="$ac_aux_dir/shtool install -c"
1672    break
1673  fi
1674done
1675if test -z "$ac_aux_dir"; then
1676  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1677echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1678   { (exit 1); exit 1; }; }
1679fi
1680ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1681ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1682ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1683
1684# Make sure we can run config.sub.
1685$ac_config_sub sun4 >/dev/null 2>&1 ||
1686  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1687echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1688   { (exit 1); exit 1; }; }
1689
1690echo "$as_me:$LINENO: checking build system type" >&5
1691echo $ECHO_N "checking build system type... $ECHO_C" >&6
1692if test "${ac_cv_build+set}" = set; then
1693  echo $ECHO_N "(cached) $ECHO_C" >&6
1694else
1695  ac_cv_build_alias=$build_alias
1696test -z "$ac_cv_build_alias" &&
1697  ac_cv_build_alias=`$ac_config_guess`
1698test -z "$ac_cv_build_alias" &&
1699  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1700echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1701   { (exit 1); exit 1; }; }
1702ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1703  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1704echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1705   { (exit 1); exit 1; }; }
1706
1707fi
1708echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1709echo "${ECHO_T}$ac_cv_build" >&6
1710build=$ac_cv_build
1711build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1712build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1713build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1714
1715
1716
1717# If this project depends on external projects, the Externals file in
1718# the source root directory contains definition of where to find those
1719# externals.  The following macro ensures that those externals are
1720# retrieved by svn if they are not there yet.
1721# Initialize the ADDLIBS variable
1722ADDLIBS="-lm $LIBS"
1723
1724
1725# Initialize the FADDLIBS variable (which is to be used with a fortran
1726# compiler and will not include FLIBS)
1727FADDLIBS="$LIBS"
1728
1729
1730# A useful makefile conditional that is always false
1731
1732
1733if false; then
1734  ALWAYS_FALSE_TRUE=
1735  ALWAYS_FALSE_FALSE='#'
1736else
1737  ALWAYS_FALSE_TRUE='#'
1738  ALWAYS_FALSE_FALSE=
1739fi
1740
1741
1742# We set the following variable so that we know later in AC_COIN_FINALIZE
1743# that we are in a project main directory
1744coin_projectdir=yes
1745
1746
1747# Check if user wants to produce debugging code
1748
1749echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1750echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1751
1752# Check whether --enable-debug or --disable-debug was given.
1753if test "${enable_debug+set}" = set; then
1754  enableval="$enable_debug"
1755  case "${enableval}" in
1756   yes) coin_debug_compile=true
1757        if test "${enable_shared+set}" = set; then :; else
1758          enable_shared=no
1759        fi
1760        ;;
1761   no)  coin_debug_compile=false
1762        ;;
1763   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1764echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1765   { (exit 1); exit 1; }; }
1766        ;;
1767esac
1768else
1769  coin_debug_compile=false
1770fi;
1771
1772 # m4_ifvaln([],
1773
1774if test $coin_debug_compile = true; then
1775  echo "$as_me:$LINENO: result: yes" >&5
1776echo "${ECHO_T}yes" >&6
1777else
1778  echo "$as_me:$LINENO: result: no" >&5
1779echo "${ECHO_T}no" >&6
1780fi
1781
1782 # m4_ifvaln([],
1783
1784
1785
1786# Get the name of the C++ compiler and appropriate compiler options
1787case $build in
1788  *-mingw*)
1789    if test "${LD+set}" = set; then :; else
1790      LD=link
1791    fi
1792    ;;
1793 esac
1794 case $enable_doscompile in
1795   msvc)
1796     if test "x${LD+set}" = xset; then :; else
1797       LD=link
1798     fi
1799     ;;
1800 esac
1801
1802
1803 # Check whether --enable-doscompile or --disable-doscompile was given.
1804if test "${enable_doscompile+set}" = set; then
1805  enableval="$enable_doscompile"
1806  if test "$enable_doscompile" != no; then
1807     case $build in
1808       *-cygwin* | *-mingw*) ;;
1809       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1810echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1811   { (exit 1); exit 1; }; } ;;
1812     esac
1813   fi
1814else
1815  enable_doscompile=no
1816fi;
1817 case "$enable_doscompile" in
1818   mingw)
1819     case $build in
1820       *-mingw*) enable_doscompile=no ;;
1821     esac
1822     ;;
1823   msvc|no) ;;
1824   yes) enable_doscompile=mingw ;;
1825   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1826                    Try configure --help=recursive." >&5
1827echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1828                    Try configure --help=recursive." >&2;}
1829   { (exit 1); exit 1; }; }
1830      ;;
1831  esac
1832  if test "$enable_doscompile" != no ; then
1833    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1834echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1835  fi
1836
1837
1838
1839
1840ac_ext=c
1841ac_cpp='$CPP $CPPFLAGS'
1842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1844ac_compiler_gnu=$ac_cv_c_compiler_gnu
1845
1846
1847# For consistency, we set the C compiler to the same value of the C++
1848# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1849if test x"$CXX" != x; then
1850  case "$CXX" in
1851    cl* | */cl* | CL* | */CL*)
1852      if test x"$CC" = x; then
1853        CC="$CXX"
1854        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1855echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1856      fi
1857      ;;
1858  esac
1859fi
1860
1861
1862
1863
1864
1865
1866coin_has_cc=yes
1867
1868save_cflags="$CFLAGS"
1869# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1870# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1871# is likely to be a non-functional shell. But many installations will have
1872# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1873case $build in
1874  *-cygwin* | *-mingw*)
1875             if test "$enable_doscompile" = msvc ; then
1876               comps="cl"
1877             else
1878               comps="gcc cl"
1879             fi ;;
1880  sparc-sun-solaris*)
1881             comps="cc xlc gcc pgcc icc" ;;
1882  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1883  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1884esac
1885
1886# We delete the cached value, since the test might not have been
1887# performed with our choice of compilers earlier
1888$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1889# AC_MSG_NOTICE([C compiler candidates: $comps])
1890ac_ext=c
1891ac_cpp='$CPP $CPPFLAGS'
1892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1894ac_compiler_gnu=$ac_cv_c_compiler_gnu
1895if test -n "$ac_tool_prefix"; then
1896  for ac_prog in $comps
1897  do
1898    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1900echo "$as_me:$LINENO: checking for $ac_word" >&5
1901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902if test "${ac_cv_prog_CC+set}" = set; then
1903  echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905  if test -n "$CC"; then
1906  ac_cv_prog_CC="$CC" # Let the user override the test.
1907else
1908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909for as_dir in $PATH
1910do
1911  IFS=$as_save_IFS
1912  test -z "$as_dir" && as_dir=.
1913  for ac_exec_ext in '' $ac_executable_extensions; do
1914  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1916    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917    break 2
1918  fi
1919done
1920done
1921
1922fi
1923fi
1924CC=$ac_cv_prog_CC
1925if test -n "$CC"; then
1926  echo "$as_me:$LINENO: result: $CC" >&5
1927echo "${ECHO_T}$CC" >&6
1928else
1929  echo "$as_me:$LINENO: result: no" >&5
1930echo "${ECHO_T}no" >&6
1931fi
1932
1933    test -n "$CC" && break
1934  done
1935fi
1936if test -z "$CC"; then
1937  ac_ct_CC=$CC
1938  for ac_prog in $comps
1939do
1940  # Extract the first word of "$ac_prog", so it can be a program name with args.
1941set dummy $ac_prog; ac_word=$2
1942echo "$as_me:$LINENO: checking for $ac_word" >&5
1943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945  echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
1947  if test -n "$ac_ct_CC"; then
1948  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1949else
1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951for as_dir in $PATH
1952do
1953  IFS=$as_save_IFS
1954  test -z "$as_dir" && as_dir=.
1955  for ac_exec_ext in '' $ac_executable_extensions; do
1956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957    ac_cv_prog_ac_ct_CC="$ac_prog"
1958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959    break 2
1960  fi
1961done
1962done
1963
1964fi
1965fi
1966ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967if test -n "$ac_ct_CC"; then
1968  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969echo "${ECHO_T}$ac_ct_CC" >&6
1970else
1971  echo "$as_me:$LINENO: result: no" >&5
1972echo "${ECHO_T}no" >&6
1973fi
1974
1975  test -n "$ac_ct_CC" && break
1976done
1977
1978  CC=$ac_ct_CC
1979fi
1980
1981
1982test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1983See \`config.log' for more details." >&5
1984echo "$as_me: error: no acceptable C compiler found in \$PATH
1985See \`config.log' for more details." >&2;}
1986   { (exit 1); exit 1; }; }
1987
1988# Provide some information about the compiler.
1989echo "$as_me:$LINENO:" \
1990     "checking for C compiler version" >&5
1991ac_compiler=`set X $ac_compile; echo $2`
1992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1993  (eval $ac_compiler --version </dev/null >&5) 2>&5
1994  ac_status=$?
1995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996  (exit $ac_status); }
1997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1998  (eval $ac_compiler -v </dev/null >&5) 2>&5
1999  ac_status=$?
2000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001  (exit $ac_status); }
2002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2003  (eval $ac_compiler -V </dev/null >&5) 2>&5
2004  ac_status=$?
2005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006  (exit $ac_status); }
2007
2008cat >conftest.$ac_ext <<_ACEOF
2009/* confdefs.h.  */
2010_ACEOF
2011cat confdefs.h >>conftest.$ac_ext
2012cat >>conftest.$ac_ext <<_ACEOF
2013/* end confdefs.h.  */
2014
2015int
2016main ()
2017{
2018
2019  ;
2020  return 0;
2021}
2022_ACEOF
2023ac_clean_files_save=$ac_clean_files
2024ac_clean_files="$ac_clean_files a.out a.exe b.out"
2025# Try to create an executable without -o first, disregard a.out.
2026# It will help us diagnose broken compilers, and finding out an intuition
2027# of exeext.
2028echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2029echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2030ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2031if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2032  (eval $ac_link_default) 2>&5
2033  ac_status=$?
2034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035  (exit $ac_status); }; then
2036  # Find the output, starting from the most likely.  This scheme is
2037# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2038# resort.
2039
2040# Be careful to initialize this variable, since it used to be cached.
2041# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2042ac_cv_exeext=
2043# b.out is created by i960 compilers.
2044for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2045do
2046  test -f "$ac_file" || continue
2047  case $ac_file in
2048    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2049        ;;
2050    conftest.$ac_ext )
2051        # This is the source file.
2052        ;;
2053    [ab].out )
2054        # We found the default executable, but exeext='' is most
2055        # certainly right.
2056        break;;
2057    *.* )
2058        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059        # FIXME: I believe we export ac_cv_exeext for Libtool,
2060        # but it would be cool to find out if it's true.  Does anybody
2061        # maintain Libtool? --akim.
2062        export ac_cv_exeext
2063        break;;
2064    * )
2065        break;;
2066  esac
2067done
2068else
2069  echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: C compiler cannot create executables
2075See \`config.log' for more details." >&2;}
2076   { (exit 77); exit 77; }; }
2077fi
2078
2079ac_exeext=$ac_cv_exeext
2080echo "$as_me:$LINENO: result: $ac_file" >&5
2081echo "${ECHO_T}$ac_file" >&6
2082
2083# Check the compiler produces executables we can run.  If not, either
2084# the compiler is broken, or we cross compile.
2085echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2086echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2087# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2088# If not cross compiling, check that we can run a simple program.
2089if test "$cross_compiling" != yes; then
2090  if { ac_try='./$ac_file'
2091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092  (eval $ac_try) 2>&5
2093  ac_status=$?
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); }; }; then
2096    cross_compiling=no
2097  else
2098    if test "$cross_compiling" = maybe; then
2099        cross_compiling=yes
2100    else
2101        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2102If you meant to cross compile, use \`--host'.
2103See \`config.log' for more details." >&5
2104echo "$as_me: error: cannot run C compiled programs.
2105If you meant to cross compile, use \`--host'.
2106See \`config.log' for more details." >&2;}
2107   { (exit 1); exit 1; }; }
2108    fi
2109  fi
2110fi
2111echo "$as_me:$LINENO: result: yes" >&5
2112echo "${ECHO_T}yes" >&6
2113
2114rm -f a.out a.exe conftest$ac_cv_exeext b.out
2115ac_clean_files=$ac_clean_files_save
2116# Check the compiler produces executables we can run.  If not, either
2117# the compiler is broken, or we cross compile.
2118echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2119echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2120echo "$as_me:$LINENO: result: $cross_compiling" >&5
2121echo "${ECHO_T}$cross_compiling" >&6
2122
2123echo "$as_me:$LINENO: checking for suffix of executables" >&5
2124echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2126  (eval $ac_link) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }; then
2130  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2131# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2132# work properly (i.e., refer to `conftest.exe'), while it won't with
2133# `rm'.
2134for ac_file in conftest.exe conftest conftest.*; do
2135  test -f "$ac_file" || continue
2136  case $ac_file in
2137    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2138    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139          export ac_cv_exeext
2140          break;;
2141    * ) break;;
2142  esac
2143done
2144else
2145  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2146See \`config.log' for more details." >&5
2147echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2148See \`config.log' for more details." >&2;}
2149   { (exit 1); exit 1; }; }
2150fi
2151
2152rm -f conftest$ac_cv_exeext
2153echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2154echo "${ECHO_T}$ac_cv_exeext" >&6
2155
2156rm -f conftest.$ac_ext
2157EXEEXT=$ac_cv_exeext
2158ac_exeext=$EXEEXT
2159echo "$as_me:$LINENO: checking for suffix of object files" >&5
2160echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2161if test "${ac_cv_objext+set}" = set; then
2162  echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164  cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h.  */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h.  */
2170
2171int
2172main ()
2173{
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179rm -f conftest.o conftest.obj
2180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181  (eval $ac_compile) 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }; then
2185  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2186  case $ac_file in
2187    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2188    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2189       break;;
2190  esac
2191done
2192else
2193  echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2197See \`config.log' for more details." >&5
2198echo "$as_me: error: cannot compute suffix of object files: cannot compile
2199See \`config.log' for more details." >&2;}
2200   { (exit 1); exit 1; }; }
2201fi
2202
2203rm -f conftest.$ac_cv_objext conftest.$ac_ext
2204fi
2205echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2206echo "${ECHO_T}$ac_cv_objext" >&6
2207OBJEXT=$ac_cv_objext
2208ac_objext=$OBJEXT
2209echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2210echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2211if test "${ac_cv_c_compiler_gnu+set}" = set; then
2212  echo $ECHO_N "(cached) $ECHO_C" >&6
2213else
2214  cat >conftest.$ac_ext <<_ACEOF
2215/* confdefs.h.  */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h.  */
2220
2221int
2222main ()
2223{
2224#ifndef __GNUC__
2225       choke me
2226#endif
2227
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232rm -f conftest.$ac_objext
2233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234  (eval $ac_compile) 2>conftest.er1
2235  ac_status=$?
2236  grep -v '^ *+' conftest.er1 >conftest.err
2237  rm -f conftest.er1
2238  cat conftest.err >&5
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); } &&
2241         { ac_try='test -z "$ac_c_werror_flag"
2242                         || test ! -s conftest.err'
2243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244  (eval $ac_try) 2>&5
2245  ac_status=$?
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); }; } &&
2248         { ac_try='test -s conftest.$ac_objext'
2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250  (eval $ac_try) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; }; then
2254  ac_compiler_gnu=yes
2255else
2256  echo "$as_me: failed program was:" >&5
2257sed 's/^/| /' conftest.$ac_ext >&5
2258
2259ac_compiler_gnu=no
2260fi
2261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2262ac_cv_c_compiler_gnu=$ac_compiler_gnu
2263
2264fi
2265echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2266echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2267GCC=`test $ac_compiler_gnu = yes && echo yes`
2268ac_test_CFLAGS=${CFLAGS+set}
2269ac_save_CFLAGS=$CFLAGS
2270CFLAGS="-g"
2271echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2272echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2273if test "${ac_cv_prog_cc_g+set}" = set; then
2274  echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276  cat >conftest.$ac_ext <<_ACEOF
2277/* confdefs.h.  */
2278_ACEOF
2279cat confdefs.h >>conftest.$ac_ext
2280cat >>conftest.$ac_ext <<_ACEOF
2281/* end confdefs.h.  */
2282
2283int
2284main ()
2285{
2286
2287  ;
2288  return 0;
2289}
2290_ACEOF
2291rm -f conftest.$ac_objext
2292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293  (eval $ac_compile) 2>conftest.er1
2294  ac_status=$?
2295  grep -v '^ *+' conftest.er1 >conftest.err
2296  rm -f conftest.er1
2297  cat conftest.err >&5
2298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299  (exit $ac_status); } &&
2300         { ac_try='test -z "$ac_c_werror_flag"
2301                         || test ! -s conftest.err'
2302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303  (eval $ac_try) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); }; } &&
2307         { ac_try='test -s conftest.$ac_objext'
2308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309  (eval $ac_try) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; }; then
2313  ac_cv_prog_cc_g=yes
2314else
2315  echo "$as_me: failed program was:" >&5
2316sed 's/^/| /' conftest.$ac_ext >&5
2317
2318ac_cv_prog_cc_g=no
2319fi
2320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321fi
2322echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2323echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2324if test "$ac_test_CFLAGS" = set; then
2325  CFLAGS=$ac_save_CFLAGS
2326elif test $ac_cv_prog_cc_g = yes; then
2327  if test "$GCC" = yes; then
2328    CFLAGS="-g -O2"
2329  else
2330    CFLAGS="-g"
2331  fi
2332else
2333  if test "$GCC" = yes; then
2334    CFLAGS="-O2"
2335  else
2336    CFLAGS=
2337  fi
2338fi
2339echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2340echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2341if test "${ac_cv_prog_cc_stdc+set}" = set; then
2342  echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344  ac_cv_prog_cc_stdc=no
2345ac_save_CC=$CC
2346cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h.  */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h.  */
2352#include <stdarg.h>
2353#include <stdio.h>
2354#include <sys/types.h>
2355#include <sys/stat.h>
2356/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2357struct buf { int x; };
2358FILE * (*rcsopen) (struct buf *, struct stat *, int);
2359static char *e (p, i)
2360     char **p;
2361     int i;
2362{
2363  return p[i];
2364}
2365static char *f (char * (*g) (char **, int), char **p, ...)
2366{
2367  char *s;
2368  va_list v;
2369  va_start (v,p);
2370  s = g (p, va_arg (v,int));
2371  va_end (v);
2372  return s;
2373}
2374
2375/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2376   function prototypes and stuff, but not '\xHH' hex character constants.
2377   These don't provoke an error unfortunately, instead are silently treated
2378   as 'x'.  The following induces an error, until -std1 is added to get
2379   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2380   array size at least.  It's necessary to write '\x00'==0 to get something
2381   that's true only with -std1.  */
2382int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2383
2384int test (int i, double x);
2385struct s1 {int (*f) (int a);};
2386struct s2 {int (*f) (double a);};
2387int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2388int argc;
2389char **argv;
2390int
2391main ()
2392{
2393return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2394  ;
2395  return 0;
2396}
2397_ACEOF
2398# Don't try gcc -ansi; that turns off useful extensions and
2399# breaks some systems' header files.
2400# AIX                   -qlanglvl=ansi
2401# Ultrix and OSF/1      -std1
2402# HP-UX 10.20 and later -Ae
2403# HP-UX older versions  -Aa -D_HPUX_SOURCE
2404# SVR4                  -Xc -D__EXTENSIONS__
2405for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2406do
2407  CC="$ac_save_CC $ac_arg"
2408  rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>conftest.er1
2411  ac_status=$?
2412  grep -v '^ *+' conftest.er1 >conftest.err
2413  rm -f conftest.er1
2414  cat conftest.err >&5
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); } &&
2417         { ac_try='test -z "$ac_c_werror_flag"
2418                         || test ! -s conftest.err'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; } &&
2424         { ac_try='test -s conftest.$ac_objext'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430  ac_cv_prog_cc_stdc=$ac_arg
2431break
2432else
2433  echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436fi
2437rm -f conftest.err conftest.$ac_objext
2438done
2439rm -f conftest.$ac_ext conftest.$ac_objext
2440CC=$ac_save_CC
2441
2442fi
2443
2444case "x$ac_cv_prog_cc_stdc" in
2445  x|xno)
2446    echo "$as_me:$LINENO: result: none needed" >&5
2447echo "${ECHO_T}none needed" >&6 ;;
2448  *)
2449    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2450echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2451    CC="$CC $ac_cv_prog_cc_stdc" ;;
2452esac
2453
2454# Some people use a C++ compiler to compile C.  Since we use `exit',
2455# in C++ we need to declare it.  In case someone uses the same compiler
2456# for both compiling C and C++ we need to have the C++ compiler decide
2457# the declaration of exit, since it's the most demanding environment.
2458cat >conftest.$ac_ext <<_ACEOF
2459#ifndef __cplusplus
2460  choke me
2461#endif
2462_ACEOF
2463rm -f conftest.$ac_objext
2464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465  (eval $ac_compile) 2>conftest.er1
2466  ac_status=$?
2467  grep -v '^ *+' conftest.er1 >conftest.err
2468  rm -f conftest.er1
2469  cat conftest.err >&5
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); } &&
2472         { ac_try='test -z "$ac_c_werror_flag"
2473                         || test ! -s conftest.err'
2474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475  (eval $ac_try) 2>&5
2476  ac_status=$?
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); }; } &&
2479         { ac_try='test -s conftest.$ac_objext'
2480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481  (eval $ac_try) 2>&5
2482  ac_status=$?
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); }; }; then
2485  for ac_declaration in \
2486   '' \
2487   'extern "C" void std::exit (int) throw (); using std::exit;' \
2488   'extern "C" void std::exit (int); using std::exit;' \
2489   'extern "C" void exit (int) throw ();' \
2490   'extern "C" void exit (int);' \
2491   'void exit (int);'
2492do
2493  cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h.  */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h.  */
2499$ac_declaration
2500#include <stdlib.h>
2501int
2502main ()
2503{
2504exit (42);
2505  ;
2506  return 0;
2507}
2508_ACEOF
2509rm -f conftest.$ac_objext
2510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511  (eval $ac_compile) 2>conftest.er1
2512  ac_status=$?
2513  grep -v '^ *+' conftest.er1 >conftest.err
2514  rm -f conftest.er1
2515  cat conftest.err >&5
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); } &&
2518         { ac_try='test -z "$ac_c_werror_flag"
2519                         || test ! -s conftest.err'
2520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521  (eval $ac_try) 2>&5
2522  ac_status=$?
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); }; } &&
2525         { ac_try='test -s conftest.$ac_objext'
2526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527  (eval $ac_try) 2>&5
2528  ac_status=$?
2529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530  (exit $ac_status); }; }; then
2531  :
2532else
2533  echo "$as_me: failed program was:" >&5
2534sed 's/^/| /' conftest.$ac_ext >&5
2535
2536continue
2537fi
2538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539  cat >conftest.$ac_ext <<_ACEOF
2540/* confdefs.h.  */
2541_ACEOF
2542cat confdefs.h >>conftest.$ac_ext
2543cat >>conftest.$ac_ext <<_ACEOF
2544/* end confdefs.h.  */
2545$ac_declaration
2546int
2547main ()
2548{
2549exit (42);
2550  ;
2551  return 0;
2552}
2553_ACEOF
2554rm -f conftest.$ac_objext
2555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556  (eval $ac_compile) 2>conftest.er1
2557  ac_status=$?
2558  grep -v '^ *+' conftest.er1 >conftest.err
2559  rm -f conftest.er1
2560  cat conftest.err >&5
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); } &&
2563         { ac_try='test -z "$ac_c_werror_flag"
2564                         || test ! -s conftest.err'
2565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566  (eval $ac_try) 2>&5
2567  ac_status=$?
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); }; } &&
2570         { ac_try='test -s conftest.$ac_objext'
2571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572  (eval $ac_try) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; }; then
2576  break
2577else
2578  echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581fi
2582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583done
2584rm -f conftest*
2585if test -n "$ac_declaration"; then
2586  echo '#ifdef __cplusplus' >>confdefs.h
2587  echo $ac_declaration      >>confdefs.h
2588  echo '#endif'             >>confdefs.h
2589fi
2590
2591else
2592  echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595fi
2596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2597ac_ext=c
2598ac_cpp='$CPP $CPPFLAGS'
2599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602
2603if test -z "$CC" ; then
2604  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2605echo "$as_me: error: Failed to find a C compiler!" >&2;}
2606   { (exit 1); exit 1; }; }
2607fi
2608# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2609case "$CC" in
2610  cl* | */cl* | CL* | */CL* )
2611    if test "$ac_cv_prog_cc_g" = yes ; then
2612      ac_cv_prog_cc_g=no
2613      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2614echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2615    fi ;;
2616esac
2617CFLAGS="$save_cflags"
2618
2619# Check if a project specific CFLAGS variable has been set
2620if test x$COIN_PRJCT != x; then
2621  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2622  if test x$coin_tmp = xset; then
2623    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2624  fi
2625fi
2626
2627if test x"$CFLAGS" = x; then
2628
2629  coin_add_cflags=
2630  coin_opt_cflags=
2631  coin_dbg_cflags=
2632  coin_warn_cflags=
2633
2634  if test "$GCC" = "yes"; then
2635    case "$CC" in
2636      icc* | */icc*)
2637        ;;
2638      *)
2639        coin_opt_cflags="-O3 -fomit-frame-pointer"
2640        coin_add_cflags="-pipe"
2641        coin_dbg_cflags="-g"
2642        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2643        case $enable_doscompile in
2644          mingw)
2645            CFLAGS="-mno-cygwin"
2646            cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h.  */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h.  */
2652
2653int
2654main ()
2655{
2656int i=0; i++;
2657  ;
2658  return 0;
2659}
2660_ACEOF
2661rm -f conftest.$ac_objext conftest$ac_exeext
2662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2663  (eval $ac_link) 2>conftest.er1
2664  ac_status=$?
2665  grep -v '^ *+' conftest.er1 >conftest.err
2666  rm -f conftest.er1
2667  cat conftest.err >&5
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); } &&
2670         { ac_try='test -z "$ac_c_werror_flag"
2671                         || test ! -s conftest.err'
2672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673  (eval $ac_try) 2>&5
2674  ac_status=$?
2675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); }; } &&
2677         { ac_try='test -s conftest$ac_exeext'
2678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679  (eval $ac_try) 2>&5
2680  ac_status=$?
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }; }; then
2683  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2684else
2685  echo "$as_me: failed program was:" >&5
2686sed 's/^/| /' conftest.$ac_ext >&5
2687
2688fi
2689rm -f conftest.err conftest.$ac_objext \
2690      conftest$ac_exeext conftest.$ac_ext
2691            CFLAGS=
2692          ;;
2693        esac
2694    esac
2695  fi
2696  if test -z "$coin_opt_cflags"; then
2697    case $build in
2698      *-cygwin* | *-mingw*)
2699        case "$CC" in
2700          cl* | */cl* | CL* | */CL*)
2701            coin_opt_cflags='-MT -O2'
2702            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2703            coin_dbg_cflags='-MTd'
2704            ;;
2705        esac
2706        ;;
2707      *-linux-*)
2708        case "$CC" in
2709          icc* | */icc*)
2710            coin_opt_cflags="-O3 -ip"
2711            coin_add_cflags=""
2712            coin_dbg_cflags="-g"
2713            # Check if -i_dynamic is necessary (for new glibc library)
2714            CFLAGS=
2715            cat >conftest.$ac_ext <<_ACEOF
2716/* confdefs.h.  */
2717_ACEOF
2718cat confdefs.h >>conftest.$ac_ext
2719cat >>conftest.$ac_ext <<_ACEOF
2720/* end confdefs.h.  */
2721
2722int
2723main ()
2724{
2725int i=0; i++;
2726  ;
2727  return 0;
2728}
2729_ACEOF
2730rm -f conftest.$ac_objext conftest$ac_exeext
2731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2732  (eval $ac_link) 2>conftest.er1
2733  ac_status=$?
2734  grep -v '^ *+' conftest.er1 >conftest.err
2735  rm -f conftest.er1
2736  cat conftest.err >&5
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); } &&
2739         { ac_try='test -z "$ac_c_werror_flag"
2740                         || test ! -s conftest.err'
2741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742  (eval $ac_try) 2>&5
2743  ac_status=$?
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); }; } &&
2746         { ac_try='test -s conftest$ac_exeext'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; }; then
2752  :
2753else
2754  echo "$as_me: failed program was:" >&5
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757coin_add_cflags="-i_dynamic $coin_add_cflags"
2758fi
2759rm -f conftest.err conftest.$ac_objext \
2760      conftest$ac_exeext conftest.$ac_ext
2761            ;;
2762          pgcc* | */pgcc*)
2763            coin_opt_cflags="-fast"
2764            coin_add_cflags="-Kieee -pc 64"
2765            coin_dbg_cflags="-g"
2766            ;;
2767        esac
2768        ;;
2769      *-ibm-*)
2770        case "$CC" in
2771          xlc* | */xlc* | mpxlc* | */mpxlc*)
2772            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2773            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2774            coin_dbg_cflags="-g"
2775          ;;
2776        esac
2777        ;;
2778      *-hp-*)
2779        coin_opt_cflags="-O"
2780        coin_add_cflags="-Ae"
2781        coin_dbg_cflags="-g"
2782        ;;
2783      *-sun-*)
2784        coin_opt_cflags="-xO4"
2785        coin_dbg_cflags="-g"
2786        ;;
2787      *-sgi-*)
2788        coin_opt_cflags="-O -OPT:Olimit=0"
2789        coin_dbg_cflags="-g"
2790        ;;
2791    esac
2792  fi
2793
2794  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2795    coin_dbg_cflags="-g"
2796  fi
2797
2798  if test -z "$coin_opt_cflags"; then
2799    # Try if -O option works if nothing else is set
2800    CFLAGS="-O"
2801    cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h.  */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h.  */
2807
2808int
2809main ()
2810{
2811int i=0; i++;
2812  ;
2813  return 0;
2814}
2815_ACEOF
2816rm -f conftest.$ac_objext conftest$ac_exeext
2817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2818  (eval $ac_link) 2>conftest.er1
2819  ac_status=$?
2820  grep -v '^ *+' conftest.er1 >conftest.err
2821  rm -f conftest.er1
2822  cat conftest.err >&5
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); } &&
2825         { ac_try='test -z "$ac_c_werror_flag"
2826                         || test ! -s conftest.err'
2827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828  (eval $ac_try) 2>&5
2829  ac_status=$?
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); }; } &&
2832         { ac_try='test -s conftest$ac_exeext'
2833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834  (eval $ac_try) 2>&5
2835  ac_status=$?
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); }; }; then
2838  coin_opt_cflags="-O"
2839else
2840  echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843fi
2844rm -f conftest.err conftest.$ac_objext \
2845      conftest$ac_exeext conftest.$ac_ext
2846  fi
2847
2848  # if PM doesn't want the warning messages, take them out
2849  if test x"$coin_skip_warn_cflags" = xyes; then
2850    coin_warn_cflags=
2851  fi
2852
2853  if test x${DBG_CFLAGS+set} != xset; then
2854    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2855  fi
2856  if test x${OPT_CFLAGS+set} != xset; then
2857    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2858  fi
2859
2860  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2861  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2862
2863  if test "$coin_debug_compile" = "true"; then
2864    CFLAGS="$DBG_CFLAGS"
2865  else
2866    CFLAGS="$OPT_CFLAGS"
2867  fi
2868else
2869  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2870  if test x${DBG_CFLAGS+set} != xset; then
2871    DBG_CFLAGS="$CFLAGS"
2872  fi
2873  if test x${OPT_CFLAGS+set} != xset; then
2874    OPT_CFLAGS="$CFLAGS"
2875  fi
2876fi
2877
2878# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2879
2880case "$CFLAGS" in
2881  *-mno-cygwin*)
2882    if test x${CPPFLAGS+set} != xset ; then
2883      CPPFLAGS="-mno-cygwin"
2884    else
2885      case "$CPPFLAGS" in
2886        *-mno-cygwin*)
2887          ;;
2888        *)
2889          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2890          ;;
2891      esac
2892    fi ;;
2893esac
2894
2895# Try if CFLAGS works
2896save_CFLAGS="$CFLAGS"
2897cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h.  */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h.  */
2903
2904int
2905main ()
2906{
2907int i=0; i++;
2908  ;
2909  return 0;
2910}
2911_ACEOF
2912rm -f conftest.$ac_objext conftest$ac_exeext
2913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2914  (eval $ac_link) 2>conftest.er1
2915  ac_status=$?
2916  grep -v '^ *+' conftest.er1 >conftest.err
2917  rm -f conftest.er1
2918  cat conftest.err >&5
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); } &&
2921         { ac_try='test -z "$ac_c_werror_flag"
2922                         || test ! -s conftest.err'
2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924  (eval $ac_try) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; } &&
2928         { ac_try='test -s conftest$ac_exeext'
2929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930  (eval $ac_try) 2>&5
2931  ac_status=$?
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); }; }; then
2934  :
2935else
2936  echo "$as_me: failed program was:" >&5
2937sed 's/^/| /' conftest.$ac_ext >&5
2938
2939CFLAGS=
2940fi
2941rm -f conftest.err conftest.$ac_objext \
2942      conftest$ac_exeext conftest.$ac_ext
2943if test -z "$CFLAGS"; then
2944  { 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
2945echo "$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;}
2946  CFLAGS='-O'
2947  cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h.  */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h.  */
2953
2954int
2955main ()
2956{
2957int i=0; i++;
2958  ;
2959  return 0;
2960}
2961_ACEOF
2962rm -f conftest.$ac_objext conftest$ac_exeext
2963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2964  (eval $ac_link) 2>conftest.er1
2965  ac_status=$?
2966  grep -v '^ *+' conftest.er1 >conftest.err
2967  rm -f conftest.er1
2968  cat conftest.err >&5
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); } &&
2971         { ac_try='test -z "$ac_c_werror_flag"
2972                         || test ! -s conftest.err'
2973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974  (eval $ac_try) 2>&5
2975  ac_status=$?
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); }; } &&
2978         { ac_try='test -s conftest$ac_exeext'
2979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980  (eval $ac_try) 2>&5
2981  ac_status=$?
2982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983  (exit $ac_status); }; }; then
2984  :
2985else
2986  echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989CFLAGS=
2990fi
2991rm -f conftest.err conftest.$ac_objext \
2992      conftest$ac_exeext conftest.$ac_ext
2993  if test -z "$CFLAGS"; then
2994    { 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
2995echo "$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;}
2996  fi
2997fi
2998
2999{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3000echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3001
3002
3003if test x"$MPICC" = x; then :; else
3004  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3005echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3006  CC="$MPICC"
3007fi
3008
3009# Correct ADDLIBS initialization if we are using the MS compiler
3010case "$CC" in
3011  cl* | */cl* | CL* | */CL*)
3012    ADDLIBS=
3013    case $build in
3014  *-mingw*)
3015    if test "${LD+set}" = set; then :; else
3016      LD=link
3017    fi
3018    ;;
3019 esac
3020 case $enable_doscompile in
3021   msvc)
3022     if test "x${LD+set}" = xset; then :; else
3023       LD=link
3024     fi
3025     ;;
3026 esac
3027
3028    ;;
3029esac
3030
3031ac_ext=c
3032ac_cpp='$CPP $CPPFLAGS'
3033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036
3037
3038
3039 #Let's try if that overcomes configuration problem with VC++ 6.0
3040
3041ac_ext=cc
3042ac_cpp='$CXXCPP $CPPFLAGS'
3043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3046
3047
3048
3049
3050
3051
3052
3053coin_has_cxx=yes
3054
3055save_cxxflags="$CXXFLAGS"
3056# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
3057case $build in
3058  *-cygwin* | *-mingw*)
3059             if test "$enable_doscompile" = msvc ; then
3060               comps="cl"
3061             else
3062               comps="g++ cl"
3063             fi ;;
3064  sparc-sun-solaris*)
3065             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3066  *-darwin*) comps="g++ c++ CC" ;;
3067          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3068esac
3069
3070# We delete the cached value, since the test might not have been
3071# performed with our choice of compilers earlier
3072$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3073# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3074ac_ext=cc
3075ac_cpp='$CXXCPP $CPPFLAGS'
3076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3079if test -n "$ac_tool_prefix"; then
3080  for ac_prog in $CCC $comps
3081  do
3082    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084echo "$as_me:$LINENO: checking for $ac_word" >&5
3085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086if test "${ac_cv_prog_CXX+set}" = set; then
3087  echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089  if test -n "$CXX"; then
3090  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095  IFS=$as_save_IFS
3096  test -z "$as_dir" && as_dir=.
3097  for ac_exec_ext in '' $ac_executable_extensions; do
3098  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101    break 2
3102  fi
3103done
3104done
3105
3106fi
3107fi
3108CXX=$ac_cv_prog_CXX
3109if test -n "$CXX"; then
3110  echo "$as_me:$LINENO: result: $CXX" >&5
3111echo "${ECHO_T}$CXX" >&6
3112else
3113  echo "$as_me:$LINENO: result: no" >&5
3114echo "${ECHO_T}no" >&6
3115fi
3116
3117    test -n "$CXX" && break
3118  done
3119fi
3120if test -z "$CXX"; then
3121  ac_ct_CXX=$CXX
3122  for ac_prog in $CCC $comps
3123do
3124  # Extract the first word of "$ac_prog", so it can be a program name with args.
3125set dummy $ac_prog; ac_word=$2
3126echo "$as_me:$LINENO: checking for $ac_word" >&5
3127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3129  echo $ECHO_N "(cached) $ECHO_C" >&6
3130else
3131  if test -n "$ac_ct_CXX"; then
3132  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3133else
3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135for as_dir in $PATH
3136do
3137  IFS=$as_save_IFS
3138  test -z "$as_dir" && as_dir=.
3139  for ac_exec_ext in '' $ac_executable_extensions; do
3140  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141    ac_cv_prog_ac_ct_CXX="$ac_prog"
3142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143    break 2
3144  fi
3145done
3146done
3147
3148fi
3149fi
3150ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3151if test -n "$ac_ct_CXX"; then
3152  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3153echo "${ECHO_T}$ac_ct_CXX" >&6
3154else
3155  echo "$as_me:$LINENO: result: no" >&5
3156echo "${ECHO_T}no" >&6
3157fi
3158
3159  test -n "$ac_ct_CXX" && break
3160done
3161test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3162
3163  CXX=$ac_ct_CXX
3164fi
3165
3166
3167# Provide some information about the compiler.
3168echo "$as_me:$LINENO:" \
3169     "checking for C++ compiler version" >&5
3170ac_compiler=`set X $ac_compile; echo $2`
3171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3172  (eval $ac_compiler --version </dev/null >&5) 2>&5
3173  ac_status=$?
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); }
3176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3177  (eval $ac_compiler -v </dev/null >&5) 2>&5
3178  ac_status=$?
3179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); }
3181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3182  (eval $ac_compiler -V </dev/null >&5) 2>&5
3183  ac_status=$?
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); }
3186
3187echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3188echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3189if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3190  echo $ECHO_N "(cached) $ECHO_C" >&6
3191else
3192  cat >conftest.$ac_ext <<_ACEOF
3193/* confdefs.h.  */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h.  */
3198
3199int
3200main ()
3201{
3202#ifndef __GNUC__
3203       choke me
3204#endif
3205
3206  ;
3207  return 0;
3208}
3209_ACEOF
3210rm -f conftest.$ac_objext
3211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212  (eval $ac_compile) 2>conftest.er1
3213  ac_status=$?
3214  grep -v '^ *+' conftest.er1 >conftest.err
3215  rm -f conftest.er1
3216  cat conftest.err >&5
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); } &&
3219         { ac_try='test -z "$ac_cxx_werror_flag"
3220                         || test ! -s conftest.err'
3221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222  (eval $ac_try) 2>&5
3223  ac_status=$?
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); }; } &&
3226         { ac_try='test -s conftest.$ac_objext'
3227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228  (eval $ac_try) 2>&5
3229  ac_status=$?
3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231  (exit $ac_status); }; }; then
3232  ac_compiler_gnu=yes
3233else
3234  echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237ac_compiler_gnu=no
3238fi
3239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3240ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3241
3242fi
3243echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3244echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3245GXX=`test $ac_compiler_gnu = yes && echo yes`
3246ac_test_CXXFLAGS=${CXXFLAGS+set}
3247ac_save_CXXFLAGS=$CXXFLAGS
3248CXXFLAGS="-g"
3249echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3250echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3251if test "${ac_cv_prog_cxx_g+set}" = set; then
3252  echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
3254  cat >conftest.$ac_ext <<_ACEOF
3255/* confdefs.h.  */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
3259/* end confdefs.h.  */
3260
3261int
3262main ()
3263{
3264
3265  ;
3266  return 0;
3267}
3268_ACEOF
3269rm -f conftest.$ac_objext
3270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271  (eval $ac_compile) 2>conftest.er1
3272  ac_status=$?
3273  grep -v '^ *+' conftest.er1 >conftest.err
3274  rm -f conftest.er1
3275  cat conftest.err >&5
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); } &&
3278         { ac_try='test -z "$ac_cxx_werror_flag"
3279                         || test ! -s conftest.err'
3280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281  (eval $ac_try) 2>&5
3282  ac_status=$?
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); }; } &&
3285         { ac_try='test -s conftest.$ac_objext'
3286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287  (eval $ac_try) 2>&5
3288  ac_status=$?
3289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290  (exit $ac_status); }; }; then
3291  ac_cv_prog_cxx_g=yes
3292else
3293  echo "$as_me: failed program was:" >&5
3294sed 's/^/| /' conftest.$ac_ext >&5
3295
3296ac_cv_prog_cxx_g=no
3297fi
3298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3299fi
3300echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3301echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3302if test "$ac_test_CXXFLAGS" = set; then
3303  CXXFLAGS=$ac_save_CXXFLAGS
3304elif test $ac_cv_prog_cxx_g = yes; then
3305  if test "$GXX" = yes; then
3306    CXXFLAGS="-g -O2"
3307  else
3308    CXXFLAGS="-g"
3309  fi
3310else
3311  if test "$GXX" = yes; then
3312    CXXFLAGS="-O2"
3313  else
3314    CXXFLAGS=
3315  fi
3316fi
3317for ac_declaration in \
3318   '' \
3319   'extern "C" void std::exit (int) throw (); using std::exit;' \
3320   'extern "C" void std::exit (int); using std::exit;' \
3321   'extern "C" void exit (int) throw ();' \
3322   'extern "C" void exit (int);' \
3323   'void exit (int);'
3324do
3325  cat >conftest.$ac_ext <<_ACEOF
3326/* confdefs.h.  */
3327_ACEOF
3328cat confdefs.h >>conftest.$ac_ext
3329cat >>conftest.$ac_ext <<_ACEOF
3330/* end confdefs.h.  */
3331$ac_declaration
3332#include <stdlib.h>
3333int
3334main ()
3335{
3336exit (42);
3337  ;
3338  return 0;
3339}
3340_ACEOF
3341rm -f conftest.$ac_objext
3342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343  (eval $ac_compile) 2>conftest.er1
3344  ac_status=$?
3345  grep -v '^ *+' conftest.er1 >conftest.err
3346  rm -f conftest.er1
3347  cat conftest.err >&5
3348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349  (exit $ac_status); } &&
3350         { ac_try='test -z "$ac_cxx_werror_flag"
3351                         || test ! -s conftest.err'
3352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353  (eval $ac_try) 2>&5
3354  ac_status=$?
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); }; } &&
3357         { ac_try='test -s conftest.$ac_objext'
3358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359  (eval $ac_try) 2>&5
3360  ac_status=$?
3361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362  (exit $ac_status); }; }; then
3363  :
3364else
3365  echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368continue
3369fi
3370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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$ac_declaration
3378int
3379main ()
3380{
3381exit (42);
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  break
3409else
3410  echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413fi
3414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3415done
3416rm -f conftest*
3417if test -n "$ac_declaration"; then
3418  echo '#ifdef __cplusplus' >>confdefs.h
3419  echo $ac_declaration      >>confdefs.h
3420  echo '#endif'             >>confdefs.h
3421fi
3422
3423ac_ext=cc
3424ac_cpp='$CXXCPP $CPPFLAGS'
3425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3428
3429if test -z "$CXX" ; then
3430  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
3431echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
3432   { (exit 1); exit 1; }; }
3433fi
3434
3435# It seems that we need to cleanup something here for the Windows
3436case "$CXX" in
3437  cl* | */cl* | CL* | */CL* )
3438    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3439    mv confdefs.hh confdefs.h
3440    ;;
3441esac
3442
3443# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3444case "$CXX" in
3445  cl* | */cl* | CL* | */CL* )
3446    if test "$ac_cv_prog_cxx_g" = yes ; then
3447      ac_cv_prog_cxx_g=no
3448      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3449echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3450    fi ;;
3451esac
3452CXXFLAGS="$save_cxxflags"
3453
3454# Check if a project specific CXXFLAGS variable has been set
3455if test x$COIN_PRJCT != x; then
3456  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3457  if test x$coin_tmp = xset; then
3458    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3459  fi
3460fi
3461
3462if test x"$CXXFLAGS" = x; then
3463
3464# ToDo decide whether we want -DNDEBUG for optimization
3465  coin_add_cxxflags=
3466  coin_opt_cxxflags=
3467  coin_dbg_cxxflags=
3468  coin_warn_cxxflags=
3469
3470  if test "$GXX" = "yes"; then
3471    case "$CXX" in
3472      icpc* | */icpc*)
3473        ;;
3474      *)
3475# ToDo decide about unroll-loops
3476        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3477        coin_add_cxxflags="-pipe"
3478        coin_dbg_cxxflags="-g"
3479        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3480        case $enable_doscompile in
3481          mingw)
3482            CXXFLAGS="-mno-cygwin"
3483            cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h.  */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h.  */
3489
3490int
3491main ()
3492{
3493int i=0; i++;
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498rm -f conftest.$ac_objext conftest$ac_exeext
3499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3500  (eval $ac_link) 2>conftest.er1
3501  ac_status=$?
3502  grep -v '^ *+' conftest.er1 >conftest.err
3503  rm -f conftest.er1
3504  cat conftest.err >&5
3505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); } &&
3507         { ac_try='test -z "$ac_cxx_werror_flag"
3508                         || test ! -s conftest.err'
3509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510  (eval $ac_try) 2>&5
3511  ac_status=$?
3512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513  (exit $ac_status); }; } &&
3514         { ac_try='test -s conftest$ac_exeext'
3515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516  (eval $ac_try) 2>&5
3517  ac_status=$?
3518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519  (exit $ac_status); }; }; then
3520  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3521else
3522  echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525fi
3526rm -f conftest.err conftest.$ac_objext \
3527      conftest$ac_exeext conftest.$ac_ext
3528            CXXFLAGS=
3529            ;;
3530        esac
3531    esac
3532  fi
3533
3534# Note that we do not need to cover GCC in the following tests.
3535
3536  if test -z "$coin_opt_cxxflags"; then
3537    case $build in
3538      *-cygwin* | *-mingw*)
3539        case "$CXX" in
3540          cl* | */cl* | CL* | */CL*)
3541            # The MT and MTd options are mutually exclusive
3542            coin_opt_cxxflags='-MT -O2'
3543            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3544            coin_dbg_cxxflags='-MTd'
3545            ;;
3546        esac
3547        ;;
3548      *-linux-*)
3549        case "$CXX" in
3550          icpc* | */icpc*)
3551            coin_opt_cxxflags="-O3 -ip"
3552            coin_add_cxxflags=""
3553            coin_dbg_cxxflags="-g"
3554            # Check if -i_dynamic is necessary (for new glibc library)
3555            CXXFLAGS=
3556            cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h.  */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h.  */
3562
3563int
3564main ()
3565{
3566int i=0; i++;
3567  ;
3568  return 0;
3569}
3570_ACEOF
3571rm -f conftest.$ac_objext conftest$ac_exeext
3572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3573  (eval $ac_link) 2>conftest.er1
3574  ac_status=$?
3575  grep -v '^ *+' conftest.er1 >conftest.err
3576  rm -f conftest.er1
3577  cat conftest.err >&5
3578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579  (exit $ac_status); } &&
3580         { ac_try='test -z "$ac_cxx_werror_flag"
3581                         || test ! -s conftest.err'
3582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583  (eval $ac_try) 2>&5
3584  ac_status=$?
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); }; } &&
3587         { ac_try='test -s conftest$ac_exeext'
3588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589  (eval $ac_try) 2>&5
3590  ac_status=$?
3591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); }; }; then
3593  :
3594else
3595  echo "$as_me: failed program was:" >&5
3596sed 's/^/| /' conftest.$ac_ext >&5
3597
3598coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3599fi
3600rm -f conftest.err conftest.$ac_objext \
3601      conftest$ac_exeext conftest.$ac_ext
3602            ;;
3603          pgCC* | */pgCC*)
3604            coin_opt_cxxflags="-fast"
3605            coin_add_cxxflags="-Kieee -pc 64"
3606            coin_dbg_cxxflags="-g"
3607            ;;
3608        esac
3609        ;;
3610      *-ibm-*)
3611        case "$CXX" in
3612          xlC* | */xlC* | mpxlC* | */mpxlC*)
3613            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3614            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029"
3615            coin_dbg_cxxflags="-g"
3616            ;;
3617        esac
3618        ;;
3619      *-hp-*)
3620        case "$CXX" in
3621          aCC* | */aCC* )
3622            coin_opt_cxxflags="-O"
3623            coin_add_cxxflags="-AA"
3624            coin_dbg_cxxflags="-g"
3625            ;;
3626        esac
3627        ;;
3628      *-sun-*)
3629          coin_opt_cxxflags="-O4"
3630          coin_dbg_cxxflags="-g"
3631        ;;
3632    esac
3633  fi
3634
3635# Generic flag settings. If these don't work, add a case above.
3636
3637  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3638    coin_dbg_cxxflags="-g"
3639  fi
3640
3641  if test -z "$coin_opt_cxxflags"; then
3642    # Try if -O option works if nothing else is set
3643    CXXFLAGS=-O
3644    cat >conftest.$ac_ext <<_ACEOF
3645/* confdefs.h.  */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h.  */
3650
3651int
3652main ()
3653{
3654int i=0; i++;
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659rm -f conftest.$ac_objext conftest$ac_exeext
3660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3661  (eval $ac_link) 2>conftest.er1
3662  ac_status=$?
3663  grep -v '^ *+' conftest.er1 >conftest.err
3664  rm -f conftest.er1
3665  cat conftest.err >&5
3666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667  (exit $ac_status); } &&
3668         { ac_try='test -z "$ac_cxx_werror_flag"
3669                         || test ! -s conftest.err'
3670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671  (eval $ac_try) 2>&5
3672  ac_status=$?
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); }; } &&
3675         { ac_try='test -s conftest$ac_exeext'
3676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677  (eval $ac_try) 2>&5
3678  ac_status=$?
3679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680  (exit $ac_status); }; }; then
3681  coin_opt_cxxflags="-O"
3682else
3683  echo "$as_me: failed program was:" >&5
3684sed 's/^/| /' conftest.$ac_ext >&5
3685
3686fi
3687rm -f conftest.err conftest.$ac_objext \
3688      conftest$ac_exeext conftest.$ac_ext
3689  fi
3690
3691  # if PM doesn't want the warning messages, take them out
3692  if test x"$coin_skip_warn_cxxflags" = xyes; then
3693    coin_warn_cxxflags=
3694  fi
3695
3696# Do final setup of flags based on values determined above.
3697
3698  if test x${DBG_CXXFLAGS+set} != xset; then
3699    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3700  fi
3701  if test x${OPT_CXXFLAGS+set} != xset; then
3702    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3703  fi
3704
3705  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3706  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3707
3708  if test "$coin_debug_compile" = "true"; then
3709    CXXFLAGS="$DBG_CXXFLAGS"
3710  else
3711    CXXFLAGS="$OPT_CXXFLAGS"
3712  fi
3713
3714# Handle the case where CXXFLAGS was set externally.
3715else
3716  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3717  if test x${DBG_CXXFLAGS+set} != xset; then
3718    DBG_CXXFLAGS="$CXXFLAGS"
3719  fi
3720  if test x${OPT_CXXFLAGS+set} != xset; then
3721    OPT_CXXFLAGS="$CXXFLAGS"
3722  fi
3723fi
3724
3725# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3726
3727case "$CXXFLAGS" in
3728  *-mno-cygwin*)
3729    if test x${CPPFLAGS+set} != xset ; then
3730      CPPFLAGS="-mno-cygwin"
3731    else
3732      case "$CPPFLAGS" in
3733        *-mno-cygwin*)
3734          ;;
3735        *)
3736          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3737          ;;
3738      esac
3739    fi ;;
3740esac
3741
3742# Try if CXXFLAGS works
3743save_CXXFLAGS="$CXXFLAGS"
3744cat >conftest.$ac_ext <<_ACEOF
3745/* confdefs.h.  */
3746_ACEOF
3747cat confdefs.h >>conftest.$ac_ext
3748cat >>conftest.$ac_ext <<_ACEOF
3749/* end confdefs.h.  */
3750
3751int
3752main ()
3753{
3754int i=0; i++;
3755  ;
3756  return 0;
3757}
3758_ACEOF
3759rm -f conftest.$ac_objext conftest$ac_exeext
3760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761  (eval $ac_link) 2>conftest.er1
3762  ac_status=$?
3763  grep -v '^ *+' conftest.er1 >conftest.err
3764  rm -f conftest.er1
3765  cat conftest.err >&5
3766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767  (exit $ac_status); } &&
3768         { ac_try='test -z "$ac_cxx_werror_flag"
3769                         || test ! -s conftest.err'
3770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771  (eval $ac_try) 2>&5
3772  ac_status=$?
3773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); }; } &&
3775         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3781  :
3782else
3783  echo "$as_me: failed program was:" >&5
3784sed 's/^/| /' conftest.$ac_ext >&5
3785
3786CXXFLAGS=
3787fi
3788rm -f conftest.err conftest.$ac_objext \
3789      conftest$ac_exeext conftest.$ac_ext
3790if test -z "$CXXFLAGS"; then
3791  { 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
3792echo "$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;}
3793  CXXFLAGS='-O'
3794  cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h.  */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h.  */
3800
3801int
3802main ()
3803{
3804int i=0; i++;
3805  ;
3806  return 0;
3807}
3808_ACEOF
3809rm -f conftest.$ac_objext conftest$ac_exeext
3810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3811  (eval $ac_link) 2>conftest.er1
3812  ac_status=$?
3813  grep -v '^ *+' conftest.er1 >conftest.err
3814  rm -f conftest.er1
3815  cat conftest.err >&5
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); } &&
3818         { ac_try='test -z "$ac_cxx_werror_flag"
3819                         || test ! -s conftest.err'
3820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821  (eval $ac_try) 2>&5
3822  ac_status=$?
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); }; } &&
3825         { ac_try='test -s conftest$ac_exeext'
3826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827  (eval $ac_try) 2>&5
3828  ac_status=$?
3829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830  (exit $ac_status); }; }; then
3831  :
3832else
3833  echo "$as_me: failed program was:" >&5
3834sed 's/^/| /' conftest.$ac_ext >&5
3835
3836CXXFLAGS=
3837fi
3838rm -f conftest.err conftest.$ac_objext \
3839      conftest$ac_exeext conftest.$ac_ext
3840  if test -z "$CXXFLAGS"; then
3841    { 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
3842echo "$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;}
3843  fi
3844fi
3845
3846{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3847echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3848
3849
3850if test x"$MPICXX" = x; then :; else
3851  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3852echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3853  CXX="$MPICXX"
3854fi
3855
3856case "$CXX" in
3857  cl* | */cl* | CL* | */CL* )
3858    case $build in
3859  *-mingw*)
3860    if test "${LD+set}" = set; then :; else
3861      LD=link
3862    fi
3863    ;;
3864 esac
3865 case $enable_doscompile in
3866   msvc)
3867     if test "x${LD+set}" = xset; then :; else
3868       LD=link
3869     fi
3870     ;;
3871 esac
3872
3873    ;;
3874esac
3875
3876ac_ext=c
3877ac_cpp='$CPP $CPPFLAGS'
3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881
3882
3883
3884# AW: I'm adding the Fortran compiler now for FilterSQP - we should
3885# make this optional
3886
3887# Get the name of the Fortran compiler and appropriate compiler options
3888case $build in
3889  *-cygwin* | *-mingw*)
3890     if test "$enable_doscompile" = msvc ; then
3891       coin_f77_comps="ifort fl32 compile_f2c"
3892     else
3893       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3894     fi ;;
3895  sparc-sun-solaris*)
3896     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3897  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3898 esac
3899
3900
3901
3902
3903
3904
3905ac_ext=f
3906ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3907ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3909
3910
3911
3912
3913
3914
3915coin_has_f77=yes
3916
3917save_fflags="$FFLAGS"
3918
3919# We delete the cached value, since the test might not have been
3920# performed with our choice of compilers earlier
3921$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3922
3923# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3924# coin_f77_comps to see if there's a program that matches one of the names.
3925# If there's no such program, F77 = unavailable. If we match the name,
3926# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3927# compiler.
3928# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3929
3930
3931{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3932echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3933for ac_prog in $coin_f77_comps
3934do
3935  # Extract the first word of "$ac_prog", so it can be a program name with args.
3936set dummy $ac_prog; ac_word=$2
3937echo "$as_me:$LINENO: checking for $ac_word" >&5
3938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3939if test "${ac_cv_prog_F77+set}" = set; then
3940  echo $ECHO_N "(cached) $ECHO_C" >&6
3941else
3942  if test -n "$F77"; then
3943  ac_cv_prog_F77="$F77" # Let the user override the test.
3944else
3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH
3947do
3948  IFS=$as_save_IFS
3949  test -z "$as_dir" && as_dir=.
3950  for ac_exec_ext in '' $ac_executable_extensions; do
3951  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952    ac_cv_prog_F77="$ac_prog"
3953    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954    break 2
3955  fi
3956done
3957done
3958
3959fi
3960fi
3961F77=$ac_cv_prog_F77
3962if test -n "$F77"; then
3963  echo "$as_me:$LINENO: result: $F77" >&5
3964echo "${ECHO_T}$F77" >&6
3965else
3966  echo "$as_me:$LINENO: result: no" >&5
3967echo "${ECHO_T}no" >&6
3968fi
3969
3970  test -n "$F77" && break
3971done
3972test -n "$F77" || F77="unavailable"
3973
3974
3975if test "$F77" != "unavailable" ; then
3976  ac_ext=f
3977ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3978ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3980if test -n "$ac_tool_prefix"; then
3981  for ac_prog in $coin_f77_comps
3982  do
3983    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3985echo "$as_me:$LINENO: checking for $ac_word" >&5
3986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3987if test "${ac_cv_prog_F77+set}" = set; then
3988  echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990  if test -n "$F77"; then
3991  ac_cv_prog_F77="$F77" # Let the user override the test.
3992else
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996  IFS=$as_save_IFS
3997  test -z "$as_dir" && as_dir=.
3998  for ac_exec_ext in '' $ac_executable_extensions; do
3999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002    break 2
4003  fi
4004done
4005done
4006
4007fi
4008fi
4009F77=$ac_cv_prog_F77
4010if test -n "$F77"; then
4011  echo "$as_me:$LINENO: result: $F77" >&5
4012echo "${ECHO_T}$F77" >&6
4013else
4014  echo "$as_me:$LINENO: result: no" >&5
4015echo "${ECHO_T}no" >&6
4016fi
4017
4018    test -n "$F77" && break
4019  done
4020fi
4021if test -z "$F77"; then
4022  ac_ct_F77=$F77
4023  for ac_prog in $coin_f77_comps
4024do
4025  # Extract the first word of "$ac_prog", so it can be a program name with args.
4026set dummy $ac_prog; ac_word=$2
4027echo "$as_me:$LINENO: checking for $ac_word" >&5
4028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4029if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4030  echo $ECHO_N "(cached) $ECHO_C" >&6
4031else
4032  if test -n "$ac_ct_F77"; then
4033  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4034else
4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH
4037do
4038  IFS=$as_save_IFS
4039  test -z "$as_dir" && as_dir=.
4040  for ac_exec_ext in '' $ac_executable_extensions; do
4041  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042    ac_cv_prog_ac_ct_F77="$ac_prog"
4043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044    break 2
4045  fi
4046done
4047done
4048
4049fi
4050fi
4051ac_ct_F77=$ac_cv_prog_ac_ct_F77
4052if test -n "$ac_ct_F77"; then
4053  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4054echo "${ECHO_T}$ac_ct_F77" >&6
4055else
4056  echo "$as_me:$LINENO: result: no" >&5
4057echo "${ECHO_T}no" >&6
4058fi
4059
4060  test -n "$ac_ct_F77" && break
4061done
4062
4063  F77=$ac_ct_F77
4064fi
4065
4066
4067# Provide some information about the compiler.
4068echo "$as_me:4068:" \
4069     "checking for Fortran 77 compiler version" >&5
4070ac_compiler=`set X $ac_compile; echo $2`
4071{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4072  (eval $ac_compiler --version </dev/null >&5) 2>&5
4073  ac_status=$?
4074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075  (exit $ac_status); }
4076{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4077  (eval $ac_compiler -v </dev/null >&5) 2>&5
4078  ac_status=$?
4079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080  (exit $ac_status); }
4081{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4082  (eval $ac_compiler -V </dev/null >&5) 2>&5
4083  ac_status=$?
4084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085  (exit $ac_status); }
4086rm -f a.out
4087
4088# If we don't use `.F' as extension, the preprocessor is not run on the
4089# input file.  (Note that this only needs to work for GNU compilers.)
4090ac_save_ext=$ac_ext
4091ac_ext=F
4092echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4093echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4094if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4095  echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097  cat >conftest.$ac_ext <<_ACEOF
4098      program main
4099#ifndef __GNUC__
4100       choke me
4101#endif
4102
4103      end
4104_ACEOF
4105rm -f conftest.$ac_objext
4106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107  (eval $ac_compile) 2>conftest.er1
4108  ac_status=$?
4109  grep -v '^ *+' conftest.er1 >conftest.err
4110  rm -f conftest.er1
4111  cat conftest.err >&5
4112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113  (exit $ac_status); } &&
4114         { ac_try='test -z "$ac_f77_werror_flag"
4115                         || test ! -s conftest.err'
4116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117  (eval $ac_try) 2>&5
4118  ac_status=$?
4119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120  (exit $ac_status); }; } &&
4121         { ac_try='test -s conftest.$ac_objext'
4122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123  (eval $ac_try) 2>&5
4124  ac_status=$?
4125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126  (exit $ac_status); }; }; then
4127  ac_compiler_gnu=yes
4128else
4129  echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
4131
4132ac_compiler_gnu=no
4133fi
4134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4136
4137fi
4138echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4139echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4140ac_ext=$ac_save_ext
4141ac_test_FFLAGS=${FFLAGS+set}
4142ac_save_FFLAGS=$FFLAGS
4143FFLAGS=
4144echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4145echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4146if test "${ac_cv_prog_f77_g+set}" = set; then
4147  echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149  FFLAGS=-g
4150cat >conftest.$ac_ext <<_ACEOF
4151      program main
4152
4153      end
4154_ACEOF
4155rm -f conftest.$ac_objext
4156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157  (eval $ac_compile) 2>conftest.er1
4158  ac_status=$?
4159  grep -v '^ *+' conftest.er1 >conftest.err
4160  rm -f conftest.er1
4161  cat conftest.err >&5
4162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163  (exit $ac_status); } &&
4164         { ac_try='test -z "$ac_f77_werror_flag"
4165                         || test ! -s conftest.err'
4166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167  (eval $ac_try) 2>&5
4168  ac_status=$?
4169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170  (exit $ac_status); }; } &&
4171         { ac_try='test -s conftest.$ac_objext'
4172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173  (eval $ac_try) 2>&5
4174  ac_status=$?
4175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176  (exit $ac_status); }; }; then
4177  ac_cv_prog_f77_g=yes
4178else
4179  echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
4182ac_cv_prog_f77_g=no
4183fi
4184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4185
4186fi
4187echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4188echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4189if test "$ac_test_FFLAGS" = set; then
4190  FFLAGS=$ac_save_FFLAGS
4191elif test $ac_cv_prog_f77_g = yes; then
4192  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4193    FFLAGS="-g -O2"
4194  else
4195    FFLAGS="-g"
4196  fi
4197else
4198  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4199    FFLAGS="-O2"
4200  else
4201    FFLAGS=
4202  fi
4203fi
4204
4205G77=`test $ac_compiler_gnu = yes && echo yes`
4206ac_ext=f
4207ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4208ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4210
4211else
4212  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4213echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4214fi
4215
4216FFLAGS="$save_fflags"
4217
4218# Check if a project specific FFLAGS variable has been set
4219if test x$COIN_PRJCT != x; then
4220  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4221  if test x$coin_tmp = xset; then
4222    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4223  fi
4224fi
4225
4226if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4227
4228  coin_add_fflags=
4229  coin_opt_fflags=
4230  coin_dbg_fflags=
4231  coin_warn_fflags=
4232
4233  if test "$G77" = "yes"; then
4234    coin_opt_fflags="-O3 -fomit-frame-pointer"
4235    coin_add_fflags="-pipe"
4236    coin_dbg_fflags="-g"
4237    case $enable_doscompile in
4238      mingw)
4239        FFLAGS="-mno-cygwin"
4240        cat >conftest.$ac_ext <<_ACEOF
4241      program main
4242      write(*,*) 'Hello world'
4243      end
4244_ACEOF
4245rm -f conftest.$ac_objext conftest$ac_exeext
4246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4247  (eval $ac_link) 2>conftest.er1
4248  ac_status=$?
4249  grep -v '^ *+' conftest.er1 >conftest.err
4250  rm -f conftest.er1
4251  cat conftest.err >&5
4252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253  (exit $ac_status); } &&
4254         { ac_try='test -z "$ac_f77_werror_flag"
4255                         || test ! -s conftest.err'
4256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257  (eval $ac_try) 2>&5
4258  ac_status=$?
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); }; } &&
4261         { ac_try='test -s conftest$ac_exeext'
4262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263  (eval $ac_try) 2>&5
4264  ac_status=$?
4265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266  (exit $ac_status); }; }; then
4267  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4268else
4269  echo "$as_me: failed program was:" >&5
4270sed 's/^/| /' conftest.$ac_ext >&5
4271
4272fi
4273rm -f conftest.err conftest.$ac_objext \
4274      conftest$ac_exeext conftest.$ac_ext
4275        FFLAGS=
4276      ;;
4277    esac
4278  else
4279    case $build in
4280      *-cygwin* | *-mingw*)
4281        case $F77 in
4282          ifort* | */ifort* | IFORT* | */IFORT* )
4283            coin_opt_fflags='-O3'
4284            coin_add_fflags='-fpp -nologo -MT'
4285            coin_dbg_fflags='-debug'
4286          ;;
4287          compile_f2c*)
4288            coin_opt_fflags='-MT -O2'
4289            coin_add_fflags='-nologo -wd4996'
4290            coin_dbg_fflags='-MTd'
4291          ;;
4292        esac
4293        ;;
4294      *-linux-*)
4295        case $F77 in
4296          ifc* | */ifc* | ifort* | */ifort*)
4297            coin_opt_fflags="-O3 -ip"
4298            coin_add_fflags="-cm -w90 -w95"
4299            coin_dbg_fflags="-g -CA -CB -CS"
4300            # Check if -i_dynamic is necessary (for new glibc library)
4301            FFLAGS=
4302            cat >conftest.$ac_ext <<_ACEOF
4303      program main
4304      write(*,*) 'Hello world'
4305      end
4306_ACEOF
4307rm -f conftest.$ac_objext conftest$ac_exeext
4308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4309  (eval $ac_link) 2>conftest.er1
4310  ac_status=$?
4311  grep -v '^ *+' conftest.er1 >conftest.err
4312  rm -f conftest.er1
4313  cat conftest.err >&5
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); } &&
4316         { ac_try='test -z "$ac_f77_werror_flag"
4317                         || test ! -s conftest.err'
4318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319  (eval $ac_try) 2>&5
4320  ac_status=$?
4321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322  (exit $ac_status); }; } &&
4323         { ac_try='test -s conftest$ac_exeext'
4324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325  (eval $ac_try) 2>&5
4326  ac_status=$?
4327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328  (exit $ac_status); }; }; then
4329  :
4330else
4331  echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
4333
4334coin_add_fflags="-i_dynamic $coin_add_fflags"
4335fi
4336rm -f conftest.err conftest.$ac_objext \
4337      conftest$ac_exeext conftest.$ac_ext
4338            ;;
4339          pgf77* | */pgf77* | pgf90* | */pgf90*)
4340            coin_opt_fflags="-fast"
4341            coin_add_fflags="-Kieee -pc 64"
4342            coin_dbg_fflags="-g"
4343          ;;
4344        esac
4345        ;;
4346      *-ibm-*)
4347        case "$F77" in
4348          xlf* | */xlf* | mpxlf* | */mpxlf* )
4349            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4350            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4351            coin_dbg_fflags="-g -C"
4352            ;;
4353        esac
4354        ;;
4355      *-hp-*)
4356        coin_opt_fflags="+O3"
4357        coin_add_fflags="+U77"
4358        coin_dbg_fflags="-C -g"
4359        ;;
4360      *-sun-*)
4361        coin_opt_fflags="-O4"
4362        coin_dbg_fflags="-g"
4363        ;;
4364      *-sgi-*)
4365        coin_opt_fflags="-O5 -OPT:Olimit=0"
4366        coin_dbg_fflags="-g"
4367        ;;
4368    esac
4369  fi
4370
4371  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4372    coin_dbg_fflags="-g"
4373  fi
4374
4375  if test -z "$coin_opt_fflags"; then
4376    # Try if -O option works if nothing else is set
4377    FFLAGS=-O
4378    cat >conftest.$ac_ext <<_ACEOF
4379      program main
4380      integer i
4381      end
4382_ACEOF
4383rm -f conftest.$ac_objext conftest$ac_exeext
4384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4385  (eval $ac_link) 2>conftest.er1
4386  ac_status=$?
4387  grep -v '^ *+' conftest.er1 >conftest.err
4388  rm -f conftest.er1
4389  cat conftest.err >&5
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); } &&
4392         { ac_try='test -z "$ac_f77_werror_flag"
4393                         || test ! -s conftest.err'
4394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395  (eval $ac_try) 2>&5
4396  ac_status=$?
4397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398  (exit $ac_status); }; } &&
4399         { ac_try='test -s conftest$ac_exeext'
4400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401  (eval $ac_try) 2>&5
4402  ac_status=$?
4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404  (exit $ac_status); }; }; then
4405  coin_opt_fflags="-O"
4406else
4407  echo "$as_me: failed program was:" >&5
4408sed 's/^/| /' conftest.$ac_ext >&5
4409
4410fi
4411rm -f conftest.err conftest.$ac_objext \
4412      conftest$ac_exeext conftest.$ac_ext
4413  fi
4414
4415  # if PM doesn't want the warning messages, take them out
4416  if test x"$coin_skip_warn_fflags" = xyes; then
4417    coin_warn_fflags=
4418  fi
4419
4420  if test x${DBG_FFLAGS+set} != xset; then
4421    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4422  fi
4423  if test x${OPT_FFLAGS+set} != xset; then
4424    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4425  fi
4426
4427  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4428  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4429
4430  if test "$coin_debug_compile" = "true"; then
4431    FFLAGS="$DBG_FFLAGS"
4432  else
4433    FFLAGS="$OPT_FFLAGS"
4434  fi
4435else
4436  FFLAGS="$FFLAGS $ADD_FFLAGS"
4437  if test x${DBG_FFLAGS+set} != xset; then
4438    DBG_FFLAGS="$FFLAGS"
4439  fi
4440  if test x${OPT_FFLAGS+set} != xset; then
4441    OPT_FFLAGS="$FFLAGS"
4442  fi
4443fi
4444
4445# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4446case "$FFLAGS" in
4447  *-mno-cygwin*)
4448    if test x${CPPFLAGS+set} != xset ; then
4449      CPPFLAGS="-mno-cygwin"
4450    else
4451      case "$CPPFLAGS" in
4452        *-mno-cygwin*)
4453          ;;
4454        *)
4455          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4456          ;;
4457      esac
4458    fi ;;
4459esac
4460
4461# Try if FFLAGS works
4462if test "$F77" != "unavailable" ; then
4463  cat >conftest.$ac_ext <<_ACEOF
4464      program main
4465      integer i
4466      end
4467_ACEOF
4468rm -f conftest.$ac_objext conftest$ac_exeext
4469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470  (eval $ac_link) 2>conftest.er1
4471  ac_status=$?
4472  grep -v '^ *+' conftest.er1 >conftest.err
4473  rm -f conftest.er1
4474  cat conftest.err >&5
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); } &&
4477         { ac_try='test -z "$ac_f77_werror_flag"
4478                         || test ! -s conftest.err'
4479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480  (eval $ac_try) 2>&5
4481  ac_status=$?
4482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483  (exit $ac_status); }; } &&
4484         { ac_try='test -s conftest$ac_exeext'
4485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486  (eval $ac_try) 2>&5
4487  ac_status=$?
4488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489  (exit $ac_status); }; }; then
4490  :
4491else
4492  echo "$as_me: failed program was:" >&5
4493sed 's/^/| /' conftest.$ac_ext >&5
4494
4495FFLAGS=
4496fi
4497rm -f conftest.err conftest.$ac_objext \
4498      conftest$ac_exeext conftest.$ac_ext
4499  if test -z "$FFLAGS"; then
4500    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4501echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4502    FFLAGS='-O'
4503    cat >conftest.$ac_ext <<_ACEOF
4504      program main
4505      integer i
4506      end
4507_ACEOF
4508rm -f conftest.$ac_objext conftest$ac_exeext
4509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4510  (eval $ac_link) 2>conftest.er1
4511  ac_status=$?
4512  grep -v '^ *+' conftest.er1 >conftest.err
4513  rm -f conftest.er1
4514  cat conftest.err >&5
4515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516  (exit $ac_status); } &&
4517         { ac_try='test -z "$ac_f77_werror_flag"
4518                         || test ! -s conftest.err'
4519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520  (eval $ac_try) 2>&5
4521  ac_status=$?
4522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523  (exit $ac_status); }; } &&
4524         { ac_try='test -s conftest$ac_exeext'
4525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526  (eval $ac_try) 2>&5
4527  ac_status=$?
4528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529  (exit $ac_status); }; }; then
4530  :
4531else
4532  echo "$as_me: failed program was:" >&5
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
4535FFLAGS=
4536fi
4537rm -f conftest.err conftest.$ac_objext \
4538      conftest$ac_exeext conftest.$ac_ext
4539    if test -z "$FFLAGS"; then
4540      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4541echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4542    fi
4543  fi
4544fi
4545
4546{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4547echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4548
4549
4550if test x"$MPIF77" = x; then :; else
4551  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4552echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4553  F77="$MPIF77"
4554fi
4555
4556case "$F77" in
4557  ifort* | */ifort* | IFORT* | */IFORT*)
4558    case $build in
4559  *-mingw*)
4560    if test "${LD+set}" = set; then :; else
4561      LD=link
4562    fi
4563    ;;
4564 esac
4565 case $enable_doscompile in
4566   msvc)
4567     if test "x${LD+set}" = xset; then :; else
4568       LD=link
4569     fi
4570     ;;
4571 esac
4572
4573    ;;
4574esac
4575
4576ac_ext=c
4577ac_cpp='$CPP $CPPFLAGS'
4578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581
4582
4583
4584# Find out how to call Fortran from C and determine Fortran runtime libraries
4585ac_ext=f
4586ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4587ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4589echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4590echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4591if test "${ac_cv_prog_f77_v+set}" = set; then
4592  echo $ECHO_N "(cached) $ECHO_C" >&6
4593else
4594  cat >conftest.$ac_ext <<_ACEOF
4595      program main
4596
4597      end
4598_ACEOF
4599rm -f conftest.$ac_objext
4600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601  (eval $ac_compile) 2>conftest.er1
4602  ac_status=$?
4603  grep -v '^ *+' conftest.er1 >conftest.err
4604  rm -f conftest.er1
4605  cat conftest.err >&5
4606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607  (exit $ac_status); } &&
4608         { ac_try='test -z "$ac_f77_werror_flag"
4609                         || test ! -s conftest.err'
4610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611  (eval $ac_try) 2>&5
4612  ac_status=$?
4613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614  (exit $ac_status); }; } &&
4615         { ac_try='test -s conftest.$ac_objext'
4616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617  (eval $ac_try) 2>&5
4618  ac_status=$?
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); }; }; then
4621  ac_cv_prog_f77_v=
4622# Try some options frequently used verbose output
4623for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4624  cat >conftest.$ac_ext <<_ACEOF
4625      program main
4626
4627      end
4628_ACEOF
4629
4630# Compile and link our simple test program by passing a flag (argument
4631# 1 to this macro) to the Fortran compiler in order to get
4632# "verbose" output that we can then parse for the Fortran linker
4633# flags.
4634ac_save_FFLAGS=$FFLAGS
4635FFLAGS="$FFLAGS $ac_verb"
4636(eval echo $as_me:4636: \"$ac_link\") >&5
4637ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4638echo "$ac_f77_v_output" >&5
4639FFLAGS=$ac_save_FFLAGS
4640
4641rm -f conftest*
4642
4643# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4644# /foo, /bar, and /baz are search directories for the Fortran linker.
4645# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4646ac_f77_v_output="`echo $ac_f77_v_output |
4647        grep 'LPATH is:' |
4648        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4649
4650case $ac_f77_v_output in
4651  # If we are using xlf then replace all the commas with spaces.
4652  *xlfentry*)
4653    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4654
4655  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4656  # $LIBS confuse us, and the libraries appear later in the output anyway).
4657  *mGLOB_options_string*)
4658    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4659
4660  # If we are using Cray Fortran then delete quotes.
4661  # Use "\"" instead of '"' for font-lock-mode.
4662  # FIXME: a more general fix for quoted arguments with spaces?
4663  *cft90*)
4664    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4665esac
4666
4667
4668  # look for -l* and *.a constructs in the output
4669  for ac_arg in $ac_f77_v_output; do
4670     case $ac_arg in
4671        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4672          ac_cv_prog_f77_v=$ac_verb
4673          break 2 ;;
4674     esac
4675  done
4676done
4677if test -z "$ac_cv_prog_f77_v"; then
4678   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4679echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4680fi
4681else
4682  echo "$as_me: failed program was:" >&5
4683sed 's/^/| /' conftest.$ac_ext >&5
4684
4685{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4686echo "$as_me: WARNING: compilation failed" >&2;}
4687fi
4688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4689
4690fi
4691echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4692echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4693echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4694echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4695if test "${ac_cv_f77_libs+set}" = set; then
4696  echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698  if test "x$FLIBS" != "x"; then
4699  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4700else
4701
4702cat >conftest.$ac_ext <<_ACEOF
4703      program main
4704
4705      end
4706_ACEOF
4707
4708# Compile and link our simple test program by passing a flag (argument
4709# 1 to this macro) to the Fortran compiler in order to get
4710# "verbose" output that we can then parse for the Fortran linker
4711# flags.
4712ac_save_FFLAGS=$FFLAGS
4713FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4714(eval echo $as_me:4714: \"$ac_link\") >&5
4715ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4716echo "$ac_f77_v_output" >&5
4717FFLAGS=$ac_save_FFLAGS
4718
4719rm -f conftest*
4720
4721# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4722# /foo, /bar, and /baz are search directories for the Fortran linker.
4723# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4724ac_f77_v_output="`echo $ac_f77_v_output |
4725        grep 'LPATH is:' |
4726        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4727
4728case $ac_f77_v_output in
4729  # If we are using xlf then replace all the commas with spaces.
4730  *xlfentry*)
4731    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4732
4733  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4734  # $LIBS confuse us, and the libraries appear later in the output anyway).
4735  *mGLOB_options_string*)
4736    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4737
4738  # If we are using Cray Fortran then delete quotes.
4739  # Use "\"" instead of '"' for font-lock-mode.
4740  # FIXME: a more general fix for quoted arguments with spaces?
4741  *cft90*)
4742    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4743esac
4744
4745
4746
4747ac_cv_f77_libs=
4748
4749# Save positional arguments (if any)
4750ac_save_positional="$@"
4751
4752set X $ac_f77_v_output
4753while test $# != 1; do
4754  shift
4755  ac_arg=$1
4756  case $ac_arg in
4757        [\\/]*.a | ?:[\\/]*.a)
4758            ac_exists=false
4759  for ac_i in $ac_cv_f77_libs; do
4760    if test x"$ac_arg" = x"$ac_i"; then
4761      ac_exists=true
4762      break
4763    fi
4764  done
4765
4766  if test x"$ac_exists" = xtrue; then
4767  :
4768else
4769  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4770fi
4771
4772          ;;
4773        -bI:*)
4774            ac_exists=false
4775  for ac_i in $ac_cv_f77_libs; do
4776    if test x"$ac_arg" = x"$ac_i"; then
4777      ac_exists=true
4778      break
4779    fi
4780  done
4781
4782  if test x"$ac_exists" = xtrue; then
4783  :
4784else
4785  if test "$ac_compiler_gnu" = yes; then
4786  for ac_link_opt in $ac_arg; do
4787    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4788  done
4789else
4790  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4791fi
4792fi
4793
4794          ;;
4795          # Ignore these flags.
4796        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4797          ;;
4798        -lkernel32)
4799          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4800          ;;
4801        -[LRuY])
4802          # These flags, when seen by themselves, take an argument.
4803          # We remove the space between option and argument and re-iterate
4804          # unless we find an empty arg or a new option (starting with -)
4805          case $2 in
4806             "" | -*);;
4807             *)
4808                ac_arg="$ac_arg$2"
4809                shift; shift
4810                set X $ac_arg "$@"
4811                ;;
4812          esac
4813          ;;
4814        -YP,*)
4815          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4816              ac_exists=false
4817  for ac_i in $ac_cv_f77_libs; do
4818    if test x"$ac_j" = x"$ac_i"; then
4819      ac_exists=true
4820      break
4821    fi
4822  done
4823
4824  if test x"$ac_exists" = xtrue; then
4825  :
4826else
4827  ac_arg="$ac_arg $ac_j"
4828                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4829fi
4830
4831          done
4832          ;;
4833        -[lLR]*)
4834            ac_exists=false
4835  for ac_i in $ac_cv_f77_libs; do
4836    if test x"$ac_arg" = x"$ac_i"; then
4837      ac_exists=true
4838      break
4839    fi
4840  done
4841
4842  if test x"$ac_exists" = xtrue; then
4843  :
4844else
4845  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4846fi
4847
4848          ;;
4849          # Ignore everything else.
4850  esac
4851done
4852# restore positional arguments
4853set X $ac_save_positional; shift
4854
4855# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4856# then we insist that the "run path" must be an absolute path (i.e. it
4857# must begin with a "/").
4858case `(uname -sr) 2>/dev/null` in
4859   "SunOS 5"*)
4860      ac_ld_run_path=`echo $ac_f77_v_output |
4861                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4862      test "x$ac_ld_run_path" != x &&
4863        if test "$ac_compiler_gnu" = yes; then
4864  for ac_link_opt in $ac_ld_run_path; do
4865    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4866  done
4867else
4868  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4869fi
4870      ;;
4871esac
4872fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4873
4874fi
4875echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4876echo "${ECHO_T}$ac_cv_f77_libs" >&6
4877FLIBS="$ac_cv_f77_libs"
4878
4879
4880ac_ext=f
4881ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4882ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4884
4885ac_ext=f
4886ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4887ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4889
4890echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4891echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4892if test "${ac_cv_f77_dummy_main+set}" = set; then
4893  echo $ECHO_N "(cached) $ECHO_C" >&6
4894else
4895  ac_f77_dm_save_LIBS=$LIBS
4896 LIBS="$LIBS $FLIBS"
4897 ac_fortran_dm_var=F77_DUMMY_MAIN
4898 ac_ext=c
4899ac_cpp='$CPP $CPPFLAGS'
4900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902ac_compiler_gnu=$ac_cv_c_compiler_gnu
4903
4904 # First, try linking without a dummy main:
4905 cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h.  */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h.  */
4911
4912#ifdef F77_DUMMY_MAIN
4913
4914#  ifdef __cplusplus
4915     extern "C"
4916#  endif
4917   int F77_DUMMY_MAIN() { return 1; }
4918
4919#endif
4920int
4921main ()
4922{
4923
4924  ;
4925  return 0;
4926}
4927_ACEOF
4928rm -f conftest.$ac_objext conftest$ac_exeext
4929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4930  (eval $ac_link) 2>conftest.er1
4931  ac_status=$?
4932  grep -v '^ *+' conftest.er1 >conftest.err
4933  rm -f conftest.er1
4934  cat conftest.err >&5
4935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936  (exit $ac_status); } &&
4937         { ac_try='test -z "$ac_c_werror_flag"
4938                         || test ! -s conftest.err'
4939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940  (eval $ac_try) 2>&5
4941  ac_status=$?
4942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943  (exit $ac_status); }; } &&
4944         { ac_try='test -s conftest$ac_exeext'
4945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946  (eval $ac_try) 2>&5
4947  ac_status=$?
4948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949  (exit $ac_status); }; }; then
4950  ac_cv_fortran_dummy_main=none
4951else
4952  echo "$as_me: failed program was:" >&5
4953sed 's/^/| /' conftest.$ac_ext >&5
4954
4955ac_cv_fortran_dummy_main=unknown
4956fi
4957rm -f conftest.err conftest.$ac_objext \
4958      conftest$ac_exeext conftest.$ac_ext
4959
4960 if test $ac_cv_fortran_dummy_main = unknown; then
4961   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4962     cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h.  */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h.  */
4968#define $ac_fortran_dm_var $ac_func
4969#ifdef F77_DUMMY_MAIN
4970
4971#  ifdef __cplusplus
4972     extern "C"
4973#  endif
4974   int F77_DUMMY_MAIN() { return 1; }
4975
4976#endif
4977int
4978main ()
4979{
4980
4981  ;
4982  return 0;
4983}
4984_ACEOF
4985rm -f conftest.$ac_objext conftest$ac_exeext
4986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4987  (eval $ac_link) 2>conftest.er1
4988  ac_status=$?
4989  grep -v '^ *+' conftest.er1 >conftest.err
4990  rm -f conftest.er1
4991  cat conftest.err >&5
4992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993  (exit $ac_status); } &&
4994         { ac_try='test -z "$ac_c_werror_flag"
4995                         || test ! -s conftest.err'
4996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997  (eval $ac_try) 2>&5
4998  ac_status=$?
4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000  (exit $ac_status); }; } &&
5001         { ac_try='test -s conftest$ac_exeext'
5002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003  (eval $ac_try) 2>&5
5004  ac_status=$?
5005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006  (exit $ac_status); }; }; then
5007  ac_cv_fortran_dummy_main=$ac_func; break
5008else
5009  echo "$as_me: failed program was:" >&5
5010sed 's/^/| /' conftest.$ac_ext >&5
5011
5012fi
5013rm -f conftest.err conftest.$ac_objext \
5014      conftest$ac_exeext conftest.$ac_ext
5015   done
5016 fi
5017 ac_ext=f
5018ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5019ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5021 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
5022 rm -f conftest*
5023 LIBS=$ac_f77_dm_save_LIBS
5024
5025fi
5026echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
5027echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
5028F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
5029if test "$F77_DUMMY_MAIN" != unknown; then
5030  if test $F77_DUMMY_MAIN != none; then
5031
5032cat >>confdefs.h <<_ACEOF
5033#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
5034_ACEOF
5035
5036  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
5037
5038cat >>confdefs.h <<\_ACEOF
5039#define FC_DUMMY_MAIN_EQ_F77 1
5040_ACEOF
5041
5042  fi
5043fi
5044else
5045  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
5046See \`config.log' for more details." >&5
5047echo "$as_me: error: linking to Fortran libraries from C fails
5048See \`config.log' for more details." >&2;}
5049   { (exit 1); exit 1; }; }
5050fi
5051
5052
5053ac_ext=f
5054ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5055ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5057
5058ac_ext=f
5059ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5060ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5062echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
5063echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
5064if test "${ac_cv_f77_mangling+set}" = set; then
5065  echo $ECHO_N "(cached) $ECHO_C" >&6
5066else
5067  cat >conftest.$ac_ext <<_ACEOF
5068      subroutine foobar()
5069      return
5070      end
5071      subroutine foo_bar()
5072      return
5073      end
5074_ACEOF
5075rm -f conftest.$ac_objext
5076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077  (eval $ac_compile) 2>conftest.er1
5078  ac_status=$?
5079  grep -v '^ *+' conftest.er1 >conftest.err
5080  rm -f conftest.er1
5081  cat conftest.err >&5
5082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  (exit $ac_status); } &&
5084         { ac_try='test -z "$ac_f77_werror_flag"
5085                         || test ! -s conftest.err'
5086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087  (eval $ac_try) 2>&5
5088  ac_status=$?
5089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090  (exit $ac_status); }; } &&
5091         { ac_try='test -s conftest.$ac_objext'
5092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093  (eval $ac_try) 2>&5
5094  ac_status=$?
5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096  (exit $ac_status); }; }; then
5097  mv conftest.$ac_objext cfortran_test.$ac_objext
5098
5099  ac_save_LIBS=$LIBS
5100  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
5101
5102  ac_ext=c
5103ac_cpp='$CPP $CPPFLAGS'
5104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107  ac_success=no
5108  for ac_foobar in foobar FOOBAR; do
5109    for ac_underscore in "" "_"; do
5110      ac_func="$ac_foobar$ac_underscore"
5111      cat >conftest.$ac_ext <<_ACEOF
5112/* confdefs.h.  */
5113_ACEOF
5114cat confdefs.h >>conftest.$ac_ext
5115cat >>conftest.$ac_ext <<_ACEOF
5116/* end confdefs.h.  */
5117
5118/* Override any gcc2 internal prototype to avoid an error.  */
5119#ifdef __cplusplus
5120extern "C"
5121#endif
5122/* We use char because int might match the return type of a gcc2
5123   builtin and then its argument prototype would still apply.  */
5124char $ac_func ();
5125#ifdef F77_DUMMY_MAIN
5126
5127#  ifdef __cplusplus
5128     extern "C"
5129#  endif
5130   int F77_DUMMY_MAIN() { return 1; }
5131
5132#endif
5133int
5134main ()
5135{
5136$ac_func ();
5137  ;
5138  return 0;
5139}
5140_ACEOF
5141rm -f conftest.$ac_objext conftest$ac_exeext
5142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5143  (eval $ac_link) 2>conftest.er1
5144  ac_status=$?
5145  grep -v '^ *+' conftest.er1 >conftest.err
5146  rm -f conftest.er1
5147  cat conftest.err >&5
5148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149  (exit $ac_status); } &&
5150         { ac_try='test -z "$ac_c_werror_flag"
5151                         || test ! -s conftest.err'
5152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153  (eval $ac_try) 2>&5
5154  ac_status=$?
5155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156  (exit $ac_status); }; } &&
5157         { ac_try='test -s conftest$ac_exeext'
5158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159  (eval $ac_try) 2>&5
5160  ac_status=$?
5161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162  (exit $ac_status); }; }; then
5163  ac_success=yes; break 2
5164else
5165  echo "$as_me: failed program was:" >&5
5166sed 's/^/| /' conftest.$ac_ext >&5
5167
5168fi
5169rm -f conftest.err conftest.$ac_objext \
5170      conftest$ac_exeext conftest.$ac_ext
5171    done
5172  done
5173  ac_ext=f
5174ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5175ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5177
5178  if test "$ac_success" = "yes"; then
5179     case $ac_foobar in
5180        foobar)
5181           ac_case=lower
5182           ac_foo_bar=foo_bar
5183           ;;
5184        FOOBAR)
5185           ac_case=upper
5186           ac_foo_bar=FOO_BAR
5187           ;;
5188     esac
5189
5190     ac_ext=c
5191ac_cpp='$CPP $CPPFLAGS'
5192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195     ac_success_extra=no
5196     for ac_extra in "" "_"; do
5197        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5198        cat >conftest.$ac_ext <<_ACEOF
5199/* confdefs.h.  */
5200_ACEOF
5201cat confdefs.h >>conftest.$ac_ext
5202cat >>conftest.$ac_ext <<_ACEOF
5203/* end confdefs.h.  */
5204
5205/* Override any gcc2 internal prototype to avoid an error.  */
5206#ifdef __cplusplus
5207extern "C"
5208#endif
5209/* We use char because int might match the return type of a gcc2
5210   builtin and then its argument prototype would still apply.  */
5211char $ac_func ();
5212#ifdef F77_DUMMY_MAIN
5213
5214#  ifdef __cplusplus
5215     extern "C"
5216#  endif
5217   int F77_DUMMY_MAIN() { return 1; }
5218
5219#endif
5220int
5221main ()
5222{
5223$ac_func ();
5224  ;
5225  return 0;
5226}
5227_ACEOF
5228rm -f conftest.$ac_objext conftest$ac_exeext
5229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5230  (eval $ac_link) 2>conftest.er1
5231  ac_status=$?
5232  grep -v '^ *+' conftest.er1 >conftest.err
5233  rm -f conftest.er1
5234  cat conftest.err >&5
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); } &&
5237         { ac_try='test -z "$ac_c_werror_flag"
5238                         || test ! -s conftest.err'
5239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240  (eval $ac_try) 2>&5
5241  ac_status=$?
5242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243  (exit $ac_status); }; } &&
5244         { ac_try='test -s conftest$ac_exeext'
5245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246  (eval $ac_try) 2>&5
5247  ac_status=$?
5248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249  (exit $ac_status); }; }; then
5250  ac_success_extra=yes; break
5251else
5252  echo "$as_me: failed program was:" >&5
5253sed 's/^/| /' conftest.$ac_ext >&5
5254
5255fi
5256rm -f conftest.err conftest.$ac_objext \
5257      conftest$ac_exeext conftest.$ac_ext
5258     done
5259     ac_ext=f
5260ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5261ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5263
5264     if test "$ac_success_extra" = "yes"; then
5265        ac_cv_f77_mangling="$ac_case case"
5266        if test -z "$ac_underscore"; then
5267           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
5268        else
5269           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
5270        fi
5271        if test -z "$ac_extra"; then
5272           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
5273        else
5274           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
5275        fi
5276      else
5277        ac_cv_f77_mangling="unknown"
5278      fi
5279  else
5280     ac_cv_f77_mangling="unknown"
5281  fi
5282
5283  LIBS=$ac_save_LIBS
5284  rm -f cfortran_test* conftest*
5285else
5286  echo "$as_me: failed program was:" >&5
5287sed 's/^/| /' conftest.$ac_ext >&5
5288
5289{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
5290See \`config.log' for more details." >&5
5291echo "$as_me: error: cannot compile a simple Fortran program
5292See \`config.log' for more details." >&2;}
5293   { (exit 1); exit 1; }; }
5294fi
5295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296
5297fi
5298echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
5299echo "${ECHO_T}$ac_cv_f77_mangling" >&6
5300
5301ac_ext=f
5302ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5303ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5305
5306
5307ac_ext=f
5308ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5309ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5311
5312
5313save_FLIBS="$FLIBS"
5314
5315ac_ext=f
5316ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5317ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5318ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5319
5320
5321case $ac_cv_f77_mangling in
5322  "lower case, no underscore, no extra underscore")
5323          cat >>confdefs.h <<\_ACEOF
5324#define F77_FUNC(name,NAME) name
5325_ACEOF
5326
5327          cat >>confdefs.h <<\_ACEOF
5328#define F77_FUNC_(name,NAME) name
5329_ACEOF
5330 ;;
5331  "lower case, no underscore, extra underscore")
5332          cat >>confdefs.h <<\_ACEOF
5333#define F77_FUNC(name,NAME) name
5334_ACEOF
5335
5336          cat >>confdefs.h <<\_ACEOF
5337#define F77_FUNC_(name,NAME) name ## _
5338_ACEOF
5339 ;;
5340  "lower case, underscore, no extra underscore")
5341          cat >>confdefs.h <<\_ACEOF
5342#define F77_FUNC(name,NAME) name ## _
5343_ACEOF
5344
5345          cat >>confdefs.h <<\_ACEOF
5346#define F77_FUNC_(name,NAME) name ## _
5347_ACEOF
5348 ;;
5349  "lower case, underscore, extra underscore")
5350          cat >>confdefs.h <<\_ACEOF
5351#define F77_FUNC(name,NAME) name ## _
5352_ACEOF
5353
5354          cat >>confdefs.h <<\_ACEOF
5355#define F77_FUNC_(name,NAME) name ## __
5356_ACEOF
5357 ;;
5358  "upper case, no underscore, no extra underscore")
5359          cat >>confdefs.h <<\_ACEOF
5360#define F77_FUNC(name,NAME) NAME
5361_ACEOF
5362
5363          cat >>confdefs.h <<\_ACEOF
5364#define F77_FUNC_(name,NAME) NAME
5365_ACEOF
5366 ;;
5367  "upper case, no underscore, extra underscore")
5368          cat >>confdefs.h <<\_ACEOF
5369#define F77_FUNC(name,NAME) NAME
5370_ACEOF
5371
5372          cat >>confdefs.h <<\_ACEOF
5373#define F77_FUNC_(name,NAME) NAME ## _
5374_ACEOF
5375 ;;
5376  "upper case, underscore, no extra underscore")
5377          cat >>confdefs.h <<\_ACEOF
5378#define F77_FUNC(name,NAME) NAME ## _
5379_ACEOF
5380
5381          cat >>confdefs.h <<\_ACEOF
5382#define F77_FUNC_(name,NAME) NAME ## _
5383_ACEOF
5384 ;;
5385  "upper case, underscore, extra underscore")
5386          cat >>confdefs.h <<\_ACEOF
5387#define F77_FUNC(name,NAME) NAME ## _
5388_ACEOF
5389
5390          cat >>confdefs.h <<\_ACEOF
5391#define F77_FUNC_(name,NAME) NAME ## __
5392_ACEOF
5393 ;;
5394  *)
5395          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
5396echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5397          ;;
5398esac
5399
5400ac_ext=f
5401ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5402ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5404
5405
5406if test x"$save_FLIBS" != x; then
5407  FLIBS="$save_FLIBS"
5408else
5409  # This is to correct a missing exclusion in autoconf 2.59
5410  if test x"$FLIBS" != x; then
5411    my_flibs=
5412    for flag in $FLIBS; do
5413      case $flag in
5414        -lcrt*.o) ;;
5415               *) my_flibs="$my_flibs $flag" ;;
5416      esac
5417    done
5418    FLIBS="$my_flibs"
5419  fi
5420
5421  case $build in
5422  # The following is a fix to define FLIBS for ifort on Windows
5423     *-cygwin* | *-mingw*)
5424       case "$F77" in
5425         ifort* | */ifort* | IFORT* | */IFORT*)
5426           FLIBS="-link libifcorert.lib $LIBS /NODEFAULTLIB:libc.lib";;
5427         compile_f2c*)
5428           FLIBS=`$F77 -FLIBS` ;;
5429       esac;;
5430     *-hp-*)
5431         FLIBS="$FLIBS -lm";;
5432     *-ibm-*)
5433         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
5434     *-linux-*)
5435       case "$F77" in
5436         pgf77* | */pgf77* | pgf90* | */pgf90*)
5437# ask linker to go through the archives multiple times
5438# (the Fortran compiler seems to do that automatically...
5439           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
5440       esac
5441  esac
5442  ac_cv_f77_libs="$FLIBS"
5443fi
5444
5445ac_ext=c
5446ac_cpp='$CPP $CPPFLAGS'
5447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5449ac_compiler_gnu=$ac_cv_c_compiler_gnu
5450
5451
5452
5453
5454# Initialize automake and libtool
5455{
5456
5457
5458
5459# START
5460
5461# On Cygwin, building DLLs doesn't work
5462case $build in
5463  *-cygwin*)
5464    coin_disable_shared=yes
5465    platform=Cygwin
5466  ;;
5467  *-mingw*)
5468    coin_disable_shared=yes
5469    platform="Msys"
5470#    case "$CXX" in
5471#      cl*)
5472#        coin_disable_shared=yes
5473#        platform="Msys with cl"
5474#    ;;
5475#    esac
5476  ;;
5477esac
5478if test x"$coin_disable_shared" = xyes; then
5479  if test x"$enable_shared" = xyes; then
5480    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5481echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5482  fi
5483  enable_shared=no
5484fi
5485# By default, we only want the shared objects to be compiled
5486# Check whether --enable-static or --disable-static was given.
5487if test "${enable_static+set}" = set; then
5488  enableval="$enable_static"
5489  p=${PACKAGE-default}
5490    case $enableval in
5491    yes) enable_static=yes ;;
5492    no) enable_static=no ;;
5493    *)
5494     enable_static=no
5495      # Look at the argument we got.  We use all the common list separators.
5496      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5497      for pkg in $enableval; do
5498        IFS="$lt_save_ifs"
5499        if test "X$pkg" = "X$p"; then
5500          enable_static=yes
5501        fi
5502      done
5503      IFS="$lt_save_ifs"
5504      ;;
5505    esac
5506else
5507  enable_static=no
5508fi;
5509
5510
5511
5512
5513# Initialize automake
5514echo "$as_me:$LINENO: checking for egrep" >&5
5515echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5516if test "${ac_cv_prog_egrep+set}" = set; then
5517  echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5520    then ac_cv_prog_egrep='grep -E'
5521    else ac_cv_prog_egrep='egrep'
5522    fi
5523fi
5524echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5525echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5526 EGREP=$ac_cv_prog_egrep
5527
5528
5529am__api_version="1.9"
5530# Find a good install program.  We prefer a C program (faster),
5531# so one script is as good as another.  But avoid the broken or
5532# incompatible versions:
5533# SysV /etc/install, /usr/sbin/install
5534# SunOS /usr/etc/install
5535# IRIX /sbin/install
5536# AIX /bin/install
5537# AmigaOS /C/install, which installs bootblocks on floppy discs
5538# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5539# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5540# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5541# OS/2's system install, which has a completely different semantic
5542# ./install, which can be erroneously created by make from ./install.sh.
5543echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5544echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5545if test -z "$INSTALL"; then
5546if test "${ac_cv_path_install+set}" = set; then
5547  echo $ECHO_N "(cached) $ECHO_C" >&6
5548else
5549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552  IFS=$as_save_IFS
5553  test -z "$as_dir" && as_dir=.
5554  # Account for people who put trailing slashes in PATH elements.
5555case $as_dir/ in
5556  ./ | .// | /cC/* | \
5557  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5558  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5559  /usr/ucb/* ) ;;
5560  *)
5561    # OSF1 and SCO ODT 3.0 have their own names for install.
5562    # Don't use installbsd from OSF since it installs stuff as root
5563    # by default.
5564    for ac_prog in ginstall scoinst install; do
5565      for ac_exec_ext in '' $ac_executable_extensions; do
5566        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5567          if test $ac_prog = install &&
5568            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5569            # AIX install.  It has an incompatible calling convention.
5570            :
5571          elif test $ac_prog = install &&
5572            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5573            # program-specific install script used by HP pwplus--don't use.
5574            :
5575          else
5576            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5577            break 3
5578          fi
5579        fi
5580      done
5581    done
5582    ;;
5583esac
5584done
5585
5586
5587fi
5588  if test "${ac_cv_path_install+set}" = set; then
5589    INSTALL=$ac_cv_path_install
5590  else
5591    # As a last resort, use the slow shell script.  We don't cache a
5592    # path for INSTALL within a source directory, because that will
5593    # break other packages using the cache if that directory is
5594    # removed, or if the path is relative.
5595    INSTALL=$ac_install_sh
5596  fi
5597fi
5598echo "$as_me:$LINENO: result: $INSTALL" >&5
5599echo "${ECHO_T}$INSTALL" >&6
5600
5601# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5602# It thinks the first close brace ends the variable substitution.
5603test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5604
5605test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5606
5607test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5608
5609echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5610echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5611# Just in case
5612sleep 1
5613echo timestamp > conftest.file
5614# Do `set' in a subshell so we don't clobber the current shell's
5615# arguments.  Must try -L first in case configure is actually a
5616# symlink; some systems play weird games with the mod time of symlinks
5617# (eg FreeBSD returns the mod time of the symlink's containing
5618# directory).
5619if (
5620   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5621   if test "$*" = "X"; then
5622      # -L didn't work.
5623      set X `ls -t $srcdir/configure conftest.file`
5624   fi
5625   rm -f conftest.file
5626   if test "$*" != "X $srcdir/configure conftest.file" \
5627      && test "$*" != "X conftest.file $srcdir/configure"; then
5628
5629      # If neither matched, then we have a broken ls.  This can happen
5630      # if, for instance, CONFIG_SHELL is bash and it inherits a
5631      # broken ls alias from the environment.  This has actually
5632      # happened.  Such a system could not be considered "sane".
5633      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5634alias in your environment" >&5
5635echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5636alias in your environment" >&2;}
5637   { (exit 1); exit 1; }; }
5638   fi
5639
5640   test "$2" = conftest.file
5641   )
5642then
5643   # Ok.
5644   :
5645else
5646   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5647Check your system clock" >&5
5648echo "$as_me: error: newly created file is older than distributed files!
5649Check your system clock" >&2;}
5650   { (exit 1); exit 1; }; }
5651fi
5652echo "$as_me:$LINENO: result: yes" >&5
5653echo "${ECHO_T}yes" >&6
5654test "$program_prefix" != NONE &&
5655  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5656# Use a double $ so make ignores it.
5657test "$program_suffix" != NONE &&
5658  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5659# Double any \ or $.  echo might interpret backslashes.
5660# By default was `s,x,x', remove it if useless.
5661cat <<\_ACEOF >conftest.sed
5662s/[\\$]/&&/g;s/;s,x,x,$//
5663_ACEOF
5664program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5665rm conftest.sed
5666
5667# expand $ac_aux_dir to an absolute path
5668am_aux_dir=`cd $ac_aux_dir && pwd`
5669
5670test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5671# Use eval to expand $SHELL
5672if eval "$MISSING --run true"; then
5673  am_missing_run="$MISSING --run "
5674else
5675  am_missing_run=
5676  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5677echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5678fi
5679
5680if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5681  # We used to keeping the `.' as first argument, in order to
5682  # allow $(mkdir_p) to be used without argument.  As in
5683  #   $(mkdir_p) $(somedir)
5684  # where $(somedir) is conditionally defined.  However this is wrong
5685  # for two reasons:
5686  #  1. if the package is installed by a user who cannot write `.'
5687  #     make install will fail,
5688  #  2. the above comment should most certainly read
5689  #     $(mkdir_p) $(DESTDIR)$(somedir)
5690  #     so it does not work when $(somedir) is undefined and
5691  #     $(DESTDIR) is not.
5692  #  To support the latter case, we have to write
5693  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5694  #  so the `.' trick is pointless.
5695  mkdir_p='mkdir -p --'
5696else
5697  # On NextStep and OpenStep, the `mkdir' command does not
5698  # recognize any option.  It will interpret all options as
5699  # directories to create, and then abort because `.' already
5700  # exists.
5701  for d in ./-p ./--version;
5702  do
5703    test -d $d && rmdir $d
5704  done
5705  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5706  if test -f "$ac_aux_dir/mkinstalldirs"; then
5707    mkdir_p='$(mkinstalldirs)'
5708  else
5709    mkdir_p='$(install_sh) -d'
5710  fi
5711fi
5712
5713for ac_prog in gawk mawk nawk awk
5714do
5715  # Extract the first word of "$ac_prog", so it can be a program name with args.
5716set dummy $ac_prog; ac_word=$2
5717echo "$as_me:$LINENO: checking for $ac_word" >&5
5718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719if test "${ac_cv_prog_AWK+set}" = set; then
5720  echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722  if test -n "$AWK"; then
5723  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730  for ac_exec_ext in '' $ac_executable_extensions; do
5731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_prog_AWK="$ac_prog"
5733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737done
5738
5739fi
5740fi
5741AWK=$ac_cv_prog_AWK
5742if test -n "$AWK"; then
5743  echo "$as_me:$LINENO: result: $AWK" >&5
5744echo "${ECHO_T}$AWK" >&6
5745else
5746  echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6
5748fi
5749
5750  test -n "$AWK" && break
5751done
5752
5753echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5754echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5755set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5756if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5757  echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759  cat >conftest.make <<\_ACEOF
5760all:
5761        @echo 'ac_maketemp="$(MAKE)"'
5762_ACEOF
5763# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5764eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5765if test -n "$ac_maketemp"; then
5766  eval ac_cv_prog_make_${ac_make}_set=yes
5767else
5768  eval ac_cv_prog_make_${ac_make}_set=no
5769fi
5770rm -f conftest.make
5771fi
5772if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5773  echo "$as_me:$LINENO: result: yes" >&5
5774echo "${ECHO_T}yes" >&6
5775  SET_MAKE=
5776else
5777  echo "$as_me:$LINENO: result: no" >&5
5778echo "${ECHO_T}no" >&6
5779  SET_MAKE="MAKE=${MAKE-make}"
5780fi
5781
5782rm -rf .tst 2>/dev/null
5783mkdir .tst 2>/dev/null
5784if test -d .tst; then
5785  am__leading_dot=.
5786else
5787  am__leading_dot=_
5788fi
5789rmdir .tst 2>/dev/null
5790
5791DEPDIR="${am__leading_dot}deps"
5792
5793          ac_config_commands="$ac_config_commands depfiles"
5794
5795
5796am_make=${MAKE-make}
5797cat > confinc << 'END'
5798am__doit:
5799        @echo done
5800.PHONY: am__doit
5801END
5802# If we don't find an include directive, just comment out the code.
5803echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5804echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5805am__include="#"
5806am__quote=
5807_am_result=none
5808# First try GNU make style include.
5809echo "include confinc" > confmf
5810# We grep out `Entering directory' and `Leaving directory'
5811# messages which can occur if `w' ends up in MAKEFLAGS.
5812# In particular we don't look at `^make:' because GNU make might
5813# be invoked under some other name (usually "gmake"), in which
5814# case it prints its new name instead of `make'.
5815if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5816   am__include=include
5817   am__quote=
5818   _am_result=GNU
5819fi
5820# Now try BSD make style include.
5821if test "$am__include" = "#"; then
5822   echo '.include "confinc"' > confmf
5823   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5824      am__include=.include
5825      am__quote="\""
5826      _am_result=BSD
5827   fi
5828fi
5829
5830
5831echo "$as_me:$LINENO: result: $_am_result" >&5
5832echo "${ECHO_T}$_am_result" >&6
5833rm -f confinc confmf
5834
5835# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5836if test "${enable_dependency_tracking+set}" = set; then
5837  enableval="$enable_dependency_tracking"
5838
5839fi;
5840if test "x$enable_dependency_tracking" != xno; then
5841  am_depcomp="$ac_aux_dir/depcomp"
5842  AMDEPBACKSLASH='\'
5843fi
5844
5845
5846if test "x$enable_dependency_tracking" != xno; then
5847  AMDEP_TRUE=
5848  AMDEP_FALSE='#'
5849else
5850  AMDEP_TRUE='#'
5851  AMDEP_FALSE=
5852fi
5853
5854
5855
5856
5857
5858# AC_MSG_NOTICE([Beginning automake initialisation.])
5859# Stuff for automake
5860# test to see if srcdir already configured
5861if test "`cd $srcdir && pwd`" != "`pwd`" &&
5862   test -f $srcdir/config.status; then
5863  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5864echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5865   { (exit 1); exit 1; }; }
5866fi
5867
5868# test whether we have cygpath
5869if test -z "$CYGPATH_W"; then
5870  if (cygpath --version) >/dev/null 2>/dev/null; then
5871    CYGPATH_W='cygpath -w'
5872  else
5873    CYGPATH_W=echo
5874  fi
5875fi
5876
5877
5878# Define the identity of the package.
5879 PACKAGE='bonmin'
5880 VERSION='0.9'
5881
5882
5883cat >>confdefs.h <<_ACEOF
5884#define PACKAGE "$PACKAGE"
5885_ACEOF
5886
5887
5888cat >>confdefs.h <<_ACEOF
5889#define VERSION "$VERSION"
5890_ACEOF
5891
5892# Some tools Automake needs.
5893
5894ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5895
5896
5897AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5898
5899
5900AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5901
5902
5903AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5904
5905
5906MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5907
5908install_sh=${install_sh-"$am_aux_dir/install-sh"}
5909
5910# Installed binaries are usually stripped using `strip' when the user
5911# run `make install-strip'.  However `strip' might not be the right
5912# tool to use in cross-compilation environments, therefore Automake
5913# will honor the `STRIP' environment variable to overrule this program.
5914if test "$cross_compiling" != no; then
5915  if test -n "$ac_tool_prefix"; then
5916  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5917set dummy ${ac_tool_prefix}strip; ac_word=$2
5918echo "$as_me:$LINENO: checking for $ac_word" >&5
5919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5920if test "${ac_cv_prog_STRIP+set}" = set; then
5921  echo $ECHO_N "(cached) $ECHO_C" >&6
5922else
5923  if test -n "$STRIP"; then
5924  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5925else
5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929  IFS=$as_save_IFS
5930  test -z "$as_dir" && as_dir=.
5931  for ac_exec_ext in '' $ac_executable_extensions; do
5932  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5934    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935    break 2
5936  fi
5937done
5938done
5939
5940fi
5941fi
5942STRIP=$ac_cv_prog_STRIP
5943if test -n "$STRIP"; then
5944  echo "$as_me:$LINENO: result: $STRIP" >&5
5945echo "${ECHO_T}$STRIP" >&6
5946else
5947  echo "$as_me:$LINENO: result: no" >&5
5948echo "${ECHO_T}no" >&6
5949fi
5950
5951fi
5952if test -z "$ac_cv_prog_STRIP"; then
5953  ac_ct_STRIP=$STRIP
5954  # Extract the first word of "strip", so it can be a program name with args.
5955set dummy strip; ac_word=$2
5956echo "$as_me:$LINENO: checking for $ac_word" >&5
5957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5958if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5959  echo $ECHO_N "(cached) $ECHO_C" >&6
5960else
5961  if test -n "$ac_ct_STRIP"; then
5962  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5963else
5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965for as_dir in $PATH
5966do
5967  IFS=$as_save_IFS
5968  test -z "$as_dir" && as_dir=.
5969  for ac_exec_ext in '' $ac_executable_extensions; do
5970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971    ac_cv_prog_ac_ct_STRIP="strip"
5972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973    break 2
5974  fi
5975done
5976done
5977
5978  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5979fi
5980fi
5981ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5982if test -n "$ac_ct_STRIP"; then
5983  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5984echo "${ECHO_T}$ac_ct_STRIP" >&6
5985else
5986  echo "$as_me:$LINENO: result: no" >&5
5987echo "${ECHO_T}no" >&6
5988fi
5989
5990  STRIP=$ac_ct_STRIP
5991else
5992  STRIP="$ac_cv_prog_STRIP"
5993fi
5994
5995fi
5996INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5997
5998# We need awk for the "check" target.  The system "awk" is bad on
5999# some platforms.
6000# Always define AMTAR for backward compatibility.
6001
6002AMTAR=${AMTAR-"${am_missing_run}tar"}
6003
6004am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6005
6006
6007
6008
6009depcc="$CC"   am_compiler_list=
6010
6011echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6012echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6013if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6014  echo $ECHO_N "(cached) $ECHO_C" >&6
6015else
6016  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6017  # We make a subdir and do the tests there.  Otherwise we can end up
6018  # making bogus files that we don't know about and never remove.  For
6019  # instance it was reported that on HP-UX the gcc test will end up
6020  # making a dummy file named `D' -- because `-MD' means `put the output
6021  # in D'.
6022  mkdir conftest.dir
6023  # Copy depcomp to subdir because otherwise we won't find it if we're
6024  # using a relative directory.
6025  cp "$am_depcomp" conftest.dir
6026  cd conftest.dir
6027  # We will build objects and dependencies in a subdirectory because
6028  # it helps to detect inapplicable dependency modes.  For instance
6029  # both Tru64's cc and ICC support -MD to output dependencies as a
6030  # side effect of compilation, but ICC will put the dependencies in
6031  # the current directory while Tru64 will put them in the object
6032  # directory.
6033  mkdir sub
6034
6035  am_cv_CC_dependencies_compiler_type=none
6036  if test "$am_compiler_list" = ""; then
6037     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6038  fi
6039  for depmode in $am_compiler_list; do
6040    # Setup a source with many dependencies, because some compilers
6041    # like to wrap large dependency lists on column 80 (with \), and
6042    # we should not choose a depcomp mode which is confused by this.
6043    #
6044    # We need to recreate these files for each test, as the compiler may
6045    # overwrite some of them when testing with obscure command lines.
6046    # This happens at least with the AIX C compiler.
6047    : > sub/conftest.c
6048    for i in 1 2 3 4 5 6; do
6049      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6050      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6051      # Solaris 8's {/usr,}/bin/sh.
6052      touch sub/conftst$i.h
6053    done
6054    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6055
6056    case $depmode in
6057    nosideeffect)
6058      # after this tag, mechanisms are not by side-effect, so they'll
6059      # only be used when explicitly requested
6060      if test "x$enable_dependency_tracking" = xyes; then
6061        continue
6062      else
6063        break
6064      fi
6065      ;;
6066    none) break ;;
6067    esac
6068    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6069    # mode.  It turns out that the SunPro C++ compiler does not properly
6070    # handle `-M -o', and we need to detect this.
6071    if depmode=$depmode \
6072       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6073       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6074       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6075         >/dev/null 2>conftest.err &&
6076       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6077       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6078       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6079      # icc doesn't choke on unknown options, it will just issue warnings
6080      # or remarks (even with -Werror).  So we grep stderr for any message
6081      # that says an option was ignored or not supported.
6082      # When given -MP, icc 7.0 and 7.1 complain thusly:
6083      #   icc: Command line warning: ignoring option '-M'; no argument required
6084      # The diagnosis changed in icc 8.0:
6085      #   icc: Command line remark: option '-MP' not supported
6086      if (grep 'ignoring option' conftest.err ||
6087          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6088        am_cv_CC_dependencies_compiler_type=$depmode
6089        break
6090      fi
6091    fi
6092  done
6093
6094  cd ..
6095  rm -rf conftest.dir
6096else
6097  am_cv_CC_dependencies_compiler_type=none
6098fi
6099
6100fi
6101echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6102echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6103CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6104
6105
6106
6107if
6108  test "x$enable_dependency_tracking" != xno \
6109  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6110  am__fastdepCC_TRUE=
6111  am__fastdepCC_FALSE='#'
6112else
6113  am__fastdepCC_TRUE='#'
6114  am__fastdepCC_FALSE=
6115fi
6116
6117
6118depcc="$CXX"  am_compiler_list=
6119
6120echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6121echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6122if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6123  echo $ECHO_N "(cached) $ECHO_C" >&6
6124else
6125  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6126  # We make a subdir and do the tests there.  Otherwise we can end up
6127  # making bogus files that we don't know about and never remove.  For
6128  # instance it was reported that on HP-UX the gcc test will end up
6129  # making a dummy file named `D' -- because `-MD' means `put the output
6130  # in D'.
6131  mkdir conftest.dir
6132  # Copy depcomp to subdir because otherwise we won't find it if we're
6133  # using a relative directory.
6134  cp "$am_depcomp" conftest.dir
6135  cd conftest.dir
6136  # We will build objects and dependencies in a subdirectory because
6137  # it helps to detect inapplicable dependency modes.  For instance
6138  # both Tru64's cc and ICC support -MD to output dependencies as a
6139  # side effect of compilation, but ICC will put the dependencies in
6140  # the current directory while Tru64 will put them in the object
6141  # directory.
6142  mkdir sub
6143
6144  am_cv_CXX_dependencies_compiler_type=none
6145  if test "$am_compiler_list" = ""; then
6146     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6147  fi
6148  for depmode in $am_compiler_list; do
6149    # Setup a source with many dependencies, because some compilers
6150    # like to wrap large dependency lists on column 80 (with \), and
6151    # we should not choose a depcomp mode which is confused by this.
6152    #
6153    # We need to recreate these files for each test, as the compiler may
6154    # overwrite some of them when testing with obscure command lines.
6155    # This happens at least with the AIX C compiler.
6156    : > sub/conftest.c
6157    for i in 1 2 3 4 5 6; do
6158      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6159      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6160      # Solaris 8's {/usr,}/bin/sh.
6161      touch sub/conftst$i.h
6162    done
6163    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6164
6165    case $depmode in
6166    nosideeffect)
6167      # after this tag, mechanisms are not by side-effect, so they'll
6168      # only be used when explicitly requested
6169      if test "x$enable_dependency_tracking" = xyes; then
6170        continue
6171      else
6172        break
6173      fi
6174      ;;
6175    none) break ;;
6176    esac
6177    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6178    # mode.  It turns out that the SunPro C++ compiler does not properly
6179    # handle `-M -o', and we need to detect this.
6180    if depmode=$depmode \
6181       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6182       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6183       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6184         >/dev/null 2>conftest.err &&
6185       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6186       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6187       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6188      # icc doesn't choke on unknown options, it will just issue warnings
6189      # or remarks (even with -Werror).  So we grep stderr for any message
6190      # that says an option was ignored or not supported.
6191      # When given -MP, icc 7.0 and 7.1 complain thusly:
6192      #   icc: Command line warning: ignoring option '-M'; no argument required
6193      # The diagnosis changed in icc 8.0:
6194      #   icc: Command line remark: option '-MP' not supported
6195      if (grep 'ignoring option' conftest.err ||
6196          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6197        am_cv_CXX_dependencies_compiler_type=$depmode
6198        break
6199      fi
6200    fi
6201  done
6202
6203  cd ..
6204  rm -rf conftest.dir
6205else
6206  am_cv_CXX_dependencies_compiler_type=none
6207fi
6208
6209fi
6210echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6211echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6212CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6213
6214
6215
6216if
6217  test "x$enable_dependency_tracking" != xno \
6218  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6219  am__fastdepCXX_TRUE=
6220  am__fastdepCXX_FALSE='#'
6221else
6222  am__fastdepCXX_TRUE='#'
6223  am__fastdepCXX_FALSE=
6224fi
6225
6226
6227
6228echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6229echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6230    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6231if test "${enable_maintainer_mode+set}" = set; then
6232  enableval="$enable_maintainer_mode"
6233  USE_MAINTAINER_MODE=$enableval
6234else
6235  USE_MAINTAINER_MODE=no
6236fi;
6237  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6238echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6239
6240
6241if test $USE_MAINTAINER_MODE = yes; then
6242  MAINTAINER_MODE_TRUE=
6243  MAINTAINER_MODE_FALSE='#'
6244else
6245  MAINTAINER_MODE_TRUE='#'
6246  MAINTAINER_MODE_FALSE=
6247fi
6248
6249  MAINT=$MAINTAINER_MODE_TRUE
6250
6251
6252
6253coin_have_externals=no
6254if test "$enable_maintainer_mode" = yes; then
6255
6256  # If maintainer mode is chosen, we make sure that the correct versions
6257  # of the tools are used, and that we know where libtool.m4 is (to
6258  # recreate acinclude.m4)
6259
6260
6261  LIBTOOLM4=
6262  # Normally, $HOME
6263  AUTOTOOLS_DFLT=$HOME
6264
6265  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6266echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6267if test "${ac_cv_use_correct_autotools+set}" = set; then
6268  echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270  ac_cv_use_correct_autotools=check
6271fi
6272echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6273echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6274
6275  if test $ac_cv_use_correct_autotools = check; then
6276    ac_cv_use_correct_autotools=yes
6277    # Check if we have autoconf
6278    # Extract the first word of "autoconf", so it can be a program name with args.
6279set dummy autoconf; ac_word=$2
6280echo "$as_me:$LINENO: checking for $ac_word" >&5
6281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6282if test "${ac_cv_prog_have_autoconf+set}" = set; then
6283  echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285  if test -n "$have_autoconf"; then
6286  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291  IFS=$as_save_IFS
6292  test -z "$as_dir" && as_dir=.
6293  for ac_exec_ext in '' $ac_executable_extensions; do
6294  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295    ac_cv_prog_have_autoconf="yes"
6296    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297    break 2
6298  fi
6299done
6300done
6301
6302  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6303fi
6304fi
6305have_autoconf=$ac_cv_prog_have_autoconf
6306if test -n "$have_autoconf"; then
6307  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6308echo "${ECHO_T}$have_autoconf" >&6
6309else
6310  echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6
6312fi
6313
6314    if test $have_autoconf = no; then
6315      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6316echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6317   { (exit 1); exit 1; }; }
6318    fi
6319
6320    # Check whether autoconf is the correct version
6321    correct_version='2.59'
6322    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6323    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6324echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6325    autoconf --version > confauto.out 2>&1
6326    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6327      echo "$as_me:$LINENO: result: yes" >&5
6328echo "${ECHO_T}yes" >&6
6329    else
6330      rm -f confauto.out
6331      echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6
6333      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6334echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6335   { (exit 1); exit 1; }; }
6336    fi
6337    rm -f confauto.out
6338
6339    # Check if the executable autoconf is picked up from the correct location
6340    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6341echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6342    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6343    autoconf_dir=`cd $autoconf_dir; pwd`
6344    if test x$AUTOTOOLS_DIR = x; then
6345      want_dir=$AUTOTOOLS_DFLT/bin
6346    else
6347      want_dir=$AUTOTOOLS_DIR/bin
6348    fi
6349    if test $autoconf_dir = `cd $want_dir; pwd`; then
6350      echo "$as_me:$LINENO: result: yes" >&5
6351echo "${ECHO_T}yes" >&6
6352    else
6353      rm -f confauto.out
6354      echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6
6356      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6357echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6358   { (exit 1); exit 1; }; }
6359    fi
6360
6361    # Check if we have automake
6362    # Extract the first word of "automake", so it can be a program name with args.
6363set dummy automake; ac_word=$2
6364echo "$as_me:$LINENO: checking for $ac_word" >&5
6365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6366if test "${ac_cv_prog_have_automake+set}" = set; then
6367  echo $ECHO_N "(cached) $ECHO_C" >&6
6368else
6369  if test -n "$have_automake"; then
6370  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6371else
6372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373for as_dir in $PATH
6374do
6375  IFS=$as_save_IFS
6376  test -z "$as_dir" && as_dir=.
6377  for ac_exec_ext in '' $ac_executable_extensions; do
6378  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6379    ac_cv_prog_have_automake="yes"
6380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381    break 2
6382  fi
6383done
6384done
6385
6386  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6387fi
6388fi
6389have_automake=$ac_cv_prog_have_automake
6390if test -n "$have_automake"; then
6391  echo "$as_me:$LINENO: result: $have_automake" >&5
6392echo "${ECHO_T}$have_automake" >&6
6393else
6394  echo "$as_me:$LINENO: result: no" >&5
6395echo "${ECHO_T}no" >&6
6396fi
6397
6398    if test $have_automake = no; then
6399      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6400echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6401   { (exit 1); exit 1; }; }
6402    fi
6403
6404    # Check whether automake is the correct version
6405    correct_version='1.9.6'
6406    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6407    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6408echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6409    automake --version > confauto.out 2>&1
6410    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6411      echo "$as_me:$LINENO: result: yes" >&5
6412echo "${ECHO_T}yes" >&6
6413    else
6414      rm -f confauto.out
6415      echo "$as_me:$LINENO: result: no" >&5
6416echo "${ECHO_T}no" >&6
6417      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6418echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6419   { (exit 1); exit 1; }; }
6420    fi
6421    rm -f confauto.out
6422
6423    # Check if the executable automake is picked up from the correct location
6424    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6425echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6426    automake_dir=`which automake | sed -e 's=/automake=='`
6427    automake_dir=`cd $automake_dir; pwd`
6428    if test x$AUTOTOOLS_DIR = x; then
6429      want_dir=$AUTOTOOLS_DFLT/bin
6430    else
6431      want_dir=$AUTOTOOLS_DIR/bin
6432    fi
6433    if test $automake_dir = `cd $want_dir; pwd`; then
6434      echo "$as_me:$LINENO: result: yes" >&5
6435echo "${ECHO_T}yes" >&6
6436    else
6437      rm -f confauto.out
6438      echo "$as_me:$LINENO: result: no" >&5
6439echo "${ECHO_T}no" >&6
6440      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6441echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6442   { (exit 1); exit 1; }; }
6443    fi
6444
6445    # Check if this is the correct version of libtool (with escaped dots)
6446    if test x$AUTOTOOLS_DIR = x; then
6447      want_dir=$AUTOTOOLS_DFLT/share
6448    else
6449      want_dir=$AUTOTOOLS_DIR/share
6450    fi
6451    correct_version='1.5.22'
6452    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6453    if test -r $want_dir/libtool/ltmain.sh; then
6454  have_ltmain=yes
6455  :
6456else
6457  have_ltmain=no
6458  :
6459fi
6460
6461    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6462echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6463    if test $have_ltmain = yes; then
6464    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6465        echo "$as_me:$LINENO: result: yes" >&5
6466echo "${ECHO_T}yes" >&6
6467      else
6468        echo "$as_me:$LINENO: result: no" >&5
6469echo "${ECHO_T}no" >&6
6470        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6471echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6472   { (exit 1); exit 1; }; }
6473      fi
6474    else
6475      echo "$as_me:$LINENO: result: no" >&5
6476echo "${ECHO_T}no" >&6
6477      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6478echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6479   { (exit 1); exit 1; }; }
6480    fi
6481  fi
6482
6483  # Check if we can find the libtool file
6484  if test x$AUTOTOOLS_DIR = x; then
6485    want_dir=$AUTOTOOLS_DFLT/share
6486  else
6487    want_dir=$AUTOTOOLS_DIR/share
6488  fi
6489  if test -r $want_dir/aclocal/libtool.m4; then
6490  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6491  :
6492else
6493  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6494echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6495   { (exit 1); exit 1; }; }
6496  :
6497fi
6498
6499
6500  # Check if we have an Externals file
6501  if test -r $srcdir/Externals; then
6502    coin_have_externals=yes
6503  fi
6504  # Check if subversion is installed and understands https
6505  # Extract the first word of "svn", so it can be a program name with args.
6506set dummy svn; ac_word=$2
6507echo "$as_me:$LINENO: checking for $ac_word" >&5
6508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6509if test "${ac_cv_prog_have_svn+set}" = set; then
6510  echo $ECHO_N "(cached) $ECHO_C" >&6
6511else
6512  if test -n "$have_svn"; then
6513  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6514else
6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516for as_dir in $PATH
6517do
6518  IFS=$as_save_IFS
6519  test -z "$as_dir" && as_dir=.
6520  for ac_exec_ext in '' $ac_executable_extensions; do
6521  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522    ac_cv_prog_have_svn="yes"
6523    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524    break 2
6525  fi
6526done
6527done
6528
6529  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6530fi
6531fi
6532have_svn=$ac_cv_prog_have_svn
6533if test -n "$have_svn"; then
6534  echo "$as_me:$LINENO: result: $have_svn" >&5
6535echo "${ECHO_T}$have_svn" >&6
6536else
6537  echo "$as_me:$LINENO: result: no" >&5
6538echo "${ECHO_T}no" >&6
6539fi
6540
6541  if test x$have_svn = xyes; then
6542    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6543echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6544if test "${ac_cv_svn_understands_https+set}" = set; then
6545  echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547  svn --version > confauto.out 2>&1
6548                    if $EGREP https confauto.out >/dev/null 2>&1; then
6549                      ac_cv_svn_understands_https=yes
6550                    else
6551                      ac_cv_svn_understands_https=no
6552                      have_svn=no
6553                      ac_cv_prog_have_svn=no
6554                    fi
6555                    rm -f confauto.out
6556fi
6557echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6558echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6559  fi
6560
6561  # Find the location of the BuildTools directory
6562  BUILDTOOLSDIR=
6563  if test -r $srcdir/BuildTools/coin.m4; then
6564    BUILDTOOLSDIR=$srcdir/BuildTools
6565  else
6566    if test -r $srcdir/../BuildTools/coin.m4; then
6567      BUILDTOOLSDIR=$srcdir/../BuildTools
6568    else
6569      if test -r $srcdir/../../BuildTools/coin.m4; then
6570        BUILDTOOLSDIR=$srcdir/../../BuildTools
6571      else
6572        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6573echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6574   { (exit 1); exit 1; }; }
6575      fi
6576    fi
6577  fi
6578
6579
6580  # The following variable is set to the name of the directory where
6581  # the autotool scripts are located
6582
6583  AUX_DIR=$ac_aux_dir
6584fi
6585
6586# helpful variable for the base directory of this package
6587abs_source_dir=`cd $srcdir; pwd`
6588
6589
6590# Stuff for example Makefiles
6591if test x$prefix = xNONE; then
6592  full_prefix=$ac_default_prefix
6593else
6594  full_prefix=$prefix
6595fi
6596full_prefix=`cd $full_prefix ; pwd`
6597
6598abs_lib_dir=$full_prefix/lib
6599
6600abs_include_dir=$full_prefix/include
6601
6602abs_bin_dir=$full_prefix/bin
6603
6604
6605
6606if test $coin_have_externals = yes && test x$have_svn = xyes; then
6607  HAVE_EXTERNALS_TRUE=
6608  HAVE_EXTERNALS_FALSE='#'
6609else
6610  HAVE_EXTERNALS_TRUE='#'
6611  HAVE_EXTERNALS_FALSE=
6612fi
6613
6614
6615# AC_MSG_NOTICE([End automake initialisation.])
6616
6617
6618
6619LIBTOOL=
6620if test -r ../libtool; then
6621  coin_config_dir=..
6622  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6623fi
6624if test "x$LIBTOOL" = x; then
6625  if test -r ../../libtool; then
6626    coin_config_dir=../..
6627    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6628  fi
6629fi
6630
6631if test "x$LIBTOOL" = x; then
6632# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6633  # Stuff for libtool
6634  # Check whether --enable-shared or --disable-shared was given.
6635if test "${enable_shared+set}" = set; then
6636  enableval="$enable_shared"
6637  p=${PACKAGE-default}
6638    case $enableval in
6639    yes) enable_shared=yes ;;
6640    no) enable_shared=no ;;
6641    *)
6642      enable_shared=no
6643      # Look at the argument we got.  We use all the common list separators.
6644      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6645      for pkg in $enableval; do
6646        IFS="$lt_save_ifs"
6647        if test "X$pkg" = "X$p"; then
6648          enable_shared=yes
6649        fi
6650      done
6651      IFS="$lt_save_ifs"
6652      ;;
6653    esac
6654else
6655  enable_shared=yes
6656fi;
6657
6658# Check whether --enable-fast-install or --disable-fast-install was given.
6659if test "${enable_fast_install+set}" = set; then
6660  enableval="$enable_fast_install"
6661  p=${PACKAGE-default}
6662    case $enableval in
6663    yes) enable_fast_install=yes ;;
6664    no) enable_fast_install=no ;;
6665    *)
6666      enable_fast_install=no
6667      # Look at the argument we got.  We use all the common list separators.
6668      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6669      for pkg in $enableval; do
6670        IFS="$lt_save_ifs"
6671        if test "X$pkg" = "X$p"; then
6672          enable_fast_install=yes
6673        fi
6674      done
6675      IFS="$lt_save_ifs"
6676      ;;
6677    esac
6678else
6679  enable_fast_install=yes
6680fi;
6681
6682echo "$as_me:$LINENO: checking host system type" >&5
6683echo $ECHO_N "checking host system type... $ECHO_C" >&6
6684if test "${ac_cv_host+set}" = set; then
6685  echo $ECHO_N "(cached) $ECHO_C" >&6
6686else
6687  ac_cv_host_alias=$host_alias
6688test -z "$ac_cv_host_alias" &&
6689  ac_cv_host_alias=$ac_cv_build_alias
6690ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6691  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6692echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6693   { (exit 1); exit 1; }; }
6694
6695fi
6696echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6697echo "${ECHO_T}$ac_cv_host" >&6
6698host=$ac_cv_host
6699host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6700host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6701host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6702
6703
6704echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6705echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6706if test "${lt_cv_path_SED+set}" = set; then
6707  echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709  # Loop through the user's path and test for sed and gsed.
6710# Then use that list of sed's as ones to test for truncation.
6711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714  IFS=$as_save_IFS
6715  test -z "$as_dir" && as_dir=.
6716  for lt_ac_prog in sed gsed; do
6717    for ac_exec_ext in '' $ac_executable_extensions; do
6718      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6719        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6720      fi
6721    done
6722  done
6723done
6724lt_ac_max=0
6725lt_ac_count=0
6726# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6727# along with /bin/sed that truncates output.
6728for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6729  test ! -f $lt_ac_sed && continue
6730  cat /dev/null > conftest.in
6731  lt_ac_count=0
6732  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6733  # Check for GNU sed and select it if it is found.
6734  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6735    lt_cv_path_SED=$lt_ac_sed
6736    break
6737  fi
6738  while true; do
6739    cat conftest.in conftest.in >conftest.tmp
6740    mv conftest.tmp conftest.in
6741    cp conftest.in conftest.nl
6742    echo >>conftest.nl
6743    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6744    cmp -s conftest.out conftest.nl || break
6745    # 10000 chars as input seems more than enough
6746    test $lt_ac_count -gt 10 && break
6747    lt_ac_count=`expr $lt_ac_count + 1`
6748    if test $lt_ac_count -gt $lt_ac_max; then
6749      lt_ac_max=$lt_ac_count
6750      lt_cv_path_SED=$lt_ac_sed
6751    fi
6752  done
6753done
6754
6755fi
6756
6757SED=$lt_cv_path_SED
6758echo "$as_me:$LINENO: result: $SED" >&5
6759echo "${ECHO_T}$SED" >&6
6760
6761
6762# Check whether --with-gnu-ld or --without-gnu-ld was given.
6763if test "${with_gnu_ld+set}" = set; then
6764  withval="$with_gnu_ld"
6765  test "$withval" = no || with_gnu_ld=yes
6766else
6767  with_gnu_ld=no
6768fi;
6769ac_prog=ld
6770if test "$GCC" = yes; then
6771  # Check if gcc -print-prog-name=ld gives a path.
6772  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6773echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6774  case $host in
6775  *-*-mingw*)
6776    # gcc leaves a trailing carriage return which upsets mingw
6777    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6778  *)
6779    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6780  esac
6781  case $ac_prog in
6782    # Accept absolute paths.
6783    [\\/]* | ?:[\\/]*)
6784      re_direlt='/[^/][^/]*/\.\./'
6785      # Canonicalize the pathname of ld
6786      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6787      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6788        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6789      done
6790      test -z "$LD" && LD="$ac_prog"
6791      ;;
6792  "")
6793    # If it fails, then pretend we aren't using GCC.
6794    ac_prog=ld
6795    ;;
6796  *)
6797    # If it is relative, then search for the first ld in PATH.
6798    with_gnu_ld=unknown
6799    ;;
6800  esac
6801elif test "$with_gnu_ld" = yes; then
6802  echo "$as_me:$LINENO: checking for GNU ld" >&5
6803echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6804else
6805  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6806echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6807fi
6808if test "${lt_cv_path_LD+set}" = set; then
6809  echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811  if test -z "$LD"; then
6812  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6813  for ac_dir in $PATH; do
6814    IFS="$lt_save_ifs"
6815    test -z "$ac_dir" && ac_dir=.
6816    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6817      lt_cv_path_LD="$ac_dir/$ac_prog"
6818      # Check to see if the program is GNU ld.  I'd rather use --version,
6819      # but apparently some variants of GNU ld only accept -v.
6820      # Break only if it was the GNU/non-GNU ld that we prefer.
6821      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6822      *GNU* | *'with BFD'*)
6823        test "$with_gnu_ld" != no && break
6824        ;;
6825      *)
6826        test "$with_gnu_ld" != yes && break
6827        ;;
6828      esac
6829    fi
6830  done
6831  IFS="$lt_save_ifs"
6832else
6833  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6834fi
6835fi
6836
6837LD="$lt_cv_path_LD"
6838if test -n "$LD"; then
6839  echo "$as_me:$LINENO: result: $LD" >&5
6840echo "${ECHO_T}$LD" >&6
6841else
6842  echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6
6844fi
6845test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6846echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6847   { (exit 1); exit 1; }; }
6848echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6849echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6850if test "${lt_cv_prog_gnu_ld+set}" = set; then
6851  echo $ECHO_N "(cached) $ECHO_C" >&6
6852else
6853  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6854case `$LD -v 2>&1 </dev/null` in
6855*GNU* | *'with BFD'*)
6856  lt_cv_prog_gnu_ld=yes
6857  ;;
6858*)
6859  lt_cv_prog_gnu_ld=no
6860  ;;
6861esac
6862fi
6863echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6864echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6865with_gnu_ld=$lt_cv_prog_gnu_ld
6866
6867
6868echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6869echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6870if test "${lt_cv_ld_reload_flag+set}" = set; then
6871  echo $ECHO_N "(cached) $ECHO_C" >&6
6872else
6873  lt_cv_ld_reload_flag='-r'
6874fi
6875echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6876echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6877reload_flag=$lt_cv_ld_reload_flag
6878case $reload_flag in
6879"" | " "*) ;;
6880*) reload_flag=" $reload_flag" ;;
6881esac
6882reload_cmds='$LD$reload_flag -o $output$reload_objs'
6883case $host_os in
6884  darwin*)
6885    if test "$GCC" = yes; then
6886      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6887    else
6888      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6889    fi
6890    ;;
6891esac
6892
6893echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6894echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6895if test "${lt_cv_path_NM+set}" = set; then
6896  echo $ECHO_N "(cached) $ECHO_C" >&6
6897else
6898  if test -n "$NM"; then
6899  # Let the user override the test.
6900  lt_cv_path_NM="$NM"
6901else
6902  lt_nm_to_check="${ac_tool_prefix}nm"
6903  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6904    lt_nm_to_check="$lt_nm_to_check nm"
6905  fi
6906  for lt_tmp_nm in $lt_nm_to_check; do
6907    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6908    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6909      IFS="$lt_save_ifs"
6910      test -z "$ac_dir" && ac_dir=.
6911      tmp_nm="$ac_dir/$lt_tmp_nm"
6912      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6913        # Check to see if the nm accepts a BSD-compat flag.
6914        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6915        #   nm: unknown option "B" ignored
6916        # Tru64's nm complains that /dev/null is an invalid object file
6917        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6918        */dev/null* | *'Invalid file or object type'*)
6919          lt_cv_path_NM="$tmp_nm -B"
6920          break
6921          ;;
6922        *)
6923          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6924          */dev/null*)
6925            lt_cv_path_NM="$tmp_nm -p"
6926            break
6927            ;;
6928          *)
6929            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6930            continue # so that we can try to find one that supports BSD flags
6931            ;;
6932          esac
6933          ;;
6934        esac
6935      fi
6936    done
6937    IFS="$lt_save_ifs"
6938  done
6939  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6940fi
6941fi
6942echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6943echo "${ECHO_T}$lt_cv_path_NM" >&6
6944NM="$lt_cv_path_NM"
6945
6946echo "$as_me:$LINENO: checking whether ln -s works" >&5
6947echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6948LN_S=$as_ln_s
6949if test "$LN_S" = "ln -s"; then
6950  echo "$as_me:$LINENO: result: yes" >&5
6951echo "${ECHO_T}yes" >&6
6952else
6953  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6954echo "${ECHO_T}no, using $LN_S" >&6
6955fi
6956
6957echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6958echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6959if test "${lt_cv_deplibs_check_method+set}" = set; then
6960  echo $ECHO_N "(cached) $ECHO_C" >&6
6961else
6962  lt_cv_file_magic_cmd='$MAGIC_CMD'
6963lt_cv_file_magic_test_file=
6964lt_cv_deplibs_check_method='unknown'
6965# Need to set the preceding variable on all platforms that support
6966# interlibrary dependencies.
6967# 'none' -- dependencies not supported.
6968# `unknown' -- same as none, but documents that we really don't know.
6969# 'pass_all' -- all dependencies passed with no checks.
6970# 'test_compile' -- check by making test program.
6971# 'file_magic [[regex]]' -- check by looking for files in library path
6972# which responds to the $file_magic_cmd with a given extended regex.
6973# If you have `file' or equivalent on your system and you're not sure
6974# whether `pass_all' will *always* work, you probably want this one.
6975
6976case $host_os in
6977aix4* | aix5*)
6978  lt_cv_deplibs_check_method=pass_all
6979  ;;
6980
6981beos*)
6982  lt_cv_deplibs_check_method=pass_all
6983  ;;
6984
6985bsdi[45]*)
6986  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6987  lt_cv_file_magic_cmd='/usr/bin/file -L'
6988  lt_cv_file_magic_test_file=/shlib/libc.so
6989  ;;
6990
6991cygwin*)
6992  # func_win32_libid is a shell function defined in ltmain.sh
6993  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6994  lt_cv_file_magic_cmd='func_win32_libid'
6995  ;;
6996
6997mingw* | pw32*)
6998  # Base MSYS/MinGW do not provide the 'file' command needed by
6999  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7000  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7001  lt_cv_file_magic_cmd='$OBJDUMP -f'
7002  ;;
7003
7004darwin* | rhapsody*)
7005  lt_cv_deplibs_check_method=pass_all
7006  ;;
7007
7008freebsd* | kfreebsd*-gnu | dragonfly*)
7009  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7010    case $host_cpu in
7011    i*86 )
7012      # Not sure whether the presence of OpenBSD here was a mistake.
7013      # Let's accept both of them until this is cleared up.
7014      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7015      lt_cv_file_magic_cmd=/usr/bin/file
7016      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7017      ;;
7018    esac
7019  else
7020    lt_cv_deplibs_check_method=pass_all
7021  fi
7022  ;;
7023
7024gnu*)
7025  lt_cv_deplibs_check_method=pass_all
7026  ;;
7027
7028hpux10.20* | hpux11*)
7029  lt_cv_file_magic_cmd=/usr/bin/file
7030  case $host_cpu in
7031  ia64*)
7032    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7033    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7034    ;;
7035  hppa*64*)
7036    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]'
7037    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7038    ;;
7039  *)
7040    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7041    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7042    ;;
7043  esac
7044  ;;
7045
7046interix3*)
7047  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7048  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7049  ;;
7050
7051irix5* | irix6* | nonstopux*)
7052  case $LD in
7053  *-32|*"-32 ") libmagic=32-bit;;
7054  *-n32|*"-n32 ") libmagic=N32;;
7055  *-64|*"-64 ") libmagic=64-bit;;
7056  *) libmagic=never-match;;
7057  esac
7058  lt_cv_deplibs_check_method=pass_all
7059  ;;
7060
7061# This must be Linux ELF.
7062linux*)
7063  lt_cv_deplibs_check_method=pass_all
7064  ;;
7065
7066netbsd*)
7067  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7068    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7069  else
7070    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7071  fi
7072  ;;
7073
7074newos6*)
7075  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7076  lt_cv_file_magic_cmd=/usr/bin/file
7077  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7078  ;;
7079
7080nto-qnx*)
7081  lt_cv_deplibs_check_method=unknown
7082  ;;
7083
7084openbsd*)
7085  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7086    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7087  else
7088    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7089  fi
7090  ;;
7091
7092osf3* | osf4* | osf5*)
7093  lt_cv_deplibs_check_method=pass_all
7094  ;;
7095
7096solaris*)
7097  lt_cv_deplibs_check_method=pass_all
7098  ;;
7099
7100sysv4 | sysv4.3*)
7101  case $host_vendor in
7102  motorola)
7103    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]'
7104    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7105    ;;
7106  ncr)
7107    lt_cv_deplibs_check_method=pass_all
7108    ;;
7109  sequent)
7110    lt_cv_file_magic_cmd='/bin/file'
7111    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7112    ;;
7113  sni)
7114    lt_cv_file_magic_cmd='/bin/file'
7115    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7116    lt_cv_file_magic_test_file=/lib/libc.so
7117    ;;
7118  siemens)
7119    lt_cv_deplibs_check_method=pass_all
7120    ;;
7121  pc)
7122    lt_cv_deplibs_check_method=pass_all
7123    ;;
7124  esac
7125  ;;
7126
7127sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7128  lt_cv_deplibs_check_method=pass_all
7129  ;;
7130esac
7131
7132fi
7133echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7134echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7135file_magic_cmd=$lt_cv_file_magic_cmd
7136deplibs_check_method=$lt_cv_deplibs_check_method
7137test -z "$deplibs_check_method" && deplibs_check_method=unknown
7138
7139
7140
7141
7142# If no C compiler was specified, use CC.
7143LTCC=${LTCC-"$CC"}
7144
7145# If no C compiler flags were specified, use CFLAGS.
7146LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7147
7148# Allow CC to be a program name with arguments.
7149compiler=$CC
7150
7151# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7152if test "${enable_libtool_lock+set}" = set; then
7153  enableval="$enable_libtool_lock"
7154
7155fi;
7156test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7157
7158# Some flags need to be propagated to the compiler or linker for good
7159# libtool support.
7160case $host in
7161ia64-*-hpux*)
7162  # Find out which ABI we are using.
7163  echo 'int i;' > conftest.$ac_ext
7164  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165  (eval $ac_compile) 2>&5
7166  ac_status=$?
7167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168  (exit $ac_status); }; then
7169    case `/usr/bin/file conftest.$ac_objext` in
7170    *ELF-32*)
7171      HPUX_IA64_MODE="32"
7172      ;;
7173    *ELF-64*)
7174      HPUX_IA64_MODE="64"
7175      ;;
7176    esac
7177  fi
7178  rm -rf conftest*
7179  ;;
7180*-*-irix6*)
7181  # Find out which ABI we are using.
7182  echo '#line 7182 "configure"' > conftest.$ac_ext
7183  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7184  (eval $ac_compile) 2>&5
7185  ac_status=$?
7186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187  (exit $ac_status); }; then
7188   if test "$lt_cv_prog_gnu_ld" = yes; then
7189    case `/usr/bin/file conftest.$ac_objext` in
7190    *32-bit*)
7191      LD="${LD-ld} -melf32bsmip"
7192      ;;
7193    *N32*)
7194      LD="${LD-ld} -melf32bmipn32"
7195      ;;
7196    *64-bit*)
7197      LD="${LD-ld} -melf64bmip"
7198      ;;
7199    esac
7200   else
7201    case `/usr/bin/file conftest.$ac_objext` in
7202    *32-bit*)
7203      LD="${LD-ld} -32"
7204      ;;
7205    *N32*)
7206      LD="${LD-ld} -n32"
7207      ;;
7208    *64-bit*)
7209      LD="${LD-ld} -64"
7210      ;;
7211    esac
7212   fi
7213  fi
7214  rm -rf conftest*
7215  ;;
7216
7217x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7218  # Find out which ABI we are using.
7219  echo 'int i;' > conftest.$ac_ext
7220  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7221  (eval $ac_compile) 2>&5
7222  ac_status=$?
7223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224  (exit $ac_status); }; then
7225    case `/usr/bin/file conftest.o` in
7226    *32-bit*)
7227      case $host in
7228        x86_64-*linux*)
7229          LD="${LD-ld} -m elf_i386"
7230          ;;
7231        ppc64-*linux*|powerpc64-*linux*)
7232          LD="${LD-ld} -m elf32ppclinux"
7233          ;;
7234        s390x-*linux*)
7235          LD="${LD-ld} -m elf_s390"
7236          ;;
7237        sparc64-*linux*)
7238          LD="${LD-ld} -m elf32_sparc"
7239          ;;
7240      esac
7241      ;;
7242    *64-bit*)
7243      case $host in
7244        x86_64-*linux*)
7245          LD="${LD-ld} -m elf_x86_64"
7246          ;;
7247        ppc*-*linux*|powerpc*-*linux*)
7248          LD="${LD-ld} -m elf64ppc"
7249          ;;
7250        s390*-*linux*)
7251          LD="${LD-ld} -m elf64_s390"
7252          ;;
7253        sparc*-*linux*)
7254          LD="${LD-ld} -m elf64_sparc"
7255          ;;
7256      esac
7257      ;;
7258    esac
7259  fi
7260  rm -rf conftest*
7261  ;;
7262
7263*-*-sco3.2v5*)
7264  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7265  SAVE_CFLAGS="$CFLAGS"
7266  CFLAGS="$CFLAGS -belf"
7267  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7268echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7269if test "${lt_cv_cc_needs_belf+set}" = set; then
7270  echo $ECHO_N "(cached) $ECHO_C" >&6
7271else
7272  ac_ext=c
7273ac_cpp='$CPP $CPPFLAGS'
7274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276ac_compiler_gnu=$ac_cv_c_compiler_gnu
7277
7278     cat >conftest.$ac_ext <<_ACEOF
7279/* confdefs.h.  */
7280_ACEOF
7281cat confdefs.h >>conftest.$ac_ext
7282cat >>conftest.$ac_ext <<_ACEOF
7283/* end confdefs.h.  */
7284
7285#ifdef F77_DUMMY_MAIN
7286
7287#  ifdef __cplusplus
7288     extern "C"
7289#  endif
7290   int F77_DUMMY_MAIN() { return 1; }
7291
7292#endif
7293int
7294main ()
7295{
7296
7297  ;
7298  return 0;
7299}
7300_ACEOF
7301rm -f conftest.$ac_objext conftest$ac_exeext
7302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7303  (eval $ac_link) 2>conftest.er1
7304  ac_status=$?
7305  grep -v '^ *+' conftest.er1 >conftest.err
7306  rm -f conftest.er1
7307  cat conftest.err >&5
7308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309  (exit $ac_status); } &&
7310         { ac_try='test -z "$ac_c_werror_flag"
7311                         || test ! -s conftest.err'
7312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313  (eval $ac_try) 2>&5
7314  ac_status=$?
7315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316  (exit $ac_status); }; } &&
7317         { ac_try='test -s conftest$ac_exeext'
7318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319  (eval $ac_try) 2>&5
7320  ac_status=$?
7321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322  (exit $ac_status); }; }; then
7323  lt_cv_cc_needs_belf=yes
7324else
7325  echo "$as_me: failed program was:" >&5
7326sed 's/^/| /' conftest.$ac_ext >&5
7327
7328lt_cv_cc_needs_belf=no
7329fi
7330rm -f conftest.err conftest.$ac_objext \
7331      conftest$ac_exeext conftest.$ac_ext
7332     ac_ext=c
7333ac_cpp='$CPP $CPPFLAGS'
7334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337
7338fi
7339echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7340echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7341  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7342    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7343    CFLAGS="$SAVE_CFLAGS"
7344  fi
7345  ;;
7346sparc*-*solaris*)
7347  # Find out which ABI we are using.
7348  echo 'int i;' > conftest.$ac_ext
7349  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7350  (eval $ac_compile) 2>&5
7351  ac_status=$?
7352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353  (exit $ac_status); }; then
7354    case `/usr/bin/file conftest.o` in
7355    *64-bit*)
7356      case $lt_cv_prog_gnu_ld in
7357      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7358      *)    LD="${LD-ld} -64" ;;
7359      esac
7360      ;;
7361    esac
7362  fi
7363  rm -rf conftest*
7364  ;;
7365
7366
7367esac
7368
7369need_locks="$enable_libtool_lock"
7370
7371
7372ac_ext=c
7373ac_cpp='$CPP $CPPFLAGS'
7374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376ac_compiler_gnu=$ac_cv_c_compiler_gnu
7377echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7378echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7379# On Suns, sometimes $CPP names a directory.
7380if test -n "$CPP" && test -d "$CPP"; then
7381  CPP=
7382fi
7383if test -z "$CPP"; then
7384  if test "${ac_cv_prog_CPP+set}" = set; then
7385  echo $ECHO_N "(cached) $ECHO_C" >&6
7386else
7387      # Double quotes because CPP needs to be expanded
7388    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7389    do
7390      ac_preproc_ok=false
7391for ac_c_preproc_warn_flag in '' yes
7392do
7393  # Use a header file that comes with gcc, so configuring glibc
7394  # with a fresh cross-compiler works.
7395  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7396  # <limits.h> exists even on freestanding compilers.
7397  # On the NeXT, cc -E runs the code through the compiler's parser,
7398  # not just through cpp. "Syntax error" is here to catch this case.
7399  cat >conftest.$ac_ext <<_ACEOF
7400/* confdefs.h.  */
7401_ACEOF
7402cat confdefs.h >>conftest.$ac_ext
7403cat >>conftest.$ac_ext <<_ACEOF
7404/* end confdefs.h.  */
7405#ifdef __STDC__
7406# include <limits.h>
7407#else
7408# include <assert.h>
7409#endif
7410                     Syntax error
7411_ACEOF
7412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7413  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7414  ac_status=$?
7415  grep -v '^ *+' conftest.er1 >conftest.err
7416  rm -f conftest.er1
7417  cat conftest.err >&5
7418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419  (exit $ac_status); } >/dev/null; then
7420  if test -s conftest.err; then
7421    ac_cpp_err=$ac_c_preproc_warn_flag
7422    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7423  else
7424    ac_cpp_err=
7425  fi
7426else
7427  ac_cpp_err=yes
7428fi
7429if test -z "$ac_cpp_err"; then
7430  :
7431else
7432  echo "$as_me: failed program was:" >&5
7433sed 's/^/| /' conftest.$ac_ext >&5
7434
7435  # Broken: fails on valid input.
7436continue
7437fi
7438rm -f conftest.err conftest.$ac_ext
7439
7440  # OK, works on sane cases.  Now check whether non-existent headers
7441  # can be detected and how.
7442  cat >conftest.$ac_ext <<_ACEOF
7443/* confdefs.h.  */
7444_ACEOF
7445cat confdefs.h >>conftest.$ac_ext
7446cat >>conftest.$ac_ext <<_ACEOF
7447/* end confdefs.h.  */
7448#include <ac_nonexistent.h>
7449_ACEOF
7450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7451  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7452  ac_status=$?
7453  grep -v '^ *+' conftest.er1 >conftest.err
7454  rm -f conftest.er1
7455  cat conftest.err >&5
7456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457  (exit $ac_status); } >/dev/null; then
7458  if test -s conftest.err; then
7459    ac_cpp_err=$ac_c_preproc_warn_flag
7460    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7461  else
7462    ac_cpp_err=
7463  fi
7464else
7465  ac_cpp_err=yes
7466fi
7467if test -z "$ac_cpp_err"; then
7468  # Broken: success on invalid input.
7469continue
7470else
7471  echo "$as_me: failed program was:" >&5
7472sed 's/^/| /' conftest.$ac_ext >&5
7473
7474  # Passes both tests.
7475ac_preproc_ok=:
7476break
7477fi
7478rm -f conftest.err conftest.$ac_ext
7479
7480done
7481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7482rm -f conftest.err conftest.$ac_ext
7483if $ac_preproc_ok; then
7484  break
7485fi
7486
7487    done
7488    ac_cv_prog_CPP=$CPP
7489
7490fi
7491  CPP=$ac_cv_prog_CPP
7492else
7493  ac_cv_prog_CPP=$CPP
7494fi
7495echo "$as_me:$LINENO: result: $CPP" >&5
7496echo "${ECHO_T}$CPP" >&6
7497ac_preproc_ok=false
7498for ac_c_preproc_warn_flag in '' yes
7499do
7500  # Use a header file that comes with gcc, so configuring glibc
7501  # with a fresh cross-compiler works.
7502  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7503  # <limits.h> exists even on freestanding compilers.
7504  # On the NeXT, cc -E runs the code through the compiler's parser,
7505  # not just through cpp. "Syntax error" is here to catch this case.
7506  cat >conftest.$ac_ext <<_ACEOF
7507/* confdefs.h.  */
7508_ACEOF
7509cat confdefs.h >>conftest.$ac_ext
7510cat >>conftest.$ac_ext <<_ACEOF
7511/* end confdefs.h.  */
7512#ifdef __STDC__
7513# include <limits.h>
7514#else
7515# include <assert.h>
7516#endif
7517                     Syntax error
7518_ACEOF
7519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7520  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7521  ac_status=$?
7522  grep -v '^ *+' conftest.er1 >conftest.err
7523  rm -f conftest.er1
7524  cat conftest.err >&5
7525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526  (exit $ac_status); } >/dev/null; then
7527  if test -s conftest.err; then
7528    ac_cpp_err=$ac_c_preproc_warn_flag
7529    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7530  else
7531    ac_cpp_err=
7532  fi
7533else
7534  ac_cpp_err=yes
7535fi
7536if test -z "$ac_cpp_err"; then
7537  :
7538else
7539  echo "$as_me: failed program was:" >&5
7540sed 's/^/| /' conftest.$ac_ext >&5
7541
7542  # Broken: fails on valid input.
7543continue
7544fi
7545rm -f conftest.err conftest.$ac_ext
7546
7547  # OK, works on sane cases.  Now check whether non-existent headers
7548  # can be detected and how.
7549  cat >conftest.$ac_ext <<_ACEOF
7550/* confdefs.h.  */
7551_ACEOF
7552cat confdefs.h >>conftest.$ac_ext
7553cat >>conftest.$ac_ext <<_ACEOF
7554/* end confdefs.h.  */
7555#include <ac_nonexistent.h>
7556_ACEOF
7557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7558  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7559  ac_status=$?
7560  grep -v '^ *+' conftest.er1 >conftest.err
7561  rm -f conftest.er1
7562  cat conftest.err >&5
7563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564  (exit $ac_status); } >/dev/null; then
7565  if test -s conftest.err; then
7566    ac_cpp_err=$ac_c_preproc_warn_flag
7567    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7568  else
7569    ac_cpp_err=
7570  fi
7571else
7572  ac_cpp_err=yes
7573fi
7574if test -z "$ac_cpp_err"; then
7575  # Broken: success on invalid input.
7576continue
7577else
7578  echo "$as_me: failed program was:" >&5
7579sed 's/^/| /' conftest.$ac_ext >&5
7580
7581  # Passes both tests.
7582ac_preproc_ok=:
7583break
7584fi
7585rm -f conftest.err conftest.$ac_ext
7586
7587done
7588# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7589rm -f conftest.err conftest.$ac_ext
7590if $ac_preproc_ok; then
7591  :
7592else
7593  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7594See \`config.log' for more details." >&5
7595echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7596See \`config.log' for more details." >&2;}
7597   { (exit 1); exit 1; }; }
7598fi
7599
7600ac_ext=c
7601ac_cpp='$CPP $CPPFLAGS'
7602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7604ac_compiler_gnu=$ac_cv_c_compiler_gnu
7605
7606
7607echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7608echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7609if test "${ac_cv_header_stdc+set}" = set; then
7610  echo $ECHO_N "(cached) $ECHO_C" >&6
7611else
7612  cat >conftest.$ac_ext <<_ACEOF
7613/* confdefs.h.  */
7614_ACEOF
7615cat confdefs.h >>conftest.$ac_ext
7616cat >>conftest.$ac_ext <<_ACEOF
7617/* end confdefs.h.  */
7618#include <stdlib.h>
7619#include <stdarg.h>
7620#include <string.h>
7621#include <float.h>
7622
7623#ifdef F77_DUMMY_MAIN
7624
7625#  ifdef __cplusplus
7626     extern "C"
7627#  endif
7628   int F77_DUMMY_MAIN() { return 1; }
7629
7630#endif
7631int
7632main ()
7633{
7634
7635  ;
7636  return 0;
7637}
7638_ACEOF
7639rm -f conftest.$ac_objext
7640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7641  (eval $ac_compile) 2>conftest.er1
7642  ac_status=$?
7643  grep -v '^ *+' conftest.er1 >conftest.err
7644  rm -f conftest.er1
7645  cat conftest.err >&5
7646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647  (exit $ac_status); } &&
7648         { ac_try='test -z "$ac_c_werror_flag"
7649                         || test ! -s conftest.err'
7650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651  (eval $ac_try) 2>&5
7652  ac_status=$?
7653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654  (exit $ac_status); }; } &&
7655         { ac_try='test -s conftest.$ac_objext'
7656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657  (eval $ac_try) 2>&5
7658  ac_status=$?
7659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660  (exit $ac_status); }; }; then
7661  ac_cv_header_stdc=yes
7662else
7663  echo "$as_me: failed program was:" >&5
7664sed 's/^/| /' conftest.$ac_ext >&5
7665
7666ac_cv_header_stdc=no
7667fi
7668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7669
7670if test $ac_cv_header_stdc = yes; then
7671  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7672  cat >conftest.$ac_ext <<_ACEOF
7673/* confdefs.h.  */
7674_ACEOF
7675cat confdefs.h >>conftest.$ac_ext
7676cat >>conftest.$ac_ext <<_ACEOF
7677/* end confdefs.h.  */
7678#include <string.h>
7679
7680_ACEOF
7681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7682  $EGREP "memchr" >/dev/null 2>&1; then
7683  :
7684else
7685  ac_cv_header_stdc=no
7686fi
7687rm -f conftest*
7688
7689fi
7690
7691if test $ac_cv_header_stdc = yes; then
7692  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7693  cat >conftest.$ac_ext <<_ACEOF
7694/* confdefs.h.  */
7695_ACEOF
7696cat confdefs.h >>conftest.$ac_ext
7697cat >>conftest.$ac_ext <<_ACEOF
7698/* end confdefs.h.  */
7699#include <stdlib.h>
7700
7701_ACEOF
7702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7703  $EGREP "free" >/dev/null 2>&1; then
7704  :
7705else
7706  ac_cv_header_stdc=no
7707fi
7708rm -f conftest*
7709
7710fi
7711
7712if test $ac_cv_header_stdc = yes; then
7713  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7714  if test "$cross_compiling" = yes; then
7715  :
7716else
7717  cat >conftest.$ac_ext <<_ACEOF
7718/* confdefs.h.  */
7719_ACEOF
7720cat confdefs.h >>conftest.$ac_ext
7721cat >>conftest.$ac_ext <<_ACEOF
7722/* end confdefs.h.  */
7723#include <ctype.h>
7724#if ((' ' & 0x0FF) == 0x020)
7725# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7726# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7727#else
7728# define ISLOWER(c) \
7729                   (('a' <= (c) && (c) <= 'i') \
7730                     || ('j' <= (c) && (c) <= 'r') \
7731                     || ('s' <= (c) && (c) <= 'z'))
7732# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7733#endif
7734
7735#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7736int
7737main ()
7738{
7739  int i;
7740  for (i = 0; i < 256; i++)
7741    if (XOR (islower (i), ISLOWER (i))
7742        || toupper (i) != TOUPPER (i))
7743      exit(2);
7744  exit (0);
7745}
7746_ACEOF
7747rm -f conftest$ac_exeext
7748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7749  (eval $ac_link) 2>&5
7750  ac_status=$?
7751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754  (eval $ac_try) 2>&5
7755  ac_status=$?
7756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757  (exit $ac_status); }; }; then
7758  :
7759else
7760  echo "$as_me: program exited with status $ac_status" >&5
7761echo "$as_me: failed program was:" >&5
7762sed 's/^/| /' conftest.$ac_ext >&5
7763
7764( exit $ac_status )
7765ac_cv_header_stdc=no
7766fi
7767rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7768fi
7769fi
7770fi
7771echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7772echo "${ECHO_T}$ac_cv_header_stdc" >&6
7773if test $ac_cv_header_stdc = yes; then
7774
7775cat >>confdefs.h <<\_ACEOF
7776#define STDC_HEADERS 1
7777_ACEOF
7778
7779fi
7780
7781# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7792                  inttypes.h stdint.h unistd.h
7793do
7794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7795echo "$as_me:$LINENO: checking for $ac_header" >&5
7796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7797if eval "test \"\${$as_ac_Header+set}\" = set"; then
7798  echo $ECHO_N "(cached) $ECHO_C" >&6
7799else
7800  cat >conftest.$ac_ext <<_ACEOF
7801/* confdefs.h.  */
7802_ACEOF
7803cat confdefs.h >>conftest.$ac_ext
7804cat >>conftest.$ac_ext <<_ACEOF
7805/* end confdefs.h.  */
7806$ac_includes_default
7807
7808#include <$ac_header>
7809_ACEOF
7810rm -f conftest.$ac_objext
7811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7812  (eval $ac_compile) 2>conftest.er1
7813  ac_status=$?
7814  grep -v '^ *+' conftest.er1 >conftest.err
7815  rm -f conftest.er1
7816  cat conftest.err >&5
7817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818  (exit $ac_status); } &&
7819         { ac_try='test -z "$ac_c_werror_flag"
7820                         || test ! -s conftest.err'
7821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822  (eval $ac_try) 2>&5
7823  ac_status=$?
7824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825  (exit $ac_status); }; } &&
7826         { ac_try='test -s conftest.$ac_objext'
7827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828  (eval $ac_try) 2>&5
7829  ac_status=$?
7830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831  (exit $ac_status); }; }; then
7832  eval "$as_ac_Header=yes"
7833else
7834  echo "$as_me: failed program was:" >&5
7835sed 's/^/| /' conftest.$ac_ext >&5
7836
7837eval "$as_ac_Header=no"
7838fi
7839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7840fi
7841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7843if test `eval echo '${'$as_ac_Header'}'` = yes; then
7844  cat >>confdefs.h <<_ACEOF
7845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7846_ACEOF
7847
7848fi
7849
7850done
7851
7852
7853
7854for ac_header in dlfcn.h
7855do
7856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7857if eval "test \"\${$as_ac_Header+set}\" = set"; then
7858  echo "$as_me:$LINENO: checking for $ac_header" >&5
7859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7860if eval "test \"\${$as_ac_Header+set}\" = set"; then
7861  echo $ECHO_N "(cached) $ECHO_C" >&6
7862fi
7863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7865else
7866  # Is the header compilable?
7867echo "$as_me:$LINENO: checking $ac_header usability" >&5
7868echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7869cat >conftest.$ac_ext <<_ACEOF
7870/* confdefs.h.  */
7871_ACEOF
7872cat confdefs.h >>conftest.$ac_ext
7873cat >>conftest.$ac_ext <<_ACEOF
7874/* end confdefs.h.  */
7875$ac_includes_default
7876#include <$ac_header>
7877_ACEOF
7878rm -f conftest.$ac_objext
7879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7880  (eval $ac_compile) 2>conftest.er1
7881  ac_status=$?
7882  grep -v '^ *+' conftest.er1 >conftest.err
7883  rm -f conftest.er1
7884  cat conftest.err >&5
7885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886  (exit $ac_status); } &&
7887         { ac_try='test -z "$ac_c_werror_flag"
7888                         || test ! -s conftest.err'
7889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890  (eval $ac_try) 2>&5
7891  ac_status=$?
7892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893  (exit $ac_status); }; } &&
7894         { ac_try='test -s conftest.$ac_objext'
7895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896  (eval $ac_try) 2>&5
7897  ac_status=$?
7898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899  (exit $ac_status); }; }; then
7900  ac_header_compiler=yes
7901else
7902  echo "$as_me: failed program was:" >&5
7903sed 's/^/| /' conftest.$ac_ext >&5
7904
7905ac_header_compiler=no
7906fi
7907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7908echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7909echo "${ECHO_T}$ac_header_compiler" >&6
7910
7911# Is the header present?
7912echo "$as_me:$LINENO: checking $ac_header presence" >&5
7913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7914cat >conftest.$ac_ext <<_ACEOF
7915/* confdefs.h.  */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h.  */
7920#include <$ac_header>
7921_ACEOF
7922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7923  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7924  ac_status=$?
7925  grep -v '^ *+' conftest.er1 >conftest.err
7926  rm -f conftest.er1
7927  cat conftest.err >&5
7928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929  (exit $ac_status); } >/dev/null; then
7930  if test -s conftest.err; then
7931    ac_cpp_err=$ac_c_preproc_warn_flag
7932    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7933  else
7934    ac_cpp_err=
7935  fi
7936else
7937  ac_cpp_err=yes
7938fi
7939if test -z "$ac_cpp_err"; then
7940  ac_header_preproc=yes
7941else
7942  echo "$as_me: failed program was:" >&5
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
7945  ac_header_preproc=no
7946fi
7947rm -f conftest.err conftest.$ac_ext
7948echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7949echo "${ECHO_T}$ac_header_preproc" >&6
7950
7951# So?  What about this header?
7952case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7953  yes:no: )
7954    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7955echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7956    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7957echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7958    ac_header_preproc=yes
7959    ;;
7960  no:yes:* )
7961    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7962echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7963    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7964echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7965    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7966echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7967    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7968echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7969    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7971    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7972echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7973    (
7974      cat <<\_ASBOX
7975## ------------------------------------------- ##
7976## Report this to coin-bonmin@list.coin-or.org ##
7977## ------------------------------------------- ##
7978_ASBOX
7979    ) |
7980      sed "s/^/$as_me: WARNING:     /" >&2
7981    ;;
7982esac
7983echo "$as_me:$LINENO: checking for $ac_header" >&5
7984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7985if eval "test \"\${$as_ac_Header+set}\" = set"; then
7986  echo $ECHO_N "(cached) $ECHO_C" >&6
7987else
7988  eval "$as_ac_Header=\$ac_header_preproc"
7989fi
7990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7992
7993fi
7994if test `eval echo '${'$as_ac_Header'}'` = yes; then
7995  cat >>confdefs.h <<_ACEOF
7996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7997_ACEOF
7998
7999fi
8000
8001done
8002
8003
8004
8005if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8006    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8007    (test "X$CXX" != "Xg++"))) ; then
8008  ac_ext=cc
8009ac_cpp='$CXXCPP $CPPFLAGS'
8010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8013echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8014echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8015if test -z "$CXXCPP"; then
8016  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8017  echo $ECHO_N "(cached) $ECHO_C" >&6
8018else
8019      # Double quotes because CXXCPP needs to be expanded
8020    for CXXCPP in "$CXX -E" "/lib/cpp"
8021    do
8022      ac_preproc_ok=false
8023for ac_cxx_preproc_warn_flag in '' yes
8024do
8025  # Use a header file that comes with gcc, so configuring glibc
8026  # with a fresh cross-compiler works.
8027  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8028  # <limits.h> exists even on freestanding compilers.
8029  # On the NeXT, cc -E runs the code through the compiler's parser,
8030  # not just through cpp. "Syntax error" is here to catch this case.
8031  cat >conftest.$ac_ext <<_ACEOF
8032/* confdefs.h.  */
8033_ACEOF
8034cat confdefs.h >>conftest.$ac_ext
8035cat >>conftest.$ac_ext <<_ACEOF
8036/* end confdefs.h.  */
8037#ifdef __STDC__
8038# include <limits.h>
8039#else
8040# include <assert.h>
8041#endif
8042                     Syntax error
8043_ACEOF
8044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8045  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8046  ac_status=$?
8047  grep -v '^ *+' conftest.er1 >conftest.err
8048  rm -f conftest.er1
8049  cat conftest.err >&5
8050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051  (exit $ac_status); } >/dev/null; then
8052  if test -s conftest.err; then
8053    ac_cpp_err=$ac_cxx_preproc_warn_flag
8054    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8055  else
8056    ac_cpp_err=
8057  fi
8058else
8059  ac_cpp_err=yes
8060fi
8061if test -z "$ac_cpp_err"; then
8062  :
8063else
8064  echo "$as_me: failed program was:" >&5
8065sed 's/^/| /' conftest.$ac_ext >&5
8066
8067  # Broken: fails on valid input.
8068continue
8069fi
8070rm -f conftest.err conftest.$ac_ext
8071
8072  # OK, works on sane cases.  Now check whether non-existent headers
8073  # can be detected and how.
8074  cat >conftest.$ac_ext <<_ACEOF
8075/* confdefs.h.  */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
8079/* end confdefs.h.  */
8080#include <ac_nonexistent.h>
8081_ACEOF
8082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8083  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8084  ac_status=$?
8085  grep -v '^ *+' conftest.er1 >conftest.err
8086  rm -f conftest.er1
8087  cat conftest.err >&5
8088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089  (exit $ac_status); } >/dev/null; then
8090  if test -s conftest.err; then
8091    ac_cpp_err=$ac_cxx_preproc_warn_flag
8092    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8093  else
8094    ac_cpp_err=
8095  fi
8096else
8097  ac_cpp_err=yes
8098fi
8099if test -z "$ac_cpp_err"; then
8100  # Broken: success on invalid input.
8101continue
8102else
8103  echo "$as_me: failed program was:" >&5
8104sed 's/^/| /' conftest.$ac_ext >&5
8105
8106  # Passes both tests.
8107ac_preproc_ok=:
8108break
8109fi
8110rm -f conftest.err conftest.$ac_ext
8111
8112done
8113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8114rm -f conftest.err conftest.$ac_ext
8115if $ac_preproc_ok; then
8116  break
8117fi
8118
8119    done
8120    ac_cv_prog_CXXCPP=$CXXCPP
8121
8122fi
8123  CXXCPP=$ac_cv_prog_CXXCPP
8124else
8125  ac_cv_prog_CXXCPP=$CXXCPP
8126fi
8127echo "$as_me:$LINENO: result: $CXXCPP" >&5
8128echo "${ECHO_T}$CXXCPP" >&6
8129ac_preproc_ok=false
8130for ac_cxx_preproc_warn_flag in '' yes
8131do
8132  # Use a header file that comes with gcc, so configuring glibc
8133  # with a fresh cross-compiler works.
8134  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8135  # <limits.h> exists even on freestanding compilers.
8136  # On the NeXT, cc -E runs the code through the compiler's parser,
8137  # not just through cpp. "Syntax error" is here to catch this case.
8138  cat >conftest.$ac_ext <<_ACEOF
8139/* confdefs.h.  */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h.  */
8144#ifdef __STDC__
8145# include <limits.h>
8146#else
8147# include <assert.h>
8148#endif
8149                     Syntax error
8150_ACEOF
8151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8152  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8153  ac_status=$?
8154  grep -v '^ *+' conftest.er1 >conftest.err
8155  rm -f conftest.er1
8156  cat conftest.err >&5
8157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158  (exit $ac_status); } >/dev/null; then
8159  if test -s conftest.err; then
8160    ac_cpp_err=$ac_cxx_preproc_warn_flag
8161    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8162  else
8163    ac_cpp_err=
8164  fi
8165else
8166  ac_cpp_err=yes
8167fi
8168if test -z "$ac_cpp_err"; then
8169  :
8170else
8171  echo "$as_me: failed program was:" >&5
8172sed 's/^/| /' conftest.$ac_ext >&5
8173
8174  # Broken: fails on valid input.
8175continue
8176fi
8177rm -f conftest.err conftest.$ac_ext
8178
8179  # OK, works on sane cases.  Now check whether non-existent headers
8180  # can be detected and how.
8181  cat >conftest.$ac_ext <<_ACEOF
8182/* confdefs.h.  */
8183_ACEOF
8184cat confdefs.h >>conftest.$ac_ext
8185cat >>conftest.$ac_ext <<_ACEOF
8186/* end confdefs.h.  */
8187#include <ac_nonexistent.h>
8188_ACEOF
8189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8190  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8191  ac_status=$?
8192  grep -v '^ *+' conftest.er1 >conftest.err
8193  rm -f conftest.er1
8194  cat conftest.err >&5
8195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196  (exit $ac_status); } >/dev/null; then
8197  if test -s conftest.err; then
8198    ac_cpp_err=$ac_cxx_preproc_warn_flag
8199    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8200  else
8201    ac_cpp_err=
8202  fi
8203else
8204  ac_cpp_err=yes
8205fi
8206if test -z "$ac_cpp_err"; then
8207  # Broken: success on invalid input.
8208continue
8209else
8210  echo "$as_me: failed program was:" >&5
8211sed 's/^/| /' conftest.$ac_ext >&5
8212
8213  # Passes both tests.
8214ac_preproc_ok=:
8215break
8216fi
8217rm -f conftest.err conftest.$ac_ext
8218
8219done
8220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8221rm -f conftest.err conftest.$ac_ext
8222if $ac_preproc_ok; then
8223  :
8224else
8225  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8226See \`config.log' for more details." >&5
8227echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8228See \`config.log' for more details." >&2;}
8229   { (exit 1); exit 1; }; }
8230fi
8231
8232ac_ext=cc
8233ac_cpp='$CXXCPP $CPPFLAGS'
8234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8237
8238fi
8239
8240
8241# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8242
8243# find the maximum length of command line arguments
8244echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8245echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8246if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8247  echo $ECHO_N "(cached) $ECHO_C" >&6
8248else
8249    i=0
8250  teststring="ABCD"
8251
8252  case $build_os in
8253  msdosdjgpp*)
8254    # On DJGPP, this test can blow up pretty badly due to problems in libc
8255    # (any single argument exceeding 2000 bytes causes a buffer overrun
8256    # during glob expansion).  Even if it were fixed, the result of this
8257    # check would be larger than it should be.
8258    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8259    ;;
8260
8261  gnu*)
8262    # Under GNU Hurd, this test is not required because there is
8263    # no limit to the length of command line arguments.
8264    # Libtool will interpret -1 as no limit whatsoever
8265    lt_cv_sys_max_cmd_len=-1;
8266    ;;
8267
8268  cygwin* | mingw*)
8269    # On Win9x/ME, this test blows up -- it succeeds, but takes
8270    # about 5 minutes as the teststring grows exponentially.
8271    # Worse, since 9x/ME are not pre-emptively multitasking,
8272    # you end up with a "frozen" computer, even though with patience
8273    # the test eventually succeeds (with a max line length of 256k).
8274    # Instead, let's just punt: use the minimum linelength reported by
8275    # all of the supported platforms: 8192 (on NT/2K/XP).
8276    lt_cv_sys_max_cmd_len=8192;
8277    ;;
8278
8279  amigaos*)
8280    # On AmigaOS with pdksh, this test takes hours, literally.
8281    # So we just punt and use a minimum line length of 8192.
8282    lt_cv_sys_max_cmd_len=8192;
8283    ;;
8284
8285  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8286    # This has been around since 386BSD, at least.  Likely further.
8287    if test -x /sbin/sysctl; then
8288      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8289    elif test -x /usr/sbin/sysctl; then
8290      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8291    else
8292      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8293    fi
8294    # And add a safety zone
8295    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8296    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8297    ;;
8298
8299  interix*)
8300    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8301    lt_cv_sys_max_cmd_len=196608
8302    ;;
8303
8304  osf*)
8305    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8306    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8307    # nice to cause kernel panics so lets avoid the loop below.
8308    # First set a reasonable default.
8309    lt_cv_sys_max_cmd_len=16384
8310    #
8311    if test -x /sbin/sysconfig; then
8312      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8313        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8314      esac
8315    fi
8316    ;;
8317  sco3.2v5*)
8318    lt_cv_sys_max_cmd_len=102400
8319    ;;
8320  sysv5* | sco5v6* | sysv4.2uw2*)
8321    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8322    if test -n "$kargmax"; then
8323      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8324    else
8325      lt_cv_sys_max_cmd_len=32768
8326    fi
8327    ;;
8328  *)
8329    # If test is not a shell built-in, we'll probably end up computing a
8330    # maximum length that is only half of the actual maximum length, but
8331    # we can't tell.
8332    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8333    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8334               = "XX$teststring") >/dev/null 2>&1 &&
8335            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8336            lt_cv_sys_max_cmd_len=$new_result &&
8337            test $i != 17 # 1/2 MB should be enough
8338    do
8339      i=`expr $i + 1`
8340      teststring=$teststring$teststring
8341    done
8342    teststring=
8343    # Add a significant safety factor because C++ compilers can tack on massive
8344    # amounts of additional arguments before passing them to the linker.
8345    # It appears as though 1/2 is a usable value.
8346    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8347    ;;
8348  esac
8349
8350fi
8351
8352if test -n $lt_cv_sys_max_cmd_len ; then
8353  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8354echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8355else
8356  echo "$as_me:$LINENO: result: none" >&5
8357echo "${ECHO_T}none" >&6
8358fi
8359
8360
8361
8362
8363# Check for command to grab the raw symbol name followed by C symbol from nm.
8364echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8365echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8366if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8367  echo $ECHO_N "(cached) $ECHO_C" >&6
8368else
8369
8370# These are sane defaults that work on at least a few old systems.
8371# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8372
8373# Character class describing NM global symbol codes.
8374symcode='[BCDEGRST]'
8375
8376# Regexp to match symbols that can be accessed directly from C.
8377sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8378
8379# Transform an extracted symbol line into a proper C declaration
8380lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8381
8382# Transform an extracted symbol line into symbol name and symbol address
8383lt_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'"
8384
8385# Define system-specific variables.
8386case $host_os in
8387aix*)
8388  symcode='[BCDT]'
8389  ;;
8390cygwin* | mingw* | pw32*)
8391  symcode='[ABCDGISTW]'
8392  ;;
8393hpux*) # Its linker distinguishes data from code symbols
8394  if test "$host_cpu" = ia64; then
8395    symcode='[ABCDEGRST]'
8396  fi
8397  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8398  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'"
8399  ;;
8400linux*)
8401  if test "$host_cpu" = ia64; then
8402    symcode='[ABCDGIRSTW]'
8403    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8404    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'"
8405  fi
8406  ;;
8407irix* | nonstopux*)
8408  symcode='[BCDEGRST]'
8409  ;;
8410osf*)
8411  symcode='[BCDEGQRST]'
8412  ;;
8413solaris*)
8414  symcode='[BDRT]'
8415  ;;
8416sco3.2v5*)
8417  symcode='[DT]'
8418  ;;
8419sysv4.2uw2*)
8420  symcode='[DT]'
8421  ;;
8422sysv5* | sco5v6* | unixware* | OpenUNIX*)
8423  symcode='[ABDT]'
8424  ;;
8425sysv4)
8426  symcode='[DFNSTU]'
8427  ;;
8428esac
8429
8430# Handle CRLF in mingw tool chain
8431opt_cr=
8432case $build_os in
8433mingw*)
8434  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8435  ;;
8436esac
8437
8438# If we're using GNU nm, then use its standard symbol codes.
8439case `$NM -V 2>&1` in
8440*GNU* | *'with BFD'*)
8441  symcode='[ABCDGIRSTW]' ;;
8442esac
8443
8444# Try without a prefix undercore, then with it.
8445for ac_symprfx in "" "_"; do
8446
8447  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8448  symxfrm="\\1 $ac_symprfx\\2 \\2"
8449
8450  # Write the raw and C identifiers.
8451  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8452
8453  # Check to see that the pipe works correctly.
8454  pipe_works=no
8455
8456  rm -f conftest*
8457  cat > conftest.$ac_ext <<EOF
8458#ifdef __cplusplus
8459extern "C" {
8460#endif
8461char nm_test_var;
8462void nm_test_func(){}
8463#ifdef __cplusplus
8464}
8465#endif
8466int main(){nm_test_var='a';nm_test_func();return(0);}
8467EOF
8468
8469  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470  (eval $ac_compile) 2>&5
8471  ac_status=$?
8472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473  (exit $ac_status); }; then
8474    # Now try to grab the symbols.
8475    nlist=conftest.nm
8476    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8477  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8478  ac_status=$?
8479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480  (exit $ac_status); } && test -s "$nlist"; then
8481      # Try sorting and uniquifying the output.
8482      if sort "$nlist" | uniq > "$nlist"T; then
8483        mv -f "$nlist"T "$nlist"
8484      else
8485        rm -f "$nlist"T
8486      fi
8487
8488      # Make sure that we snagged all the symbols we need.
8489      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8490        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8491          cat <<EOF > conftest.$ac_ext
8492#ifdef __cplusplus
8493extern "C" {
8494#endif
8495
8496EOF
8497          # Now generate the symbol file.
8498          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8499
8500          cat <<EOF >> conftest.$ac_ext
8501#if defined (__STDC__) && __STDC__
8502# define lt_ptr_t void *
8503#else
8504# define lt_ptr_t char *
8505# define const
8506#endif
8507
8508/* The mapping between symbol names and symbols. */
8509const struct {
8510  const char *name;
8511  lt_ptr_t address;
8512}
8513lt_preloaded_symbols[] =
8514{
8515EOF
8516          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8517          cat <<\EOF >> conftest.$ac_ext
8518  {0, (lt_ptr_t) 0}
8519};
8520
8521#ifdef __cplusplus
8522}
8523#endif
8524EOF
8525          # Now try linking the two files.
8526          mv conftest.$ac_objext conftstm.$ac_objext
8527          lt_save_LIBS="$LIBS"
8528          lt_save_CFLAGS="$CFLAGS"
8529          LIBS="conftstm.$ac_objext"
8530          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8531          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532  (eval $ac_link) 2>&5
8533  ac_status=$?
8534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8536            pipe_works=yes
8537          fi
8538          LIBS="$lt_save_LIBS"
8539          CFLAGS="$lt_save_CFLAGS"
8540        else
8541          echo "cannot find nm_test_func in $nlist" >&5
8542        fi
8543      else
8544        echo "cannot find nm_test_var in $nlist" >&5
8545      fi
8546    else
8547      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8548    fi
8549  else
8550    echo "$progname: failed program was:" >&5
8551    cat conftest.$ac_ext >&5
8552  fi
8553  rm -f conftest* conftst*
8554
8555  # Do not use the global_symbol_pipe unless it works.
8556  if test "$pipe_works" = yes; then
8557    break
8558  else
8559    lt_cv_sys_global_symbol_pipe=
8560  fi
8561done
8562
8563fi
8564
8565if test -z "$lt_cv_sys_global_symbol_pipe"; then
8566  lt_cv_sys_global_symbol_to_cdecl=
8567fi
8568if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8569  echo "$as_me:$LINENO: result: failed" >&5
8570echo "${ECHO_T}failed" >&6
8571else
8572  echo "$as_me:$LINENO: result: ok" >&5
8573echo "${ECHO_T}ok" >&6
8574fi
8575
8576echo "$as_me:$LINENO: checking for objdir" >&5
8577echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8578if test "${lt_cv_objdir+set}" = set; then
8579  echo $ECHO_N "(cached) $ECHO_C" >&6
8580else
8581  rm -f .libs 2>/dev/null
8582mkdir .libs 2>/dev/null
8583if test -d .libs; then
8584  lt_cv_objdir=.libs
8585else
8586  # MS-DOS does not allow filenames that begin with a dot.
8587  lt_cv_objdir=_libs
8588fi
8589rmdir .libs 2>/dev/null
8590fi
8591echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8592echo "${ECHO_T}$lt_cv_objdir" >&6
8593objdir=$lt_cv_objdir
8594
8595
8596
8597
8598
8599case $host_os in
8600aix3*)
8601  # AIX sometimes has problems with the GCC collect2 program.  For some
8602  # reason, if we set the COLLECT_NAMES environment variable, the problems
8603  # vanish in a puff of smoke.
8604  if test "X${COLLECT_NAMES+set}" != Xset; then
8605    COLLECT_NAMES=
8606    export COLLECT_NAMES
8607  fi
8608  ;;
8609esac
8610
8611# Sed substitution that helps us do robust quoting.  It backslashifies
8612# metacharacters that are still active within double-quoted strings.
8613Xsed='sed -e 1s/^X//'
8614sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8615
8616# Same as above, but do not quote variable references.
8617double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8618
8619# Sed substitution to delay expansion of an escaped shell variable in a
8620# double_quote_subst'ed string.
8621delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8622
8623# Sed substitution to avoid accidental globbing in evaled expressions
8624no_glob_subst='s/\*/\\\*/g'
8625
8626# Constants:
8627rm="rm -f"
8628
8629# Global variables:
8630default_ofile=libtool
8631can_build_shared=yes
8632
8633# All known linkers require a `.a' archive for static linking (except MSVC,
8634# which needs '.lib').
8635libext=a
8636ltmain="$ac_aux_dir/ltmain.sh"
8637ofile="$default_ofile"
8638with_gnu_ld="$lt_cv_prog_gnu_ld"
8639
8640if test -n "$ac_tool_prefix"; then
8641  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8642set dummy ${ac_tool_prefix}ar; ac_word=$2
8643echo "$as_me:$LINENO: checking for $ac_word" >&5
8644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8645if test "${ac_cv_prog_AR+set}" = set; then
8646  echo $ECHO_N "(cached) $ECHO_C" >&6
8647else
8648  if test -n "$AR"; then
8649  ac_cv_prog_AR="$AR" # Let the user override the test.
8650else
8651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652for as_dir in $PATH
8653do
8654  IFS=$as_save_IFS
8655  test -z "$as_dir" && as_dir=.
8656  for ac_exec_ext in '' $ac_executable_extensions; do
8657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8658    ac_cv_prog_AR="${ac_tool_prefix}ar"
8659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8660    break 2
8661  fi
8662done
8663done
8664
8665fi
8666fi
8667AR=$ac_cv_prog_AR
8668if test -n "$AR"; then
8669  echo "$as_me:$LINENO: result: $AR" >&5
8670echo "${ECHO_T}$AR" >&6
8671else
8672  echo "$as_me:$LINENO: result: no" >&5
8673echo "${ECHO_T}no" >&6
8674fi
8675
8676fi
8677if test -z "$ac_cv_prog_AR"; then
8678  ac_ct_AR=$AR
8679  # Extract the first word of "ar", so it can be a program name with args.
8680set dummy ar; ac_word=$2
8681echo "$as_me:$LINENO: checking for $ac_word" >&5
8682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8683if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8684  echo $ECHO_N "(cached) $ECHO_C" >&6
8685else
8686  if test -n "$ac_ct_AR"; then
8687  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8688else
8689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690for as_dir in $PATH
8691do
8692  IFS=$as_save_IFS
8693  test -z "$as_dir" && as_dir=.
8694  for ac_exec_ext in '' $ac_executable_extensions; do
8695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8696    ac_cv_prog_ac_ct_AR="ar"
8697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8698    break 2
8699  fi
8700done
8701done
8702
8703  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8704fi
8705fi
8706ac_ct_AR=$ac_cv_prog_ac_ct_AR
8707if test -n "$ac_ct_AR"; then
8708  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8709echo "${ECHO_T}$ac_ct_AR" >&6
8710else
8711  echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6
8713fi
8714
8715  AR=$ac_ct_AR
8716else
8717  AR="$ac_cv_prog_AR"
8718fi
8719
8720if test -n "$ac_tool_prefix"; then
8721  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8722set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8723echo "$as_me:$LINENO: checking for $ac_word" >&5
8724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8725if test "${ac_cv_prog_RANLIB+set}" = set; then
8726  echo $ECHO_N "(cached) $ECHO_C" >&6
8727else
8728  if test -n "$RANLIB"; then
8729  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8730else
8731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732for as_dir in $PATH
8733do
8734  IFS=$as_save_IFS
8735  test -z "$as_dir" && as_dir=.
8736  for ac_exec_ext in '' $ac_executable_extensions; do
8737  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8738    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8739    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8740    break 2
8741  fi
8742done
8743done
8744
8745fi
8746fi
8747RANLIB=$ac_cv_prog_RANLIB
8748if test -n "$RANLIB"; then
8749  echo "$as_me:$LINENO: result: $RANLIB" >&5
8750echo "${ECHO_T}$RANLIB" >&6
8751else
8752  echo "$as_me:$LINENO: result: no" >&5
8753echo "${ECHO_T}no" >&6
8754fi
8755
8756fi
8757if test -z "$ac_cv_prog_RANLIB"; then
8758  ac_ct_RANLIB=$RANLIB
8759  # Extract the first word of "ranlib", so it can be a program name with args.
8760set dummy ranlib; ac_word=$2
8761echo "$as_me:$LINENO: checking for $ac_word" >&5
8762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8763if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8764  echo $ECHO_N "(cached) $ECHO_C" >&6
8765else
8766  if test -n "$ac_ct_RANLIB"; then
8767  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8768else
8769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770for as_dir in $PATH
8771do
8772  IFS=$as_save_IFS
8773  test -z "$as_dir" && as_dir=.
8774  for ac_exec_ext in '' $ac_executable_extensions; do
8775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8776    ac_cv_prog_ac_ct_RANLIB="ranlib"
8777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8778    break 2
8779  fi
8780done
8781done
8782
8783  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8784fi
8785fi
8786ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8787if test -n "$ac_ct_RANLIB"; then
8788  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8789echo "${ECHO_T}$ac_ct_RANLIB" >&6
8790else
8791  echo "$as_me:$LINENO: result: no" >&5
8792echo "${ECHO_T}no" >&6
8793fi
8794
8795  RANLIB=$ac_ct_RANLIB
8796else
8797  RANLIB="$ac_cv_prog_RANLIB"
8798fi
8799
8800if test -n "$ac_tool_prefix"; then
8801  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8802set dummy ${ac_tool_prefix}strip; ac_word=$2
8803echo "$as_me:$LINENO: checking for $ac_word" >&5
8804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8805if test "${ac_cv_prog_STRIP+set}" = set; then
8806  echo $ECHO_N "(cached) $ECHO_C" >&6
8807else
8808  if test -n "$STRIP"; then
8809  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8810else
8811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812for as_dir in $PATH
8813do
8814  IFS=$as_save_IFS
8815  test -z "$as_dir" && as_dir=.
8816  for ac_exec_ext in '' $ac_executable_extensions; do
8817  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8819    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8820    break 2
8821  fi
8822done
8823done
8824
8825fi
8826fi
8827STRIP=$ac_cv_prog_STRIP
8828if test -n "$STRIP"; then
8829  echo "$as_me:$LINENO: result: $STRIP" >&5
8830echo "${ECHO_T}$STRIP" >&6
8831else
8832  echo "$as_me:$LINENO: result: no" >&5
8833echo "${ECHO_T}no" >&6
8834fi
8835
8836fi
8837if test -z "$ac_cv_prog_STRIP"; then
8838  ac_ct_STRIP=$STRIP
8839  # Extract the first word of "strip", so it can be a program name with args.
8840set dummy strip; ac_word=$2
8841echo "$as_me:$LINENO: checking for $ac_word" >&5
8842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8843if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8844  echo $ECHO_N "(cached) $ECHO_C" >&6
8845else
8846  if test -n "$ac_ct_STRIP"; then
8847  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8848else
8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852  IFS=$as_save_IFS
8853  test -z "$as_dir" && as_dir=.
8854  for ac_exec_ext in '' $ac_executable_extensions; do
8855  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856    ac_cv_prog_ac_ct_STRIP="strip"
8857    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8858    break 2
8859  fi
8860done
8861done
8862
8863  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8864fi
8865fi
8866ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8867if test -n "$ac_ct_STRIP"; then
8868  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8869echo "${ECHO_T}$ac_ct_STRIP" >&6
8870else
8871  echo "$as_me:$LINENO: result: no" >&5
8872echo "${ECHO_T}no" >&6
8873fi
8874
8875  STRIP=$ac_ct_STRIP
8876else
8877  STRIP="$ac_cv_prog_STRIP"
8878fi
8879
8880
8881old_CC="$CC"
8882old_CFLAGS="$CFLAGS"
8883
8884# Set sane defaults for various variables
8885test -z "$AR" && AR=ar
8886test -z "$AR_FLAGS" && AR_FLAGS=cru
8887test -z "$AS" && AS=as
8888test -z "$CC" && CC=cc
8889test -z "$LTCC" && LTCC=$CC
8890test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8891test -z "$DLLTOOL" && DLLTOOL=dlltool
8892test -z "$LD" && LD=ld
8893test -z "$LN_S" && LN_S="ln -s"
8894test -z "$MAGIC_CMD" && MAGIC_CMD=file
8895test -z "$NM" && NM=nm
8896test -z "$SED" && SED=sed
8897test -z "$OBJDUMP" && OBJDUMP=objdump
8898test -z "$RANLIB" && RANLIB=:
8899test -z "$STRIP" && STRIP=:
8900test -z "$ac_objext" && ac_objext=o
8901
8902# Determine commands to create old-style static archives.
8903old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8904old_postinstall_cmds='chmod 644 $oldlib'
8905old_postuninstall_cmds=
8906
8907if test -n "$RANLIB"; then
8908  case $host_os in
8909  openbsd*)
8910    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8911    ;;
8912  *)
8913    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8914    ;;
8915  esac
8916  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8917fi
8918
8919for cc_temp in $compiler""; do
8920  case $cc_temp in
8921    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8922    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8923    \-*) ;;
8924    *) break;;
8925  esac
8926done
8927cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8928
8929
8930# Only perform the check for file, if the check method requires it
8931case $deplibs_check_method in
8932file_magic*)
8933  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8934    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8935echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8936if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8937  echo $ECHO_N "(cached) $ECHO_C" >&6
8938else
8939  case $MAGIC_CMD in
8940[\\/*] |  ?:[\\/]*)
8941  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8942  ;;
8943*)
8944  lt_save_MAGIC_CMD="$MAGIC_CMD"
8945  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8946  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8947  for ac_dir in $ac_dummy; do
8948    IFS="$lt_save_ifs"
8949    test -z "$ac_dir" && ac_dir=.
8950    if test -f $ac_dir/${ac_tool_prefix}file; then
8951      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8952      if test -n "$file_magic_test_file"; then
8953        case $deplibs_check_method in
8954        "file_magic "*)
8955          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8956          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8957          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8958            $EGREP "$file_magic_regex" > /dev/null; then
8959            :
8960          else
8961            cat <<EOF 1>&2
8962
8963*** Warning: the command libtool uses to detect shared libraries,
8964*** $file_magic_cmd, produces output that libtool cannot recognize.
8965*** The result is that libtool may fail to recognize shared libraries
8966*** as such.  This will affect the creation of libtool libraries that
8967*** depend on shared libraries, but programs linked with such libtool
8968*** libraries will work regardless of this problem.  Nevertheless, you
8969*** may want to report the problem to your system manager and/or to
8970*** bug-libtool@gnu.org
8971
8972EOF
8973          fi ;;
8974        esac
8975      fi
8976      break
8977    fi
8978  done
8979  IFS="$lt_save_ifs"
8980  MAGIC_CMD="$lt_save_MAGIC_CMD"
8981  ;;
8982esac
8983fi
8984
8985MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8986if test -n "$MAGIC_CMD"; then
8987  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8988echo "${ECHO_T}$MAGIC_CMD" >&6
8989else
8990  echo "$as_me:$LINENO: result: no" >&5
8991echo "${ECHO_T}no" >&6
8992fi
8993
8994if test -z "$lt_cv_path_MAGIC_CMD"; then
8995  if test -n "$ac_tool_prefix"; then
8996    echo "$as_me:$LINENO: checking for file" >&5
8997echo $ECHO_N "checking for file... $ECHO_C" >&6
8998if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8999  echo $ECHO_N "(cached) $ECHO_C" >&6
9000else
9001  case $MAGIC_CMD in
9002[\\/*] |  ?:[\\/]*)
9003  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9004  ;;
9005*)
9006  lt_save_MAGIC_CMD="$MAGIC_CMD"
9007  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9008  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9009  for ac_dir in $ac_dummy; do
9010    IFS="$lt_save_ifs"
9011    test -z "$ac_dir" && ac_dir=.
9012    if test -f $ac_dir/file; then
9013      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9014      if test -n "$file_magic_test_file"; then
9015        case $deplibs_check_method in
9016        "file_magic "*)
9017          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9018          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9019          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9020            $EGREP "$file_magic_regex" > /dev/null; then
9021            :
9022          else
9023            cat <<EOF 1>&2
9024
9025*** Warning: the command libtool uses to detect shared libraries,
9026*** $file_magic_cmd, produces output that libtool cannot recognize.
9027*** The result is that libtool may fail to recognize shared libraries
9028*** as such.  This will affect the creation of libtool libraries that
9029*** depend on shared libraries, but programs linked with such libtool
9030*** libraries will work regardless of this problem.  Nevertheless, you
9031*** may want to report the problem to your system manager and/or to
9032*** bug-libtool@gnu.org
9033
9034EOF
9035          fi ;;
9036        esac
9037      fi
9038      break
9039    fi
9040  done
9041  IFS="$lt_save_ifs"
9042  MAGIC_CMD="$lt_save_MAGIC_CMD"
9043  ;;
9044esac
9045fi
9046
9047MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9048if test -n "$MAGIC_CMD"; then
9049  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9050echo "${ECHO_T}$MAGIC_CMD" >&6
9051else
9052  echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6
9054fi
9055
9056  else
9057    MAGIC_CMD=:
9058  fi
9059fi
9060
9061  fi
9062  ;;
9063esac
9064
9065enable_dlopen=no
9066enable_win32_dll=no
9067
9068# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9069if test "${enable_libtool_lock+set}" = set; then
9070  enableval="$enable_libtool_lock"
9071
9072fi;
9073test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9074
9075
9076# Check whether --with-pic or --without-pic was given.
9077if test "${with_pic+set}" = set; then
9078  withval="$with_pic"
9079  pic_mode="$withval"
9080else
9081  pic_mode=default
9082fi;
9083test -z "$pic_mode" && pic_mode=default
9084
9085# Use C for the default configuration in the libtool script
9086tagname=
9087lt_save_CC="$CC"
9088ac_ext=c
9089ac_cpp='$CPP $CPPFLAGS'
9090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9092ac_compiler_gnu=$ac_cv_c_compiler_gnu
9093
9094
9095# Source file extension for C test sources.
9096ac_ext=c
9097
9098# Object file extension for compiled C test sources.
9099objext=o
9100objext=$objext
9101
9102# Code to be used in simple compile tests
9103lt_simple_compile_test_code="int some_variable = 0;\n"
9104
9105# Code to be used in simple link tests
9106lt_simple_link_test_code='int main(){return(0);}\n'
9107
9108
9109# If no C compiler was specified, use CC.
9110LTCC=${LTCC-"$CC"}
9111
9112# If no C compiler flags were specified, use CFLAGS.
9113LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9114
9115# Allow CC to be a program name with arguments.
9116compiler=$CC
9117
9118
9119# save warnings/boilerplate of simple test code
9120ac_outfile=conftest.$ac_objext
9121printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9122eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9123_lt_compiler_boilerplate=`cat conftest.err`
9124$rm conftest*
9125
9126ac_outfile=conftest.$ac_objext
9127printf "$lt_simple_link_test_code" >conftest.$ac_ext
9128eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9129_lt_linker_boilerplate=`cat conftest.err`
9130$rm conftest*
9131
9132
9133## CAVEAT EMPTOR:
9134## There is no encapsulation within the following macros, do not change
9135## the running order or otherwise move them around unless you know exactly
9136## what you are doing...
9137
9138lt_prog_compiler_no_builtin_flag=
9139
9140if test "$GCC" = yes; then
9141  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9142
9143
9144echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9145echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9146if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9147  echo $ECHO_N "(cached) $ECHO_C" >&6
9148else
9149  lt_cv_prog_compiler_rtti_exceptions=no
9150  ac_outfile=conftest.$ac_objext
9151   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9152   lt_compiler_flag="-fno-rtti -fno-exceptions"
9153   # Insert the option either (1) after the last *FLAGS variable, or
9154   # (2) before a word containing "conftest.", or (3) at the end.
9155   # Note that $ac_compile itself does not contain backslashes and begins
9156   # with a dollar sign (not a hyphen), so the echo should work correctly.
9157   # The option is referenced via a variable to avoid confusing sed.
9158   lt_compile=`echo "$ac_compile" | $SED \
9159   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9160   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9161   -e 's:$: $lt_compiler_flag:'`
9162   (eval echo "\"\$as_me:9162: $lt_compile\"" >&5)
9163   (eval "$lt_compile" 2>conftest.err)
9164   ac_status=$?
9165   cat conftest.err >&5
9166   echo "$as_me:9166: \$? = $ac_status" >&5
9167   if (exit $ac_status) && test -s "$ac_outfile"; then
9168     # The compiler can only warn and ignore the option if not recognized
9169     # So say no if there are warnings other than the usual output.
9170     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9171     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9172     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9173       lt_cv_prog_compiler_rtti_exceptions=yes
9174     fi
9175   fi
9176   $rm conftest*
9177
9178fi
9179echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9180echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9181
9182if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9183    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9184else
9185    :
9186fi
9187
9188fi
9189
9190lt_prog_compiler_wl=
9191lt_prog_compiler_pic=
9192lt_prog_compiler_static=
9193
9194echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9195echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9196
9197  if test "$GCC" = yes; then
9198    lt_prog_compiler_wl='-Wl,'
9199    lt_prog_compiler_static='-static'
9200
9201    case $host_os in
9202      aix*)
9203      # All AIX code is PIC.
9204      if test "$host_cpu" = ia64; then
9205        # AIX 5 now supports IA64 processor
9206        lt_prog_compiler_static='-Bstatic'
9207      fi
9208      ;;
9209
9210    amigaos*)
9211      # FIXME: we need at least 68020 code to build shared libraries, but
9212      # adding the `-m68020' flag to GCC prevents building anything better,
9213      # like `-m68040'.
9214      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9215      ;;
9216
9217    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9218      # PIC is the default for these OSes.
9219      ;;
9220
9221    mingw* | pw32* | os2*)
9222      # This hack is so that the source file can tell whether it is being
9223      # built for inclusion in a dll (and should export symbols for example).
9224      lt_prog_compiler_pic='-DDLL_EXPORT'
9225      ;;
9226
9227    darwin* | rhapsody*)
9228      # PIC is the default on this platform
9229      # Common symbols not allowed in MH_DYLIB files
9230      lt_prog_compiler_pic='-fno-common'
9231      ;;
9232
9233    interix3*)
9234      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9235      # Instead, we relocate shared libraries at runtime.
9236      ;;
9237
9238    msdosdjgpp*)
9239      # Just because we use GCC doesn't mean we suddenly get shared libraries
9240      # on systems that don't support them.
9241      lt_prog_compiler_can_build_shared=no
9242      enable_shared=no
9243      ;;
9244
9245    sysv4*MP*)
9246      if test -d /usr/nec; then
9247        lt_prog_compiler_pic=-Kconform_pic
9248      fi
9249      ;;
9250
9251    hpux*)
9252      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9253      # not for PA HP-UX.
9254      case $host_cpu in
9255      hppa*64*|ia64*)
9256        # +Z the default
9257        ;;
9258      *)
9259        lt_prog_compiler_pic='-fPIC'
9260        ;;
9261      esac
9262      ;;
9263
9264    *)
9265      lt_prog_compiler_pic='-fPIC'
9266      ;;
9267    esac
9268  else
9269    # PORTME Check for flag to pass linker flags through the system compiler.
9270    case $host_os in
9271    aix*)
9272      lt_prog_compiler_wl='-Wl,'
9273      if test "$host_cpu" = ia64; then
9274        # AIX 5 now supports IA64 processor
9275        lt_prog_compiler_static='-Bstatic'
9276      else
9277        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9278      fi
9279      ;;
9280      darwin*)
9281        # PIC is the default on this platform
9282        # Common symbols not allowed in MH_DYLIB files
9283       case $cc_basename in
9284         xlc*)
9285         lt_prog_compiler_pic='-qnocommon'
9286         lt_prog_compiler_wl='-Wl,'
9287         ;;
9288       esac
9289       ;;
9290
9291    mingw* | pw32* | os2*)
9292      # This hack is so that the source file can tell whether it is being
9293      # built for inclusion in a dll (and should export symbols for example).
9294      lt_prog_compiler_pic='-DDLL_EXPORT'
9295      ;;
9296
9297    hpux9* | hpux10* | hpux11*)
9298      lt_prog_compiler_wl='-Wl,'
9299      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9300      # not for PA HP-UX.
9301      case $host_cpu in
9302      hppa*64*|ia64*)
9303        # +Z the default
9304        ;;
9305      *)
9306        lt_prog_compiler_pic='+Z'
9307        ;;
9308      esac
9309      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9310      lt_prog_compiler_static='${wl}-a ${wl}archive'
9311      ;;
9312
9313    irix5* | irix6* | nonstopux*)
9314      lt_prog_compiler_wl='-Wl,'
9315      # PIC (with -KPIC) is the default.
9316      lt_prog_compiler_static='-non_shared'
9317      ;;
9318
9319    newsos6)
9320      lt_prog_compiler_pic='-KPIC'
9321      lt_prog_compiler_static='-Bstatic'
9322      ;;
9323
9324    linux*)
9325      case $cc_basename in
9326      icc* | ecc*)
9327        lt_prog_compiler_wl='-Wl,'
9328        lt_prog_compiler_pic='-KPIC'
9329        lt_prog_compiler_static='-static'
9330        ;;
9331      pgcc* | pgf77* | pgf90* | pgf95*)
9332        # Portland Group compilers (*not* the Pentium gcc compiler,
9333        # which looks to be a dead project)
9334        lt_prog_compiler_wl='-Wl,'
9335        lt_prog_compiler_pic='-fpic'
9336        lt_prog_compiler_static='-Bstatic'
9337        ;;
9338      ccc*)
9339        lt_prog_compiler_wl='-Wl,'
9340        # All Alpha code is PIC.
9341        lt_prog_compiler_static='-non_shared'
9342        ;;
9343      esac
9344      ;;
9345
9346    osf3* | osf4* | osf5*)
9347      lt_prog_compiler_wl='-Wl,'
9348      # All OSF/1 code is PIC.
9349      lt_prog_compiler_static='-non_shared'
9350      ;;
9351
9352    solaris*)
9353      lt_prog_compiler_pic='-KPIC'
9354      lt_prog_compiler_static='-Bstatic'
9355      case $cc_basename in
9356      f77* | f90* | f95*)
9357        lt_prog_compiler_wl='-Qoption ld ';;
9358      *)
9359        lt_prog_compiler_wl='-Wl,';;
9360      esac
9361      ;;
9362
9363    sunos4*)
9364      lt_prog_compiler_wl='-Qoption ld '
9365      lt_prog_compiler_pic='-PIC'
9366      lt_prog_compiler_static='-Bstatic'
9367      ;;
9368
9369    sysv4 | sysv4.2uw2* | sysv4.3*)
9370      lt_prog_compiler_wl='-Wl,'
9371      lt_prog_compiler_pic='-KPIC'
9372      lt_prog_compiler_static='-Bstatic'
9373      ;;
9374
9375    sysv4*MP*)
9376      if test -d /usr/nec ;then
9377        lt_prog_compiler_pic='-Kconform_pic'
9378        lt_prog_compiler_static='-Bstatic'
9379      fi
9380      ;;
9381
9382    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9383      lt_prog_compiler_wl='-Wl,'
9384      lt_prog_compiler_pic='-KPIC'
9385      lt_prog_compiler_static='-Bstatic'
9386      ;;
9387
9388    unicos*)
9389      lt_prog_compiler_wl='-Wl,'
9390      lt_prog_compiler_can_build_shared=no
9391      ;;
9392
9393    uts4*)
9394      lt_prog_compiler_pic='-pic'
9395      lt_prog_compiler_static='-Bstatic'
9396      ;;
9397
9398    *)
9399      lt_prog_compiler_can_build_shared=no
9400      ;;
9401    esac
9402  fi
9403
9404echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9405echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9406
9407#
9408# Check to make sure the PIC flag actually works.
9409#
9410if test -n "$lt_prog_compiler_pic"; then
9411
9412echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9413echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9414if test "${lt_prog_compiler_pic_works+set}" = set; then
9415  echo $ECHO_N "(cached) $ECHO_C" >&6
9416else
9417  lt_prog_compiler_pic_works=no
9418  ac_outfile=conftest.$ac_objext
9419   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9420   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9421   # Insert the option either (1) after the last *FLAGS variable, or
9422   # (2) before a word containing "conftest.", or (3) at the end.
9423   # Note that $ac_compile itself does not contain backslashes and begins
9424   # with a dollar sign (not a hyphen), so the echo should work correctly.
9425   # The option is referenced via a variable to avoid confusing sed.
9426   lt_compile=`echo "$ac_compile" | $SED \
9427   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9428   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9429   -e 's:$: $lt_compiler_flag:'`
9430   (eval echo "\"\$as_me:9430: $lt_compile\"" >&5)
9431   (eval "$lt_compile" 2>conftest.err)
9432   ac_status=$?
9433   cat conftest.err >&5
9434   echo "$as_me:9434: \$? = $ac_status" >&5
9435   if (exit $ac_status) && test -s "$ac_outfile"; then
9436     # The compiler can only warn and ignore the option if not recognized
9437     # So say no if there are warnings other than the usual output.
9438     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9439     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9440     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9441       lt_prog_compiler_pic_works=yes
9442     fi
9443   fi
9444   $rm conftest*
9445
9446fi
9447echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9448echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9449
9450if test x"$lt_prog_compiler_pic_works" = xyes; then
9451    case $lt_prog_compiler_pic in
9452     "" | " "*) ;;
9453     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9454     esac
9455else
9456    lt_prog_compiler_pic=
9457     lt_prog_compiler_can_build_shared=no
9458fi
9459
9460fi
9461case $host_os in
9462  # For platforms which do not support PIC, -DPIC is meaningless:
9463  *djgpp*)
9464    lt_prog_compiler_pic=
9465    ;;
9466  *)
9467    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9468    ;;
9469esac
9470
9471#
9472# Check to make sure the static flag actually works.
9473#
9474wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9475echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9476echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9477if test "${lt_prog_compiler_static_works+set}" = set; then
9478  echo $ECHO_N "(cached) $ECHO_C" >&6
9479else
9480  lt_prog_compiler_static_works=no
9481   save_LDFLAGS="$LDFLAGS"
9482   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9483   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9484   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9485     # The linker can only warn and ignore the option if not recognized
9486     # So say no if there are warnings
9487     if test -s conftest.err; then
9488       # Append any errors to the config.log.
9489       cat conftest.err 1>&5
9490       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9491       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9492       if diff conftest.exp conftest.er2 >/dev/null; then
9493         lt_prog_compiler_static_works=yes
9494       fi
9495     else
9496       lt_prog_compiler_static_works=yes
9497     fi
9498   fi
9499   $rm conftest*
9500   LDFLAGS="$save_LDFLAGS"
9501
9502fi
9503echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9504echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9505
9506if test x"$lt_prog_compiler_static_works" = xyes; then
9507    :
9508else
9509    lt_prog_compiler_static=
9510fi
9511
9512
9513echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9514echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9515if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9516  echo $ECHO_N "(cached) $ECHO_C" >&6
9517else
9518  lt_cv_prog_compiler_c_o=no
9519   $rm -r conftest 2>/dev/null
9520   mkdir conftest
9521   cd conftest
9522   mkdir out
9523   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9524
9525   lt_compiler_flag="-o out/conftest2.$ac_objext"
9526   # Insert the option either (1) after the last *FLAGS variable, or
9527   # (2) before a word containing "conftest.", or (3) at the end.
9528   # Note that $ac_compile itself does not contain backslashes and begins
9529   # with a dollar sign (not a hyphen), so the echo should work correctly.
9530   lt_compile=`echo "$ac_compile" | $SED \
9531   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9532   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9533   -e 's:$: $lt_compiler_flag:'`
9534   (eval echo "\"\$as_me:9534: $lt_compile\"" >&5)
9535   (eval "$lt_compile" 2>out/conftest.err)
9536   ac_status=$?
9537   cat out/conftest.err >&5
9538   echo "$as_me:9538: \$? = $ac_status" >&5
9539   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9540   then
9541     # The compiler can only warn and ignore the option if not recognized
9542     # So say no if there are warnings
9543     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9544     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9545     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9546       lt_cv_prog_compiler_c_o=yes
9547     fi
9548   fi
9549   chmod u+w . 2>&5
9550   $rm conftest*
9551   # SGI C++ compiler will create directory out/ii_files/ for
9552   # template instantiation
9553   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9554   $rm out/* && rmdir out
9555   cd ..
9556   rmdir conftest
9557   $rm conftest*
9558
9559fi
9560echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9561echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9562
9563
9564hard_links="nottested"
9565if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9566  # do not overwrite the value of need_locks provided by the user
9567  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9568echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9569  hard_links=yes
9570  $rm conftest*
9571  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9572  touch conftest.a
9573  ln conftest.a conftest.b 2>&5 || hard_links=no
9574  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9575  echo "$as_me:$LINENO: result: $hard_links" >&5
9576echo "${ECHO_T}$hard_links" >&6
9577  if test "$hard_links" = no; then
9578    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9579echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9580    need_locks=warn
9581  fi
9582else
9583  need_locks=no
9584fi
9585
9586echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9587echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9588
9589  runpath_var=
9590  allow_undefined_flag=
9591  enable_shared_with_static_runtimes=no
9592  archive_cmds=
9593  archive_expsym_cmds=
9594  old_archive_From_new_cmds=
9595  old_archive_from_expsyms_cmds=
9596  export_dynamic_flag_spec=
9597  whole_archive_flag_spec=
9598  thread_safe_flag_spec=
9599  hardcode_libdir_flag_spec=
9600  hardcode_libdir_flag_spec_ld=
9601  hardcode_libdir_separator=
9602  hardcode_direct=no
9603  hardcode_minus_L=no
9604  hardcode_shlibpath_var=unsupported
9605  link_all_deplibs=unknown
9606  hardcode_automatic=no
9607  module_cmds=
9608  module_expsym_cmds=
9609  always_export_symbols=no
9610  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9611  # include_expsyms should be a list of space-separated symbols to be *always*
9612  # included in the symbol list
9613  include_expsyms=
9614  # exclude_expsyms can be an extended regexp of symbols to exclude
9615  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9616  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9617  # as well as any symbol that contains `d'.
9618  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9619  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9620  # platforms (ab)use it in PIC code, but their linkers get confused if
9621  # the symbol is explicitly referenced.  Since portable code cannot
9622  # rely on this symbol name, it's probably fine to never include it in
9623  # preloaded symbol tables.
9624  extract_expsyms_cmds=
9625  # Just being paranoid about ensuring that cc_basename is set.
9626  for cc_temp in $compiler""; do
9627  case $cc_temp in
9628    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9629    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9630    \-*) ;;
9631    *) break;;
9632  esac
9633done
9634cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9635
9636  case $host_os in
9637  cygwin* | mingw* | pw32*)
9638    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9639    # When not using gcc, we currently assume that we are using
9640    # Microsoft Visual C++.
9641    if test "$GCC" != yes; then
9642      with_gnu_ld=no
9643    fi
9644    ;;
9645  interix*)
9646    # we just hope/assume this is gcc and not c89 (= MSVC++)
9647    with_gnu_ld=yes
9648    ;;
9649  openbsd*)
9650    with_gnu_ld=no
9651    ;;
9652  esac
9653
9654  ld_shlibs=yes
9655  if test "$with_gnu_ld" = yes; then
9656    # If archive_cmds runs LD, not CC, wlarc should be empty
9657    wlarc='${wl}'
9658
9659    # Set some defaults for GNU ld with shared library support. These
9660    # are reset later if shared libraries are not supported. Putting them
9661    # here allows them to be overridden if necessary.
9662    runpath_var=LD_RUN_PATH
9663    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9664    export_dynamic_flag_spec='${wl}--export-dynamic'
9665    # ancient GNU ld didn't support --whole-archive et. al.
9666    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9667        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9668      else
9669        whole_archive_flag_spec=
9670    fi
9671    supports_anon_versioning=no
9672    case `$LD -v 2>/dev/null` in
9673      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9674      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9675      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9676      *\ 2.11.*) ;; # other 2.11 versions
9677      *) supports_anon_versioning=yes ;;
9678    esac
9679
9680    # See if GNU ld supports shared libraries.
9681    case $host_os in
9682    aix3* | aix4* | aix5*)
9683      # On AIX/PPC, the GNU linker is very broken
9684      if test "$host_cpu" != ia64; then
9685        ld_shlibs=no
9686        cat <<EOF 1>&2
9687
9688*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9689*** to be unable to reliably create shared libraries on AIX.
9690*** Therefore, libtool is disabling shared libraries support.  If you
9691*** really care for shared libraries, you may want to modify your PATH
9692*** so that a non-GNU linker is found, and then restart.
9693
9694EOF
9695      fi
9696      ;;
9697
9698    amigaos*)
9699      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)'
9700      hardcode_libdir_flag_spec='-L$libdir'
9701      hardcode_minus_L=yes
9702
9703      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9704      # that the semantics of dynamic libraries on AmigaOS, at least up
9705      # to version 4, is to share data among multiple programs linked
9706      # with the same dynamic library.  Since this doesn't match the
9707      # behavior of shared libraries on other platforms, we can't use
9708      # them.
9709      ld_shlibs=no
9710      ;;
9711
9712    beos*)
9713      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9714        allow_undefined_flag=unsupported
9715        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9716        # support --undefined.  This deserves some investigation.  FIXME
9717        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9718      else
9719        ld_shlibs=no
9720      fi
9721      ;;
9722
9723    cygwin* | mingw* | pw32*)
9724      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9725      # as there is no search path for DLLs.
9726      hardcode_libdir_flag_spec='-L$libdir'
9727      allow_undefined_flag=unsupported
9728      always_export_symbols=no
9729      enable_shared_with_static_runtimes=yes
9730      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9731
9732      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9733        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9734        # If the export-symbols file already is a .def file (1st line
9735        # is EXPORTS), use it as is; otherwise, prepend...
9736        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9737          cp $export_symbols $output_objdir/$soname.def;
9738        else
9739          echo EXPORTS > $output_objdir/$soname.def;
9740          cat $export_symbols >> $output_objdir/$soname.def;
9741        fi~
9742        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9743      else
9744        ld_shlibs=no
9745      fi
9746      ;;
9747
9748    interix3*)
9749      hardcode_direct=no
9750      hardcode_shlibpath_var=no
9751      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9752      export_dynamic_flag_spec='${wl}-E'
9753      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9754      # Instead, shared libraries are loaded at an image base (0x10000000 by
9755      # default) and relocated if they conflict, which is a slow very memory
9756      # consuming and fragmenting process.  To avoid this, we pick a random,
9757      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9758      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9759      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9760      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'
9761      ;;
9762
9763    linux*)
9764      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9765        tmp_addflag=
9766        case $cc_basename,$host_cpu in
9767        pgcc*)                          # Portland Group C compiler
9768          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'
9769          tmp_addflag=' $pic_flag'
9770          ;;
9771        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9772          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'
9773          tmp_addflag=' $pic_flag -Mnomain' ;;
9774        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9775          tmp_addflag=' -i_dynamic' ;;
9776        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9777          tmp_addflag=' -i_dynamic -nofor_main' ;;
9778        ifc* | ifort*)                  # Intel Fortran compiler
9779          tmp_addflag=' -nofor_main' ;;
9780        esac
9781        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9782
9783        if test $supports_anon_versioning = yes; then
9784          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9785  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9786  $echo "local: *; };" >> $output_objdir/$libname.ver~
9787          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9788        fi
9789      else
9790        ld_shlibs=no
9791      fi
9792      ;;
9793
9794    netbsd*)
9795      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9796        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9797        wlarc=
9798      else
9799        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9800        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9801      fi
9802      ;;
9803
9804    solaris*)
9805      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9806        ld_shlibs=no
9807        cat <<EOF 1>&2
9808
9809*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9810*** create shared libraries on Solaris systems.  Therefore, libtool
9811*** is disabling shared libraries support.  We urge you to upgrade GNU
9812*** binutils to release 2.9.1 or newer.  Another option is to modify
9813*** your PATH or compiler configuration so that the native linker is
9814*** used, and then restart.
9815
9816EOF
9817      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9818        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9819        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9820      else
9821        ld_shlibs=no
9822      fi
9823      ;;
9824
9825    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9826      case `$LD -v 2>&1` in
9827        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9828        ld_shlibs=no
9829        cat <<_LT_EOF 1>&2
9830
9831*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9832*** reliably create shared libraries on SCO systems.  Therefore, libtool
9833*** is disabling shared libraries support.  We urge you to upgrade GNU
9834*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9835*** your PATH or compiler configuration so that the native linker is
9836*** used, and then restart.
9837
9838_LT_EOF
9839        ;;
9840        *)
9841          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9842            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9843            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9844            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9845          else
9846            ld_shlibs=no
9847          fi
9848        ;;
9849      esac
9850      ;;
9851
9852    sunos4*)
9853      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9854      wlarc=
9855      hardcode_direct=yes
9856      hardcode_shlibpath_var=no
9857      ;;
9858
9859    *)
9860      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9861        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9862        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9863      else
9864        ld_shlibs=no
9865      fi
9866      ;;
9867    esac
9868
9869    if test "$ld_shlibs" = no; then
9870      runpath_var=
9871      hardcode_libdir_flag_spec=
9872      export_dynamic_flag_spec=
9873      whole_archive_flag_spec=
9874    fi
9875  else
9876    # PORTME fill in a description of your system's linker (not GNU ld)
9877    case $host_os in
9878    aix3*)
9879      allow_undefined_flag=unsupported
9880      always_export_symbols=yes
9881      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'
9882      # Note: this linker hardcodes the directories in LIBPATH if there
9883      # are no directories specified by -L.
9884      hardcode_minus_L=yes
9885      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9886        # Neither direct hardcoding nor static linking is supported with a
9887        # broken collect2.
9888        hardcode_direct=unsupported
9889      fi
9890      ;;
9891
9892    aix4* | aix5*)
9893      if test "$host_cpu" = ia64; then
9894        # On IA64, the linker does run time linking by default, so we don't
9895        # have to do anything special.
9896        aix_use_runtimelinking=no
9897        exp_sym_flag='-Bexport'
9898        no_entry_flag=""
9899      else
9900        # If we're using GNU nm, then we don't want the "-C" option.
9901        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9902        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9903          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'
9904        else
9905          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'
9906        fi
9907        aix_use_runtimelinking=no
9908
9909        # Test if we are trying to use run time linking or normal
9910        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9911        # need to do runtime linking.
9912        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9913          for ld_flag in $LDFLAGS; do
9914          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9915            aix_use_runtimelinking=yes
9916            break
9917          fi
9918          done
9919          ;;
9920        esac
9921
9922        exp_sym_flag='-bexport'
9923        no_entry_flag='-bnoentry'
9924      fi
9925
9926      # When large executables or shared objects are built, AIX ld can
9927      # have problems creating the table of contents.  If linking a library
9928      # or program results in "error TOC overflow" add -mminimal-toc to
9929      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9930      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9931
9932      archive_cmds=''
9933      hardcode_direct=yes
9934      hardcode_libdir_separator=':'
9935      link_all_deplibs=yes
9936
9937      if test "$GCC" = yes; then
9938        case $host_os in aix4.[012]|aix4.[012].*)
9939        # We only want to do this on AIX 4.2 and lower, the check
9940        # below for broken collect2 doesn't work under 4.3+
9941          collect2name=`${CC} -print-prog-name=collect2`
9942          if test -f "$collect2name" && \
9943           strings "$collect2name" | grep resolve_lib_name >/dev/null
9944          then
9945          # We have reworked collect2
9946          hardcode_direct=yes
9947          else
9948          # We have old collect2
9949          hardcode_direct=unsupported
9950          # It fails to find uninstalled libraries when the uninstalled
9951          # path is not listed in the libpath.  Setting hardcode_minus_L
9952          # to unsupported forces relinking
9953          hardcode_minus_L=yes
9954          hardcode_libdir_flag_spec='-L$libdir'
9955          hardcode_libdir_separator=
9956          fi
9957          ;;
9958        esac
9959        shared_flag='-shared'
9960        if test "$aix_use_runtimelinking" = yes; then
9961          shared_flag="$shared_flag "'${wl}-G'
9962        fi
9963      else
9964        # not using gcc
9965        if test "$host_cpu" = ia64; then
9966        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9967        # chokes on -Wl,-G. The following line is correct:
9968          shared_flag='-G'
9969        else
9970          if test "$aix_use_runtimelinking" = yes; then
9971            shared_flag='${wl}-G'
9972          else
9973            shared_flag='${wl}-bM:SRE'
9974          fi
9975        fi
9976      fi
9977
9978      # It seems that -bexpall does not export symbols beginning with
9979      # underscore (_), so it is better to generate a list of symbols to export.
9980      always_export_symbols=yes
9981      if test "$aix_use_runtimelinking" = yes; then
9982        # Warning - without using the other runtime loading flags (-brtl),
9983        # -berok will link without error, but may produce a broken library.
9984        allow_undefined_flag='-berok'
9985       # Determine the default libpath from the value encoded in an empty executable.
9986       cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h.  */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h.  */
9992
9993#ifdef F77_DUMMY_MAIN
9994
9995#  ifdef __cplusplus
9996     extern "C"
9997#  endif
9998   int F77_DUMMY_MAIN() { return 1; }
9999
10000#endif
10001int
10002main ()
10003{
10004
10005  ;
10006  return 0;
10007}
10008_ACEOF
10009rm -f conftest.$ac_objext conftest$ac_exeext
10010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011  (eval $ac_link) 2>conftest.er1
10012  ac_status=$?
10013  grep -v '^ *+' conftest.er1 >conftest.err
10014  rm -f conftest.er1
10015  cat conftest.err >&5
10016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017  (exit $ac_status); } &&
10018         { ac_try='test -z "$ac_c_werror_flag"
10019                         || test ! -s conftest.err'
10020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021  (eval $ac_try) 2>&5
10022  ac_status=$?
10023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024  (exit $ac_status); }; } &&
10025         { ac_try='test -s conftest$ac_exeext'
10026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027  (eval $ac_try) 2>&5
10028  ac_status=$?
10029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030  (exit $ac_status); }; }; then
10031
10032aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10033}'`
10034# Check for a 64-bit object if we didn't find anything.
10035if 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; }
10036}'`; fi
10037else
10038  echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041fi
10042rm -f conftest.err conftest.$ac_objext \
10043      conftest$ac_exeext conftest.$ac_ext
10044if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10045
10046       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10047        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"
10048       else
10049        if test "$host_cpu" = ia64; then
10050          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10051          allow_undefined_flag="-z nodefs"
10052          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"
10053        else
10054         # Determine the default libpath from the value encoded in an empty executable.
10055         cat >conftest.$ac_ext <<_ACEOF
10056/* confdefs.h.  */
10057_ACEOF
10058cat confdefs.h >>conftest.$ac_ext
10059cat >>conftest.$ac_ext <<_ACEOF
10060/* end confdefs.h.  */
10061
10062#ifdef F77_DUMMY_MAIN
10063
10064#  ifdef __cplusplus
10065     extern "C"
10066#  endif
10067   int F77_DUMMY_MAIN() { return 1; }
10068
10069#endif
10070int
10071main ()
10072{
10073
10074  ;
10075  return 0;
10076}
10077_ACEOF
10078rm -f conftest.$ac_objext conftest$ac_exeext
10079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10080  (eval $ac_link) 2>conftest.er1
10081  ac_status=$?
10082  grep -v '^ *+' conftest.er1 >conftest.err
10083  rm -f conftest.er1
10084  cat conftest.err >&5
10085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086  (exit $ac_status); } &&
10087         { ac_try='test -z "$ac_c_werror_flag"
10088                         || test ! -s conftest.err'
10089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090  (eval $ac_try) 2>&5
10091  ac_status=$?
10092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093  (exit $ac_status); }; } &&
10094         { ac_try='test -s conftest$ac_exeext'
10095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096  (eval $ac_try) 2>&5
10097  ac_status=$?
10098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099  (exit $ac_status); }; }; then
10100
10101aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10102}'`
10103# Check for a 64-bit object if we didn't find anything.
10104if 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; }
10105}'`; fi
10106else
10107  echo "$as_me: failed program was:" >&5
10108sed 's/^/| /' conftest.$ac_ext >&5
10109
10110fi
10111rm -f conftest.err conftest.$ac_objext \
10112      conftest$ac_exeext conftest.$ac_ext
10113if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10114
10115         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10116          # Warning - without using the other run time loading flags,
10117          # -berok will link without error, but may produce a broken library.
10118          no_undefined_flag=' ${wl}-bernotok'
10119          allow_undefined_flag=' ${wl}-berok'
10120          # Exported symbols can be pulled into shared objects from archives
10121          whole_archive_flag_spec='$convenience'
10122          archive_cmds_need_lc=yes
10123          # This is similar to how AIX traditionally builds its shared libraries.
10124          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'
10125        fi
10126      fi
10127      ;;
10128
10129    amigaos*)
10130      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)'
10131      hardcode_libdir_flag_spec='-L$libdir'
10132      hardcode_minus_L=yes
10133      # see comment about different semantics on the GNU ld section
10134      ld_shlibs=no
10135      ;;
10136
10137    bsdi[45]*)
10138      export_dynamic_flag_spec=-rdynamic
10139      ;;
10140
10141    cygwin* | mingw* | pw32*)
10142      # When not using gcc, we currently assume that we are using
10143      # Microsoft Visual C++.
10144      # hardcode_libdir_flag_spec is actually meaningless, as there is
10145      # no search path for DLLs.
10146      hardcode_libdir_flag_spec=' '
10147      allow_undefined_flag=unsupported
10148      # Tell ltmain to make .lib files, not .a files.
10149      libext=lib
10150      # Tell ltmain to make .dll files, not .so files.
10151      shrext_cmds=".dll"
10152      # FIXME: Setting linknames here is a bad hack.
10153      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10154      # The linker will automatically build a .lib file if we build a DLL.
10155      old_archive_From_new_cmds='true'
10156      # FIXME: Should let the user specify the lib program.
10157      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10158      fix_srcfile_path='`cygpath -w "$srcfile"`'
10159      enable_shared_with_static_runtimes=yes
10160      ;;
10161
10162    darwin* | rhapsody*)
10163      case $host_os in
10164        rhapsody* | darwin1.[012])
10165         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10166         ;;
10167       *) # Darwin 1.3 on
10168         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10169           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10170         else
10171           case ${MACOSX_DEPLOYMENT_TARGET} in
10172             10.[012])
10173               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10174               ;;
10175             10.*)
10176               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10177               ;;
10178           esac
10179         fi
10180         ;;
10181      esac
10182      archive_cmds_need_lc=no
10183      hardcode_direct=no
10184      hardcode_automatic=yes
10185      hardcode_shlibpath_var=unsupported
10186      whole_archive_flag_spec=''
10187      link_all_deplibs=yes
10188    if test "$GCC" = yes ; then
10189        output_verbose_link_cmd='echo'
10190        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10191      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10192      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10193      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}'
10194      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}'
10195    else
10196      case $cc_basename in
10197        xlc*)
10198         output_verbose_link_cmd='echo'
10199         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10200         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10201          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10202         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}'
10203          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}'
10204          ;;
10205       *)
10206         ld_shlibs=no
10207          ;;
10208      esac
10209    fi
10210      ;;
10211
10212    dgux*)
10213      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214      hardcode_libdir_flag_spec='-L$libdir'
10215      hardcode_shlibpath_var=no
10216      ;;
10217
10218    freebsd1*)
10219      ld_shlibs=no
10220      ;;
10221
10222    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10223    # support.  Future versions do this automatically, but an explicit c++rt0.o
10224    # does not break anything, and helps significantly (at the cost of a little
10225    # extra space).
10226    freebsd2.2*)
10227      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10228      hardcode_libdir_flag_spec='-R$libdir'
10229      hardcode_direct=yes
10230      hardcode_shlibpath_var=no
10231      ;;
10232
10233    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10234    freebsd2*)
10235      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10236      hardcode_direct=yes
10237      hardcode_minus_L=yes
10238      hardcode_shlibpath_var=no
10239      ;;
10240
10241    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10242    freebsd* | kfreebsd*-gnu | dragonfly*)
10243      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10244      hardcode_libdir_flag_spec='-R$libdir'
10245      hardcode_direct=yes
10246      hardcode_shlibpath_var=no
10247      ;;
10248
10249    hpux9*)
10250      if test "$GCC" = yes; then
10251        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'
10252      else
10253        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'
10254      fi
10255      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10256      hardcode_libdir_separator=:
10257      hardcode_direct=yes
10258
10259      # hardcode_minus_L: Not really in the search PATH,
10260      # but as the default location of the library.
10261      hardcode_minus_L=yes
10262      export_dynamic_flag_spec='${wl}-E'
10263      ;;
10264
10265    hpux10*)
10266      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10267        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10268      else
10269        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10270      fi
10271      if test "$with_gnu_ld" = no; then
10272        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10273        hardcode_libdir_separator=:
10274
10275        hardcode_direct=yes
10276        export_dynamic_flag_spec='${wl}-E'
10277
10278        # hardcode_minus_L: Not really in the search PATH,
10279        # but as the default location of the library.
10280        hardcode_minus_L=yes
10281      fi
10282      ;;
10283
10284    hpux11*)
10285      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10286        case $host_cpu in
10287        hppa*64*)
10288          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10289          ;;
10290        ia64*)
10291          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10292          ;;
10293        *)
10294          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10295          ;;
10296        esac
10297      else
10298        case $host_cpu in
10299        hppa*64*)
10300          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10301          ;;
10302        ia64*)
10303          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10304          ;;
10305        *)
10306          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10307          ;;
10308        esac
10309      fi
10310      if test "$with_gnu_ld" = no; then
10311        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10312        hardcode_libdir_separator=:
10313
10314        case $host_cpu in
10315        hppa*64*|ia64*)
10316          hardcode_libdir_flag_spec_ld='+b $libdir'
10317          hardcode_direct=no
10318          hardcode_shlibpath_var=no
10319          ;;
10320        *)
10321          hardcode_direct=yes
10322          export_dynamic_flag_spec='${wl}-E'
10323
10324          # hardcode_minus_L: Not really in the search PATH,
10325          # but as the default location of the library.
10326          hardcode_minus_L=yes
10327          ;;
10328        esac
10329      fi
10330      ;;
10331
10332    irix5* | irix6* | nonstopux*)
10333      if test "$GCC" = yes; then
10334        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'
10335      else
10336        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'
10337        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10338      fi
10339      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10340      hardcode_libdir_separator=:
10341      link_all_deplibs=yes
10342      ;;
10343
10344    netbsd*)
10345      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10346        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10347      else
10348        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10349      fi
10350      hardcode_libdir_flag_spec='-R$libdir'
10351      hardcode_direct=yes
10352      hardcode_shlibpath_var=no
10353      ;;
10354
10355    newsos6)
10356      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10357      hardcode_direct=yes
10358      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10359      hardcode_libdir_separator=:
10360      hardcode_shlibpath_var=no
10361      ;;
10362
10363    openbsd*)
10364      hardcode_direct=yes
10365      hardcode_shlibpath_var=no
10366      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10367        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10368        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10369        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10370        export_dynamic_flag_spec='${wl}-E'
10371      else
10372       case $host_os in
10373         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10374           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10375           hardcode_libdir_flag_spec='-R$libdir'
10376           ;;
10377         *)
10378           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10379           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10380           ;;
10381       esac
10382      fi
10383      ;;
10384
10385    os2*)
10386      hardcode_libdir_flag_spec='-L$libdir'
10387      hardcode_minus_L=yes
10388      allow_undefined_flag=unsupported
10389      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'
10390      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10391      ;;
10392
10393    osf3*)
10394      if test "$GCC" = yes; then
10395        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10396        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'
10397      else
10398        allow_undefined_flag=' -expect_unresolved \*'
10399        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'
10400      fi
10401      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10402      hardcode_libdir_separator=:
10403      ;;
10404
10405    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10406      if test "$GCC" = yes; then
10407        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10408        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'
10409        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10410      else
10411        allow_undefined_flag=' -expect_unresolved \*'
10412        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'
10413        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10414        $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'
10415
10416        # Both c and cxx compiler support -rpath directly
10417        hardcode_libdir_flag_spec='-rpath $libdir'
10418      fi
10419      hardcode_libdir_separator=:
10420      ;;
10421
10422    solaris*)
10423      no_undefined_flag=' -z text'
10424      if test "$GCC" = yes; then
10425        wlarc='${wl}'
10426        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10427        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10428          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10429      else
10430        wlarc=''
10431        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10433        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10434      fi
10435      hardcode_libdir_flag_spec='-R$libdir'
10436      hardcode_shlibpath_var=no
10437      case $host_os in
10438      solaris2.[0-5] | solaris2.[0-5].*) ;;
10439      *)
10440        # The compiler driver will combine linker options so we
10441        # cannot just pass the convience library names through
10442        # without $wl, iff we do not link with $LD.
10443        # Luckily, gcc supports the same syntax we need for Sun Studio.
10444        # Supported since Solaris 2.6 (maybe 2.5.1?)
10445        case $wlarc in
10446        '')
10447          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10448        *)
10449          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' ;;
10450        esac ;;
10451      esac
10452      link_all_deplibs=yes
10453      ;;
10454
10455    sunos4*)
10456      if test "x$host_vendor" = xsequent; then
10457        # Use $CC to link under sequent, because it throws in some extra .o
10458        # files that make .init and .fini sections work.
10459        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10460      else
10461        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10462      fi
10463      hardcode_libdir_flag_spec='-L$libdir'
10464      hardcode_direct=yes
10465      hardcode_minus_L=yes
10466      hardcode_shlibpath_var=no
10467      ;;
10468
10469    sysv4)
10470      case $host_vendor in
10471        sni)
10472          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10473          hardcode_direct=yes # is this really true???
10474        ;;
10475        siemens)
10476          ## LD is ld it makes a PLAMLIB
10477          ## CC just makes a GrossModule.
10478          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10479          reload_cmds='$CC -r -o $output$reload_objs'
10480          hardcode_direct=no
10481        ;;
10482        motorola)
10483          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10485        ;;
10486      esac
10487      runpath_var='LD_RUN_PATH'
10488      hardcode_shlibpath_var=no
10489      ;;
10490
10491    sysv4.3*)
10492      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493      hardcode_shlibpath_var=no
10494      export_dynamic_flag_spec='-Bexport'
10495      ;;
10496
10497    sysv4*MP*)
10498      if test -d /usr/nec; then
10499        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10500        hardcode_shlibpath_var=no
10501        runpath_var=LD_RUN_PATH
10502        hardcode_runpath_var=yes
10503        ld_shlibs=yes
10504      fi
10505      ;;
10506
10507    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10508      no_undefined_flag='${wl}-z,text'
10509      archive_cmds_need_lc=no
10510      hardcode_shlibpath_var=no
10511      runpath_var='LD_RUN_PATH'
10512
10513      if test "$GCC" = yes; then
10514        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10516      else
10517        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10518        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10519      fi
10520      ;;
10521
10522    sysv5* | sco3.2v5* | sco5v6*)
10523      # Note: We can NOT use -z defs as we might desire, because we do not
10524      # link with -lc, and that would cause any symbols used from libc to
10525      # always be unresolved, which means just about no library would
10526      # ever link correctly.  If we're not using GNU ld we use -z text
10527      # though, which does catch some bad symbols but isn't as heavy-handed
10528      # as -z defs.
10529      no_undefined_flag='${wl}-z,text'
10530      allow_undefined_flag='${wl}-z,nodefs'
10531      archive_cmds_need_lc=no
10532      hardcode_shlibpath_var=no
10533      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10534      hardcode_libdir_separator=':'
10535      link_all_deplibs=yes
10536      export_dynamic_flag_spec='${wl}-Bexport'
10537      runpath_var='LD_RUN_PATH'
10538
10539      if test "$GCC" = yes; then
10540        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10541        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10542      else
10543        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10544        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10545      fi
10546      ;;
10547
10548    uts4*)
10549      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10550      hardcode_libdir_flag_spec='-L$libdir'
10551      hardcode_shlibpath_var=no
10552      ;;
10553
10554    *)
10555      ld_shlibs=no
10556      ;;
10557    esac
10558  fi
10559
10560echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10561echo "${ECHO_T}$ld_shlibs" >&6
10562test "$ld_shlibs" = no && can_build_shared=no
10563
10564#
10565# Do we need to explicitly link libc?
10566#
10567case "x$archive_cmds_need_lc" in
10568x|xyes)
10569  # Assume -lc should be added
10570  archive_cmds_need_lc=yes
10571
10572  if test "$enable_shared" = yes && test "$GCC" = yes; then
10573    case $archive_cmds in
10574    *'~'*)
10575      # FIXME: we may have to deal with multi-command sequences.
10576      ;;
10577    '$CC '*)
10578      # Test whether the compiler implicitly links with -lc since on some
10579      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10580      # to ld, don't add -lc before -lgcc.
10581      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10582echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10583      $rm conftest*
10584      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10585
10586      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10587  (eval $ac_compile) 2>&5
10588  ac_status=$?
10589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590  (exit $ac_status); } 2>conftest.err; then
10591        soname=conftest
10592        lib=conftest
10593        libobjs=conftest.$ac_objext
10594        deplibs=
10595        wl=$lt_prog_compiler_wl
10596        pic_flag=$lt_prog_compiler_pic
10597        compiler_flags=-v
10598        linker_flags=-v
10599        verstring=
10600        output_objdir=.
10601        libname=conftest
10602        lt_save_allow_undefined_flag=$allow_undefined_flag
10603        allow_undefined_flag=
10604        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10605  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10606  ac_status=$?
10607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608  (exit $ac_status); }
10609        then
10610          archive_cmds_need_lc=no
10611        else
10612          archive_cmds_need_lc=yes
10613        fi
10614        allow_undefined_flag=$lt_save_allow_undefined_flag
10615      else
10616        cat conftest.err 1>&5
10617      fi
10618      $rm conftest*
10619      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10620echo "${ECHO_T}$archive_cmds_need_lc" >&6
10621      ;;
10622    esac
10623  fi
10624  ;;
10625esac
10626
10627echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10628echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10629library_names_spec=
10630libname_spec='lib$name'
10631soname_spec=
10632shrext_cmds=".so"
10633postinstall_cmds=
10634postuninstall_cmds=
10635finish_cmds=
10636finish_eval=
10637shlibpath_var=
10638shlibpath_overrides_runpath=unknown
10639version_type=none
10640dynamic_linker="$host_os ld.so"
10641sys_lib_dlsearch_path_spec="/lib /usr/lib"
10642if test "$GCC" = yes; then
10643  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10644  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10645    # if the path contains ";" then we assume it to be the separator
10646    # otherwise default to the standard path separator (i.e. ":") - it is
10647    # assumed that no part of a normal pathname contains ";" but that should
10648    # okay in the real world where ";" in dirpaths is itself problematic.
10649    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10650  else
10651    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10652  fi
10653else
10654  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10655fi
10656need_lib_prefix=unknown
10657hardcode_into_libs=no
10658
10659# when you set need_version to no, make sure it does not cause -set_version
10660# flags to be left without arguments
10661need_version=unknown
10662
10663case $host_os in
10664aix3*)
10665  version_type=linux
10666  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10667  shlibpath_var=LIBPATH
10668
10669  # AIX 3 has no versioning support, so we append a major version to the name.
10670  soname_spec='${libname}${release}${shared_ext}$major'
10671  ;;
10672
10673aix4* | aix5*)
10674  version_type=linux
10675  need_lib_prefix=no
10676  need_version=no
10677  hardcode_into_libs=yes
10678  if test "$host_cpu" = ia64; then
10679    # AIX 5 supports IA64
10680    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10681    shlibpath_var=LD_LIBRARY_PATH
10682  else
10683    # With GCC up to 2.95.x, collect2 would create an import file
10684    # for dependence libraries.  The import file would start with
10685    # the line `#! .'.  This would cause the generated library to
10686    # depend on `.', always an invalid library.  This was fixed in
10687    # development snapshots of GCC prior to 3.0.
10688    case $host_os in
10689      aix4 | aix4.[01] | aix4.[01].*)
10690      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10691           echo ' yes '
10692           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10693        :
10694      else
10695        can_build_shared=no
10696      fi
10697      ;;
10698    esac
10699    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10700    # soname into executable. Probably we can add versioning support to
10701    # collect2, so additional links can be useful in future.
10702    if test "$aix_use_runtimelinking" = yes; then
10703      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10704      # instead of lib<name>.a to let people know that these are not
10705      # typical AIX shared libraries.
10706      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707    else
10708      # We preserve .a as extension for shared libraries through AIX4.2
10709      # and later when we are not doing run time linking.
10710      library_names_spec='${libname}${release}.a $libname.a'
10711      soname_spec='${libname}${release}${shared_ext}$major'
10712    fi
10713    shlibpath_var=LIBPATH
10714  fi
10715  ;;
10716
10717amigaos*)
10718  library_names_spec='$libname.ixlibrary $libname.a'
10719  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10720  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'
10721  ;;
10722
10723beos*)
10724  library_names_spec='${libname}${shared_ext}'
10725  dynamic_linker="$host_os ld.so"
10726  shlibpath_var=LIBRARY_PATH
10727  ;;
10728
10729bsdi[45]*)
10730  version_type=linux
10731  need_version=no
10732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733  soname_spec='${libname}${release}${shared_ext}$major'
10734  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10735  shlibpath_var=LD_LIBRARY_PATH
10736  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10737  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10738  # the default ld.so.conf also contains /usr/contrib/lib and
10739  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10740  # libtool to hard-code these into programs
10741  ;;
10742
10743cygwin* | mingw* | pw32*)
10744  version_type=windows
10745  shrext_cmds=".dll"
10746  need_version=no
10747  need_lib_prefix=no
10748
10749  case $GCC,$host_os in
10750  yes,cygwin* | yes,mingw* | yes,pw32*)
10751    library_names_spec='$libname.dll.a'
10752    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10753    postinstall_cmds='base_file=`basename \${file}`~
10754      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10755      dldir=$destdir/`dirname \$dlpath`~
10756      test -d \$dldir || mkdir -p \$dldir~
10757      $install_prog $dir/$dlname \$dldir/$dlname~
10758      chmod a+x \$dldir/$dlname'
10759    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10760      dlpath=$dir/\$dldll~
10761       $rm \$dlpath'
10762    shlibpath_overrides_runpath=yes
10763
10764    case $host_os in
10765    cygwin*)
10766      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10767      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10768      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10769      ;;
10770    mingw*)
10771      # MinGW DLLs use traditional 'lib' prefix
10772      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10773      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10774      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10775        # It is most probably a Windows format PATH printed by
10776        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10777        # path with ; separators, and with drive letters. We can handle the
10778        # drive letters (cygwin fileutils understands them), so leave them,
10779        # especially as we might pass files found there to a mingw objdump,
10780        # which wouldn't understand a cygwinified path. Ahh.
10781        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10782      else
10783        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10784      fi
10785      ;;
10786    pw32*)
10787      # pw32 DLLs use 'pw' prefix rather than 'lib'
10788      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10789      ;;