source: stable/1.8/Bonmin/configure @ 2254

Last change on this file since 2254 was 2254, checked in by stefan, 17 months ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 880.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 1.8.8.
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='1.8.8'
433PACKAGE_STRING='Bonmin 1.8.8'
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 dos2unix 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 1.8.8 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 1.8.8:";;
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 1.8.8
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 1.8.8, 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 coin_libversion=12:8:8
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='1.8.8'
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  elif test -r $srcdir/../BuildTools/coin.m4; then
5234    BUILDTOOLSDIR=$srcdir/../BuildTools
5235  elif test -r $srcdir/../../BuildTools/coin.m4; then
5236    BUILDTOOLSDIR=$srcdir/../../BuildTools
5237  elif 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
5245
5246  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5247  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5248    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5249  fi
5250
5251  # The following variable is set to the name of the directory where
5252  # the autotool scripts are located
5253
5254  AUX_DIR=$ac_aux_dir
5255fi
5256
5257# helpful variable for the base directory of this package
5258abs_source_dir=`cd $srcdir; pwd`
5259
5260
5261# Stuff for example Makefiles
5262if test x$prefix = xNONE; then
5263  full_prefix=$ac_default_prefix
5264else
5265  full_prefix=$prefix
5266fi
5267
5268
5269abs_lib_dir=$full_prefix/lib
5270
5271abs_include_dir=$full_prefix/include
5272
5273abs_bin_dir=$full_prefix/bin
5274
5275
5276
5277if test $coin_have_externals = yes && test x$have_svn = xyes; then
5278  HAVE_EXTERNALS_TRUE=
5279  HAVE_EXTERNALS_FALSE='#'
5280else
5281  HAVE_EXTERNALS_TRUE='#'
5282  HAVE_EXTERNALS_FALSE=
5283fi
5284
5285
5286# AC_MSG_NOTICE([End automake initialisation.])
5287
5288
5289
5290LIBTOOL=
5291if test -f ../libtool; then
5292  coin_config_dir=..
5293  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5294fi
5295if test "x$LIBTOOL" = x; then
5296  if test -f ../../libtool; then
5297    coin_config_dir=../..
5298    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5299  fi
5300fi
5301
5302if test "x$LIBTOOL" = x; then
5303# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5304  # Stuff for libtool
5305  # Check whether --enable-shared or --disable-shared was given.
5306if test "${enable_shared+set}" = set; then
5307  enableval="$enable_shared"
5308  p=${PACKAGE-default}
5309    case $enableval in
5310    yes) enable_shared=yes ;;
5311    no) enable_shared=no ;;
5312    *)
5313      enable_shared=no
5314      # Look at the argument we got.  We use all the common list separators.
5315      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5316      for pkg in $enableval; do
5317        IFS="$lt_save_ifs"
5318        if test "X$pkg" = "X$p"; then
5319          enable_shared=yes
5320        fi
5321      done
5322      IFS="$lt_save_ifs"
5323      ;;
5324    esac
5325else
5326  enable_shared=yes
5327fi;
5328
5329# Check whether --enable-fast-install or --disable-fast-install was given.
5330if test "${enable_fast_install+set}" = set; then
5331  enableval="$enable_fast_install"
5332  p=${PACKAGE-default}
5333    case $enableval in
5334    yes) enable_fast_install=yes ;;
5335    no) enable_fast_install=no ;;
5336    *)
5337      enable_fast_install=no
5338      # Look at the argument we got.  We use all the common list separators.
5339      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5340      for pkg in $enableval; do
5341        IFS="$lt_save_ifs"
5342        if test "X$pkg" = "X$p"; then
5343          enable_fast_install=yes
5344        fi
5345      done
5346      IFS="$lt_save_ifs"
5347      ;;
5348    esac
5349else
5350  enable_fast_install=yes
5351fi;
5352
5353echo "$as_me:$LINENO: checking host system type" >&5
5354echo $ECHO_N "checking host system type... $ECHO_C" >&6
5355if test "${ac_cv_host+set}" = set; then
5356  echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358  ac_cv_host_alias=$host_alias
5359test -z "$ac_cv_host_alias" &&
5360  ac_cv_host_alias=$ac_cv_build_alias
5361ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5362  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5363echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5364   { (exit 1); exit 1; }; }
5365
5366fi
5367echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5368echo "${ECHO_T}$ac_cv_host" >&6
5369host=$ac_cv_host
5370host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5371host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5372host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5373
5374
5375echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5376echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5377if test "${lt_cv_path_SED+set}" = set; then
5378  echo $ECHO_N "(cached) $ECHO_C" >&6
5379else
5380  # Loop through the user's path and test for sed and gsed.
5381# Then use that list of sed's as ones to test for truncation.
5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH
5384do
5385  IFS=$as_save_IFS
5386  test -z "$as_dir" && as_dir=.
5387  for lt_ac_prog in sed gsed; do
5388    for ac_exec_ext in '' $ac_executable_extensions; do
5389      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5390        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5391      fi
5392    done
5393  done
5394done
5395lt_ac_max=0
5396lt_ac_count=0
5397# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5398# along with /bin/sed that truncates output.
5399for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5400  test ! -f $lt_ac_sed && continue
5401  cat /dev/null > conftest.in
5402  lt_ac_count=0
5403  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5404  # Check for GNU sed and select it if it is found.
5405  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5406    lt_cv_path_SED=$lt_ac_sed
5407    break
5408  fi
5409  while true; do
5410    cat conftest.in conftest.in >conftest.tmp
5411    mv conftest.tmp conftest.in
5412    cp conftest.in conftest.nl
5413    echo >>conftest.nl
5414    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5415    cmp -s conftest.out conftest.nl || break
5416    # 10000 chars as input seems more than enough
5417    test $lt_ac_count -gt 10 && break
5418    lt_ac_count=`expr $lt_ac_count + 1`
5419    if test $lt_ac_count -gt $lt_ac_max; then
5420      lt_ac_max=$lt_ac_count
5421      lt_cv_path_SED=$lt_ac_sed
5422    fi
5423  done
5424done
5425
5426fi
5427
5428SED=$lt_cv_path_SED
5429echo "$as_me:$LINENO: result: $SED" >&5
5430echo "${ECHO_T}$SED" >&6
5431
5432
5433# Check whether --with-gnu-ld or --without-gnu-ld was given.
5434if test "${with_gnu_ld+set}" = set; then
5435  withval="$with_gnu_ld"
5436  test "$withval" = no || with_gnu_ld=yes
5437else
5438  with_gnu_ld=no
5439fi;
5440ac_prog=ld
5441if test "$GCC" = yes; then
5442  # Check if gcc -print-prog-name=ld gives a path.
5443  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5444echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5445  case $host in
5446  *-*-mingw*)
5447    # gcc leaves a trailing carriage return which upsets mingw
5448    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5449  *)
5450    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5451  esac
5452  case $ac_prog in
5453    # Accept absolute paths.
5454    [\\/]* | ?:[\\/]*)
5455      re_direlt='/[^/][^/]*/\.\./'
5456      # Canonicalize the pathname of ld
5457      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5458      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5459        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5460      done
5461      test -z "$LD" && LD="$ac_prog"
5462      ;;
5463  "")
5464    # If it fails, then pretend we aren't using GCC.
5465    ac_prog=ld
5466    ;;
5467  *)
5468    # If it is relative, then search for the first ld in PATH.
5469    with_gnu_ld=unknown
5470    ;;
5471  esac
5472elif test "$with_gnu_ld" = yes; then
5473  echo "$as_me:$LINENO: checking for GNU ld" >&5
5474echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5475else
5476  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5477echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5478fi
5479if test "${lt_cv_path_LD+set}" = set; then
5480  echo $ECHO_N "(cached) $ECHO_C" >&6
5481else
5482  if test -z "$LD"; then
5483  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5484  for ac_dir in $PATH; do
5485    IFS="$lt_save_ifs"
5486    test -z "$ac_dir" && ac_dir=.
5487    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5488      lt_cv_path_LD="$ac_dir/$ac_prog"
5489      # Check to see if the program is GNU ld.  I'd rather use --version,
5490      # but apparently some variants of GNU ld only accept -v.
5491      # Break only if it was the GNU/non-GNU ld that we prefer.
5492      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5493      *GNU* | *'with BFD'*)
5494        test "$with_gnu_ld" != no && break
5495        ;;
5496      *)
5497        test "$with_gnu_ld" != yes && break
5498        ;;
5499      esac
5500    fi
5501  done
5502  IFS="$lt_save_ifs"
5503else
5504  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5505fi
5506fi
5507
5508LD="$lt_cv_path_LD"
5509if test -n "$LD"; then
5510  echo "$as_me:$LINENO: result: $LD" >&5
5511echo "${ECHO_T}$LD" >&6
5512else
5513  echo "$as_me:$LINENO: result: no" >&5
5514echo "${ECHO_T}no" >&6
5515fi
5516test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5517echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5518   { (exit 1); exit 1; }; }
5519echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5520echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5521if test "${lt_cv_prog_gnu_ld+set}" = set; then
5522  echo $ECHO_N "(cached) $ECHO_C" >&6
5523else
5524  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5525case `$LD -v 2>&1 </dev/null` in
5526*GNU* | *'with BFD'*)
5527  lt_cv_prog_gnu_ld=yes
5528  ;;
5529*)
5530  lt_cv_prog_gnu_ld=no
5531  ;;
5532esac
5533fi
5534echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5535echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5536with_gnu_ld=$lt_cv_prog_gnu_ld
5537
5538
5539echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5540echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5541if test "${lt_cv_ld_reload_flag+set}" = set; then
5542  echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
5544  lt_cv_ld_reload_flag='-r'
5545fi
5546echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5547echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5548reload_flag=$lt_cv_ld_reload_flag
5549case $reload_flag in
5550"" | " "*) ;;
5551*) reload_flag=" $reload_flag" ;;
5552esac
5553reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554case $host_os in
5555  darwin*)
5556    if test "$GCC" = yes; then
5557      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5558    else
5559      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5560    fi
5561    ;;
5562esac
5563
5564echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5565echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5566if test "${lt_cv_path_NM+set}" = set; then
5567  echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
5569  if test -n "$NM"; then
5570  # Let the user override the test.
5571  lt_cv_path_NM="$NM"
5572else
5573  lt_nm_to_check="${ac_tool_prefix}nm"
5574  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5575    lt_nm_to_check="$lt_nm_to_check nm"
5576  fi
5577  for lt_tmp_nm in $lt_nm_to_check; do
5578    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5579    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5580      IFS="$lt_save_ifs"
5581      test -z "$ac_dir" && ac_dir=.
5582      tmp_nm="$ac_dir/$lt_tmp_nm"
5583      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5584        # Check to see if the nm accepts a BSD-compat flag.
5585        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5586        #   nm: unknown option "B" ignored
5587        # Tru64's nm complains that /dev/null is an invalid object file
5588        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5589        */dev/null* | *'Invalid file or object type'*)
5590          lt_cv_path_NM="$tmp_nm -B"
5591          break
5592          ;;
5593        *)
5594          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5595          */dev/null*)
5596            lt_cv_path_NM="$tmp_nm -p"
5597            break
5598            ;;
5599          *)
5600            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5601            continue # so that we can try to find one that supports BSD flags
5602            ;;
5603          esac
5604          ;;
5605        esac
5606      fi
5607    done
5608    IFS="$lt_save_ifs"
5609  done
5610  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5611fi
5612fi
5613echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5614echo "${ECHO_T}$lt_cv_path_NM" >&6
5615NM="$lt_cv_path_NM"
5616
5617echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5618echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5619if test "${lt_cv_deplibs_check_method+set}" = set; then
5620  echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622  lt_cv_file_magic_cmd='$MAGIC_CMD'
5623lt_cv_file_magic_test_file=
5624lt_cv_deplibs_check_method='unknown'
5625# Need to set the preceding variable on all platforms that support
5626# interlibrary dependencies.
5627# 'none' -- dependencies not supported.
5628# `unknown' -- same as none, but documents that we really don't know.
5629# 'pass_all' -- all dependencies passed with no checks.
5630# 'test_compile' -- check by making test program.
5631# 'file_magic [[regex]]' -- check by looking for files in library path
5632# which responds to the $file_magic_cmd with a given extended regex.
5633# If you have `file' or equivalent on your system and you're not sure
5634# whether `pass_all' will *always* work, you probably want this one.
5635
5636case $host_os in
5637aix4* | aix5*)
5638  lt_cv_deplibs_check_method=pass_all
5639  ;;
5640
5641beos*)
5642  lt_cv_deplibs_check_method=pass_all
5643  ;;
5644
5645bsdi[45]*)
5646  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5647  lt_cv_file_magic_cmd='/usr/bin/file -L'
5648  lt_cv_file_magic_test_file=/shlib/libc.so
5649  ;;
5650
5651cygwin*)
5652  # func_win32_libid is a shell function defined in ltmain.sh
5653  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5654  lt_cv_file_magic_cmd='func_win32_libid'
5655  ;;
5656
5657mingw* | pw32*)
5658  # Base MSYS/MinGW do not provide the 'file' command needed by
5659  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5660  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5661  lt_cv_file_magic_cmd='$OBJDUMP -f'
5662  ;;
5663
5664darwin* | rhapsody*)
5665  lt_cv_deplibs_check_method=pass_all
5666  ;;
5667
5668freebsd* | kfreebsd*-gnu | dragonfly*)
5669  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5670    case $host_cpu in
5671    i*86 )
5672      # Not sure whether the presence of OpenBSD here was a mistake.
5673      # Let's accept both of them until this is cleared up.
5674      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5675      lt_cv_file_magic_cmd=/usr/bin/file
5676      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5677      ;;
5678    esac
5679  else
5680    lt_cv_deplibs_check_method=pass_all
5681  fi
5682  ;;
5683
5684gnu*)
5685  lt_cv_deplibs_check_method=pass_all
5686  ;;
5687
5688hpux10.20* | hpux11*)
5689  lt_cv_file_magic_cmd=/usr/bin/file
5690  case $host_cpu in
5691  ia64*)
5692    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5693    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5694    ;;
5695  hppa*64*)
5696    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]'
5697    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5698    ;;
5699  *)
5700    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5701    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5702    ;;
5703  esac
5704  ;;
5705
5706interix3*)
5707  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5708  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5709  ;;
5710
5711irix5* | irix6* | nonstopux*)
5712  case $LD in
5713  *-32|*"-32 ") libmagic=32-bit;;
5714  *-n32|*"-n32 ") libmagic=N32;;
5715  *-64|*"-64 ") libmagic=64-bit;;
5716  *) libmagic=never-match;;
5717  esac
5718  lt_cv_deplibs_check_method=pass_all
5719  ;;
5720
5721# This must be Linux ELF.
5722linux*)
5723  lt_cv_deplibs_check_method=pass_all
5724  ;;
5725
5726netbsd*)
5727  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5728    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5729  else
5730    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5731  fi
5732  ;;
5733
5734newos6*)
5735  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5736  lt_cv_file_magic_cmd=/usr/bin/file
5737  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5738  ;;
5739
5740nto-qnx*)
5741  lt_cv_deplibs_check_method=unknown
5742  ;;
5743
5744openbsd*)
5745  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5746    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5747  else
5748    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5749  fi
5750  ;;
5751
5752osf3* | osf4* | osf5*)
5753  lt_cv_deplibs_check_method=pass_all
5754  ;;
5755
5756solaris*)
5757  lt_cv_deplibs_check_method=pass_all
5758  ;;
5759
5760sysv4 | sysv4.3*)
5761  case $host_vendor in
5762  motorola)
5763    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]'
5764    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5765    ;;
5766  ncr)
5767    lt_cv_deplibs_check_method=pass_all
5768    ;;
5769  sequent)
5770    lt_cv_file_magic_cmd='/bin/file'
5771    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5772    ;;
5773  sni)
5774    lt_cv_file_magic_cmd='/bin/file'
5775    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5776    lt_cv_file_magic_test_file=/lib/libc.so
5777    ;;
5778  siemens)
5779    lt_cv_deplibs_check_method=pass_all
5780    ;;
5781  pc)
5782    lt_cv_deplibs_check_method=pass_all
5783    ;;
5784  esac
5785  ;;
5786
5787sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5788  lt_cv_deplibs_check_method=pass_all
5789  ;;
5790esac
5791
5792fi
5793echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5794echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5795file_magic_cmd=$lt_cv_file_magic_cmd
5796deplibs_check_method=$lt_cv_deplibs_check_method
5797test -z "$deplibs_check_method" && deplibs_check_method=unknown
5798
5799
5800
5801
5802# If no C compiler was specified, use CC.
5803LTCC=${LTCC-"$CC"}
5804
5805# If no C compiler flags were specified, use CFLAGS.
5806LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5807
5808# Allow CC to be a program name with arguments.
5809compiler=$CC
5810
5811# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5812if test "${enable_libtool_lock+set}" = set; then
5813  enableval="$enable_libtool_lock"
5814
5815fi;
5816test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5817
5818# Some flags need to be propagated to the compiler or linker for good
5819# libtool support.
5820case $host in
5821ia64-*-hpux*)
5822  # Find out which ABI we are using.
5823  echo 'int i;' > conftest.$ac_ext
5824  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825  (eval $ac_compile) 2>&5
5826  ac_status=$?
5827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828  (exit $ac_status); }; then
5829    case `/usr/bin/file conftest.$ac_objext` in
5830    *ELF-32*)
5831      HPUX_IA64_MODE="32"
5832      ;;
5833    *ELF-64*)
5834      HPUX_IA64_MODE="64"
5835      ;;
5836    esac
5837  fi
5838  rm -rf conftest*
5839  ;;
5840*-*-irix6*)
5841  # Find out which ABI we are using.
5842  echo '#line 5842 "configure"' > conftest.$ac_ext
5843  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5844  (eval $ac_compile) 2>&5
5845  ac_status=$?
5846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847  (exit $ac_status); }; then
5848   if test "$lt_cv_prog_gnu_ld" = yes; then
5849    case `/usr/bin/file conftest.$ac_objext` in
5850    *32-bit*)
5851      LD="${LD-ld} -melf32bsmip"
5852      ;;
5853    *N32*)
5854      LD="${LD-ld} -melf32bmipn32"
5855      ;;
5856    *64-bit*)
5857      LD="${LD-ld} -melf64bmip"
5858      ;;
5859    esac
5860   else
5861    case `/usr/bin/file conftest.$ac_objext` in
5862    *32-bit*)
5863      LD="${LD-ld} -32"
5864      ;;
5865    *N32*)
5866      LD="${LD-ld} -n32"
5867      ;;
5868    *64-bit*)
5869      LD="${LD-ld} -64"
5870      ;;
5871    esac
5872   fi
5873  fi
5874  rm -rf conftest*
5875  ;;
5876
5877x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5878  # Find out which ABI we are using.
5879  echo 'int i;' > conftest.$ac_ext
5880  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881  (eval $ac_compile) 2>&5
5882  ac_status=$?
5883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884  (exit $ac_status); }; then
5885    case `/usr/bin/file conftest.o` in
5886    *32-bit*)
5887      case $host in
5888        x86_64-*linux*)
5889          LD="${LD-ld} -m elf_i386"
5890          ;;
5891        ppc64-*linux*|powerpc64-*linux*)
5892          LD="${LD-ld} -m elf32ppclinux"
5893          ;;
5894        s390x-*linux*)
5895          LD="${LD-ld} -m elf_s390"
5896          ;;
5897        sparc64-*linux*)
5898          LD="${LD-ld} -m elf32_sparc"
5899          ;;
5900      esac
5901      ;;
5902    *64-bit*)
5903      case $host in
5904        x86_64-*linux*)
5905          LD="${LD-ld} -m elf_x86_64"
5906          ;;
5907        ppc*-*linux*|powerpc*-*linux*)
5908          LD="${LD-ld} -m elf64ppc"
5909          ;;
5910        s390*-*linux*)
5911          LD="${LD-ld} -m elf64_s390"
5912          ;;
5913        sparc*-*linux*)
5914          LD="${LD-ld} -m elf64_sparc"
5915          ;;
5916      esac
5917      ;;
5918    esac
5919  fi
5920  rm -rf conftest*
5921  ;;
5922
5923*-*-sco3.2v5*)
5924  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5925  SAVE_CFLAGS="$CFLAGS"
5926  CFLAGS="$CFLAGS -belf"
5927  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5928echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5929if test "${lt_cv_cc_needs_belf+set}" = set; then
5930  echo $ECHO_N "(cached) $ECHO_C" >&6
5931else
5932  ac_ext=c
5933ac_cpp='$CPP $CPPFLAGS'
5934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936ac_compiler_gnu=$ac_cv_c_compiler_gnu
5937
5938     cat >conftest.$ac_ext <<_ACEOF
5939/* confdefs.h.  */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
5943/* end confdefs.h.  */
5944
5945int
5946main ()
5947{
5948
5949  ;
5950  return 0;
5951}
5952_ACEOF
5953rm -f conftest.$ac_objext conftest$ac_exeext
5954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955  (eval $ac_link) 2>conftest.er1
5956  ac_status=$?
5957  grep -v '^ *+' conftest.er1 >conftest.err
5958  rm -f conftest.er1
5959  cat conftest.err >&5
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); } &&
5962         { ac_try='test -z "$ac_c_werror_flag"
5963                         || test ! -s conftest.err'
5964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965  (eval $ac_try) 2>&5
5966  ac_status=$?
5967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968  (exit $ac_status); }; } &&
5969         { ac_try='test -s conftest$ac_exeext'
5970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971  (eval $ac_try) 2>&5
5972  ac_status=$?
5973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974  (exit $ac_status); }; }; then
5975  lt_cv_cc_needs_belf=yes
5976else
5977  echo "$as_me: failed program was:" >&5
5978sed 's/^/| /' conftest.$ac_ext >&5
5979
5980lt_cv_cc_needs_belf=no
5981fi
5982rm -f conftest.err conftest.$ac_objext \
5983      conftest$ac_exeext conftest.$ac_ext
5984     ac_ext=c
5985ac_cpp='$CPP $CPPFLAGS'
5986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988ac_compiler_gnu=$ac_cv_c_compiler_gnu
5989
5990fi
5991echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5992echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5993  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5994    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5995    CFLAGS="$SAVE_CFLAGS"
5996  fi
5997  ;;
5998sparc*-*solaris*)
5999  # Find out which ABI we are using.
6000  echo 'int i;' > conftest.$ac_ext
6001  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002  (eval $ac_compile) 2>&5
6003  ac_status=$?
6004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005  (exit $ac_status); }; then
6006    case `/usr/bin/file conftest.o` in
6007    *64-bit*)
6008      case $lt_cv_prog_gnu_ld in
6009      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6010      *)    LD="${LD-ld} -64" ;;
6011      esac
6012      ;;
6013    esac
6014  fi
6015  rm -rf conftest*
6016  ;;
6017
6018
6019esac
6020
6021need_locks="$enable_libtool_lock"
6022
6023
6024ac_ext=c
6025ac_cpp='$CPP $CPPFLAGS'
6026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028ac_compiler_gnu=$ac_cv_c_compiler_gnu
6029echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6030echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6031# On Suns, sometimes $CPP names a directory.
6032if test -n "$CPP" && test -d "$CPP"; then
6033  CPP=
6034fi
6035if test -z "$CPP"; then
6036  if test "${ac_cv_prog_CPP+set}" = set; then
6037  echo $ECHO_N "(cached) $ECHO_C" >&6
6038else
6039      # Double quotes because CPP needs to be expanded
6040    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6041    do
6042      ac_preproc_ok=false
6043for ac_c_preproc_warn_flag in '' yes
6044do
6045  # Use a header file that comes with gcc, so configuring glibc
6046  # with a fresh cross-compiler works.
6047  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6048  # <limits.h> exists even on freestanding compilers.
6049  # On the NeXT, cc -E runs the code through the compiler's parser,
6050  # not just through cpp. "Syntax error" is here to catch this case.
6051  cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h.  */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h.  */
6057#ifdef __STDC__
6058# include <limits.h>
6059#else
6060# include <assert.h>
6061#endif
6062                     Syntax error
6063_ACEOF
6064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6065  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6066  ac_status=$?
6067  grep -v '^ *+' conftest.er1 >conftest.err
6068  rm -f conftest.er1
6069  cat conftest.err >&5
6070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071  (exit $ac_status); } >/dev/null; then
6072  if test -s conftest.err; then
6073    ac_cpp_err=$ac_c_preproc_warn_flag
6074    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6075  else
6076    ac_cpp_err=
6077  fi
6078else
6079  ac_cpp_err=yes
6080fi
6081if test -z "$ac_cpp_err"; then
6082  :
6083else
6084  echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087  # Broken: fails on valid input.
6088continue
6089fi
6090rm -f conftest.err conftest.$ac_ext
6091
6092  # OK, works on sane cases.  Now check whether non-existent headers
6093  # can be detected and how.
6094  cat >conftest.$ac_ext <<_ACEOF
6095/* confdefs.h.  */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h.  */
6100#include <ac_nonexistent.h>
6101_ACEOF
6102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6103  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6104  ac_status=$?
6105  grep -v '^ *+' conftest.er1 >conftest.err
6106  rm -f conftest.er1
6107  cat conftest.err >&5
6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); } >/dev/null; then
6110  if test -s conftest.err; then
6111    ac_cpp_err=$ac_c_preproc_warn_flag
6112    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6113  else
6114    ac_cpp_err=
6115  fi
6116else
6117  ac_cpp_err=yes
6118fi
6119if test -z "$ac_cpp_err"; then
6120  # Broken: success on invalid input.
6121continue
6122else
6123  echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126  # Passes both tests.
6127ac_preproc_ok=:
6128break
6129fi
6130rm -f conftest.err conftest.$ac_ext
6131
6132done
6133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6134rm -f conftest.err conftest.$ac_ext
6135if $ac_preproc_ok; then
6136  break
6137fi
6138
6139    done
6140    ac_cv_prog_CPP=$CPP
6141
6142fi
6143  CPP=$ac_cv_prog_CPP
6144else
6145  ac_cv_prog_CPP=$CPP
6146fi
6147echo "$as_me:$LINENO: result: $CPP" >&5
6148echo "${ECHO_T}$CPP" >&6
6149ac_preproc_ok=false
6150for ac_c_preproc_warn_flag in '' yes
6151do
6152  # Use a header file that comes with gcc, so configuring glibc
6153  # with a fresh cross-compiler works.
6154  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6155  # <limits.h> exists even on freestanding compilers.
6156  # On the NeXT, cc -E runs the code through the compiler's parser,
6157  # not just through cpp. "Syntax error" is here to catch this case.
6158  cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h.  */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h.  */
6164#ifdef __STDC__
6165# include <limits.h>
6166#else
6167# include <assert.h>
6168#endif
6169                     Syntax error
6170_ACEOF
6171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6172  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6173  ac_status=$?
6174  grep -v '^ *+' conftest.er1 >conftest.err
6175  rm -f conftest.er1
6176  cat conftest.err >&5
6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178  (exit $ac_status); } >/dev/null; then
6179  if test -s conftest.err; then
6180    ac_cpp_err=$ac_c_preproc_warn_flag
6181    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6182  else
6183    ac_cpp_err=
6184  fi
6185else
6186  ac_cpp_err=yes
6187fi
6188if test -z "$ac_cpp_err"; then
6189  :
6190else
6191  echo "$as_me: failed program was:" >&5
6192sed 's/^/| /' conftest.$ac_ext >&5
6193
6194  # Broken: fails on valid input.
6195continue
6196fi
6197rm -f conftest.err conftest.$ac_ext
6198
6199  # OK, works on sane cases.  Now check whether non-existent headers
6200  # can be detected and how.
6201  cat >conftest.$ac_ext <<_ACEOF
6202/* confdefs.h.  */
6203_ACEOF
6204cat confdefs.h >>conftest.$ac_ext
6205cat >>conftest.$ac_ext <<_ACEOF
6206/* end confdefs.h.  */
6207#include <ac_nonexistent.h>
6208_ACEOF
6209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6210  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6211  ac_status=$?
6212  grep -v '^ *+' conftest.er1 >conftest.err
6213  rm -f conftest.er1
6214  cat conftest.err >&5
6215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216  (exit $ac_status); } >/dev/null; then
6217  if test -s conftest.err; then
6218    ac_cpp_err=$ac_c_preproc_warn_flag
6219    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6220  else
6221    ac_cpp_err=
6222  fi
6223else
6224  ac_cpp_err=yes
6225fi
6226if test -z "$ac_cpp_err"; then
6227  # Broken: success on invalid input.
6228continue
6229else
6230  echo "$as_me: failed program was:" >&5
6231sed 's/^/| /' conftest.$ac_ext >&5
6232
6233  # Passes both tests.
6234ac_preproc_ok=:
6235break
6236fi
6237rm -f conftest.err conftest.$ac_ext
6238
6239done
6240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6241rm -f conftest.err conftest.$ac_ext
6242if $ac_preproc_ok; then
6243  :
6244else
6245  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6246See \`config.log' for more details." >&5
6247echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6248See \`config.log' for more details." >&2;}
6249   { (exit 1); exit 1; }; }
6250fi
6251
6252ac_ext=c
6253ac_cpp='$CPP $CPPFLAGS'
6254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6256ac_compiler_gnu=$ac_cv_c_compiler_gnu
6257
6258
6259echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6260echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6261if test "${ac_cv_header_stdc+set}" = set; then
6262  echo $ECHO_N "(cached) $ECHO_C" >&6
6263else
6264  cat >conftest.$ac_ext <<_ACEOF
6265/* confdefs.h.  */
6266_ACEOF
6267cat confdefs.h >>conftest.$ac_ext
6268cat >>conftest.$ac_ext <<_ACEOF
6269/* end confdefs.h.  */
6270#include <stdlib.h>
6271#include <stdarg.h>
6272#include <string.h>
6273#include <float.h>
6274
6275int
6276main ()
6277{
6278
6279  ;
6280  return 0;
6281}
6282_ACEOF
6283rm -f conftest.$ac_objext
6284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6285  (eval $ac_compile) 2>conftest.er1
6286  ac_status=$?
6287  grep -v '^ *+' conftest.er1 >conftest.err
6288  rm -f conftest.er1
6289  cat conftest.err >&5
6290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291  (exit $ac_status); } &&
6292         { ac_try='test -z "$ac_c_werror_flag"
6293                         || test ! -s conftest.err'
6294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295  (eval $ac_try) 2>&5
6296  ac_status=$?
6297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298  (exit $ac_status); }; } &&
6299         { ac_try='test -s conftest.$ac_objext'
6300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301  (eval $ac_try) 2>&5
6302  ac_status=$?
6303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304  (exit $ac_status); }; }; then
6305  ac_cv_header_stdc=yes
6306else
6307  echo "$as_me: failed program was:" >&5
6308sed 's/^/| /' conftest.$ac_ext >&5
6309
6310ac_cv_header_stdc=no
6311fi
6312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6313
6314if test $ac_cv_header_stdc = yes; then
6315  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6316  cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h.  */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h.  */
6322#include <string.h>
6323
6324_ACEOF
6325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6326  $EGREP "memchr" >/dev/null 2>&1; then
6327  :
6328else
6329  ac_cv_header_stdc=no
6330fi
6331rm -f conftest*
6332
6333fi
6334
6335if test $ac_cv_header_stdc = yes; then
6336  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6337  cat >conftest.$ac_ext <<_ACEOF
6338/* confdefs.h.  */
6339_ACEOF
6340cat confdefs.h >>conftest.$ac_ext
6341cat >>conftest.$ac_ext <<_ACEOF
6342/* end confdefs.h.  */
6343#include <stdlib.h>
6344
6345_ACEOF
6346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347  $EGREP "free" >/dev/null 2>&1; then
6348  :
6349else
6350  ac_cv_header_stdc=no
6351fi
6352rm -f conftest*
6353
6354fi
6355
6356if test $ac_cv_header_stdc = yes; then
6357  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6358  if test "$cross_compiling" = yes; then
6359  :
6360else
6361  cat >conftest.$ac_ext <<_ACEOF
6362/* confdefs.h.  */
6363_ACEOF
6364cat confdefs.h >>conftest.$ac_ext
6365cat >>conftest.$ac_ext <<_ACEOF
6366/* end confdefs.h.  */
6367#include <ctype.h>
6368#if ((' ' & 0x0FF) == 0x020)
6369# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6370# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6371#else
6372# define ISLOWER(c) \
6373                   (('a' <= (c) && (c) <= 'i') \
6374                     || ('j' <= (c) && (c) <= 'r') \
6375                     || ('s' <= (c) && (c) <= 'z'))
6376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6377#endif
6378
6379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6380int
6381main ()
6382{
6383  int i;
6384  for (i = 0; i < 256; i++)
6385    if (XOR (islower (i), ISLOWER (i))
6386        || toupper (i) != TOUPPER (i))
6387      exit(2);
6388  exit (0);
6389}
6390_ACEOF
6391rm -f conftest$ac_exeext
6392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6393  (eval $ac_link) 2>&5
6394  ac_status=$?
6395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398  (eval $ac_try) 2>&5
6399  ac_status=$?
6400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401  (exit $ac_status); }; }; then
6402  :
6403else
6404  echo "$as_me: program exited with status $ac_status" >&5
6405echo "$as_me: failed program was:" >&5
6406sed 's/^/| /' conftest.$ac_ext >&5
6407
6408( exit $ac_status )
6409ac_cv_header_stdc=no
6410fi
6411rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6412fi
6413fi
6414fi
6415echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6416echo "${ECHO_T}$ac_cv_header_stdc" >&6
6417if test $ac_cv_header_stdc = yes; then
6418
6419cat >>confdefs.h <<\_ACEOF
6420#define STDC_HEADERS 1
6421_ACEOF
6422
6423fi
6424
6425# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6436                  inttypes.h stdint.h unistd.h
6437do
6438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6439echo "$as_me:$LINENO: checking for $ac_header" >&5
6440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6441if eval "test \"\${$as_ac_Header+set}\" = set"; then
6442  echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444  cat >conftest.$ac_ext <<_ACEOF
6445/* confdefs.h.  */
6446_ACEOF
6447cat confdefs.h >>conftest.$ac_ext
6448cat >>conftest.$ac_ext <<_ACEOF
6449/* end confdefs.h.  */
6450$ac_includes_default
6451
6452#include <$ac_header>
6453_ACEOF
6454rm -f conftest.$ac_objext
6455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6456  (eval $ac_compile) 2>conftest.er1
6457  ac_status=$?
6458  grep -v '^ *+' conftest.er1 >conftest.err
6459  rm -f conftest.er1
6460  cat conftest.err >&5
6461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462  (exit $ac_status); } &&
6463         { ac_try='test -z "$ac_c_werror_flag"
6464                         || test ! -s conftest.err'
6465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466  (eval $ac_try) 2>&5
6467  ac_status=$?
6468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469  (exit $ac_status); }; } &&
6470         { ac_try='test -s conftest.$ac_objext'
6471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472  (eval $ac_try) 2>&5
6473  ac_status=$?
6474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475  (exit $ac_status); }; }; then
6476  eval "$as_ac_Header=yes"
6477else
6478  echo "$as_me: failed program was:" >&5
6479sed 's/^/| /' conftest.$ac_ext >&5
6480
6481eval "$as_ac_Header=no"
6482fi
6483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6484fi
6485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6487if test `eval echo '${'$as_ac_Header'}'` = yes; then
6488  cat >>confdefs.h <<_ACEOF
6489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6490_ACEOF
6491
6492fi
6493
6494done
6495
6496
6497
6498for ac_header in dlfcn.h
6499do
6500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502  echo "$as_me:$LINENO: checking for $ac_header" >&5
6503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6504if eval "test \"\${$as_ac_Header+set}\" = set"; then
6505  echo $ECHO_N "(cached) $ECHO_C" >&6
6506fi
6507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6508echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6509else
6510  # Is the header compilable?
6511echo "$as_me:$LINENO: checking $ac_header usability" >&5
6512echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6513cat >conftest.$ac_ext <<_ACEOF
6514/* confdefs.h.  */
6515_ACEOF
6516cat confdefs.h >>conftest.$ac_ext
6517cat >>conftest.$ac_ext <<_ACEOF
6518/* end confdefs.h.  */
6519$ac_includes_default
6520#include <$ac_header>
6521_ACEOF
6522rm -f conftest.$ac_objext
6523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524  (eval $ac_compile) 2>conftest.er1
6525  ac_status=$?
6526  grep -v '^ *+' conftest.er1 >conftest.err
6527  rm -f conftest.er1
6528  cat conftest.err >&5
6529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530  (exit $ac_status); } &&
6531         { ac_try='test -z "$ac_c_werror_flag"
6532                         || test ! -s conftest.err'
6533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534  (eval $ac_try) 2>&5
6535  ac_status=$?
6536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537  (exit $ac_status); }; } &&
6538         { ac_try='test -s conftest.$ac_objext'
6539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540  (eval $ac_try) 2>&5
6541  ac_status=$?
6542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543  (exit $ac_status); }; }; then
6544  ac_header_compiler=yes
6545else
6546  echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549ac_header_compiler=no
6550fi
6551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6552echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6553echo "${ECHO_T}$ac_header_compiler" >&6
6554
6555# Is the header present?
6556echo "$as_me:$LINENO: checking $ac_header presence" >&5
6557echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6558cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h.  */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h.  */
6564#include <$ac_header>
6565_ACEOF
6566if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6567  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6568  ac_status=$?
6569  grep -v '^ *+' conftest.er1 >conftest.err
6570  rm -f conftest.er1
6571  cat conftest.err >&5
6572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573  (exit $ac_status); } >/dev/null; then
6574  if test -s conftest.err; then
6575    ac_cpp_err=$ac_c_preproc_warn_flag
6576    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6577  else
6578    ac_cpp_err=
6579  fi
6580else
6581  ac_cpp_err=yes
6582fi
6583if test -z "$ac_cpp_err"; then
6584  ac_header_preproc=yes
6585else
6586  echo "$as_me: failed program was:" >&5
6587sed 's/^/| /' conftest.$ac_ext >&5
6588
6589  ac_header_preproc=no
6590fi
6591rm -f conftest.err conftest.$ac_ext
6592echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6593echo "${ECHO_T}$ac_header_preproc" >&6
6594
6595# So?  What about this header?
6596case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6597  yes:no: )
6598    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6599echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6600    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6601echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6602    ac_header_preproc=yes
6603    ;;
6604  no:yes:* )
6605    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6606echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6607    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6608echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6609    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6610echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6611    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6612echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6613    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6614echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6615    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6616echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6617    (
6618      cat <<\_ASBOX
6619## -------------------------------------- ##
6620## Report this to bonmin@list.coin-or.org ##
6621## -------------------------------------- ##
6622_ASBOX
6623    ) |
6624      sed "s/^/$as_me: WARNING:     /" >&2
6625    ;;
6626esac
6627echo "$as_me:$LINENO: checking for $ac_header" >&5
6628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6629if eval "test \"\${$as_ac_Header+set}\" = set"; then
6630  echo $ECHO_N "(cached) $ECHO_C" >&6
6631else
6632  eval "$as_ac_Header=\$ac_header_preproc"
6633fi
6634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6636
6637fi
6638if test `eval echo '${'$as_ac_Header'}'` = yes; then
6639  cat >>confdefs.h <<_ACEOF
6640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6641_ACEOF
6642
6643fi
6644
6645done
6646
6647
6648
6649if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6650    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6651    (test "X$CXX" != "Xg++"))) ; then
6652  ac_ext=cc
6653ac_cpp='$CXXCPP $CPPFLAGS'
6654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6657echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6658echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6659if test -z "$CXXCPP"; then
6660  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6661  echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663      # Double quotes because CXXCPP needs to be expanded
6664    for CXXCPP in "$CXX -E" "/lib/cpp"
6665    do
6666      ac_preproc_ok=false
6667for ac_cxx_preproc_warn_flag in '' yes
6668do
6669  # Use a header file that comes with gcc, so configuring glibc
6670  # with a fresh cross-compiler works.
6671  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6672  # <limits.h> exists even on freestanding compilers.
6673  # On the NeXT, cc -E runs the code through the compiler's parser,
6674  # not just through cpp. "Syntax error" is here to catch this case.
6675  cat >conftest.$ac_ext <<_ACEOF
6676/* confdefs.h.  */
6677_ACEOF
6678cat confdefs.h >>conftest.$ac_ext
6679cat >>conftest.$ac_ext <<_ACEOF
6680/* end confdefs.h.  */
6681#ifdef __STDC__
6682# include <limits.h>
6683#else
6684# include <assert.h>
6685#endif
6686                     Syntax error
6687_ACEOF
6688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6689  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6690  ac_status=$?
6691  grep -v '^ *+' conftest.er1 >conftest.err
6692  rm -f conftest.er1
6693  cat conftest.err >&5
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); } >/dev/null; then
6696  if test -s conftest.err; then
6697    ac_cpp_err=$ac_cxx_preproc_warn_flag
6698    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6699  else
6700    ac_cpp_err=
6701  fi
6702else
6703  ac_cpp_err=yes
6704fi
6705if test -z "$ac_cpp_err"; then
6706  :
6707else
6708  echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711  # Broken: fails on valid input.
6712continue
6713fi
6714rm -f conftest.err conftest.$ac_ext
6715
6716  # OK, works on sane cases.  Now check whether non-existent headers
6717  # can be detected and how.
6718  cat >conftest.$ac_ext <<_ACEOF
6719/* confdefs.h.  */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h.  */
6724#include <ac_nonexistent.h>
6725_ACEOF
6726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6727  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6728  ac_status=$?
6729  grep -v '^ *+' conftest.er1 >conftest.err
6730  rm -f conftest.er1
6731  cat conftest.err >&5
6732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); } >/dev/null; then
6734  if test -s conftest.err; then
6735    ac_cpp_err=$ac_cxx_preproc_warn_flag
6736    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6737  else
6738    ac_cpp_err=
6739  fi
6740else
6741  ac_cpp_err=yes
6742fi
6743if test -z "$ac_cpp_err"; then
6744  # Broken: success on invalid input.
6745continue
6746else
6747  echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
6750  # Passes both tests.
6751ac_preproc_ok=:
6752break
6753fi
6754rm -f conftest.err conftest.$ac_ext
6755
6756done
6757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6758rm -f conftest.err conftest.$ac_ext
6759if $ac_preproc_ok; then
6760  break
6761fi
6762
6763    done
6764    ac_cv_prog_CXXCPP=$CXXCPP
6765
6766fi
6767  CXXCPP=$ac_cv_prog_CXXCPP
6768else
6769  ac_cv_prog_CXXCPP=$CXXCPP
6770fi
6771echo "$as_me:$LINENO: result: $CXXCPP" >&5
6772echo "${ECHO_T}$CXXCPP" >&6
6773ac_preproc_ok=false
6774for ac_cxx_preproc_warn_flag in '' yes
6775do
6776  # Use a header file that comes with gcc, so configuring glibc
6777  # with a fresh cross-compiler works.
6778  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6779  # <limits.h> exists even on freestanding compilers.
6780  # On the NeXT, cc -E runs the code through the compiler's parser,
6781  # not just through cpp. "Syntax error" is here to catch this case.
6782  cat >conftest.$ac_ext <<_ACEOF
6783/* confdefs.h.  */
6784_ACEOF
6785cat confdefs.h >>conftest.$ac_ext
6786cat >>conftest.$ac_ext <<_ACEOF
6787/* end confdefs.h.  */
6788#ifdef __STDC__
6789# include <limits.h>
6790#else
6791# include <assert.h>
6792#endif
6793                     Syntax error
6794_ACEOF
6795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6796  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6797  ac_status=$?
6798  grep -v '^ *+' conftest.er1 >conftest.err
6799  rm -f conftest.er1
6800  cat conftest.err >&5
6801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802  (exit $ac_status); } >/dev/null; then
6803  if test -s conftest.err; then
6804    ac_cpp_err=$ac_cxx_preproc_warn_flag
6805    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6806  else
6807    ac_cpp_err=
6808  fi
6809else
6810  ac_cpp_err=yes
6811fi
6812if test -z "$ac_cpp_err"; then
6813  :
6814else
6815  echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
6818  # Broken: fails on valid input.
6819continue
6820fi
6821rm -f conftest.err conftest.$ac_ext
6822
6823  # OK, works on sane cases.  Now check whether non-existent headers
6824  # can be detected and how.
6825  cat >conftest.$ac_ext <<_ACEOF
6826/* confdefs.h.  */
6827_ACEOF
6828cat confdefs.h >>conftest.$ac_ext
6829cat >>conftest.$ac_ext <<_ACEOF
6830/* end confdefs.h.  */
6831#include <ac_nonexistent.h>
6832_ACEOF
6833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6834  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6835  ac_status=$?
6836  grep -v '^ *+' conftest.er1 >conftest.err
6837  rm -f conftest.er1
6838  cat conftest.err >&5
6839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840  (exit $ac_status); } >/dev/null; then
6841  if test -s conftest.err; then
6842    ac_cpp_err=$ac_cxx_preproc_warn_flag
6843    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6844  else
6845    ac_cpp_err=
6846  fi
6847else
6848  ac_cpp_err=yes
6849fi
6850if test -z "$ac_cpp_err"; then
6851  # Broken: success on invalid input.
6852continue
6853else
6854  echo "$as_me: failed program was:" >&5
6855sed 's/^/| /' conftest.$ac_ext >&5
6856
6857  # Passes both tests.
6858ac_preproc_ok=:
6859break
6860fi
6861rm -f conftest.err conftest.$ac_ext
6862
6863done
6864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6865rm -f conftest.err conftest.$ac_ext
6866if $ac_preproc_ok; then
6867  :
6868else
6869  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6870See \`config.log' for more details." >&5
6871echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6872See \`config.log' for more details." >&2;}
6873   { (exit 1); exit 1; }; }
6874fi
6875
6876ac_ext=cc
6877ac_cpp='$CXXCPP $CPPFLAGS'
6878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6881
6882fi
6883
6884ac_ext=f
6885ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6886ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6888if test -n "$ac_tool_prefix"; then
6889  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6890  do
6891    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6893echo "$as_me:$LINENO: checking for $ac_word" >&5
6894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6895if test "${ac_cv_prog_F77+set}" = set; then
6896  echo $ECHO_N "(cached) $ECHO_C" >&6
6897else
6898  if test -n "$F77"; then
6899  ac_cv_prog_F77="$F77" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904  IFS=$as_save_IFS
6905  test -z "$as_dir" && as_dir=.
6906  for ac_exec_ext in '' $ac_executable_extensions; do
6907  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6909    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910    break 2
6911  fi
6912done
6913done
6914
6915fi
6916fi
6917F77=$ac_cv_prog_F77
6918if test -n "$F77"; then
6919  echo "$as_me:$LINENO: result: $F77" >&5
6920echo "${ECHO_T}$F77" >&6
6921else
6922  echo "$as_me:$LINENO: result: no" >&5
6923echo "${ECHO_T}no" >&6
6924fi
6925
6926    test -n "$F77" && break
6927  done
6928fi
6929if test -z "$F77"; then
6930  ac_ct_F77=$F77
6931  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6932do
6933  # Extract the first word of "$ac_prog", so it can be a program name with args.
6934set dummy $ac_prog; ac_word=$2
6935echo "$as_me:$LINENO: checking for $ac_word" >&5
6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6937if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6938  echo $ECHO_N "(cached) $ECHO_C" >&6
6939else
6940  if test -n "$ac_ct_F77"; then
6941  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6942else
6943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944for as_dir in $PATH
6945do
6946  IFS=$as_save_IFS
6947  test -z "$as_dir" && as_dir=.
6948  for ac_exec_ext in '' $ac_executable_extensions; do
6949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950    ac_cv_prog_ac_ct_F77="$ac_prog"
6951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6952    break 2
6953  fi
6954done
6955done
6956
6957fi
6958fi
6959ac_ct_F77=$ac_cv_prog_ac_ct_F77
6960if test -n "$ac_ct_F77"; then
6961  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6962echo "${ECHO_T}$ac_ct_F77" >&6
6963else
6964  echo "$as_me:$LINENO: result: no" >&5
6965echo "${ECHO_T}no" >&6
6966fi
6967
6968  test -n "$ac_ct_F77" && break
6969done
6970
6971  F77=$ac_ct_F77
6972fi
6973
6974
6975# Provide some information about the compiler.
6976echo "$as_me:6976:" \
6977     "checking for Fortran 77 compiler version" >&5
6978ac_compiler=`set X $ac_compile; echo $2`
6979{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6980  (eval $ac_compiler --version </dev/null >&5) 2>&5
6981  ac_status=$?
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); }
6984{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6985  (eval $ac_compiler -v </dev/null >&5) 2>&5
6986  ac_status=$?
6987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988  (exit $ac_status); }
6989{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6990  (eval $ac_compiler -V </dev/null >&5) 2>&5
6991  ac_status=$?
6992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993  (exit $ac_status); }
6994rm -f a.out
6995
6996# If we don't use `.F' as extension, the preprocessor is not run on the
6997# input file.  (Note that this only needs to work for GNU compilers.)
6998ac_save_ext=$ac_ext
6999ac_ext=F
7000echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7001echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7002if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7003  echo $ECHO_N "(cached) $ECHO_C" >&6
7004else
7005  cat >conftest.$ac_ext <<_ACEOF
7006      program main
7007#ifndef __GNUC__
7008       choke me
7009#endif
7010
7011      end
7012_ACEOF
7013rm -f conftest.$ac_objext
7014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015  (eval $ac_compile) 2>conftest.er1
7016  ac_status=$?
7017  grep -v '^ *+' conftest.er1 >conftest.err
7018  rm -f conftest.er1
7019  cat conftest.err >&5
7020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021  (exit $ac_status); } &&
7022         { ac_try='test -z "$ac_f77_werror_flag"
7023                         || test ! -s conftest.err'
7024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025  (eval $ac_try) 2>&5
7026  ac_status=$?
7027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); }; } &&
7029         { ac_try='test -s conftest.$ac_objext'
7030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031  (eval $ac_try) 2>&5
7032  ac_status=$?
7033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034  (exit $ac_status); }; }; then
7035  ac_compiler_gnu=yes
7036else
7037  echo "$as_me: failed program was:" >&5
7038sed 's/^/| /' conftest.$ac_ext >&5
7039
7040ac_compiler_gnu=no
7041fi
7042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7044
7045fi
7046echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7047echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7048ac_ext=$ac_save_ext
7049ac_test_FFLAGS=${FFLAGS+set}
7050ac_save_FFLAGS=$FFLAGS
7051FFLAGS=
7052echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7053echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7054if test "${ac_cv_prog_f77_g+set}" = set; then
7055  echo $ECHO_N "(cached) $ECHO_C" >&6
7056else
7057  FFLAGS=-g
7058cat >conftest.$ac_ext <<_ACEOF
7059      program main
7060
7061      end
7062_ACEOF
7063rm -f conftest.$ac_objext
7064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065  (eval $ac_compile) 2>conftest.er1
7066  ac_status=$?
7067  grep -v '^ *+' conftest.er1 >conftest.err
7068  rm -f conftest.er1
7069  cat conftest.err >&5
7070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071  (exit $ac_status); } &&
7072         { ac_try='test -z "$ac_f77_werror_flag"
7073                         || test ! -s conftest.err'
7074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075  (eval $ac_try) 2>&5
7076  ac_status=$?
7077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078  (exit $ac_status); }; } &&
7079         { ac_try='test -s conftest.$ac_objext'
7080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081  (eval $ac_try) 2>&5
7082  ac_status=$?
7083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084  (exit $ac_status); }; }; then
7085  ac_cv_prog_f77_g=yes
7086else
7087  echo "$as_me: failed program was:" >&5
7088sed 's/^/| /' conftest.$ac_ext >&5
7089
7090ac_cv_prog_f77_g=no
7091fi
7092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7093
7094fi
7095echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7096echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7097if test "$ac_test_FFLAGS" = set; then
7098  FFLAGS=$ac_save_FFLAGS
7099elif test $ac_cv_prog_f77_g = yes; then
7100  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7101    FFLAGS="-g -O2"
7102  else
7103    FFLAGS="-g"
7104  fi
7105else
7106  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7107    FFLAGS="-O2"
7108  else
7109    FFLAGS=
7110  fi
7111fi
7112
7113G77=`test $ac_compiler_gnu = yes && echo yes`
7114ac_ext=c
7115ac_cpp='$CPP $CPPFLAGS'
7116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118ac_compiler_gnu=$ac_cv_c_compiler_gnu
7119
7120
7121
7122# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7123
7124# find the maximum length of command line arguments
7125echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7126echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7127if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7128  echo $ECHO_N "(cached) $ECHO_C" >&6
7129else
7130    i=0
7131  teststring="ABCD"
7132
7133  case $build_os in
7134  msdosdjgpp*)
7135    # On DJGPP, this test can blow up pretty badly due to problems in libc
7136    # (any single argument exceeding 2000 bytes causes a buffer overrun
7137    # during glob expansion).  Even if it were fixed, the result of this
7138    # check would be larger than it should be.
7139    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7140    ;;
7141
7142  gnu*)
7143    # Under GNU Hurd, this test is not required because there is
7144    # no limit to the length of command line arguments.
7145    # Libtool will interpret -1 as no limit whatsoever
7146    lt_cv_sys_max_cmd_len=-1;
7147    ;;
7148
7149  cygwin* | mingw*)
7150    # On Win9x/ME, this test blows up -- it succeeds, but takes
7151    # about 5 minutes as the teststring grows exponentially.
7152    # Worse, since 9x/ME are not pre-emptively multitasking,
7153    # you end up with a "frozen" computer, even though with patience
7154    # the test eventually succeeds (with a max line length of 256k).
7155    # Instead, let's just punt: use the minimum linelength reported by
7156    # all of the supported platforms: 8192 (on NT/2K/XP).
7157    lt_cv_sys_max_cmd_len=8192;
7158    ;;
7159
7160  amigaos*)
7161    # On AmigaOS with pdksh, this test takes hours, literally.
7162    # So we just punt and use a minimum line length of 8192.
7163    lt_cv_sys_max_cmd_len=8192;
7164    ;;
7165
7166  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7167    # This has been around since 386BSD, at least.  Likely further.
7168    if test -x /sbin/sysctl; then
7169      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7170    elif test -x /usr/sbin/sysctl; then
7171      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7172    else
7173      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7174    fi
7175    # And add a safety zone
7176    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7177    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7178    ;;
7179
7180  interix*)
7181    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7182    lt_cv_sys_max_cmd_len=196608
7183    ;;
7184
7185  osf*)
7186    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7187    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7188    # nice to cause kernel panics so lets avoid the loop below.
7189    # First set a reasonable default.
7190    lt_cv_sys_max_cmd_len=16384
7191    #
7192    if test -x /sbin/sysconfig; then
7193      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7194        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7195      esac
7196    fi
7197    ;;
7198  sco3.2v5*)
7199    lt_cv_sys_max_cmd_len=102400
7200    ;;
7201  sysv5* | sco5v6* | sysv4.2uw2*)
7202    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7203    if test -n "$kargmax"; then
7204      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7205    else
7206      lt_cv_sys_max_cmd_len=32768
7207    fi
7208    ;;
7209  *)
7210    # If test is not a shell built-in, we'll probably end up computing a
7211    # maximum length that is only half of the actual maximum length, but
7212    # we can't tell.
7213    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7214    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7215               = "XX$teststring") >/dev/null 2>&1 &&
7216            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7217            lt_cv_sys_max_cmd_len=$new_result &&
7218            test $i != 17 # 1/2 MB should be enough
7219    do
7220      i=`expr $i + 1`
7221      teststring=$teststring$teststring
7222    done
7223    teststring=
7224    # Add a significant safety factor because C++ compilers can tack on massive
7225    # amounts of additional arguments before passing them to the linker.
7226    # It appears as though 1/2 is a usable value.
7227    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7228    ;;
7229  esac
7230
7231fi
7232
7233if test -n $lt_cv_sys_max_cmd_len ; then
7234  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7235echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7236else
7237  echo "$as_me:$LINENO: result: none" >&5
7238echo "${ECHO_T}none" >&6
7239fi
7240
7241
7242
7243
7244# Check for command to grab the raw symbol name followed by C symbol from nm.
7245echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7246echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7247if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7248  echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250
7251# These are sane defaults that work on at least a few old systems.
7252# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7253
7254# Character class describing NM global symbol codes.
7255symcode='[BCDEGRST]'
7256
7257# Regexp to match symbols that can be accessed directly from C.
7258sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7259
7260# Transform an extracted symbol line into a proper C declaration
7261lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7262
7263# Transform an extracted symbol line into symbol name and symbol address
7264lt_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'"
7265
7266# Define system-specific variables.
7267case $host_os in
7268aix*)
7269  symcode='[BCDT]'
7270  ;;
7271cygwin* | mingw* | pw32*)
7272  symcode='[ABCDGISTW]'
7273  ;;
7274hpux*) # Its linker distinguishes data from code symbols
7275  if test "$host_cpu" = ia64; then
7276    symcode='[ABCDEGRST]'
7277  fi
7278  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7279  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'"
7280  ;;
7281linux*)
7282  if test "$host_cpu" = ia64; then
7283    symcode='[ABCDGIRSTW]'
7284    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7285    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'"
7286  fi
7287  ;;
7288irix* | nonstopux*)
7289  symcode='[BCDEGRST]'
7290  ;;
7291osf*)
7292  symcode='[BCDEGQRST]'
7293  ;;
7294solaris*)
7295  symcode='[BDRT]'
7296  ;;
7297sco3.2v5*)
7298  symcode='[DT]'
7299  ;;
7300sysv4.2uw2*)
7301  symcode='[DT]'
7302  ;;
7303sysv5* | sco5v6* | unixware* | OpenUNIX*)
7304  symcode='[ABDT]'
7305  ;;
7306sysv4)
7307  symcode='[DFNSTU]'
7308  ;;
7309esac
7310
7311# Handle CRLF in mingw tool chain
7312opt_cr=
7313case $build_os in
7314mingw*)
7315  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7316  ;;
7317esac
7318
7319# If we're using GNU nm, then use its standard symbol codes.
7320case `$NM -V 2>&1` in
7321*GNU* | *'with BFD'*)
7322  symcode='[ABCDGIRSTW]' ;;
7323esac
7324
7325# Try without a prefix undercore, then with it.
7326for ac_symprfx in "" "_"; do
7327
7328  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7329  symxfrm="\\1 $ac_symprfx\\2 \\2"
7330
7331  # Write the raw and C identifiers.
7332  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7333
7334  # Check to see that the pipe works correctly.
7335  pipe_works=no
7336
7337  rm -f conftest*
7338  cat > conftest.$ac_ext <<EOF
7339#ifdef __cplusplus
7340extern "C" {
7341#endif
7342char nm_test_var;
7343void nm_test_func(){}
7344#ifdef __cplusplus
7345}
7346#endif
7347int main(){nm_test_var='a';nm_test_func();return(0);}
7348EOF
7349
7350  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351  (eval $ac_compile) 2>&5
7352  ac_status=$?
7353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354  (exit $ac_status); }; then
7355    # Now try to grab the symbols.
7356    nlist=conftest.nm
7357    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7358  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7359  ac_status=$?
7360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361  (exit $ac_status); } && test -s "$nlist"; then
7362      # Try sorting and uniquifying the output.
7363      if sort "$nlist" | uniq > "$nlist"T; then
7364        mv -f "$nlist"T "$nlist"
7365      else
7366        rm -f "$nlist"T
7367      fi
7368
7369      # Make sure that we snagged all the symbols we need.
7370      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7371        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7372          cat <<EOF > conftest.$ac_ext
7373#ifdef __cplusplus
7374extern "C" {
7375#endif
7376
7377EOF
7378          # Now generate the symbol file.
7379          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7380
7381          cat <<EOF >> conftest.$ac_ext
7382#if defined (__STDC__) && __STDC__
7383# define lt_ptr_t void *
7384#else
7385# define lt_ptr_t char *
7386# define const
7387#endif
7388
7389/* The mapping between symbol names and symbols. */
7390const struct {
7391  const char *name;
7392  lt_ptr_t address;
7393}
7394lt_preloaded_symbols[] =
7395{
7396EOF
7397          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7398          cat <<\EOF >> conftest.$ac_ext
7399  {0, (lt_ptr_t) 0}
7400};
7401
7402#ifdef __cplusplus
7403}
7404#endif
7405EOF
7406          # Now try linking the two files.
7407          mv conftest.$ac_objext conftstm.$ac_objext
7408          lt_save_LIBS="$LIBS"
7409          lt_save_CFLAGS="$CFLAGS"
7410          LIBS="conftstm.$ac_objext"
7411          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7412          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413  (eval $ac_link) 2>&5
7414  ac_status=$?
7415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7417            pipe_works=yes
7418          fi
7419          LIBS="$lt_save_LIBS"
7420          CFLAGS="$lt_save_CFLAGS"
7421        else
7422          echo "cannot find nm_test_func in $nlist" >&5
7423        fi
7424      else
7425        echo "cannot find nm_test_var in $nlist" >&5
7426      fi
7427    else
7428      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7429    fi
7430  else
7431    echo "$progname: failed program was:" >&5
7432    cat conftest.$ac_ext >&5
7433  fi
7434  rm -f conftest* conftst*
7435
7436  # Do not use the global_symbol_pipe unless it works.
7437  if test "$pipe_works" = yes; then
7438    break
7439  else
7440    lt_cv_sys_global_symbol_pipe=
7441  fi
7442done
7443
7444fi
7445
7446if test -z "$lt_cv_sys_global_symbol_pipe"; then
7447  lt_cv_sys_global_symbol_to_cdecl=
7448fi
7449if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7450  echo "$as_me:$LINENO: result: failed" >&5
7451echo "${ECHO_T}failed" >&6
7452else
7453  echo "$as_me:$LINENO: result: ok" >&5
7454echo "${ECHO_T}ok" >&6
7455fi
7456
7457echo "$as_me:$LINENO: checking for objdir" >&5
7458echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7459if test "${lt_cv_objdir+set}" = set; then
7460  echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462  rm -f .libs 2>/dev/null
7463mkdir .libs 2>/dev/null
7464if test -d .libs; then
7465  lt_cv_objdir=.libs
7466else
7467  # MS-DOS does not allow filenames that begin with a dot.
7468  lt_cv_objdir=_libs
7469fi
7470rmdir .libs 2>/dev/null
7471fi
7472echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7473echo "${ECHO_T}$lt_cv_objdir" >&6
7474objdir=$lt_cv_objdir
7475
7476
7477
7478
7479
7480case $host_os in
7481aix3*)
7482  # AIX sometimes has problems with the GCC collect2 program.  For some
7483  # reason, if we set the COLLECT_NAMES environment variable, the problems
7484  # vanish in a puff of smoke.
7485  if test "X${COLLECT_NAMES+set}" != Xset; then
7486    COLLECT_NAMES=
7487    export COLLECT_NAMES
7488  fi
7489  ;;
7490esac
7491
7492# Sed substitution that helps us do robust quoting.  It backslashifies
7493# metacharacters that are still active within double-quoted strings.
7494Xsed='sed -e 1s/^X//'
7495sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7496
7497# Same as above, but do not quote variable references.
7498double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7499
7500# Sed substitution to delay expansion of an escaped shell variable in a
7501# double_quote_subst'ed string.
7502delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7503
7504# Sed substitution to avoid accidental globbing in evaled expressions
7505no_glob_subst='s/\*/\\\*/g'
7506
7507# Constants:
7508rm="rm -f"
7509
7510# Global variables:
7511default_ofile=libtool
7512can_build_shared=yes
7513
7514# All known linkers require a `.a' archive for static linking (except MSVC,
7515# which needs '.lib').
7516libext=a
7517ltmain="$ac_aux_dir/ltmain.sh"
7518ofile="$default_ofile"
7519with_gnu_ld="$lt_cv_prog_gnu_ld"
7520
7521if test -n "$ac_tool_prefix"; then
7522  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7523set dummy ${ac_tool_prefix}ar; ac_word=$2
7524echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7526if test "${ac_cv_prog_AR+set}" = set; then
7527  echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529  if test -n "$AR"; then
7530  ac_cv_prog_AR="$AR" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535  IFS=$as_save_IFS
7536  test -z "$as_dir" && as_dir=.
7537  for ac_exec_ext in '' $ac_executable_extensions; do
7538  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539    ac_cv_prog_AR="${ac_tool_prefix}ar"
7540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541    break 2
7542  fi
7543done
7544done
7545
7546fi
7547fi
7548AR=$ac_cv_prog_AR
7549if test -n "$AR"; then
7550  echo "$as_me:$LINENO: result: $AR" >&5
7551echo "${ECHO_T}$AR" >&6
7552else
7553  echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6
7555fi
7556
7557fi
7558if test -z "$ac_cv_prog_AR"; then
7559  ac_ct_AR=$AR
7560  # Extract the first word of "ar", so it can be a program name with args.
7561set dummy ar; ac_word=$2
7562echo "$as_me:$LINENO: checking for $ac_word" >&5
7563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7564if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7565  echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567  if test -n "$ac_ct_AR"; then
7568  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7569else
7570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571for as_dir in $PATH
7572do
7573  IFS=$as_save_IFS
7574  test -z "$as_dir" && as_dir=.
7575  for ac_exec_ext in '' $ac_executable_extensions; do
7576  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7577    ac_cv_prog_ac_ct_AR="ar"
7578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579    break 2
7580  fi
7581done
7582done
7583
7584  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7585fi
7586fi
7587ac_ct_AR=$ac_cv_prog_ac_ct_AR
7588if test -n "$ac_ct_AR"; then
7589  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7590echo "${ECHO_T}$ac_ct_AR" >&6
7591else
7592  echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6
7594fi
7595
7596  AR=$ac_ct_AR
7597else
7598  AR="$ac_cv_prog_AR"
7599fi
7600
7601if test -n "$ac_tool_prefix"; then
7602  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7603set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7604echo "$as_me:$LINENO: checking for $ac_word" >&5
7605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7606if test "${ac_cv_prog_RANLIB+set}" = set; then
7607  echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609  if test -n "$RANLIB"; then
7610  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615  IFS=$as_save_IFS
7616  test -z "$as_dir" && as_dir=.
7617  for ac_exec_ext in '' $ac_executable_extensions; do
7618  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621    break 2
7622  fi
7623done
7624done
7625
7626fi
7627fi
7628RANLIB=$ac_cv_prog_RANLIB
7629if test -n "$RANLIB"; then
7630  echo "$as_me:$LINENO: result: $RANLIB" >&5
7631echo "${ECHO_T}$RANLIB" >&6
7632else
7633  echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6
7635fi
7636
7637fi
7638if test -z "$ac_cv_prog_RANLIB"; then
7639  ac_ct_RANLIB=$RANLIB
7640  # Extract the first word of "ranlib", so it can be a program name with args.
7641set dummy ranlib; ac_word=$2
7642echo "$as_me:$LINENO: checking for $ac_word" >&5
7643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7645  echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647  if test -n "$ac_ct_RANLIB"; then
7648  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653  IFS=$as_save_IFS
7654  test -z "$as_dir" && as_dir=.
7655  for ac_exec_ext in '' $ac_executable_extensions; do
7656  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657    ac_cv_prog_ac_ct_RANLIB="ranlib"
7658    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659    break 2
7660  fi
7661done
7662done
7663
7664  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7665fi
7666fi
7667ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7668if test -n "$ac_ct_RANLIB"; then
7669  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7670echo "${ECHO_T}$ac_ct_RANLIB" >&6
7671else
7672  echo "$as_me:$LINENO: result: no" >&5
7673echo "${ECHO_T}no" >&6
7674fi
7675
7676  RANLIB=$ac_ct_RANLIB
7677else
7678  RANLIB="$ac_cv_prog_RANLIB"
7679fi
7680
7681if test -n "$ac_tool_prefix"; then
7682  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7683set dummy ${ac_tool_prefix}strip; ac_word=$2
7684echo "$as_me:$LINENO: checking for $ac_word" >&5
7685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7686if test "${ac_cv_prog_STRIP+set}" = set; then
7687  echo $ECHO_N "(cached) $ECHO_C" >&6
7688else
7689  if test -n "$STRIP"; then
7690  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7691else
7692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693for as_dir in $PATH
7694do
7695  IFS=$as_save_IFS
7696  test -z "$as_dir" && as_dir=.
7697  for ac_exec_ext in '' $ac_executable_extensions; do
7698  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7699    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701    break 2
7702  fi
7703done
7704done
7705
7706fi
7707fi
7708STRIP=$ac_cv_prog_STRIP
7709if test -n "$STRIP"; then
7710  echo "$as_me:$LINENO: result: $STRIP" >&5
7711echo "${ECHO_T}$STRIP" >&6
7712else
7713  echo "$as_me:$LINENO: result: no" >&5
7714echo "${ECHO_T}no" >&6
7715fi
7716
7717fi
7718if test -z "$ac_cv_prog_STRIP"; then
7719  ac_ct_STRIP=$STRIP
7720  # Extract the first word of "strip", so it can be a program name with args.
7721set dummy strip; ac_word=$2
7722echo "$as_me:$LINENO: checking for $ac_word" >&5
7723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7724if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7725  echo $ECHO_N "(cached) $ECHO_C" >&6
7726else
7727  if test -n "$ac_ct_STRIP"; then
7728  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7729else
7730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731for as_dir in $PATH
7732do
7733  IFS=$as_save_IFS
7734  test -z "$as_dir" && as_dir=.
7735  for ac_exec_ext in '' $ac_executable_extensions; do
7736  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7737    ac_cv_prog_ac_ct_STRIP="strip"
7738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739    break 2
7740  fi
7741done
7742done
7743
7744  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7745fi
7746fi
7747ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7748if test -n "$ac_ct_STRIP"; then
7749  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7750echo "${ECHO_T}$ac_ct_STRIP" >&6
7751else
7752  echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6
7754fi
7755
7756  STRIP=$ac_ct_STRIP
7757else
7758  STRIP="$ac_cv_prog_STRIP"
7759fi
7760
7761
7762old_CC="$CC"
7763old_CFLAGS="$CFLAGS"
7764
7765# Set sane defaults for various variables
7766test -z "$AR" && AR=ar
7767test -z "$AR_FLAGS" && AR_FLAGS=cru
7768test -z "$AS" && AS=as
7769test -z "$CC" && CC=cc
7770test -z "$LTCC" && LTCC=$CC
7771test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7772test -z "$DLLTOOL" && DLLTOOL=dlltool
7773test -z "$LD" && LD=ld
7774test -z "$LN_S" && LN_S="ln -s"
7775test -z "$MAGIC_CMD" && MAGIC_CMD=file
7776test -z "$NM" && NM=nm
7777test -z "$SED" && SED=sed
7778test -z "$OBJDUMP" && OBJDUMP=objdump
7779test -z "$RANLIB" && RANLIB=:
7780test -z "$STRIP" && STRIP=:
7781test -z "$ac_objext" && ac_objext=o
7782
7783# Determine commands to create old-style static archives.
7784old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7785old_postinstall_cmds='chmod 644 $oldlib'
7786old_postuninstall_cmds=
7787
7788if test -n "$RANLIB"; then
7789  case $host_os in
7790  openbsd*)
7791    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7792    ;;
7793  *)
7794    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7795    ;;
7796  esac
7797  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7798fi
7799
7800for cc_temp in $compiler""; do
7801  case $cc_temp in
7802    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7803    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7804    \-*) ;;
7805    *) break;;
7806  esac
7807done
7808cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7809
7810
7811# Only perform the check for file, if the check method requires it
7812case $deplibs_check_method in
7813file_magic*)
7814  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7815    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7816echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7817if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7818  echo $ECHO_N "(cached) $ECHO_C" >&6
7819else
7820  case $MAGIC_CMD in
7821[\\/*] |  ?:[\\/]*)
7822  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7823  ;;
7824*)
7825  lt_save_MAGIC_CMD="$MAGIC_CMD"
7826  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7827  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7828  for ac_dir in $ac_dummy; do
7829    IFS="$lt_save_ifs"
7830    test -z "$ac_dir" && ac_dir=.
7831    if test -f $ac_dir/${ac_tool_prefix}file; then
7832      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7833      if test -n "$file_magic_test_file"; then
7834        case $deplibs_check_method in
7835        "file_magic "*)
7836          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7837          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7838          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7839            $EGREP "$file_magic_regex" > /dev/null; then
7840            :
7841          else
7842            cat <<EOF 1>&2
7843
7844*** Warning: the command libtool uses to detect shared libraries,
7845*** $file_magic_cmd, produces output that libtool cannot recognize.
7846*** The result is that libtool may fail to recognize shared libraries
7847*** as such.  This will affect the creation of libtool libraries that
7848*** depend on shared libraries, but programs linked with such libtool
7849*** libraries will work regardless of this problem.  Nevertheless, you
7850*** may want to report the problem to your system manager and/or to
7851*** bug-libtool@gnu.org
7852
7853EOF
7854          fi ;;
7855        esac
7856      fi
7857      break
7858    fi
7859  done
7860  IFS="$lt_save_ifs"
7861  MAGIC_CMD="$lt_save_MAGIC_CMD"
7862  ;;
7863esac
7864fi
7865
7866MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7867if test -n "$MAGIC_CMD"; then
7868  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7869echo "${ECHO_T}$MAGIC_CMD" >&6
7870else
7871  echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
7873fi
7874
7875if test -z "$lt_cv_path_MAGIC_CMD"; then
7876  if test -n "$ac_tool_prefix"; then
7877    echo "$as_me:$LINENO: checking for file" >&5
7878echo $ECHO_N "checking for file... $ECHO_C" >&6
7879if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7880  echo $ECHO_N "(cached) $ECHO_C" >&6
7881else
7882  case $MAGIC_CMD in
7883[\\/*] |  ?:[\\/]*)
7884  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7885  ;;
7886*)
7887  lt_save_MAGIC_CMD="$MAGIC_CMD"
7888  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7889  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7890  for ac_dir in $ac_dummy; do
7891    IFS="$lt_save_ifs"
7892    test -z "$ac_dir" && ac_dir=.
7893    if test -f $ac_dir/file; then
7894      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7895      if test -n "$file_magic_test_file"; then
7896        case $deplibs_check_method in
7897        "file_magic "*)
7898          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7899          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7901            $EGREP "$file_magic_regex" > /dev/null; then
7902            :
7903          else
7904            cat <<EOF 1>&2
7905
7906*** Warning: the command libtool uses to detect shared libraries,
7907*** $file_magic_cmd, produces output that libtool cannot recognize.
7908*** The result is that libtool may fail to recognize shared libraries
7909*** as such.  This will affect the creation of libtool libraries that
7910*** depend on shared libraries, but programs linked with such libtool
7911*** libraries will work regardless of this problem.  Nevertheless, you
7912*** may want to report the problem to your system manager and/or to
7913*** bug-libtool@gnu.org
7914
7915EOF
7916          fi ;;
7917        esac
7918      fi
7919      break
7920    fi
7921  done
7922  IFS="$lt_save_ifs"
7923  MAGIC_CMD="$lt_save_MAGIC_CMD"
7924  ;;
7925esac
7926fi
7927
7928MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7929if test -n "$MAGIC_CMD"; then
7930  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7931echo "${ECHO_T}$MAGIC_CMD" >&6
7932else
7933  echo "$as_me:$LINENO: result: no" >&5
7934echo "${ECHO_T}no" >&6
7935fi
7936
7937  else
7938    MAGIC_CMD=:
7939  fi
7940fi
7941
7942  fi
7943  ;;
7944esac
7945
7946enable_dlopen=no
7947enable_win32_dll=no
7948
7949# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7950if test "${enable_libtool_lock+set}" = set; then
7951  enableval="$enable_libtool_lock"
7952
7953fi;
7954test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7955
7956
7957# Check whether --with-pic or --without-pic was given.
7958if test "${with_pic+set}" = set; then
7959  withval="$with_pic"
7960  pic_mode="$withval"
7961else
7962  pic_mode=default
7963fi;
7964test -z "$pic_mode" && pic_mode=default
7965
7966# Use C for the default configuration in the libtool script
7967tagname=
7968lt_save_CC="$CC"
7969ac_ext=c
7970ac_cpp='$CPP $CPPFLAGS'
7971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974
7975
7976# Source file extension for C test sources.
7977ac_ext=c
7978
7979# Object file extension for compiled C test sources.
7980objext=o
7981objext=$objext
7982
7983# Code to be used in simple compile tests
7984lt_simple_compile_test_code="int some_variable = 0;\n"
7985
7986# Code to be used in simple link tests
7987lt_simple_link_test_code='int main(){return(0);}\n'
7988
7989
7990# If no C compiler was specified, use CC.
7991LTCC=${LTCC-"$CC"}
7992
7993# If no C compiler flags were specified, use CFLAGS.
7994LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7995
7996# Allow CC to be a program name with arguments.
7997compiler=$CC
7998
7999
8000# save warnings/boilerplate of simple test code
8001ac_outfile=conftest.$ac_objext
8002printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8003eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8004_lt_compiler_boilerplate=`cat conftest.err`
8005$rm conftest*
8006
8007ac_outfile=conftest.$ac_objext
8008printf "$lt_simple_link_test_code" >conftest.$ac_ext
8009eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8010_lt_linker_boilerplate=`cat conftest.err`
8011$rm conftest*
8012
8013
8014## CAVEAT EMPTOR:
8015## There is no encapsulation within the following macros, do not change
8016## the running order or otherwise move them around unless you know exactly
8017## what you are doing...
8018
8019lt_prog_compiler_no_builtin_flag=
8020
8021if test "$GCC" = yes; then
8022  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8023
8024
8025echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8026echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8027if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8028  echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030  lt_cv_prog_compiler_rtti_exceptions=no
8031  ac_outfile=conftest.$ac_objext
8032   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8033   lt_compiler_flag="-fno-rtti -fno-exceptions"
8034   # Insert the option either (1) after the last *FLAGS variable, or
8035   # (2) before a word containing "conftest.", or (3) at the end.
8036   # Note that $ac_compile itself does not contain backslashes and begins
8037   # with a dollar sign (not a hyphen), so the echo should work correctly.
8038   # The option is referenced via a variable to avoid confusing sed.
8039   lt_compile=`echo "$ac_compile" | $SED \
8040   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8041   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8042   -e 's:$: $lt_compiler_flag:'`
8043   (eval echo "\"\$as_me:8043: $lt_compile\"" >&5)
8044   (eval "$lt_compile" 2>conftest.err)
8045   ac_status=$?
8046   cat conftest.err >&5
8047   echo "$as_me:8047: \$? = $ac_status" >&5
8048   if (exit $ac_status) && test -s "$ac_outfile"; then
8049     # The compiler can only warn and ignore the option if not recognized
8050     # So say no if there are warnings other than the usual output.
8051     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8052     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8053     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8054       lt_cv_prog_compiler_rtti_exceptions=yes
8055     fi
8056   fi
8057   $rm conftest*
8058
8059fi
8060echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8061echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8062
8063if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8064    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8065else
8066    :
8067fi
8068
8069fi
8070
8071lt_prog_compiler_wl=
8072lt_prog_compiler_pic=
8073lt_prog_compiler_static=
8074
8075echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8076echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8077
8078  if test "$GCC" = yes; then
8079    lt_prog_compiler_wl='-Wl,'
8080    lt_prog_compiler_static='-static'
8081
8082    case $host_os in
8083      aix*)
8084      # All AIX code is PIC.
8085      if test "$host_cpu" = ia64; then
8086        # AIX 5 now supports IA64 processor
8087        lt_prog_compiler_static='-Bstatic'
8088      fi
8089      ;;
8090
8091    amigaos*)
8092      # FIXME: we need at least 68020 code to build shared libraries, but
8093      # adding the `-m68020' flag to GCC prevents building anything better,
8094      # like `-m68040'.
8095      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8096      ;;
8097
8098    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8099      # PIC is the default for these OSes.
8100      ;;
8101
8102    mingw* | pw32* | os2*)
8103      # This hack is so that the source file can tell whether it is being
8104      # built for inclusion in a dll (and should export symbols for example).
8105      lt_prog_compiler_pic='-DDLL_EXPORT'
8106      ;;
8107
8108    darwin* | rhapsody*)
8109      # PIC is the default on this platform
8110      # Common symbols not allowed in MH_DYLIB files
8111      lt_prog_compiler_pic='-fno-common'
8112      ;;
8113
8114    interix3*)
8115      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8116      # Instead, we relocate shared libraries at runtime.
8117      ;;
8118
8119    msdosdjgpp*)
8120      # Just because we use GCC doesn't mean we suddenly get shared libraries
8121      # on systems that don't support them.
8122      lt_prog_compiler_can_build_shared=no
8123      enable_shared=no
8124      ;;
8125
8126    sysv4*MP*)
8127      if test -d /usr/nec; then
8128        lt_prog_compiler_pic=-Kconform_pic
8129      fi
8130      ;;
8131
8132    hpux*)
8133      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8134      # not for PA HP-UX.
8135      case $host_cpu in
8136      hppa*64*|ia64*)
8137        # +Z the default
8138        ;;
8139      *)
8140        lt_prog_compiler_pic='-fPIC'
8141        ;;
8142      esac
8143      ;;
8144
8145    *)
8146      lt_prog_compiler_pic='-fPIC'
8147      ;;
8148    esac
8149  else
8150    # PORTME Check for flag to pass linker flags through the system compiler.
8151    case $host_os in
8152    aix*)
8153      lt_prog_compiler_wl='-Wl,'
8154      if test "$host_cpu" = ia64; then
8155        # AIX 5 now supports IA64 processor
8156        lt_prog_compiler_static='-Bstatic'
8157      else
8158        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8159      fi
8160      ;;
8161      darwin*)
8162        # PIC is the default on this platform
8163        # Common symbols not allowed in MH_DYLIB files
8164       case $cc_basename in
8165         xlc*)
8166         lt_prog_compiler_pic='-qnocommon'
8167         lt_prog_compiler_wl='-Wl,'
8168         ;;
8169       esac
8170       ;;
8171
8172    mingw* | pw32* | os2*)
8173      # This hack is so that the source file can tell whether it is being
8174      # built for inclusion in a dll (and should export symbols for example).
8175      lt_prog_compiler_pic='-DDLL_EXPORT'
8176      ;;
8177
8178    hpux9* | hpux10* | hpux11*)
8179      lt_prog_compiler_wl='-Wl,'
8180      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8181      # not for PA HP-UX.
8182      case $host_cpu in
8183      hppa*64*|ia64*)
8184        # +Z the default
8185        ;;
8186      *)
8187        lt_prog_compiler_pic='+Z'
8188        ;;
8189      esac
8190      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8191      lt_prog_compiler_static='${wl}-a ${wl}archive'
8192      ;;
8193
8194    irix5* | irix6* | nonstopux*)
8195      lt_prog_compiler_wl='-Wl,'
8196      # PIC (with -KPIC) is the default.
8197      lt_prog_compiler_static='-non_shared'
8198      ;;
8199
8200    newsos6)
8201      lt_prog_compiler_pic='-KPIC'
8202      lt_prog_compiler_static='-Bstatic'
8203      ;;
8204
8205    linux*)
8206      case $cc_basename in
8207      icc* | ecc*)
8208        lt_prog_compiler_wl='-Wl,'
8209        lt_prog_compiler_pic='-KPIC'
8210        lt_prog_compiler_static='-static'
8211        ;;
8212      pgcc* | pgf77* | pgf90* | pgf95*)
8213        # Portland Group compilers (*not* the Pentium gcc compiler,
8214        # which looks to be a dead project)
8215        lt_prog_compiler_wl='-Wl,'
8216        lt_prog_compiler_pic='-fpic'
8217        lt_prog_compiler_static='-Bstatic'
8218        ;;
8219      ccc*)
8220        lt_prog_compiler_wl='-Wl,'
8221        # All Alpha code is PIC.
8222        lt_prog_compiler_static='-non_shared'
8223        ;;
8224      esac
8225      ;;
8226
8227    osf3* | osf4* | osf5*)
8228      lt_prog_compiler_wl='-Wl,'
8229      # All OSF/1 code is PIC.
8230      lt_prog_compiler_static='-non_shared'
8231      ;;
8232
8233    solaris*)
8234      lt_prog_compiler_pic='-KPIC'
8235      lt_prog_compiler_static='-Bstatic'
8236      case $cc_basename in
8237      f77* | f90* | f95*)
8238        lt_prog_compiler_wl='-Qoption ld ';;
8239      *)
8240        lt_prog_compiler_wl='-Wl,';;
8241      esac
8242      ;;
8243
8244    sunos4*)
8245      lt_prog_compiler_wl='-Qoption ld '
8246      lt_prog_compiler_pic='-PIC'
8247      lt_prog_compiler_static='-Bstatic'
8248      ;;
8249
8250    sysv4 | sysv4.2uw2* | sysv4.3*)
8251      lt_prog_compiler_wl='-Wl,'
8252      lt_prog_compiler_pic='-KPIC'
8253      lt_prog_compiler_static='-Bstatic'
8254      ;;
8255
8256    sysv4*MP*)
8257      if test -d /usr/nec ;then
8258        lt_prog_compiler_pic='-Kconform_pic'
8259        lt_prog_compiler_static='-Bstatic'
8260      fi
8261      ;;
8262
8263    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8264      lt_prog_compiler_wl='-Wl,'
8265      lt_prog_compiler_pic='-KPIC'
8266      lt_prog_compiler_static='-Bstatic'
8267      ;;
8268
8269    unicos*)
8270      lt_prog_compiler_wl='-Wl,'
8271      lt_prog_compiler_can_build_shared=no
8272      ;;
8273
8274    uts4*)
8275      lt_prog_compiler_pic='-pic'
8276      lt_prog_compiler_static='-Bstatic'
8277      ;;
8278
8279    *)
8280      lt_prog_compiler_can_build_shared=no
8281      ;;
8282    esac
8283  fi
8284
8285echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8286echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8287
8288#
8289# Check to make sure the PIC flag actually works.
8290#
8291if test -n "$lt_prog_compiler_pic"; then
8292
8293echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8294echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8295if test "${lt_prog_compiler_pic_works+set}" = set; then
8296  echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298  lt_prog_compiler_pic_works=no
8299  ac_outfile=conftest.$ac_objext
8300   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8301   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8302   # Insert the option either (1) after the last *FLAGS variable, or
8303   # (2) before a word containing "conftest.", or (3) at the end.
8304   # Note that $ac_compile itself does not contain backslashes and begins
8305   # with a dollar sign (not a hyphen), so the echo should work correctly.
8306   # The option is referenced via a variable to avoid confusing sed.
8307   lt_compile=`echo "$ac_compile" | $SED \
8308   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8309   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8310   -e 's:$: $lt_compiler_flag:'`
8311   (eval echo "\"\$as_me:8311: $lt_compile\"" >&5)
8312   (eval "$lt_compile" 2>conftest.err)
8313   ac_status=$?
8314   cat conftest.err >&5
8315   echo "$as_me:8315: \$? = $ac_status" >&5
8316   if (exit $ac_status) && test -s "$ac_outfile"; then
8317     # The compiler can only warn and ignore the option if not recognized
8318     # So say no if there are warnings other than the usual output.
8319     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8320     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8321     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8322       lt_prog_compiler_pic_works=yes
8323     fi
8324   fi
8325   $rm conftest*
8326
8327fi
8328echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8329echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8330
8331if test x"$lt_prog_compiler_pic_works" = xyes; then
8332    case $lt_prog_compiler_pic in
8333     "" | " "*) ;;
8334     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8335     esac
8336else
8337    lt_prog_compiler_pic=
8338     lt_prog_compiler_can_build_shared=no
8339fi
8340
8341fi
8342case $host_os in
8343  # For platforms which do not support PIC, -DPIC is meaningless:
8344  *djgpp*)
8345    lt_prog_compiler_pic=
8346    ;;
8347  *)
8348    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8349    ;;
8350esac
8351
8352#
8353# Check to make sure the static flag actually works.
8354#
8355wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8356echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8357echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8358if test "${lt_prog_compiler_static_works+set}" = set; then
8359  echo $ECHO_N "(cached) $ECHO_C" >&6
8360else
8361  lt_prog_compiler_static_works=no
8362   save_LDFLAGS="$LDFLAGS"
8363   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8364   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8365   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8366     # The linker can only warn and ignore the option if not recognized
8367     # So say no if there are warnings
8368     if test -s conftest.err; then
8369       # Append any errors to the config.log.
8370       cat conftest.err 1>&5
8371       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8372       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8373       if diff conftest.exp conftest.er2 >/dev/null; then
8374         lt_prog_compiler_static_works=yes
8375       fi
8376     else
8377       lt_prog_compiler_static_works=yes
8378     fi
8379   fi
8380   $rm conftest*
8381   LDFLAGS="$save_LDFLAGS"
8382
8383fi
8384echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8385echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8386
8387if test x"$lt_prog_compiler_static_works" = xyes; then
8388    :
8389else
8390    lt_prog_compiler_static=
8391fi
8392
8393
8394echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8395echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8396if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8397  echo $ECHO_N "(cached) $ECHO_C" >&6
8398else
8399  lt_cv_prog_compiler_c_o=no
8400   $rm -r conftest 2>/dev/null
8401   mkdir conftest
8402   cd conftest
8403   mkdir out
8404   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8405
8406   lt_compiler_flag="-o out/conftest2.$ac_objext"
8407   # Insert the option either (1) after the last *FLAGS variable, or
8408   # (2) before a word containing "conftest.", or (3) at the end.
8409   # Note that $ac_compile itself does not contain backslashes and begins
8410   # with a dollar sign (not a hyphen), so the echo should work correctly.
8411   lt_compile=`echo "$ac_compile" | $SED \
8412   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8413   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8414   -e 's:$: $lt_compiler_flag:'`
8415   (eval echo "\"\$as_me:8415: $lt_compile\"" >&5)
8416   (eval "$lt_compile" 2>out/conftest.err)
8417   ac_status=$?
8418   cat out/conftest.err >&5
8419   echo "$as_me:8419: \$? = $ac_status" >&5
8420   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8421   then
8422     # The compiler can only warn and ignore the option if not recognized
8423     # So say no if there are warnings
8424     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8425     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8426     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8427       lt_cv_prog_compiler_c_o=yes
8428     fi
8429   fi
8430   chmod u+w . 2>&5
8431   $rm conftest*
8432   # SGI C++ compiler will create directory out/ii_files/ for
8433   # template instantiation
8434   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8435   $rm out/* && rmdir out
8436   cd ..
8437   rmdir conftest
8438   $rm conftest*
8439
8440fi
8441echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8442echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8443
8444
8445hard_links="nottested"
8446if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8447  # do not overwrite the value of need_locks provided by the user
8448  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8449echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8450  hard_links=yes
8451  $rm conftest*
8452  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8453  touch conftest.a
8454  ln conftest.a conftest.b 2>&5 || hard_links=no
8455  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456  echo "$as_me:$LINENO: result: $hard_links" >&5
8457echo "${ECHO_T}$hard_links" >&6
8458  if test "$hard_links" = no; then
8459    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8460echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8461    need_locks=warn
8462  fi
8463else
8464  need_locks=no
8465fi
8466
8467echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8468echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8469
8470  runpath_var=
8471  allow_undefined_flag=
8472  enable_shared_with_static_runtimes=no
8473  archive_cmds=
8474  archive_expsym_cmds=
8475  old_archive_From_new_cmds=
8476  old_archive_from_expsyms_cmds=
8477  export_dynamic_flag_spec=
8478  whole_archive_flag_spec=
8479  thread_safe_flag_spec=
8480  hardcode_libdir_flag_spec=
8481  hardcode_libdir_flag_spec_ld=
8482  hardcode_libdir_separator=
8483  hardcode_direct=no
8484  hardcode_minus_L=no
8485  hardcode_shlibpath_var=unsupported
8486  link_all_deplibs=unknown
8487  hardcode_automatic=no
8488  module_cmds=
8489  module_expsym_cmds=
8490  always_export_symbols=no
8491  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8492  # include_expsyms should be a list of space-separated symbols to be *always*
8493  # included in the symbol list
8494  include_expsyms=
8495  # exclude_expsyms can be an extended regexp of symbols to exclude
8496  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8497  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8498  # as well as any symbol that contains `d'.
8499  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8500  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8501  # platforms (ab)use it in PIC code, but their linkers get confused if
8502  # the symbol is explicitly referenced.  Since portable code cannot
8503  # rely on this symbol name, it's probably fine to never include it in
8504  # preloaded symbol tables.
8505  extract_expsyms_cmds=
8506  # Just being paranoid about ensuring that cc_basename is set.
8507  for cc_temp in $compiler""; do
8508  case $cc_temp in
8509    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8510    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8511    \-*) ;;
8512    *) break;;
8513  esac
8514done
8515cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8516
8517  case $host_os in
8518  cygwin* | mingw* | pw32*)
8519    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8520    # When not using gcc, we currently assume that we are using
8521    # Microsoft Visual C++.
8522    if test "$GCC" != yes; then
8523      with_gnu_ld=no
8524    fi
8525    ;;
8526  interix*)
8527    # we just hope/assume this is gcc and not c89 (= MSVC++)
8528    with_gnu_ld=yes
8529    ;;
8530  openbsd*)
8531    with_gnu_ld=no
8532    ;;
8533  esac
8534
8535  ld_shlibs=yes
8536  if test "$with_gnu_ld" = yes; then
8537    # If archive_cmds runs LD, not CC, wlarc should be empty
8538    wlarc='${wl}'
8539
8540    # Set some defaults for GNU ld with shared library support. These
8541    # are reset later if shared libraries are not supported. Putting them
8542    # here allows them to be overridden if necessary.
8543    runpath_var=LD_RUN_PATH
8544    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8545    export_dynamic_flag_spec='${wl}--export-dynamic'
8546    # ancient GNU ld didn't support --whole-archive et. al.
8547    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8548        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8549      else
8550        whole_archive_flag_spec=
8551    fi
8552    supports_anon_versioning=no
8553    case `$LD -v 2>/dev/null` in
8554      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8555      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8556      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8557      *\ 2.11.*) ;; # other 2.11 versions
8558      *) supports_anon_versioning=yes ;;
8559    esac
8560
8561    # See if GNU ld supports shared libraries.
8562    case $host_os in
8563    aix3* | aix4* | aix5*)
8564      # On AIX/PPC, the GNU linker is very broken
8565      if test "$host_cpu" != ia64; then
8566        ld_shlibs=no
8567        cat <<EOF 1>&2
8568
8569*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8570*** to be unable to reliably create shared libraries on AIX.
8571*** Therefore, libtool is disabling shared libraries support.  If you
8572*** really care for shared libraries, you may want to modify your PATH
8573*** so that a non-GNU linker is found, and then restart.
8574
8575EOF
8576      fi
8577      ;;
8578
8579    amigaos*)
8580      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)'
8581      hardcode_libdir_flag_spec='-L$libdir'
8582      hardcode_minus_L=yes
8583
8584      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8585      # that the semantics of dynamic libraries on AmigaOS, at least up
8586      # to version 4, is to share data among multiple programs linked
8587      # with the same dynamic library.  Since this doesn't match the
8588      # behavior of shared libraries on other platforms, we can't use
8589      # them.
8590      ld_shlibs=no
8591      ;;
8592
8593    beos*)
8594      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8595        allow_undefined_flag=unsupported
8596        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8597        # support --undefined.  This deserves some investigation.  FIXME
8598        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599      else
8600        ld_shlibs=no
8601      fi
8602      ;;
8603
8604    cygwin* | mingw* | pw32*)
8605      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8606      # as there is no search path for DLLs.
8607      hardcode_libdir_flag_spec='-L$libdir'
8608      allow_undefined_flag=unsupported
8609      always_export_symbols=no
8610      enable_shared_with_static_runtimes=yes
8611      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8612
8613      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8614        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8615        # If the export-symbols file already is a .def file (1st line
8616        # is EXPORTS), use it as is; otherwise, prepend...
8617        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8618          cp $export_symbols $output_objdir/$soname.def;
8619        else
8620          echo EXPORTS > $output_objdir/$soname.def;
8621          cat $export_symbols >> $output_objdir/$soname.def;
8622        fi~
8623        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8624      else
8625        ld_shlibs=no
8626      fi
8627      ;;
8628
8629    interix3*)
8630      hardcode_direct=no
8631      hardcode_shlibpath_var=no
8632      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633      export_dynamic_flag_spec='${wl}-E'
8634      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8635      # Instead, shared libraries are loaded at an image base (0x10000000 by
8636      # default) and relocated if they conflict, which is a slow very memory
8637      # consuming and fragmenting process.  To avoid this, we pick a random,
8638      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8639      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8640      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8641      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'
8642      ;;
8643
8644    linux*)
8645      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8646        tmp_addflag=
8647        case $cc_basename,$host_cpu in
8648        pgcc*)                          # Portland Group C compiler
8649          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'
8650          tmp_addflag=' $pic_flag'
8651          ;;
8652        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8653          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'
8654          tmp_addflag=' $pic_flag -Mnomain' ;;
8655        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8656          tmp_addflag=' -i_dynamic' ;;
8657        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8658          tmp_addflag=' -i_dynamic -nofor_main' ;;
8659        ifc* | ifort*)                  # Intel Fortran compiler
8660          tmp_addflag=' -nofor_main' ;;
8661        esac
8662        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663
8664        if test $supports_anon_versioning = yes; then
8665          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8666  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8667  $echo "local: *; };" >> $output_objdir/$libname.ver~
8668          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8669        fi
8670      else
8671        ld_shlibs=no
8672      fi
8673      ;;
8674
8675    netbsd*)
8676      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8677        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8678        wlarc=
8679      else
8680        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8682      fi
8683      ;;
8684
8685    solaris*)
8686      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8687        ld_shlibs=no
8688        cat <<EOF 1>&2
8689
8690*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8691*** create shared libraries on Solaris systems.  Therefore, libtool
8692*** is disabling shared libraries support.  We urge you to upgrade GNU
8693*** binutils to release 2.9.1 or newer.  Another option is to modify
8694*** your PATH or compiler configuration so that the native linker is
8695*** used, and then restart.
8696
8697EOF
8698      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8699        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8701      else
8702        ld_shlibs=no
8703      fi
8704      ;;
8705
8706    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8707      case `$LD -v 2>&1` in
8708        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8709        ld_shlibs=no
8710        cat <<_LT_EOF 1>&2
8711
8712*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8713*** reliably create shared libraries on SCO systems.  Therefore, libtool
8714*** is disabling shared libraries support.  We urge you to upgrade GNU
8715*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8716*** your PATH or compiler configuration so that the native linker is
8717*** used, and then restart.
8718
8719_LT_EOF
8720        ;;
8721        *)
8722          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8723            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8724            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8725            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8726          else
8727            ld_shlibs=no
8728          fi
8729        ;;
8730      esac
8731      ;;
8732
8733    sunos4*)
8734      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8735      wlarc=
8736      hardcode_direct=yes
8737      hardcode_shlibpath_var=no
8738      ;;
8739
8740    *)
8741      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8742        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8744      else
8745        ld_shlibs=no
8746      fi
8747      ;;
8748    esac
8749
8750    if test "$ld_shlibs" = no; then
8751      runpath_var=
8752      hardcode_libdir_flag_spec=
8753      export_dynamic_flag_spec=
8754      whole_archive_flag_spec=
8755    fi
8756  else
8757    # PORTME fill in a description of your system's linker (not GNU ld)
8758    case $host_os in
8759    aix3*)
8760      allow_undefined_flag=unsupported
8761      always_export_symbols=yes
8762      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'
8763      # Note: this linker hardcodes the directories in LIBPATH if there
8764      # are no directories specified by -L.
8765      hardcode_minus_L=yes
8766      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8767        # Neither direct hardcoding nor static linking is supported with a
8768        # broken collect2.
8769        hardcode_direct=unsupported
8770      fi
8771      ;;
8772
8773    aix4* | aix5*)
8774      if test "$host_cpu" = ia64; then
8775        # On IA64, the linker does run time linking by default, so we don't
8776        # have to do anything special.
8777        aix_use_runtimelinking=no
8778        exp_sym_flag='-Bexport'
8779        no_entry_flag=""
8780      else
8781        # If we're using GNU nm, then we don't want the "-C" option.
8782        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8783        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8784          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'
8785        else
8786          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'
8787        fi
8788        aix_use_runtimelinking=no
8789
8790        # Test if we are trying to use run time linking or normal
8791        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8792        # need to do runtime linking.
8793        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8794          for ld_flag in $LDFLAGS; do
8795          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8796            aix_use_runtimelinking=yes
8797            break
8798          fi
8799          done
8800          ;;
8801        esac
8802
8803        exp_sym_flag='-bexport'
8804        no_entry_flag='-bnoentry'
8805      fi
8806
8807      # When large executables or shared objects are built, AIX ld can
8808      # have problems creating the table of contents.  If linking a library
8809      # or program results in "error TOC overflow" add -mminimal-toc to
8810      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8811      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8812
8813      archive_cmds=''
8814      hardcode_direct=yes
8815      hardcode_libdir_separator=':'
8816      link_all_deplibs=yes
8817
8818      if test "$GCC" = yes; then
8819        case $host_os in aix4.[012]|aix4.[012].*)
8820        # We only want to do this on AIX 4.2 and lower, the check
8821        # below for broken collect2 doesn't work under 4.3+
8822          collect2name=`${CC} -print-prog-name=collect2`
8823          if test -f "$collect2name" && \
8824           strings "$collect2name" | grep resolve_lib_name >/dev/null
8825          then
8826          # We have reworked collect2
8827          hardcode_direct=yes
8828          else
8829          # We have old collect2
8830          hardcode_direct=unsupported
8831          # It fails to find uninstalled libraries when the uninstalled
8832          # path is not listed in the libpath.  Setting hardcode_minus_L
8833          # to unsupported forces relinking
8834          hardcode_minus_L=yes
8835          hardcode_libdir_flag_spec='-L$libdir'
8836          hardcode_libdir_separator=
8837          fi
8838          ;;
8839        esac
8840        shared_flag='-shared'
8841        if test "$aix_use_runtimelinking" = yes; then
8842          shared_flag="$shared_flag "'${wl}-G'
8843        fi
8844      else
8845        # not using gcc
8846        if test "$host_cpu" = ia64; then
8847        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8848        # chokes on -Wl,-G. The following line is correct:
8849          shared_flag='-G'
8850        else
8851          if test "$aix_use_runtimelinking" = yes; then
8852            shared_flag='${wl}-G'
8853          else
8854            shared_flag='${wl}-bM:SRE'
8855          fi
8856        fi
8857      fi
8858
8859      # It seems that -bexpall does not export symbols beginning with
8860      # underscore (_), so it is better to generate a list of symbols to export.
8861      always_export_symbols=yes
8862      if test "$aix_use_runtimelinking" = yes; then
8863        # Warning - without using the other runtime loading flags (-brtl),
8864        # -berok will link without error, but may produce a broken library.
8865        allow_undefined_flag='-berok'
8866       # Determine the default libpath from the value encoded in an empty executable.
8867       cat >conftest.$ac_ext <<_ACEOF
8868/* confdefs.h.  */
8869_ACEOF
8870cat confdefs.h >>conftest.$ac_ext
8871cat >>conftest.$ac_ext <<_ACEOF
8872/* end confdefs.h.  */
8873
8874int
8875main ()
8876{
8877
8878  ;
8879  return 0;
8880}
8881_ACEOF
8882rm -f conftest.$ac_objext conftest$ac_exeext
8883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884  (eval $ac_link) 2>conftest.er1
8885  ac_status=$?
8886  grep -v '^ *+' conftest.er1 >conftest.err
8887  rm -f conftest.er1
8888  cat conftest.err >&5
8889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890  (exit $ac_status); } &&
8891         { ac_try='test -z "$ac_c_werror_flag"
8892                         || test ! -s conftest.err'
8893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894  (eval $ac_try) 2>&5
8895  ac_status=$?
8896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897  (exit $ac_status); }; } &&
8898         { ac_try='test -s conftest$ac_exeext'
8899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900  (eval $ac_try) 2>&5
8901  ac_status=$?
8902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903  (exit $ac_status); }; }; then
8904
8905aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8906}'`
8907# Check for a 64-bit object if we didn't find anything.
8908if 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; }
8909}'`; fi
8910else
8911  echo "$as_me: failed program was:" >&5
8912sed 's/^/| /' conftest.$ac_ext >&5
8913
8914fi
8915rm -f conftest.err conftest.$ac_objext \
8916      conftest$ac_exeext conftest.$ac_ext
8917if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8918
8919       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8920        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"
8921       else
8922        if test "$host_cpu" = ia64; then
8923          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8924          allow_undefined_flag="-z nodefs"
8925          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"
8926        else
8927         # Determine the default libpath from the value encoded in an empty executable.
8928         cat >conftest.$ac_ext <<_ACEOF
8929/* confdefs.h.  */
8930_ACEOF
8931cat confdefs.h >>conftest.$ac_ext
8932cat >>conftest.$ac_ext <<_ACEOF
8933/* end confdefs.h.  */
8934
8935int
8936main ()
8937{
8938
8939  ;
8940  return 0;
8941}
8942_ACEOF
8943rm -f conftest.$ac_objext conftest$ac_exeext
8944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945  (eval $ac_link) 2>conftest.er1
8946  ac_status=$?
8947  grep -v '^ *+' conftest.er1 >conftest.err
8948  rm -f conftest.er1
8949  cat conftest.err >&5
8950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951  (exit $ac_status); } &&
8952         { ac_try='test -z "$ac_c_werror_flag"
8953                         || test ! -s conftest.err'
8954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955  (eval $ac_try) 2>&5
8956  ac_status=$?
8957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958  (exit $ac_status); }; } &&
8959         { ac_try='test -s conftest$ac_exeext'
8960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961  (eval $ac_try) 2>&5
8962  ac_status=$?
8963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964  (exit $ac_status); }; }; then
8965
8966aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8967}'`
8968# Check for a 64-bit object if we didn't find anything.
8969if 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; }
8970}'`; fi
8971else
8972  echo "$as_me: failed program was:" >&5
8973sed 's/^/| /' conftest.$ac_ext >&5
8974
8975fi
8976rm -f conftest.err conftest.$ac_objext \
8977      conftest$ac_exeext conftest.$ac_ext
8978if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8979
8980         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8981          # Warning - without using the other run time loading flags,
8982          # -berok will link without error, but may produce a broken library.
8983          no_undefined_flag=' ${wl}-bernotok'
8984          allow_undefined_flag=' ${wl}-berok'
8985          # Exported symbols can be pulled into shared objects from archives
8986          whole_archive_flag_spec='$convenience'
8987          archive_cmds_need_lc=yes
8988          # This is similar to how AIX traditionally builds its shared libraries.
8989          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'
8990        fi
8991      fi
8992      ;;
8993
8994    amigaos*)
8995      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)'
8996      hardcode_libdir_flag_spec='-L$libdir'
8997      hardcode_minus_L=yes
8998      # see comment about different semantics on the GNU ld section
8999      ld_shlibs=no
9000      ;;
9001
9002    bsdi[45]*)
9003      export_dynamic_flag_spec=-rdynamic
9004      ;;
9005
9006    cygwin* | mingw* | pw32*)
9007      # When not using gcc, we currently assume that we are using
9008      # Microsoft Visual C++.
9009      # hardcode_libdir_flag_spec is actually meaningless, as there is
9010      # no search path for DLLs.
9011      hardcode_libdir_flag_spec=' '
9012      allow_undefined_flag=unsupported
9013      # Tell ltmain to make .lib files, not .a files.
9014      libext=lib
9015      # Tell ltmain to make .dll files, not .so files.
9016      shrext_cmds=".dll"
9017      # FIXME: Setting linknames here is a bad hack.
9018      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9019      # The linker will automatically build a .lib file if we build a DLL.
9020      old_archive_From_new_cmds='true'
9021      # FIXME: Should let the user specify the lib program.
9022      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9023      fix_srcfile_path='`cygpath -w "$srcfile"`'
9024      enable_shared_with_static_runtimes=yes
9025      ;;
9026
9027    darwin* | rhapsody*)
9028      case $host_os in
9029        rhapsody* | darwin1.[012])
9030         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9031         ;;
9032       *) # Darwin 1.3 on
9033         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9034           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9035         else
9036           case ${MACOSX_DEPLOYMENT_TARGET} in
9037             10.[012])
9038               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9039               ;;
9040             10.*)
9041               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9042               ;;
9043           esac
9044         fi
9045         ;;
9046      esac
9047      archive_cmds_need_lc=no
9048      hardcode_direct=no
9049      hardcode_automatic=yes
9050      hardcode_shlibpath_var=unsupported
9051      whole_archive_flag_spec=''
9052      link_all_deplibs=yes
9053    if test "$GCC" = yes ; then
9054        output_verbose_link_cmd='echo'
9055        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9056      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9057      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9058      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}'
9059      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}'
9060    else
9061      case $cc_basename in
9062        xlc*)
9063         output_verbose_link_cmd='echo'
9064         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9065         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9066          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9067         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}'
9068          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}'
9069          ;;
9070       *)
9071         ld_shlibs=no
9072          ;;
9073      esac
9074    fi
9075      ;;
9076
9077    dgux*)
9078      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079      hardcode_libdir_flag_spec='-L$libdir'
9080      hardcode_shlibpath_var=no
9081      ;;
9082
9083    freebsd1*)
9084      ld_shlibs=no
9085      ;;
9086
9087    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9088    # support.  Future versions do this automatically, but an explicit c++rt0.o
9089    # does not break anything, and helps significantly (at the cost of a little
9090    # extra space).
9091    freebsd2.2*)
9092      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9093      hardcode_libdir_flag_spec='-R$libdir'
9094      hardcode_direct=yes
9095      hardcode_shlibpath_var=no
9096      ;;
9097
9098    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9099    freebsd2*)
9100      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9101      hardcode_direct=yes
9102      hardcode_minus_L=yes
9103      hardcode_shlibpath_var=no
9104      ;;
9105
9106    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9107    freebsd* | kfreebsd*-gnu | dragonfly*)
9108      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9109      hardcode_libdir_flag_spec='-R$libdir'
9110      hardcode_direct=yes
9111      hardcode_shlibpath_var=no
9112      ;;
9113
9114    hpux9*)
9115      if test "$GCC" = yes; then
9116        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'
9117      else
9118        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'
9119      fi
9120      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9121      hardcode_libdir_separator=:
9122      hardcode_direct=yes
9123
9124      # hardcode_minus_L: Not really in the search PATH,
9125      # but as the default location of the library.
9126      hardcode_minus_L=yes
9127      export_dynamic_flag_spec='${wl}-E'
9128      ;;
9129
9130    hpux10*)
9131      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9132        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9133      else
9134        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9135      fi
9136      if test "$with_gnu_ld" = no; then
9137        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9138        hardcode_libdir_separator=:
9139
9140        hardcode_direct=yes
9141        export_dynamic_flag_spec='${wl}-E'
9142
9143        # hardcode_minus_L: Not really in the search PATH,
9144        # but as the default location of the library.
9145        hardcode_minus_L=yes
9146      fi
9147      ;;
9148
9149    hpux11*)
9150      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9151        case $host_cpu in
9152        hppa*64*)
9153          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9154          ;;
9155        ia64*)
9156          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9157          ;;
9158        *)
9159          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9160          ;;
9161        esac
9162      else
9163        case $host_cpu in
9164        hppa*64*)
9165          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9166          ;;
9167        ia64*)
9168          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9169          ;;
9170        *)
9171          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9172          ;;
9173        esac
9174      fi
9175      if test "$with_gnu_ld" = no; then
9176        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177        hardcode_libdir_separator=:
9178
9179        case $host_cpu in
9180        hppa*64*|ia64*)
9181          hardcode_libdir_flag_spec_ld='+b $libdir'
9182          hardcode_direct=no
9183          hardcode_shlibpath_var=no
9184          ;;
9185        *)
9186          hardcode_direct=yes
9187          export_dynamic_flag_spec='${wl}-E'
9188
9189          # hardcode_minus_L: Not really in the search PATH,
9190          # but as the default location of the library.
9191          hardcode_minus_L=yes
9192          ;;
9193        esac
9194      fi
9195      ;;
9196
9197    irix5* | irix6* | nonstopux*)
9198      if test "$GCC" = yes; then
9199        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'
9200      else
9201        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'
9202        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9203      fi
9204      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9205      hardcode_libdir_separator=:
9206      link_all_deplibs=yes
9207      ;;
9208
9209    netbsd*)
9210      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9211        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9212      else
9213        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9214      fi
9215      hardcode_libdir_flag_spec='-R$libdir'
9216      hardcode_direct=yes
9217      hardcode_shlibpath_var=no
9218      ;;
9219
9220    newsos6)
9221      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9222      hardcode_direct=yes
9223      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9224      hardcode_libdir_separator=:
9225      hardcode_shlibpath_var=no
9226      ;;
9227
9228    openbsd*)
9229      hardcode_direct=yes
9230      hardcode_shlibpath_var=no
9231      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9232        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9233        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9234        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9235        export_dynamic_flag_spec='${wl}-E'
9236      else
9237       case $host_os in
9238         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9239           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9240           hardcode_libdir_flag_spec='-R$libdir'
9241           ;;
9242         *)
9243           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9244           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9245           ;;
9246       esac
9247      fi
9248      ;;
9249
9250    os2*)
9251      hardcode_libdir_flag_spec='-L$libdir'
9252      hardcode_minus_L=yes
9253      allow_undefined_flag=unsupported
9254      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'
9255      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9256      ;;
9257
9258    osf3*)
9259      if test "$GCC" = yes; then
9260        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9261        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'
9262      else
9263        allow_undefined_flag=' -expect_unresolved \*'
9264        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'
9265      fi
9266      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9267      hardcode_libdir_separator=:
9268      ;;
9269
9270    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9271      if test "$GCC" = yes; then
9272        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9273        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'
9274        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9275      else
9276        allow_undefined_flag=' -expect_unresolved \*'
9277        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'
9278        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9279        $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'
9280
9281        # Both c and cxx compiler support -rpath directly
9282        hardcode_libdir_flag_spec='-rpath $libdir'
9283      fi
9284      hardcode_libdir_separator=:
9285      ;;
9286
9287    solaris*)
9288      no_undefined_flag=' -z text'
9289      if test "$GCC" = yes; then
9290        wlarc='${wl}'
9291        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9292        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9293          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9294      else
9295        wlarc=''
9296        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9297        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9298        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9299      fi
9300      hardcode_libdir_flag_spec='-R$libdir'
9301      hardcode_shlibpath_var=no
9302      case $host_os in
9303      solaris2.[0-5] | solaris2.[0-5].*) ;;
9304      *)
9305        # The compiler driver will combine linker options so we
9306        # cannot just pass the convience library names through
9307        # without $wl, iff we do not link with $LD.
9308        # Luckily, gcc supports the same syntax we need for Sun Studio.
9309        # Supported since Solaris 2.6 (maybe 2.5.1?)
9310        case $wlarc in
9311        '')
9312          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9313        *)
9314          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' ;;
9315        esac ;;
9316      esac
9317      link_all_deplibs=yes
9318      ;;
9319
9320    sunos4*)
9321      if test "x$host_vendor" = xsequent; then
9322        # Use $CC to link under sequent, because it throws in some extra .o
9323        # files that make .init and .fini sections work.
9324        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9325      else
9326        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9327      fi
9328      hardcode_libdir_flag_spec='-L$libdir'
9329      hardcode_direct=yes
9330      hardcode_minus_L=yes
9331      hardcode_shlibpath_var=no
9332      ;;
9333
9334    sysv4)
9335      case $host_vendor in
9336        sni)
9337          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9338          hardcode_direct=yes # is this really true???
9339        ;;
9340        siemens)
9341          ## LD is ld it makes a PLAMLIB
9342          ## CC just makes a GrossModule.
9343          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9344          reload_cmds='$CC -r -o $output$reload_objs'
9345          hardcode_direct=no
9346        ;;
9347        motorola)
9348          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9350        ;;
9351      esac
9352      runpath_var='LD_RUN_PATH'
9353      hardcode_shlibpath_var=no
9354      ;;
9355
9356    sysv4.3*)
9357      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358      hardcode_shlibpath_var=no
9359      export_dynamic_flag_spec='-Bexport'
9360      ;;
9361
9362    sysv4*MP*)
9363      if test -d /usr/nec; then
9364        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9365        hardcode_shlibpath_var=no
9366        runpath_var=LD_RUN_PATH
9367        hardcode_runpath_var=yes
9368        ld_shlibs=yes
9369      fi
9370      ;;
9371
9372    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9373      no_undefined_flag='${wl}-z,text'
9374      archive_cmds_need_lc=no
9375      hardcode_shlibpath_var=no
9376      runpath_var='LD_RUN_PATH'
9377
9378      if test "$GCC" = yes; then
9379        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381      else
9382        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384      fi
9385      ;;
9386
9387    sysv5* | sco3.2v5* | sco5v6*)
9388      # Note: We can NOT use -z defs as we might desire, because we do not
9389      # link with -lc, and that would cause any symbols used from libc to
9390      # always be unresolved, which means just about no library would
9391      # ever link correctly.  If we're not using GNU ld we use -z text
9392      # though, which does catch some bad symbols but isn't as heavy-handed
9393      # as -z defs.
9394      no_undefined_flag='${wl}-z,text'
9395      allow_undefined_flag='${wl}-z,nodefs'
9396      archive_cmds_need_lc=no
9397      hardcode_shlibpath_var=no
9398      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9399      hardcode_libdir_separator=':'
9400      link_all_deplibs=yes
9401      export_dynamic_flag_spec='${wl}-Bexport'
9402      runpath_var='LD_RUN_PATH'
9403
9404      if test "$GCC" = yes; then
9405        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9406        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9407      else
9408        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9409        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410      fi
9411      ;;
9412
9413    uts4*)
9414      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415      hardcode_libdir_flag_spec='-L$libdir'
9416      hardcode_shlibpath_var=no
9417      ;;
9418
9419    *)
9420      ld_shlibs=no
9421      ;;
9422    esac
9423  fi
9424
9425echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9426echo "${ECHO_T}$ld_shlibs" >&6
9427test "$ld_shlibs" = no && can_build_shared=no
9428
9429#
9430# Do we need to explicitly link libc?
9431#
9432case "x$archive_cmds_need_lc" in
9433x|xyes)
9434  # Assume -lc should be added
9435  archive_cmds_need_lc=yes
9436
9437  if test "$enable_shared" = yes && test "$GCC" = yes; then
9438    case $archive_cmds in
9439    *'~'*)
9440      # FIXME: we may have to deal with multi-command sequences.
9441      ;;
9442    '$CC '*)
9443      # Test whether the compiler implicitly links with -lc since on some
9444      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9445      # to ld, don't add -lc before -lgcc.
9446      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9447echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9448      $rm conftest*
9449      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9450
9451      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452  (eval $ac_compile) 2>&5
9453  ac_status=$?
9454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455  (exit $ac_status); } 2>conftest.err; then
9456        soname=conftest
9457        lib=conftest
9458        libobjs=conftest.$ac_objext
9459        deplibs=
9460        wl=$lt_prog_compiler_wl
9461        pic_flag=$lt_prog_compiler_pic
9462        compiler_flags=-v
9463        linker_flags=-v
9464        verstring=
9465        output_objdir=.
9466        libname=conftest
9467        lt_save_allow_undefined_flag=$allow_undefined_flag
9468        allow_undefined_flag=
9469        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9470  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9471  ac_status=$?
9472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473  (exit $ac_status); }
9474        then
9475          archive_cmds_need_lc=no
9476        else
9477          archive_cmds_need_lc=yes
9478        fi
9479        allow_undefined_flag=$lt_save_allow_undefined_flag
9480      else
9481        cat conftest.err 1>&5
9482      fi
9483      $rm conftest*
9484      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9485echo "${ECHO_T}$archive_cmds_need_lc" >&6
9486      ;;
9487    esac
9488  fi
9489  ;;
9490esac
9491
9492echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9493echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9494library_names_spec=
9495libname_spec='lib$name'
9496soname_spec=
9497shrext_cmds=".so"
9498postinstall_cmds=
9499postuninstall_cmds=
9500finish_cmds=
9501finish_eval=
9502shlibpath_var=
9503shlibpath_overrides_runpath=unknown
9504version_type=none
9505dynamic_linker="$host_os ld.so"
9506sys_lib_dlsearch_path_spec="/lib /usr/lib"
9507if test "$GCC" = yes; then
9508  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9509  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9510    # if the path contains ";" then we assume it to be the separator
9511    # otherwise default to the standard path separator (i.e. ":") - it is
9512    # assumed that no part of a normal pathname contains ";" but that should
9513    # okay in the real world where ";" in dirpaths is itself problematic.
9514    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9515  else
9516    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9517  fi
9518else
9519  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9520fi
9521need_lib_prefix=unknown
9522hardcode_into_libs=no
9523
9524# when you set need_version to no, make sure it does not cause -set_version
9525# flags to be left without arguments
9526need_version=unknown
9527
9528case $host_os in
9529aix3*)
9530  version_type=linux
9531  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9532  shlibpath_var=LIBPATH
9533
9534  # AIX 3 has no versioning support, so we append a major version to the name.
9535  soname_spec='${libname}${release}${shared_ext}$major'
9536  ;;
9537
9538aix4* | aix5*)
9539  version_type=linux
9540  need_lib_prefix=no
9541  need_version=no
9542  hardcode_into_libs=yes
9543  if test "$host_cpu" = ia64; then
9544    # AIX 5 supports IA64
9545    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9546    shlibpath_var=LD_LIBRARY_PATH
9547  else
9548    # With GCC up to 2.95.x, collect2 would create an import file
9549    # for dependence libraries.  The import file would start with
9550    # the line `#! .'.  This would cause the generated library to
9551    # depend on `.', always an invalid library.  This was fixed in
9552    # development snapshots of GCC prior to 3.0.
9553    case $host_os in
9554      aix4 | aix4.[01] | aix4.[01].*)
9555      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9556           echo ' yes '
9557           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9558        :
9559      else
9560        can_build_shared=no
9561      fi
9562      ;;
9563    esac
9564    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9565    # soname into executable. Probably we can add versioning support to
9566    # collect2, so additional links can be useful in future.
9567    if test "$aix_use_runtimelinking" = yes; then
9568      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9569      # instead of lib<name>.a to let people know that these are not
9570      # typical AIX shared libraries.
9571      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572    else
9573      # We preserve .a as extension for shared libraries through AIX4.2
9574      # and later when we are not doing run time linking.
9575      library_names_spec='${libname}${release}.a $libname.a'
9576      soname_spec='${libname}${release}${shared_ext}$major'
9577    fi
9578    shlibpath_var=LIBPATH
9579  fi
9580  ;;
9581
9582amigaos*)
9583  library_names_spec='$libname.ixlibrary $libname.a'
9584  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9585  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'
9586  ;;
9587
9588beos*)
9589  library_names_spec='${libname}${shared_ext}'
9590  dynamic_linker="$host_os ld.so"
9591  shlibpath_var=LIBRARY_PATH
9592  ;;
9593
9594bsdi[45]*)
9595  version_type=linux
9596  need_version=no
9597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598  soname_spec='${libname}${release}${shared_ext}$major'
9599  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9600  shlibpath_var=LD_LIBRARY_PATH
9601  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9602  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9603  # the default ld.so.conf also contains /usr/contrib/lib and
9604  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9605  # libtool to hard-code these into programs
9606  ;;
9607
9608cygwin* | mingw* | pw32*)
9609  version_type=windows
9610  shrext_cmds=".dll"
9611  need_version=no
9612  need_lib_prefix=no
9613
9614  case $GCC,$host_os in
9615  yes,cygwin* | yes,mingw* | yes,pw32*)
9616    library_names_spec='$libname.dll.a'
9617    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9618    postinstall_cmds='base_file=`basename \${file}`~
9619      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9620      dldir=$destdir/`dirname \$dlpath`~
9621      test -d \$dldir || mkdir -p \$dldir~
9622      $install_prog $dir/$dlname \$dldir/$dlname~
9623      chmod a+x \$dldir/$dlname'
9624    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9625      dlpath=$dir/\$dldll~
9626       $rm \$dlpath'
9627    shlibpath_overrides_runpath=yes
9628
9629    case $host_os in
9630    cygwin*)
9631      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9632      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9633      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9634      ;;
9635    mingw*)
9636      # MinGW DLLs use traditional 'lib' prefix
9637      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9638      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9639      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9640        # It is most probably a Windows format PATH printed by
9641        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9642        # path with ; separators, and with drive letters. We can handle the
9643        # drive letters (cygwin fileutils understands them), so leave them,
9644        # especially as we might pass files found there to a mingw objdump,
9645        # which wouldn't understand a cygwinified path. Ahh.
9646        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9647      else
9648        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9649      fi
9650      ;;
9651    pw32*)
9652      # pw32 DLLs use 'pw' prefix rather than 'lib'
9653      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9654      ;;
9655    esac
9656    ;;
9657
9658  *)
9659    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9660    ;;
9661  esac
9662  dynamic_linker='Win32 ld.exe'
9663  # FIXME: first we should search . and the directory the executable is in
9664  shlibpath_var=PATH
9665  ;;
9666
9667darwin* | rhapsody*)
9668  dynamic_linker="$host_os dyld"
9669  version_type=darwin
9670  need_lib_prefix=no
9671  need_version=no
9672  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9673  soname_spec='${libname}${release}${major}$shared_ext'
9674  shlibpath_overrides_runpath=yes
9675  shlibpath_var=DYLD_LIBRARY_PATH
9676  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9677  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9678  if test "$GCC" = yes; then
9679    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"`
9680  else
9681    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9682  fi
9683  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9684  ;;
9685
9686dgux*)
9687  version_type=linux
9688  need_lib_prefix=no
9689  need_version=no
9690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9691  soname_spec='${libname}${release}${shared_ext}$major'
9692  shlibpath_var=LD_LIBRARY_PATH
9693  ;;
9694
9695freebsd1*)
9696  dynamic_linker=no
9697  ;;
9698
9699kfreebsd*-gnu)
9700  version_type=linux
9701  need_lib_prefix=no
9702  need_version=no
9703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9704  soname_spec='${libname}${release}${shared_ext}$major'
9705  shlibpath_var=LD_LIBRARY_PATH
9706  shlibpath_overrides_runpath=no
9707  hardcode_into_libs=yes
9708  dynamic_linker='GNU ld.so'
9709  ;;
9710
9711freebsd* | dragonfly*)
9712  # DragonFly does not have aout.  When/if they implement a new
9713  # versioning mechanism, adjust this.
9714  if test -x /usr/bin/objformat; then
9715    objformat=`/usr/bin/objformat`
9716  else
9717    case $host_os in
9718    freebsd[123]*) objformat=aout ;;
9719    *) objformat=elf ;;
9720    esac
9721  fi
9722  version_type=freebsd-$objformat
9723  case $version_type in
9724    freebsd-elf*)
9725      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9726      need_version=no
9727      need_lib_prefix=no
9728      ;;
9729    freebsd-*)
9730      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9731      need_version=yes
9732      ;;
9733  esac
9734  shlibpath_var=LD_LIBRARY_PATH
9735  case $host_os in
9736  freebsd2*)
9737    shlibpath_overrides_runpath=yes
9738    ;;
9739  freebsd3.[01]* | freebsdelf3.[01]*)
9740    shlibpath_overrides_runpath=yes
9741    hardcode_into_libs=yes
9742    ;;
9743  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9744  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9745    shlibpath_overrides_runpath=no
9746    hardcode_into_libs=yes
9747    ;;
9748  freebsd*) # from 4.6 on
9749    shlibpath_overrides_runpath=yes
9750    hardcode_into_libs=yes
9751    ;;
9752  esac
9753  ;;
9754
9755gnu*)
9756  version_type=linux
9757  need_lib_prefix=no
9758  need_version=no
9759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9760  soname_spec='${libname}${release}${shared_ext}$major'
9761  shlibpath_var=LD_LIBRARY_PATH
9762  hardcode_into_libs=yes
9763  ;;
9764
9765hpux9* | hpux10* | hpux11*)
9766  # Give a soname corresponding to the major version so that dld.sl refuses to
9767  # link against other versions.
9768  version_type=sunos
9769  need_lib_prefix=no
9770  need_version=no
9771  case $host_cpu in
9772  ia64*)
9773    shrext_cmds='.so'
9774    hardcode_into_libs=yes
9775    dynamic_linker="$host_os dld.so"
9776    shlibpath_var=LD_LIBRARY_PATH
9777    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9778    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779    soname_spec='${libname}${release}${shared_ext}$major'
9780    if test "X$HPUX_IA64_MODE" = X32; then
9781      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9782    else
9783      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9784    fi
9785    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9786    ;;
9787   hppa*64*)
9788     shrext_cmds='.sl'
9789     hardcode_into_libs=yes
9790     dynamic_linker="$host_os dld.sl"
9791     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9792     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794     soname_spec='${libname}${release}${shared_ext}$major'
9795     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9796     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9797     ;;
9798   *)
9799    shrext_cmds='.sl'
9800    dynamic_linker="$host_os dld.sl"
9801    shlibpath_var=SHLIB_PATH
9802    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9803    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804    soname_spec='${libname}${release}${shared_ext}$major'
9805    ;;
9806  esac
9807  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9808  postinstall_cmds='chmod 555 $lib'
9809  ;;
9810
9811interix3*)
9812  version_type=linux
9813  need_lib_prefix=no
9814  need_version=no
9815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9816  soname_spec='${libname}${release}${shared_ext}$major'
9817  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9818  shlibpath_var=LD_LIBRARY_PATH
9819  shlibpath_overrides_runpath=no
9820  hardcode_into_libs=yes
9821  ;;
9822
9823irix5* | irix6* | nonstopux*)
9824  case $host_os in
9825    nonstopux*) version_type=nonstopux ;;
9826    *)
9827        if test "$lt_cv_prog_gnu_ld" = yes; then
9828                version_type=linux
9829        else
9830                version_type=irix
9831        fi ;;
9832  esac
9833  need_lib_prefix=no
9834  need_version=no
9835  soname_spec='${libname}${release}${shared_ext}$major'
9836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9837  case $host_os in
9838  irix5* | nonstopux*)
9839    libsuff= shlibsuff=
9840    ;;
9841  *)
9842    case $LD in # libtool.m4 will add one of these switches to LD
9843    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9844      libsuff= shlibsuff= libmagic=32-bit;;
9845    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9846      libsuff=32 shlibsuff=N32 libmagic=N32;;
9847    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9848      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9849    *) libsuff= shlibsuff= libmagic=never-match;;
9850    esac
9851    ;;
9852  esac
9853  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9854  shlibpath_overrides_runpath=no
9855  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9856  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9857  hardcode_into_libs=yes
9858  ;;
9859
9860# No shared lib support for Linux oldld, aout, or coff.
9861linux*oldld* | linux*aout* | linux*coff*)
9862  dynamic_linker=no
9863  ;;
9864
9865# This must be Linux ELF.
9866linux*)
9867  version_type=linux
9868  need_lib_prefix=no
9869  need_version=no
9870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9871  soname_spec='${libname}${release}${shared_ext}$major'
9872  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9873  shlibpath_var=LD_LIBRARY_PATH
9874  shlibpath_overrides_runpath=no
9875  # This implies no fast_install, which is unacceptable.
9876  # Some rework will be needed to allow for fast_install
9877  # before this can be enabled.
9878  hardcode_into_libs=yes
9879
9880  # Append ld.so.conf contents to the search path
9881  if test -f /etc/ld.so.conf; then
9882    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' ' '`
9883    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9884  fi
9885
9886  # We used to test for /lib/ld.so.1 and disable shared libraries on
9887  # powerpc, because MkLinux only supported shared libraries with the
9888  # GNU dynamic linker.  Since this was broken with cross compilers,
9889  # most powerpc-linux boxes support dynamic linking these days and
9890  # people can always --disable-shared, the test was removed, and we
9891  # assume the GNU/Linux dynamic linker is in use.
9892  dynamic_linker='GNU/Linux ld.so'
9893  ;;
9894
9895knetbsd*-gnu)
9896  version_type=linux
9897  need_lib_prefix=no
9898  need_version=no
9899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9900  soname_spec='${libname}${release}${shared_ext}$major'
9901  shlibpath_var=LD_LIBRARY_PATH
9902  shlibpath_overrides_runpath=no
9903  hardcode_into_libs=yes
9904  dynamic_linker='GNU ld.so'
9905  ;;
9906
9907netbsd*)
9908  version_type=sunos
9909  need_lib_prefix=no
9910  need_version=no
9911  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9912    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9913    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9914    dynamic_linker='NetBSD (a.out) ld.so'
9915  else
9916    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9917    soname_spec='${libname}${release}${shared_ext}$major'
9918    dynamic_linker='NetBSD ld.elf_so'
9919  fi
9920  shlibpath_var=LD_LIBRARY_PATH
9921  shlibpath_overrides_runpath=yes
9922  hardcode_into_libs=yes
9923  ;;
9924
9925newsos6)
9926  version_type=linux
9927  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928  shlibpath_var=LD_LIBRARY_PATH
9929  shlibpath_overrides_runpath=yes
9930  ;;
9931
9932nto-qnx*)
9933  version_type=linux
9934  need_lib_prefix=no
9935  need_version=no
9936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937  soname_spec='${libname}${release}${shared_ext}$major'
9938  shlibpath_var=LD_LIBRARY_PATH
9939  shlibpath_overrides_runpath=yes
9940  ;;
9941
9942openbsd*)
9943  version_type=sunos
9944  sys_lib_dlsearch_path_spec="/usr/lib"
9945  need_lib_prefix=no
9946  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9947  case $host_os in
9948    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9949    *)                         need_version=no  ;;
9950  esac
9951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9952  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9953  shlibpath_var=LD_LIBRARY_PATH
9954  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9955    case $host_os in
9956      openbsd2.[89] | openbsd2.[89].*)
9957        shlibpath_overrides_runpath=no
9958        ;;
9959      *)
9960        shlibpath_overrides_runpath=yes
9961        ;;
9962      esac
9963  else
9964    shlibpath_overrides_runpath=yes
9965  fi
9966  ;;
9967
9968os2*)
9969  libname_spec='$name'
9970  shrext_cmds=".dll"
9971  need_lib_prefix=no
9972  library_names_spec='$libname${shared_ext} $libname.a'
9973  dynamic_linker='OS/2 ld.exe'
9974  shlibpath_var=LIBPATH
9975  ;;
9976
9977osf3* | osf4* | osf5*)
9978  version_type=osf
9979  need_lib_prefix=no
9980  need_version=no
9981  soname_spec='${libname}${release}${shared_ext}$major'
9982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983  shlibpath_var=LD_LIBRARY_PATH
9984  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9985  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9986  ;;
9987
9988solaris*)
9989  version_type=linux
9990  need_lib_prefix=no
9991  need_version=no
9992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993  soname_spec='${libname}${release}${shared_ext}$major'
9994  shlibpath_var=LD_LIBRARY_PATH
9995  shlibpath_overrides_runpath=yes
9996  hardcode_into_libs=yes
9997  # ldd complains unless libraries are executable
9998  postinstall_cmds='chmod +x $lib'
9999  ;;
10000
10001sunos4*)
10002  version_type=sunos
10003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10004  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10005  shlibpath_var=LD_LIBRARY_PATH
10006  shlibpath_overrides_runpath=yes
10007  if test "$with_gnu_ld" = yes; then
10008    need_lib_prefix=no
10009  fi
10010  need_version=yes
10011  ;;
10012
10013sysv4 | sysv4.3*)
10014  version_type=linux
10015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016  soname_spec='${libname}${release}${shared_ext}$major'
10017  shlibpath_var=LD_LIBRARY_PATH
10018  case $host_vendor in
10019    sni)
10020      shlibpath_overrides_runpath=no
10021      need_lib_prefix=no
10022      export_dynamic_flag_spec='${wl}-Blargedynsym'
10023      runpath_var=LD_RUN_PATH
10024      ;;
10025    siemens)
10026      need_lib_prefix=no
10027      ;;
10028    motorola)
10029      need_lib_prefix=no
10030      need_version=no
10031      shlibpath_overrides_runpath=no
10032      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10033      ;;
10034  esac
10035  ;;
10036
10037sysv4*MP*)
10038  if test -d /usr/nec ;then
10039    version_type=linux
10040    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10041    soname_spec='$libname${shared_ext}.$major'
10042    shlibpath_var=LD_LIBRARY_PATH
10043  fi
10044  ;;
10045
10046sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10047  version_type=freebsd-elf
10048  need_lib_prefix=no
10049  need_version=no
10050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10051  soname_spec='${libname}${release}${shared_ext}$major'
10052  shlibpath_var=LD_LIBRARY_PATH
10053  hardcode_into_libs=yes
10054  if test "$with_gnu_ld" = yes; then
10055    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10056    shlibpath_overrides_runpath=no
10057  else
10058    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10059    shlibpath_overrides_runpath=yes
10060    case $host_os in
10061      sco3.2v5*)
10062        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10063        ;;
10064    esac
10065  fi
10066  sys_lib_dlsearch_path_spec='/usr/lib'
10067  ;;
10068
10069uts4*)
10070  version_type=linux
10071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072  soname_spec='${libname}${release}${shared_ext}$major'
10073  shlibpath_var=LD_LIBRARY_PATH
10074  ;;
10075
10076*)
10077  dynamic_linker=no
10078  ;;
10079esac
10080echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10081echo "${ECHO_T}$dynamic_linker" >&6
10082test "$dynamic_linker" = no && can_build_shared=no
10083
10084variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10085if test "$GCC" = yes; then
10086  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10087fi
10088
10089echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10090echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10091hardcode_action=
10092if test -n "$hardcode_libdir_flag_spec" || \
10093   test -n "$runpath_var" || \
10094   test "X$hardcode_automatic" = "Xyes" ; then
10095
10096  # We can hardcode non-existant directories.
10097  if test "$hardcode_direct" != no &&
10098     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10099     # have to relink, otherwise we might link with an installed library
10100     # when we should be linking with a yet-to-be-installed one
10101     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10102     test "$hardcode_minus_L" != no; then
10103    # Linking always hardcodes the temporary library directory.
10104    hardcode_action=relink
10105  else
10106    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10107    hardcode_action=immediate
10108  fi
10109else
10110  # We cannot hardcode anything, or else we can only hardcode existing
10111  # directories.
10112  hardcode_action=unsupported
10113fi
10114echo "$as_me:$LINENO: result: $hardcode_action" >&5
10115echo "${ECHO_T}$hardcode_action" >&6
10116
10117if test "$hardcode_action" = relink; then
10118  # Fast installation is not supported
10119  enable_fast_install=no
10120elif test "$shlibpath_overrides_runpath" = yes ||
10121     test "$enable_shared" = no; then
10122  # Fast installation is not necessary
10123  enable_fast_install=needless
10124fi
10125
10126striplib=
10127old_striplib=
10128echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10129echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10130if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10131  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10132  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10133  echo "$as_me:$LINENO: result: yes" >&5
10134echo "${ECHO_T}yes" >&6
10135else
10136# FIXME - insert some real tests, host_os isn't really good enough
10137  case $host_os in
10138   darwin*)
10139       if test -n "$STRIP" ; then
10140         striplib="$STRIP -x"
10141         echo "$as_me:$LINENO: result: yes" >&5
10142echo "${ECHO_T}yes" >&6
10143       else
10144  echo "$as_me:$LINENO: result: no" >&5
10145echo "${ECHO_T}no" >&6
10146fi
10147       ;;
10148   *)
10149  echo "$as_me:$LINENO: result: no" >&5
10150echo "${ECHO_T}no" >&6
10151    ;;
10152  esac
10153fi
10154
10155if test "x$enable_dlopen" != xyes; then
10156  enable_dlopen=unknown
10157  enable_dlopen_self=unknown
10158  enable_dlopen_self_static=unknown
10159else
10160  lt_cv_dlopen=no
10161  lt_cv_dlopen_libs=
10162
10163  case $host_os in
10164  beos*)
10165    lt_cv_dlopen="load_add_on"
10166    lt_cv_dlopen_libs=
10167    lt_cv_dlopen_self=yes
10168    ;;
10169
10170  mingw* | pw32*)
10171    lt_cv_dlopen="LoadLibrary"
10172    lt_cv_dlopen_libs=
10173   ;;
10174
10175  cygwin*)
10176    lt_cv_dlopen="dlopen"
10177    lt_cv_dlopen_libs=
10178   ;;
10179
10180  darwin*)
10181  # if libdl is installed we need to link against it
10182    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10183echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10184if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10185  echo $ECHO_N "(cached) $ECHO_C" >&6
10186else
10187  ac_check_lib_save_LIBS=$LIBS
10188LIBS="-ldl  $LIBS"
10189cat >conftest.$ac_ext <<_ACEOF
10190/* confdefs.h.  */
10191_ACEOF
10192cat confdefs.h >>conftest.$ac_ext
10193cat >>conftest.$ac_ext <<_ACEOF
10194/* end confdefs.h.  */
10195
10196/* Override any gcc2 internal prototype to avoid an error.  */
10197#ifdef __cplusplus
10198extern "C"
10199#endif
10200/* We use char because int might match the return type of a gcc2
10201   builtin and then its argument prototype would still apply.  */
10202char dlopen ();
10203int
10204main ()
10205{
10206dlopen ();
10207  ;
10208  return 0;
10209}
10210_ACEOF
10211rm -f conftest.$ac_objext conftest$ac_exeext
10212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10213  (eval $ac_link) 2>conftest.er1
10214  ac_status=$?
10215  grep -v '^ *+' conftest.er1 >conftest.err
10216  rm -f conftest.er1
10217  cat conftest.err >&5
10218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219  (exit $ac_status); } &&
10220         { ac_try='test -z "$ac_c_werror_flag"
10221                         || test ! -s conftest.err'
10222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223  (eval $ac_try) 2>&5
10224  ac_status=$?
10225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226  (exit $ac_status); }; } &&
10227         { ac_try='test -s conftest$ac_exeext'
10228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229  (eval $ac_try) 2>&5
10230  ac_status=$?
10231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232  (exit $ac_status); }; }; then
10233  ac_cv_lib_dl_dlopen=yes
10234else
10235  echo "$as_me: failed program was:" >&5
10236sed 's/^/| /' conftest.$ac_ext >&5
10237
10238ac_cv_lib_dl_dlopen=no
10239fi
10240rm -f conftest.err conftest.$ac_objext \
10241      conftest$ac_exeext conftest.$ac_ext
10242LIBS=$ac_check_lib_save_LIBS
10243fi
10244echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10245echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10246if test $ac_cv_lib_dl_dlopen = yes; then
10247  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10248else
10249
10250    lt_cv_dlopen="dyld"
10251    lt_cv_dlopen_libs=
10252    lt_cv_dlopen_self=yes
10253
10254fi
10255
10256   ;;
10257
10258  *)
10259    echo "$as_me:$LINENO: checking for shl_load" >&5
10260echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10261if test "${ac_cv_func_shl_load+set}" = set; then
10262  echo $ECHO_N "(cached) $ECHO_C" >&6
10263else
10264  cat >conftest.$ac_ext <<_ACEOF
10265/* confdefs.h.  */
10266_ACEOF
10267cat confdefs.h >>conftest.$ac_ext
10268cat >>conftest.$ac_ext <<_ACEOF
10269/* end confdefs.h.  */
10270/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10271   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10272#define shl_load innocuous_shl_load
10273
10274/* System header to define __stub macros and hopefully few prototypes,
10275    which can conflict with char shl_load (); below.
10276    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10277    <limits.h> exists even on freestanding compilers.  */
10278
10279#ifdef __STDC__
10280# include <limits.h>
10281#else
10282# include <assert.h>
10283#endif
10284
10285#undef shl_load
10286
10287/* Override any gcc2 internal prototype to avoid an error.  */
10288#ifdef __cplusplus
10289extern "C"
10290{
10291#endif
10292/* We use char because int might match the return type of a gcc2
10293   builtin and then its argument prototype would still apply.  */
10294char shl_load ();
10295/* The GNU C library defines this for functions which it implements
10296    to always fail with ENOSYS.  Some functions are actually named
10297    something starting with __ and the normal name is an alias.  */
10298#if defined (__stub_shl_load) || defined (__stub___shl_load)
10299choke me
10300#else
10301char (*f) () = shl_load;
10302#endif
10303#ifdef __cplusplus
10304}
10305#endif
10306
10307int
10308main ()
10309{
10310return f != shl_load;
10311  ;
10312  return 0;
10313}
10314_ACEOF
10315rm -f conftest.$ac_objext conftest$ac_exeext
10316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317  (eval $ac_link) 2>conftest.er1
10318  ac_status=$?
10319  grep -v '^ *+' conftest.er1 >conftest.err
10320  rm -f conftest.er1
10321  cat conftest.err >&5
10322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323  (exit $ac_status); } &&
10324         { ac_try='test -z "$ac_c_werror_flag"
10325                         || test ! -s conftest.err'
10326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327  (eval $ac_try) 2>&5
10328  ac_status=$?
10329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330  (exit $ac_status); }; } &&
10331         { ac_try='test -s conftest$ac_exeext'
10332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333  (eval $ac_try) 2>&5
10334  ac_status=$?
10335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336  (exit $ac_status); }; }; then
10337  ac_cv_func_shl_load=yes
10338else
10339  echo "$as_me: failed program was:" >&5
10340sed 's/^/| /' conftest.$ac_ext >&5
10341
10342ac_cv_func_shl_load=no
10343fi
10344rm -f conftest.err conftest.$ac_objext \
10345      conftest$ac_exeext conftest.$ac_ext
10346fi
10347echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10348echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10349if test $ac_cv_func_shl_load = yes; then
10350  lt_cv_dlopen="shl_load"
10351else
10352  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10353echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10354if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10355  echo $ECHO_N "(cached) $ECHO_C" >&6
10356else
10357  ac_check_lib_save_LIBS=$LIBS
10358LIBS="-ldld  $LIBS"
10359cat >conftest.$ac_ext <<_ACEOF
10360/* confdefs.h.  */
10361_ACEOF
10362cat confdefs.h >>conftest.$ac_ext
10363cat >>conftest.$ac_ext <<_ACEOF
10364/* end confdefs.h.  */
10365
10366/* Override any gcc2 internal prototype to avoid an error.  */
10367#ifdef __cplusplus
10368extern "C"
10369#endif
10370/* We use char because int might match the return type of a gcc2
10371   builtin and then its argument prototype would still apply.  */
10372char shl_load ();
10373int
10374main ()
10375{
10376shl_load ();
10377  ;
10378  return 0;
10379}
10380_ACEOF
10381rm -f conftest.$ac_objext conftest$ac_exeext
10382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383  (eval $ac_link) 2>conftest.er1
10384  ac_status=$?
10385  grep -v '^ *+' conftest.er1 >conftest.err
10386  rm -f conftest.er1
10387  cat conftest.err >&5
10388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389  (exit $ac_status); } &&
10390         { ac_try='test -z "$ac_c_werror_flag"
10391                         || test ! -s conftest.err'
10392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393  (eval $ac_try) 2>&5
10394  ac_status=$?
10395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396  (exit $ac_status); }; } &&
10397         { ac_try='test -s conftest$ac_exeext'
10398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399  (eval $ac_try) 2>&5
10400  ac_status=$?
10401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402  (exit $ac_status); }; }; then
10403  ac_cv_lib_dld_shl_load=yes
10404else
10405  echo "$as_me: failed program was:" >&5
10406sed 's/^/| /' conftest.$ac_ext >&5
10407
10408ac_cv_lib_dld_shl_load=no
10409fi
10410rm -f conftest.err conftest.$ac_objext \
10411      conftest$ac_exeext conftest.$ac_ext
10412LIBS=$ac_check_lib_save_LIBS
10413fi
10414echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10415echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10416if test $ac_cv_lib_dld_shl_load = yes; then
10417  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10418else
10419  echo "$as_me:$LINENO: checking for dlopen" >&5
10420echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10421if test "${ac_cv_func_dlopen+set}" = set; then
10422  echo $ECHO_N "(cached) $ECHO_C" >&6
10423else
10424  cat >conftest.$ac_ext <<_ACEOF
10425/* confdefs.h.  */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h.  */
10430/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10431   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10432#define dlopen innocuous_dlopen
10433
10434/* System header to define __stub macros and hopefully few prototypes,
10435    which can conflict with char dlopen (); below.
10436    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10437    <limits.h> exists even on freestanding compilers.  */
10438
10439#ifdef __STDC__
10440# include <limits.h>
10441#else
10442# include <assert.h>
10443#endif
10444
10445#undef dlopen
10446
10447/* Override any gcc2 internal prototype to avoid an error.  */
10448#ifdef __cplusplus
10449extern "C"
10450{
10451#endif
10452/* We use char because int might match the return type of a gcc2
10453   builtin and then its argument prototype would still apply.  */
10454char dlopen ();
10455/* The GNU C library defines this for functions which it implements
10456    to always fail with ENOSYS.  Some functions are actually named
10457    something starting with __ and the normal name is an alias.  */
10458#if defined (__stub_dlopen) || defined (__stub___dlopen)
10459choke me
10460#else
10461char (*f) () = dlopen;
10462#endif
10463#ifdef __cplusplus
10464}
10465#endif
10466
10467int
10468main ()
10469{
10470return f != dlopen;
10471  ;
10472  return 0;
10473}
10474_ACEOF
10475rm -f conftest.$ac_objext conftest$ac_exeext
10476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477  (eval $ac_link) 2>conftest.er1
10478  ac_status=$?
10479  grep -v '^ *+' conftest.er1 >conftest.err
10480  rm -f conftest.er1
10481  cat conftest.err >&5
10482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483  (exit $ac_status); } &&
10484         { ac_try='test -z "$ac_c_werror_flag"
10485                         || test ! -s conftest.err'
10486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487  (eval $ac_try) 2>&5
10488  ac_status=$?
10489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490  (exit $ac_status); }; } &&
10491         { ac_try='test -s conftest$ac_exeext'
10492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493  (eval $ac_try) 2>&5
10494  ac_status=$?
10495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496  (exit $ac_status); }; }; then
10497  ac_cv_func_dlopen=yes
10498else
10499  echo "$as_me: failed program was:" >&5
10500sed 's/^/| /' conftest.$ac_ext >&5
10501
10502ac_cv_func_dlopen=no
10503fi
10504rm -f conftest.err conftest.$ac_objext \
10505      conftest$ac_exeext conftest.$ac_ext
10506fi
10507echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10508echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10509if test $ac_cv_func_dlopen = yes; then
10510  lt_cv_dlopen="dlopen"
10511else
10512  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10513echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10514if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10515  echo $ECHO_N "(cached) $ECHO_C" >&6
10516else
10517  ac_check_lib_save_LIBS=$LIBS
10518LIBS="-ldl  $LIBS"
10519cat >conftest.$ac_ext <<_ACEOF
10520/* confdefs.h.  */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h.  */
10525
10526/* Override any gcc2 internal prototype to avoid an error.  */
10527#ifdef __cplusplus
10528extern "C"
10529#endif
10530/* We use char because int might match the return type of a gcc2
10531   builtin and then its argument prototype would still apply.  */
10532char dlopen ();
10533int
10534main ()
10535{
10536dlopen ();
10537  ;
10538  return 0;
10539}
10540_ACEOF
10541rm -f conftest.$ac_objext conftest$ac_exeext
10542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543  (eval $ac_link) 2>conftest.er1
10544  ac_status=$?
10545  grep -v '^ *+' conftest.er1 >conftest.err
10546  rm -f conftest.er1
10547  cat conftest.err >&5
10548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549  (exit $ac_status); } &&
10550         { ac_try='test -z "$ac_c_werror_flag"
10551                         || test ! -s conftest.err'
10552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553  (eval $ac_try) 2>&5
10554  ac_status=$?
10555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556  (exit $ac_status); }; } &&
10557         { ac_try='test -s conftest$ac_exeext'
10558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559  (eval $ac_try) 2>&5
10560  ac_status=$?
10561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562  (exit $ac_status); }; }; then
10563  ac_cv_lib_dl_dlopen=yes
10564else
10565  echo "$as_me: failed program was:" >&5
10566sed 's/^/| /' conftest.$ac_ext >&5
10567
10568ac_cv_lib_dl_dlopen=no
10569fi
10570rm -f conftest.err conftest.$ac_objext \
10571      conftest$ac_exeext conftest.$ac_ext
10572LIBS=$ac_check_lib_save_LIBS
10573fi
10574echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10575echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10576if test $ac_cv_lib_dl_dlopen = yes; then
10577  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10578else
10579  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10580echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10581if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10582  echo $ECHO_N "(cached) $ECHO_C" >&6
10583else
10584  ac_check_lib_save_LIBS=$LIBS
10585LIBS="-lsvld  $LIBS"
10586cat >conftest.$ac_ext <<_ACEOF
10587/* confdefs.h.  */
10588_ACEOF
10589cat confdefs.h >>conftest.$ac_ext
10590cat >>conftest.$ac_ext <<_ACEOF
10591/* end confdefs.h.  */
10592
10593/* Override any gcc2 internal prototype to avoid an error.  */
10594#ifdef __cplusplus
10595extern "C"
10596#endif
10597/* We use char because int might match the return type of a gcc2
10598   builtin and then its argument prototype would still apply.  */
10599char dlopen ();
10600int
10601main ()
10602{
10603dlopen ();
10604  ;
10605  return 0;
10606}
10607_ACEOF
10608rm -f conftest.$ac_objext conftest$ac_exeext
10609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610  (eval $ac_link) 2>conftest.er1
10611  ac_status=$?
10612  grep -v '^ *+' conftest.er1 >conftest.err
10613  rm -f conftest.er1
10614  cat conftest.err >&5
10615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); } &&
10617         { ac_try='test -z "$ac_c_werror_flag"
10618                         || test ! -s conftest.err'
10619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620  (eval $ac_try) 2>&5
10621  ac_status=$?
10622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623  (exit $ac_status); }; } &&
10624         { ac_try='test -s conftest$ac_exeext'
10625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626  (eval $ac_try) 2>&5
10627  ac_status=$?
10628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629  (exit $ac_status); }; }; then
10630  ac_cv_lib_svld_dlopen=yes
10631else
10632  echo "$as_me: failed program was:" >&5
10633sed 's/^/| /' conftest.$ac_ext >&5
10634
10635ac_cv_lib_svld_dlopen=no
10636fi
10637rm -f conftest.err conftest.$ac_objext \
10638      conftest$ac_exeext conftest.$ac_ext
10639LIBS=$ac_check_lib_save_LIBS
10640fi
10641echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10642echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10643if test $ac_cv_lib_svld_dlopen = yes; then
10644  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10645else
10646  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10647echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10648if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10649  echo $ECHO_N "(cached) $ECHO_C" >&6
10650else
10651  ac_check_lib_save_LIBS=$LIBS
10652LIBS="-ldld  $LIBS"
10653cat >conftest.$ac_ext <<_ACEOF
10654/* confdefs.h.  */
10655_ACEOF
10656cat confdefs.h >>conftest.$ac_ext
10657cat >>conftest.$ac_ext <<_ACEOF
10658/* end confdefs.h.  */
10659
10660/* Override any gcc2 internal prototype to avoid an error.  */
10661#ifdef __cplusplus
10662extern "C"
10663#endif
10664/* We use char because int might match the return type of a gcc2
10665   builtin and then its argument prototype would still apply.  */
10666char dld_link ();
10667int
10668main ()
10669{
10670dld_link ();
10671  ;
10672  return 0;
10673}
10674_ACEOF
10675rm -f conftest.$ac_objext conftest$ac_exeext
10676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10677  (eval $ac_link) 2>conftest.er1
10678  ac_status=$?
10679  grep -v '^ *+' conftest.er1 >conftest.err
10680  rm -f conftest.er1
10681  cat conftest.err >&5
10682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683  (exit $ac_status); } &&
10684         { ac_try='test -z "$ac_c_werror_flag"
10685                         || test ! -s conftest.err'
10686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687  (eval $ac_try) 2>&5
10688  ac_status=$?
10689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690  (exit $ac_status); }; } &&
10691         { ac_try='test -s conftest$ac_exeext'
10692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693  (eval $ac_try) 2>&5
10694  ac_status=$?
10695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696  (exit $ac_status); }; }; then
10697  ac_cv_lib_dld_dld_link=yes
10698else
10699  echo "$as_me: failed program was:" >&5
10700sed 's/^/| /' conftest.$ac_ext >&5
10701
10702ac_cv_lib_dld_dld_link=no
10703fi
10704rm -f conftest.err conftest.$ac_objext \
10705      conftest$ac_exeext conftest.$ac_ext
10706LIBS=$ac_check_lib_save_LIBS
10707fi
10708echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10709echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10710if test $ac_cv_lib_dld_dld_link = yes; then
10711  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10712fi
10713
10714
10715fi
10716
10717
10718fi
10719
10720
10721fi
10722
10723
10724fi
10725
10726
10727fi
10728
10729    ;;
10730  esac
10731
10732  if test "x$lt_cv_dlopen" != xno; then
10733    enable_dlopen=yes
10734  else
10735    enable_dlopen=no
10736  fi
10737
10738  case $lt_cv_dlopen in
10739  dlopen)
10740    save_CPPFLAGS="$CPPFLAGS"
10741    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10742
10743