source: stable/2.2/Cbc/configure @ 1026

Last change on this file since 1026 was 1026, checked in by ladanyi, 11 years ago

result of run_autotools

  • Property svn:executable set to *
File size: 783.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc stable2.2.
4#
5# Report bugs to <coin-cbc@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 Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='stable2.2'
433PACKAGE_STRING='Cbc stable2.2'
434PACKAGE_BUGREPORT='coin-cbc@list.coin-or.org'
435
436ac_unique_file="src/CbcTree.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 sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE DYLPSRCDIR DYLPOBJDIR DYLPDOCDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE VOLSRCDIR VOLOBJDIR VOLDOCDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE SYMPHONYSRCDIR SYMPHONYOBJDIR SYMPHONYDOCDIR COIN_HAS_SYMPHONY_TRUE COIN_HAS_SYMPHONY_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_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 GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Cbc stable2.2 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Cbc stable2.2:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-cbc compile this project (Cbc) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-cplex-libcheck use disable-cplex-libcheck to skip the
1096                          link check at configuration time
1097  --enable-fortmp-libcheck
1098                          use disable-fortmp-libcheck to skip the
1099                          link check at configuration time
1100  --enable-mosek-libcheck use disable-mosek-libcheck to skip the
1101                          link check at configuration time
1102  --enable-osl-libcheck use disable-osl-libcheck to skip the link
1103                          check at configuration time
1104  --enable-soplex-libcheck
1105                          use disable-soplex-libcheck to skip the
1106                          link check at configuration time
1107  --enable-xpress-libcheck
1108                          use disable-xpress-libcheck to skip the
1109                          link check at configuration time
1110  --enable-glpk-libcheck use disable-glpk-libcheck to skip the
1111                          link check at configuration time
1112  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1113
1114Optional Packages:
1115  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1116  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1117  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1118  --with-cbc-checklevel specify the sanity check level for project Cbc
1119  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1120  --with-pic              try to use only PIC/non-PIC objects [default=use
1121                          both]
1122  --with-tags[=TAGS]
1123                          include additional configurations [automatic]
1124  --with-cplex-incdir specify the header file directory for library Cplex
1125  --with-cplex-lib specify the flags used to link with the library Cplex
1126  --with-fortmp-incdir specify the header file directory for library FortMP
1127  --with-fortmp-lib specify the flags used to link with the library FortMP
1128  --with-mosek-incdir specify the header file directory for library Mosek
1129  --with-mosek-lib specify the flags used to link with the library Mosek
1130  --with-osl-incdir specify the header file directory for library Osl
1131  --with-osl-lib specify the flags used to link with the library Osl
1132  --with-soplex-incdir specify the header file directory for library Soplex
1133  --with-soplex-lib specify the flags used to link with the library Soplex
1134  --with-xpress-incdir specify the header file directory for library Xpress
1135  --with-xpress-lib specify the flags used to link with the library Xpress
1136  --with-glpk-incdir specify the header file directory for library Glpk
1137  --with-glpk-lib specify the flags used to link with the library Glpk
1138  --with-asldir           specify path to AMPL solver directory (or BUILD for
1139                          compilation, or "no" for disabling AMPL)
1140  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1141  --with-cbc-generic-solver
1142                          specify default solver for cbc-generic in lower case
1143                          letters (if not given, clp is assumed)
1144
1145Some influential environment variables:
1146  CDEFS       Additional -D flags to be used when compiling C code.
1147  ADD_CFLAGS  Additional C compiler options
1148  DBG_CFLAGS  Debug C compiler options
1149  OPT_CFLAGS  Optimize C compiler options
1150  CC          C compiler command
1151  CFLAGS      C compiler flags
1152  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1153              nonstandard directory <lib dir>
1154  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1155              headers in a nonstandard directory <include dir>
1156  MPICC       C MPI Compiler
1157  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1158  ADD_CXXFLAGS
1159              Additional C++ compiler options
1160  DBG_CXXFLAGS
1161              Debug C++ compiler options
1162  OPT_CXXFLAGS
1163              Optimize C++ compiler options
1164  CXX         C++ compiler command
1165  CXXFLAGS    C++ compiler flags
1166  MPICXX      C++ MPI Compiler
1167  CPP         C preprocessor
1168  CXXCPP      C++ preprocessor
1169  F77         Fortran 77 compiler command
1170  FFLAGS      Fortran 77 compiler flags
1171
1172Use these variables to override the choices made by `configure' or to help
1173it to find libraries and programs with nonstandard names/locations.
1174
1175Report bugs to <coin-cbc@list.coin-or.org>.
1176_ACEOF
1177fi
1178
1179if test "$ac_init_help" = "recursive"; then
1180  # If there are subdirs, report their specific --help.
1181  ac_popdir=`pwd`
1182  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1183    test -d $ac_dir || continue
1184    ac_builddir=.
1185
1186if test "$ac_dir" != .; then
1187  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1188  # A "../" for each directory in $ac_dir_suffix.
1189  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1190else
1191  ac_dir_suffix= ac_top_builddir=
1192fi
1193
1194case $srcdir in
1195  .)  # No --srcdir option.  We are building in place.
1196    ac_srcdir=.
1197    if test -z "$ac_top_builddir"; then
1198       ac_top_srcdir=.
1199    else
1200       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1201    fi ;;
1202  [\\/]* | ?:[\\/]* )  # Absolute path.
1203    ac_srcdir=$srcdir$ac_dir_suffix;
1204    ac_top_srcdir=$srcdir ;;
1205  *) # Relative path.
1206    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1207    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1208esac
1209
1210# Do not use `cd foo && pwd` to compute absolute paths, because
1211# the directories may not exist.
1212case `pwd` in
1213.) ac_abs_builddir="$ac_dir";;
1214*)
1215  case "$ac_dir" in
1216  .) ac_abs_builddir=`pwd`;;
1217  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1218  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1219  esac;;
1220esac
1221case $ac_abs_builddir in
1222.) ac_abs_top_builddir=${ac_top_builddir}.;;
1223*)
1224  case ${ac_top_builddir}. in
1225  .) ac_abs_top_builddir=$ac_abs_builddir;;
1226  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1227  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1228  esac;;
1229esac
1230case $ac_abs_builddir in
1231.) ac_abs_srcdir=$ac_srcdir;;
1232*)
1233  case $ac_srcdir in
1234  .) ac_abs_srcdir=$ac_abs_builddir;;
1235  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1236  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1237  esac;;
1238esac
1239case $ac_abs_builddir in
1240.) ac_abs_top_srcdir=$ac_top_srcdir;;
1241*)
1242  case $ac_top_srcdir in
1243  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1244  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1245  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1246  esac;;
1247esac
1248
1249    cd $ac_dir
1250    # Check for guested configure; otherwise get Cygnus style configure.
1251    if test -f $ac_srcdir/configure.gnu; then
1252      echo
1253      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1254    elif test -f $ac_srcdir/configure; then
1255      echo
1256      $SHELL $ac_srcdir/configure  --help=recursive
1257    elif test -f $ac_srcdir/configure.ac ||
1258           test -f $ac_srcdir/configure.in; then
1259      echo
1260      $ac_configure --help
1261    else
1262      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1263    fi
1264    cd $ac_popdir
1265  done
1266fi
1267
1268test -n "$ac_init_help" && exit 0
1269if $ac_init_version; then
1270  cat <<\_ACEOF
1271Cbc configure stable2.2
1272generated by GNU Autoconf 2.59
1273
1274Copyright (C) 2003 Free Software Foundation, Inc.
1275This configure script is free software; the Free Software Foundation
1276gives unlimited permission to copy, distribute and modify it.
1277
1278
1279Copyright 2006 International Business Machines and others.
1280All Rights Reserved.
1281This file is part of the open source package Coin which is distributed
1282under the Common Public License.
1283_ACEOF
1284  exit 0
1285fi
1286exec 5>config.log
1287cat >&5 <<_ACEOF
1288This file contains any messages produced by compilers while
1289running configure, to aid debugging if configure makes a mistake.
1290
1291It was created by Cbc $as_me stable2.2, which was
1292generated by GNU Autoconf 2.59.  Invocation command line was
1293
1294  $ $0 $@
1295
1296_ACEOF
1297{
1298cat <<_ASUNAME
1299## --------- ##
1300## Platform. ##
1301## --------- ##
1302
1303hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1304uname -m = `(uname -m) 2>/dev/null || echo unknown`
1305uname -r = `(uname -r) 2>/dev/null || echo unknown`
1306uname -s = `(uname -s) 2>/dev/null || echo unknown`
1307uname -v = `(uname -v) 2>/dev/null || echo unknown`
1308
1309/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1310/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1311
1312/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1313/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1314/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1315hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1316/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1317/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1318/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1319
1320_ASUNAME
1321
1322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1323for as_dir in $PATH
1324do
1325  IFS=$as_save_IFS
1326  test -z "$as_dir" && as_dir=.
1327  echo "PATH: $as_dir"
1328done
1329
1330} >&5
1331
1332cat >&5 <<_ACEOF
1333
1334
1335## ----------- ##
1336## Core tests. ##
1337## ----------- ##
1338
1339_ACEOF
1340
1341
1342# Keep a trace of the command line.
1343# Strip out --no-create and --no-recursion so they do not pile up.
1344# Strip out --silent because we don't want to record it for future runs.
1345# Also quote any args containing shell meta-characters.
1346# Make two passes to allow for proper duplicate-argument suppression.
1347ac_configure_args=
1348ac_configure_args0=
1349ac_configure_args1=
1350ac_sep=
1351ac_must_keep_next=false
1352for ac_pass in 1 2
1353do
1354  for ac_arg
1355  do
1356    case $ac_arg in
1357    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1358    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1359    | -silent | --silent | --silen | --sile | --sil)
1360      continue ;;
1361    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1362      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1363    esac
1364    case $ac_pass in
1365    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1366    2)
1367      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1368      if test $ac_must_keep_next = true; then
1369        ac_must_keep_next=false # Got value, back to normal.
1370      else
1371        case $ac_arg in
1372          *=* | --config-cache | -C | -disable-* | --disable-* \
1373          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1374          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1375          | -with-* | --with-* | -without-* | --without-* | --x)
1376            case "$ac_configure_args0 " in
1377              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1378            esac
1379            ;;
1380          -* ) ac_must_keep_next=true ;;
1381        esac
1382      fi
1383      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1384      # Get rid of the leading space.
1385      ac_sep=" "
1386      ;;
1387    esac
1388  done
1389done
1390$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1391$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1392
1393# When interrupted or exit'd, cleanup temporary files, and complete
1394# config.log.  We remove comments because anyway the quotes in there
1395# would cause problems or look ugly.
1396# WARNING: Be sure not to use single quotes in there, as some shells,
1397# such as our DU 5.0 friend, will then `close' the trap.
1398trap 'exit_status=$?
1399  # Save into config.log some information that might help in debugging.
1400  {
1401    echo
1402
1403    cat <<\_ASBOX
1404## ---------------- ##
1405## Cache variables. ##
1406## ---------------- ##
1407_ASBOX
1408    echo
1409    # The following way of writing the cache mishandles newlines in values,
1410{
1411  (set) 2>&1 |
1412    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1413    *ac_space=\ *)
1414      sed -n \
1415        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1416          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1417      ;;
1418    *)
1419      sed -n \
1420        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1421      ;;
1422    esac;
1423}
1424    echo
1425
1426    cat <<\_ASBOX
1427## ----------------- ##
1428## Output variables. ##
1429## ----------------- ##
1430_ASBOX
1431    echo
1432    for ac_var in $ac_subst_vars
1433    do
1434      eval ac_val=$`echo $ac_var`
1435      echo "$ac_var='"'"'$ac_val'"'"'"
1436    done | sort
1437    echo
1438
1439    if test -n "$ac_subst_files"; then
1440      cat <<\_ASBOX
1441## ------------- ##
1442## Output files. ##
1443## ------------- ##
1444_ASBOX
1445      echo
1446      for ac_var in $ac_subst_files
1447      do
1448        eval ac_val=$`echo $ac_var`
1449        echo "$ac_var='"'"'$ac_val'"'"'"
1450      done | sort
1451      echo
1452    fi
1453
1454    if test -s confdefs.h; then
1455      cat <<\_ASBOX
1456## ----------- ##
1457## confdefs.h. ##
1458## ----------- ##
1459_ASBOX
1460      echo
1461      sed "/^$/d" confdefs.h | sort
1462      echo
1463    fi
1464    test "$ac_signal" != 0 &&
1465      echo "$as_me: caught signal $ac_signal"
1466    echo "$as_me: exit $exit_status"
1467  } >&5
1468  rm -f core *.core &&
1469  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1470    exit $exit_status
1471     ' 0
1472for ac_signal in 1 2 13 15; do
1473  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1474done
1475ac_signal=0
1476
1477# confdefs.h avoids OS command line length limits that DEFS can exceed.
1478rm -rf conftest* confdefs.h
1479# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1480echo >confdefs.h
1481
1482# Predefined preprocessor variables.
1483
1484cat >>confdefs.h <<_ACEOF
1485#define PACKAGE_NAME "$PACKAGE_NAME"
1486_ACEOF
1487
1488
1489cat >>confdefs.h <<_ACEOF
1490#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1491_ACEOF
1492
1493
1494cat >>confdefs.h <<_ACEOF
1495#define PACKAGE_VERSION "$PACKAGE_VERSION"
1496_ACEOF
1497
1498
1499cat >>confdefs.h <<_ACEOF
1500#define PACKAGE_STRING "$PACKAGE_STRING"
1501_ACEOF
1502
1503
1504cat >>confdefs.h <<_ACEOF
1505#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1506_ACEOF
1507
1508
1509# Let the site file select an alternate cache file if it wants to.
1510# Prefer explicitly selected file to automatically selected ones.
1511if test -z "$CONFIG_SITE"; then
1512  if test "x$prefix" != xNONE; then
1513    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1514  else
1515    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1516  fi
1517fi
1518for ac_site_file in $CONFIG_SITE; do
1519  if test -r "$ac_site_file"; then
1520    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1521echo "$as_me: loading site script $ac_site_file" >&6;}
1522    sed 's/^/| /' "$ac_site_file" >&5
1523    . "$ac_site_file"
1524  fi
1525done
1526
1527if test -r "$cache_file"; then
1528  # Some versions of bash will fail to source /dev/null (special
1529  # files actually), so we avoid doing that.
1530  if test -f "$cache_file"; then
1531    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1532echo "$as_me: loading cache $cache_file" >&6;}
1533    case $cache_file in
1534      [\\/]* | ?:[\\/]* ) . $cache_file;;
1535      *)                      . ./$cache_file;;
1536    esac
1537  fi
1538else
1539  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1540echo "$as_me: creating cache $cache_file" >&6;}
1541  >$cache_file
1542fi
1543
1544# Check that the precious variables saved in the cache have kept the same
1545# value.
1546ac_cache_corrupted=false
1547for ac_var in `(set) 2>&1 |
1548               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1549  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1550  eval ac_new_set=\$ac_env_${ac_var}_set
1551  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1552  eval ac_new_val="\$ac_env_${ac_var}_value"
1553  case $ac_old_set,$ac_new_set in
1554    set,)
1555      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1556echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1557      ac_cache_corrupted=: ;;
1558    ,set)
1559      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1560echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1561      ac_cache_corrupted=: ;;
1562    ,);;
1563    *)
1564      if test "x$ac_old_val" != "x$ac_new_val"; then
1565        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1566echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1567        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1568echo "$as_me:   former value:  $ac_old_val" >&2;}
1569        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1570echo "$as_me:   current value: $ac_new_val" >&2;}
1571        ac_cache_corrupted=:
1572      fi;;
1573  esac
1574  # Pass precious variables to config.status.
1575  if test "$ac_new_set" = set; then
1576    case $ac_new_val in
1577    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1578      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1579    *) ac_arg=$ac_var=$ac_new_val ;;
1580    esac
1581    case " $ac_configure_args " in
1582      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1583      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1584    esac
1585  fi
1586done
1587if $ac_cache_corrupted; then
1588  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1589echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1590  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1591echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1592   { (exit 1); exit 1; }; }
1593fi
1594
1595ac_ext=c
1596ac_cpp='$CPP $CPPFLAGS'
1597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1599ac_compiler_gnu=$ac_cv_c_compiler_gnu
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630# List one file in the package so that the configure script can test
1631# whether the package is actually there
1632
1633
1634# Where should everything be installed by default?  Here, we want it
1635# to be installed directly in 'bin', 'lib', 'include' subdirectories
1636# of the directory where configure is run.  The default would be
1637# /usr/local.
1638
1639
1640#############################################################################
1641#                         Standard build tool stuff                         #
1642#############################################################################
1643
1644# Get the system type
1645ac_aux_dir=
1646for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1647  if test -f $ac_dir/install-sh; then
1648    ac_aux_dir=$ac_dir
1649    ac_install_sh="$ac_aux_dir/install-sh -c"
1650    break
1651  elif test -f $ac_dir/install.sh; then
1652    ac_aux_dir=$ac_dir
1653    ac_install_sh="$ac_aux_dir/install.sh -c"
1654    break
1655  elif test -f $ac_dir/shtool; then
1656    ac_aux_dir=$ac_dir
1657    ac_install_sh="$ac_aux_dir/shtool install -c"
1658    break
1659  fi
1660done
1661if test -z "$ac_aux_dir"; then
1662  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1663echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1664   { (exit 1); exit 1; }; }
1665fi
1666ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1667ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1668ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1669
1670# Make sure we can run config.sub.
1671$ac_config_sub sun4 >/dev/null 2>&1 ||
1672  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1673echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1674   { (exit 1); exit 1; }; }
1675
1676echo "$as_me:$LINENO: checking build system type" >&5
1677echo $ECHO_N "checking build system type... $ECHO_C" >&6
1678if test "${ac_cv_build+set}" = set; then
1679  echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681  ac_cv_build_alias=$build_alias
1682test -z "$ac_cv_build_alias" &&
1683  ac_cv_build_alias=`$ac_config_guess`
1684test -z "$ac_cv_build_alias" &&
1685  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1686echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1687   { (exit 1); exit 1; }; }
1688ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1689  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1690echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1691   { (exit 1); exit 1; }; }
1692
1693fi
1694echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1695echo "${ECHO_T}$ac_cv_build" >&6
1696build=$ac_cv_build
1697build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1698build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1699build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1700
1701
1702
1703# If this project depends on external projects, the Externals file in
1704# the source root directory contains definition of where to find those
1705# externals.  The following macro ensures that those externals are
1706# retrieved by svn if they are not there yet.
1707# Initialize the ADDLIBS variable
1708ADDLIBS="-lm $LIBS"
1709
1710
1711# Initialize the FADDLIBS variable (which is to be used with a fortran
1712# compiler and will not include FLIBS)
1713FADDLIBS="$LIBS"
1714
1715
1716# A useful makefile conditional that is always false
1717
1718
1719if false; then
1720  ALWAYS_FALSE_TRUE=
1721  ALWAYS_FALSE_FALSE='#'
1722else
1723  ALWAYS_FALSE_TRUE='#'
1724  ALWAYS_FALSE_FALSE=
1725fi
1726
1727
1728# We set the following variable so that we know later in AC_COIN_FINALIZE
1729# that we are in a project main directory
1730coin_projectdir=yes
1731
1732
1733# Check if user wants to produce debugging code
1734
1735echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1736echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1737
1738# Check whether --enable-debug or --disable-debug was given.
1739if test "${enable_debug+set}" = set; then
1740  enableval="$enable_debug"
1741  case "${enableval}" in
1742   yes) coin_debug_compile=true
1743        if test "${enable_shared+set}" = set; then :; else
1744          enable_shared=no
1745        fi
1746        ;;
1747   no)  coin_debug_compile=false
1748        ;;
1749   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1750echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1751   { (exit 1); exit 1; }; }
1752        ;;
1753esac
1754else
1755  coin_debug_compile=false
1756fi;
1757
1758# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1759if test "${enable_debug_cbc+set}" = set; then
1760  enableval="$enable_debug_cbc"
1761  case "${enableval}" in
1762    yes) coin_debug_compile=true
1763         enable_shared=no
1764         ;;
1765    no)  coin_debug_compile=false
1766         ;;
1767    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1768echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1769   { (exit 1); exit 1; }; }
1770         ;;
1771 esac
1772else
1773  :
1774fi;
1775
1776 # m4_ifvaln([Cbc],
1777
1778if test $coin_debug_compile = true; then
1779  echo "$as_me:$LINENO: result: yes" >&5
1780echo "${ECHO_T}yes" >&6
1781else
1782  echo "$as_me:$LINENO: result: no" >&5
1783echo "${ECHO_T}no" >&6
1784fi
1785
1786
1787# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1788if test "${with_cbc_verbosity+set}" = set; then
1789  withval="$with_cbc_verbosity"
1790  if test "$withval" = yes; then
1791                withval=1
1792              fi
1793              coin_cbc_verbosity=$withval
1794else
1795  coin_cbc_verbosity=0
1796fi;
1797
1798cat >>confdefs.h <<_ACEOF
1799#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1800_ACEOF
1801
1802
1803
1804# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1805if test "${with_cbc_checklevel+set}" = set; then
1806  withval="$with_cbc_checklevel"
1807  if test "$withval" = yes; then
1808                withval=1
1809              fi
1810              coin_cbc_checklevel=$withval
1811else
1812  coin_cbc_checklevel=0
1813fi;
1814
1815cat >>confdefs.h <<_ACEOF
1816#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1817_ACEOF
1818
1819
1820# We use the following variable to have a string with the upper case
1821# version of the project name
1822COIN_PRJCT=CBC
1823
1824
1825 # m4_ifvaln([Cbc],
1826
1827
1828
1829# Get the name of the C++ compiler and appropriate compiler options
1830case $build in
1831  *-mingw*)
1832    if test "${LD+set}" = set; then :; else
1833      LD=link
1834    fi
1835    ;;
1836 esac
1837 case $enable_doscompile in
1838   msvc)
1839     if test "x${LD+set}" = xset; then :; else
1840       LD=link
1841     fi
1842     ;;
1843 esac
1844
1845
1846 # Check whether --enable-doscompile or --disable-doscompile was given.
1847if test "${enable_doscompile+set}" = set; then
1848  enableval="$enable_doscompile"
1849  if test "$enable_doscompile" != no; then
1850     case $build in
1851       *-cygwin* | *-mingw*) ;;
1852       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1853echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1854   { (exit 1); exit 1; }; } ;;
1855     esac
1856   fi
1857else
1858  enable_doscompile=no
1859fi;
1860 case "$enable_doscompile" in
1861   mingw)
1862     case $build in
1863       *-mingw*) enable_doscompile=no ;;
1864     esac
1865     ;;
1866   msvc|no) ;;
1867   yes) enable_doscompile=mingw ;;
1868   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1869                    Try configure --help=recursive." >&5
1870echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1871                    Try configure --help=recursive." >&2;}
1872   { (exit 1); exit 1; }; }
1873      ;;
1874  esac
1875  if test "$enable_doscompile" != no ; then
1876    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1877echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1878  fi
1879
1880
1881
1882
1883ac_ext=c
1884ac_cpp='$CPP $CPPFLAGS'
1885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888
1889
1890# For consistency, we set the C compiler to the same value of the C++
1891# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1892if test x"$CXX" != x; then
1893  case "$CXX" in
1894    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1895      if test x"$CC" = x; then
1896        CC="$CXX"
1897        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1898echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1899      fi
1900      ;;
1901  esac
1902fi
1903
1904
1905
1906
1907
1908
1909coin_has_cc=yes
1910
1911save_cflags="$CFLAGS"
1912
1913# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1914# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1915# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1916# compiler. In this case, put cc after gcc.
1917
1918case $build in
1919  *-cygwin* | *-mingw*)
1920             if test "$enable_doscompile" = msvc ; then
1921               comps="icl cl"
1922             else
1923               comps="gcc cl"
1924             fi ;;
1925  *-*-solaris*)
1926             # Extract the first word of "cc", so it can be a program name with args.
1927set dummy cc; ac_word=$2
1928echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1931  echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933  if test -n "$sol_cc_compiler"; then
1934  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1935else
1936  ac_prog_rejected=no
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940  IFS=$as_save_IFS
1941  test -z "$as_dir" && as_dir=.
1942  for ac_exec_ext in '' $ac_executable_extensions; do
1943  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945       ac_prog_rejected=yes
1946       continue
1947     fi
1948    ac_cv_prog_sol_cc_compiler="cc"
1949    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950    break 2
1951  fi
1952done
1953done
1954
1955if test $ac_prog_rejected = yes; then
1956  # We found a bogon in the path, so make sure we never use it.
1957  set dummy $ac_cv_prog_sol_cc_compiler
1958  shift
1959  if test $# != 0; then
1960    # We chose a different compiler from the bogus one.
1961    # However, it has the same basename, so the bogon will be chosen
1962    # first if we set sol_cc_compiler to just the basename; use the full file name.
1963    shift
1964    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1965  fi
1966fi
1967fi
1968fi
1969sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1970if test -n "$sol_cc_compiler"; then
1971  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1972echo "${ECHO_T}$sol_cc_compiler" >&6
1973else
1974  echo "$as_me:$LINENO: result: no" >&5
1975echo "${ECHO_T}no" >&6
1976fi
1977
1978             if test "$sol_cc_compiler" = "cc" ; then
1979               comps="cc xlc gcc pgcc icc"
1980             else
1981               comps="xlc gcc pgcc icc cc"
1982             fi
1983             ;;
1984  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1985  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1986esac
1987
1988# We delete the cached value, since the test might not have been
1989# performed with our choice of compilers earlier
1990$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1991# AC_MSG_NOTICE([C compiler candidates: $comps])
1992ac_ext=c
1993ac_cpp='$CPP $CPPFLAGS'
1994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997if test -n "$ac_tool_prefix"; then
1998  for ac_prog in $comps
1999  do
2000    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2002echo "$as_me:$LINENO: checking for $ac_word" >&5
2003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004if test "${ac_cv_prog_CC+set}" = set; then
2005  echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
2007  if test -n "$CC"; then
2008  ac_cv_prog_CC="$CC" # Let the user override the test.
2009else
2010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011for as_dir in $PATH
2012do
2013  IFS=$as_save_IFS
2014  test -z "$as_dir" && as_dir=.
2015  for ac_exec_ext in '' $ac_executable_extensions; do
2016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019    break 2
2020  fi
2021done
2022done
2023
2024fi
2025fi
2026CC=$ac_cv_prog_CC
2027if test -n "$CC"; then
2028  echo "$as_me:$LINENO: result: $CC" >&5
2029echo "${ECHO_T}$CC" >&6
2030else
2031  echo "$as_me:$LINENO: result: no" >&5
2032echo "${ECHO_T}no" >&6
2033fi
2034
2035    test -n "$CC" && break
2036  done
2037fi
2038if test -z "$CC"; then
2039  ac_ct_CC=$CC
2040  for ac_prog in $comps
2041do
2042  # Extract the first word of "$ac_prog", so it can be a program name with args.
2043set dummy $ac_prog; ac_word=$2
2044echo "$as_me:$LINENO: checking for $ac_word" >&5
2045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2047  echo $ECHO_N "(cached) $ECHO_C" >&6
2048else
2049  if test -n "$ac_ct_CC"; then
2050  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2051else
2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053for as_dir in $PATH
2054do
2055  IFS=$as_save_IFS
2056  test -z "$as_dir" && as_dir=.
2057  for ac_exec_ext in '' $ac_executable_extensions; do
2058  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059    ac_cv_prog_ac_ct_CC="$ac_prog"
2060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061    break 2
2062  fi
2063done
2064done
2065
2066fi
2067fi
2068ac_ct_CC=$ac_cv_prog_ac_ct_CC
2069if test -n "$ac_ct_CC"; then
2070  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2071echo "${ECHO_T}$ac_ct_CC" >&6
2072else
2073  echo "$as_me:$LINENO: result: no" >&5
2074echo "${ECHO_T}no" >&6
2075fi
2076
2077  test -n "$ac_ct_CC" && break
2078done
2079
2080  CC=$ac_ct_CC
2081fi
2082
2083
2084test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085See \`config.log' for more details." >&5
2086echo "$as_me: error: no acceptable C compiler found in \$PATH
2087See \`config.log' for more details." >&2;}
2088   { (exit 1); exit 1; }; }
2089
2090# Provide some information about the compiler.
2091echo "$as_me:$LINENO:" \
2092     "checking for C compiler version" >&5
2093ac_compiler=`set X $ac_compile; echo $2`
2094{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2095  (eval $ac_compiler --version </dev/null >&5) 2>&5
2096  ac_status=$?
2097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098  (exit $ac_status); }
2099{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2100  (eval $ac_compiler -v </dev/null >&5) 2>&5
2101  ac_status=$?
2102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103  (exit $ac_status); }
2104{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2105  (eval $ac_compiler -V </dev/null >&5) 2>&5
2106  ac_status=$?
2107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108  (exit $ac_status); }
2109
2110cat >conftest.$ac_ext <<_ACEOF
2111/* confdefs.h.  */
2112_ACEOF
2113cat confdefs.h >>conftest.$ac_ext
2114cat >>conftest.$ac_ext <<_ACEOF
2115/* end confdefs.h.  */
2116
2117int
2118main ()
2119{
2120
2121  ;
2122  return 0;
2123}
2124_ACEOF
2125ac_clean_files_save=$ac_clean_files
2126ac_clean_files="$ac_clean_files a.out a.exe b.out"
2127# Try to create an executable without -o first, disregard a.out.
2128# It will help us diagnose broken compilers, and finding out an intuition
2129# of exeext.
2130echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2131echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2132ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2133if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2134  (eval $ac_link_default) 2>&5
2135  ac_status=$?
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); }; then
2138  # Find the output, starting from the most likely.  This scheme is
2139# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2140# resort.
2141
2142# Be careful to initialize this variable, since it used to be cached.
2143# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2144ac_cv_exeext=
2145# b.out is created by i960 compilers.
2146for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2147do
2148  test -f "$ac_file" || continue
2149  case $ac_file in
2150    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2151        ;;
2152    conftest.$ac_ext )
2153        # This is the source file.
2154        ;;
2155    [ab].out )
2156        # We found the default executable, but exeext='' is most
2157        # certainly right.
2158        break;;
2159    *.* )
2160        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2161        # FIXME: I believe we export ac_cv_exeext for Libtool,
2162        # but it would be cool to find out if it's true.  Does anybody
2163        # maintain Libtool? --akim.
2164        export ac_cv_exeext
2165        break;;
2166    * )
2167        break;;
2168  esac
2169done
2170else
2171  echo "$as_me: failed program was:" >&5
2172sed 's/^/| /' conftest.$ac_ext >&5
2173
2174{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2175See \`config.log' for more details." >&5
2176echo "$as_me: error: C compiler cannot create executables
2177See \`config.log' for more details." >&2;}
2178   { (exit 77); exit 77; }; }
2179fi
2180
2181ac_exeext=$ac_cv_exeext
2182echo "$as_me:$LINENO: result: $ac_file" >&5
2183echo "${ECHO_T}$ac_file" >&6
2184
2185# Check the compiler produces executables we can run.  If not, either
2186# the compiler is broken, or we cross compile.
2187echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2188echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2189# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2190# If not cross compiling, check that we can run a simple program.
2191if test "$cross_compiling" != yes; then
2192  if { ac_try='./$ac_file'
2193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194  (eval $ac_try) 2>&5
2195  ac_status=$?
2196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197  (exit $ac_status); }; }; then
2198    cross_compiling=no
2199  else
2200    if test "$cross_compiling" = maybe; then
2201        cross_compiling=yes
2202    else
2203        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2204If you meant to cross compile, use \`--host'.
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: cannot run C compiled programs.
2207If you meant to cross compile, use \`--host'.
2208See \`config.log' for more details." >&2;}
2209   { (exit 1); exit 1; }; }
2210    fi
2211  fi
2212fi
2213echo "$as_me:$LINENO: result: yes" >&5
2214echo "${ECHO_T}yes" >&6
2215
2216rm -f a.out a.exe conftest$ac_cv_exeext b.out
2217ac_clean_files=$ac_clean_files_save
2218# Check the compiler produces executables we can run.  If not, either
2219# the compiler is broken, or we cross compile.
2220echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2221echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2222echo "$as_me:$LINENO: result: $cross_compiling" >&5
2223echo "${ECHO_T}$cross_compiling" >&6
2224
2225echo "$as_me:$LINENO: checking for suffix of executables" >&5
2226echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2228  (eval $ac_link) 2>&5
2229  ac_status=$?
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); }; then
2232  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2233# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2234# work properly (i.e., refer to `conftest.exe'), while it won't with
2235# `rm'.
2236for ac_file in conftest.exe conftest conftest.*; do
2237  test -f "$ac_file" || continue
2238  case $ac_file in
2239    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2240    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2241          export ac_cv_exeext
2242          break;;
2243    * ) break;;
2244  esac
2245done
2246else
2247  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2248See \`config.log' for more details." >&5
2249echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2250See \`config.log' for more details." >&2;}
2251   { (exit 1); exit 1; }; }
2252fi
2253
2254rm -f conftest$ac_cv_exeext
2255echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2256echo "${ECHO_T}$ac_cv_exeext" >&6
2257
2258rm -f conftest.$ac_ext
2259EXEEXT=$ac_cv_exeext
2260ac_exeext=$EXEEXT
2261echo "$as_me:$LINENO: checking for suffix of object files" >&5
2262echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2263if test "${ac_cv_objext+set}" = set; then
2264  echo $ECHO_N "(cached) $ECHO_C" >&6
2265else
2266  cat >conftest.$ac_ext <<_ACEOF
2267/* confdefs.h.  */
2268_ACEOF
2269cat confdefs.h >>conftest.$ac_ext
2270cat >>conftest.$ac_ext <<_ACEOF
2271/* end confdefs.h.  */
2272
2273int
2274main ()
2275{
2276
2277  ;
2278  return 0;
2279}
2280_ACEOF
2281rm -f conftest.o conftest.obj
2282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283  (eval $ac_compile) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; then
2287  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2288  case $ac_file in
2289    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2290    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2291       break;;
2292  esac
2293done
2294else
2295  echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2299See \`config.log' for more details." >&5
2300echo "$as_me: error: cannot compute suffix of object files: cannot compile
2301See \`config.log' for more details." >&2;}
2302   { (exit 1); exit 1; }; }
2303fi
2304
2305rm -f conftest.$ac_cv_objext conftest.$ac_ext
2306fi
2307echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2308echo "${ECHO_T}$ac_cv_objext" >&6
2309OBJEXT=$ac_cv_objext
2310ac_objext=$OBJEXT
2311echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2312echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2313if test "${ac_cv_c_compiler_gnu+set}" = set; then
2314  echo $ECHO_N "(cached) $ECHO_C" >&6
2315else
2316  cat >conftest.$ac_ext <<_ACEOF
2317/* confdefs.h.  */
2318_ACEOF
2319cat confdefs.h >>conftest.$ac_ext
2320cat >>conftest.$ac_ext <<_ACEOF
2321/* end confdefs.h.  */
2322
2323int
2324main ()
2325{
2326#ifndef __GNUC__
2327       choke me
2328#endif
2329
2330  ;
2331  return 0;
2332}
2333_ACEOF
2334rm -f conftest.$ac_objext
2335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336  (eval $ac_compile) 2>conftest.er1
2337  ac_status=$?
2338  grep -v '^ *+' conftest.er1 >conftest.err
2339  rm -f conftest.er1
2340  cat conftest.err >&5
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); } &&
2343         { ac_try='test -z "$ac_c_werror_flag"
2344                         || test ! -s conftest.err'
2345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346  (eval $ac_try) 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }; } &&
2350         { ac_try='test -s conftest.$ac_objext'
2351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352  (eval $ac_try) 2>&5
2353  ac_status=$?
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); }; }; then
2356  ac_compiler_gnu=yes
2357else
2358  echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361ac_compiler_gnu=no
2362fi
2363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2364ac_cv_c_compiler_gnu=$ac_compiler_gnu
2365
2366fi
2367echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2368echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2369GCC=`test $ac_compiler_gnu = yes && echo yes`
2370ac_test_CFLAGS=${CFLAGS+set}
2371ac_save_CFLAGS=$CFLAGS
2372CFLAGS="-g"
2373echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2374echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2375if test "${ac_cv_prog_cc_g+set}" = set; then
2376  echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378  cat >conftest.$ac_ext <<_ACEOF
2379/* confdefs.h.  */
2380_ACEOF
2381cat confdefs.h >>conftest.$ac_ext
2382cat >>conftest.$ac_ext <<_ACEOF
2383/* end confdefs.h.  */
2384
2385int
2386main ()
2387{
2388
2389  ;
2390  return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext
2394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395  (eval $ac_compile) 2>conftest.er1
2396  ac_status=$?
2397  grep -v '^ *+' conftest.er1 >conftest.err
2398  rm -f conftest.er1
2399  cat conftest.err >&5
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); } &&
2402         { ac_try='test -z "$ac_c_werror_flag"
2403                         || test ! -s conftest.err'
2404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405  (eval $ac_try) 2>&5
2406  ac_status=$?
2407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408  (exit $ac_status); }; } &&
2409         { ac_try='test -s conftest.$ac_objext'
2410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411  (eval $ac_try) 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; }; then
2415  ac_cv_prog_cc_g=yes
2416else
2417  echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
2420ac_cv_prog_cc_g=no
2421fi
2422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2423fi
2424echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2425echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2426if test "$ac_test_CFLAGS" = set; then
2427  CFLAGS=$ac_save_CFLAGS
2428elif test $ac_cv_prog_cc_g = yes; then
2429  if test "$GCC" = yes; then
2430    CFLAGS="-g -O2"
2431  else
2432    CFLAGS="-g"
2433  fi
2434else
2435  if test "$GCC" = yes; then
2436    CFLAGS="-O2"
2437  else
2438    CFLAGS=
2439  fi
2440fi
2441echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2442echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2443if test "${ac_cv_prog_cc_stdc+set}" = set; then
2444  echo $ECHO_N "(cached) $ECHO_C" >&6
2445else
2446  ac_cv_prog_cc_stdc=no
2447ac_save_CC=$CC
2448cat >conftest.$ac_ext <<_ACEOF
2449/* confdefs.h.  */
2450_ACEOF
2451cat confdefs.h >>conftest.$ac_ext
2452cat >>conftest.$ac_ext <<_ACEOF
2453/* end confdefs.h.  */
2454#include <stdarg.h>
2455#include <stdio.h>
2456#include <sys/types.h>
2457#include <sys/stat.h>
2458/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2459struct buf { int x; };
2460FILE * (*rcsopen) (struct buf *, struct stat *, int);
2461static char *e (p, i)
2462     char **p;
2463     int i;
2464{
2465  return p[i];
2466}
2467static char *f (char * (*g) (char **, int), char **p, ...)
2468{
2469  char *s;
2470  va_list v;
2471  va_start (v,p);
2472  s = g (p, va_arg (v,int));
2473  va_end (v);
2474  return s;
2475}
2476
2477/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2478   function prototypes and stuff, but not '\xHH' hex character constants.
2479   These don't provoke an error unfortunately, instead are silently treated
2480   as 'x'.  The following induces an error, until -std1 is added to get
2481   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2482   array size at least.  It's necessary to write '\x00'==0 to get something
2483   that's true only with -std1.  */
2484int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2485
2486int test (int i, double x);
2487struct s1 {int (*f) (int a);};
2488struct s2 {int (*f) (double a);};
2489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2490int argc;
2491char **argv;
2492int
2493main ()
2494{
2495return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2496  ;
2497  return 0;
2498}
2499_ACEOF
2500# Don't try gcc -ansi; that turns off useful extensions and
2501# breaks some systems' header files.
2502# AIX                   -qlanglvl=ansi
2503# Ultrix and OSF/1      -std1
2504# HP-UX 10.20 and later -Ae
2505# HP-UX older versions  -Aa -D_HPUX_SOURCE
2506# SVR4                  -Xc -D__EXTENSIONS__
2507for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2508do
2509  CC="$ac_save_CC $ac_arg"
2510  rm -f conftest.$ac_objext
2511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512  (eval $ac_compile) 2>conftest.er1
2513  ac_status=$?
2514  grep -v '^ *+' conftest.er1 >conftest.err
2515  rm -f conftest.er1
2516  cat conftest.err >&5
2517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518  (exit $ac_status); } &&
2519         { ac_try='test -z "$ac_c_werror_flag"
2520                         || test ! -s conftest.err'
2521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522  (eval $ac_try) 2>&5
2523  ac_status=$?
2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525  (exit $ac_status); }; } &&
2526         { ac_try='test -s conftest.$ac_objext'
2527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528  (eval $ac_try) 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }; }; then
2532  ac_cv_prog_cc_stdc=$ac_arg
2533break
2534else
2535  echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538fi
2539rm -f conftest.err conftest.$ac_objext
2540done
2541rm -f conftest.$ac_ext conftest.$ac_objext
2542CC=$ac_save_CC
2543
2544fi
2545
2546case "x$ac_cv_prog_cc_stdc" in
2547  x|xno)
2548    echo "$as_me:$LINENO: result: none needed" >&5
2549echo "${ECHO_T}none needed" >&6 ;;
2550  *)
2551    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2552echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2553    CC="$CC $ac_cv_prog_cc_stdc" ;;
2554esac
2555
2556# Some people use a C++ compiler to compile C.  Since we use `exit',
2557# in C++ we need to declare it.  In case someone uses the same compiler
2558# for both compiling C and C++ we need to have the C++ compiler decide
2559# the declaration of exit, since it's the most demanding environment.
2560cat >conftest.$ac_ext <<_ACEOF
2561#ifndef __cplusplus
2562  choke me
2563#endif
2564_ACEOF
2565rm -f conftest.$ac_objext
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567  (eval $ac_compile) 2>conftest.er1
2568  ac_status=$?
2569  grep -v '^ *+' conftest.er1 >conftest.err
2570  rm -f conftest.er1
2571  cat conftest.err >&5
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); } &&
2574         { ac_try='test -z "$ac_c_werror_flag"
2575                         || test ! -s conftest.err'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; } &&
2581         { ac_try='test -s conftest.$ac_objext'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; }; then
2587  for ac_declaration in \
2588   '' \
2589   'extern "C" void std::exit (int) throw (); using std::exit;' \
2590   'extern "C" void std::exit (int); using std::exit;' \
2591   'extern "C" void exit (int) throw ();' \
2592   'extern "C" void exit (int);' \
2593   'void exit (int);'
2594do
2595  cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h.  */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h.  */
2601$ac_declaration
2602#include <stdlib.h>
2603int
2604main ()
2605{
2606exit (42);
2607  ;
2608  return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613  (eval $ac_compile) 2>conftest.er1
2614  ac_status=$?
2615  grep -v '^ *+' conftest.er1 >conftest.err
2616  rm -f conftest.er1
2617  cat conftest.err >&5
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } &&
2620         { ac_try='test -z "$ac_c_werror_flag"
2621                         || test ! -s conftest.err'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; } &&
2627         { ac_try='test -s conftest.$ac_objext'
2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629  (eval $ac_try) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }; }; then
2633  :
2634else
2635  echo "$as_me: failed program was:" >&5
2636sed 's/^/| /' conftest.$ac_ext >&5
2637
2638continue
2639fi
2640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641  cat >conftest.$ac_ext <<_ACEOF
2642/* confdefs.h.  */
2643_ACEOF
2644cat confdefs.h >>conftest.$ac_ext
2645cat >>conftest.$ac_ext <<_ACEOF
2646/* end confdefs.h.  */
2647$ac_declaration
2648int
2649main ()
2650{
2651exit (42);
2652  ;
2653  return 0;
2654}
2655_ACEOF
2656rm -f conftest.$ac_objext
2657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658  (eval $ac_compile) 2>conftest.er1
2659  ac_status=$?
2660  grep -v '^ *+' conftest.er1 >conftest.err
2661  rm -f conftest.er1
2662  cat conftest.err >&5
2663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664  (exit $ac_status); } &&
2665         { ac_try='test -z "$ac_c_werror_flag"
2666                         || test ! -s conftest.err'
2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; } &&
2672         { ac_try='test -s conftest.$ac_objext'
2673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674  (eval $ac_try) 2>&5
2675  ac_status=$?
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); }; }; then
2678  break
2679else
2680  echo "$as_me: failed program was:" >&5
2681sed 's/^/| /' conftest.$ac_ext >&5
2682
2683fi
2684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685done
2686rm -f conftest*
2687if test -n "$ac_declaration"; then
2688  echo '#ifdef __cplusplus' >>confdefs.h
2689  echo $ac_declaration      >>confdefs.h
2690  echo '#endif'             >>confdefs.h
2691fi
2692
2693else
2694  echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
2696
2697fi
2698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2699ac_ext=c
2700ac_cpp='$CPP $CPPFLAGS'
2701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704
2705if test -z "$CC" ; then
2706  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2707echo "$as_me: error: Failed to find a C compiler!" >&2;}
2708   { (exit 1); exit 1; }; }
2709fi
2710# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2711case "$CC" in
2712  cl* | */cl* | CL* | */CL* )
2713    if test "$ac_cv_prog_cc_g" = yes ; then
2714      ac_cv_prog_cc_g=no
2715      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2716echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2717    fi ;;
2718esac
2719CFLAGS="$save_cflags"
2720
2721# Check if a project specific CFLAGS variable has been set
2722if test x$COIN_PRJCT != x; then
2723  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2724  if test x$coin_tmp = xset; then
2725    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2726  fi
2727fi
2728
2729if test x"$CFLAGS" = x; then
2730
2731  coin_add_cflags=
2732  coin_opt_cflags=
2733  coin_dbg_cflags=
2734  coin_warn_cflags=
2735
2736  if test "$GCC" = "yes"; then
2737    case "$CC" in
2738      icc* | */icc*)
2739        ;;
2740      *)
2741        coin_opt_cflags="-O3 -fomit-frame-pointer"
2742        coin_add_cflags="-pipe"
2743        coin_dbg_cflags="-g"
2744        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2745        case $enable_doscompile in
2746          mingw)
2747            CFLAGS="-mno-cygwin"
2748            cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h.  */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h.  */
2754
2755int
2756main ()
2757{
2758int i=0; i++;
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext conftest$ac_exeext
2764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2765  (eval $ac_link) 2>conftest.er1
2766  ac_status=$?
2767  grep -v '^ *+' conftest.er1 >conftest.err
2768  rm -f conftest.er1
2769  cat conftest.err >&5
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); } &&
2772         { ac_try='test -z "$ac_c_werror_flag"
2773                         || test ! -s conftest.err'
2774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775  (eval $ac_try) 2>&5
2776  ac_status=$?
2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); }; } &&
2779         { ac_try='test -s conftest$ac_exeext'
2780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781  (eval $ac_try) 2>&5
2782  ac_status=$?
2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); }; }; then
2785  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2786else
2787  echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790fi
2791rm -f conftest.err conftest.$ac_objext \
2792      conftest$ac_exeext conftest.$ac_ext
2793            CFLAGS=
2794          ;;
2795        esac
2796    esac
2797  fi
2798  if test -z "$coin_opt_cflags"; then
2799    case $build in
2800      *-cygwin* | *-mingw*)
2801        case "$CC" in
2802          cl* | */cl* | CL* | */CL*)
2803            coin_opt_cflags='-MT -O2'
2804            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2805            coin_dbg_cflags='-MTd'
2806            ;;
2807          icl* | */icl* | ICL* | */ICL*)
2808            coin_opt_cflags='-MT -Ox'
2809            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2810            coin_dbg_cflags='-MTd -debug'
2811            ;;
2812        esac
2813        ;;
2814      *-linux-*)
2815        case "$CC" in
2816          icc* | */icc*)
2817            coin_opt_cflags="-O3 -ip"
2818            coin_add_cflags=""
2819            coin_dbg_cflags="-g"
2820            # Check if -i_dynamic is necessary (for new glibc library)
2821            CFLAGS=
2822            cat >conftest.$ac_ext <<_ACEOF
2823/* confdefs.h.  */
2824_ACEOF
2825cat confdefs.h >>conftest.$ac_ext
2826cat >>conftest.$ac_ext <<_ACEOF
2827/* end confdefs.h.  */
2828
2829int
2830main ()
2831{
2832int i=0; i++;
2833  ;
2834  return 0;
2835}
2836_ACEOF
2837rm -f conftest.$ac_objext conftest$ac_exeext
2838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2839  (eval $ac_link) 2>conftest.er1
2840  ac_status=$?
2841  grep -v '^ *+' conftest.er1 >conftest.err
2842  rm -f conftest.er1
2843  cat conftest.err >&5
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); } &&
2846         { ac_try='test -z "$ac_c_werror_flag"
2847                         || test ! -s conftest.err'
2848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849  (eval $ac_try) 2>&5
2850  ac_status=$?
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); }; } &&
2853         { ac_try='test -s conftest$ac_exeext'
2854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855  (eval $ac_try) 2>&5
2856  ac_status=$?
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); }; }; then
2859  :
2860else
2861  echo "$as_me: failed program was:" >&5
2862sed 's/^/| /' conftest.$ac_ext >&5
2863
2864coin_add_cflags="-i_dynamic $coin_add_cflags"
2865fi
2866rm -f conftest.err conftest.$ac_objext \
2867      conftest$ac_exeext conftest.$ac_ext
2868            ;;
2869          pgcc* | */pgcc*)
2870            coin_opt_cflags="-fast"
2871            coin_add_cflags="-Kieee -pc 64"
2872            coin_dbg_cflags="-g"
2873            ;;
2874        esac
2875        ;;
2876      *-ibm-*)
2877        case "$CC" in
2878          xlc* | */xlc* | mpxlc* | */mpxlc*)
2879            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2880            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2881            coin_dbg_cflags="-g"
2882          ;;
2883        esac
2884        ;;
2885      *-hp-*)
2886        coin_opt_cflags="-O"
2887        coin_add_cflags="-Ae"
2888        coin_dbg_cflags="-g"
2889        ;;
2890      *-*-solaris*)
2891        coin_opt_cflags="-xO4"
2892        coin_dbg_cflags="-g"
2893        ;;
2894      *-sgi-*)
2895        coin_opt_cflags="-O -OPT:Olimit=0"
2896        coin_dbg_cflags="-g"
2897        ;;
2898    esac
2899  fi
2900
2901  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2902    coin_dbg_cflags="-g"
2903  fi
2904
2905  if test -z "$coin_opt_cflags"; then
2906    # Try if -O option works if nothing else is set
2907    CFLAGS="-O"
2908    cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h.  */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h.  */
2914
2915int
2916main ()
2917{
2918int i=0; i++;
2919  ;
2920  return 0;
2921}
2922_ACEOF
2923rm -f conftest.$ac_objext conftest$ac_exeext
2924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2925  (eval $ac_link) 2>conftest.er1
2926  ac_status=$?
2927  grep -v '^ *+' conftest.er1 >conftest.err
2928  rm -f conftest.er1
2929  cat conftest.err >&5
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); } &&
2932         { ac_try='test -z "$ac_c_werror_flag"
2933                         || test ! -s conftest.err'
2934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935  (eval $ac_try) 2>&5
2936  ac_status=$?
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); }; } &&
2939         { ac_try='test -s conftest$ac_exeext'
2940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941  (eval $ac_try) 2>&5
2942  ac_status=$?
2943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); }; }; then
2945  coin_opt_cflags="-O"
2946else
2947  echo "$as_me: failed program was:" >&5
2948sed 's/^/| /' conftest.$ac_ext >&5
2949
2950fi
2951rm -f conftest.err conftest.$ac_objext \
2952      conftest$ac_exeext conftest.$ac_ext
2953  fi
2954
2955  # if PM doesn't want the warning messages, take them out
2956  if test x"$coin_skip_warn_cflags" = xyes; then
2957    coin_warn_cflags=
2958  fi
2959
2960  if test x${DBG_CFLAGS+set} != xset; then
2961    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2962  fi
2963  if test x${OPT_CFLAGS+set} != xset; then
2964    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2965  fi
2966
2967  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2968  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2969
2970  if test "$coin_debug_compile" = "true"; then
2971    CFLAGS="$DBG_CFLAGS"
2972  else
2973    CFLAGS="$OPT_CFLAGS"
2974  fi
2975else
2976  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2977  if test x${DBG_CFLAGS+set} != xset; then
2978    DBG_CFLAGS="$CFLAGS"
2979  fi
2980  if test x${OPT_CFLAGS+set} != xset; then
2981    OPT_CFLAGS="$CFLAGS"
2982  fi
2983fi
2984
2985# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2986
2987case "$CFLAGS" in
2988  *-mno-cygwin*)
2989    if test x${CPPFLAGS+set} != xset ; then
2990      CPPFLAGS="-mno-cygwin"
2991    else
2992      case "$CPPFLAGS" in
2993        *-mno-cygwin*)
2994          ;;
2995        *)
2996          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2997          ;;
2998      esac
2999    fi ;;
3000esac
3001
3002# Try if CFLAGS works
3003save_CFLAGS="$CFLAGS"
3004cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h.  */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h.  */
3010
3011int
3012main ()
3013{
3014int i=0; i++;
3015  ;
3016  return 0;
3017}
3018_ACEOF
3019rm -f conftest.$ac_objext conftest$ac_exeext
3020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3021  (eval $ac_link) 2>conftest.er1
3022  ac_status=$?
3023  grep -v '^ *+' conftest.er1 >conftest.err
3024  rm -f conftest.er1
3025  cat conftest.err >&5
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); } &&
3028         { ac_try='test -z "$ac_c_werror_flag"
3029                         || test ! -s conftest.err'
3030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031  (eval $ac_try) 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; } &&
3035         { ac_try='test -s conftest$ac_exeext'
3036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037  (eval $ac_try) 2>&5
3038  ac_status=$?
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); }; }; then
3041  :
3042else
3043  echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046CFLAGS=
3047fi
3048rm -f conftest.err conftest.$ac_objext \
3049      conftest$ac_exeext conftest.$ac_ext
3050if test -z "$CFLAGS"; then
3051  { 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
3052echo "$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;}
3053  CFLAGS='-O'
3054  cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h.  */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h.  */
3060
3061int
3062main ()
3063{
3064int i=0; i++;
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext conftest$ac_exeext
3070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071  (eval $ac_link) 2>conftest.er1
3072  ac_status=$?
3073  grep -v '^ *+' conftest.er1 >conftest.err
3074  rm -f conftest.er1
3075  cat conftest.err >&5
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); } &&
3078         { ac_try='test -z "$ac_c_werror_flag"
3079                         || test ! -s conftest.err'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; } &&
3085         { ac_try='test -s conftest$ac_exeext'
3086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087  (eval $ac_try) 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; }; then
3091  :
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096CFLAGS=
3097fi
3098rm -f conftest.err conftest.$ac_objext \
3099      conftest$ac_exeext conftest.$ac_ext
3100  if test -z "$CFLAGS"; then
3101    { 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
3102echo "$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;}
3103  fi
3104fi
3105
3106{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3107echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3108
3109
3110if test x"$MPICC" = x; then :; else
3111  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3112echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3113  CC="$MPICC"
3114fi
3115
3116# Correct ADDLIBS initialization if we are using the MS compiler
3117case "$CC" in
3118  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3119    ADDLIBS=
3120    case $build in
3121  *-mingw*)
3122    if test "${LD+set}" = set; then :; else
3123      LD=link
3124    fi
3125    ;;
3126 esac
3127 case $enable_doscompile in
3128   msvc)
3129     if test "x${LD+set}" = xset; then :; else
3130       LD=link
3131     fi
3132     ;;
3133 esac
3134
3135    ;;
3136esac
3137
3138ac_ext=c
3139ac_cpp='$CPP $CPPFLAGS'
3140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143
3144
3145
3146 #Let's try if that overcomes configuration problem with VC++ 6.0
3147
3148ac_ext=cc
3149ac_cpp='$CXXCPP $CPPFLAGS'
3150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3153
3154
3155
3156
3157
3158
3159
3160coin_has_cxx=yes
3161
3162save_cxxflags="$CXXFLAGS"
3163# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3164case $build in
3165  *-cygwin* | *-mingw*)
3166             if test "$enable_doscompile" = msvc ; then
3167               comps="icl cl"
3168             else
3169               comps="g++ cl"
3170             fi ;;
3171  *-*-solaris*)
3172             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3173  *-darwin*) comps="g++ c++ CC" ;;
3174          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3175esac
3176
3177# We delete the cached value, since the test might not have been
3178# performed with our choice of compilers earlier
3179$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3180# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3181ac_ext=cc
3182ac_cpp='$CXXCPP $CPPFLAGS'
3183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3186if test -n "$ac_tool_prefix"; then
3187  for ac_prog in $CCC $comps
3188  do
3189    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3190set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3191echo "$as_me:$LINENO: checking for $ac_word" >&5
3192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193if test "${ac_cv_prog_CXX+set}" = set; then
3194  echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196  if test -n "$CXX"; then
3197  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3198else
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202  IFS=$as_save_IFS
3203  test -z "$as_dir" && as_dir=.
3204  for ac_exec_ext in '' $ac_executable_extensions; do
3205  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3207    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208    break 2
3209  fi
3210done
3211done
3212
3213fi
3214fi
3215CXX=$ac_cv_prog_CXX
3216if test -n "$CXX"; then
3217  echo "$as_me:$LINENO: result: $CXX" >&5
3218echo "${ECHO_T}$CXX" >&6
3219else
3220  echo "$as_me:$LINENO: result: no" >&5
3221echo "${ECHO_T}no" >&6
3222fi
3223
3224    test -n "$CXX" && break
3225  done
3226fi
3227if test -z "$CXX"; then
3228  ac_ct_CXX=$CXX
3229  for ac_prog in $CCC $comps
3230do
3231  # Extract the first word of "$ac_prog", so it can be a program name with args.
3232set dummy $ac_prog; ac_word=$2
3233echo "$as_me:$LINENO: checking for $ac_word" >&5
3234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3236  echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238  if test -n "$ac_ct_CXX"; then
3239  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3240else
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244  IFS=$as_save_IFS
3245  test -z "$as_dir" && as_dir=.
3246  for ac_exec_ext in '' $ac_executable_extensions; do
3247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248    ac_cv_prog_ac_ct_CXX="$ac_prog"
3249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250    break 2
3251  fi
3252done
3253done
3254
3255fi
3256fi
3257ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3258if test -n "$ac_ct_CXX"; then
3259  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3260echo "${ECHO_T}$ac_ct_CXX" >&6
3261else
3262  echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
3264fi
3265
3266  test -n "$ac_ct_CXX" && break
3267done
3268test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3269
3270  CXX=$ac_ct_CXX
3271fi
3272
3273
3274# Provide some information about the compiler.
3275echo "$as_me:$LINENO:" \
3276     "checking for C++ compiler version" >&5
3277ac_compiler=`set X $ac_compile; echo $2`
3278{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3279  (eval $ac_compiler --version </dev/null >&5) 2>&5
3280  ac_status=$?
3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); }
3283{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3284  (eval $ac_compiler -v </dev/null >&5) 2>&5
3285  ac_status=$?
3286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); }
3288{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3289  (eval $ac_compiler -V </dev/null >&5) 2>&5
3290  ac_status=$?
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); }
3293
3294echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3295echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3296if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3297  echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299  cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h.  */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
3304/* end confdefs.h.  */
3305
3306int
3307main ()
3308{
3309#ifndef __GNUC__
3310       choke me
3311#endif
3312
3313  ;
3314  return 0;
3315}
3316_ACEOF
3317rm -f conftest.$ac_objext
3318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319  (eval $ac_compile) 2>conftest.er1
3320  ac_status=$?
3321  grep -v '^ *+' conftest.er1 >conftest.err
3322  rm -f conftest.er1
3323  cat conftest.err >&5
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); } &&
3326         { ac_try='test -z "$ac_cxx_werror_flag"
3327                         || test ! -s conftest.err'
3328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329  (eval $ac_try) 2>&5
3330  ac_status=$?
3331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332  (exit $ac_status); }; } &&
3333         { ac_try='test -s conftest.$ac_objext'
3334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335  (eval $ac_try) 2>&5
3336  ac_status=$?
3337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338  (exit $ac_status); }; }; then
3339  ac_compiler_gnu=yes
3340else
3341  echo "$as_me: failed program was:" >&5
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
3344ac_compiler_gnu=no
3345fi
3346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3347ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3348
3349fi
3350echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3351echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3352GXX=`test $ac_compiler_gnu = yes && echo yes`
3353ac_test_CXXFLAGS=${CXXFLAGS+set}
3354ac_save_CXXFLAGS=$CXXFLAGS
3355CXXFLAGS="-g"
3356echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3357echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3358if test "${ac_cv_prog_cxx_g+set}" = set; then
3359  echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361  cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h.  */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h.  */
3367
3368int
3369main ()
3370{
3371
3372  ;
3373  return 0;
3374}
3375_ACEOF
3376rm -f conftest.$ac_objext
3377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378  (eval $ac_compile) 2>conftest.er1
3379  ac_status=$?
3380  grep -v '^ *+' conftest.er1 >conftest.err
3381  rm -f conftest.er1
3382  cat conftest.err >&5
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); } &&
3385         { ac_try='test -z "$ac_cxx_werror_flag"
3386                         || test ! -s conftest.err'
3387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388  (eval $ac_try) 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }; } &&
3392         { ac_try='test -s conftest.$ac_objext'
3393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394  (eval $ac_try) 2>&5
3395  ac_status=$?
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); }; }; then
3398  ac_cv_prog_cxx_g=yes
3399else
3400  echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403ac_cv_prog_cxx_g=no
3404fi
3405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406fi
3407echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3408echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3409if test "$ac_test_CXXFLAGS" = set; then
3410  CXXFLAGS=$ac_save_CXXFLAGS
3411elif test $ac_cv_prog_cxx_g = yes; then
3412  if test "$GXX" = yes; then
3413    CXXFLAGS="-g -O2"
3414  else
3415    CXXFLAGS="-g"
3416  fi
3417else
3418  if test "$GXX" = yes; then
3419    CXXFLAGS="-O2"
3420  else
3421    CXXFLAGS=
3422  fi
3423fi
3424for ac_declaration in \
3425   '' \
3426   'extern "C" void std::exit (int) throw (); using std::exit;' \
3427   'extern "C" void std::exit (int); using std::exit;' \
3428   'extern "C" void exit (int) throw ();' \
3429   'extern "C" void exit (int);' \
3430   'void exit (int);'
3431do
3432  cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h.  */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h.  */
3438$ac_declaration
3439#include <stdlib.h>
3440int
3441main ()
3442{
3443exit (42);
3444  ;
3445  return 0;
3446}
3447_ACEOF
3448rm -f conftest.$ac_objext
3449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450  (eval $ac_compile) 2>conftest.er1
3451  ac_status=$?
3452  grep -v '^ *+' conftest.er1 >conftest.err
3453  rm -f conftest.er1
3454  cat conftest.err >&5
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); } &&
3457         { ac_try='test -z "$ac_cxx_werror_flag"
3458                         || test ! -s conftest.err'
3459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460  (eval $ac_try) 2>&5
3461  ac_status=$?
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); }; } &&
3464         { ac_try='test -s conftest.$ac_objext'
3465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466  (eval $ac_try) 2>&5
3467  ac_status=$?
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); }; }; then
3470  :
3471else
3472  echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475continue
3476fi
3477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3478  cat >conftest.$ac_ext <<_ACEOF
3479/* confdefs.h.  */
3480_ACEOF
3481cat confdefs.h >>conftest.$ac_ext
3482cat >>conftest.$ac_ext <<_ACEOF
3483/* end confdefs.h.  */
3484$ac_declaration
3485int
3486main ()
3487{
3488exit (42);
3489  ;
3490  return 0;
3491}
3492_ACEOF
3493rm -f conftest.$ac_objext
3494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495  (eval $ac_compile) 2>conftest.er1
3496  ac_status=$?
3497  grep -v '^ *+' conftest.er1 >conftest.err
3498  rm -f conftest.er1
3499  cat conftest.err >&5
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); } &&
3502         { ac_try='test -z "$ac_cxx_werror_flag"
3503                         || test ! -s conftest.err'
3504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505  (eval $ac_try) 2>&5
3506  ac_status=$?
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); }; } &&
3509         { ac_try='test -s conftest.$ac_objext'
3510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511  (eval $ac_try) 2>&5
3512  ac_status=$?
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); }; }; then
3515  break
3516else
3517  echo "$as_me: failed program was:" >&5
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520fi
3521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3522done
3523rm -f conftest*
3524if test -n "$ac_declaration"; then
3525  echo '#ifdef __cplusplus' >>confdefs.h
3526  echo $ac_declaration      >>confdefs.h
3527  echo '#endif'             >>confdefs.h
3528fi
3529
3530ac_ext=cc
3531ac_cpp='$CXXCPP $CPPFLAGS'
3532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3535
3536if test -z "$CXX" ; then
3537  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
3538echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
3539   { (exit 1); exit 1; }; }
3540fi
3541
3542# It seems that we need to cleanup something here for the Windows
3543case "$CXX" in
3544  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3545    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3546    mv confdefs.hh confdefs.h
3547    ;;
3548esac
3549
3550# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3551case "$CXX" in
3552  cl* | */cl* | CL* | */CL* )
3553    if test "$ac_cv_prog_cxx_g" = yes ; then
3554      ac_cv_prog_cxx_g=no
3555      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3556echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3557    fi ;;
3558esac
3559CXXFLAGS="$save_cxxflags"
3560
3561# Check if a project specific CXXFLAGS variable has been set
3562if test x$COIN_PRJCT != x; then
3563  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3564  if test x$coin_tmp = xset; then
3565    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3566  fi
3567fi
3568
3569if test x"$CXXFLAGS" = x; then
3570
3571# ToDo decide whether we want -DNDEBUG for optimization
3572  coin_add_cxxflags=
3573  coin_opt_cxxflags=
3574  coin_dbg_cxxflags=
3575  coin_warn_cxxflags=
3576
3577  if test "$GXX" = "yes"; then
3578    case "$CXX" in
3579      icpc* | */icpc*)
3580        ;;
3581      *)
3582# ToDo decide about unroll-loops
3583        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3584        coin_add_cxxflags="-pipe"
3585        coin_dbg_cxxflags="-g"
3586        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3587        case $enable_doscompile in
3588          mingw)
3589            CXXFLAGS="-mno-cygwin"
3590            cat >conftest.$ac_ext <<_ACEOF
3591/* confdefs.h.  */
3592_ACEOF
3593cat confdefs.h >>conftest.$ac_ext
3594cat >>conftest.$ac_ext <<_ACEOF
3595/* end confdefs.h.  */
3596
3597int
3598main ()
3599{
3600int i=0; i++;
3601  ;
3602  return 0;
3603}
3604_ACEOF
3605rm -f conftest.$ac_objext conftest$ac_exeext
3606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607  (eval $ac_link) 2>conftest.er1
3608  ac_status=$?
3609  grep -v '^ *+' conftest.er1 >conftest.err
3610  rm -f conftest.er1
3611  cat conftest.err >&5
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); } &&
3614         { ac_try='test -z "$ac_cxx_werror_flag"
3615                         || test ! -s conftest.err'
3616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617  (eval $ac_try) 2>&5
3618  ac_status=$?
3619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620  (exit $ac_status); }; } &&
3621         { ac_try='test -s conftest$ac_exeext'
3622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623  (eval $ac_try) 2>&5
3624  ac_status=$?
3625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); }; }; then
3627  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3628else
3629  echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632fi
3633rm -f conftest.err conftest.$ac_objext \
3634      conftest$ac_exeext conftest.$ac_ext
3635            CXXFLAGS=
3636            ;;
3637        esac
3638    esac
3639  fi
3640
3641# Note that we do not need to cover GCC in the following tests.
3642
3643  if test -z "$coin_opt_cxxflags"; then
3644    case $build in
3645      *-cygwin* | *-mingw*)
3646        case "$CXX" in
3647          cl* | */cl* | CL* | */CL*)
3648            # The MT and MTd options are mutually exclusive
3649            coin_opt_cxxflags='-MT -O2'
3650            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3651            coin_dbg_cxxflags='-MTd'
3652            ;;
3653          icl* | */icl* | ICL* | */ICL*)
3654            # The MT and MTd options are mutually exclusive
3655            coin_opt_cxxflags='-MT -Ox'
3656            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3657            coin_dbg_cxxflags='-MTd -debug'
3658            ;;
3659        esac
3660        ;;
3661      *-linux-*)
3662        case "$CXX" in
3663          icpc* | */icpc*)
3664            coin_opt_cxxflags="-O3 -ip"
3665            coin_add_cxxflags=""
3666            coin_dbg_cxxflags="-g"
3667            # Check if -i_dynamic is necessary (for new glibc library)
3668            CXXFLAGS=
3669            cat >conftest.$ac_ext <<_ACEOF
3670/* confdefs.h.  */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h.  */
3675
3676int
3677main ()
3678{
3679int i=0; i++;
3680  ;
3681  return 0;
3682}
3683_ACEOF
3684rm -f conftest.$ac_objext conftest$ac_exeext
3685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686  (eval $ac_link) 2>conftest.er1
3687  ac_status=$?
3688  grep -v '^ *+' conftest.er1 >conftest.err
3689  rm -f conftest.er1
3690  cat conftest.err >&5
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); } &&
3693         { ac_try='test -z "$ac_cxx_werror_flag"
3694                         || test ! -s conftest.err'
3695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696  (eval $ac_try) 2>&5
3697  ac_status=$?
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); }; } &&
3700         { ac_try='test -s conftest$ac_exeext'
3701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702  (eval $ac_try) 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }; }; then
3706  :
3707else
3708  echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
3710
3711coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3712fi
3713rm -f conftest.err conftest.$ac_objext \
3714      conftest$ac_exeext conftest.$ac_ext
3715            ;;
3716          pgCC* | */pgCC*)
3717            coin_opt_cxxflags="-fast"
3718            coin_add_cxxflags="-Kieee -pc 64"
3719            coin_dbg_cxxflags="-g"
3720            ;;
3721        esac
3722        ;;
3723      *-ibm-*)
3724        case "$CXX" in
3725          xlC* | */xlC* | mpxlC* | */mpxlC*)
3726            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3727            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029"
3728            coin_dbg_cxxflags="-g"
3729            ;;
3730        esac
3731        ;;
3732      *-hp-*)
3733        case "$CXX" in
3734          aCC* | */aCC* )
3735            coin_opt_cxxflags="-O"
3736            coin_add_cxxflags="-AA"
3737            coin_dbg_cxxflags="-g"
3738            ;;
3739        esac
3740        ;;
3741      *-*-solaris*)
3742          coin_opt_cxxflags="-O4"
3743          coin_dbg_cxxflags="-g"
3744        ;;
3745    esac
3746  fi
3747
3748# Generic flag settings. If these don't work, add a case above.
3749
3750  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3751    coin_dbg_cxxflags="-g"
3752  fi
3753
3754  if test -z "$coin_opt_cxxflags"; then
3755    # Try if -O option works if nothing else is set
3756    CXXFLAGS=-O
3757    cat >conftest.$ac_ext <<_ACEOF
3758/* confdefs.h.  */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h.  */
3763
3764int
3765main ()
3766{
3767int i=0; i++;
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772rm -f conftest.$ac_objext conftest$ac_exeext
3773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3774  (eval $ac_link) 2>conftest.er1
3775  ac_status=$?
3776  grep -v '^ *+' conftest.er1 >conftest.err
3777  rm -f conftest.er1
3778  cat conftest.err >&5
3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780  (exit $ac_status); } &&
3781         { ac_try='test -z "$ac_cxx_werror_flag"
3782                         || test ! -s conftest.err'
3783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784  (eval $ac_try) 2>&5
3785  ac_status=$?
3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787  (exit $ac_status); }; } &&
3788         { ac_try='test -s conftest$ac_exeext'
3789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790  (eval $ac_try) 2>&5
3791  ac_status=$?
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); }; }; then
3794  coin_opt_cxxflags="-O"
3795else
3796  echo "$as_me: failed program was:" >&5
3797sed 's/^/| /' conftest.$ac_ext >&5
3798
3799fi
3800rm -f conftest.err conftest.$ac_objext \
3801      conftest$ac_exeext conftest.$ac_ext
3802  fi
3803
3804  # if PM doesn't want the warning messages, take them out
3805  if test x"$coin_skip_warn_cxxflags" = xyes; then
3806    coin_warn_cxxflags=
3807  fi
3808
3809# Do final setup of flags based on values determined above.
3810
3811  if test x${DBG_CXXFLAGS+set} != xset; then
3812    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3813  fi
3814  if test x${OPT_CXXFLAGS+set} != xset; then
3815    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3816  fi
3817
3818  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3819  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3820
3821  if test "$coin_debug_compile" = "true"; then
3822    CXXFLAGS="$DBG_CXXFLAGS"
3823  else
3824    CXXFLAGS="$OPT_CXXFLAGS"
3825  fi
3826
3827# Handle the case where CXXFLAGS was set externally.
3828else
3829  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3830  if test x${DBG_CXXFLAGS+set} != xset; then
3831    DBG_CXXFLAGS="$CXXFLAGS"
3832  fi
3833  if test x${OPT_CXXFLAGS+set} != xset; then
3834    OPT_CXXFLAGS="$CXXFLAGS"
3835  fi
3836fi
3837
3838# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3839
3840case "$CXXFLAGS" in
3841  *-mno-cygwin*)
3842    if test x${CPPFLAGS+set} != xset ; then
3843      CPPFLAGS="-mno-cygwin"
3844    else
3845      case "$CPPFLAGS" in
3846        *-mno-cygwin*)
3847          ;;
3848        *)
3849          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3850          ;;
3851      esac
3852    fi ;;
3853esac
3854
3855# Try if CXXFLAGS works
3856save_CXXFLAGS="$CXXFLAGS"
3857cat >conftest.$ac_ext <<_ACEOF
3858/* confdefs.h.  */
3859_ACEOF
3860cat confdefs.h >>conftest.$ac_ext
3861cat >>conftest.$ac_ext <<_ACEOF
3862/* end confdefs.h.  */
3863
3864int
3865main ()
3866{
3867int i=0; i++;
3868  ;
3869  return 0;
3870}
3871_ACEOF
3872rm -f conftest.$ac_objext conftest$ac_exeext
3873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3874  (eval $ac_link) 2>conftest.er1
3875  ac_status=$?
3876  grep -v '^ *+' conftest.er1 >conftest.err
3877  rm -f conftest.er1
3878  cat conftest.err >&5
3879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880  (exit $ac_status); } &&
3881         { ac_try='test -z "$ac_cxx_werror_flag"
3882                         || test ! -s conftest.err'
3883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884  (eval $ac_try) 2>&5
3885  ac_status=$?
3886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887  (exit $ac_status); }; } &&
3888         { ac_try='test -s conftest$ac_exeext'
3889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890  (eval $ac_try) 2>&5
3891  ac_status=$?
3892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893  (exit $ac_status); }; }; then
3894  :
3895else
3896  echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
3899CXXFLAGS=
3900fi
3901rm -f conftest.err conftest.$ac_objext \
3902      conftest$ac_exeext conftest.$ac_ext
3903if test -z "$CXXFLAGS"; then
3904  { 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
3905echo "$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;}
3906  CXXFLAGS='-O'
3907  cat >conftest.$ac_ext <<_ACEOF
3908/* confdefs.h.  */
3909_ACEOF
3910cat confdefs.h >>conftest.$ac_ext
3911cat >>conftest.$ac_ext <<_ACEOF
3912/* end confdefs.h.  */
3913
3914int
3915main ()
3916{
3917int i=0; i++;
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922rm -f conftest.$ac_objext conftest$ac_exeext
3923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3924  (eval $ac_link) 2>conftest.er1
3925  ac_status=$?
3926  grep -v '^ *+' conftest.er1 >conftest.err
3927  rm -f conftest.er1
3928  cat conftest.err >&5
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); } &&
3931         { ac_try='test -z "$ac_cxx_werror_flag"
3932                         || test ! -s conftest.err'
3933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934  (eval $ac_try) 2>&5
3935  ac_status=$?
3936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937  (exit $ac_status); }; } &&
3938         { ac_try='test -s conftest$ac_exeext'
3939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940  (eval $ac_try) 2>&5
3941  ac_status=$?
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); }; }; then
3944  :
3945else
3946  echo "$as_me: failed program was:" >&5
3947sed 's/^/| /' conftest.$ac_ext >&5
3948
3949CXXFLAGS=
3950fi
3951rm -f conftest.err conftest.$ac_objext \
3952      conftest$ac_exeext conftest.$ac_ext
3953  if test -z "$CXXFLAGS"; then
3954    { 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
3955echo "$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;}
3956  fi
3957fi
3958
3959{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3960echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3961
3962
3963if test x"$MPICXX" = x; then :; else
3964  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3965echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3966  CXX="$MPICXX"
3967fi
3968
3969case "$CXX" in
3970  cl* | */cl* | CL* | */CL* )
3971    case $build in
3972  *-mingw*)
3973    if test "${LD+set}" = set; then :; else
3974      LD=link
3975    fi
3976    ;;
3977 esac
3978 case $enable_doscompile in
3979   msvc)
3980     if test "x${LD+set}" = xset; then :; else
3981       LD=link
3982     fi
3983     ;;
3984 esac
3985
3986    ;;
3987esac
3988
3989ac_ext=c
3990ac_cpp='$CPP $CPPFLAGS'
3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995
3996
3997# Initialize automake and libtool
3998{
3999
4000
4001
4002# START
4003
4004# Test if force_shared has been set
4005if test "x" = xforce_shared; then
4006  if test x$enable_shared = xno; then
4007    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4008echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4009   { (exit 1); exit 1; }; }
4010  fi
4011  enable_shared=yes;
4012else
4013  # On Cygwin and AIX, building DLLs doesn't work
4014  case $build in
4015    *-cygwin*)
4016      coin_disable_shared=yes
4017      platform=Cygwin
4018    ;;
4019    *-aix*)
4020      coin_disable_shared=yes
4021      platform=AIX
4022    ;;
4023    *-mingw*)
4024      coin_disable_shared=yes
4025      platform="Msys"
4026#      case "$CXX" in
4027#        cl*)
4028#          coin_disable_shared=yes
4029#          platform="Msys with cl"
4030#      ;;
4031#      esac
4032    ;;
4033  esac
4034fi
4035if test x"$coin_disable_shared" = xyes; then
4036  if test x"$enable_shared" = xyes; then
4037    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4038echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4039  fi
4040  enable_shared=no
4041fi
4042# By default, we only want the shared objects to be compiled
4043# Check whether --enable-static or --disable-static was given.
4044if test "${enable_static+set}" = set; then
4045  enableval="$enable_static"
4046  p=${PACKAGE-default}
4047    case $enableval in
4048    yes) enable_static=yes ;;
4049    no) enable_static=no ;;
4050    *)
4051     enable_static=no
4052      # Look at the argument we got.  We use all the common list separators.
4053      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4054      for pkg in $enableval; do
4055        IFS="$lt_save_ifs"
4056        if test "X$pkg" = "X$p"; then
4057          enable_static=yes
4058        fi
4059      done
4060      IFS="$lt_save_ifs"
4061      ;;
4062    esac
4063else
4064  enable_static=no
4065fi;
4066
4067
4068
4069
4070# Initialize automake
4071echo "$as_me:$LINENO: checking for egrep" >&5
4072echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4073if test "${ac_cv_prog_egrep+set}" = set; then
4074  echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4077    then ac_cv_prog_egrep='grep -E'
4078    else ac_cv_prog_egrep='egrep'
4079    fi
4080fi
4081echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4082echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4083 EGREP=$ac_cv_prog_egrep
4084
4085
4086am__api_version="1.9"
4087# Find a good install program.  We prefer a C program (faster),
4088# so one script is as good as another.  But avoid the broken or
4089# incompatible versions:
4090# SysV /etc/install, /usr/sbin/install
4091# SunOS /usr/etc/install
4092# IRIX /sbin/install
4093# AIX /bin/install
4094# AmigaOS /C/install, which installs bootblocks on floppy discs
4095# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4096# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4097# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4098# OS/2's system install, which has a completely different semantic
4099# ./install, which can be erroneously created by make from ./install.sh.
4100echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4101echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4102if test -z "$INSTALL"; then
4103if test "${ac_cv_path_install+set}" = set; then
4104  echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107for as_dir in $PATH
4108do
4109  IFS=$as_save_IFS
4110  test -z "$as_dir" && as_dir=.
4111  # Account for people who put trailing slashes in PATH elements.
4112case $as_dir/ in
4113  ./ | .// | /cC/* | \
4114  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4115  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4116  /usr/ucb/* ) ;;
4117  *)
4118    # OSF1 and SCO ODT 3.0 have their own names for install.
4119    # Don't use installbsd from OSF since it installs stuff as root
4120    # by default.
4121    for ac_prog in ginstall scoinst install; do
4122      for ac_exec_ext in '' $ac_executable_extensions; do
4123        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4124          if test $ac_prog = install &&
4125            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4126            # AIX install.  It has an incompatible calling convention.
4127            :
4128          elif test $ac_prog = install &&
4129            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4130            # program-specific install script used by HP pwplus--don't use.
4131            :
4132          else
4133            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4134            break 3
4135          fi
4136        fi
4137      done
4138    done
4139    ;;
4140esac
4141done
4142
4143
4144fi
4145  if test "${ac_cv_path_install+set}" = set; then
4146    INSTALL=$ac_cv_path_install
4147  else
4148    # As a last resort, use the slow shell script.  We don't cache a
4149    # path for INSTALL within a source directory, because that will
4150    # break other packages using the cache if that directory is
4151    # removed, or if the path is relative.
4152    INSTALL=$ac_install_sh
4153  fi
4154fi
4155echo "$as_me:$LINENO: result: $INSTALL" >&5
4156echo "${ECHO_T}$INSTALL" >&6
4157
4158# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4159# It thinks the first close brace ends the variable substitution.
4160test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4161
4162test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4163
4164test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4165
4166echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4167echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4168# Just in case
4169sleep 1
4170echo timestamp > conftest.file
4171# Do `set' in a subshell so we don't clobber the current shell's
4172# arguments.  Must try -L first in case configure is actually a
4173# symlink; some systems play weird games with the mod time of symlinks
4174# (eg FreeBSD returns the mod time of the symlink's containing
4175# directory).
4176if (
4177   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4178   if test "$*" = "X"; then
4179      # -L didn't work.
4180      set X `ls -t $srcdir/configure conftest.file`
4181   fi
4182   rm -f conftest.file
4183   if test "$*" != "X $srcdir/configure conftest.file" \
4184      && test "$*" != "X conftest.file $srcdir/configure"; then
4185
4186      # If neither matched, then we have a broken ls.  This can happen
4187      # if, for instance, CONFIG_SHELL is bash and it inherits a
4188      # broken ls alias from the environment.  This has actually
4189      # happened.  Such a system could not be considered "sane".
4190      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4191alias in your environment" >&5
4192echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4193alias in your environment" >&2;}
4194   { (exit 1); exit 1; }; }
4195   fi
4196
4197   test "$2" = conftest.file
4198   )
4199then
4200   # Ok.
4201   :
4202else
4203   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4204Check your system clock" >&5
4205echo "$as_me: error: newly created file is older than distributed files!
4206Check your system clock" >&2;}
4207   { (exit 1); exit 1; }; }
4208fi
4209echo "$as_me:$LINENO: result: yes" >&5
4210echo "${ECHO_T}yes" >&6
4211test "$program_prefix" != NONE &&
4212  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4213# Use a double $ so make ignores it.
4214test "$program_suffix" != NONE &&
4215  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4216# Double any \ or $.  echo might interpret backslashes.
4217# By default was `s,x,x', remove it if useless.
4218cat <<\_ACEOF >conftest.sed
4219s/[\\$]/&&/g;s/;s,x,x,$//
4220_ACEOF
4221program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4222rm conftest.sed
4223
4224# expand $ac_aux_dir to an absolute path
4225am_aux_dir=`cd $ac_aux_dir && pwd`
4226
4227test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4228# Use eval to expand $SHELL
4229if eval "$MISSING --run true"; then
4230  am_missing_run="$MISSING --run "
4231else
4232  am_missing_run=
4233  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4234echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4235fi
4236
4237if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4238  # We used to keeping the `.' as first argument, in order to
4239  # allow $(mkdir_p) to be used without argument.  As in
4240  #   $(mkdir_p) $(somedir)
4241  # where $(somedir) is conditionally defined.  However this is wrong
4242  # for two reasons:
4243  #  1. if the package is installed by a user who cannot write `.'
4244  #     make install will fail,
4245  #  2. the above comment should most certainly read
4246  #     $(mkdir_p) $(DESTDIR)$(somedir)
4247  #     so it does not work when $(somedir) is undefined and
4248  #     $(DESTDIR) is not.
4249  #  To support the latter case, we have to write
4250  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4251  #  so the `.' trick is pointless.
4252  mkdir_p='mkdir -p --'
4253else
4254  # On NextStep and OpenStep, the `mkdir' command does not
4255  # recognize any option.  It will interpret all options as
4256  # directories to create, and then abort because `.' already
4257  # exists.
4258  for d in ./-p ./--version;
4259  do
4260    test -d $d && rmdir $d
4261  done
4262  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4263  if test -f "$ac_aux_dir/mkinstalldirs"; then
4264    mkdir_p='$(mkinstalldirs)'
4265  else
4266    mkdir_p='$(install_sh) -d'
4267  fi
4268fi
4269
4270for ac_prog in gawk mawk nawk awk
4271do
4272  # Extract the first word of "$ac_prog", so it can be a program name with args.
4273set dummy $ac_prog; ac_word=$2
4274echo "$as_me:$LINENO: checking for $ac_word" >&5
4275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276if test "${ac_cv_prog_AWK+set}" = set; then
4277  echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279  if test -n "$AWK"; then
4280  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4281else
4282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283for as_dir in $PATH
4284do
4285  IFS=$as_save_IFS
4286  test -z "$as_dir" && as_dir=.
4287  for ac_exec_ext in '' $ac_executable_extensions; do
4288  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289    ac_cv_prog_AWK="$ac_prog"
4290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291    break 2
4292  fi
4293done
4294done
4295
4296fi
4297fi
4298AWK=$ac_cv_prog_AWK
4299if test -n "$AWK"; then
4300  echo "$as_me:$LINENO: result: $AWK" >&5
4301echo "${ECHO_T}$AWK" >&6
4302else
4303  echo "$as_me:$LINENO: result: no" >&5
4304echo "${ECHO_T}no" >&6
4305fi
4306
4307  test -n "$AWK" && break
4308done
4309
4310echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4311echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4312set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4313if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4314  echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316  cat >conftest.make <<\_ACEOF
4317all:
4318        @echo 'ac_maketemp="$(MAKE)"'
4319_ACEOF
4320# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4321eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4322if test -n "$ac_maketemp"; then
4323  eval ac_cv_prog_make_${ac_make}_set=yes
4324else
4325  eval ac_cv_prog_make_${ac_make}_set=no
4326fi
4327rm -f conftest.make
4328fi
4329if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4330  echo "$as_me:$LINENO: result: yes" >&5
4331echo "${ECHO_T}yes" >&6
4332  SET_MAKE=
4333else
4334  echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
4336  SET_MAKE="MAKE=${MAKE-make}"
4337fi
4338
4339rm -rf .tst 2>/dev/null
4340mkdir .tst 2>/dev/null
4341if test -d .tst; then
4342  am__leading_dot=.
4343else
4344  am__leading_dot=_
4345fi
4346rmdir .tst 2>/dev/null
4347
4348DEPDIR="${am__leading_dot}deps"
4349
4350          ac_config_commands="$ac_config_commands depfiles"
4351
4352
4353am_make=${MAKE-make}
4354cat > confinc << 'END'
4355am__doit:
4356        @echo done
4357.PHONY: am__doit
4358END
4359# If we don't find an include directive, just comment out the code.
4360echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4361echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4362am__include="#"
4363am__quote=
4364_am_result=none
4365# First try GNU make style include.
4366echo "include confinc" > confmf
4367# We grep out `Entering directory' and `Leaving directory'
4368# messages which can occur if `w' ends up in MAKEFLAGS.
4369# In particular we don't look at `^make:' because GNU make might
4370# be invoked under some other name (usually "gmake"), in which
4371# case it prints its new name instead of `make'.
4372if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4373   am__include=include
4374   am__quote=
4375   _am_result=GNU
4376fi
4377# Now try BSD make style include.
4378if test "$am__include" = "#"; then
4379   echo '.include "confinc"' > confmf
4380   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4381      am__include=.include
4382      am__quote="\""
4383      _am_result=BSD
4384   fi
4385fi
4386
4387
4388echo "$as_me:$LINENO: result: $_am_result" >&5
4389echo "${ECHO_T}$_am_result" >&6
4390rm -f confinc confmf
4391
4392# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4393if test "${enable_dependency_tracking+set}" = set; then
4394  enableval="$enable_dependency_tracking"
4395
4396fi;
4397if test "x$enable_dependency_tracking" != xno; then
4398  am_depcomp="$ac_aux_dir/depcomp"
4399  AMDEPBACKSLASH='\'
4400fi
4401
4402
4403if test "x$enable_dependency_tracking" != xno; then
4404  AMDEP_TRUE=
4405  AMDEP_FALSE='#'
4406else
4407  AMDEP_TRUE='#'
4408  AMDEP_FALSE=
4409fi
4410
4411
4412
4413
4414
4415# AC_MSG_NOTICE([Beginning automake initialisation.])
4416# Stuff for automake
4417# test to see if srcdir already configured
4418if test "`cd $srcdir && pwd`" != "`pwd`" &&
4419   test -f $srcdir/config.status; then
4420  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4421echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4422   { (exit 1); exit 1; }; }
4423fi
4424
4425# test whether we have cygpath
4426if test -z "$CYGPATH_W"; then
4427  if (cygpath --version) >/dev/null 2>/dev/null; then
4428    CYGPATH_W='cygpath -w'
4429  else
4430    CYGPATH_W=echo
4431  fi
4432fi
4433
4434
4435# Define the identity of the package.
4436 PACKAGE='cbc'
4437 VERSION='stable2.2'
4438
4439
4440cat >>confdefs.h <<_ACEOF
4441#define PACKAGE "$PACKAGE"
4442_ACEOF
4443
4444
4445cat >>confdefs.h <<_ACEOF
4446#define VERSION "$VERSION"
4447_ACEOF
4448
4449# Some tools Automake needs.
4450
4451ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4452
4453
4454AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4455
4456
4457AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4458
4459
4460AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4461
4462
4463MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4464
4465install_sh=${install_sh-"$am_aux_dir/install-sh"}
4466
4467# Installed binaries are usually stripped using `strip' when the user
4468# run `make install-strip'.  However `strip' might not be the right
4469# tool to use in cross-compilation environments, therefore Automake
4470# will honor the `STRIP' environment variable to overrule this program.
4471if test "$cross_compiling" != no; then
4472  if test -n "$ac_tool_prefix"; then
4473  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4474set dummy ${ac_tool_prefix}strip; ac_word=$2
4475echo "$as_me:$LINENO: checking for $ac_word" >&5
4476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4477if test "${ac_cv_prog_STRIP+set}" = set; then
4478  echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480  if test -n "$STRIP"; then
4481  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4482else
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486  IFS=$as_save_IFS
4487  test -z "$as_dir" && as_dir=.
4488  for ac_exec_ext in '' $ac_executable_extensions; do
4489  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492    break 2
4493  fi
4494done
4495done
4496
4497fi
4498fi
4499STRIP=$ac_cv_prog_STRIP
4500if test -n "$STRIP"; then
4501  echo "$as_me:$LINENO: result: $STRIP" >&5
4502echo "${ECHO_T}$STRIP" >&6
4503else
4504  echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6
4506fi
4507
4508fi
4509if test -z "$ac_cv_prog_STRIP"; then
4510  ac_ct_STRIP=$STRIP
4511  # Extract the first word of "strip", so it can be a program name with args.
4512set dummy strip; ac_word=$2
4513echo "$as_me:$LINENO: checking for $ac_word" >&5
4514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4515if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4516  echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518  if test -n "$ac_ct_STRIP"; then
4519  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4520else
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524  IFS=$as_save_IFS
4525  test -z "$as_dir" && as_dir=.
4526  for ac_exec_ext in '' $ac_executable_extensions; do
4527  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528    ac_cv_prog_ac_ct_STRIP="strip"
4529    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530    break 2
4531  fi
4532done
4533done
4534
4535  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4536fi
4537fi
4538ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4539if test -n "$ac_ct_STRIP"; then
4540  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4541echo "${ECHO_T}$ac_ct_STRIP" >&6
4542else
4543  echo "$as_me:$LINENO: result: no" >&5
4544echo "${ECHO_T}no" >&6
4545fi
4546
4547  STRIP=$ac_ct_STRIP
4548else
4549  STRIP="$ac_cv_prog_STRIP"
4550fi
4551
4552fi
4553INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4554
4555# We need awk for the "check" target.  The system "awk" is bad on
4556# some platforms.
4557# Always define AMTAR for backward compatibility.
4558
4559AMTAR=${AMTAR-"${am_missing_run}tar"}
4560
4561am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4562
4563
4564
4565
4566depcc="$CC"   am_compiler_list=
4567
4568echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4569echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4570if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4571  echo $ECHO_N "(cached) $ECHO_C" >&6
4572else
4573  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4574  # We make a subdir and do the tests there.  Otherwise we can end up
4575  # making bogus files that we don't know about and never remove.  For
4576  # instance it was reported that on HP-UX the gcc test will end up
4577  # making a dummy file named `D' -- because `-MD' means `put the output
4578  # in D'.
4579  mkdir conftest.dir
4580  # Copy depcomp to subdir because otherwise we won't find it if we're
4581  # using a relative directory.
4582  cp "$am_depcomp" conftest.dir
4583  cd conftest.dir
4584  # We will build objects and dependencies in a subdirectory because
4585  # it helps to detect inapplicable dependency modes.  For instance
4586  # both Tru64's cc and ICC support -MD to output dependencies as a
4587  # side effect of compilation, but ICC will put the dependencies in
4588  # the current directory while Tru64 will put them in the object
4589  # directory.
4590  mkdir sub
4591
4592  am_cv_CC_dependencies_compiler_type=none
4593  if test "$am_compiler_list" = ""; then
4594     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4595  fi
4596  for depmode in $am_compiler_list; do
4597    # Setup a source with many dependencies, because some compilers
4598    # like to wrap large dependency lists on column 80 (with \), and
4599    # we should not choose a depcomp mode which is confused by this.
4600    #
4601    # We need to recreate these files for each test, as the compiler may
4602    # overwrite some of them when testing with obscure command lines.
4603    # This happens at least with the AIX C compiler.
4604    : > sub/conftest.c
4605    for i in 1 2 3 4 5 6; do
4606      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4607      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4608      # Solaris 8's {/usr,}/bin/sh.
4609      touch sub/conftst$i.h
4610    done
4611    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4612
4613    case $depmode in
4614    nosideeffect)
4615      # after this tag, mechanisms are not by side-effect, so they'll
4616      # only be used when explicitly requested
4617      if test "x$enable_dependency_tracking" = xyes; then
4618        continue
4619      else
4620        break
4621      fi
4622      ;;
4623    none) break ;;
4624    esac
4625    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4626    # mode.  It turns out that the SunPro C++ compiler does not properly
4627    # handle `-M -o', and we need to detect this.
4628    if depmode=$depmode \
4629       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4630       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4631       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4632         >/dev/null 2>conftest.err &&
4633       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4634       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4635       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4636      # icc doesn't choke on unknown options, it will just issue warnings
4637      # or remarks (even with -Werror).  So we grep stderr for any message
4638      # that says an option was ignored or not supported.
4639      # When given -MP, icc 7.0 and 7.1 complain thusly:
4640      #   icc: Command line warning: ignoring option '-M'; no argument required
4641      # The diagnosis changed in icc 8.0:
4642      #   icc: Command line remark: option '-MP' not supported
4643      if (grep 'ignoring option' conftest.err ||
4644          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4645        am_cv_CC_dependencies_compiler_type=$depmode
4646        break
4647      fi
4648    fi
4649  done
4650
4651  cd ..
4652  rm -rf conftest.dir
4653else
4654  am_cv_CC_dependencies_compiler_type=none
4655fi
4656
4657fi
4658echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4659echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4660CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4661
4662
4663
4664if
4665  test "x$enable_dependency_tracking" != xno \
4666  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4667  am__fastdepCC_TRUE=
4668  am__fastdepCC_FALSE='#'
4669else
4670  am__fastdepCC_TRUE='#'
4671  am__fastdepCC_FALSE=
4672fi
4673
4674
4675depcc="$CXX"  am_compiler_list=
4676
4677echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4678echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4679if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4680  echo $ECHO_N "(cached) $ECHO_C" >&6
4681else
4682  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4683  # We make a subdir and do the tests there.  Otherwise we can end up
4684  # making bogus files that we don't know about and never remove.  For
4685  # instance it was reported that on HP-UX the gcc test will end up
4686  # making a dummy file named `D' -- because `-MD' means `put the output
4687  # in D'.
4688  mkdir conftest.dir
4689  # Copy depcomp to subdir because otherwise we won't find it if we're
4690  # using a relative directory.
4691  cp "$am_depcomp" conftest.dir
4692  cd conftest.dir
4693  # We will build objects and dependencies in a subdirectory because
4694  # it helps to detect inapplicable dependency modes.  For instance
4695  # both Tru64's cc and ICC support -MD to output dependencies as a
4696  # side effect of compilation, but ICC will put the dependencies in
4697  # the current directory while Tru64 will put them in the object
4698  # directory.
4699  mkdir sub
4700
4701  am_cv_CXX_dependencies_compiler_type=none
4702  if test "$am_compiler_list" = ""; then
4703     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4704  fi
4705  for depmode in $am_compiler_list; do
4706    # Setup a source with many dependencies, because some compilers
4707    # like to wrap large dependency lists on column 80 (with \), and
4708    # we should not choose a depcomp mode which is confused by this.
4709    #
4710    # We need to recreate these files for each test, as the compiler may
4711    # overwrite some of them when testing with obscure command lines.
4712    # This happens at least with the AIX C compiler.
4713    : > sub/conftest.c
4714    for i in 1 2 3 4 5 6; do
4715      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4716      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4717      # Solaris 8's {/usr,}/bin/sh.
4718      touch sub/conftst$i.h
4719    done
4720    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4721
4722    case $depmode in
4723    nosideeffect)
4724      # after this tag, mechanisms are not by side-effect, so they'll
4725      # only be used when explicitly requested
4726      if test "x$enable_dependency_tracking" = xyes; then
4727        continue
4728      else
4729        break
4730      fi
4731      ;;
4732    none) break ;;
4733    esac
4734    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4735    # mode.  It turns out that the SunPro C++ compiler does not properly
4736    # handle `-M -o', and we need to detect this.
4737    if depmode=$depmode \
4738       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4739       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4740       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4741         >/dev/null 2>conftest.err &&
4742       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4743       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4744       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4745      # icc doesn't choke on unknown options, it will just issue warnings
4746      # or remarks (even with -Werror).  So we grep stderr for any message
4747      # that says an option was ignored or not supported.
4748      # When given -MP, icc 7.0 and 7.1 complain thusly:
4749      #   icc: Command line warning: ignoring option '-M'; no argument required
4750      # The diagnosis changed in icc 8.0:
4751      #   icc: Command line remark: option '-MP' not supported
4752      if (grep 'ignoring option' conftest.err ||
4753          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4754        am_cv_CXX_dependencies_compiler_type=$depmode
4755        break
4756      fi
4757    fi
4758  done
4759
4760  cd ..
4761  rm -rf conftest.dir
4762else
4763  am_cv_CXX_dependencies_compiler_type=none
4764fi
4765
4766fi
4767echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4768echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4769CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4770
4771
4772
4773if
4774  test "x$enable_dependency_tracking" != xno \
4775  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4776  am__fastdepCXX_TRUE=
4777  am__fastdepCXX_FALSE='#'
4778else
4779  am__fastdepCXX_TRUE='#'
4780  am__fastdepCXX_FALSE=
4781fi
4782
4783
4784
4785echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4786echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4787    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4788if test "${enable_maintainer_mode+set}" = set; then
4789  enableval="$enable_maintainer_mode"
4790  USE_MAINTAINER_MODE=$enableval
4791else
4792  USE_MAINTAINER_MODE=no
4793fi;
4794  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4795echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4796
4797
4798if test $USE_MAINTAINER_MODE = yes; then
4799  MAINTAINER_MODE_TRUE=
4800  MAINTAINER_MODE_FALSE='#'
4801else
4802  MAINTAINER_MODE_TRUE='#'
4803  MAINTAINER_MODE_FALSE=
4804fi
4805
4806  MAINT=$MAINTAINER_MODE_TRUE
4807
4808
4809
4810coin_have_externals=no
4811if test "$enable_maintainer_mode" = yes; then
4812
4813  # If maintainer mode is chosen, we make sure that the correct versions
4814  # of the tools are used, and that we know where libtool.m4 is (to
4815  # recreate acinclude.m4)
4816
4817
4818  LIBTOOLM4=
4819  # Normally, $HOME
4820  AUTOTOOLS_DFLT=$HOME
4821
4822  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4823echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4824if test "${ac_cv_use_correct_autotools+set}" = set; then
4825  echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827  ac_cv_use_correct_autotools=check
4828fi
4829echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4830echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4831
4832  if test $ac_cv_use_correct_autotools = check; then
4833    ac_cv_use_correct_autotools=yes
4834    # Check if we have autoconf
4835    # Extract the first word of "autoconf", so it can be a program name with args.
4836set dummy autoconf; ac_word=$2
4837echo "$as_me:$LINENO: checking for $ac_word" >&5
4838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4839if test "${ac_cv_prog_have_autoconf+set}" = set; then
4840  echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842  if test -n "$have_autoconf"; then
4843  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4844else
4845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848  IFS=$as_save_IFS
4849  test -z "$as_dir" && as_dir=.
4850  for ac_exec_ext in '' $ac_executable_extensions; do
4851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4852    ac_cv_prog_have_autoconf="yes"
4853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854    break 2
4855  fi
4856done
4857done
4858
4859  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4860fi
4861fi
4862have_autoconf=$ac_cv_prog_have_autoconf
4863if test -n "$have_autoconf"; then
4864  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4865echo "${ECHO_T}$have_autoconf" >&6
4866else
4867  echo "$as_me:$LINENO: result: no" >&5
4868echo "${ECHO_T}no" >&6
4869fi
4870
4871    if test $have_autoconf = no; then
4872      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4873echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4874   { (exit 1); exit 1; }; }
4875    fi
4876
4877    # Check whether autoconf is the correct version
4878    correct_version='2.59'
4879    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4880    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4881echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4882    autoconf --version > confauto.out 2>&1
4883    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4884      echo "$as_me:$LINENO: result: yes" >&5
4885echo "${ECHO_T}yes" >&6
4886    else
4887      rm -f confauto.out
4888      echo "$as_me:$LINENO: result: no" >&5
4889echo "${ECHO_T}no" >&6
4890      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4891echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4892   { (exit 1); exit 1; }; }
4893    fi
4894    rm -f confauto.out
4895
4896    # Check if the executable autoconf is picked up from the correct location
4897    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4898echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4899    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4900    autoconf_dir=`cd $autoconf_dir; pwd`
4901    if test x$AUTOTOOLS_DIR = x; then
4902      want_dir=$AUTOTOOLS_DFLT/bin
4903    else
4904      want_dir=$AUTOTOOLS_DIR/bin
4905    fi
4906    if test $autoconf_dir = `cd $want_dir; pwd`; then
4907      echo "$as_me:$LINENO: result: yes" >&5
4908echo "${ECHO_T}yes" >&6
4909    else
4910      rm -f confauto.out
4911      echo "$as_me:$LINENO: result: no" >&5
4912echo "${ECHO_T}no" >&6
4913      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4914echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4915   { (exit 1); exit 1; }; }
4916    fi
4917
4918    # Check if we have automake
4919    # Extract the first word of "automake", so it can be a program name with args.
4920set dummy automake; ac_word=$2
4921echo "$as_me:$LINENO: checking for $ac_word" >&5
4922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4923if test "${ac_cv_prog_have_automake+set}" = set; then
4924  echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926  if test -n "$have_automake"; then
4927  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4928else
4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932  IFS=$as_save_IFS
4933  test -z "$as_dir" && as_dir=.
4934  for ac_exec_ext in '' $ac_executable_extensions; do
4935  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936    ac_cv_prog_have_automake="yes"
4937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938    break 2
4939  fi
4940done
4941done
4942
4943  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4944fi
4945fi
4946have_automake=$ac_cv_prog_have_automake
4947if test -n "$have_automake"; then
4948  echo "$as_me:$LINENO: result: $have_automake" >&5
4949echo "${ECHO_T}$have_automake" >&6
4950else
4951  echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
4953fi
4954
4955    if test $have_automake = no; then
4956      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4957echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4958   { (exit 1); exit 1; }; }
4959    fi
4960
4961    # Check whether automake is the correct version
4962    correct_version='1.9.6'
4963    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4964    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4965echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4966    automake --version > confauto.out 2>&1
4967    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4968      echo "$as_me:$LINENO: result: yes" >&5
4969echo "${ECHO_T}yes" >&6
4970    else
4971      rm -f confauto.out
4972      echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
4974      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4975echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4976   { (exit 1); exit 1; }; }
4977    fi
4978    rm -f confauto.out
4979
4980    # Check if the executable automake is picked up from the correct location
4981    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4982echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4983    automake_dir=`which automake | sed -e 's=/automake=='`
4984    automake_dir=`cd $automake_dir; pwd`
4985    if test x$AUTOTOOLS_DIR = x; then
4986      want_dir=$AUTOTOOLS_DFLT/bin
4987    else
4988      want_dir=$AUTOTOOLS_DIR/bin
4989    fi
4990    if test $automake_dir = `cd $want_dir; pwd`; then
4991      echo "$as_me:$LINENO: result: yes" >&5
4992echo "${ECHO_T}yes" >&6
4993    else
4994      rm -f confauto.out
4995      echo "$as_me:$LINENO: result: no" >&5
4996echo "${ECHO_T}no" >&6
4997      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4998echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4999   { (exit 1); exit 1; }; }
5000    fi
5001
5002    # Check if this is the correct version of libtool (with escaped dots)
5003    if test x$AUTOTOOLS_DIR = x; then
5004      want_dir=$AUTOTOOLS_DFLT/share
5005    else
5006      want_dir=$AUTOTOOLS_DIR/share
5007    fi
5008    correct_version='1.5.22'
5009    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5010    if test -r $want_dir/libtool/ltmain.sh; then
5011  have_ltmain=yes
5012  :
5013else
5014  have_ltmain=no
5015  :
5016fi
5017
5018    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5019echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5020    if test $have_ltmain = yes; then
5021    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5022        echo "$as_me:$LINENO: result: yes" >&5
5023echo "${ECHO_T}yes" >&6
5024      else
5025        echo "$as_me:$LINENO: result: no" >&5
5026echo "${ECHO_T}no" >&6
5027        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5028echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5029   { (exit 1); exit 1; }; }
5030      fi
5031    else
5032      echo "$as_me:$LINENO: result: no" >&5
5033echo "${ECHO_T}no" >&6
5034      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5035echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5036   { (exit 1); exit 1; }; }
5037    fi
5038  fi
5039
5040  # Check if we can find the libtool file
5041  if test x$AUTOTOOLS_DIR = x; then
5042    want_dir=$AUTOTOOLS_DFLT/share
5043  else
5044    want_dir=$AUTOTOOLS_DIR/share
5045  fi
5046  if test -r $want_dir/aclocal/libtool.m4; then
5047  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5048  :
5049else
5050  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5051echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5052   { (exit 1); exit 1; }; }
5053  :
5054fi
5055
5056
5057  # Check if we have an Externals file
5058  if test -r $srcdir/Externals; then
5059    coin_have_externals=yes
5060  fi
5061  # Check if subversion is installed and understands https
5062  # Extract the first word of "svn", so it can be a program name with args.
5063set dummy svn; ac_word=$2
5064echo "$as_me:$LINENO: checking for $ac_word" >&5
5065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5066if test "${ac_cv_prog_have_svn+set}" = set; then
5067  echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069  if test -n "$have_svn"; then
5070  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5071else
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075  IFS=$as_save_IFS
5076  test -z "$as_dir" && as_dir=.
5077  for ac_exec_ext in '' $ac_executable_extensions; do
5078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079    ac_cv_prog_have_svn="yes"
5080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081    break 2
5082  fi
5083done
5084done
5085
5086  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5087fi
5088fi
5089have_svn=$ac_cv_prog_have_svn
5090if test -n "$have_svn"; then
5091  echo "$as_me:$LINENO: result: $have_svn" >&5
5092echo "${ECHO_T}$have_svn" >&6
5093else
5094  echo "$as_me:$LINENO: result: no" >&5
5095echo "${ECHO_T}no" >&6
5096fi
5097
5098  if test x$have_svn = xyes; then
5099    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5100echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5101if test "${ac_cv_svn_understands_https+set}" = set; then
5102  echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104  svn --version > confauto.out 2>&1
5105                    if $EGREP https confauto.out >/dev/null 2>&1; then
5106                      ac_cv_svn_understands_https=yes
5107                    else
5108                      ac_cv_svn_understands_https=no
5109                      have_svn=no
5110                      ac_cv_prog_have_svn=no
5111                    fi
5112                    rm -f confauto.out
5113fi
5114echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5115echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5116  fi
5117
5118  # Find the location of the BuildTools directory
5119  BUILDTOOLSDIR=
5120  if test -r $srcdir/BuildTools/coin.m4; then
5121    BUILDTOOLSDIR=$srcdir/BuildTools
5122  else
5123    if test -r $srcdir/../BuildTools/coin.m4; then
5124      BUILDTOOLSDIR=$srcdir/../BuildTools
5125    else
5126      if test -r $srcdir/../../BuildTools/coin.m4; then
5127        BUILDTOOLSDIR=$srcdir/../../BuildTools
5128      else
5129        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5130echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5131   { (exit 1); exit 1; }; }
5132      fi
5133    fi
5134  fi
5135
5136
5137  # The following variable is set to the name of the directory where
5138  # the autotool scripts are located
5139
5140  AUX_DIR=$ac_aux_dir
5141fi
5142
5143# helpful variable for the base directory of this package
5144abs_source_dir=`cd $srcdir; pwd`
5145
5146
5147# Stuff for example Makefiles
5148if test x$prefix = xNONE; then
5149  full_prefix=$ac_default_prefix
5150else
5151  full_prefix=$prefix
5152fi
5153full_prefix=`cd $full_prefix ; pwd`
5154
5155abs_lib_dir=$full_prefix/lib
5156
5157abs_include_dir=$full_prefix/include
5158
5159abs_bin_dir=$full_prefix/bin
5160
5161
5162
5163if test $coin_have_externals = yes && test x$have_svn = xyes; then
5164  HAVE_EXTERNALS_TRUE=
5165  HAVE_EXTERNALS_FALSE='#'
5166else
5167  HAVE_EXTERNALS_TRUE='#'
5168  HAVE_EXTERNALS_FALSE=
5169fi
5170
5171
5172# AC_MSG_NOTICE([End automake initialisation.])
5173
5174
5175
5176LIBTOOL=
5177if test -r ../libtool; then
5178  coin_config_dir=..
5179  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5180fi
5181if test "x$LIBTOOL" = x; then
5182  if test -r ../../libtool; then
5183    coin_config_dir=../..
5184    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5185  fi
5186fi
5187
5188if test "x$LIBTOOL" = x; then
5189# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5190  # Stuff for libtool
5191  # Check whether --enable-shared or --disable-shared was given.
5192if test "${enable_shared+set}" = set; then
5193  enableval="$enable_shared"
5194  p=${PACKAGE-default}
5195    case $enableval in
5196    yes) enable_shared=yes ;;
5197    no) enable_shared=no ;;
5198    *)
5199      enable_shared=no
5200      # Look at the argument we got.  We use all the common list separators.
5201      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5202      for pkg in $enableval; do
5203        IFS="$lt_save_ifs"
5204        if test "X$pkg" = "X$p"; then
5205          enable_shared=yes
5206        fi
5207      done
5208      IFS="$lt_save_ifs"
5209      ;;
5210    esac
5211else
5212  enable_shared=yes
5213fi;
5214
5215# Check whether --enable-fast-install or --disable-fast-install was given.
5216if test "${enable_fast_install+set}" = set; then
5217  enableval="$enable_fast_install"
5218  p=${PACKAGE-default}
5219    case $enableval in
5220    yes) enable_fast_install=yes ;;
5221    no) enable_fast_install=no ;;
5222    *)
5223      enable_fast_install=no
5224      # Look at the argument we got.  We use all the common list separators.
5225      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5226      for pkg in $enableval; do
5227        IFS="$lt_save_ifs"
5228        if test "X$pkg" = "X$p"; then
5229          enable_fast_install=yes
5230        fi
5231      done
5232      IFS="$lt_save_ifs"
5233      ;;
5234    esac
5235else
5236  enable_fast_install=yes
5237fi;
5238
5239echo "$as_me:$LINENO: checking host system type" >&5
5240echo $ECHO_N "checking host system type... $ECHO_C" >&6
5241if test "${ac_cv_host+set}" = set; then
5242  echo $ECHO_N "(cached) $ECHO_C" >&6
5243else
5244  ac_cv_host_alias=$host_alias
5245test -z "$ac_cv_host_alias" &&
5246  ac_cv_host_alias=$ac_cv_build_alias
5247ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5248  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5249echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5250   { (exit 1); exit 1; }; }
5251
5252fi
5253echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5254echo "${ECHO_T}$ac_cv_host" >&6
5255host=$ac_cv_host
5256host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5257host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5258host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5259
5260
5261echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5262echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5263if test "${lt_cv_path_SED+set}" = set; then
5264  echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266  # Loop through the user's path and test for sed and gsed.
5267# Then use that list of sed's as ones to test for truncation.
5268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269for as_dir in $PATH
5270do
5271  IFS=$as_save_IFS
5272  test -z "$as_dir" && as_dir=.
5273  for lt_ac_prog in sed gsed; do
5274    for ac_exec_ext in '' $ac_executable_extensions; do
5275      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5276        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5277      fi
5278    done
5279  done
5280done
5281lt_ac_max=0
5282lt_ac_count=0
5283# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5284# along with /bin/sed that truncates output.
5285for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5286  test ! -f $lt_ac_sed && continue
5287  cat /dev/null > conftest.in
5288  lt_ac_count=0
5289  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5290  # Check for GNU sed and select it if it is found.
5291  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5292    lt_cv_path_SED=$lt_ac_sed
5293    break
5294  fi
5295  while true; do
5296    cat conftest.in conftest.in >conftest.tmp
5297    mv conftest.tmp conftest.in
5298    cp conftest.in conftest.nl
5299    echo >>conftest.nl
5300    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5301    cmp -s conftest.out conftest.nl || break
5302    # 10000 chars as input seems more than enough
5303    test $lt_ac_count -gt 10 && break
5304    lt_ac_count=`expr $lt_ac_count + 1`
5305    if test $lt_ac_count -gt $lt_ac_max; then
5306      lt_ac_max=$lt_ac_count
5307      lt_cv_path_SED=$lt_ac_sed
5308    fi
5309  done
5310done
5311
5312fi
5313
5314SED=$lt_cv_path_SED
5315echo "$as_me:$LINENO: result: $SED" >&5
5316echo "${ECHO_T}$SED" >&6
5317
5318
5319# Check whether --with-gnu-ld or --without-gnu-ld was given.
5320if test "${with_gnu_ld+set}" = set; then
5321  withval="$with_gnu_ld"
5322  test "$withval" = no || with_gnu_ld=yes
5323else
5324  with_gnu_ld=no
5325fi;
5326ac_prog=ld
5327if test "$GCC" = yes; then
5328  # Check if gcc -print-prog-name=ld gives a path.
5329  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5330echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5331  case $host in
5332  *-*-mingw*)
5333    # gcc leaves a trailing carriage return which upsets mingw
5334    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5335  *)
5336    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5337  esac
5338  case $ac_prog in
5339    # Accept absolute paths.
5340    [\\/]* | ?:[\\/]*)
5341      re_direlt='/[^/][^/]*/\.\./'
5342      # Canonicalize the pathname of ld
5343      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5344      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5345        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5346      done
5347      test -z "$LD" && LD="$ac_prog"
5348      ;;
5349  "")
5350    # If it fails, then pretend we aren't using GCC.
5351    ac_prog=ld
5352    ;;
5353  *)
5354    # If it is relative, then search for the first ld in PATH.
5355    with_gnu_ld=unknown
5356    ;;
5357  esac
5358elif test "$with_gnu_ld" = yes; then
5359  echo "$as_me:$LINENO: checking for GNU ld" >&5
5360echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5361else
5362  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5363echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5364fi
5365if test "${lt_cv_path_LD+set}" = set; then
5366  echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368  if test -z "$LD"; then
5369  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5370  for ac_dir in $PATH; do
5371    IFS="$lt_save_ifs"
5372    test -z "$ac_dir" && ac_dir=.
5373    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5374      lt_cv_path_LD="$ac_dir/$ac_prog"
5375      # Check to see if the program is GNU ld.  I'd rather use --version,
5376      # but apparently some variants of GNU ld only accept -v.
5377      # Break only if it was the GNU/non-GNU ld that we prefer.
5378      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5379      *GNU* | *'with BFD'*)
5380        test "$with_gnu_ld" != no && break
5381        ;;
5382      *)
5383        test "$with_gnu_ld" != yes && break
5384        ;;
5385      esac
5386    fi
5387  done
5388  IFS="$lt_save_ifs"
5389else
5390  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5391fi
5392fi
5393
5394LD="$lt_cv_path_LD"
5395if test -n "$LD"; then
5396  echo "$as_me:$LINENO: result: $LD" >&5
5397echo "${ECHO_T}$LD" >&6
5398else
5399  echo "$as_me:$LINENO: result: no" >&5
5400echo "${ECHO_T}no" >&6
5401fi
5402test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5403echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5404   { (exit 1); exit 1; }; }
5405echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5406echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5407if test "${lt_cv_prog_gnu_ld+set}" = set; then
5408  echo $ECHO_N "(cached) $ECHO_C" >&6
5409else
5410  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5411case `$LD -v 2>&1 </dev/null` in
5412*GNU* | *'with BFD'*)
5413  lt_cv_prog_gnu_ld=yes
5414  ;;
5415*)
5416  lt_cv_prog_gnu_ld=no
5417  ;;
5418esac
5419fi
5420echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5421echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5422with_gnu_ld=$lt_cv_prog_gnu_ld
5423
5424
5425echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5426echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5427if test "${lt_cv_ld_reload_flag+set}" = set; then
5428  echo $ECHO_N "(cached) $ECHO_C" >&6
5429else
5430  lt_cv_ld_reload_flag='-r'
5431fi
5432echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5433echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5434reload_flag=$lt_cv_ld_reload_flag
5435case $reload_flag in
5436"" | " "*) ;;
5437*) reload_flag=" $reload_flag" ;;
5438esac
5439reload_cmds='$LD$reload_flag -o $output$reload_objs'
5440case $host_os in
5441  darwin*)
5442    if test "$GCC" = yes; then
5443      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5444    else
5445      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5446    fi
5447    ;;
5448esac
5449
5450echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5451echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5452if test "${lt_cv_path_NM+set}" = set; then
5453  echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455  if test -n "$NM"; then
5456  # Let the user override the test.
5457  lt_cv_path_NM="$NM"
5458else
5459  lt_nm_to_check="${ac_tool_prefix}nm"
5460  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5461    lt_nm_to_check="$lt_nm_to_check nm"
5462  fi
5463  for lt_tmp_nm in $lt_nm_to_check; do
5464    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5465    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5466      IFS="$lt_save_ifs"
5467      test -z "$ac_dir" && ac_dir=.
5468      tmp_nm="$ac_dir/$lt_tmp_nm"
5469      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5470        # Check to see if the nm accepts a BSD-compat flag.
5471        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5472        #   nm: unknown option "B" ignored
5473        # Tru64's nm complains that /dev/null is an invalid object file
5474        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5475        */dev/null* | *'Invalid file or object type'*)
5476          lt_cv_path_NM="$tmp_nm -B"
5477          break
5478          ;;
5479        *)
5480          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5481          */dev/null*)
5482            lt_cv_path_NM="$tmp_nm -p"
5483            break
5484            ;;
5485          *)
5486            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5487            continue # so that we can try to find one that supports BSD flags
5488            ;;
5489          esac
5490          ;;
5491        esac
5492      fi
5493    done
5494    IFS="$lt_save_ifs"
5495  done
5496  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5497fi
5498fi
5499echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5500echo "${ECHO_T}$lt_cv_path_NM" >&6
5501NM="$lt_cv_path_NM"
5502
5503echo "$as_me:$LINENO: checking whether ln -s works" >&5
5504echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5505LN_S=$as_ln_s
5506if test "$LN_S" = "ln -s"; then
5507  echo "$as_me:$LINENO: result: yes" >&5
5508echo "${ECHO_T}yes" >&6
5509else
5510  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5511echo "${ECHO_T}no, using $LN_S" >&6
5512fi
5513
5514echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5515echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5516if test "${lt_cv_deplibs_check_method+set}" = set; then
5517  echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519  lt_cv_file_magic_cmd='$MAGIC_CMD'
5520lt_cv_file_magic_test_file=
5521lt_cv_deplibs_check_method='unknown'
5522# Need to set the preceding variable on all platforms that support
5523# interlibrary dependencies.
5524# 'none' -- dependencies not supported.
5525# `unknown' -- same as none, but documents that we really don't know.
5526# 'pass_all' -- all dependencies passed with no checks.
5527# 'test_compile' -- check by making test program.
5528# 'file_magic [[regex]]' -- check by looking for files in library path
5529# which responds to the $file_magic_cmd with a given extended regex.
5530# If you have `file' or equivalent on your system and you're not sure
5531# whether `pass_all' will *always* work, you probably want this one.
5532
5533case $host_os in
5534aix4* | aix5*)
5535  lt_cv_deplibs_check_method=pass_all
5536  ;;
5537
5538beos*)
5539  lt_cv_deplibs_check_method=pass_all
5540  ;;
5541
5542bsdi[45]*)
5543  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5544  lt_cv_file_magic_cmd='/usr/bin/file -L'
5545  lt_cv_file_magic_test_file=/shlib/libc.so
5546  ;;
5547
5548cygwin*)
5549  # func_win32_libid is a shell function defined in ltmain.sh
5550  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5551  lt_cv_file_magic_cmd='func_win32_libid'
5552  ;;
5553
5554mingw* | pw32*)
5555  # Base MSYS/MinGW do not provide the 'file' command needed by
5556  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5557  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5558  lt_cv_file_magic_cmd='$OBJDUMP -f'
5559  ;;
5560
5561darwin* | rhapsody*)
5562  lt_cv_deplibs_check_method=pass_all
5563  ;;
5564
5565freebsd* | kfreebsd*-gnu | dragonfly*)
5566  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5567    case $host_cpu in
5568    i*86 )
5569      # Not sure whether the presence of OpenBSD here was a mistake.
5570      # Let's accept both of them until this is cleared up.
5571      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5572      lt_cv_file_magic_cmd=/usr/bin/file
5573      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5574      ;;
5575    esac
5576  else
5577    lt_cv_deplibs_check_method=pass_all
5578  fi
5579  ;;
5580
5581gnu*)
5582  lt_cv_deplibs_check_method=pass_all
5583  ;;
5584
5585hpux10.20* | hpux11*)
5586  lt_cv_file_magic_cmd=/usr/bin/file
5587  case $host_cpu in
5588  ia64*)
5589    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5590    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5591    ;;
5592  hppa*64*)
5593    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]'
5594    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5595    ;;
5596  *)
5597    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5598    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5599    ;;
5600  esac
5601  ;;
5602
5603interix3*)
5604  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5605  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5606  ;;
5607
5608irix5* | irix6* | nonstopux*)
5609  case $LD in
5610  *-32|*"-32 ") libmagic=32-bit;;
5611  *-n32|*"-n32 ") libmagic=N32;;
5612  *-64|*"-64 ") libmagic=64-bit;;
5613  *) libmagic=never-match;;
5614  esac
5615  lt_cv_deplibs_check_method=pass_all
5616  ;;
5617
5618# This must be Linux ELF.
5619linux*)
5620  lt_cv_deplibs_check_method=pass_all
5621  ;;
5622
5623netbsd*)
5624  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5625    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5626  else
5627    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5628  fi
5629  ;;
5630
5631newos6*)
5632  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5633  lt_cv_file_magic_cmd=/usr/bin/file
5634  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5635  ;;
5636
5637nto-qnx*)
5638  lt_cv_deplibs_check_method=unknown
5639  ;;
5640
5641openbsd*)
5642  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5643    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5644  else
5645    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5646  fi
5647  ;;
5648
5649osf3* | osf4* | osf5*)
5650  lt_cv_deplibs_check_method=pass_all
5651  ;;
5652
5653solaris*)
5654  lt_cv_deplibs_check_method=pass_all
5655  ;;
5656
5657sysv4 | sysv4.3*)
5658  case $host_vendor in
5659  motorola)
5660    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]'
5661    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5662    ;;
5663  ncr)
5664    lt_cv_deplibs_check_method=pass_all
5665    ;;
5666  sequent)
5667    lt_cv_file_magic_cmd='/bin/file'
5668    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5669    ;;
5670  sni)
5671    lt_cv_file_magic_cmd='/bin/file'
5672    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5673    lt_cv_file_magic_test_file=/lib/libc.so
5674    ;;
5675  siemens)
5676    lt_cv_deplibs_check_method=pass_all
5677    ;;
5678  pc)
5679    lt_cv_deplibs_check_method=pass_all
5680    ;;
5681  esac
5682  ;;
5683
5684sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5685  lt_cv_deplibs_check_method=pass_all
5686  ;;
5687esac
5688
5689fi
5690echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5691echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5692file_magic_cmd=$lt_cv_file_magic_cmd
5693deplibs_check_method=$lt_cv_deplibs_check_method
5694test -z "$deplibs_check_method" && deplibs_check_method=unknown
5695
5696
5697
5698
5699# If no C compiler was specified, use CC.
5700LTCC=${LTCC-"$CC"}
5701
5702# If no C compiler flags were specified, use CFLAGS.
5703LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5704
5705# Allow CC to be a program name with arguments.
5706compiler=$CC
5707
5708# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5709if test "${enable_libtool_lock+set}" = set; then
5710  enableval="$enable_libtool_lock"
5711
5712fi;
5713test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5714
5715# Some flags need to be propagated to the compiler or linker for good
5716# libtool support.
5717case $host in
5718ia64-*-hpux*)
5719  # Find out which ABI we are using.
5720  echo 'int i;' > conftest.$ac_ext
5721  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722  (eval $ac_compile) 2>&5
5723  ac_status=$?
5724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725  (exit $ac_status); }; then
5726    case `/usr/bin/file conftest.$ac_objext` in
5727    *ELF-32*)
5728      HPUX_IA64_MODE="32"
5729      ;;
5730    *ELF-64*)
5731      HPUX_IA64_MODE="64"
5732      ;;
5733    esac
5734  fi
5735  rm -rf conftest*
5736  ;;
5737*-*-irix6*)
5738  # Find out which ABI we are using.
5739  echo '#line 5739 "configure"' > conftest.$ac_ext
5740  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5741  (eval $ac_compile) 2>&5
5742  ac_status=$?
5743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744  (exit $ac_status); }; then
5745   if test "$lt_cv_prog_gnu_ld" = yes; then
5746    case `/usr/bin/file conftest.$ac_objext` in
5747    *32-bit*)
5748      LD="${LD-ld} -melf32bsmip"
5749      ;;
5750    *N32*)
5751      LD="${LD-ld} -melf32bmipn32"
5752      ;;
5753    *64-bit*)
5754      LD="${LD-ld} -melf64bmip"
5755      ;;
5756    esac
5757   else
5758    case `/usr/bin/file conftest.$ac_objext` in
5759    *32-bit*)
5760      LD="${LD-ld} -32"
5761      ;;
5762    *N32*)
5763      LD="${LD-ld} -n32"
5764      ;;
5765    *64-bit*)
5766      LD="${LD-ld} -64"
5767      ;;
5768    esac
5769   fi
5770  fi
5771  rm -rf conftest*
5772  ;;
5773
5774x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5775  # Find out which ABI we are using.
5776  echo 'int i;' > conftest.$ac_ext
5777  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778  (eval $ac_compile) 2>&5
5779  ac_status=$?
5780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781  (exit $ac_status); }; then
5782    case `/usr/bin/file conftest.o` in
5783    *32-bit*)
5784      case $host in
5785        x86_64-*linux*)
5786          LD="${LD-ld} -m elf_i386"
5787          ;;
5788        ppc64-*linux*|powerpc64-*linux*)
5789          LD="${LD-ld} -m elf32ppclinux"
5790          ;;
5791        s390x-*linux*)
5792          LD="${LD-ld} -m elf_s390"
5793          ;;
5794        sparc64-*linux*)
5795          LD="${LD-ld} -m elf32_sparc"
5796          ;;
5797      esac
5798      ;;
5799    *64-bit*)
5800      case $host in
5801        x86_64-*linux*)
5802          LD="${LD-ld} -m elf_x86_64"
5803          ;;
5804        ppc*-*linux*|powerpc*-*linux*)
5805          LD="${LD-ld} -m elf64ppc"
5806          ;;
5807        s390*-*linux*)
5808          LD="${LD-ld} -m elf64_s390"
5809          ;;
5810        sparc*-*linux*)
5811          LD="${LD-ld} -m elf64_sparc"
5812          ;;
5813      esac
5814      ;;
5815    esac
5816  fi
5817  rm -rf conftest*
5818  ;;
5819
5820*-*-sco3.2v5*)
5821  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5822  SAVE_CFLAGS="$CFLAGS"
5823  CFLAGS="$CFLAGS -belf"
5824  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5825echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5826if test "${lt_cv_cc_needs_belf+set}" = set; then
5827  echo $ECHO_N "(cached) $ECHO_C" >&6
5828else
5829  ac_ext=c
5830ac_cpp='$CPP $CPPFLAGS'
5831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833ac_compiler_gnu=$ac_cv_c_compiler_gnu
5834
5835     cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h.  */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h.  */
5841
5842int
5843main ()
5844{
5845
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850rm -f conftest.$ac_objext conftest$ac_exeext
5851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5852  (eval $ac_link) 2>conftest.er1
5853  ac_status=$?
5854  grep -v '^ *+' conftest.er1 >conftest.err
5855  rm -f conftest.er1
5856  cat conftest.err >&5
5857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858  (exit $ac_status); } &&
5859         { ac_try='test -z "$ac_c_werror_flag"
5860                         || test ! -s conftest.err'
5861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862  (eval $ac_try) 2>&5
5863  ac_status=$?
5864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865  (exit $ac_status); }; } &&
5866         { ac_try='test -s conftest$ac_exeext'
5867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868  (eval $ac_try) 2>&5
5869  ac_status=$?
5870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871  (exit $ac_status); }; }; then
5872  lt_cv_cc_needs_belf=yes
5873else
5874  echo "$as_me: failed program was:" >&5
5875sed 's/^/| /' conftest.$ac_ext >&5
5876
5877lt_cv_cc_needs_belf=no
5878fi
5879rm -f conftest.err conftest.$ac_objext \
5880      conftest$ac_exeext conftest.$ac_ext
5881     ac_ext=c
5882ac_cpp='$CPP $CPPFLAGS'
5883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5885ac_compiler_gnu=$ac_cv_c_compiler_gnu
5886
5887fi
5888echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5889echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5890  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5891    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5892    CFLAGS="$SAVE_CFLAGS"
5893  fi
5894  ;;
5895sparc*-*solaris*)
5896  # Find out which ABI we are using.
5897  echo 'int i;' > conftest.$ac_ext
5898  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899  (eval $ac_compile) 2>&5
5900  ac_status=$?
5901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902  (exit $ac_status); }; then
5903    case `/usr/bin/file conftest.o` in
5904    *64-bit*)
5905      case $lt_cv_prog_gnu_ld in
5906      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5907      *)    LD="${LD-ld} -64" ;;
5908      esac
5909      ;;
5910    esac
5911  fi
5912  rm -rf conftest*
5913  ;;
5914
5915
5916esac
5917
5918need_locks="$enable_libtool_lock"
5919
5920
5921ac_ext=c
5922ac_cpp='$CPP $CPPFLAGS'
5923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5925ac_compiler_gnu=$ac_cv_c_compiler_gnu
5926echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5927echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5928# On Suns, sometimes $CPP names a directory.
5929if test -n "$CPP" && test -d "$CPP"; then
5930  CPP=
5931fi
5932if test -z "$CPP"; then
5933  if test "${ac_cv_prog_CPP+set}" = set; then
5934  echo $ECHO_N "(cached) $ECHO_C" >&6
5935else
5936      # Double quotes because CPP needs to be expanded
5937    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5938    do
5939      ac_preproc_ok=false
5940for ac_c_preproc_warn_flag in '' yes
5941do
5942  # Use a header file that comes with gcc, so configuring glibc
5943  # with a fresh cross-compiler works.
5944  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5945  # <limits.h> exists even on freestanding compilers.
5946  # On the NeXT, cc -E runs the code through the compiler's parser,
5947  # not just through cpp. "Syntax error" is here to catch this case.
5948  cat >conftest.$ac_ext <<_ACEOF
5949/* confdefs.h.  */
5950_ACEOF
5951cat confdefs.h >>conftest.$ac_ext
5952cat >>conftest.$ac_ext <<_ACEOF
5953/* end confdefs.h.  */
5954#ifdef __STDC__
5955# include <limits.h>
5956#else
5957# include <assert.h>
5958#endif
5959                     Syntax error
5960_ACEOF
5961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5962  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5963  ac_status=$?
5964  grep -v '^ *+' conftest.er1 >conftest.err
5965  rm -f conftest.er1
5966  cat conftest.err >&5
5967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968  (exit $ac_status); } >/dev/null; then
5969  if test -s conftest.err; then
5970    ac_cpp_err=$ac_c_preproc_warn_flag
5971    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5972  else
5973    ac_cpp_err=
5974  fi
5975else
5976  ac_cpp_err=yes
5977fi
5978if test -z "$ac_cpp_err"; then
5979  :
5980else
5981  echo "$as_me: failed program was:" >&5
5982sed 's/^/| /' conftest.$ac_ext >&5
5983
5984  # Broken: fails on valid input.
5985continue
5986fi
5987rm -f conftest.err conftest.$ac_ext
5988
5989  # OK, works on sane cases.  Now check whether non-existent headers
5990  # can be detected and how.
5991  cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h.  */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h.  */
5997#include <ac_nonexistent.h>
5998_ACEOF
5999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6000  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6001  ac_status=$?
6002  grep -v '^ *+' conftest.er1 >conftest.err
6003  rm -f conftest.er1
6004  cat conftest.err >&5
6005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006  (exit $ac_status); } >/dev/null; then
6007  if test -s conftest.err; then
6008    ac_cpp_err=$ac_c_preproc_warn_flag
6009    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6010  else
6011    ac_cpp_err=
6012  fi
6013else
6014  ac_cpp_err=yes
6015fi
6016if test -z "$ac_cpp_err"; then
6017  # Broken: success on invalid input.
6018continue
6019else
6020  echo "$as_me: failed program was:" >&5
6021sed 's/^/| /' conftest.$ac_ext >&5
6022
6023  # Passes both tests.
6024ac_preproc_ok=:
6025break
6026fi
6027rm -f conftest.err conftest.$ac_ext
6028
6029done
6030# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6031rm -f conftest.err conftest.$ac_ext
6032if $ac_preproc_ok; then
6033  break
6034fi
6035
6036    done
6037    ac_cv_prog_CPP=$CPP
6038
6039fi
6040  CPP=$ac_cv_prog_CPP
6041else
6042  ac_cv_prog_CPP=$CPP
6043fi
6044echo "$as_me:$LINENO: result: $CPP" >&5
6045echo "${ECHO_T}$CPP" >&6
6046ac_preproc_ok=false
6047for ac_c_preproc_warn_flag in '' yes
6048do
6049  # Use a header file that comes with gcc, so configuring glibc
6050  # with a fresh cross-compiler works.
6051  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6052  # <limits.h> exists even on freestanding compilers.
6053  # On the NeXT, cc -E runs the code through the compiler's parser,
6054  # not just through cpp. "Syntax error" is here to catch this case.
6055  cat >conftest.$ac_ext <<_ACEOF
6056/* confdefs.h.  */
6057_ACEOF
6058cat confdefs.h >>conftest.$ac_ext
6059cat >>conftest.$ac_ext <<_ACEOF
6060/* end confdefs.h.  */
6061#ifdef __STDC__
6062# include <limits.h>
6063#else
6064# include <assert.h>
6065#endif
6066                     Syntax error
6067_ACEOF
6068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6069  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6070  ac_status=$?
6071  grep -v '^ *+' conftest.er1 >conftest.err
6072  rm -f conftest.er1
6073  cat conftest.err >&5
6074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075  (exit $ac_status); } >/dev/null; then
6076  if test -s conftest.err; then
6077    ac_cpp_err=$ac_c_preproc_warn_flag
6078    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6079  else
6080    ac_cpp_err=
6081  fi
6082else
6083  ac_cpp_err=yes
6084fi
6085if test -z "$ac_cpp_err"; then
6086  :
6087else
6088  echo "$as_me: failed program was:" >&5
6089sed 's/^/| /' conftest.$ac_ext >&5
6090
6091  # Broken: fails on valid input.
6092continue
6093fi
6094rm -f conftest.err conftest.$ac_ext
6095
6096  # OK, works on sane cases.  Now check whether non-existent headers
6097  # can be detected and how.
6098  cat >conftest.$ac_ext <<_ACEOF
6099/* confdefs.h.  */
6100_ACEOF
6101cat confdefs.h >>conftest.$ac_ext
6102cat >>conftest.$ac_ext <<_ACEOF
6103/* end confdefs.h.  */
6104#include <ac_nonexistent.h>
6105_ACEOF
6106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6107  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6108  ac_status=$?
6109  grep -v '^ *+' conftest.er1 >conftest.err
6110  rm -f conftest.er1
6111  cat conftest.err >&5
6112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113  (exit $ac_status); } >/dev/null; then
6114  if test -s conftest.err; then
6115    ac_cpp_err=$ac_c_preproc_warn_flag
6116    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6117  else
6118    ac_cpp_err=
6119  fi
6120else
6121  ac_cpp_err=yes
6122fi
6123if test -z "$ac_cpp_err"; then
6124  # Broken: success on invalid input.
6125continue
6126else
6127  echo "$as_me: failed program was:" >&5
6128sed 's/^/| /' conftest.$ac_ext >&5
6129
6130  # Passes both tests.
6131ac_preproc_ok=:
6132break
6133fi
6134rm -f conftest.err conftest.$ac_ext
6135
6136done
6137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6138rm -f conftest.err conftest.$ac_ext
6139if $ac_preproc_ok; then
6140  :
6141else
6142  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6143See \`config.log' for more details." >&5
6144echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6145See \`config.log' for more details." >&2;}
6146   { (exit 1); exit 1; }; }
6147fi
6148
6149ac_ext=c
6150ac_cpp='$CPP $CPPFLAGS'
6151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153ac_compiler_gnu=$ac_cv_c_compiler_gnu
6154
6155
6156echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6157echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6158if test "${ac_cv_header_stdc+set}" = set; then
6159  echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161  cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h.  */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h.  */
6167#include <stdlib.h>
6168#include <stdarg.h>
6169#include <string.h>
6170#include <float.h>
6171
6172int
6173main ()
6174{
6175
6176  ;
6177  return 0;
6178}
6179_ACEOF
6180rm -f conftest.$ac_objext
6181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182  (eval $ac_compile) 2>conftest.er1
6183  ac_status=$?
6184  grep -v '^ *+' conftest.er1 >conftest.err
6185  rm -f conftest.er1
6186  cat conftest.err >&5
6187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188  (exit $ac_status); } &&
6189         { ac_try='test -z "$ac_c_werror_flag"
6190                         || test ! -s conftest.err'
6191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192  (eval $ac_try) 2>&5
6193  ac_status=$?
6194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195  (exit $ac_status); }; } &&
6196         { ac_try='test -s conftest.$ac_objext'
6197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198  (eval $ac_try) 2>&5
6199  ac_status=$?
6200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201  (exit $ac_status); }; }; then
6202  ac_cv_header_stdc=yes
6203else
6204  echo "$as_me: failed program was:" >&5
6205sed 's/^/| /' conftest.$ac_ext >&5
6206
6207ac_cv_header_stdc=no
6208fi
6209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6210
6211if test $ac_cv_header_stdc = yes; then
6212  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6213  cat >conftest.$ac_ext <<_ACEOF
6214/* confdefs.h.  */
6215_ACEOF
6216cat confdefs.h >>conftest.$ac_ext
6217cat >>conftest.$ac_ext <<_ACEOF
6218/* end confdefs.h.  */
6219#include <string.h>
6220
6221_ACEOF
6222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6223  $EGREP "memchr" >/dev/null 2>&1; then
6224  :
6225else
6226  ac_cv_header_stdc=no
6227fi
6228rm -f conftest*
6229
6230fi
6231
6232if test $ac_cv_header_stdc = yes; then
6233  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6234  cat >conftest.$ac_ext <<_ACEOF
6235/* confdefs.h.  */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h.  */
6240#include <stdlib.h>
6241
6242_ACEOF
6243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6244  $EGREP "free" >/dev/null 2>&1; then
6245  :
6246else
6247  ac_cv_header_stdc=no
6248fi
6249rm -f conftest*
6250
6251fi
6252
6253if test $ac_cv_header_stdc = yes; then
6254  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6255  if test "$cross_compiling" = yes; then
6256  :
6257else
6258  cat >conftest.$ac_ext <<_ACEOF
6259/* confdefs.h.  */
6260_ACEOF
6261cat confdefs.h >>conftest.$ac_ext
6262cat >>conftest.$ac_ext <<_ACEOF
6263/* end confdefs.h.  */
6264#include <ctype.h>
6265#if ((' ' & 0x0FF) == 0x020)
6266# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6267# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6268#else
6269# define ISLOWER(c) \
6270                   (('a' <= (c) && (c) <= 'i') \
6271                     || ('j' <= (c) && (c) <= 'r') \
6272                     || ('s' <= (c) && (c) <= 'z'))
6273# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6274#endif
6275
6276#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6277int
6278main ()
6279{
6280  int i;
6281  for (i = 0; i < 256; i++)
6282    if (XOR (islower (i), ISLOWER (i))
6283        || toupper (i) != TOUPPER (i))
6284      exit(2);
6285  exit (0);
6286}
6287_ACEOF
6288rm -f conftest$ac_exeext
6289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6290  (eval $ac_link) 2>&5
6291  ac_status=$?
6292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295  (eval $ac_try) 2>&5
6296  ac_status=$?
6297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298  (exit $ac_status); }; }; then
6299  :
6300else
6301  echo "$as_me: program exited with status $ac_status" >&5
6302echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305( exit $ac_status )
6306ac_cv_header_stdc=no
6307fi
6308rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6309fi
6310fi
6311fi
6312echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6313echo "${ECHO_T}$ac_cv_header_stdc" >&6
6314if test $ac_cv_header_stdc = yes; then
6315
6316cat >>confdefs.h <<\_ACEOF
6317#define STDC_HEADERS 1
6318_ACEOF
6319
6320fi
6321
6322# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6333                  inttypes.h stdint.h unistd.h
6334do
6335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6336echo "$as_me:$LINENO: checking for $ac_header" >&5
6337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6338if eval "test \"\${$as_ac_Header+set}\" = set"; then
6339  echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341  cat >conftest.$ac_ext <<_ACEOF
6342/* confdefs.h.  */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h.  */
6347$ac_includes_default
6348
6349#include <$ac_header>
6350_ACEOF
6351rm -f conftest.$ac_objext
6352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353  (eval $ac_compile) 2>conftest.er1
6354  ac_status=$?
6355  grep -v '^ *+' conftest.er1 >conftest.err
6356  rm -f conftest.er1
6357  cat conftest.err >&5
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); } &&
6360         { ac_try='test -z "$ac_c_werror_flag"
6361                         || test ! -s conftest.err'
6362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363  (eval $ac_try) 2>&5
6364  ac_status=$?
6365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366  (exit $ac_status); }; } &&
6367         { ac_try='test -s conftest.$ac_objext'
6368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369  (eval $ac_try) 2>&5
6370  ac_status=$?
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); }; }; then
6373  eval "$as_ac_Header=yes"
6374else
6375  echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378eval "$as_ac_Header=no"
6379fi
6380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381fi
6382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6384if test `eval echo '${'$as_ac_Header'}'` = yes; then
6385  cat >>confdefs.h <<_ACEOF
6386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6387_ACEOF
6388
6389fi
6390
6391done
6392
6393
6394
6395for ac_header in dlfcn.h
6396do
6397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6398if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399  echo "$as_me:$LINENO: checking for $ac_header" >&5
6400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6401if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402  echo $ECHO_N "(cached) $ECHO_C" >&6
6403fi
6404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6406else
6407  # Is the header compilable?
6408echo "$as_me:$LINENO: checking $ac_header usability" >&5
6409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6410cat >conftest.$ac_ext <<_ACEOF
6411/* confdefs.h.  */
6412_ACEOF
6413cat confdefs.h >>conftest.$ac_ext
6414cat >>conftest.$ac_ext <<_ACEOF
6415/* end confdefs.h.  */
6416$ac_includes_default
6417#include <$ac_header>
6418_ACEOF
6419rm -f conftest.$ac_objext
6420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6421  (eval $ac_compile) 2>conftest.er1
6422  ac_status=$?
6423  grep -v '^ *+' conftest.er1 >conftest.err
6424  rm -f conftest.er1
6425  cat conftest.err >&5
6426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427  (exit $ac_status); } &&
6428         { ac_try='test -z "$ac_c_werror_flag"
6429                         || test ! -s conftest.err'
6430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431  (eval $ac_try) 2>&5
6432  ac_status=$?
6433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434  (exit $ac_status); }; } &&
6435         { ac_try='test -s conftest.$ac_objext'
6436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437  (eval $ac_try) 2>&5
6438  ac_status=$?
6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440  (exit $ac_status); }; }; then
6441  ac_header_compiler=yes
6442else
6443  echo "$as_me: failed program was:" >&5
6444sed 's/^/| /' conftest.$ac_ext >&5
6445
6446ac_header_compiler=no
6447fi
6448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6450echo "${ECHO_T}$ac_header_compiler" >&6
6451
6452# Is the header present?
6453echo "$as_me:$LINENO: checking $ac_header presence" >&5
6454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6455cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h.  */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h.  */
6461#include <$ac_header>
6462_ACEOF
6463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6464  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6465  ac_status=$?
6466  grep -v '^ *+' conftest.er1 >conftest.err
6467  rm -f conftest.er1
6468  cat conftest.err >&5
6469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470  (exit $ac_status); } >/dev/null; then
6471  if test -s conftest.err; then
6472    ac_cpp_err=$ac_c_preproc_warn_flag
6473    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6474  else
6475    ac_cpp_err=
6476  fi
6477else
6478  ac_cpp_err=yes
6479fi
6480if test -z "$ac_cpp_err"; then
6481  ac_header_preproc=yes
6482else
6483  echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
6485
6486  ac_header_preproc=no
6487fi
6488rm -f conftest.err conftest.$ac_ext
6489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6490echo "${ECHO_T}$ac_header_preproc" >&6
6491
6492# So?  What about this header?
6493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6494  yes:no: )
6495    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6497    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6499    ac_header_preproc=yes
6500    ;;
6501  no:yes:* )
6502    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6504    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6505echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6506    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6508    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6509echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6510    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6512    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6514    (
6515      cat <<\_ASBOX
6516## ---------------------------------------- ##
6517## Report this to coin-cbc@list.coin-or.org ##
6518## ---------------------------------------- ##
6519_ASBOX
6520    ) |
6521      sed "s/^/$as_me: WARNING:     /" >&2
6522    ;;
6523esac
6524echo "$as_me:$LINENO: checking for $ac_header" >&5
6525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6526if eval "test \"\${$as_ac_Header+set}\" = set"; then
6527  echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529  eval "$as_ac_Header=\$ac_header_preproc"
6530fi
6531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6533
6534fi
6535if test `eval echo '${'$as_ac_Header'}'` = yes; then
6536  cat >>confdefs.h <<_ACEOF
6537#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6538_ACEOF
6539
6540fi
6541
6542done
6543
6544
6545
6546if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6547    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6548    (test "X$CXX" != "Xg++"))) ; then
6549  ac_ext=cc
6550ac_cpp='$CXXCPP $CPPFLAGS'
6551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6554echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6555echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6556if test -z "$CXXCPP"; then
6557  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6558  echo $ECHO_N "(cached) $ECHO_C" >&6
6559else
6560      # Double quotes because CXXCPP needs to be expanded
6561    for CXXCPP in "$CXX -E" "/lib/cpp"
6562    do
6563      ac_preproc_ok=false
6564for ac_cxx_preproc_warn_flag in '' yes
6565do
6566  # Use a header file that comes with gcc, so configuring glibc
6567  # with a fresh cross-compiler works.
6568  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6569  # <limits.h> exists even on freestanding compilers.
6570  # On the NeXT, cc -E runs the code through the compiler's parser,
6571  # not just through cpp. "Syntax error" is here to catch this case.
6572  cat >conftest.$ac_ext <<_ACEOF
6573/* confdefs.h.  */
6574_ACEOF
6575cat confdefs.h >>conftest.$ac_ext
6576cat >>conftest.$ac_ext <<_ACEOF
6577/* end confdefs.h.  */
6578#ifdef __STDC__
6579# include <limits.h>
6580#else
6581# include <assert.h>
6582#endif
6583                     Syntax error
6584_ACEOF
6585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6586  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6587  ac_status=$?
6588  grep -v '^ *+' conftest.er1 >conftest.err
6589  rm -f conftest.er1
6590  cat conftest.err >&5
6591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592  (exit $ac_status); } >/dev/null; then
6593  if test -s conftest.err; then
6594    ac_cpp_err=$ac_cxx_preproc_warn_flag
6595    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6596  else
6597    ac_cpp_err=
6598  fi
6599else
6600  ac_cpp_err=yes
6601fi
6602if test -z "$ac_cpp_err"; then
6603  :
6604else
6605  echo "$as_me: failed program was:" >&5
6606sed 's/^/| /' conftest.$ac_ext >&5
6607
6608  # Broken: fails on valid input.
6609continue
6610fi
6611rm -f conftest.err conftest.$ac_ext
6612
6613  # OK, works on sane cases.  Now check whether non-existent headers
6614  # can be detected and how.
6615  cat >conftest.$ac_ext <<_ACEOF
6616/* confdefs.h.  */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h.  */
6621#include <ac_nonexistent.h>
6622_ACEOF
6623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6624  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6625  ac_status=$?
6626  grep -v '^ *+' conftest.er1 >conftest.err
6627  rm -f conftest.er1
6628  cat conftest.err >&5
6629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630  (exit $ac_status); } >/dev/null; then
6631  if test -s conftest.err; then
6632    ac_cpp_err=$ac_cxx_preproc_warn_flag
6633    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6634  else
6635    ac_cpp_err=
6636  fi
6637else
6638  ac_cpp_err=yes
6639fi
6640if test -z "$ac_cpp_err"; then
6641  # Broken: success on invalid input.
6642continue
6643else
6644  echo "$as_me: failed program was:" >&5
6645sed 's/^/| /' conftest.$ac_ext >&5
6646
6647  # Passes both tests.
6648ac_preproc_ok=:
6649break
6650fi
6651rm -f conftest.err conftest.$ac_ext
6652
6653done
6654# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6655rm -f conftest.err conftest.$ac_ext
6656if $ac_preproc_ok; then
6657  break
6658fi
6659
6660    done
6661    ac_cv_prog_CXXCPP=$CXXCPP
6662
6663fi
6664  CXXCPP=$ac_cv_prog_CXXCPP
6665else
6666  ac_cv_prog_CXXCPP=$CXXCPP
6667fi
6668echo "$as_me:$LINENO: result: $CXXCPP" >&5
6669echo "${ECHO_T}$CXXCPP" >&6
6670ac_preproc_ok=false
6671for ac_cxx_preproc_warn_flag in '' yes
6672do
6673  # Use a header file that comes with gcc, so configuring glibc
6674  # with a fresh cross-compiler works.
6675  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6676  # <limits.h> exists even on freestanding compilers.
6677  # On the NeXT, cc -E runs the code through the compiler's parser,
6678  # not just through cpp. "Syntax error" is here to catch this case.
6679  cat >conftest.$ac_ext <<_ACEOF
6680/* confdefs.h.  */
6681_ACEOF
6682cat confdefs.h >>conftest.$ac_ext
6683cat >>conftest.$ac_ext <<_ACEOF
6684/* end confdefs.h.  */
6685#ifdef __STDC__
6686# include <limits.h>
6687#else
6688# include <assert.h>
6689#endif
6690                     Syntax error
6691_ACEOF
6692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6693  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6694  ac_status=$?
6695  grep -v '^ *+' conftest.er1 >conftest.err
6696  rm -f conftest.er1
6697  cat conftest.err >&5
6698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699  (exit $ac_status); } >/dev/null; then
6700  if test -s conftest.err; then
6701    ac_cpp_err=$ac_cxx_preproc_warn_flag
6702    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6703  else
6704    ac_cpp_err=
6705  fi
6706else
6707  ac_cpp_err=yes
6708fi
6709if test -z "$ac_cpp_err"; then
6710  :
6711else
6712  echo "$as_me: failed program was:" >&5
6713sed 's/^/| /' conftest.$ac_ext >&5
6714
6715  # Broken: fails on valid input.
6716continue
6717fi
6718rm -f conftest.err conftest.$ac_ext
6719
6720  # OK, works on sane cases.  Now check whether non-existent headers
6721  # can be detected and how.
6722  cat >conftest.$ac_ext <<_ACEOF
6723/* confdefs.h.  */
6724_ACEOF
6725cat confdefs.h >>conftest.$ac_ext
6726cat >>conftest.$ac_ext <<_ACEOF
6727/* end confdefs.h.  */
6728#include <ac_nonexistent.h>
6729_ACEOF
6730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6731  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6732  ac_status=$?
6733  grep -v '^ *+' conftest.er1 >conftest.err
6734  rm -f conftest.er1
6735  cat conftest.err >&5
6736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737  (exit $ac_status); } >/dev/null; then
6738  if test -s conftest.err; then
6739    ac_cpp_err=$ac_cxx_preproc_warn_flag
6740    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6741  else
6742    ac_cpp_err=
6743  fi
6744else
6745  ac_cpp_err=yes
6746fi
6747if test -z "$ac_cpp_err"; then
6748  # Broken: success on invalid input.
6749continue
6750else
6751  echo "$as_me: failed program was:" >&5
6752sed 's/^/| /' conftest.$ac_ext >&5
6753
6754  # Passes both tests.
6755ac_preproc_ok=:
6756break
6757fi
6758rm -f conftest.err conftest.$ac_ext
6759
6760done
6761# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6762rm -f conftest.err conftest.$ac_ext
6763if $ac_preproc_ok; then
6764  :
6765else
6766  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6767See \`config.log' for more details." >&5
6768echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6769See \`config.log' for more details." >&2;}
6770   { (exit 1); exit 1; }; }
6771fi
6772
6773ac_ext=cc
6774ac_cpp='$CXXCPP $CPPFLAGS'
6775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6778
6779fi
6780
6781ac_ext=f
6782ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6783ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6785if test -n "$ac_tool_prefix"; then
6786  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6787  do
6788    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6789set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6790echo "$as_me:$LINENO: checking for $ac_word" >&5
6791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6792if test "${ac_cv_prog_F77+set}" = set; then
6793  echo $ECHO_N "(cached) $ECHO_C" >&6
6794else
6795  if test -n "$F77"; then
6796  ac_cv_prog_F77="$F77" # Let the user override the test.
6797else
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801  IFS=$as_save_IFS
6802  test -z "$as_dir" && as_dir=.
6803  for ac_exec_ext in '' $ac_executable_extensions; do
6804  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6805    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807    break 2
6808  fi
6809done
6810done
6811
6812fi
6813fi
6814F77=$ac_cv_prog_F77
6815if test -n "$F77"; then
6816  echo "$as_me:$LINENO: result: $F77" >&5
6817echo "${ECHO_T}$F77" >&6
6818else
6819  echo "$as_me:$LINENO: result: no" >&5
6820echo "${ECHO_T}no" >&6
6821fi
6822
6823    test -n "$F77" && break
6824  done
6825fi
6826if test -z "$F77"; then
6827  ac_ct_F77=$F77
6828  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6829do
6830  # Extract the first word of "$ac_prog", so it can be a program name with args.
6831set dummy $ac_prog; ac_word=$2
6832echo "$as_me:$LINENO: checking for $ac_word" >&5
6833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6834if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6835  echo $ECHO_N "(cached) $ECHO_C" >&6
6836else
6837  if test -n "$ac_ct_F77"; then
6838  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843  IFS=$as_save_IFS
6844  test -z "$as_dir" && as_dir=.
6845  for ac_exec_ext in '' $ac_executable_extensions; do
6846  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847    ac_cv_prog_ac_ct_F77="$ac_prog"
6848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849    break 2
6850  fi
6851done
6852done
6853
6854fi
6855fi
6856ac_ct_F77=$ac_cv_prog_ac_ct_F77
6857if test -n "$ac_ct_F77"; then
6858  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6859echo "${ECHO_T}$ac_ct_F77" >&6
6860else
6861  echo "$as_me:$LINENO: result: no" >&5
6862echo "${ECHO_T}no" >&6
6863fi
6864
6865  test -n "$ac_ct_F77" && break
6866done
6867
6868  F77=$ac_ct_F77
6869fi
6870
6871
6872# Provide some information about the compiler.
6873echo "$as_me:6873:" \
6874     "checking for Fortran 77 compiler version" >&5
6875ac_compiler=`set X $ac_compile; echo $2`
6876{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6877  (eval $ac_compiler --version </dev/null >&5) 2>&5
6878  ac_status=$?
6879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880  (exit $ac_status); }
6881{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6882  (eval $ac_compiler -v </dev/null >&5) 2>&5
6883  ac_status=$?
6884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885  (exit $ac_status); }
6886{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6887  (eval $ac_compiler -V </dev/null >&5) 2>&5
6888  ac_status=$?
6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890  (exit $ac_status); }
6891rm -f a.out
6892
6893# If we don't use `.F' as extension, the preprocessor is not run on the
6894# input file.  (Note that this only needs to work for GNU compilers.)
6895ac_save_ext=$ac_ext
6896ac_ext=F
6897echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6898echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6899if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6900  echo $ECHO_N "(cached) $ECHO_C" >&6
6901else
6902  cat >conftest.$ac_ext <<_ACEOF
6903      program main
6904#ifndef __GNUC__
6905       choke me
6906#endif
6907
6908      end
6909_ACEOF
6910rm -f conftest.$ac_objext
6911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912  (eval $ac_compile) 2>conftest.er1
6913  ac_status=$?
6914  grep -v '^ *+' conftest.er1 >conftest.err
6915  rm -f conftest.er1
6916  cat conftest.err >&5
6917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918  (exit $ac_status); } &&
6919         { ac_try='test -z "$ac_f77_werror_flag"
6920                         || test ! -s conftest.err'
6921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922  (eval $ac_try) 2>&5
6923  ac_status=$?
6924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925  (exit $ac_status); }; } &&
6926         { ac_try='test -s conftest.$ac_objext'
6927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928  (eval $ac_try) 2>&5
6929  ac_status=$?
6930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931  (exit $ac_status); }; }; then
6932  ac_compiler_gnu=yes
6933else
6934  echo "$as_me: failed program was:" >&5
6935sed 's/^/| /' conftest.$ac_ext >&5
6936
6937ac_compiler_gnu=no
6938fi
6939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6940ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6941
6942fi
6943echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6944echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6945ac_ext=$ac_save_ext
6946ac_test_FFLAGS=${FFLAGS+set}
6947ac_save_FFLAGS=$FFLAGS
6948FFLAGS=
6949echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6950echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6951if test "${ac_cv_prog_f77_g+set}" = set; then
6952  echo $ECHO_N "(cached) $ECHO_C" >&6
6953else
6954  FFLAGS=-g
6955cat >conftest.$ac_ext <<_ACEOF
6956      program main
6957
6958      end
6959_ACEOF
6960rm -f conftest.$ac_objext
6961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962  (eval $ac_compile) 2>conftest.er1
6963  ac_status=$?
6964  grep -v '^ *+' conftest.er1 >conftest.err
6965  rm -f conftest.er1
6966  cat conftest.err >&5
6967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968  (exit $ac_status); } &&
6969         { ac_try='test -z "$ac_f77_werror_flag"
6970                         || test ! -s conftest.err'
6971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972  (eval $ac_try) 2>&5
6973  ac_status=$?
6974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975  (exit $ac_status); }; } &&
6976         { ac_try='test -s conftest.$ac_objext'
6977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978  (eval $ac_try) 2>&5
6979  ac_status=$?
6980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981  (exit $ac_status); }; }; then
6982  ac_cv_prog_f77_g=yes
6983else
6984  echo "$as_me: failed program was:" >&5
6985sed 's/^/| /' conftest.$ac_ext >&5
6986
6987ac_cv_prog_f77_g=no
6988fi
6989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6990
6991fi
6992echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6993echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6994if test "$ac_test_FFLAGS" = set; then
6995  FFLAGS=$ac_save_FFLAGS
6996elif test $ac_cv_prog_f77_g = yes; then
6997  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6998    FFLAGS="-g -O2"
6999  else
7000    FFLAGS="-g"
7001  fi
7002else
7003  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7004    FFLAGS="-O2"
7005  else
7006    FFLAGS=
7007  fi
7008fi
7009
7010G77=`test $ac_compiler_gnu = yes && echo yes`
7011ac_ext=c
7012ac_cpp='$CPP $CPPFLAGS'
7013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015ac_compiler_gnu=$ac_cv_c_compiler_gnu
7016
7017
7018
7019# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7020
7021# find the maximum length of command line arguments
7022echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7023echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7024if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7025  echo $ECHO_N "(cached) $ECHO_C" >&6
7026else
7027    i=0
7028  teststring="ABCD"
7029
7030  case $build_os in
7031  msdosdjgpp*)
7032    # On DJGPP, this test can blow up pretty badly due to problems in libc
7033    # (any single argument exceeding 2000 bytes causes a buffer overrun
7034    # during glob expansion).  Even if it were fixed, the result of this
7035    # check would be larger than it should be.
7036    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7037    ;;
7038
7039  gnu*)
7040    # Under GNU Hurd, this test is not required because there is
7041    # no limit to the length of command line arguments.
7042    # Libtool will interpret -1 as no limit whatsoever
7043    lt_cv_sys_max_cmd_len=-1;
7044    ;;
7045
7046  cygwin* | mingw*)
7047    # On Win9x/ME, this test blows up -- it succeeds, but takes
7048    # about 5 minutes as the teststring grows exponentially.
7049    # Worse, since 9x/ME are not pre-emptively multitasking,
7050    # you end up with a "frozen" computer, even though with patience
7051    # the test eventually succeeds (with a max line length of 256k).
7052    # Instead, let's just punt: use the minimum linelength reported by
7053    # all of the supported platforms: 8192 (on NT/2K/XP).
7054    lt_cv_sys_max_cmd_len=8192;
7055    ;;
7056
7057  amigaos*)
7058    # On AmigaOS with pdksh, this test takes hours, literally.
7059    # So we just punt and use a minimum line length of 8192.
7060    lt_cv_sys_max_cmd_len=8192;
7061    ;;
7062
7063  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7064    # This has been around since 386BSD, at least.  Likely further.
7065    if test -x /sbin/sysctl; then
7066      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7067    elif test -x /usr/sbin/sysctl; then
7068      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7069    else
7070      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7071    fi
7072    # And add a safety zone
7073    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7074    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7075    ;;
7076
7077  interix*)
7078    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7079    lt_cv_sys_max_cmd_len=196608
7080    ;;
7081
7082  osf*)
7083    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7084    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7085    # nice to cause kernel panics so lets avoid the loop below.
7086    # First set a reasonable default.
7087    lt_cv_sys_max_cmd_len=16384
7088    #
7089    if test -x /sbin/sysconfig; then
7090      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7091        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7092      esac
7093    fi
7094    ;;
7095  sco3.2v5*)
7096    lt_cv_sys_max_cmd_len=102400
7097    ;;
7098  sysv5* | sco5v6* | sysv4.2uw2*)
7099    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7100    if test -n "$kargmax"; then
7101      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7102    else
7103      lt_cv_sys_max_cmd_len=32768
7104    fi
7105    ;;
7106  *)
7107    # If test is not a shell built-in, we'll probably end up computing a
7108    # maximum length that is only half of the actual maximum length, but
7109    # we can't tell.
7110    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7111    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7112               = "XX$teststring") >/dev/null 2>&1 &&
7113            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7114            lt_cv_sys_max_cmd_len=$new_result &&
7115            test $i != 17 # 1/2 MB should be enough
7116    do
7117      i=`expr $i + 1`
7118      teststring=$teststring$teststring
7119    done
7120    teststring=
7121    # Add a significant safety factor because C++ compilers can tack on massive
7122    # amounts of additional arguments before passing them to the linker.
7123    # It appears as though 1/2 is a usable value.
7124    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7125    ;;
7126  esac
7127
7128fi
7129
7130if test -n $lt_cv_sys_max_cmd_len ; then
7131  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7132echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7133else
7134  echo "$as_me:$LINENO: result: none" >&5
7135echo "${ECHO_T}none" >&6
7136fi
7137
7138
7139
7140
7141# Check for command to grab the raw symbol name followed by C symbol from nm.
7142echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7143echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7144if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7145  echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147
7148# These are sane defaults that work on at least a few old systems.
7149# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7150
7151# Character class describing NM global symbol codes.
7152symcode='[BCDEGRST]'
7153
7154# Regexp to match symbols that can be accessed directly from C.
7155sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7156
7157# Transform an extracted symbol line into a proper C declaration
7158lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7159
7160# Transform an extracted symbol line into symbol name and symbol address
7161lt_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'"
7162
7163# Define system-specific variables.
7164case $host_os in
7165aix*)
7166  symcode='[BCDT]'
7167  ;;
7168cygwin* | mingw* | pw32*)
7169  symcode='[ABCDGISTW]'
7170  ;;
7171hpux*) # Its linker distinguishes data from code symbols
7172  if test "$host_cpu" = ia64; then
7173    symcode='[ABCDEGRST]'
7174  fi
7175  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7176  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'"
7177  ;;
7178linux*)
7179  if test "$host_cpu" = ia64; then
7180    symcode='[ABCDGIRSTW]'
7181    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7182    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'"
7183  fi
7184  ;;
7185irix* | nonstopux*)
7186  symcode='[BCDEGRST]'
7187  ;;
7188osf*)
7189  symcode='[BCDEGQRST]'
7190  ;;
7191solaris*)
7192  symcode='[BDRT]'
7193  ;;
7194sco3.2v5*)
7195  symcode='[DT]'
7196  ;;
7197sysv4.2uw2*)
7198  symcode='[DT]'
7199  ;;
7200sysv5* | sco5v6* | unixware* | OpenUNIX*)
7201  symcode='[ABDT]'
7202  ;;
7203sysv4)
7204  symcode='[DFNSTU]'
7205  ;;
7206esac
7207
7208# Handle CRLF in mingw tool chain
7209opt_cr=
7210case $build_os in
7211mingw*)
7212  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7213  ;;
7214esac
7215
7216# If we're using GNU nm, then use its standard symbol codes.
7217case `$NM -V 2>&1` in
7218*GNU* | *'with BFD'*)
7219  symcode='[ABCDGIRSTW]' ;;
7220esac
7221
7222# Try without a prefix undercore, then with it.
7223for ac_symprfx in "" "_"; do
7224
7225  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7226  symxfrm="\\1 $ac_symprfx\\2 \\2"
7227
7228  # Write the raw and C identifiers.
7229  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7230
7231  # Check to see that the pipe works correctly.
7232  pipe_works=no
7233
7234  rm -f conftest*
7235  cat > conftest.$ac_ext <<EOF
7236#ifdef __cplusplus
7237extern "C" {
7238#endif
7239char nm_test_var;
7240void nm_test_func(){}
7241#ifdef __cplusplus
7242}
7243#endif
7244int main(){nm_test_var='a';nm_test_func();return(0);}
7245EOF
7246
7247  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7248  (eval $ac_compile) 2>&5
7249  ac_status=$?
7250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251  (exit $ac_status); }; then
7252    # Now try to grab the symbols.
7253    nlist=conftest.nm
7254    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7255  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7256  ac_status=$?
7257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258  (exit $ac_status); } && test -s "$nlist"; then
7259      # Try sorting and uniquifying the output.
7260      if sort "$nlist" | uniq > "$nlist"T; then
7261        mv -f "$nlist"T "$nlist"
7262      else
7263        rm -f "$nlist"T
7264      fi
7265
7266      # Make sure that we snagged all the symbols we need.
7267      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7268        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7269          cat <<EOF > conftest.$ac_ext
7270#ifdef __cplusplus
7271extern "C" {
7272#endif
7273
7274EOF
7275          # Now generate the symbol file.
7276          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7277
7278          cat <<EOF >> conftest.$ac_ext
7279#if defined (__STDC__) && __STDC__
7280# define lt_ptr_t void *
7281#else
7282# define lt_ptr_t char *
7283# define const
7284#endif
7285
7286/* The mapping between symbol names and symbols. */
7287const struct {
7288  const char *name;
7289  lt_ptr_t address;
7290}
7291lt_preloaded_symbols[] =
7292{
7293EOF
7294          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7295          cat <<\EOF >> conftest.$ac_ext
7296  {0, (lt_ptr_t) 0}
7297};
7298
7299#ifdef __cplusplus
7300}
7301#endif
7302EOF
7303          # Now try linking the two files.
7304          mv conftest.$ac_objext conftstm.$ac_objext
7305          lt_save_LIBS="$LIBS"
7306          lt_save_CFLAGS="$CFLAGS"
7307          LIBS="conftstm.$ac_objext"
7308          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7309          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7310  (eval $ac_link) 2>&5
7311  ac_status=$?
7312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7314            pipe_works=yes
7315          fi
7316          LIBS="$lt_save_LIBS"
7317          CFLAGS="$lt_save_CFLAGS"
7318        else
7319          echo "cannot find nm_test_func in $nlist" >&5
7320        fi
7321      else
7322        echo "cannot find nm_test_var in $nlist" >&5
7323      fi
7324    else
7325      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7326    fi
7327  else
7328    echo "$progname: failed program was:" >&5
7329    cat conftest.$ac_ext >&5
7330  fi
7331  rm -f conftest* conftst*
7332
7333  # Do not use the global_symbol_pipe unless it works.
7334  if test "$pipe_works" = yes; then
7335    break
7336  else
7337    lt_cv_sys_global_symbol_pipe=
7338  fi
7339done
7340
7341fi
7342
7343if test -z "$lt_cv_sys_global_symbol_pipe"; then
7344  lt_cv_sys_global_symbol_to_cdecl=
7345fi
7346if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7347  echo "$as_me:$LINENO: result: failed" >&5
7348echo "${ECHO_T}failed" >&6
7349else
7350  echo "$as_me:$LINENO: result: ok" >&5
7351echo "${ECHO_T}ok" >&6
7352fi
7353
7354echo "$as_me:$LINENO: checking for objdir" >&5
7355echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7356if test "${lt_cv_objdir+set}" = set; then
7357  echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359  rm -f .libs 2>/dev/null
7360mkdir .libs 2>/dev/null
7361if test -d .libs; then
7362  lt_cv_objdir=.libs
7363else
7364  # MS-DOS does not allow filenames that begin with a dot.
7365  lt_cv_objdir=_libs
7366fi
7367rmdir .libs 2>/dev/null
7368fi
7369echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7370echo "${ECHO_T}$lt_cv_objdir" >&6
7371objdir=$lt_cv_objdir
7372
7373
7374
7375
7376
7377case $host_os in
7378aix3*)
7379  # AIX sometimes has problems with the GCC collect2 program.  For some
7380  # reason, if we set the COLLECT_NAMES environment variable, the problems
7381  # vanish in a puff of smoke.
7382  if test "X${COLLECT_NAMES+set}" != Xset; then
7383    COLLECT_NAMES=
7384    export COLLECT_NAMES
7385  fi
7386  ;;
7387esac
7388
7389# Sed substitution that helps us do robust quoting.  It backslashifies
7390# metacharacters that are still active within double-quoted strings.
7391Xsed='sed -e 1s/^X//'
7392sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7393
7394# Same as above, but do not quote variable references.
7395double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7396
7397# Sed substitution to delay expansion of an escaped shell variable in a
7398# double_quote_subst'ed string.
7399delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7400
7401# Sed substitution to avoid accidental globbing in evaled expressions
7402no_glob_subst='s/\*/\\\*/g'
7403
7404# Constants:
7405rm="rm -f"
7406
7407# Global variables:
7408default_ofile=libtool
7409can_build_shared=yes
7410
7411# All known linkers require a `.a' archive for static linking (except MSVC,
7412# which needs '.lib').
7413libext=a
7414ltmain="$ac_aux_dir/ltmain.sh"
7415ofile="$default_ofile"
7416with_gnu_ld="$lt_cv_prog_gnu_ld"
7417
7418if test -n "$ac_tool_prefix"; then
7419  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7420set dummy ${ac_tool_prefix}ar; ac_word=$2
7421echo "$as_me:$LINENO: checking for $ac_word" >&5
7422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7423if test "${ac_cv_prog_AR+set}" = set; then
7424  echo $ECHO_N "(cached) $ECHO_C" >&6
7425else
7426  if test -n "$AR"; then
7427  ac_cv_prog_AR="$AR" # Let the user override the test.
7428else
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432  IFS=$as_save_IFS
7433  test -z "$as_dir" && as_dir=.
7434  for ac_exec_ext in '' $ac_executable_extensions; do
7435  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436    ac_cv_prog_AR="${ac_tool_prefix}ar"
7437    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438    break 2
7439  fi
7440done
7441done
7442
7443fi
7444fi
7445AR=$ac_cv_prog_AR
7446if test -n "$AR"; then
7447  echo "$as_me:$LINENO: result: $AR" >&5
7448echo "${ECHO_T}$AR" >&6
7449else
7450  echo "$as_me:$LINENO: result: no" >&5
7451echo "${ECHO_T}no" >&6
7452fi
7453
7454fi
7455if test -z "$ac_cv_prog_AR"; then
7456  ac_ct_AR=$AR
7457  # Extract the first word of "ar", so it can be a program name with args.
7458set dummy ar; ac_word=$2
7459echo "$as_me:$LINENO: checking for $ac_word" >&5
7460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7461if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7462  echo $ECHO_N "(cached) $ECHO_C" >&6
7463else
7464  if test -n "$ac_ct_AR"; then
7465  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7466else
7467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470  IFS=$as_save_IFS
7471  test -z "$as_dir" && as_dir=.
7472  for ac_exec_ext in '' $ac_executable_extensions; do
7473  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7474    ac_cv_prog_ac_ct_AR="ar"
7475    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476    break 2
7477  fi
7478done
7479done
7480
7481  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7482fi
7483fi
7484ac_ct_AR=$ac_cv_prog_ac_ct_AR
7485if test -n "$ac_ct_AR"; then
7486  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7487echo "${ECHO_T}$ac_ct_AR" >&6
7488else
7489  echo "$as_me:$LINENO: result: no" >&5
7490echo "${ECHO_T}no" >&6
7491fi
7492
7493  AR=$ac_ct_AR
7494else
7495  AR="$ac_cv_prog_AR"
7496fi
7497
7498if test -n "$ac_tool_prefix"; then
7499  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7500set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7501echo "$as_me:$LINENO: checking for $ac_word" >&5
7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7503if test "${ac_cv_prog_RANLIB+set}" = set; then
7504  echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506  if test -n "$RANLIB"; then
7507  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7508else
7509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510for as_dir in $PATH
7511do
7512  IFS=$as_save_IFS
7513  test -z "$as_dir" && as_dir=.
7514  for ac_exec_ext in '' $ac_executable_extensions; do
7515  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7517    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518    break 2
7519  fi
7520done
7521done
7522
7523fi
7524fi
7525RANLIB=$ac_cv_prog_RANLIB
7526if test -n "$RANLIB"; then
7527  echo "$as_me:$LINENO: result: $RANLIB" >&5
7528echo "${ECHO_T}$RANLIB" >&6
7529else
7530  echo "$as_me:$LINENO: result: no" >&5
7531echo "${ECHO_T}no" >&6
7532fi
7533
7534fi
7535if test -z "$ac_cv_prog_RANLIB"; then
7536  ac_ct_RANLIB=$RANLIB
7537  # Extract the first word of "ranlib", so it can be a program name with args.
7538set dummy ranlib; ac_word=$2
7539echo "$as_me:$LINENO: checking for $ac_word" >&5
7540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7541if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7542  echo $ECHO_N "(cached) $ECHO_C" >&6
7543else
7544  if test -n "$ac_ct_RANLIB"; then
7545  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7546else
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550  IFS=$as_save_IFS
7551  test -z "$as_dir" && as_dir=.
7552  for ac_exec_ext in '' $ac_executable_extensions; do
7553  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554    ac_cv_prog_ac_ct_RANLIB="ranlib"
7555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556    break 2
7557  fi
7558done
7559done
7560
7561  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7562fi
7563fi
7564ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7565if test -n "$ac_ct_RANLIB"; then
7566  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7567echo "${ECHO_T}$ac_ct_RANLIB" >&6
7568else
7569  echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6
7571fi
7572
7573  RANLIB=$ac_ct_RANLIB
7574else
7575  RANLIB="$ac_cv_prog_RANLIB"
7576fi
7577
7578if test -n "$ac_tool_prefix"; then
7579  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7580set dummy ${ac_tool_prefix}strip; ac_word=$2
7581echo "$as_me:$LINENO: checking for $ac_word" >&5
7582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7583if test "${ac_cv_prog_STRIP+set}" = set; then
7584  echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586  if test -n "$STRIP"; then
7587  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7588else
7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592  IFS=$as_save_IFS
7593  test -z "$as_dir" && as_dir=.
7594  for ac_exec_ext in '' $ac_executable_extensions; do
7595  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598    break 2
7599  fi
7600done
7601done
7602
7603fi
7604fi
7605STRIP=$ac_cv_prog_STRIP
7606if test -n "$STRIP"; then
7607  echo "$as_me:$LINENO: result: $STRIP" >&5
7608echo "${ECHO_T}$STRIP" >&6
7609else
7610  echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6
7612fi
7613
7614fi
7615if test -z "$ac_cv_prog_STRIP"; then
7616  ac_ct_STRIP=$STRIP
7617  # Extract the first word of "strip", so it can be a program name with args.
7618set dummy strip; ac_word=$2
7619echo "$as_me:$LINENO: checking for $ac_word" >&5
7620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7621if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7622  echo $ECHO_N "(cached) $ECHO_C" >&6
7623else
7624  if test -n "$ac_ct_STRIP"; then
7625  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7626else
7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630  IFS=$as_save_IFS
7631  test -z "$as_dir" && as_dir=.
7632  for ac_exec_ext in '' $ac_executable_extensions; do
7633  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634    ac_cv_prog_ac_ct_STRIP="strip"
7635    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636    break 2
7637  fi
7638done
7639done
7640
7641  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7642fi
7643fi
7644ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7645if test -n "$ac_ct_STRIP"; then
7646  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7647echo "${ECHO_T}$ac_ct_STRIP" >&6
7648else
7649  echo "$as_me:$LINENO: result: no" >&5
7650echo "${ECHO_T}no" >&6
7651fi
7652
7653  STRIP=$ac_ct_STRIP
7654else
7655  STRIP="$ac_cv_prog_STRIP"
7656fi
7657
7658
7659old_CC="$CC"
7660old_CFLAGS="$CFLAGS"
7661
7662# Set sane defaults for various variables
7663test -z "$AR" && AR=ar
7664test -z "$AR_FLAGS" && AR_FLAGS=cru
7665test -z "$AS" && AS=as
7666test -z "$CC" && CC=cc
7667test -z "$LTCC" && LTCC=$CC
7668test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7669test -z "$DLLTOOL" && DLLTOOL=dlltool
7670test -z "$LD" && LD=ld
7671test -z "$LN_S" && LN_S="ln -s"
7672test -z "$MAGIC_CMD" && MAGIC_CMD=file
7673test -z "$NM" && NM=nm
7674test -z "$SED" && SED=sed
7675test -z "$OBJDUMP" && OBJDUMP=objdump
7676test -z "$RANLIB" && RANLIB=:
7677test -z "$STRIP" && STRIP=:
7678test -z "$ac_objext" && ac_objext=o
7679
7680# Determine commands to create old-style static archives.
7681old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7682old_postinstall_cmds='chmod 644 $oldlib'
7683old_postuninstall_cmds=
7684
7685if test -n "$RANLIB"; then
7686  case $host_os in
7687  openbsd*)
7688    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7689    ;;
7690  *)
7691    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7692    ;;
7693  esac
7694  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7695fi
7696
7697for cc_temp in $compiler""; do
7698  case $cc_temp in
7699    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7700    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7701    \-*) ;;
7702    *) break;;
7703  esac
7704done
7705cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7706
7707
7708# Only perform the check for file, if the check method requires it
7709case $deplibs_check_method in
7710file_magic*)
7711  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7712    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7713echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7714if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7715  echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717  case $MAGIC_CMD in
7718[\\/*] |  ?:[\\/]*)
7719  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7720  ;;
7721*)
7722  lt_save_MAGIC_CMD="$MAGIC_CMD"
7723  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7724  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7725  for ac_dir in $ac_dummy; do
7726    IFS="$lt_save_ifs"
7727    test -z "$ac_dir" && ac_dir=.
7728    if test -f $ac_dir/${ac_tool_prefix}file; then
7729      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7730      if test -n "$file_magic_test_file"; then
7731        case $deplibs_check_method in
7732        "file_magic "*)
7733          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7734          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7735          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7736            $EGREP "$file_magic_regex" > /dev/null; then
7737            :
7738          else
7739            cat <<EOF 1>&2
7740
7741*** Warning: the command libtool uses to detect shared libraries,
7742*** $file_magic_cmd, produces output that libtool cannot recognize.
7743*** The result is that libtool may fail to recognize shared libraries
7744*** as such.  This will affect the creation of libtool libraries that
7745*** depend on shared libraries, but programs linked with such libtool
7746*** libraries will work regardless of this problem.  Nevertheless, you
7747*** may want to report the problem to your system manager and/or to
7748*** bug-libtool@gnu.org
7749
7750EOF
7751          fi ;;
7752        esac
7753      fi
7754      break
7755    fi
7756  done
7757  IFS="$lt_save_ifs"
7758  MAGIC_CMD="$lt_save_MAGIC_CMD"
7759  ;;
7760esac
7761fi
7762
7763MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7764if test -n "$MAGIC_CMD"; then
7765  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7766echo "${ECHO_T}$MAGIC_CMD" >&6
7767else
7768  echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6
7770fi
7771
7772if test -z "$lt_cv_path_MAGIC_CMD"; then
7773  if test -n "$ac_tool_prefix"; then
7774    echo "$as_me:$LINENO: checking for file" >&5
7775echo $ECHO_N "checking for file... $ECHO_C" >&6
7776if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7777  echo $ECHO_N "(cached) $ECHO_C" >&6
7778else
7779  case $MAGIC_CMD in
7780[\\/*] |  ?:[\\/]*)
7781  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7782  ;;
7783*)
7784  lt_save_MAGIC_CMD="$MAGIC_CMD"
7785  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7786  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7787  for ac_dir in $ac_dummy; do
7788    IFS="$lt_save_ifs"
7789    test -z "$ac_dir" && ac_dir=.
7790    if test -f $ac_dir/file; then
7791      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7792      if test -n "$file_magic_test_file"; then
7793        case $deplibs_check_method in
7794        "file_magic "*)
7795          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7796          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7797          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7798            $EGREP "$file_magic_regex" > /dev/null; then
7799            :
7800          else
7801            cat <<EOF 1>&2
7802
7803*** Warning: the command libtool uses to detect shared libraries,
7804*** $file_magic_cmd, produces output that libtool cannot recognize.
7805*** The result is that libtool may fail to recognize shared libraries
7806*** as such.  This will affect the creation of libtool libraries that
7807*** depend on shared libraries, but programs linked with such libtool
7808*** libraries will work regardless of this problem.  Nevertheless, you
7809*** may want to report the problem to your system manager and/or to
7810*** bug-libtool@gnu.org
7811
7812EOF
7813          fi ;;
7814        esac
7815      fi
7816      break
7817    fi
7818  done
7819  IFS="$lt_save_ifs"
7820  MAGIC_CMD="$lt_save_MAGIC_CMD"
7821  ;;
7822esac
7823fi
7824
7825MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7826if test -n "$MAGIC_CMD"; then
7827  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7828echo "${ECHO_T}$MAGIC_CMD" >&6
7829else
7830  echo "$as_me:$LINENO: result: no" >&5
7831echo "${ECHO_T}no" >&6
7832fi
7833
7834  else
7835    MAGIC_CMD=:
7836  fi
7837fi
7838
7839  fi
7840  ;;
7841esac
7842
7843enable_dlopen=no
7844enable_win32_dll=no
7845
7846# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7847if test "${enable_libtool_lock+set}" = set; then
7848  enableval="$enable_libtool_lock"
7849
7850fi;
7851test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7852
7853
7854# Check whether --with-pic or --without-pic was given.
7855if test "${with_pic+set}" = set; then
7856  withval="$with_pic"
7857  pic_mode="$withval"
7858else
7859  pic_mode=default
7860fi;
7861test -z "$pic_mode" && pic_mode=default
7862
7863# Use C for the default configuration in the libtool script
7864tagname=
7865lt_save_CC="$CC"
7866ac_ext=c
7867ac_cpp='$CPP $CPPFLAGS'
7868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7870ac_compiler_gnu=$ac_cv_c_compiler_gnu
7871
7872
7873# Source file extension for C test sources.
7874ac_ext=c
7875
7876# Object file extension for compiled C test sources.
7877objext=o
7878objext=$objext
7879
7880# Code to be used in simple compile tests
7881lt_simple_compile_test_code="int some_variable = 0;\n"
7882
7883# Code to be used in simple link tests
7884lt_simple_link_test_code='int main(){return(0);}\n'
7885
7886
7887# If no C compiler was specified, use CC.
7888LTCC=${LTCC-"$CC"}
7889
7890# If no C compiler flags were specified, use CFLAGS.
7891LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7892
7893# Allow CC to be a program name with arguments.
7894compiler=$CC
7895
7896
7897# save warnings/boilerplate of simple test code
7898ac_outfile=conftest.$ac_objext
7899printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7900eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7901_lt_compiler_boilerplate=`cat conftest.err`
7902$rm conftest*
7903
7904ac_outfile=conftest.$ac_objext
7905printf "$lt_simple_link_test_code" >conftest.$ac_ext
7906eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7907_lt_linker_boilerplate=`cat conftest.err`
7908$rm conftest*
7909
7910
7911## CAVEAT EMPTOR:
7912## There is no encapsulation within the following macros, do not change
7913## the running order or otherwise move them around unless you know exactly
7914## what you are doing...
7915
7916lt_prog_compiler_no_builtin_flag=
7917
7918if test "$GCC" = yes; then
7919  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7920
7921
7922echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7923echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7924if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7925  echo $ECHO_N "(cached) $ECHO_C" >&6
7926else
7927  lt_cv_prog_compiler_rtti_exceptions=no
7928  ac_outfile=conftest.$ac_objext
7929   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7930   lt_compiler_flag="-fno-rtti -fno-exceptions"
7931   # Insert the option either (1) after the last *FLAGS variable, or
7932   # (2) before a word containing "conftest.", or (3) at the end.
7933   # Note that $ac_compile itself does not contain backslashes and begins
7934   # with a dollar sign (not a hyphen), so the echo should work correctly.
7935   # The option is referenced via a variable to avoid confusing sed.
7936   lt_compile=`echo "$ac_compile" | $SED \
7937   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7938   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7939   -e 's:$: $lt_compiler_flag:'`
7940   (eval echo "\"\$as_me:7940: $lt_compile\"" >&5)
7941   (eval "$lt_compile" 2>conftest.err)
7942   ac_status=$?
7943   cat conftest.err >&5
7944   echo "$as_me:7944: \$? = $ac_status" >&5
7945   if (exit $ac_status) && test -s "$ac_outfile"; then
7946     # The compiler can only warn and ignore the option if not recognized
7947     # So say no if there are warnings other than the usual output.
7948     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7949     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7950     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7951       lt_cv_prog_compiler_rtti_exceptions=yes
7952     fi
7953   fi
7954   $rm conftest*
7955
7956fi
7957echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7958echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7959
7960if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7961    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7962else
7963    :
7964fi
7965
7966fi
7967
7968lt_prog_compiler_wl=
7969lt_prog_compiler_pic=
7970lt_prog_compiler_static=
7971
7972echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7973echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7974
7975  if test "$GCC" = yes; then
7976    lt_prog_compiler_wl='-Wl,'
7977    lt_prog_compiler_static='-static'
7978
7979    case $host_os in
7980      aix*)
7981      # All AIX code is PIC.
7982      if test "$host_cpu" = ia64; then
7983        # AIX 5 now supports IA64 processor
7984        lt_prog_compiler_static='-Bstatic'
7985      fi
7986      ;;
7987
7988    amigaos*)
7989      # FIXME: we need at least 68020 code to build shared libraries, but
7990      # adding the `-m68020' flag to GCC prevents building anything better,
7991      # like `-m68040'.
7992      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7993      ;;
7994
7995    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7996      # PIC is the default for these OSes.
7997      ;;
7998
7999    mingw* | pw32* | os2*)
8000      # This hack is so that the source file can tell whether it is being
8001      # built for inclusion in a dll (and should export symbols for example).
8002      lt_prog_compiler_pic='-DDLL_EXPORT'
8003      ;;
8004
8005    darwin* | rhapsody*)
8006      # PIC is the default on this platform
8007      # Common symbols not allowed in MH_DYLIB files
8008      lt_prog_compiler_pic='-fno-common'
8009      ;;
8010
8011    interix3*)
8012      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8013      # Instead, we relocate shared libraries at runtime.
8014      ;;
8015
8016    msdosdjgpp*)
8017      # Just because we use GCC doesn't mean we suddenly get shared libraries
8018      # on systems that don't support them.
8019      lt_prog_compiler_can_build_shared=no
8020      enable_shared=no
8021      ;;
8022
8023    sysv4*MP*)
8024      if test -d /usr/nec; then
8025        lt_prog_compiler_pic=-Kconform_pic
8026      fi
8027      ;;
8028
8029    hpux*)
8030      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8031      # not for PA HP-UX.
8032      case $host_cpu in
8033      hppa*64*|ia64*)
8034        # +Z the default
8035        ;;
8036      *)
8037        lt_prog_compiler_pic='-fPIC'
8038        ;;
8039      esac
8040      ;;
8041
8042    *)
8043      lt_prog_compiler_pic='-fPIC'
8044      ;;
8045    esac
8046  else
8047    # PORTME Check for flag to pass linker flags through the system compiler.
8048    case $host_os in
8049    aix*)
8050      lt_prog_compiler_wl='-Wl,'
8051      if test "$host_cpu" = ia64; then
8052        # AIX 5 now supports IA64 processor
8053        lt_prog_compiler_static='-Bstatic'
8054      else
8055        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8056      fi
8057      ;;
8058      darwin*)
8059        # PIC is the default on this platform
8060        # Common symbols not allowed in MH_DYLIB files
8061       case $cc_basename in
8062         xlc*)
8063         lt_prog_compiler_pic='-qnocommon'
8064         lt_prog_compiler_wl='-Wl,'
8065         ;;
8066       esac
8067       ;;
8068
8069    mingw* | pw32* | os2*)
8070      # This hack is so that the source file can tell whether it is being
8071      # built for inclusion in a dll (and should export symbols for example).
8072      lt_prog_compiler_pic='-DDLL_EXPORT'
8073      ;;
8074
8075    hpux9* | hpux10* | hpux11*)
8076      lt_prog_compiler_wl='-Wl,'
8077      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8078      # not for PA HP-UX.
8079      case $host_cpu in
8080      hppa*64*|ia64*)
8081        # +Z the default
8082        ;;
8083      *)
8084        lt_prog_compiler_pic='+Z'
8085        ;;
8086      esac
8087      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8088      lt_prog_compiler_static='${wl}-a ${wl}archive'
8089      ;;
8090
8091    irix5* | irix6* | nonstopux*)
8092      lt_prog_compiler_wl='-Wl,'
8093      # PIC (with -KPIC) is the default.
8094      lt_prog_compiler_static='-non_shared'
8095      ;;
8096
8097    newsos6)
8098      lt_prog_compiler_pic='-KPIC'
8099      lt_prog_compiler_static='-Bstatic'
8100      ;;
8101
8102    linux*)
8103      case $cc_basename in
8104      icc* | ecc*)
8105        lt_prog_compiler_wl='-Wl,'
8106        lt_prog_compiler_pic='-KPIC'
8107        lt_prog_compiler_static='-static'
8108        ;;
8109      pgcc* | pgf77* | pgf90* | pgf95*)
8110        # Portland Group compilers (*not* the Pentium gcc compiler,
8111        # which looks to be a dead project)
8112        lt_prog_compiler_wl='-Wl,'
8113        lt_prog_compiler_pic='-fpic'
8114        lt_prog_compiler_static='-Bstatic'
8115        ;;
8116      ccc*)
8117        lt_prog_compiler_wl='-Wl,'
8118        # All Alpha code is PIC.
8119        lt_prog_compiler_static='-non_shared'
8120        ;;
8121      esac
8122      ;;
8123
8124    osf3* | osf4* | osf5*)
8125      lt_prog_compiler_wl='-Wl,'
8126      # All OSF/1 code is PIC.
8127      lt_prog_compiler_static='-non_shared'
8128      ;;
8129
8130    solaris*)
8131      lt_prog_compiler_pic='-KPIC'
8132      lt_prog_compiler_static='-Bstatic'
8133      case $cc_basename in
8134      f77* | f90* | f95*)
8135        lt_prog_compiler_wl='-Qoption ld ';;
8136      *)
8137        lt_prog_compiler_wl='-Wl,';;
8138      esac
8139      ;;
8140
8141    sunos4*)
8142      lt_prog_compiler_wl='-Qoption ld '
8143      lt_prog_compiler_pic='-PIC'
8144      lt_prog_compiler_static='-Bstatic'
8145      ;;
8146
8147    sysv4 | sysv4.2uw2* | sysv4.3*)
8148      lt_prog_compiler_wl='-Wl,'
8149      lt_prog_compiler_pic='-KPIC'
8150      lt_prog_compiler_static='-Bstatic'
8151      ;;
8152
8153    sysv4*MP*)
8154      if test -d /usr/nec ;then
8155        lt_prog_compiler_pic='-Kconform_pic'
8156        lt_prog_compiler_static='-Bstatic'
8157      fi
8158      ;;
8159
8160    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8161      lt_prog_compiler_wl='-Wl,'
8162      lt_prog_compiler_pic='-KPIC'
8163      lt_prog_compiler_static='-Bstatic'
8164      ;;
8165
8166    unicos*)
8167      lt_prog_compiler_wl='-Wl,'
8168      lt_prog_compiler_can_build_shared=no
8169      ;;
8170
8171    uts4*)
8172      lt_prog_compiler_pic='-pic'
8173      lt_prog_compiler_static='-Bstatic'
8174      ;;
8175
8176    *)
8177      lt_prog_compiler_can_build_shared=no
8178      ;;
8179    esac
8180  fi
8181
8182echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8183echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8184
8185#
8186# Check to make sure the PIC flag actually works.
8187#
8188if test -n "$lt_prog_compiler_pic"; then
8189
8190echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8191echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8192if test "${lt_prog_compiler_pic_works+set}" = set; then
8193  echo $ECHO_N "(cached) $ECHO_C" >&6
8194else
8195  lt_prog_compiler_pic_works=no
8196  ac_outfile=conftest.$ac_objext
8197   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8198   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8199   # Insert the option either (1) after the last *FLAGS variable, or
8200   # (2) before a word containing "conftest.", or (3) at the end.
8201   # Note that $ac_compile itself does not contain backslashes and begins
8202   # with a dollar sign (not a hyphen), so the echo should work correctly.
8203   # The option is referenced via a variable to avoid confusing sed.
8204   lt_compile=`echo "$ac_compile" | $SED \
8205   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8206   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8207   -e 's:$: $lt_compiler_flag:'`
8208   (eval echo "\"\$as_me:8208: $lt_compile\"" >&5)
8209   (eval "$lt_compile" 2>conftest.err)
8210   ac_status=$?
8211   cat conftest.err >&5
8212   echo "$as_me:8212: \$? = $ac_status" >&5
8213   if (exit $ac_status) && test -s "$ac_outfile"; then
8214     # The compiler can only warn and ignore the option if not recognized
8215     # So say no if there are warnings other than the usual output.
8216     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8217     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8218     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8219       lt_prog_compiler_pic_works=yes
8220     fi
8221   fi
8222   $rm conftest*
8223
8224fi
8225echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8226echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8227
8228if test x"$lt_prog_compiler_pic_works" = xyes; then
8229    case $lt_prog_compiler_pic in
8230     "" | " "*) ;;
8231     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8232     esac
8233else
8234    lt_prog_compiler_pic=
8235     lt_prog_compiler_can_build_shared=no
8236fi
8237
8238fi
8239case $host_os in
8240  # For platforms which do not support PIC, -DPIC is meaningless:
8241  *djgpp*)
8242    lt_prog_compiler_pic=
8243    ;;
8244  *)
8245    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8246    ;;
8247esac
8248
8249#
8250# Check to make sure the static flag actually works.
8251#
8252wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8253echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8254echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8255if test "${lt_prog_compiler_static_works+set}" = set; then
8256  echo $ECHO_N "(cached) $ECHO_C" >&6
8257else
8258  lt_prog_compiler_static_works=no
8259   save_LDFLAGS="$LDFLAGS"
8260   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8261   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8262   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8263     # The linker can only warn and ignore the option if not recognized
8264     # So say no if there are warnings
8265     if test -s conftest.err; then
8266       # Append any errors to the config.log.
8267       cat conftest.err 1>&5
8268       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8269       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8270       if diff conftest.exp conftest.er2 >/dev/null; then
8271         lt_prog_compiler_static_works=yes
8272       fi
8273     else
8274       lt_prog_compiler_static_works=yes
8275     fi
8276   fi
8277   $rm conftest*
8278   LDFLAGS="$save_LDFLAGS"
8279
8280fi
8281echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8282echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8283
8284if test x"$lt_prog_compiler_static_works" = xyes; then
8285    :
8286else
8287    lt_prog_compiler_static=
8288fi
8289
8290
8291echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8292echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8293if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8294  echo $ECHO_N "(cached) $ECHO_C" >&6
8295else
8296  lt_cv_prog_compiler_c_o=no
8297   $rm -r conftest 2>/dev/null
8298   mkdir conftest
8299   cd conftest
8300   mkdir out
8301   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8302
8303   lt_compiler_flag="-o out/conftest2.$ac_objext"
8304   # Insert the option either (1) after the last *FLAGS variable, or
8305   # (2) before a word containing "conftest.", or (3) at the end.
8306   # Note that $ac_compile itself does not contain backslashes and begins
8307   # with a dollar sign (not a hyphen), so the echo should work correctly.
8308   lt_compile=`echo "$ac_compile" | $SED \
8309   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8310   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8311   -e 's:$: $lt_compiler_flag:'`
8312   (eval echo "\"\$as_me:8312: $lt_compile\"" >&5)
8313   (eval "$lt_compile" 2>out/conftest.err)
8314   ac_status=$?
8315   cat out/conftest.err >&5
8316   echo "$as_me:8316: \$? = $ac_status" >&5
8317   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8318   then
8319     # The compiler can only warn and ignore the option if not recognized
8320     # So say no if there are warnings
8321     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8322     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8323     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8324       lt_cv_prog_compiler_c_o=yes
8325     fi
8326   fi
8327   chmod u+w . 2>&5
8328   $rm conftest*
8329   # SGI C++ compiler will create directory out/ii_files/ for
8330   # template instantiation
8331   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8332   $rm out/* && rmdir out
8333   cd ..
8334   rmdir conftest
8335   $rm conftest*
8336
8337fi
8338echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8339echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8340
8341
8342hard_links="nottested"
8343if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8344  # do not overwrite the value of need_locks provided by the user
8345  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8346echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8347  hard_links=yes
8348  $rm conftest*
8349  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8350  touch conftest.a
8351  ln conftest.a conftest.b 2>&5 || hard_links=no
8352  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8353  echo "$as_me:$LINENO: result: $hard_links" >&5
8354echo "${ECHO_T}$hard_links" >&6
8355  if test "$hard_links" = no; then
8356    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8357echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8358    need_locks=warn
8359  fi
8360else
8361  need_locks=no
8362fi
8363
8364echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8365echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8366
8367  runpath_var=
8368  allow_undefined_flag=
8369  enable_shared_with_static_runtimes=no
8370  archive_cmds=
8371  archive_expsym_cmds=
8372  old_archive_From_new_cmds=
8373  old_archive_from_expsyms_cmds=
8374  export_dynamic_flag_spec=
8375  whole_archive_flag_spec=
8376  thread_safe_flag_spec=
8377  hardcode_libdir_flag_spec=
8378  hardcode_libdir_flag_spec_ld=
8379  hardcode_libdir_separator=
8380  hardcode_direct=no
8381  hardcode_minus_L=no
8382  hardcode_shlibpath_var=unsupported
8383  link_all_deplibs=unknown
8384  hardcode_automatic=no
8385  module_cmds=
8386  module_expsym_cmds=
8387  always_export_symbols=no
8388  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8389  # include_expsyms should be a list of space-separated symbols to be *always*
8390  # included in the symbol list
8391  include_expsyms=
8392  # exclude_expsyms can be an extended regexp of symbols to exclude
8393  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8394  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8395  # as well as any symbol that contains `d'.
8396  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8397  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8398  # platforms (ab)use it in PIC code, but their linkers get confused if
8399  # the symbol is explicitly referenced.  Since portable code cannot
8400  # rely on this symbol name, it's probably fine to never include it in
8401  # preloaded symbol tables.
8402  extract_expsyms_cmds=
8403  # Just being paranoid about ensuring that cc_basename is set.
8404  for cc_temp in $compiler""; do
8405  case $cc_temp in
8406    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8407    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8408    \-*) ;;
8409    *) break;;
8410  esac
8411done
8412cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8413
8414  case $host_os in
8415  cygwin* | mingw* | pw32*)
8416    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8417    # When not using gcc, we currently assume that we are using
8418    # Microsoft Visual C++.
8419    if test "$GCC" != yes; then
8420      with_gnu_ld=no
8421    fi
8422    ;;
8423  interix*)
8424    # we just hope/assume this is gcc and not c89 (= MSVC++)
8425    with_gnu_ld=yes
8426    ;;
8427  openbsd*)
8428    with_gnu_ld=no
8429    ;;
8430  esac
8431
8432  ld_shlibs=yes
8433  if test "$with_gnu_ld" = yes; then
8434    # If archive_cmds runs LD, not CC, wlarc should be empty
8435    wlarc='${wl}'
8436
8437    # Set some defaults for GNU ld with shared library support. These
8438    # are reset later if shared libraries are not supported. Putting them
8439    # here allows them to be overridden if necessary.
8440    runpath_var=LD_RUN_PATH
8441    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8442    export_dynamic_flag_spec='${wl}--export-dynamic'
8443    # ancient GNU ld didn't support --whole-archive et. al.
8444    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8445        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8446      else
8447        whole_archive_flag_spec=
8448    fi
8449    supports_anon_versioning=no
8450    case `$LD -v 2>/dev/null` in
8451      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8452      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8453      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8454      *\ 2.11.*) ;; # other 2.11 versions
8455      *) supports_anon_versioning=yes ;;
8456    esac
8457
8458    # See if GNU ld supports shared libraries.
8459    case $host_os in
8460    aix3* | aix4* | aix5*)
8461      # On AIX/PPC, the GNU linker is very broken
8462      if test "$host_cpu" != ia64; then
8463        ld_shlibs=no
8464        cat <<EOF 1>&2
8465
8466*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8467*** to be unable to reliably create shared libraries on AIX.
8468*** Therefore, libtool is disabling shared libraries support.  If you
8469*** really care for shared libraries, you may want to modify your PATH
8470*** so that a non-GNU linker is found, and then restart.
8471
8472EOF
8473      fi
8474      ;;
8475
8476    amigaos*)
8477      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)'
8478      hardcode_libdir_flag_spec='-L$libdir'
8479      hardcode_minus_L=yes
8480
8481      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8482      # that the semantics of dynamic libraries on AmigaOS, at least up
8483      # to version 4, is to share data among multiple programs linked
8484      # with the same dynamic library.  Since this doesn't match the
8485      # behavior of shared libraries on other platforms, we can't use
8486      # them.
8487      ld_shlibs=no
8488      ;;
8489
8490    beos*)
8491      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8492        allow_undefined_flag=unsupported
8493        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8494        # support --undefined.  This deserves some investigation.  FIXME
8495        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8496      else
8497        ld_shlibs=no
8498      fi
8499      ;;
8500
8501    cygwin* | mingw* | pw32*)
8502      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8503      # as there is no search path for DLLs.
8504      hardcode_libdir_flag_spec='-L$libdir'
8505      allow_undefined_flag=unsupported
8506      always_export_symbols=no
8507      enable_shared_with_static_runtimes=yes
8508      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8509
8510      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8511        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8512        # If the export-symbols file already is a .def file (1st line
8513        # is EXPORTS), use it as is; otherwise, prepend...
8514        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8515          cp $export_symbols $output_objdir/$soname.def;
8516        else
8517          echo EXPORTS > $output_objdir/$soname.def;
8518          cat $export_symbols >> $output_objdir/$soname.def;
8519        fi~
8520        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8521      else
8522        ld_shlibs=no
8523      fi
8524      ;;
8525
8526    interix3*)
8527      hardcode_direct=no
8528      hardcode_shlibpath_var=no
8529      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8530      export_dynamic_flag_spec='${wl}-E'
8531      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8532      # Instead, shared libraries are loaded at an image base (0x10000000 by
8533      # default) and relocated if they conflict, which is a slow very memory
8534      # consuming and fragmenting process.  To avoid this, we pick a random,
8535      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8536      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8537      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8538      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'
8539      ;;
8540
8541    linux*)
8542      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8543        tmp_addflag=
8544        case $cc_basename,$host_cpu in
8545        pgcc*)                          # Portland Group C compiler
8546          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'
8547          tmp_addflag=' $pic_flag'
8548          ;;
8549        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8550          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'
8551          tmp_addflag=' $pic_flag -Mnomain' ;;
8552        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8553          tmp_addflag=' -i_dynamic' ;;
8554        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8555          tmp_addflag=' -i_dynamic -nofor_main' ;;
8556        ifc* | ifort*)                  # Intel Fortran compiler
8557          tmp_addflag=' -nofor_main' ;;
8558        esac
8559        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8560
8561        if test $supports_anon_versioning = yes; then
8562          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8563  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8564  $echo "local: *; };" >> $output_objdir/$libname.ver~
8565          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8566        fi
8567      else
8568        ld_shlibs=no
8569      fi
8570      ;;
8571
8572    netbsd*)
8573      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8574        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8575        wlarc=
8576      else
8577        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8578        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8579      fi
8580      ;;
8581
8582    solaris*)
8583      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8584        ld_shlibs=no
8585        cat <<EOF 1>&2
8586
8587*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8588*** create shared libraries on Solaris systems.  Therefore, libtool
8589*** is disabling shared libraries support.  We urge you to upgrade GNU
8590*** binutils to release 2.9.1 or newer.  Another option is to modify
8591*** your PATH or compiler configuration so that the native linker is
8592*** used, and then restart.
8593
8594EOF
8595      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8596        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8598      else
8599        ld_shlibs=no
8600      fi
8601      ;;
8602
8603    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8604      case `$LD -v 2>&1` in
8605        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8606        ld_shlibs=no
8607        cat <<_LT_EOF 1>&2
8608
8609*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8610*** reliably create shared libraries on SCO systems.  Therefore, libtool
8611*** is disabling shared libraries support.  We urge you to upgrade GNU
8612*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8613*** your PATH or compiler configuration so that the native linker is
8614*** used, and then restart.
8615
8616_LT_EOF
8617        ;;
8618        *)
8619          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8620            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8621            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8622            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8623          else
8624            ld_shlibs=no
8625          fi
8626        ;;
8627      esac
8628      ;;
8629
8630    sunos4*)
8631      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8632      wlarc=
8633      hardcode_direct=yes
8634      hardcode_shlibpath_var=no
8635      ;;
8636
8637    *)
8638      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8639        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8641      else
8642        ld_shlibs=no
8643      fi
8644      ;;
8645    esac
8646
8647    if test "$ld_shlibs" = no; then
8648      runpath_var=
8649      hardcode_libdir_flag_spec=
8650      export_dynamic_flag_spec=
8651      whole_archive_flag_spec=
8652    fi
8653  else
8654    # PORTME fill in a description of your system's linker (not GNU ld)
8655    case $host_os in
8656    aix3*)
8657      allow_undefined_flag=unsupported
8658      always_export_symbols=yes
8659      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'
8660      # Note: this linker hardcodes the directories in LIBPATH if there
8661      # are no directories specified by -L.
8662      hardcode_minus_L=yes
8663      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8664        # Neither direct hardcoding nor static linking is supported with a
8665        # broken collect2.
8666        hardcode_direct=unsupported
8667      fi
8668      ;;
8669
8670    aix4* | aix5*)
8671      if test "$host_cpu" = ia64; then
8672        # On IA64, the linker does run time linking by default, so we don't
8673        # have to do anything special.
8674        aix_use_runtimelinking=no
8675        exp_sym_flag='-Bexport'
8676        no_entry_flag=""
8677      else
8678        # If we're using GNU nm, then we don't want the "-C" option.
8679        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8680        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8681          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'
8682        else
8683          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'
8684        fi
8685        aix_use_runtimelinking=no
8686
8687        # Test if we are trying to use run time linking or normal
8688        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8689        # need to do runtime linking.
8690        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8691          for ld_flag in $LDFLAGS; do
8692          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8693            aix_use_runtimelinking=yes
8694            break
8695          fi
8696          done
8697          ;;
8698        esac
8699
8700        exp_sym_flag='-bexport'
8701        no_entry_flag='-bnoentry'
8702      fi
8703
8704      # When large executables or shared objects are built, AIX ld can
8705      # have problems creating the table of contents.  If linking a library
8706      # or program results in "error TOC overflow" add -mminimal-toc to
8707      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8708      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8709
8710      archive_cmds=''
8711      hardcode_direct=yes
8712      hardcode_libdir_separator=':'
8713      link_all_deplibs=yes
8714
8715      if test "$GCC" = yes; then
8716        case $host_os in aix4.[012]|aix4.[012].*)
8717        # We only want to do this on AIX 4.2 and lower, the check
8718        # below for broken collect2 doesn't work under 4.3+
8719          collect2name=`${CC} -print-prog-name=collect2`
8720          if test -f "$collect2name" && \
8721           strings "$collect2name" | grep resolve_lib_name >/dev/null
8722          then
8723          # We have reworked collect2
8724          hardcode_direct=yes
8725          else
8726          # We have old collect2
8727          hardcode_direct=unsupported
8728          # It fails to find uninstalled libraries when the uninstalled
8729          # path is not listed in the libpath.  Setting hardcode_minus_L
8730          # to unsupported forces relinking
8731          hardcode_minus_L=yes
8732          hardcode_libdir_flag_spec='-L$libdir'
8733          hardcode_libdir_separator=
8734          fi
8735          ;;
8736        esac
8737        shared_flag='-shared'
8738        if test "$aix_use_runtimelinking" = yes; then
8739          shared_flag="$shared_flag "'${wl}-G'
8740        fi
8741      else
8742        # not using gcc
8743        if test "$host_cpu" = ia64; then
8744        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8745        # chokes on -Wl,-G. The following line is correct:
8746          shared_flag='-G'
8747        else
8748          if test "$aix_use_runtimelinking" = yes; then
8749            shared_flag='${wl}-G'
8750          else
8751            shared_flag='${wl}-bM:SRE'
8752          fi
8753        fi
8754      fi
8755
8756      # It seems that -bexpall does not export symbols beginning with
8757      # underscore (_), so it is better to generate a list of symbols to export.
8758      always_export_symbols=yes
8759      if test "$aix_use_runtimelinking" = yes; then
8760        # Warning - without using the other runtime loading flags (-brtl),
8761        # -berok will link without error, but may produce a broken library.
8762        allow_undefined_flag='-berok'
8763       # Determine the default libpath from the value encoded in an empty executable.
8764       cat >conftest.$ac_ext <<_ACEOF
8765/* confdefs.h.  */
8766_ACEOF
8767cat confdefs.h >>conftest.$ac_ext
8768cat >>conftest.$ac_ext <<_ACEOF
8769/* end confdefs.h.  */
8770
8771int
8772main ()
8773{
8774
8775  ;
8776  return 0;
8777}
8778_ACEOF
8779rm -f conftest.$ac_objext conftest$ac_exeext
8780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781  (eval $ac_link) 2>conftest.er1
8782  ac_status=$?
8783  grep -v '^ *+' conftest.er1 >conftest.err
8784  rm -f conftest.er1
8785  cat conftest.err >&5
8786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787  (exit $ac_status); } &&
8788         { ac_try='test -z "$ac_c_werror_flag"
8789                         || test ! -s conftest.err'
8790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791  (eval $ac_try) 2>&5
8792  ac_status=$?
8793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794  (exit $ac_status); }; } &&
8795         { ac_try='test -s conftest$ac_exeext'
8796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797  (eval $ac_try) 2>&5
8798  ac_status=$?
8799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800  (exit $ac_status); }; }; then
8801
8802aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8803}'`
8804# Check for a 64-bit object if we didn't find anything.
8805if 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; }
8806}'`; fi
8807else
8808  echo "$as_me: failed program was:" >&5
8809sed 's/^/| /' conftest.$ac_ext >&5
8810
8811fi
8812rm -f conftest.err conftest.$ac_objext \
8813      conftest$ac_exeext conftest.$ac_ext
8814if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8815
8816       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8817        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"
8818       else
8819        if test "$host_cpu" = ia64; then
8820          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8821          allow_undefined_flag="-z nodefs"
8822          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"
8823        else
8824         # Determine the default libpath from the value encoded in an empty executable.
8825         cat >conftest.$ac_ext <<_ACEOF
8826/* confdefs.h.  */
8827_ACEOF
8828cat confdefs.h >>conftest.$ac_ext
8829cat >>conftest.$ac_ext <<_ACEOF
8830/* end confdefs.h.  */
8831
8832int
8833main ()
8834{
8835
8836  ;
8837  return 0;
8838}
8839_ACEOF
8840rm -f conftest.$ac_objext conftest$ac_exeext
8841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842  (eval $ac_link) 2>conftest.er1
8843  ac_status=$?
8844  grep -v '^ *+' conftest.er1 >conftest.err
8845  rm -f conftest.er1
8846  cat conftest.err >&5
8847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848  (exit $ac_status); } &&
8849         { ac_try='test -z "$ac_c_werror_flag"
8850                         || test ! -s conftest.err'
8851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852  (eval $ac_try) 2>&5
8853  ac_status=$?
8854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855  (exit $ac_status); }; } &&
8856         { ac_try='test -s conftest$ac_exeext'
8857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858  (eval $ac_try) 2>&5
8859  ac_status=$?
8860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861  (exit $ac_status); }; }; then
8862
8863aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8864}'`
8865# Check for a 64-bit object if we didn't find anything.
8866if 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; }
8867}'`; fi
8868else
8869  echo "$as_me: failed program was:" >&5
8870sed 's/^/| /' conftest.$ac_ext >&5
8871
8872fi
8873rm -f conftest.err conftest.$ac_objext \
8874      conftest$ac_exeext conftest.$ac_ext
8875if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8876
8877         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8878          # Warning - without using the other run time loading flags,
8879          # -berok will link without error, but may produce a broken library.
8880          no_undefined_flag=' ${wl}-bernotok'
8881          allow_undefined_flag=' ${wl}-berok'
8882          # Exported symbols can be pulled into shared objects from archives
8883          whole_archive_flag_spec='$convenience'
8884          archive_cmds_need_lc=yes
8885          # This is similar to how AIX traditionally builds its shared libraries.
8886          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'
8887        fi
8888      fi
8889      ;;
8890
8891    amigaos*)
8892      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)'
8893      hardcode_libdir_flag_spec='-L$libdir'
8894      hardcode_minus_L=yes
8895      # see comment about different semantics on the GNU ld section
8896      ld_shlibs=no
8897      ;;
8898
8899    bsdi[45]*)
8900      export_dynamic_flag_spec=-rdynamic
8901      ;;
8902
8903    cygwin* | mingw* | pw32*)
8904      # When not using gcc, we currently assume that we are using
8905      # Microsoft Visual C++.
8906      # hardcode_libdir_flag_spec is actually meaningless, as there is
8907      # no search path for DLLs.
8908      hardcode_libdir_flag_spec=' '
8909      allow_undefined_flag=unsupported
8910      # Tell ltmain to make .lib files, not .a files.
8911      libext=lib
8912      # Tell ltmain to make .dll files, not .so files.
8913      shrext_cmds=".dll"
8914      # FIXME: Setting linknames here is a bad hack.
8915      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8916      # The linker will automatically build a .lib file if we build a DLL.
8917      old_archive_From_new_cmds='true'
8918      # FIXME: Should let the user specify the lib program.
8919      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8920      fix_srcfile_path='`cygpath -w "$srcfile"`'
8921      enable_shared_with_static_runtimes=yes
8922      ;;
8923
8924    darwin* | rhapsody*)
8925      case $host_os in
8926        rhapsody* | darwin1.[012])
8927         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8928         ;;
8929       *) # Darwin 1.3 on
8930         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8931           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8932         else
8933           case ${MACOSX_DEPLOYMENT_TARGET} in
8934             10.[012])
8935               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8936               ;;
8937             10.*)
8938               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8939               ;;
8940           esac
8941         fi
8942         ;;
8943      esac
8944      archive_cmds_need_lc=no
8945      hardcode_direct=no
8946      hardcode_automatic=yes
8947      hardcode_shlibpath_var=unsupported
8948      whole_archive_flag_spec=''
8949      link_all_deplibs=yes
8950    if test "$GCC" = yes ; then
8951        output_verbose_link_cmd='echo'
8952        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8953      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8954      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8955      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}'
8956      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}'
8957    else
8958      case $cc_basename in
8959        xlc*)
8960         output_verbose_link_cmd='echo'
8961         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8962         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8963          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8964         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}'
8965          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}'
8966          ;;
8967       *)
8968         ld_shlibs=no
8969          ;;
8970      esac
8971    fi
8972      ;;
8973
8974    dgux*)
8975      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976      hardcode_libdir_flag_spec='-L$libdir'
8977      hardcode_shlibpath_var=no
8978      ;;
8979
8980    freebsd1*)
8981      ld_shlibs=no
8982      ;;
8983
8984    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8985    # support.  Future versions do this automatically, but an explicit c++rt0.o
8986    # does not break anything, and helps significantly (at the cost of a little
8987    # extra space).
8988    freebsd2.2*)
8989      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8990      hardcode_libdir_flag_spec='-R$libdir'
8991      hardcode_direct=yes
8992      hardcode_shlibpath_var=no
8993      ;;
8994
8995    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8996    freebsd2*)
8997      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8998      hardcode_direct=yes
8999      hardcode_minus_L=yes
9000      hardcode_shlibpath_var=no
9001      ;;
9002
9003    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9004    freebsd* | kfreebsd*-gnu | dragonfly*)
9005      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9006      hardcode_libdir_flag_spec='-R$libdir'
9007      hardcode_direct=yes
9008      hardcode_shlibpath_var=no
9009      ;;
9010
9011    hpux9*)
9012      if test "$GCC" = yes; then
9013        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'
9014      else
9015        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'
9016      fi
9017      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9018      hardcode_libdir_separator=:
9019      hardcode_direct=yes
9020
9021      # hardcode_minus_L: Not really in the search PATH,
9022      # but as the default location of the library.
9023      hardcode_minus_L=yes
9024      export_dynamic_flag_spec='${wl}-E'
9025      ;;
9026
9027    hpux10*)
9028      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9029        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9030      else
9031        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9032      fi
9033      if test "$with_gnu_ld" = no; then
9034        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9035        hardcode_libdir_separator=:
9036
9037        hardcode_direct=yes
9038        export_dynamic_flag_spec='${wl}-E'
9039
9040        # hardcode_minus_L: Not really in the search PATH,
9041        # but as the default location of the library.
9042        hardcode_minus_L=yes
9043      fi
9044      ;;
9045
9046    hpux11*)
9047      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9048        case $host_cpu in
9049        hppa*64*)
9050          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9051          ;;
9052        ia64*)
9053          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9054          ;;
9055        *)
9056          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9057          ;;
9058        esac
9059      else
9060        case $host_cpu in
9061        hppa*64*)
9062          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063          ;;
9064        ia64*)
9065          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9066          ;;
9067        *)
9068          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9069          ;;
9070        esac
9071      fi
9072      if test "$with_gnu_ld" = no; then
9073        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9074        hardcode_libdir_separator=:
9075
9076        case $host_cpu in
9077        hppa*64*|ia64*)
9078          hardcode_libdir_flag_spec_ld='+b $libdir'
9079          hardcode_direct=no
9080          hardcode_shlibpath_var=no
9081          ;;
9082        *)
9083          hardcode_direct=yes
9084          export_dynamic_flag_spec='${wl}-E'
9085
9086          # hardcode_minus_L: Not really in the search PATH,
9087          # but as the default location of the library.
9088          hardcode_minus_L=yes
9089          ;;
9090        esac
9091      fi
9092      ;;
9093
9094    irix5* | irix6* | nonstopux*)
9095      if test "$GCC" = yes; then
9096        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'
9097      else
9098        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'
9099        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9100      fi
9101      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9102      hardcode_libdir_separator=:
9103      link_all_deplibs=yes
9104      ;;
9105
9106    netbsd*)
9107      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9108        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9109      else
9110        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9111      fi
9112      hardcode_libdir_flag_spec='-R$libdir'
9113      hardcode_direct=yes
9114      hardcode_shlibpath_var=no
9115      ;;
9116
9117    newsos6)
9118      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9119      hardcode_direct=yes
9120      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9121      hardcode_libdir_separator=:
9122      hardcode_shlibpath_var=no
9123      ;;
9124
9125    openbsd*)
9126      hardcode_direct=yes
9127      hardcode_shlibpath_var=no
9128      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9129        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9130        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9131        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9132        export_dynamic_flag_spec='${wl}-E'
9133      else
9134       case $host_os in
9135         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9136           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9137           hardcode_libdir_flag_spec='-R$libdir'
9138           ;;
9139         *)
9140           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9141           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9142           ;;
9143       esac
9144      fi
9145      ;;
9146
9147    os2*)
9148      hardcode_libdir_flag_spec='-L$libdir'
9149      hardcode_minus_L=yes
9150      allow_undefined_flag=unsupported
9151      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'
9152      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9153      ;;
9154
9155    osf3*)
9156      if test "$GCC" = yes; then
9157        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9158        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'
9159      else
9160        allow_undefined_flag=' -expect_unresolved \*'
9161        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'
9162      fi
9163      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9164      hardcode_libdir_separator=:
9165      ;;
9166
9167    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9168      if test "$GCC" = yes; then
9169        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9170        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'
9171        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9172      else
9173        allow_undefined_flag=' -expect_unresolved \*'
9174        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'
9175        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9176        $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'
9177
9178        # Both c and cxx compiler support -rpath directly
9179        hardcode_libdir_flag_spec='-rpath $libdir'
9180      fi
9181      hardcode_libdir_separator=:
9182      ;;
9183
9184    solaris*)
9185      no_undefined_flag=' -z text'
9186      if test "$GCC" = yes; then
9187        wlarc='${wl}'
9188        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9189        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9190          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9191      else
9192        wlarc=''
9193        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9194        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9195        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9196      fi
9197      hardcode_libdir_flag_spec='-R$libdir'
9198      hardcode_shlibpath_var=no
9199      case $host_os in
9200      solaris2.[0-5] | solaris2.[0-5].*) ;;
9201      *)
9202        # The compiler driver will combine linker options so we
9203        # cannot just pass the convience library names through
9204        # without $wl, iff we do not link with $LD.
9205        # Luckily, gcc supports the same syntax we need for Sun Studio.
9206        # Supported since Solaris 2.6 (maybe 2.5.1?)
9207        case $wlarc in
9208        '')
9209          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9210        *)
9211          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' ;;
9212        esac ;;
9213      esac
9214      link_all_deplibs=yes
9215      ;;
9216
9217    sunos4*)
9218      if test "x$host_vendor" = xsequent; then
9219        # Use $CC to link under sequent, because it throws in some extra .o
9220        # files that make .init and .fini sections work.
9221        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9222      else
9223        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9224      fi
9225      hardcode_libdir_flag_spec='-L$libdir'
9226      hardcode_direct=yes
9227      hardcode_minus_L=yes
9228      hardcode_shlibpath_var=no
9229      ;;
9230
9231    sysv4)
9232      case $host_vendor in
9233        sni)
9234          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9235          hardcode_direct=yes # is this really true???
9236        ;;
9237        siemens)
9238          ## LD is ld it makes a PLAMLIB
9239          ## CC just makes a GrossModule.
9240          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9241          reload_cmds='$CC -r -o $output$reload_objs'
9242          hardcode_direct=no
9243        ;;
9244        motorola)
9245          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9246          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9247        ;;
9248      esac
9249      runpath_var='LD_RUN_PATH'
9250      hardcode_shlibpath_var=no
9251      ;;
9252
9253    sysv4.3*)
9254      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9255      hardcode_shlibpath_var=no
9256      export_dynamic_flag_spec='-Bexport'
9257      ;;
9258
9259    sysv4*MP*)
9260      if test -d /usr/nec; then
9261        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262        hardcode_shlibpath_var=no
9263        runpath_var=LD_RUN_PATH
9264        hardcode_runpath_var=yes
9265        ld_shlibs=yes
9266      fi
9267      ;;
9268
9269    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9270      no_undefined_flag='${wl}-z,text'
9271      archive_cmds_need_lc=no
9272      hardcode_shlibpath_var=no
9273      runpath_var='LD_RUN_PATH'
9274
9275      if test "$GCC" = yes; then
9276        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9277        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9278      else
9279        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9280        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9281      fi
9282      ;;
9283
9284    sysv5* | sco3.2v5* | sco5v6*)
9285      # Note: We can NOT use -z defs as we might desire, because we do not
9286      # link with -lc, and that would cause any symbols used from libc to
9287      # always be unresolved, which means just about no library would
9288      # ever link correctly.  If we're not using GNU ld we use -z text
9289      # though, which does catch some bad symbols but isn't as heavy-handed
9290      # as -z defs.
9291      no_undefined_flag='${wl}-z,text'
9292      allow_undefined_flag='${wl}-z,nodefs'
9293      archive_cmds_need_lc=no
9294      hardcode_shlibpath_var=no
9295      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9296      hardcode_libdir_separator=':'
9297      link_all_deplibs=yes
9298      export_dynamic_flag_spec='${wl}-Bexport'
9299      runpath_var='LD_RUN_PATH'
9300
9301      if test "$GCC" = yes; then
9302        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9303        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9304      else
9305        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9306        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9307      fi
9308      ;;
9309
9310    uts4*)
9311      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312      hardcode_libdir_flag_spec='-L$libdir'
9313      hardcode_shlibpath_var=no
9314      ;;
9315
9316    *)
9317      ld_shlibs=no
9318      ;;
9319    esac
9320  fi
9321
9322echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9323echo "${ECHO_T}$ld_shlibs" >&6
9324test "$ld_shlibs" = no && can_build_shared=no
9325
9326#
9327# Do we need to explicitly link libc?
9328#
9329case "x$archive_cmds_need_lc" in
9330x|xyes)
9331  # Assume -lc should be added
9332  archive_cmds_need_lc=yes
9333
9334  if test "$enable_shared" = yes && test "$GCC" = yes; then
9335    case $archive_cmds in
9336    *'~'*)
9337      # FIXME: we may have to deal with multi-command sequences.
9338      ;;
9339    '$CC '*)
9340      # Test whether the compiler implicitly links with -lc since on some
9341      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9342      # to ld, don't add -lc before -lgcc.
9343      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9344echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9345      $rm conftest*
9346      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9347
9348      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9349  (eval $ac_compile) 2>&5
9350  ac_status=$?
9351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352  (exit $ac_status); } 2>conftest.err; then
9353        soname=conftest
9354        lib=conftest
9355        libobjs=conftest.$ac_objext
9356        deplibs=
9357        wl=$lt_prog_compiler_wl
9358        pic_flag=$lt_prog_compiler_pic
9359        compiler_flags=-v
9360        linker_flags=-v
9361        verstring=
9362        output_objdir=.
9363        libname=conftest
9364        lt_save_allow_undefined_flag=$allow_undefined_flag
9365        allow_undefined_flag=
9366        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9367  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9368  ac_status=$?
9369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370  (exit $ac_status); }
9371        then
9372          archive_cmds_need_lc=no
9373        else
9374          archive_cmds_need_lc=yes
9375        fi
9376        allow_undefined_flag=$lt_save_allow_undefined_flag
9377      else
9378        cat conftest.err 1>&5
9379      fi
9380      $rm conftest*
9381      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9382echo "${ECHO_T}$archive_cmds_need_lc" >&6
9383      ;;
9384    esac
9385  fi
9386  ;;
9387esac
9388
9389echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9390echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9391library_names_spec=
9392libname_spec='lib$name'
9393soname_spec=
9394shrext_cmds=".so"
9395postinstall_cmds=
9396postuninstall_cmds=
9397finish_cmds=
9398finish_eval=
9399shlibpath_var=
9400shlibpath_overrides_runpath=unknown
9401version_type=none
9402dynamic_linker="$host_os ld.so"
9403sys_lib_dlsearch_path_spec="/lib /usr/lib"
9404if test "$GCC" = yes; then
9405  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9406  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9407    # if the path contains ";" then we assume it to be the separator
9408    # otherwise default to the standard path separator (i.e. ":") - it is
9409    # assumed that no part of a normal pathname contains ";" but that should
9410    # okay in the real world where ";" in dirpaths is itself problematic.
9411    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9412  else
9413    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9414  fi
9415else
9416  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9417fi
9418need_lib_prefix=unknown
9419hardcode_into_libs=no
9420
9421# when you set need_version to no, make sure it does not cause -set_version
9422# flags to be left without arguments
9423need_version=unknown
9424
9425case $host_os in
9426aix3*)
9427  version_type=linux
9428  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9429  shlibpath_var=LIBPATH
9430
9431  # AIX 3 has no versioning support, so we append a major version to the name.
9432  soname_spec='${libname}${release}${shared_ext}$major'
9433  ;;
9434
9435aix4* | aix5*)
9436  version_type=linux
9437  need_lib_prefix=no
9438  need_version=no
9439  hardcode_into_libs=yes
9440  if test "$host_cpu" = ia64; then
9441    # AIX 5 supports IA64
9442    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9443    shlibpath_var=LD_LIBRARY_PATH
9444  else
9445    # With GCC up to 2.95.x, collect2 would create an import file
9446    # for dependence libraries.  The import file would start with
9447    # the line `#! .'.  This would cause the generated library to
9448    # depend on `.', always an invalid library.  This was fixed in
9449    # development snapshots of GCC prior to 3.0.
9450    case $host_os in
9451      aix4 | aix4.[01] | aix4.[01].*)
9452      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9453           echo ' yes '
9454           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9455        :
9456      else
9457        can_build_shared=no
9458      fi
9459      ;;
9460    esac
9461    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9462    # soname into executable. Probably we can add versioning support to
9463    # collect2, so additional links can be useful in future.
9464    if test "$aix_use_runtimelinking" = yes; then
9465      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9466      # instead of lib<name>.a to let people know that these are not
9467      # typical AIX shared libraries.
9468      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9469    else
9470      # We preserve .a as extension for shared libraries through AIX4.2
9471      # and later when we are not doing run time linking.
9472      library_names_spec='${libname}${release}.a $libname.a'
9473      soname_spec='${libname}${release}${shared_ext}$major'
9474    fi
9475    shlibpath_var=LIBPATH
9476  fi
9477  ;;
9478
9479amigaos*)
9480  library_names_spec='$libname.ixlibrary $libname.a'
9481  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9482  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'
9483  ;;
9484
9485beos*)
9486  library_names_spec='${libname}${shared_ext}'
9487  dynamic_linker="$host_os ld.so"
9488  shlibpath_var=LIBRARY_PATH
9489  ;;
9490
9491bsdi[45]*)
9492  version_type=linux
9493  need_version=no
9494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495  soname_spec='${libname}${release}${shared_ext}$major'
9496  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9497  shlibpath_var=LD_LIBRARY_PATH
9498  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9499  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9500  # the default ld.so.conf also contains /usr/contrib/lib and
9501  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9502  # libtool to hard-code these into programs
9503  ;;
9504
9505cygwin* | mingw* | pw32*)
9506  version_type=windows
9507  shrext_cmds=".dll"
9508  need_version=no
9509  need_lib_prefix=no
9510
9511  case $GCC,$host_os in
9512  yes,cygwin* | yes,mingw* | yes,pw32*)
9513    library_names_spec='$libname.dll.a'
9514    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9515    postinstall_cmds='base_file=`basename \${file}`~
9516      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9517      dldir=$destdir/`dirname \$dlpath`~
9518      test -d \$dldir || mkdir -p \$dldir~
9519      $install_prog $dir/$dlname \$dldir/$dlname~
9520      chmod a+x \$dldir/$dlname'
9521    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9522      dlpath=$dir/\$dldll~
9523       $rm \$dlpath'
9524    shlibpath_overrides_runpath=yes
9525
9526    case $host_os in
9527    cygwin*)
9528      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9529      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9530      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9531      ;;
9532    mingw*)
9533      # MinGW DLLs use traditional 'lib' prefix
9534      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9535      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9536      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9537        # It is most probably a Windows format PATH printed by
9538        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9539        # path with ; separators, and with drive letters. We can handle the
9540        # drive letters (cygwin fileutils understands them), so leave them,
9541        # especially as we might pass files found there to a mingw objdump,
9542        # which wouldn't understand a cygwinified path. Ahh.
9543        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9544      else
9545        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9546      fi
9547      ;;
9548    pw32*)
9549      # pw32 DLLs use 'pw' prefix rather than 'lib'
9550      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9551      ;;
9552    esac
9553    ;;
9554
9555  *)
9556    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9557    ;;
9558  esac
9559  dynamic_linker='Win32 ld.exe'
9560  # FIXME: first we should search . and the directory the executable is in
9561  shlibpath_var=PATH
9562  ;;
9563
9564darwin* | rhapsody*)
9565  dynamic_linker="$host_os dyld"
9566  version_type=darwin
9567  need_lib_prefix=no
9568  need_version=no
9569  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9570  soname_spec='${libname}${release}${major}$shared_ext'
9571  shlibpath_overrides_runpath=yes
9572  shlibpath_var=DYLD_LIBRARY_PATH
9573  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9574  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9575  if test "$GCC" = yes; then
9576    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9577  else
9578    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9579  fi
9580  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9581  ;;
9582
9583dgux*)
9584  version_type=linux
9585  need_lib_prefix=no
9586  need_version=no
9587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9588  soname_spec='${libname}${release}${shared_ext}$major'
9589  shlibpath_var=LD_LIBRARY_PATH
9590  ;;
9591
9592freebsd1*)
9593  dynamic_linker=no
9594  ;;
9595
9596kfreebsd*-gnu)
9597  version_type=linux
9598  need_lib_prefix=no
9599  need_version=no
9600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601  soname_spec='${libname}${release}${shared_ext}$major'
9602  shlibpath_var=LD_LIBRARY_PATH
9603  shlibpath_overrides_runpath=no
9604  hardcode_into_libs=yes
9605  dynamic_linker='GNU ld.so'
9606  ;;
9607
9608freebsd* | dragonfly*)
9609  # DragonFly does not have aout.  When/if they implement a new
9610  # versioning mechanism, adjust this.
9611  if test -x /usr/bin/objformat; then
9612    objformat=`/usr/bin/objformat`
9613  else
9614    case $host_os in
9615    freebsd[123]*) objformat=aout ;;
9616    *) objformat=elf ;;
9617    esac
9618  fi
9619  version_type=freebsd-$objformat
9620  case $version_type in
9621    freebsd-elf*)
9622      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9623      need_version=no
9624      need_lib_prefix=no
9625      ;;
9626    freebsd-*)
9627      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9628      need_version=yes
9629      ;;
9630  esac
9631  shlibpath_var=LD_LIBRARY_PATH
9632  case $host_os in
9633  freebsd2*)
9634    shlibpath_overrides_runpath=yes
9635    ;;
9636  freebsd3.[01]* | freebsdelf3.[01]*)
9637    shlibpath_overrides_runpath=yes
9638    hardcode_into_libs=yes
9639    ;;
9640  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9641  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9642    shlibpath_overrides_runpath=no
9643    hardcode_into_libs=yes
9644    ;;
9645  freebsd*) # from 4.6 on
9646    shlibpath_overrides_runpath=yes
9647    hardcode_into_libs=yes
9648    ;;
9649  esac
9650  ;;
9651
9652gnu*)
9653  version_type=linux
9654  need_lib_prefix=no
9655  need_version=no
9656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9657  soname_spec='${libname}${release}${shared_ext}$major'
9658  shlibpath_var=LD_LIBRARY_PATH
9659  hardcode_into_libs=yes
9660  ;;
9661
9662hpux9* | hpux10* | hpux11*)
9663  # Give a soname corresponding to the major version so that dld.sl refuses to
9664  # link against other versions.
9665  version_type=sunos
9666  need_lib_prefix=no
9667  need_version=no
9668  case $host_cpu in
9669  ia64*)
9670    shrext_cmds='.so'
9671    hardcode_into_libs=yes
9672    dynamic_linker="$host_os dld.so"
9673    shlibpath_var=LD_LIBRARY_PATH
9674    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9675    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676    soname_spec='${libname}${release}${shared_ext}$major'
9677    if test "X$HPUX_IA64_MODE" = X32; then
9678      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9679    else
9680      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9681    fi
9682    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9683    ;;
9684   hppa*64*)
9685     shrext_cmds='.sl'
9686     hardcode_into_libs=yes
9687     dynamic_linker="$host_os dld.sl"
9688     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9689     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691     soname_spec='${libname}${release}${shared_ext}$major'
9692     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9693     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9694     ;;
9695   *)
9696    shrext_cmds='.sl'
9697    dynamic_linker="$host_os dld.sl"
9698    shlibpath_var=SHLIB_PATH
9699    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9700    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9701    soname_spec='${libname}${release}${shared_ext}$major'
9702    ;;
9703  esac
9704  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9705  postinstall_cmds='chmod 555 $lib'
9706  ;;
9707
9708interix3*)
9709  version_type=linux
9710  need_lib_prefix=no
9711  need_version=no
9712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9713  soname_spec='${libname}${release}${shared_ext}$major'
9714  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9715  shlibpath_var=LD_LIBRARY_PATH
9716  shlibpath_overrides_runpath=no
9717  hardcode_into_libs=yes
9718  ;;
9719
9720irix5* | irix6* | nonstopux*)
9721  case $host_os in
9722    nonstopux*) version_type=nonstopux ;;
9723    *)
9724        if test "$lt_cv_prog_gnu_ld" = yes; then
9725                version_type=linux
9726        else
9727                version_type=irix
9728        fi ;;
9729  esac
9730  need_lib_prefix=no
9731  need_version=no
9732  soname_spec='${libname}${release}${shared_ext}$major'
9733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9734  case $host_os in
9735  irix5* | nonstopux*)
9736    libsuff= shlibsuff=
9737    ;;
9738  *)
9739    case $LD in # libtool.m4 will add one of these switches to LD
9740    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9741      libsuff= shlibsuff= libmagic=32-bit;;
9742    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9743      libsuff=32 shlibsuff=N32 libmagic=N32;;
9744    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9745      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9746    *) libsuff= shlibsuff= libmagic=never-match;;
9747    esac
9748    ;;
9749  esac
9750  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9751  shlibpath_overrides_runpath=no
9752  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9753  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9754  hardcode_into_libs=yes
9755  ;;
9756
9757# No shared lib support for Linux oldld, aout, or coff.
9758linux*oldld* | linux*aout* | linux*coff*)
9759  dynamic_linker=no
9760  ;;
9761
9762# This must be Linux ELF.
9763linux*)
9764  version_type=linux
9765  need_lib_prefix=no
9766  need_version=no
9767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9768  soname_spec='${libname}${release}${shared_ext}$major'
9769  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9770  shlibpath_var=LD_LIBRARY_PATH
9771  shlibpath_overrides_runpath=no
9772  # This implies no fast_install, which is unacceptable.
9773  # Some rework will be needed to allow for fast_install
9774  # before this can be enabled.
9775  hardcode_into_libs=yes
9776
9777  # Append ld.so.conf contents to the search path
9778  if test -f /etc/ld.so.conf; then
9779    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9780    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9781  fi
9782
9783  # We used to test for /lib/ld.so.1 and disable shared libraries on
9784  # powerpc, because MkLinux only supported shared libraries with the
9785  # GNU dynamic linker.  Since this was broken with cross compilers,
9786  # most powerpc-linux boxes support dynamic linking these days and
9787  # people can always --disable-shared, the test was removed, and we
9788  # assume the GNU/Linux dynamic linker is in use.
9789  dynamic_linker='GNU/Linux ld.so'
9790  ;;
9791
9792knetbsd*-gnu)
9793  version_type=linux
9794  need_lib_prefix=no
9795  need_version=no
9796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9797  soname_spec='${libname}${release}${shared_ext}$major'
9798  shlibpath_var=LD_LIBRARY_PATH
9799  shlibpath_overrides_runpath=no
9800  hardcode_into_libs=yes
9801  dynamic_linker='GNU ld.so'
9802  ;;
9803
9804netbsd*)
9805  version_type=sunos
9806  need_lib_prefix=no
9807  need_version=no
9808  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9809    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9810    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9811    dynamic_linker='NetBSD (a.out) ld.so'
9812  else
9813    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9814    soname_spec='${libname}${release}${shared_ext}$major'
9815    dynamic_linker='NetBSD ld.elf_so'
9816  fi
9817  shlibpath_var=LD_LIBRARY_PATH
9818  shlibpath_overrides_runpath=yes
9819  hardcode_into_libs=yes
9820  ;;
9821
9822newsos6)
9823  version_type=linux
9824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825  shlibpath_var=LD_LIBRARY_PATH
9826  shlibpath_overrides_runpath=yes
9827  ;;
9828
9829nto-qnx*)
9830  version_type=linux
9831  need_lib_prefix=no
9832  need_version=no
9833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834  soname_spec='${libname}${release}${shared_ext}$major'
9835  shlibpath_var=LD_LIBRARY_PATH
9836  shlibpath_overrides_runpath=yes
9837  ;;
9838
9839openbsd*)
9840  version_type=sunos
9841  sys_lib_dlsearch_path_spec="/usr/lib"
9842  need_lib_prefix=no
9843  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9844  case $host_os in
9845    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9846    *)                         need_version=no  ;;
9847  esac
9848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9849  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9850  shlibpath_var=LD_LIBRARY_PATH
9851  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9852    case $host_os in
9853      openbsd2.[89] | openbsd2.[89].*)
9854        shlibpath_overrides_runpath=no
9855        ;;
9856      *)
9857        shlibpath_overrides_runpath=yes
9858        ;;
9859      esac
9860  else
9861    shlibpath_overrides_runpath=yes
9862  fi
9863  ;;
9864
9865os2*)
9866  libname_spec='$name'
9867  shrext_cmds=".dll"
9868  need_lib_prefix=no
9869  library_names_spec='$libname${shared_ext} $libname.a'
9870  dynamic_linker='OS/2 ld.exe'
9871  shlibpath_var=LIBPATH
9872  ;;
9873
9874osf3* | osf4* | osf5*)
9875  version_type=osf
9876  need_lib_prefix=no
9877  need_version=no
9878  soname_spec='${libname}${release}${shared_ext}$major'
9879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880  shlibpath_var=LD_LIBRARY_PATH
9881  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9882  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9883  ;;
9884
9885solaris*)
9886  version_type=linux
9887  need_lib_prefix=no
9888  need_version=no
9889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890  soname_spec='${libname}${release}${shared_ext}$major'
9891  shlibpath_var=LD_LIBRARY_PATH
9892  shlibpath_overrides_runpath=yes
9893  hardcode_into_libs=yes
9894  # ldd complains unless libraries are executable
9895  postinstall_cmds='chmod +x $lib'
9896  ;;
9897
9898sunos4*)
9899  version_type=sunos
9900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9901  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9902  shlibpath_var=LD_LIBRARY_PATH
9903  shlibpath_overrides_runpath=yes
9904  if test "$with_gnu_ld" = yes; then
9905    need_lib_prefix=no
9906  fi
9907  need_version=yes
9908  ;;
9909
9910sysv4 | sysv4.3*)
9911  version_type=linux
9912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913  soname_spec='${libname}${release}${shared_ext}$major'
9914  shlibpath_var=LD_LIBRARY_PATH
9915  case $host_vendor in
9916    sni)
9917      shlibpath_overrides_runpath=no
9918      need_lib_prefix=no
9919      export_dynamic_flag_spec='${wl}-Blargedynsym'
9920      runpath_var=LD_RUN_PATH
9921      ;;
9922    siemens)
9923      need_lib_prefix=no
9924      ;;
9925    motorola)
9926      need_lib_prefix=no
9927      need_version=no
9928      shlibpath_overrides_runpath=no
9929      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9930      ;;
9931  esac
9932  ;;
9933
9934sysv4*MP*)
9935  if test -d /usr/nec ;then
9936    version_type=linux
9937    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9938    soname_spec='$libname${shared_ext}.$major'
9939    shlibpath_var=LD_LIBRARY_PATH
9940  fi
9941  ;;
9942
9943sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9944  version_type=freebsd-elf
9945  need_lib_prefix=no
9946  need_version=no
9947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9948  soname_spec='${libname}${release}${shared_ext}$major'
9949  shlibpath_var=LD_LIBRARY_PATH
9950  hardcode_into_libs=yes
9951  if test "$with_gnu_ld" = yes; then
9952    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9953    shlibpath_overrides_runpath=no
9954  else
9955    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9956    shlibpath_overrides_runpath=yes
9957    case $host_os in
9958      sco3.2v5*)
9959        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9960        ;;
9961    esac
9962  fi
9963  sys_lib_dlsearch_path_spec='/usr/lib'
9964  ;;
9965
9966uts4*)
9967  version_type=linux
9968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969  soname_spec='${libname}${release}${shared_ext}$major'
9970  shlibpath_var=LD_LIBRARY_PATH
9971  ;;
9972
9973*)
9974  dynamic_linker=no
9975  ;;
9976esac
9977echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9978echo "${ECHO_T}$dynamic_linker" >&6
9979test "$dynamic_linker" = no && can_build_shared=no
9980
9981variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9982if test "$GCC" = yes; then
9983  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9984fi
9985
9986echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9987echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9988hardcode_action=
9989if test -n "$hardcode_libdir_flag_spec" || \
9990   test -n "$runpath_var" || \
9991   test "X$hardcode_automatic" = "Xyes" ; then
9992
9993  # We can hardcode non-existant directories.
9994  if test "$hardcode_direct" != no &&
9995     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9996     # have to relink, otherwise we might link with an installed library
9997     # when we should be linking with a yet-to-be-installed one
9998     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9999     test "$hardcode_minus_L" != no; then
10000    # Linking always hardcodes the temporary library directory.
10001    hardcode_action=relink
10002  else
10003    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10004    hardcode_action=immediate
10005  fi
10006else
10007  # We cannot hardcode anything, or else we can only hardcode existing
10008  # directories.
10009  hardcode_action=unsupported
10010fi
10011echo "$as_me:$LINENO: result: $hardcode_action" >&5
10012echo "${ECHO_T}$hardcode_action" >&6
10013
10014if test "$hardcode_action" = relink; then
10015  # Fast installation is not supported
10016  enable_fast_install=no
10017elif test "$shlibpath_overrides_runpath" = yes ||
10018     test "$enable_shared" = no; then
10019  # Fast installation is not necessary
10020  enable_fast_install=needless
10021fi
10022
10023striplib=
10024old_striplib=
10025echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10026echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10027if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10028  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10029  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10030  echo "$as_me:$LINENO: result: yes" >&5
10031echo "${ECHO_T}yes" >&6
10032else
10033# FIXME - insert some real tests, host_os isn't really good enough
10034  case $host_os in
10035   darwin*)
10036       if test -n "$STRIP" ; then
10037         striplib="$STRIP -x"
10038         echo "$as_me:$LINENO: result: yes" >&5
10039echo "${ECHO_T}yes" >&6
10040       else
10041  echo "$as_me:$LINENO: result: no" >&5
10042echo "${ECHO_T}no" >&6
10043fi
10044       ;;
10045   *)
10046  echo "$as_me:$LINENO: result: no" >&5
10047echo "${ECHO_T}no" >&6
10048    ;;
10049  esac
10050fi
10051
10052if test "x$enable_dlopen" != xyes; then
10053  enable_dlopen=unknown
10054  enable_dlopen_self=unknown
10055  enable_dlopen_self_static=unknown
10056else
10057  lt_cv_dlopen=no
10058  lt_cv_dlopen_libs=
10059
10060  case $host_os in
10061  beos*)
10062    lt_cv_dlopen="load_add_on"
10063    lt_cv_dlopen_libs=
10064    lt_cv_dlopen_self=yes
10065    ;;
10066
10067  mingw* | pw32*)
10068    lt_cv_dlopen="LoadLibrary"
10069    lt_cv_dlopen_libs=
10070   ;;
10071
10072  cygwin*)
10073    lt_cv_dlopen="dlopen"
10074    lt_cv_dlopen_libs=
10075   ;;
10076
10077  darwin*)
10078  # if libdl is installed we need to link against it
10079    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10080echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10081if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10082  echo $ECHO_N "(cached) $ECHO_C" >&6
10083else
10084  ac_check_lib_save_LIBS=$LIBS
10085LIBS="-ldl  $LIBS"
10086cat >conftest.$ac_ext <<_ACEOF
10087/* confdefs.h.  */
10088_ACEOF
10089cat confdefs.h >>conftest.$ac_ext
10090cat >>conftest.$ac_ext <<_ACEOF
10091/* end confdefs.h.  */
10092
10093/* Override any gcc2 internal prototype to avoid an error.  */
10094#ifdef __cplusplus
10095extern "C"
10096#endif
10097/* We use char because int might match the return type of a gcc2
10098   builtin and then its argument prototype would still apply.  */
10099char dlopen ();
10100int
10101main ()
10102{
10103dlopen ();
10104  ;
10105  return 0;
10106}
10107_ACEOF
10108rm -f conftest.$ac_objext conftest$ac_exeext
10109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110  (eval $ac_link) 2>conftest.er1
10111  ac_status=$?
10112  grep -v '^ *+' conftest.er1 >conftest.err
10113  rm -f conftest.er1
10114  cat conftest.err >&5
10115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116  (exit $ac_status); } &&
10117         { ac_try='test -z "$ac_c_werror_flag"
10118                         || test ! -s conftest.err'
10119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120  (eval $ac_try) 2>&5
10121  ac_status=$?
10122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123  (exit $ac_status); }; } &&
10124         { ac_try='test -s conftest$ac_exeext'
10125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126  (eval $ac_try) 2>&5
10127  ac_status=$?
10128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129  (exit $ac_status); }; }; then
10130  ac_cv_lib_dl_dlopen=yes
10131else
10132  echo "$as_me: failed program was:" >&5
10133sed 's/^/| /' conftest.$ac_ext >&5
10134
10135ac_cv_lib_dl_dlopen=no
10136fi
10137rm -f conftest.err conftest.$ac_objext \
10138      conftest$ac_exeext conftest.$ac_ext
10139LIBS=$ac_check_lib_save_LIBS
10140fi
10141echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10142echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10143if test $ac_cv_lib_dl_dlopen = yes; then
10144  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10145else
10146
10147    lt_cv_dlopen="dyld"
10148    lt_cv_dlopen_libs=
10149    lt_cv_dlopen_self=yes
10150
10151fi
10152
10153   ;;
10154
10155  *)
10156    echo "$as_me:$LINENO: checking for shl_load" >&5
10157echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10158if test "${ac_cv_func_shl_load+set}" = set; then
10159  echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161  cat >conftest.$ac_ext <<_ACEOF
10162/* confdefs.h.  */
10163_ACEOF
10164cat confdefs.h >>conftest.$ac_ext
10165cat >>conftest.$ac_ext <<_ACEOF
10166/* end confdefs.h.  */
10167/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10168   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10169#define shl_load innocuous_shl_load
10170
10171/* System header to define __stub macros and hopefully few prototypes,
10172    which can conflict with char shl_load (); below.
10173    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10174    <limits.h> exists even on freestanding compilers.  */
10175
10176#ifdef __STDC__
10177# include <limits.h>
10178#else
10179# include <assert.h>
10180#endif
10181
10182#undef shl_load
10183
10184/* Override any gcc2 internal prototype to avoid an error.  */
10185#ifdef __cplusplus
10186extern "C"
10187{
10188#endif
10189/* We use char because int might match the return type of a gcc2
10190   builtin and then its argument prototype would still apply.  */
10191char shl_load ();
10192/* The GNU C library defines this for functions which it implements
10193    to always fail with ENOSYS.  Some functions are actually named
10194    something starting with __ and the normal name is an alias.  */
10195#if defined (__stub_shl_load) || defined (__stub___shl_load)
10196choke me
10197#else
10198char (*f) () = shl_load;
10199#endif
10200#ifdef __cplusplus
10201}
10202#endif
10203
10204int
10205main ()
10206{
10207return f != shl_load;
10208  ;
10209  return 0;
10210}
10211_ACEOF
10212rm -f conftest.$ac_objext conftest$ac_exeext
10213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214  (eval $ac_link) 2>conftest.er1
10215  ac_status=$?
10216  grep -v '^ *+' conftest.er1 >conftest.err
10217  rm -f conftest.er1
10218  cat conftest.err >&5
10219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220  (exit $ac_status); } &&
10221         { ac_try='test -z "$ac_c_werror_flag"
10222                         || test ! -s conftest.err'
10223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224  (eval $ac_try) 2>&5
10225  ac_status=$?
10226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227  (exit $ac_status); }; } &&
10228         { ac_try='test -s conftest$ac_exeext'
10229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230  (eval $ac_try) 2>&5
10231  ac_status=$?
10232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233  (exit $ac_status); }; }; then
10234  ac_cv_func_shl_load=yes
10235else
10236  echo "$as_me: failed program was:" >&5
10237sed 's/^/| /' conftest.$ac_ext >&5
10238
10239ac_cv_func_shl_load=no
10240fi
10241rm -f conftest.err conftest.$ac_objext \
10242      conftest$ac_exeext conftest.$ac_ext
10243fi
10244echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10245echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10246if test $ac_cv_func_shl_load = yes; then
10247  lt_cv_dlopen="shl_load"
10248else
10249  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10250echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10251if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10252  echo $ECHO_N "(cached) $ECHO_C" >&6
10253else
10254  ac_check_lib_save_LIBS=$LIBS
10255LIBS="-ldld  $LIBS"
10256cat >conftest.$ac_ext <<_ACEOF
10257/* confdefs.h.  */
10258_ACEOF
10259cat confdefs.h >>conftest.$ac_ext
10260cat >>conftest.$ac_ext <<_ACEOF
10261/* end confdefs.h.  */
10262
10263/* Override any gcc2 internal prototype to avoid an error.  */
10264#ifdef __cplusplus
10265extern "C"
10266#endif
10267/* We use char because int might match the return type of a gcc2
10268   builtin and then its argument prototype would still apply.  */
10269char shl_load ();
10270int
10271main ()
10272{
10273shl_load ();
10274  ;
10275  return 0;
10276}
10277_ACEOF
10278rm -f conftest.$ac_objext conftest$ac_exeext
10279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10280  (eval $ac_link) 2>conftest.er1
10281  ac_status=$?
10282  grep -v '^ *+' conftest.er1 >conftest.err
10283  rm -f conftest.er1
10284  cat conftest.err >&5
10285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286  (exit $ac_status); } &&
10287         { ac_try='test -z "$ac_c_werror_flag"
10288                         || test ! -s conftest.err'
10289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10290  (eval $ac_try) 2>&5
10291  ac_status=$?
10292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293  (exit $ac_status); }; } &&
10294         { ac_try='test -s conftest$ac_exeext'
10295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296  (eval $ac_try) 2>&5
10297  ac_status=$?
10298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299  (exit $ac_status); }; }; then
10300  ac_cv_lib_dld_shl_load=yes
10301else
10302  echo "$as_me: failed program was:" >&5
10303sed 's/^/| /' conftest.$ac_ext >&5
10304
10305ac_cv_lib_dld_shl_load=no
10306fi
10307rm -f conftest.err conftest.$ac_objext \
10308      conftest$ac_exeext conftest.$ac_ext
10309LIBS=$ac_check_lib_save_LIBS
10310fi
10311echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10312echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10313if test $ac_cv_lib_dld_shl_load = yes; then
10314  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10315else
10316  echo "$as_me:$LINENO: checking for dlopen" >&5
10317echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10318if test "${ac_cv_func_dlopen+set}" = set; then
10319  echo $ECHO_N "(cached) $ECHO_C" >&6
10320else
10321  cat >conftest.$ac_ext <<_ACEOF
10322/* confdefs.h.  */
10323_ACEOF
10324cat confdefs.h >>conftest.$ac_ext
10325cat >>conftest.$ac_ext <<_ACEOF
10326/* end confdefs.h.  */
10327/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10328   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10329#define dlopen innocuous_dlopen
10330
10331/* System header to define __stub macros and hopefully few prototypes,
10332    which can conflict with char dlopen (); below.
10333    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10334    <limits.h> exists even on freestanding compilers.  */
10335
10336#ifdef __STDC__
10337# include <limits.h>
10338#else
10339# include <assert.h>
10340#endif
10341
10342#undef dlopen
10343
10344/* Override any gcc2 internal prototype to avoid an error.  */
10345#ifdef __cplusplus
10346extern "C"
10347{
10348#endif
10349/* We use char because int might match the return type of a gcc2
10350   builtin and then its argument prototype would still apply.  */
10351char dlopen ();
10352/* The GNU C library defines this for functions which it implements
10353    to always fail with ENOSYS.  Some functions are actually named
10354    something starting with __ and the normal name is an alias.  */
10355#if defined (__stub_dlopen) || defined (__stub___dlopen)
10356choke me
10357#else
10358char (*f) () = dlopen;
10359#endif
10360#ifdef __cplusplus
10361}
10362#endif
10363
10364int
10365main ()
10366{
10367return f != dlopen;
10368  ;
10369  return 0;
10370}
10371_ACEOF
10372rm -f conftest.$ac_objext conftest$ac_exeext
10373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374  (eval $ac_link) 2>conftest.er1
10375  ac_status=$?
10376  grep -v '^ *+' conftest.er1 >conftest.err
10377  rm -f conftest.er1
10378  cat conftest.err >&5
10379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380  (exit $ac_status); } &&
10381         { ac_try='test -z "$ac_c_werror_flag"
10382                         || test ! -s conftest.err'
10383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384  (eval $ac_try) 2>&5
10385  ac_status=$?
10386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387  (exit $ac_status); }; } &&
10388         { ac_try='test -s conftest$ac_exeext'
10389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390  (eval $ac_try) 2>&5
10391  ac_status=$?
10392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393  (exit $ac_status); }; }; then
10394  ac_cv_func_dlopen=yes
10395else
10396  echo "$as_me: failed program was:" >&5
10397sed 's/^/| /' conftest.$ac_ext >&5
10398
10399ac_cv_func_dlopen=no
10400fi
10401rm -f conftest.err conftest.$ac_objext \
10402      conftest$ac_exeext conftest.$ac_ext
10403fi
10404echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10405echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10406if test $ac_cv_func_dlopen = yes; then
10407  lt_cv_dlopen="dlopen"
10408else
10409  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10410echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10411if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10412  echo $ECHO_N "(cached) $ECHO_C" >&6
10413else
10414  ac_check_lib_save_LIBS=$LIBS
10415LIBS="-ldl  $LIBS"
10416cat >conftest.$ac_ext <<_ACEOF
10417/* confdefs.h.  */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h.  */
10422
10423/* Override any gcc2 internal prototype to avoid an error.  */
10424#ifdef __cplusplus
10425extern "C"
10426#endif
10427/* We use char because int might match the return type of a gcc2
10428   builtin and then its argument prototype would still apply.  */
10429char dlopen ();
10430int
10431main ()
10432{
10433dlopen ();
10434  ;
10435  return 0;
10436}
10437_ACEOF
10438rm -f conftest.$ac_objext conftest$ac_exeext
10439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440  (eval $ac_link) 2>conftest.er1
10441  ac_status=$?
10442  grep -v '^ *+' conftest.er1 >conftest.err
10443  rm -f conftest.er1
10444  cat conftest.err >&5
10445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446  (exit $ac_status); } &&
10447         { ac_try='test -z "$ac_c_werror_flag"
10448                         || test ! -s conftest.err'
10449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450  (eval $ac_try) 2>&5
10451  ac_status=$?
10452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453  (exit $ac_status); }; } &&
10454         { ac_try='test -s conftest$ac_exeext'
10455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456  (eval $ac_try) 2>&5
10457  ac_status=$?
10458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459  (exit $ac_status); }; }; then
10460  ac_cv_lib_dl_dlopen=yes
10461else
10462  echo "$as_me: failed program was:" >&5
10463sed 's/^/| /' conftest.$ac_ext >&5
10464
10465ac_cv_lib_dl_dlopen=no
10466fi
10467rm -f conftest.err conftest.$ac_objext \
10468      conftest$ac_exeext conftest.$ac_ext
10469LIBS=$ac_check_lib_save_LIBS
10470fi
10471echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10472echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10473if test $ac_cv_lib_dl_dlopen = yes; then
10474  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10475else
10476  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10477echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10478if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10479  echo $ECHO_N "(cached) $ECHO_C" >&6
10480else
10481  ac_check_lib_save_LIBS=$LIBS
10482LIBS="-lsvld  $LIBS"
10483cat >conftest.$ac_ext <<_ACEOF
10484/* confdefs.h.  */
10485_ACEOF
10486cat confdefs.h >>conftest.$ac_ext
10487cat >>conftest.$ac_ext <<_ACEOF
10488/* end confdefs.h.  */
10489
10490/* Override any gcc2 internal prototype to avoid an error.  */
10491#ifdef __cplusplus
10492extern "C"
10493#endif
10494/* We use char because int might match the return type of a gcc2
10495   builtin and then its argument prototype would still apply.  */
10496char dlopen ();
10497int
10498main ()
10499{
10500dlopen ();
10501  ;
10502  return 0;
10503}
10504_ACEOF
10505rm -f conftest.$ac_objext conftest$ac_exeext
10506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10507  (eval $ac_link) 2>conftest.er1
10508  ac_status=$?
10509  grep -v '^ *+' conftest.er1 >conftest.err
10510  rm -f conftest.er1
10511  cat conftest.err >&5
10512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513  (exit $ac_status); } &&
10514         { ac_try='test -z "$ac_c_werror_flag"
10515                         || test ! -s conftest.err'
10516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517  (eval $ac_try) 2>&5
10518  ac_status=$?
10519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520  (exit $ac_status); }; } &&
10521         { ac_try='test -s conftest$ac_exeext'
10522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523  (eval $ac_try) 2>&5
10524  ac_status=$?
10525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526  (exit $ac_status); }; }; then
10527  ac_cv_lib_svld_dlopen=yes
10528else
10529  echo "$as_me: failed program was:" >&5
10530sed 's/^/| /' conftest.$ac_ext >&5
10531
10532ac_cv_lib_svld_dlopen=no
10533fi
10534rm -f conftest.err conftest.$ac_objext \
10535      conftest$ac_exeext conftest.$ac_ext
10536LIBS=$ac_check_lib_save_LIBS
10537fi
10538echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10539echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10540if test $ac_cv_lib_svld_dlopen = yes; then
10541  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10542else
10543  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10544echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10545if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10546  echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548  ac_check_lib_save_LIBS=$LIBS
10549LIBS="-ldld  $LIBS"
10550cat >conftest.$ac_ext <<_ACEOF
10551/* confdefs.h.  */
10552_ACEOF
10553cat confdefs.h >>conftest.$ac_ext
10554cat >>conftest.$ac_ext <<_ACEOF
10555/* end confdefs.h.  */
10556
10557/* Override any gcc2 internal prototype to avoid an error.  */
10558#ifdef __cplusplus
10559extern "C"
10560#endif
10561/* We use char because int might match the return type of a gcc2
10562   builtin and then its argument prototype would still apply.  */
10563char dld_link ();
10564int
10565main ()
10566{
10567dld_link ();
10568  ;
10569  return 0;
10570}
10571_ACEOF
10572rm -f conftest.$ac_objext conftest$ac_exeext
10573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10574  (eval $ac_link) 2>conftest.er1
10575  ac_status=$?
10576  grep -v '^ *+' conftest.er1 >conftest.err
10577  rm -f conftest.er1
10578  cat conftest.err >&5
10579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580  (exit $ac_status); } &&
10581         { ac_try='test -z "$ac_c_werror_flag"
10582                         || test ! -s conftest.err'
10583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584  (eval $ac_try) 2>&5
10585  ac_status=$?
10586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587  (exit $ac_status); }; } &&
10588         { ac_try='test -s conftest$ac_exeext'
10589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590  (eval $ac_try) 2>&5
10591  ac_status=$?
10592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593  (exit $ac_status); }; }; then
10594  ac_cv_lib_dld_dld_link=yes
10595else
10596  echo "$as_me: failed program was:" >&5
10597sed 's/^/| /' conftest.$ac_ext >&5
10598
10599ac_cv_lib_dld_dld_link=no
10600fi
10601rm -f conftest.err conftest.$ac_objext \
10602      conftest$ac_exeext conftest.$ac_ext
10603LIBS=$ac_check_lib_save_LIBS
10604fi
10605echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10606echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10607if test $ac_cv_lib_dld_dld_link = yes; then
10608  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10609fi
10610
10611
10612fi
10613
10614
10615fi
10616
10617
10618fi
10619
10620
10621fi
10622
10623
10624fi
10625
10626    ;;
10627  esac
10628
10629  if test "x$lt_cv_dlopen" != xno; then
10630    enable_dlopen=yes
10631  else
10632    enable_dlopen=no
10633  fi
10634
10635  case $lt_cv_dlopen in
10636  dlopen)
10637    save_CPPFLAGS="$CPPFLAGS"
10638    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10639
10640    save_LDFLAGS="$LDFLAGS"
10641    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10642
10643    save_LIBS="$LIBS"
10644    LIBS="$lt_cv_dlopen_libs $LIBS"
10645
10646    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10647echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10648if test "${lt_cv_dlopen_self+set}" = set; then
10649  echo $ECHO_N "(cached) $ECHO_C" >&6
10650else
10651          if test "$cross_compiling" = yes; then :
10652  lt_cv_dlopen_self=cross
10653else
10654  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10655  lt_status=$lt_dlunknown
10656  cat > conftest.$ac_ext <<EOF
10657#line 10657 "configure"
10658#include "confdefs.h"
10659
10660#if HAVE_DLFCN_H
10661#include <dlfcn.h>
10662#endif
10663
10664#include <stdio.h>
10665
10666#ifdef RTLD_GLOBAL
10667#  define LT_DLGLOBAL           RTLD_GLOBAL
10668#else
10669#  ifdef DL_GLOBAL
10670#    define LT_DLGLOBAL         DL_GLOBAL
10671#  else
10672#    define LT_DLGLOBAL         0
10673#  endif
10674#endif
10675
10676/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10677   find out it does not work in some platform. */
10678#ifndef LT_DLLAZY_OR_NOW
10679#  ifdef RTLD_LAZY
10680#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10681#  else
10682#    ifdef DL_LAZY
10683#      define LT_DLLAZY_OR_NOW          DL_LAZY
10684#    else
10685#      ifdef RTLD_NOW
10686#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10687#      else
10688#        ifdef DL_NOW
10689#          define LT_DLLAZY_OR_NOW      DL_NOW
10690#        else
10691#          define LT_DLLAZY_OR_NOW      0
10692#        endif
10693#      endif
10694#    endif
10695#  endif
10696#endif
10697
10698#ifdef __cplusplus
10699extern "C" void exit (int);
10700#endif
10701
10702void fnord() { int i=42;}
10703int main ()
10704{
10705  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10706  int status = $lt_dlunknown;
10707
10708  if (self)
10709    {
10710      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10711      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10712      /* dlclose (self); */
10713    }
10714  else
10715    puts (dlerror ());
10716
10717    exit (status);
10718}
10719EOF
10720  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10721  (eval $ac_link) 2>&5
10722  ac_status=$?
10723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10725    (./conftest; exit; ) >&5 2>/dev/null
10726    lt_status=$?
10727    case x$lt_status in
10728      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10729      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10730      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10731    esac
10732  else :
10733    # compilation failed
10734    lt_cv_dlopen_self=no
10735  fi
10736fi
10737rm -fr conftest*
10738
10739
10740fi
10741echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10742echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10743
10744    if test "x$lt_cv_dlopen_self" = xyes; then
10745      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10746      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10747echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10748if test "${lt_cv_dlopen_self_static+set}" = set; then
10749  echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751          if test "$cross_compiling" = yes; then :
10752  lt_cv_dlopen_self_static=cross
10753else
10754  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10755  lt_status=$lt_dlunknown
10756  cat > conftest.$ac_ext <<EOF
10757#line 10757 "configure"
10758#include "confdefs.h"
10759
10760#if HAVE_DLFCN_H