source: ThirdParty/SCIP/stable/1.0/configure @ 2539

Last change on this file since 2539 was 2539, checked in by stefan, 10 years ago

temporarily committing release candidate

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