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

Last change on this file since 2326 was 2326, checked in by stefan, 8 years ago

update version number to 1.0

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