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

Last change on this file since 2390 was 2390, checked in by stefan, 9 years ago

temporarily committing release candidate

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