source: trunk/Bonmin/configure @ 13

Last change on this file since 13 was 13, checked in by andreasw, 13 years ago

copy (instead of ln -s) input files for unit test for VPATH configuration

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