source: trunk/Bonmin/configure @ 2174

Last change on this file since 2174 was 2174, checked in by stefan, 3 years ago

rerun autotools

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