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

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

restoring BuildTools/ThirdParty?/SCIP/stable/1.0

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