source: ThirdParty/SCIP/stable/1.2/configure @ 2996

Last change on this file since 2996 was 2996, checked in by tkr, 6 years ago

Re-running the autotools

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