source: ThirdParty/SCIP/stable/1.3/configure @ 3278

Last change on this file since 3278 was 3278, checked in by stefan, 7 years ago

restoring BuildTools/ThirdParty?/SCIP/stable/1.3

  • Property svn:executable set to *
File size: 869.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyScip 1.3.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2011-2012 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyScip'
431PACKAGE_TARNAME='thirdpartyscip'
432PACKAGE_VERSION='1.3'
433PACKAGE_STRING='ThirdPartyScip 1.3'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="scip/src/scip/scip.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SCIP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED SOPLEX_LIBS SOPLEX_CFLAGS SOPLEX_DATA SOPLEX_DEPENDENCIES SOPLEX_LIBS_INSTALLED SOPLEX_CFLAGS_INSTALLED SOPLEX_DATA_INSTALLED SCIPLIB_CFLAGS SCIPLIB_LIBS SCIPLIB_PCLIBS SCIPLIB_PCREQUIRES SCIPLIB_DEPENDENCIES SCIPLIB_CFLAGS_INSTALLED SCIPLIB_LIBS_INSTALLED COIN_HAS_SOPLEX_TRUE COIN_HAS_SOPLEX_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GRBINCDIR GRBLIB COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE QSOINCDIR QSOLIB COIN_HAS_QSO_TRUE COIN_HAS_QSO_FALSE IPOPT_LIBS IPOPT_CFLAGS IPOPT_DATA IPOPT_DEPENDENCIES IPOPT_LIBS_INSTALLED IPOPT_CFLAGS_INSTALLED IPOPT_DATA_INSTALLED COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyScip 1.3 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyScip 1.3:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-scip compile project SCIP with debug compiler flags
1084
1085  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086  --enable-static[=PKGS]
1087                          build static libraries [default=no]
1088  --disable-dependency-tracking  speeds up one-time build
1089  --enable-dependency-tracking   do not reject slow dependency extractors
1090  --enable-maintainer-mode  enable make rules and dependencies not useful
1091                          (and sometimes confusing) to the casual installer
1092  --enable-shared[=PKGS]
1093                          build shared libraries [default=yes]
1094  --enable-fast-install[=PKGS]
1095                          optimize for fast installation [default=yes]
1096  --disable-libtool-lock  avoid locking (might break parallel builds)
1097  --disable-pkg-config    disable use of pkg-config (if available)
1098  --disable-interpackage-dependencies
1099                          disables deduction of Makefile dependencies from
1100                          package linker flags
1101  --disable-cplex-libcheck
1102                          skip the link check at configuration time
1103  --disable-mosek-libcheck
1104                          skip the link check at configuration time
1105  --disable-xpress-libcheck
1106                          skip the link check at configuration time
1107  --disable-gurobi-libcheck
1108                          skip the link check at configuration time
1109  --disable-qsopt-libcheck
1110                          skip the link check at configuration time
1111  --disable-scip-threadsafe
1112                          do not build SCIP threadsafe (default=auto)
1113  --disable-zlib          do not compile with compression library zlib
1114  --disable-gmp           do not compile with GNU multiple precision library
1115  --enable-gnu-packages   compile with GNU packages (disabled by default)
1116
1117Optional Packages:
1118  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1119  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1120  --with-scip-verbosity specify the debug verbosity level for project SCIP
1121  --with-scip-checklevel specify the sanity check level for project SCIP
1122  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1123  --with-pic              try to use only PIC/non-PIC objects [default=use
1124                          both]
1125  --with-tags[=TAGS]
1126                          include additional configurations [automatic]
1127  --with-coin-instdir     prefix of installation directory for precompiled
1128                          COIN packages
1129
1130  --with-soplex-lib linker flags for using package SoPlex
1131  --with-soplex-incdir directory with header files for using package SoPlex
1132  --with-soplex-datadir directory with data files for using package SoPlex
1133  --with-clp-lib linker flags for using package Clp
1134  --with-clp-incdir directory with header files for using package Clp
1135  --with-clp-datadir directory with data files for using package Clp
1136  --with-cplex-incdir specify the header file directory for library Cplex
1137  --with-cplex-lib specify the flags used to link with the library Cplex
1138  --with-mosek-incdir specify the header file directory for library Mosek
1139  --with-mosek-lib specify the flags used to link with the library Mosek
1140  --with-xpress-incdir specify the header file directory for library Xpress
1141  --with-xpress-lib specify the flags used to link with the library Xpress
1142  --with-gurobi-incdir specify the header file directory for library Gurobi
1143  --with-gurobi-lib specify the flags used to link with the library Gurobi
1144  --with-qsopt-incdir specify the header file directory for library QSopt
1145  --with-qsopt-lib specify the flags used to link with the library QSopt
1146  --with-scip-lpsolver    specify default LP solver to use in SCIP (soplex,
1147                          soplex2, clp, cplex, mosek, xpress, gurobi, qsopt,
1148                          none)
1149  --with-ipopt-lib linker flags for using package Ipopt
1150  --with-ipopt-incdir directory with header files for using package Ipopt
1151  --with-ipopt-datadir directory with data files for using package Ipopt
1152
1153Some influential environment variables:
1154  CDEFS       Additional -D flags to be used when compiling C code.
1155  ADD_CFLAGS  Additional C compiler options
1156  DBG_CFLAGS  Debug C compiler options
1157  OPT_CFLAGS  Optimize C compiler options
1158  CC          C compiler command
1159  CFLAGS      C compiler flags
1160  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1161              nonstandard directory <lib dir>
1162  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1163              headers in a nonstandard directory <include dir>
1164  MPICC       C MPI Compiler
1165  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1166  ADD_CXXFLAGS
1167              Additional C++ compiler options
1168  DBG_CXXFLAGS
1169              Debug C++ compiler options
1170  OPT_CXXFLAGS
1171              Optimize C++ compiler options
1172  CXX         C++ compiler command
1173  CXXFLAGS    C++ compiler flags
1174  MPICXX      C++ MPI Compiler
1175  CPP         C preprocessor
1176  CXXCPP      C++ preprocessor
1177  F77         Fortran 77 compiler command
1178  FFLAGS      Fortran 77 compiler flags
1179  PKG_CONFIG  path to pkg-config utility
1180
1181Use these variables to override the choices made by `configure' or to help
1182it to find libraries and programs with nonstandard names/locations.
1183
1184Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1185_ACEOF
1186fi
1187
1188if test "$ac_init_help" = "recursive"; then
1189  # If there are subdirs, report their specific --help.
1190  ac_popdir=`pwd`
1191  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1192    test -d $ac_dir || continue
1193    ac_builddir=.
1194
1195if test "$ac_dir" != .; then
1196  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1197  # A "../" for each directory in $ac_dir_suffix.
1198  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1199else
1200  ac_dir_suffix= ac_top_builddir=
1201fi
1202
1203case $srcdir in
1204  .)  # No --srcdir option.  We are building in place.
1205    ac_srcdir=.
1206    if test -z "$ac_top_builddir"; then
1207       ac_top_srcdir=.
1208    else
1209       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1210    fi ;;
1211  [\\/]* | ?:[\\/]* )  # Absolute path.
1212    ac_srcdir=$srcdir$ac_dir_suffix;
1213    ac_top_srcdir=$srcdir ;;
1214  *) # Relative path.
1215    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1216    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1217esac
1218
1219# Do not use `cd foo && pwd` to compute absolute paths, because
1220# the directories may not exist.
1221case `pwd` in
1222.) ac_abs_builddir="$ac_dir";;
1223*)
1224  case "$ac_dir" in
1225  .) ac_abs_builddir=`pwd`;;
1226  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1227  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1228  esac;;
1229esac
1230case $ac_abs_builddir in
1231.) ac_abs_top_builddir=${ac_top_builddir}.;;
1232*)
1233  case ${ac_top_builddir}. in
1234  .) ac_abs_top_builddir=$ac_abs_builddir;;
1235  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1236  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1237  esac;;
1238esac
1239case $ac_abs_builddir in
1240.) ac_abs_srcdir=$ac_srcdir;;
1241*)
1242  case $ac_srcdir in
1243  .) ac_abs_srcdir=$ac_abs_builddir;;
1244  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1245  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1246  esac;;
1247esac
1248case $ac_abs_builddir in
1249.) ac_abs_top_srcdir=$ac_top_srcdir;;
1250*)
1251  case $ac_top_srcdir in
1252  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1253  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1254  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1255  esac;;
1256esac
1257
1258    cd $ac_dir
1259    # Check for guested configure; otherwise get Cygnus style configure.
1260    if test -f $ac_srcdir/configure.gnu; then
1261      echo
1262      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1263    elif test -f $ac_srcdir/configure; then
1264      echo
1265      $SHELL $ac_srcdir/configure  --help=recursive
1266    elif test -f $ac_srcdir/configure.ac ||
1267           test -f $ac_srcdir/configure.in; then
1268      echo
1269      $ac_configure --help
1270    else
1271      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1272    fi
1273    cd $ac_popdir
1274  done
1275fi
1276
1277test -n "$ac_init_help" && exit 0
1278if $ac_init_version; then
1279  cat <<\_ACEOF
1280ThirdPartyScip configure 1.3
1281generated by GNU Autoconf 2.59
1282
1283Copyright (C) 2003 Free Software Foundation, Inc.
1284This configure script is free software; the Free Software Foundation
1285gives unlimited permission to copy, distribute and modify it.
1286
1287
1288Copyright 2011-2012 Stefan Vigerske and others.
1289All Rights Reserved.
1290This file is part of the open source package COIN-OR which is distributed
1291under the Eclipse Public License.
1292_ACEOF
1293  exit 0
1294fi
1295exec 5>config.log
1296cat >&5 <<_ACEOF
1297This file contains any messages produced by compilers while
1298running configure, to aid debugging if configure makes a mistake.
1299
1300It was created by ThirdPartyScip $as_me 1.3, which was
1301generated by GNU Autoconf 2.59.  Invocation command line was
1302
1303  $ $0 $@
1304
1305_ACEOF
1306{
1307cat <<_ASUNAME
1308## --------- ##
1309## Platform. ##
1310## --------- ##
1311
1312hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1313uname -m = `(uname -m) 2>/dev/null || echo unknown`
1314uname -r = `(uname -r) 2>/dev/null || echo unknown`
1315uname -s = `(uname -s) 2>/dev/null || echo unknown`
1316uname -v = `(uname -v) 2>/dev/null || echo unknown`
1317
1318/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1319/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1320
1321/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1322/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1323/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1324hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1325/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1326/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1327/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1328
1329_ASUNAME
1330
1331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1332for as_dir in $PATH
1333do
1334  IFS=$as_save_IFS
1335  test -z "$as_dir" && as_dir=.
1336  echo "PATH: $as_dir"
1337done
1338
1339} >&5
1340
1341cat >&5 <<_ACEOF
1342
1343
1344## ----------- ##
1345## Core tests. ##
1346## ----------- ##
1347
1348_ACEOF
1349
1350
1351# Keep a trace of the command line.
1352# Strip out --no-create and --no-recursion so they do not pile up.
1353# Strip out --silent because we don't want to record it for future runs.
1354# Also quote any args containing shell meta-characters.
1355# Make two passes to allow for proper duplicate-argument suppression.
1356ac_configure_args=
1357ac_configure_args0=
1358ac_configure_args1=
1359ac_sep=
1360ac_must_keep_next=false
1361for ac_pass in 1 2
1362do
1363  for ac_arg
1364  do
1365    case $ac_arg in
1366    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1367    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1368    | -silent | --silent | --silen | --sile | --sil)
1369      continue ;;
1370    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1371      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1372    esac
1373    case $ac_pass in
1374    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1375    2)
1376      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1377      if test $ac_must_keep_next = true; then
1378        ac_must_keep_next=false # Got value, back to normal.
1379      else
1380        case $ac_arg in
1381          *=* | --config-cache | -C | -disable-* | --disable-* \
1382          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1383          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1384          | -with-* | --with-* | -without-* | --without-* | --x)
1385            case "$ac_configure_args0 " in
1386              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1387            esac
1388            ;;
1389          -* ) ac_must_keep_next=true ;;
1390        esac
1391      fi
1392      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1393      # Get rid of the leading space.
1394      ac_sep=" "
1395      ;;
1396    esac
1397  done
1398done
1399$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1400$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1401
1402# When interrupted or exit'd, cleanup temporary files, and complete
1403# config.log.  We remove comments because anyway the quotes in there
1404# would cause problems or look ugly.
1405# WARNING: Be sure not to use single quotes in there, as some shells,
1406# such as our DU 5.0 friend, will then `close' the trap.
1407trap 'exit_status=$?
1408  # Save into config.log some information that might help in debugging.
1409  {
1410    echo
1411
1412    cat <<\_ASBOX
1413## ---------------- ##
1414## Cache variables. ##
1415## ---------------- ##
1416_ASBOX
1417    echo
1418    # The following way of writing the cache mishandles newlines in values,
1419{
1420  (set) 2>&1 |
1421    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1422    *ac_space=\ *)
1423      sed -n \
1424        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1425          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1426      ;;
1427    *)
1428      sed -n \
1429        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1430      ;;
1431    esac;
1432}
1433    echo
1434
1435    cat <<\_ASBOX
1436## ----------------- ##
1437## Output variables. ##
1438## ----------------- ##
1439_ASBOX
1440    echo
1441    for ac_var in $ac_subst_vars
1442    do
1443      eval ac_val=$`echo $ac_var`
1444      echo "$ac_var='"'"'$ac_val'"'"'"
1445    done | sort
1446    echo
1447
1448    if test -n "$ac_subst_files"; then
1449      cat <<\_ASBOX
1450## ------------- ##
1451## Output files. ##
1452## ------------- ##
1453_ASBOX
1454      echo
1455      for ac_var in $ac_subst_files
1456      do
1457        eval ac_val=$`echo $ac_var`
1458        echo "$ac_var='"'"'$ac_val'"'"'"
1459      done | sort
1460      echo
1461    fi
1462
1463    if test -s confdefs.h; then
1464      cat <<\_ASBOX
1465## ----------- ##
1466## confdefs.h. ##
1467## ----------- ##
1468_ASBOX
1469      echo
1470      sed "/^$/d" confdefs.h | sort
1471      echo
1472    fi
1473    test "$ac_signal" != 0 &&
1474      echo "$as_me: caught signal $ac_signal"
1475    echo "$as_me: exit $exit_status"
1476  } >&5
1477  rm -f core *.core &&
1478  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1479    exit $exit_status
1480     ' 0
1481for ac_signal in 1 2 13 15; do
1482  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1483done
1484ac_signal=0
1485
1486# confdefs.h avoids OS command line length limits that DEFS can exceed.
1487rm -rf conftest* confdefs.h
1488# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1489echo >confdefs.h
1490
1491# Predefined preprocessor variables.
1492
1493cat >>confdefs.h <<_ACEOF
1494#define PACKAGE_NAME "$PACKAGE_NAME"
1495_ACEOF
1496
1497
1498cat >>confdefs.h <<_ACEOF
1499#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1500_ACEOF
1501
1502
1503cat >>confdefs.h <<_ACEOF
1504#define PACKAGE_VERSION "$PACKAGE_VERSION"
1505_ACEOF
1506
1507
1508cat >>confdefs.h <<_ACEOF
1509#define PACKAGE_STRING "$PACKAGE_STRING"
1510_ACEOF
1511
1512
1513cat >>confdefs.h <<_ACEOF
1514#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1515_ACEOF
1516
1517
1518# Let the site file select an alternate cache file if it wants to.
1519# Prefer explicitly selected file to automatically selected ones.
1520if test -z "$CONFIG_SITE"; then
1521  if test "x$prefix" != xNONE; then
1522    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1523  else
1524    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1525  fi
1526fi
1527for ac_site_file in $CONFIG_SITE; do
1528  if test -r "$ac_site_file"; then
1529    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1530echo "$as_me: loading site script $ac_site_file" >&6;}
1531    sed 's/^/| /' "$ac_site_file" >&5
1532    . "$ac_site_file"
1533  fi
1534done
1535
1536if test -r "$cache_file"; then
1537  # Some versions of bash will fail to source /dev/null (special
1538  # files actually), so we avoid doing that.
1539  if test -f "$cache_file"; then
1540    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1541echo "$as_me: loading cache $cache_file" >&6;}
1542    case $cache_file in
1543      [\\/]* | ?:[\\/]* ) . $cache_file;;
1544      *)                      . ./$cache_file;;
1545    esac
1546  fi
1547else
1548  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1549echo "$as_me: creating cache $cache_file" >&6;}
1550  >$cache_file
1551fi
1552
1553# Check that the precious variables saved in the cache have kept the same
1554# value.
1555ac_cache_corrupted=false
1556for ac_var in `(set) 2>&1 |
1557               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1558  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1559  eval ac_new_set=\$ac_env_${ac_var}_set
1560  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1561  eval ac_new_val="\$ac_env_${ac_var}_value"
1562  case $ac_old_set,$ac_new_set in
1563    set,)
1564      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1565echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1566      ac_cache_corrupted=: ;;
1567    ,set)
1568      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1569echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1570      ac_cache_corrupted=: ;;
1571    ,);;
1572    *)
1573      if test "x$ac_old_val" != "x$ac_new_val"; then
1574        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1575echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1576        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1577echo "$as_me:   former value:  $ac_old_val" >&2;}
1578        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1579echo "$as_me:   current value: $ac_new_val" >&2;}
1580        ac_cache_corrupted=:
1581      fi;;
1582  esac
1583  # Pass precious variables to config.status.
1584  if test "$ac_new_set" = set; then
1585    case $ac_new_val in
1586    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1587      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1588    *) ac_arg=$ac_var=$ac_new_val ;;
1589    esac
1590    case " $ac_configure_args " in
1591      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1592      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1593    esac
1594  fi
1595done
1596if $ac_cache_corrupted; then
1597  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1598echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1599  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1600echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1601   { (exit 1); exit 1; }; }
1602fi
1603
1604ac_ext=c
1605ac_cpp='$CPP $CPPFLAGS'
1606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1608ac_compiler_gnu=$ac_cv_c_compiler_gnu
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639# List one file in the package so that the configure script can test
1640# whether the package is actually there
1641
1642
1643# Where should everything be installed by default?  Here, we want it
1644# to be installed directly in 'bin', 'lib', 'include' subdirectories
1645# of the directory where configure is run.  The default would be
1646# /usr/local.
1647
1648
1649
1650# As backup, we make sure we don't loose an FLIBS if it has been set
1651# by the user
1652save_FLIBS="$FLIBS"
1653
1654# A useful makefile conditional that is always false
1655
1656
1657if false; then
1658  ALWAYS_FALSE_TRUE=
1659  ALWAYS_FALSE_FALSE='#'
1660else
1661  ALWAYS_FALSE_TRUE='#'
1662  ALWAYS_FALSE_FALSE=
1663fi
1664
1665
1666# We set the following variable so that we know later in AC_COIN_FINALIZE
1667# that we are in a project main directory
1668coin_projectdir=yes
1669
1670# Set the project's version numbers
1671
1672
1673cat >>confdefs.h <<_ACEOF
1674#define SCIP_VERSION "$PACKAGE_VERSION"
1675_ACEOF
1676
1677
1678  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1679  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1680  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1681  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1682  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1683  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1684
1685cat >>confdefs.h <<_ACEOF
1686#define SCIP_VERSION_MAJOR $coin_majorver
1687_ACEOF
1688
1689
1690cat >>confdefs.h <<_ACEOF
1691#define SCIP_VERSION_MINOR $coin_minorver
1692_ACEOF
1693
1694
1695cat >>confdefs.h <<_ACEOF
1696#define SCIP_VERSION_RELEASE $coin_releasever
1697_ACEOF
1698
1699
1700  # We use the following variable to have a string with the upper case
1701  # version of the project name
1702  COIN_PRJCT=SCIP
1703
1704  # Set the project's SVN revision number. The complicated sed expression
1705  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1706  # as a single number.
1707  # Extract the first word of "svnversion", so it can be a program name with args.
1708set dummy svnversion; ac_word=$2
1709echo "$as_me:$LINENO: checking for $ac_word" >&5
1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711if test "${ac_cv_prog_have_svnversion+set}" = set; then
1712  echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714  if test -n "$have_svnversion"; then
1715  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1716else
1717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718for as_dir in $PATH
1719do
1720  IFS=$as_save_IFS
1721  test -z "$as_dir" && as_dir=.
1722  for ac_exec_ext in '' $ac_executable_extensions; do
1723  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724    ac_cv_prog_have_svnversion="yes"
1725    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726    break 2
1727  fi
1728done
1729done
1730
1731  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1732fi
1733fi
1734have_svnversion=$ac_cv_prog_have_svnversion
1735if test -n "$have_svnversion"; then
1736  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1737echo "${ECHO_T}$have_svnversion" >&6
1738else
1739  echo "$as_me:$LINENO: result: no" >&5
1740echo "${ECHO_T}no" >&6
1741fi
1742
1743  if test "x$have_svnversion" = xyes; then
1744
1745    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1746    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1747      SCIP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1748
1749cat >>confdefs.h <<_ACEOF
1750#define SCIP_SVN_REV $SCIP_SVN_REV
1751_ACEOF
1752
1753    fi
1754  fi
1755
1756
1757
1758# Capture libtool library version, if given.
1759
1760
1761
1762
1763#############################################################################
1764#                         Standard build tool stuff                         #
1765#############################################################################
1766
1767# Get the system type
1768ac_aux_dir=
1769for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1770  if test -f $ac_dir/install-sh; then
1771    ac_aux_dir=$ac_dir
1772    ac_install_sh="$ac_aux_dir/install-sh -c"
1773    break
1774  elif test -f $ac_dir/install.sh; then
1775    ac_aux_dir=$ac_dir
1776    ac_install_sh="$ac_aux_dir/install.sh -c"
1777    break
1778  elif test -f $ac_dir/shtool; then
1779    ac_aux_dir=$ac_dir
1780    ac_install_sh="$ac_aux_dir/shtool install -c"
1781    break
1782  fi
1783done
1784if test -z "$ac_aux_dir"; then
1785  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1786echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1787   { (exit 1); exit 1; }; }
1788fi
1789ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1790ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1791ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1792
1793# Make sure we can run config.sub.
1794$ac_config_sub sun4 >/dev/null 2>&1 ||
1795  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1796echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1797   { (exit 1); exit 1; }; }
1798
1799echo "$as_me:$LINENO: checking build system type" >&5
1800echo $ECHO_N "checking build system type... $ECHO_C" >&6
1801if test "${ac_cv_build+set}" = set; then
1802  echo $ECHO_N "(cached) $ECHO_C" >&6
1803else
1804  ac_cv_build_alias=$build_alias
1805test -z "$ac_cv_build_alias" &&
1806  ac_cv_build_alias=`$ac_config_guess`
1807test -z "$ac_cv_build_alias" &&
1808  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1809echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1810   { (exit 1); exit 1; }; }
1811ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1812  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1813echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1814   { (exit 1); exit 1; }; }
1815
1816fi
1817echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1818echo "${ECHO_T}$ac_cv_build" >&6
1819build=$ac_cv_build
1820build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1821build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1822build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1823
1824
1825
1826# Check if user wants to produce debugging code
1827
1828echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1829echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1830
1831# Check whether --enable-debug or --disable-debug was given.
1832if test "${enable_debug+set}" = set; then
1833  enableval="$enable_debug"
1834  case "${enableval}" in
1835   yes) coin_debug_compile=true
1836        if test "${enable_shared+set}" = set; then :; else
1837          enable_shared=no
1838        fi
1839        ;;
1840   no)  coin_debug_compile=false
1841        ;;
1842   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1843echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1844   { (exit 1); exit 1; }; }
1845        ;;
1846esac
1847else
1848  coin_debug_compile=false
1849fi;
1850
1851# Check whether --enable-debug-scip or --disable-debug-scip was given.
1852if test "${enable_debug_scip+set}" = set; then
1853  enableval="$enable_debug_scip"
1854  case "${enableval}" in
1855    yes) coin_debug_compile=true
1856         ;;
1857    no)  coin_debug_compile=false
1858         ;;
1859    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-scip" >&5
1860echo "$as_me: error: bad value ${enableval} for --enable-debug-scip" >&2;}
1861   { (exit 1); exit 1; }; }
1862         ;;
1863 esac
1864else
1865  :
1866fi;
1867
1868 # m4_ifvaln([SCIP],
1869
1870if test $coin_debug_compile = true; then
1871  echo "$as_me:$LINENO: result: yes" >&5
1872echo "${ECHO_T}yes" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878
1879# Check whether --with-scip-verbosity or --without-scip-verbosity was given.
1880if test "${with_scip_verbosity+set}" = set; then
1881  withval="$with_scip_verbosity"
1882  if test "$withval" = yes; then
1883                withval=1
1884              fi
1885              coin_scip_verbosity=$withval
1886else
1887  coin_scip_verbosity=0
1888fi;
1889
1890cat >>confdefs.h <<_ACEOF
1891#define COIN_SCIP_VERBOSITY $coin_scip_verbosity
1892_ACEOF
1893
1894
1895
1896# Check whether --with-scip-checklevel or --without-scip-checklevel was given.
1897if test "${with_scip_checklevel+set}" = set; then
1898  withval="$with_scip_checklevel"
1899  if test "$withval" = yes; then
1900                withval=1
1901              fi
1902              coin_scip_checklevel=$withval
1903else
1904  coin_scip_checklevel=0
1905fi;
1906
1907cat >>confdefs.h <<_ACEOF
1908#define COIN_SCIP_CHECKLEVEL $coin_scip_checklevel
1909_ACEOF
1910
1911
1912 # m4_ifvaln([SCIP],
1913
1914
1915
1916# Get the name of the C compiler and appropriate compiler options
1917
1918
1919  # for backward compatibility
1920  # Check whether --enable-doscompile or --disable-doscompile was given.
1921if test "${enable_doscompile+set}" = set; then
1922  enableval="$enable_doscompile"
1923  enable_doscompile=$enableval
1924else
1925  enable_doscompile=no
1926fi;
1927
1928  # Check whether --enable-msvc or --disable-msvc was given.
1929if test "${enable_msvc+set}" = set; then
1930  enableval="$enable_msvc"
1931  enable_msvc=$enableval
1932else
1933  enable_msvc=no
1934     if test "$enable_doscompile" = msvc ; then
1935       enable_msvc=yes
1936     elif test "$enable_doscompile" != no ; then
1937       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1938echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1939   { (exit 1); exit 1; }; }
1940     fi
1941
1942fi;
1943
1944  if test "$enable_msvc" = MD; then
1945    enable_shared=yes
1946    enable_msvc=yes
1947  fi
1948
1949  if test "$enable_msvc" = yes; then
1950    case $build in
1951      *-cygwin* | *-mingw*) ;;
1952      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1953echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1954   { (exit 1); exit 1; }; } ;;
1955    esac
1956  fi
1957
1958
1959
1960ac_ext=c
1961ac_cpp='$CPP $CPPFLAGS'
1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965
1966
1967# For consistency, we set the C compiler to the same value of the C++
1968# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1969if test x"$CXX" != x; then
1970  case "$CXX" in
1971    clang* ) ;;
1972    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1973      if test x"$CC" = x; then
1974        CC="$CXX"
1975        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1976echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1977      fi
1978      ;;
1979  esac
1980fi
1981
1982
1983
1984
1985
1986
1987coin_has_cc=yes
1988
1989save_cflags="$CFLAGS"
1990
1991# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1992# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1993# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1994# compiler. In this case, put cc after gcc.
1995
1996case $build in
1997  *-cygwin* | *-mingw*)
1998             if test "$enable_msvc" = yes ; then
1999               comps="icl cl gcc"
2000             else
2001               comps="gcc icl cl"
2002             fi ;;
2003  *-*-solaris*)
2004             # Extract the first word of "cc", so it can be a program name with args.
2005set dummy cc; ac_word=$2
2006echo "$as_me:$LINENO: checking for $ac_word" >&5
2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2009  echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011  if test -n "$sol_cc_compiler"; then
2012  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2013else
2014  ac_prog_rejected=no
2015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016for as_dir in $PATH
2017do
2018  IFS=$as_save_IFS
2019  test -z "$as_dir" && as_dir=.
2020  for ac_exec_ext in '' $ac_executable_extensions; do
2021  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2023       ac_prog_rejected=yes
2024       continue
2025     fi
2026    ac_cv_prog_sol_cc_compiler="cc"
2027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028    break 2
2029  fi
2030done
2031done
2032
2033if test $ac_prog_rejected = yes; then
2034  # We found a bogon in the path, so make sure we never use it.
2035  set dummy $ac_cv_prog_sol_cc_compiler
2036  shift
2037  if test $# != 0; then
2038    # We chose a different compiler from the bogus one.
2039    # However, it has the same basename, so the bogon will be chosen
2040    # first if we set sol_cc_compiler to just the basename; use the full file name.
2041    shift
2042    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2043  fi
2044fi
2045fi
2046fi
2047sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2048if test -n "$sol_cc_compiler"; then
2049  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2050echo "${ECHO_T}$sol_cc_compiler" >&6
2051else
2052  echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6
2054fi
2055
2056             if test "$sol_cc_compiler" = "cc" ; then
2057               comps="cc xlc gcc pgcc icc"
2058             else
2059               comps="xlc gcc pgcc icc cc"
2060             fi
2061             ;;
2062  *-*-darwin*) comps="clang gcc cc" ;;
2063  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2064  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2065  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2066esac
2067
2068# We delete the cached value, since the test might not have been
2069# performed with our choice of compilers earlier
2070$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2071# AC_MSG_NOTICE([C compiler candidates: $comps])
2072ac_ext=c
2073ac_cpp='$CPP $CPPFLAGS'
2074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077if test -n "$ac_tool_prefix"; then
2078  for ac_prog in $comps
2079  do
2080    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2082echo "$as_me:$LINENO: checking for $ac_word" >&5
2083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084if test "${ac_cv_prog_CC+set}" = set; then
2085  echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087  if test -n "$CC"; then
2088  ac_cv_prog_CC="$CC" # Let the user override the test.
2089else
2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091for as_dir in $PATH
2092do
2093  IFS=$as_save_IFS
2094  test -z "$as_dir" && as_dir=.
2095  for ac_exec_ext in '' $ac_executable_extensions; do
2096  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099    break 2
2100  fi
2101done
2102done
2103
2104fi
2105fi
2106CC=$ac_cv_prog_CC
2107if test -n "$CC"; then
2108  echo "$as_me:$LINENO: result: $CC" >&5
2109echo "${ECHO_T}$CC" >&6
2110else
2111  echo "$as_me:$LINENO: result: no" >&5
2112echo "${ECHO_T}no" >&6
2113fi
2114
2115    test -n "$CC" && break
2116  done
2117fi
2118if test -z "$CC"; then
2119  ac_ct_CC=$CC
2120  for ac_prog in $comps
2121do
2122  # Extract the first word of "$ac_prog", so it can be a program name with args.
2123set dummy $ac_prog; ac_word=$2
2124echo "$as_me:$LINENO: checking for $ac_word" >&5
2125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127  echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129  if test -n "$ac_ct_CC"; then
2130  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131else
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135  IFS=$as_save_IFS
2136  test -z "$as_dir" && as_dir=.
2137  for ac_exec_ext in '' $ac_executable_extensions; do
2138  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139    ac_cv_prog_ac_ct_CC="$ac_prog"
2140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141    break 2
2142  fi
2143done
2144done
2145
2146fi
2147fi
2148ac_ct_CC=$ac_cv_prog_ac_ct_CC
2149if test -n "$ac_ct_CC"; then
2150  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2151echo "${ECHO_T}$ac_ct_CC" >&6
2152else
2153  echo "$as_me:$LINENO: result: no" >&5
2154echo "${ECHO_T}no" >&6
2155fi
2156
2157  test -n "$ac_ct_CC" && break
2158done
2159
2160  CC=$ac_ct_CC
2161fi
2162
2163
2164test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: no acceptable C compiler found in \$PATH
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169
2170# Provide some information about the compiler.
2171echo "$as_me:$LINENO:" \
2172     "checking for C compiler version" >&5
2173ac_compiler=`set X $ac_compile; echo $2`
2174{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2175  (eval $ac_compiler --version </dev/null >&5) 2>&5
2176  ac_status=$?
2177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178  (exit $ac_status); }
2179{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2180  (eval $ac_compiler -v </dev/null >&5) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }
2184{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2185  (eval $ac_compiler -V </dev/null >&5) 2>&5
2186  ac_status=$?
2187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188  (exit $ac_status); }
2189
2190cat >conftest.$ac_ext <<_ACEOF
2191/* confdefs.h.  */
2192_ACEOF
2193cat confdefs.h >>conftest.$ac_ext
2194cat >>conftest.$ac_ext <<_ACEOF
2195/* end confdefs.h.  */
2196
2197int
2198main ()
2199{
2200
2201  ;
2202  return 0;
2203}
2204_ACEOF
2205ac_clean_files_save=$ac_clean_files
2206ac_clean_files="$ac_clean_files a.out a.exe b.out"
2207# Try to create an executable without -o first, disregard a.out.
2208# It will help us diagnose broken compilers, and finding out an intuition
2209# of exeext.
2210echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2211echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2212ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2213if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2214  (eval $ac_link_default) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); }; then
2218  # Find the output, starting from the most likely.  This scheme is
2219# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2220# resort.
2221
2222# Be careful to initialize this variable, since it used to be cached.
2223# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2224ac_cv_exeext=
2225# b.out is created by i960 compilers.
2226for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2227do
2228  test -f "$ac_file" || continue
2229  case $ac_file in
2230    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2231        ;;
2232    conftest.$ac_ext )
2233        # This is the source file.
2234        ;;
2235    [ab].out )
2236        # We found the default executable, but exeext='' is most
2237        # certainly right.
2238        break;;
2239    *.* )
2240        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2241        # FIXME: I believe we export ac_cv_exeext for Libtool,
2242        # but it would be cool to find out if it's true.  Does anybody
2243        # maintain Libtool? --akim.
2244        export ac_cv_exeext
2245        break;;
2246    * )
2247        break;;
2248  esac
2249done
2250else
2251  echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2255See \`config.log' for more details." >&5
2256echo "$as_me: error: C compiler cannot create executables
2257See \`config.log' for more details." >&2;}
2258   { (exit 77); exit 77; }; }
2259fi
2260
2261ac_exeext=$ac_cv_exeext
2262echo "$as_me:$LINENO: result: $ac_file" >&5
2263echo "${ECHO_T}$ac_file" >&6
2264
2265# Check the compiler produces executables we can run.  If not, either
2266# the compiler is broken, or we cross compile.
2267echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2268echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2269# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2270# If not cross compiling, check that we can run a simple program.
2271if test "$cross_compiling" != yes; then
2272  if { ac_try='./$ac_file'
2273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274  (eval $ac_try) 2>&5
2275  ac_status=$?
2276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277  (exit $ac_status); }; }; then
2278    cross_compiling=no
2279  else
2280    if test "$cross_compiling" = maybe; then
2281        cross_compiling=yes
2282    else
2283        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2284If you meant to cross compile, use \`--host'.
2285See \`config.log' for more details." >&5
2286echo "$as_me: error: cannot run C compiled programs.
2287If you meant to cross compile, use \`--host'.
2288See \`config.log' for more details." >&2;}
2289   { (exit 1); exit 1; }; }
2290    fi
2291  fi
2292fi
2293echo "$as_me:$LINENO: result: yes" >&5
2294echo "${ECHO_T}yes" >&6
2295
2296rm -f a.out a.exe conftest$ac_cv_exeext b.out
2297ac_clean_files=$ac_clean_files_save
2298# Check the compiler produces executables we can run.  If not, either
2299# the compiler is broken, or we cross compile.
2300echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2301echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2302echo "$as_me:$LINENO: result: $cross_compiling" >&5
2303echo "${ECHO_T}$cross_compiling" >&6
2304
2305echo "$as_me:$LINENO: checking for suffix of executables" >&5
2306echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2308  (eval $ac_link) 2>&5
2309  ac_status=$?
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); }; then
2312  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2313# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2314# work properly (i.e., refer to `conftest.exe'), while it won't with
2315# `rm'.
2316for ac_file in conftest.exe conftest conftest.*; do
2317  test -f "$ac_file" || continue
2318  case $ac_file in
2319    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2320    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2321          export ac_cv_exeext
2322          break;;
2323    * ) break;;
2324  esac
2325done
2326else
2327  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2330See \`config.log' for more details." >&2;}
2331   { (exit 1); exit 1; }; }
2332fi
2333
2334rm -f conftest$ac_cv_exeext
2335echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2336echo "${ECHO_T}$ac_cv_exeext" >&6
2337
2338rm -f conftest.$ac_ext
2339EXEEXT=$ac_cv_exeext
2340ac_exeext=$EXEEXT
2341echo "$as_me:$LINENO: checking for suffix of object files" >&5
2342echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2343if test "${ac_cv_objext+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h.  */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h.  */
2352
2353int
2354main ()
2355{
2356
2357  ;
2358  return 0;
2359}
2360_ACEOF
2361rm -f conftest.o conftest.obj
2362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363  (eval $ac_compile) 2>&5
2364  ac_status=$?
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); }; then
2367  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2368  case $ac_file in
2369    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2370    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2371       break;;
2372  esac
2373done
2374else
2375  echo "$as_me: failed program was:" >&5
2376sed 's/^/| /' conftest.$ac_ext >&5
2377
2378{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2379See \`config.log' for more details." >&5
2380echo "$as_me: error: cannot compute suffix of object files: cannot compile
2381See \`config.log' for more details." >&2;}
2382   { (exit 1); exit 1; }; }
2383fi
2384
2385rm -f conftest.$ac_cv_objext conftest.$ac_ext
2386fi
2387echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2388echo "${ECHO_T}$ac_cv_objext" >&6
2389OBJEXT=$ac_cv_objext
2390ac_objext=$OBJEXT
2391echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2392echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2393if test "${ac_cv_c_compiler_gnu+set}" = set; then
2394  echo $ECHO_N "(cached) $ECHO_C" >&6
2395else
2396  cat >conftest.$ac_ext <<_ACEOF
2397/* confdefs.h.  */
2398_ACEOF
2399cat confdefs.h >>conftest.$ac_ext
2400cat >>conftest.$ac_ext <<_ACEOF
2401/* end confdefs.h.  */
2402
2403int
2404main ()
2405{
2406#ifndef __GNUC__
2407       choke me
2408#endif
2409
2410  ;
2411  return 0;
2412}
2413_ACEOF
2414rm -f conftest.$ac_objext
2415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416  (eval $ac_compile) 2>conftest.er1
2417  ac_status=$?
2418  grep -v '^ *+' conftest.er1 >conftest.err
2419  rm -f conftest.er1
2420  cat conftest.err >&5
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); } &&
2423         { ac_try='test -z "$ac_c_werror_flag"
2424                         || test ! -s conftest.err'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; } &&
2430         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2436  ac_compiler_gnu=yes
2437else
2438  echo "$as_me: failed program was:" >&5
2439sed 's/^/| /' conftest.$ac_ext >&5
2440
2441ac_compiler_gnu=no
2442fi
2443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444ac_cv_c_compiler_gnu=$ac_compiler_gnu
2445
2446fi
2447echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2448echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2449GCC=`test $ac_compiler_gnu = yes && echo yes`
2450ac_test_CFLAGS=${CFLAGS+set}
2451ac_save_CFLAGS=$CFLAGS
2452CFLAGS="-g"
2453echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2454echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2455if test "${ac_cv_prog_cc_g+set}" = set; then
2456  echo $ECHO_N "(cached) $ECHO_C" >&6
2457else
2458  cat >conftest.$ac_ext <<_ACEOF
2459/* confdefs.h.  */
2460_ACEOF
2461cat confdefs.h >>conftest.$ac_ext
2462cat >>conftest.$ac_ext <<_ACEOF
2463/* end confdefs.h.  */
2464
2465int
2466main ()
2467{
2468
2469  ;
2470  return 0;
2471}
2472_ACEOF
2473rm -f conftest.$ac_objext
2474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475  (eval $ac_compile) 2>conftest.er1
2476  ac_status=$?
2477  grep -v '^ *+' conftest.er1 >conftest.err
2478  rm -f conftest.er1
2479  cat conftest.err >&5
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); } &&
2482         { ac_try='test -z "$ac_c_werror_flag"
2483                         || test ! -s conftest.err'
2484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485  (eval $ac_try) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); }; } &&
2489         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2495  ac_cv_prog_cc_g=yes
2496else
2497  echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500ac_cv_prog_cc_g=no
2501fi
2502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503fi
2504echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2505echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2506if test "$ac_test_CFLAGS" = set; then
2507  CFLAGS=$ac_save_CFLAGS
2508elif test $ac_cv_prog_cc_g = yes; then
2509  if test "$GCC" = yes; then
2510    CFLAGS="-g -O2"
2511  else
2512    CFLAGS="-g"
2513  fi
2514else
2515  if test "$GCC" = yes; then
2516    CFLAGS="-O2"
2517  else
2518    CFLAGS=
2519  fi
2520fi
2521echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2522echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2523if test "${ac_cv_prog_cc_stdc+set}" = set; then
2524  echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526  ac_cv_prog_cc_stdc=no
2527ac_save_CC=$CC
2528cat >conftest.$ac_ext <<_ACEOF
2529/* confdefs.h.  */
2530_ACEOF
2531cat confdefs.h >>conftest.$ac_ext
2532cat >>conftest.$ac_ext <<_ACEOF
2533/* end confdefs.h.  */
2534#include <stdarg.h>
2535#include <stdio.h>
2536#include <sys/types.h>
2537#include <sys/stat.h>
2538/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2539struct buf { int x; };
2540FILE * (*rcsopen) (struct buf *, struct stat *, int);
2541static char *e (p, i)
2542     char **p;
2543     int i;
2544{
2545  return p[i];
2546}
2547static char *f (char * (*g) (char **, int), char **p, ...)
2548{
2549  char *s;
2550  va_list v;
2551  va_start (v,p);
2552  s = g (p, va_arg (v,int));
2553  va_end (v);
2554  return s;
2555}
2556
2557/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2558   function prototypes and stuff, but not '\xHH' hex character constants.
2559   These don't provoke an error unfortunately, instead are silently treated
2560   as 'x'.  The following induces an error, until -std1 is added to get
2561   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2562   array size at least.  It's necessary to write '\x00'==0 to get something
2563   that's true only with -std1.  */
2564int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2565
2566int test (int i, double x);
2567struct s1 {int (*f) (int a);};
2568struct s2 {int (*f) (double a);};
2569int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2570int argc;
2571char **argv;
2572int
2573main ()
2574{
2575return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2576  ;
2577  return 0;
2578}
2579_ACEOF
2580# Don't try gcc -ansi; that turns off useful extensions and
2581# breaks some systems' header files.
2582# AIX                   -qlanglvl=ansi
2583# Ultrix and OSF/1      -std1
2584# HP-UX 10.20 and later -Ae
2585# HP-UX older versions  -Aa -D_HPUX_SOURCE
2586# SVR4                  -Xc -D__EXTENSIONS__
2587for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2588do
2589  CC="$ac_save_CC $ac_arg"
2590  rm -f conftest.$ac_objext
2591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592  (eval $ac_compile) 2>conftest.er1
2593  ac_status=$?
2594  grep -v '^ *+' conftest.er1 >conftest.err
2595  rm -f conftest.er1
2596  cat conftest.err >&5
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); } &&
2599         { ac_try='test -z "$ac_c_werror_flag"
2600                         || test ! -s conftest.err'
2601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602  (eval $ac_try) 2>&5
2603  ac_status=$?
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); }; } &&
2606         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2612  ac_cv_prog_cc_stdc=$ac_arg
2613break
2614else
2615  echo "$as_me: failed program was:" >&5
2616sed 's/^/| /' conftest.$ac_ext >&5
2617
2618fi
2619rm -f conftest.err conftest.$ac_objext
2620done
2621rm -f conftest.$ac_ext conftest.$ac_objext
2622CC=$ac_save_CC
2623
2624fi
2625
2626case "x$ac_cv_prog_cc_stdc" in
2627  x|xno)
2628    echo "$as_me:$LINENO: result: none needed" >&5
2629echo "${ECHO_T}none needed" >&6 ;;
2630  *)
2631    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2632echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2633    CC="$CC $ac_cv_prog_cc_stdc" ;;
2634esac
2635
2636# Some people use a C++ compiler to compile C.  Since we use `exit',
2637# in C++ we need to declare it.  In case someone uses the same compiler
2638# for both compiling C and C++ we need to have the C++ compiler decide
2639# the declaration of exit, since it's the most demanding environment.
2640cat >conftest.$ac_ext <<_ACEOF
2641#ifndef __cplusplus
2642  choke me
2643#endif
2644_ACEOF
2645rm -f conftest.$ac_objext
2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647  (eval $ac_compile) 2>conftest.er1
2648  ac_status=$?
2649  grep -v '^ *+' conftest.er1 >conftest.err
2650  rm -f conftest.er1
2651  cat conftest.err >&5
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); } &&
2654         { ac_try='test -z "$ac_c_werror_flag"
2655                         || test ! -s conftest.err'
2656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657  (eval $ac_try) 2>&5
2658  ac_status=$?
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); }; } &&
2661         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2667  for ac_declaration in \
2668   '' \
2669   'extern "C" void std::exit (int) throw (); using std::exit;' \
2670   'extern "C" void std::exit (int); using std::exit;' \
2671   'extern "C" void exit (int) throw ();' \
2672   'extern "C" void exit (int);' \
2673   'void exit (int);'
2674do
2675  cat >conftest.$ac_ext <<_ACEOF
2676/* confdefs.h.  */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h.  */
2681$ac_declaration
2682#include <stdlib.h>
2683int
2684main ()
2685{
2686exit (42);
2687  ;
2688  return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693  (eval $ac_compile) 2>conftest.er1
2694  ac_status=$?
2695  grep -v '^ *+' conftest.er1 >conftest.err
2696  rm -f conftest.er1
2697  cat conftest.err >&5
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); } &&
2700         { ac_try='test -z "$ac_c_werror_flag"
2701                         || test ! -s conftest.err'
2702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703  (eval $ac_try) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; } &&
2707         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2713  :
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718continue
2719fi
2720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721  cat >conftest.$ac_ext <<_ACEOF
2722/* confdefs.h.  */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h.  */
2727$ac_declaration
2728int
2729main ()
2730{
2731exit (42);
2732  ;
2733  return 0;
2734}
2735_ACEOF
2736rm -f conftest.$ac_objext
2737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738  (eval $ac_compile) 2>conftest.er1
2739  ac_status=$?
2740  grep -v '^ *+' conftest.er1 >conftest.err
2741  rm -f conftest.er1
2742  cat conftest.err >&5
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); } &&
2745         { ac_try='test -z "$ac_c_werror_flag"
2746                         || test ! -s conftest.err'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; } &&
2752         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2758  break
2759else
2760  echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763fi
2764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2765done
2766rm -f conftest*
2767if test -n "$ac_declaration"; then
2768  echo '#ifdef __cplusplus' >>confdefs.h
2769  echo $ac_declaration      >>confdefs.h
2770  echo '#endif'             >>confdefs.h
2771fi
2772
2773else
2774  echo "$as_me: failed program was:" >&5
2775sed 's/^/| /' conftest.$ac_ext >&5
2776
2777fi
2778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2779ac_ext=c
2780ac_cpp='$CPP $CPPFLAGS'
2781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
2785if test -z "$CC" ; then
2786  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2787echo "$as_me: error: Failed to find a C compiler!" >&2;}
2788   { (exit 1); exit 1; }; }
2789fi
2790# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2791case "$CC" in
2792  clang* ) ;;
2793  cl* | */cl* | CL* | */CL* )
2794    if test "$ac_cv_prog_cc_g" = yes ; then
2795      ac_cv_prog_cc_g=no
2796      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2797echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2798    fi ;;
2799  * )
2800    if test x"$CYGPATH_W" = x ; then
2801      CYGPATH_W=echo
2802    fi
2803    ;;
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  clang* ) ;;
2811  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2812    coin_cc_is_cl=true
2813    ;;
2814esac
2815
2816
2817if test $coin_cc_is_cl = true; then
2818  COIN_CC_IS_CL_TRUE=
2819  COIN_CC_IS_CL_FALSE='#'
2820else
2821  COIN_CC_IS_CL_TRUE='#'
2822  COIN_CC_IS_CL_FALSE=
2823fi
2824
2825
2826# Check if a project specific CFLAGS variable has been set
2827if test x$COIN_PRJCT != x; then
2828  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2829  if test x$coin_tmp = xset; then
2830    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2831  fi
2832fi
2833
2834if test x"$CFLAGS" = x; then
2835
2836  coin_add_cflags=
2837  coin_opt_cflags=
2838  coin_dbg_cflags=
2839  coin_warn_cflags=
2840
2841  if test "$GCC" = "yes"; then
2842    case "$CC" in
2843      icc* | */icc*)
2844        ;;
2845      *)
2846        coin_opt_cflags="-O3"
2847        coin_add_cflags="-pipe"
2848        coin_dbg_cflags="-g -O0"
2849        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2850        case $build in
2851          *-darwin*)
2852            ;;
2853          *)
2854            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2855            ;;
2856        esac
2857    esac
2858  fi
2859  if test -z "$coin_opt_cflags"; then
2860    case $build in
2861      *-cygwin* | *-mingw*)
2862        case "$CC" in
2863          clang* ) ;;
2864          cl* | */cl* | CL* | */CL*)
2865            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2866              coin_opt_cflags='-MD -O2'
2867              coin_dbg_cflags='-MDd'
2868            else
2869              coin_opt_cflags='-MT -O2'
2870              coin_dbg_cflags='-MTd'
2871            fi
2872            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2873            ;;
2874          icl* | */icl* | ICL* | */ICL*)
2875            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2876              coin_opt_cflags='-MD -Ox'
2877              coin_dbg_cflags='-MDd -debug'
2878            else
2879              coin_opt_cflags='-MT -Ox'
2880              coin_dbg_cflags='-MTd -debug'
2881            fi
2882            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2883            ;;
2884        esac
2885        ;;
2886      *-linux-*)
2887        case "$CC" in
2888          icc* | */icc*)
2889            coin_opt_cflags="-O3 -ip -mp1"
2890            coin_add_cflags=""
2891            coin_dbg_cflags="-g"
2892            # Check if -i_dynamic is necessary (for new glibc library)
2893            CFLAGS=
2894            cat >conftest.$ac_ext <<_ACEOF
2895/* confdefs.h.  */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h.  */
2900
2901int
2902main ()
2903{
2904int i=0; i++;
2905  ;
2906  return 0;
2907}
2908_ACEOF
2909rm -f conftest.$ac_objext conftest$ac_exeext
2910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911  (eval $ac_link) 2>conftest.er1
2912  ac_status=$?
2913  grep -v '^ *+' conftest.er1 >conftest.err
2914  rm -f conftest.er1
2915  cat conftest.err >&5
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); } &&
2918         { ac_try='test -z "$ac_c_werror_flag"
2919                         || test ! -s conftest.err'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; } &&
2925         { ac_try='test -s conftest$ac_exeext'
2926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927  (eval $ac_try) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }; }; then
2931  :
2932else
2933  echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936coin_add_cflags="-i_dynamic $coin_add_cflags"
2937fi
2938rm -f conftest.err conftest.$ac_objext \
2939      conftest$ac_exeext conftest.$ac_ext
2940            ;;
2941          pgcc* | */pgcc*)
2942            coin_opt_cflags="-fast"
2943            coin_add_cflags="-Kieee -pc 64"
2944            coin_dbg_cflags="-g"
2945            ;;
2946        esac
2947        ;;
2948      *-ibm-*)
2949        case "$CC" in
2950          xlc* | */xlc* | mpxlc* | */mpxlc*)
2951            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2952            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2953            coin_dbg_cflags="-g"
2954          ;;
2955        esac
2956        ;;
2957      *-hp-*)
2958        coin_opt_cflags="-O"
2959        coin_add_cflags="-Ae"
2960        coin_dbg_cflags="-g"
2961        ;;
2962      *-*-solaris*)
2963        coin_opt_cflags="-xO4"
2964        coin_dbg_cflags="-g"
2965        ;;
2966      *-sgi-*)
2967        coin_opt_cflags="-O -OPT:Olimit=0"
2968        coin_dbg_cflags="-g"
2969        ;;
2970    esac
2971  fi
2972
2973  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2974    coin_dbg_cflags="-g"
2975  fi
2976
2977  if test -z "$coin_opt_cflags"; then
2978    # Try if -O option works if nothing else is set
2979    CFLAGS="-O"
2980    cat >conftest.$ac_ext <<_ACEOF
2981/* confdefs.h.  */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h.  */
2986
2987int
2988main ()
2989{
2990int i=0; i++;
2991  ;
2992  return 0;
2993}
2994_ACEOF
2995rm -f conftest.$ac_objext conftest$ac_exeext
2996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2997  (eval $ac_link) 2>conftest.er1
2998  ac_status=$?
2999  grep -v '^ *+' conftest.er1 >conftest.err
3000  rm -f conftest.er1
3001  cat conftest.err >&5
3002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003  (exit $ac_status); } &&
3004         { ac_try='test -z "$ac_c_werror_flag"
3005                         || test ! -s conftest.err'
3006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007  (eval $ac_try) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }; } &&
3011         { ac_try='test -s conftest$ac_exeext'
3012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013  (eval $ac_try) 2>&5
3014  ac_status=$?
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); }; }; then
3017  coin_opt_cflags="-O"
3018else
3019  echo "$as_me: failed program was:" >&5
3020sed 's/^/| /' conftest.$ac_ext >&5
3021
3022fi
3023rm -f conftest.err conftest.$ac_objext \
3024      conftest$ac_exeext conftest.$ac_ext
3025  fi
3026
3027  # if PM doesn't want the warning messages, take them out
3028  if test x"$coin_skip_warn_cflags" = xyes; then
3029    coin_warn_cflags=
3030  fi
3031
3032  if test x${DBG_CFLAGS+set} != xset; then
3033    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3034  fi
3035  if test x${OPT_CFLAGS+set} != xset; then
3036    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3037  fi
3038
3039  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3040  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3041
3042  if test "$coin_debug_compile" = "true"; then
3043    CFLAGS="$DBG_CFLAGS"
3044  else
3045    CFLAGS="$OPT_CFLAGS"
3046  fi
3047else
3048  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3049  if test x${DBG_CFLAGS+set} != xset; then
3050    DBG_CFLAGS="$CFLAGS"
3051  fi
3052  if test x${OPT_CFLAGS+set} != xset; then
3053    OPT_CFLAGS="$CFLAGS"
3054  fi
3055fi
3056
3057# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3058if test x$COIN_PRJCT != x; then
3059  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3060fi
3061
3062# Try if CFLAGS works
3063save_CFLAGS="$CFLAGS"
3064cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h.  */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h.  */
3070
3071int
3072main ()
3073{
3074int i=0; i++;
3075  ;
3076  return 0;
3077}
3078_ACEOF
3079rm -f conftest.$ac_objext conftest$ac_exeext
3080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3081  (eval $ac_link) 2>conftest.er1
3082  ac_status=$?
3083  grep -v '^ *+' conftest.er1 >conftest.err
3084  rm -f conftest.er1
3085  cat conftest.err >&5
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); } &&
3088         { ac_try='test -z "$ac_c_werror_flag"
3089                         || test ! -s conftest.err'
3090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091  (eval $ac_try) 2>&5
3092  ac_status=$?
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); }; } &&
3095         { ac_try='test -s conftest$ac_exeext'
3096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097  (eval $ac_try) 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }; }; then
3101  :
3102else
3103  echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106CFLAGS=
3107fi
3108rm -f conftest.err conftest.$ac_objext \
3109      conftest$ac_exeext conftest.$ac_ext
3110if test -z "$CFLAGS"; then
3111  { 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
3112echo "$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;}
3113  CFLAGS='-O'
3114  cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h.  */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h.  */
3120
3121int
3122main ()
3123{
3124int i=0; i++;
3125  ;
3126  return 0;
3127}
3128_ACEOF
3129rm -f conftest.$ac_objext conftest$ac_exeext
3130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3131  (eval $ac_link) 2>conftest.er1
3132  ac_status=$?
3133  grep -v '^ *+' conftest.er1 >conftest.err
3134  rm -f conftest.er1
3135  cat conftest.err >&5
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); } &&
3138         { ac_try='test -z "$ac_c_werror_flag"
3139                         || test ! -s conftest.err'
3140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141  (eval $ac_try) 2>&5
3142  ac_status=$?
3143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144  (exit $ac_status); }; } &&
3145         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3151  :
3152else
3153  echo "$as_me: failed program was:" >&5
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
3156CFLAGS=
3157fi
3158rm -f conftest.err conftest.$ac_objext \
3159      conftest$ac_exeext conftest.$ac_ext
3160  if test -z "$CFLAGS"; then
3161    { 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
3162echo "$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;}
3163  fi
3164fi
3165
3166{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3167echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3168
3169
3170if test x"$MPICC" = x; then :; else
3171  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3172echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3173  CC="$MPICC"
3174fi
3175
3176# Correct the LD variable if we are using the MS or Intel-windows compiler
3177case "$CC" in
3178  clang* ) ;;
3179  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3180    LD=link
3181    ;;
3182esac
3183
3184ac_ext=c
3185ac_cpp='$CPP $CPPFLAGS'
3186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189
3190
3191
3192# Get the name of the C++ compiler and appropriate compiler options
3193
3194 #Let's try if that overcomes configuration problem with VC++ 6.0
3195
3196ac_ext=cc
3197ac_cpp='$CXXCPP $CPPFLAGS'
3198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3201
3202
3203
3204
3205
3206
3207
3208coin_has_cxx=yes
3209
3210save_cxxflags="$CXXFLAGS"
3211# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3212case $build in
3213  *-cygwin* | *-mingw*)
3214      if test "$enable_msvc" = yes ; then
3215         comps="icl cl g++"
3216      else
3217         comps="g++ icl cl"
3218      fi ;;
3219  *-*-solaris*)
3220             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3221  *-darwin*) comps="clang++ g++ c++ CC" ;;
3222  *-linux-gnu*)
3223             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3224          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3225esac
3226
3227# We delete the cached value, since the test might not have been
3228# performed with our choice of compilers earlier
3229$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3230# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3231ac_ext=cc
3232ac_cpp='$CXXCPP $CPPFLAGS'
3233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3236if test -n "$ac_tool_prefix"; then
3237  for ac_prog in $CCC $comps
3238  do
3239    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3241echo "$as_me:$LINENO: checking for $ac_word" >&5
3242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3243if test "${ac_cv_prog_CXX+set}" = set; then
3244  echo $ECHO_N "(cached) $ECHO_C" >&6
3245else
3246  if test -n "$CXX"; then
3247  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3248else
3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250for as_dir in $PATH
3251do
3252  IFS=$as_save_IFS
3253  test -z "$as_dir" && as_dir=.
3254  for ac_exec_ext in '' $ac_executable_extensions; do
3255  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3257    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258    break 2
3259  fi
3260done
3261done
3262
3263fi
3264fi
3265CXX=$ac_cv_prog_CXX
3266if test -n "$CXX"; then
3267  echo "$as_me:$LINENO: result: $CXX" >&5
3268echo "${ECHO_T}$CXX" >&6
3269else
3270  echo "$as_me:$LINENO: result: no" >&5
3271echo "${ECHO_T}no" >&6
3272fi
3273
3274    test -n "$CXX" && break
3275  done
3276fi
3277if test -z "$CXX"; then
3278  ac_ct_CXX=$CXX
3279  for ac_prog in $CCC $comps
3280do
3281  # Extract the first word of "$ac_prog", so it can be a program name with args.
3282set dummy $ac_prog; ac_word=$2
3283echo "$as_me:$LINENO: checking for $ac_word" >&5
3284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3286  echo $ECHO_N "(cached) $ECHO_C" >&6
3287else
3288  if test -n "$ac_ct_CXX"; then
3289  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3290else
3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292for as_dir in $PATH
3293do
3294  IFS=$as_save_IFS
3295  test -z "$as_dir" && as_dir=.
3296  for ac_exec_ext in '' $ac_executable_extensions; do
3297  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298    ac_cv_prog_ac_ct_CXX="$ac_prog"
3299    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300    break 2
3301  fi
3302done
3303done
3304
3305fi
3306fi
3307ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3308if test -n "$ac_ct_CXX"; then
3309  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3310echo "${ECHO_T}$ac_ct_CXX" >&6
3311else
3312  echo "$as_me:$LINENO: result: no" >&5
3313echo "${ECHO_T}no" >&6
3314fi
3315
3316  test -n "$ac_ct_CXX" && break
3317done
3318test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3319
3320  CXX=$ac_ct_CXX
3321fi
3322
3323
3324# Provide some information about the compiler.
3325echo "$as_me:$LINENO:" \
3326     "checking for C++ compiler version" >&5
3327ac_compiler=`set X $ac_compile; echo $2`
3328{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3329  (eval $ac_compiler --version </dev/null >&5) 2>&5
3330  ac_status=$?
3331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332  (exit $ac_status); }
3333{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3334  (eval $ac_compiler -v </dev/null >&5) 2>&5
3335  ac_status=$?
3336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337  (exit $ac_status); }
3338{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3339  (eval $ac_compiler -V </dev/null >&5) 2>&5
3340  ac_status=$?
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); }
3343
3344echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3345echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3346if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3347  echo $ECHO_N "(cached) $ECHO_C" >&6
3348else
3349  cat >conftest.$ac_ext <<_ACEOF
3350/* confdefs.h.  */
3351_ACEOF
3352cat confdefs.h >>conftest.$ac_ext
3353cat >>conftest.$ac_ext <<_ACEOF
3354/* end confdefs.h.  */
3355
3356int
3357main ()
3358{
3359#ifndef __GNUC__
3360       choke me
3361#endif
3362
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext
3368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369  (eval $ac_compile) 2>conftest.er1
3370  ac_status=$?
3371  grep -v '^ *+' conftest.er1 >conftest.err
3372  rm -f conftest.er1
3373  cat conftest.err >&5
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); } &&
3376         { ac_try='test -z "$ac_cxx_werror_flag"
3377                         || test ! -s conftest.err'
3378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379  (eval $ac_try) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }; } &&
3383         { ac_try='test -s conftest.$ac_objext'
3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385  (eval $ac_try) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }; }; then
3389  ac_compiler_gnu=yes
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394ac_compiler_gnu=no
3395fi
3396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3397ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3398
3399fi
3400echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3401echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3402GXX=`test $ac_compiler_gnu = yes && echo yes`
3403ac_test_CXXFLAGS=${CXXFLAGS+set}
3404ac_save_CXXFLAGS=$CXXFLAGS
3405CXXFLAGS="-g"
3406echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3407echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3408if test "${ac_cv_prog_cxx_g+set}" = set; then
3409  echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411  cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h.  */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h.  */
3417
3418int
3419main ()
3420{
3421
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426rm -f conftest.$ac_objext
3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428  (eval $ac_compile) 2>conftest.er1
3429  ac_status=$?
3430  grep -v '^ *+' conftest.er1 >conftest.err
3431  rm -f conftest.er1
3432  cat conftest.err >&5
3433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434  (exit $ac_status); } &&
3435         { ac_try='test -z "$ac_cxx_werror_flag"
3436                         || test ! -s conftest.err'
3437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438  (eval $ac_try) 2>&5
3439  ac_status=$?
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); }; } &&
3442         { ac_try='test -s conftest.$ac_objext'
3443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444  (eval $ac_try) 2>&5
3445  ac_status=$?
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); }; }; then
3448  ac_cv_prog_cxx_g=yes
3449else
3450  echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453ac_cv_prog_cxx_g=no
3454fi
3455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456fi
3457echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3458echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3459if test "$ac_test_CXXFLAGS" = set; then
3460  CXXFLAGS=$ac_save_CXXFLAGS
3461elif test $ac_cv_prog_cxx_g = yes; then
3462  if test "$GXX" = yes; then
3463    CXXFLAGS="-g -O2"
3464  else
3465    CXXFLAGS="-g"
3466  fi
3467else
3468  if test "$GXX" = yes; then
3469    CXXFLAGS="-O2"
3470  else
3471    CXXFLAGS=
3472  fi
3473fi
3474for ac_declaration in \
3475   '' \
3476   'extern "C" void std::exit (int) throw (); using std::exit;' \
3477   'extern "C" void std::exit (int); using std::exit;' \
3478   'extern "C" void exit (int) throw ();' \
3479   'extern "C" void exit (int);' \
3480   'void exit (int);'
3481do
3482  cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h.  */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h.  */
3488$ac_declaration
3489#include <stdlib.h>
3490int
3491main ()
3492{
3493exit (42);
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498rm -f conftest.$ac_objext
3499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500  (eval $ac_compile) 2>conftest.er1
3501  ac_status=$?
3502  grep -v '^ *+' conftest.er1 >conftest.err
3503  rm -f conftest.er1
3504  cat conftest.err >&5
3505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); } &&
3507         { ac_try='test -z "$ac_cxx_werror_flag"
3508                         || test ! -s conftest.err'
3509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510  (eval $ac_try) 2>&5
3511  ac_status=$?
3512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513  (exit $ac_status); }; } &&
3514         { ac_try='test -s conftest.$ac_objext'
3515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516  (eval $ac_try) 2>&5
3517  ac_status=$?
3518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519  (exit $ac_status); }; }; then
3520  :
3521else
3522  echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525continue
3526fi
3527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3528  cat >conftest.$ac_ext <<_ACEOF
3529/* confdefs.h.  */
3530_ACEOF
3531cat confdefs.h >>conftest.$ac_ext
3532cat >>conftest.$ac_ext <<_ACEOF
3533/* end confdefs.h.  */
3534$ac_declaration
3535int
3536main ()
3537{
3538exit (42);
3539  ;
3540  return 0;
3541}
3542_ACEOF
3543rm -f conftest.$ac_objext
3544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545  (eval $ac_compile) 2>conftest.er1
3546  ac_status=$?
3547  grep -v '^ *+' conftest.er1 >conftest.err
3548  rm -f conftest.er1
3549  cat conftest.err >&5
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); } &&
3552         { ac_try='test -z "$ac_cxx_werror_flag"
3553                         || test ! -s conftest.err'
3554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555  (eval $ac_try) 2>&5
3556  ac_status=$?
3557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558  (exit $ac_status); }; } &&
3559         { ac_try='test -s conftest.$ac_objext'
3560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561  (eval $ac_try) 2>&5
3562  ac_status=$?
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); }; }; then
3565  break
3566else
3567  echo "$as_me: failed program was:" >&5
3568sed 's/^/| /' conftest.$ac_ext >&5
3569
3570fi
3571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572done
3573rm -f conftest*
3574if test -n "$ac_declaration"; then
3575  echo '#ifdef __cplusplus' >>confdefs.h
3576  echo $ac_declaration      >>confdefs.h
3577  echo '#endif'             >>confdefs.h
3578fi
3579
3580ac_ext=cc
3581ac_cpp='$CXXCPP $CPPFLAGS'
3582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3585
3586
3587#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3588#thus, we test here whether $CXX is actually working
3589ac_ext=cc
3590ac_cpp='$CXXCPP $CPPFLAGS'
3591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3594
3595echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3596echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3597cat >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
3604int
3605main ()
3606{
3607int i=0;
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  echo "$as_me:$LINENO: result: yes" >&5
3635echo "${ECHO_T}yes" >&6
3636else
3637  echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640echo "$as_me:$LINENO: result: no" >&5
3641echo "${ECHO_T}no" >&6
3642   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3643echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3644   { (exit 1); exit 1; }; }
3645
3646fi
3647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3648ac_ext=cc
3649ac_cpp='$CXXCPP $CPPFLAGS'
3650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3653
3654
3655coin_cxx_is_cl=false
3656# It seems that we need to cleanup something here for the Windows
3657case "$CXX" in
3658  clang* | */clang*) ;;
3659  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3660    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3661    mv confdefs.hh confdefs.h
3662    coin_cxx_is_cl=true
3663    ;;
3664esac
3665
3666# add automake conditional so we can recognize cl compiler in makefile
3667
3668
3669if test $coin_cxx_is_cl = true; then
3670  COIN_CXX_IS_CL_TRUE=
3671  COIN_CXX_IS_CL_FALSE='#'
3672else
3673  COIN_CXX_IS_CL_TRUE='#'
3674  COIN_CXX_IS_CL_FALSE=
3675fi
3676
3677
3678# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3679case "$CXX" in
3680  clang* ) ;;
3681  cl* | */cl* | CL* | */CL* )
3682    if test "$ac_cv_prog_cxx_g" = yes ; then
3683      ac_cv_prog_cxx_g=no
3684      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3685echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3686    fi ;;
3687  * )
3688    if test x"$CYGPATH_W" = x ; then
3689      CYGPATH_W=echo
3690    fi
3691    ;;
3692esac
3693CXXFLAGS="$save_cxxflags"
3694
3695# Check if a project specific CXXFLAGS variable has been set
3696if test x$COIN_PRJCT != x; then
3697  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3698  if test x$coin_tmp = xset; then
3699    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3700  fi
3701fi
3702
3703if test x"$CXXFLAGS" = x; then
3704
3705# ToDo decide whether we want -DNDEBUG for optimization
3706  coin_add_cxxflags=
3707  coin_opt_cxxflags=
3708  coin_dbg_cxxflags=
3709  coin_warn_cxxflags=
3710
3711  if test "$GXX" = "yes"; then
3712    case "$CXX" in
3713      icpc* | */icpc*)
3714        ;;
3715      *)
3716# ToDo decide about unroll-loops
3717        coin_opt_cxxflags="-O3"
3718        coin_add_cxxflags="-pipe"
3719        coin_dbg_cxxflags="-g -O0"
3720        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3721        case $build in
3722          *-darwin*)
3723            ;;
3724          *)
3725            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3726            ;;
3727        esac
3728    esac
3729  fi
3730
3731# Note that we do not need to cover GCC in the following tests.
3732
3733  if test -z "$coin_opt_cxxflags"; then
3734    case $build in
3735      *-cygwin* | *-mingw*)
3736        case "$CXX" in
3737          clang* ) ;;
3738          cl* | */cl* | CL* | */CL*)
3739            # The MT and MTd options are mutually exclusive
3740            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3741               coin_opt_cxxflags='-MD -O2'
3742               coin_dbg_cxxflags='-MDd'
3743            else
3744               coin_opt_cxxflags='-MT -O2'
3745               coin_dbg_cxxflags='-MTd'
3746            fi
3747            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3748            ;;
3749          icl* | */icl* | ICL* | */ICL*)
3750          # The MT and MTd options are mutually exclusive
3751            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3752              coin_opt_cxxflags='-MD -Ox'
3753              coin_dbg_cxxflags='-MDd -debug'
3754            else
3755              coin_opt_cxxflags='-MT -Ox'
3756              coin_dbg_cxxflags='-MTd -debug'
3757            fi
3758            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3759            ;;
3760        esac
3761        ;;
3762      *-linux-*)
3763        case "$CXX" in
3764          icpc* | */icpc*)
3765            coin_opt_cxxflags="-O3 -ip -mp1"
3766            coin_add_cxxflags=""
3767            coin_dbg_cxxflags="-g"
3768            # Check if -i_dynamic is necessary (for new glibc library)
3769            CXXFLAGS=
3770            cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h.  */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
3775/* end confdefs.h.  */
3776
3777int
3778main ()
3779{
3780int i=0; i++;
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785rm -f conftest.$ac_objext conftest$ac_exeext
3786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3787  (eval $ac_link) 2>conftest.er1
3788  ac_status=$?
3789  grep -v '^ *+' conftest.er1 >conftest.err
3790  rm -f conftest.er1
3791  cat conftest.err >&5
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); } &&
3794         { ac_try='test -z "$ac_cxx_werror_flag"
3795                         || test ! -s conftest.err'
3796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797  (eval $ac_try) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); }; } &&
3801         { ac_try='test -s conftest$ac_exeext'
3802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803  (eval $ac_try) 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); }; }; then
3807  :
3808else
3809  echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3813fi
3814rm -f conftest.err conftest.$ac_objext \
3815      conftest$ac_exeext conftest.$ac_ext
3816            ;;
3817          pgCC* | */pgCC*)
3818            coin_opt_cxxflags="-fast"
3819            coin_add_cxxflags="-Kieee -pc 64"
3820            coin_dbg_cxxflags="-g"
3821            ;;
3822        esac
3823        ;;
3824      *-ibm-*)
3825        case "$CXX" in
3826          xlC* | */xlC* | mpxlC* | */mpxlC*)
3827            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3828            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3829            coin_dbg_cxxflags="-g"
3830            ;;
3831        esac
3832        ;;
3833      *-hp-*)
3834        case "$CXX" in
3835          aCC* | */aCC* )
3836            coin_opt_cxxflags="-O"
3837            coin_add_cxxflags="-AA"
3838            coin_dbg_cxxflags="-g"
3839            ;;
3840        esac
3841        ;;
3842      *-*-solaris*)
3843          coin_opt_cxxflags="-O4"
3844          coin_dbg_cxxflags="-g"
3845        ;;
3846    esac
3847  fi
3848
3849# Generic flag settings. If these don't work, add a case above.
3850
3851  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3852    coin_dbg_cxxflags="-g"
3853  fi
3854
3855  if test -z "$coin_opt_cxxflags"; then
3856    # Try if -O option works if nothing else is set
3857    CXXFLAGS=-O
3858    cat >conftest.$ac_ext <<_ACEOF
3859/* confdefs.h.  */
3860_ACEOF
3861cat confdefs.h >>conftest.$ac_ext
3862cat >>conftest.$ac_ext <<_ACEOF
3863/* end confdefs.h.  */
3864
3865int
3866main ()
3867{
3868int i=0; i++;
3869  ;
3870  return 0;
3871}
3872_ACEOF
3873rm -f conftest.$ac_objext conftest$ac_exeext
3874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3875  (eval $ac_link) 2>conftest.er1
3876  ac_status=$?
3877  grep -v '^ *+' conftest.er1 >conftest.err
3878  rm -f conftest.er1
3879  cat conftest.err >&5
3880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881  (exit $ac_status); } &&
3882         { ac_try='test -z "$ac_cxx_werror_flag"
3883                         || test ! -s conftest.err'
3884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885  (eval $ac_try) 2>&5
3886  ac_status=$?
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); }; } &&
3889         { ac_try='test -s conftest$ac_exeext'
3890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891  (eval $ac_try) 2>&5
3892  ac_status=$?
3893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894  (exit $ac_status); }; }; then
3895  coin_opt_cxxflags="-O"
3896else
3897  echo "$as_me: failed program was:" >&5
3898sed 's/^/| /' conftest.$ac_ext >&5
3899
3900fi
3901rm -f conftest.err conftest.$ac_objext \
3902      conftest$ac_exeext conftest.$ac_ext
3903  fi
3904
3905  # if PM doesn't want the warning messages, take them out
3906  if test x"$coin_skip_warn_cxxflags" = xyes; then
3907    coin_warn_cxxflags=
3908  fi
3909
3910# Do final setup of flags based on values determined above.
3911
3912  if test x${DBG_CXXFLAGS+set} != xset; then
3913    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3914  fi
3915  if test x${OPT_CXXFLAGS+set} != xset; then
3916    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3917  fi
3918
3919  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3920  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3921
3922  if test "$coin_debug_compile" = "true"; then
3923    CXXFLAGS="$DBG_CXXFLAGS"
3924  else
3925    CXXFLAGS="$OPT_CXXFLAGS"
3926  fi
3927
3928# Handle the case where CXXFLAGS was set externally.
3929else
3930  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3931  if test x${DBG_CXXFLAGS+set} != xset; then
3932    DBG_CXXFLAGS="$CXXFLAGS"
3933  fi
3934  if test x${OPT_CXXFLAGS+set} != xset; then
3935    OPT_CXXFLAGS="$CXXFLAGS"
3936  fi
3937fi
3938
3939# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3940if test x$COIN_PRJCT != x; then
3941  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3942fi
3943
3944# Try if CXXFLAGS works
3945save_CXXFLAGS="$CXXFLAGS"
3946cat >conftest.$ac_ext <<_ACEOF
3947/* confdefs.h.  */
3948_ACEOF
3949cat confdefs.h >>conftest.$ac_ext
3950cat >>conftest.$ac_ext <<_ACEOF
3951/* end confdefs.h.  */
3952
3953int
3954main ()
3955{
3956int i=0; i++;
3957  ;
3958  return 0;
3959}
3960_ACEOF
3961rm -f conftest.$ac_objext conftest$ac_exeext
3962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3963  (eval $ac_link) 2>conftest.er1
3964  ac_status=$?
3965  grep -v '^ *+' conftest.er1 >conftest.err
3966  rm -f conftest.er1
3967  cat conftest.err >&5
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); } &&
3970         { ac_try='test -z "$ac_cxx_werror_flag"
3971                         || test ! -s conftest.err'
3972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973  (eval $ac_try) 2>&5
3974  ac_status=$?
3975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976  (exit $ac_status); }; } &&
3977         { ac_try='test -s conftest$ac_exeext'
3978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979  (eval $ac_try) 2>&5
3980  ac_status=$?
3981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982  (exit $ac_status); }; }; then
3983  :
3984else
3985  echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988CXXFLAGS=
3989fi
3990rm -f conftest.err conftest.$ac_objext \
3991      conftest$ac_exeext conftest.$ac_ext
3992if test -z "$CXXFLAGS"; then
3993  { 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
3994echo "$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;}
3995  CXXFLAGS='-O'
3996  cat >conftest.$ac_ext <<_ACEOF
3997/* confdefs.h.  */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h.  */
4002
4003int
4004main ()
4005{
4006int i=0; i++;
4007  ;
4008  return 0;
4009}
4010_ACEOF
4011rm -f conftest.$ac_objext conftest$ac_exeext
4012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4013  (eval $ac_link) 2>conftest.er1
4014  ac_status=$?
4015  grep -v '^ *+' conftest.er1 >conftest.err
4016  rm -f conftest.er1
4017  cat conftest.err >&5
4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019  (exit $ac_status); } &&
4020         { ac_try='test -z "$ac_cxx_werror_flag"
4021                         || test ! -s conftest.err'
4022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023  (eval $ac_try) 2>&5
4024  ac_status=$?
4025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026  (exit $ac_status); }; } &&
4027         { ac_try='test -s conftest$ac_exeext'
4028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029  (eval $ac_try) 2>&5
4030  ac_status=$?
4031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032  (exit $ac_status); }; }; then
4033  :
4034else
4035  echo "$as_me: failed program was:" >&5
4036sed 's/^/| /' conftest.$ac_ext >&5
4037
4038CXXFLAGS=
4039fi
4040rm -f conftest.err conftest.$ac_objext \
4041      conftest$ac_exeext conftest.$ac_ext
4042  if test -z "$CXXFLAGS"; then
4043    { 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
4044echo "$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;}
4045  fi
4046fi
4047
4048{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4049echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4050
4051
4052if test x"$MPICXX" = x; then :; else
4053  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4054echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4055  CXX="$MPICXX"
4056fi
4057
4058# correct the LD variable in a build with MS or intel compiler
4059case "$CXX" in
4060  clang* ) ;;
4061  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4062    LD=link
4063    ;;
4064esac
4065
4066ac_ext=c
4067ac_cpp='$CPP $CPPFLAGS'
4068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071
4072
4073
4074# Initialize automake
4075{
4076
4077
4078
4079# START
4080
4081coin_disable_shared=no
4082# Test if force_shared has been set
4083if test "x" = xforce_shared; then
4084  if test x$enable_shared = xno; then
4085    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4086echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4087   { (exit 1); exit 1; }; }
4088  fi
4089  enable_shared=yes;
4090else
4091  # On Cygwin and AIX, building DLLs doesn't work
4092  case $build in
4093    *-cygwin* | *-mingw*)
4094      coin_disable_shared=yes
4095      if test x"$enable_shared" = xyes; then
4096        case "$CC" in
4097          clang* )
4098            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4099echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4100            ;;
4101          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4102            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
4103echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
4104            ;;
4105          *gcc*)
4106            if test x"$enable_dependency_linking" = xyes; then
4107              coin_disable_shared=no
4108            else
4109              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
4110echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
4111            fi
4112            ;;
4113          *)
4114            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4115echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4116            ;;
4117        esac
4118      fi
4119    ;;
4120    *-aix*)
4121      coin_disable_shared=yes
4122      platform=AIX
4123      if test x"$enable_shared" = xyes; then
4124        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4125echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4126      fi
4127    ;;
4128  esac
4129fi
4130if test x"$coin_disable_shared" = xyes; then
4131  if test x"$enable_shared" = xyes; then
4132    :
4133  else
4134    # we don't disable shared, because it was not selected anyway
4135    coin_disable_shared=no
4136  fi
4137  enable_shared=no
4138fi
4139# By default, we only want the shared objects to be compiled
4140# Check whether --enable-static or --disable-static was given.
4141if test "${enable_static+set}" = set; then
4142  enableval="$enable_static"
4143  p=${PACKAGE-default}
4144    case $enableval in
4145    yes) enable_static=yes ;;
4146    no) enable_static=no ;;
4147    *)
4148     enable_static=no
4149      # Look at the argument we got.  We use all the common list separators.
4150      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4151      for pkg in $enableval; do
4152        IFS="$lt_save_ifs"
4153        if test "X$pkg" = "X$p"; then
4154          enable_static=yes
4155        fi
4156      done
4157      IFS="$lt_save_ifs"
4158      ;;
4159    esac
4160else
4161  enable_static=no
4162fi;
4163
4164
4165
4166
4167# Initialize automake
4168echo "$as_me:$LINENO: checking for egrep" >&5
4169echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4170if test "${ac_cv_prog_egrep+set}" = set; then
4171  echo $ECHO_N "(cached) $ECHO_C" >&6
4172else
4173  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4174    then ac_cv_prog_egrep='grep -E'
4175    else ac_cv_prog_egrep='egrep'
4176    fi
4177fi
4178echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4179echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4180 EGREP=$ac_cv_prog_egrep
4181
4182
4183echo "$as_me:$LINENO: checking whether ln -s works" >&5
4184echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4185LN_S=$as_ln_s
4186if test "$LN_S" = "ln -s"; then
4187  echo "$as_me:$LINENO: result: yes" >&5
4188echo "${ECHO_T}yes" >&6
4189else
4190  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4191echo "${ECHO_T}no, using $LN_S" >&6
4192fi
4193
4194am__api_version="1.9"
4195# Find a good install program.  We prefer a C program (faster),
4196# so one script is as good as another.  But avoid the broken or
4197# incompatible versions:
4198# SysV /etc/install, /usr/sbin/install
4199# SunOS /usr/etc/install
4200# IRIX /sbin/install
4201# AIX /bin/install
4202# AmigaOS /C/install, which installs bootblocks on floppy discs
4203# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4204# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4205# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4206# OS/2's system install, which has a completely different semantic
4207# ./install, which can be erroneously created by make from ./install.sh.
4208echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4209echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4210if test -z "$INSTALL"; then
4211if test "${ac_cv_path_install+set}" = set; then
4212  echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217  IFS=$as_save_IFS
4218  test -z "$as_dir" && as_dir=.
4219  # Account for people who put trailing slashes in PATH elements.
4220case $as_dir/ in
4221  ./ | .// | /cC/* | \
4222  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4223  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4224  /usr/ucb/* ) ;;
4225  *)
4226    # OSF1 and SCO ODT 3.0 have their own names for install.
4227    # Don't use installbsd from OSF since it installs stuff as root
4228    # by default.
4229    for ac_prog in ginstall scoinst install; do
4230      for ac_exec_ext in '' $ac_executable_extensions; do
4231        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4232          if test $ac_prog = install &&
4233            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4234            # AIX install.  It has an incompatible calling convention.
4235            :
4236          elif test $ac_prog = install &&
4237            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4238            # program-specific install script used by HP pwplus--don't use.
4239            :
4240          else
4241            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4242            break 3
4243          fi
4244        fi
4245      done
4246    done
4247    ;;
4248esac
4249done
4250
4251
4252fi
4253  if test "${ac_cv_path_install+set}" = set; then
4254    INSTALL=$ac_cv_path_install
4255  else
4256    # As a last resort, use the slow shell script.  We don't cache a
4257    # path for INSTALL within a source directory, because that will
4258    # break other packages using the cache if that directory is
4259    # removed, or if the path is relative.
4260    INSTALL=$ac_install_sh
4261  fi
4262fi
4263echo "$as_me:$LINENO: result: $INSTALL" >&5
4264echo "${ECHO_T}$INSTALL" >&6
4265
4266# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4267# It thinks the first close brace ends the variable substitution.
4268test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4269
4270test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4271
4272test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4273
4274echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4275echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4276# Just in case
4277sleep 1
4278echo timestamp > conftest.file
4279# Do `set' in a subshell so we don't clobber the current shell's
4280# arguments.  Must try -L first in case configure is actually a
4281# symlink; some systems play weird games with the mod time of symlinks
4282# (eg FreeBSD returns the mod time of the symlink's containing
4283# directory).
4284if (
4285   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4286   if test "$*" = "X"; then
4287      # -L didn't work.
4288      set X `ls -t $srcdir/configure conftest.file`
4289   fi
4290   rm -f conftest.file
4291   if test "$*" != "X $srcdir/configure conftest.file" \
4292      && test "$*" != "X conftest.file $srcdir/configure"; then
4293
4294      # If neither matched, then we have a broken ls.  This can happen
4295      # if, for instance, CONFIG_SHELL is bash and it inherits a
4296      # broken ls alias from the environment.  This has actually
4297      # happened.  Such a system could not be considered "sane".
4298      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4299alias in your environment" >&5
4300echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4301alias in your environment" >&2;}
4302   { (exit 1); exit 1; }; }
4303   fi
4304
4305   test "$2" = conftest.file
4306   )
4307then
4308   # Ok.
4309   :
4310else
4311   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4312Check your system clock" >&5
4313echo "$as_me: error: newly created file is older than distributed files!
4314Check your system clock" >&2;}
4315   { (exit 1); exit 1; }; }
4316fi
4317echo "$as_me:$LINENO: result: yes" >&5
4318echo "${ECHO_T}yes" >&6
4319test "$program_prefix" != NONE &&
4320  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4321# Use a double $ so make ignores it.
4322test "$program_suffix" != NONE &&
4323  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4324# Double any \ or $.  echo might interpret backslashes.
4325# By default was `s,x,x', remove it if useless.
4326cat <<\_ACEOF >conftest.sed
4327s/[\\$]/&&/g;s/;s,x,x,$//
4328_ACEOF
4329program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4330rm conftest.sed
4331
4332# expand $ac_aux_dir to an absolute path
4333am_aux_dir=`cd $ac_aux_dir && pwd`
4334
4335test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4336# Use eval to expand $SHELL
4337if eval "$MISSING --run true"; then
4338  am_missing_run="$MISSING --run "
4339else
4340  am_missing_run=
4341  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4342echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4343fi
4344
4345if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4346  # We used to keeping the `.' as first argument, in order to
4347  # allow $(mkdir_p) to be used without argument.  As in
4348  #   $(mkdir_p) $(somedir)
4349  # where $(somedir) is conditionally defined.  However this is wrong
4350  # for two reasons:
4351  #  1. if the package is installed by a user who cannot write `.'
4352  #     make install will fail,
4353  #  2. the above comment should most certainly read
4354  #     $(mkdir_p) $(DESTDIR)$(somedir)
4355  #     so it does not work when $(somedir) is undefined and
4356  #     $(DESTDIR) is not.
4357  #  To support the latter case, we have to write
4358  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4359  #  so the `.' trick is pointless.
4360  mkdir_p='mkdir -p --'
4361else
4362  # On NextStep and OpenStep, the `mkdir' command does not
4363  # recognize any option.  It will interpret all options as
4364  # directories to create, and then abort because `.' already
4365  # exists.
4366  for d in ./-p ./--version;
4367  do
4368    test -d $d && rmdir $d
4369  done
4370  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4371  if test -f "$ac_aux_dir/mkinstalldirs"; then
4372    mkdir_p='$(mkinstalldirs)'
4373  else
4374    mkdir_p='$(install_sh) -d'
4375  fi
4376fi
4377
4378for ac_prog in gawk mawk nawk awk
4379do
4380  # Extract the first word of "$ac_prog", so it can be a program name with args.
4381set dummy $ac_prog; ac_word=$2
4382echo "$as_me:$LINENO: checking for $ac_word" >&5
4383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4384if test "${ac_cv_prog_AWK+set}" = set; then
4385  echo $ECHO_N "(cached) $ECHO_C" >&6
4386else
4387  if test -n "$AWK"; then
4388  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4389else
4390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391for as_dir in $PATH
4392do
4393  IFS=$as_save_IFS
4394  test -z "$as_dir" && as_dir=.
4395  for ac_exec_ext in '' $ac_executable_extensions; do
4396  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397    ac_cv_prog_AWK="$ac_prog"
4398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399    break 2
4400  fi
4401done
4402done
4403
4404fi
4405fi
4406AWK=$ac_cv_prog_AWK
4407if test -n "$AWK"; then
4408  echo "$as_me:$LINENO: result: $AWK" >&5
4409echo "${ECHO_T}$AWK" >&6
4410else
4411  echo "$as_me:$LINENO: result: no" >&5
4412echo "${ECHO_T}no" >&6
4413fi
4414
4415  test -n "$AWK" && break
4416done
4417
4418echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4419echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4420set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4421if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4422  echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424  cat >conftest.make <<\_ACEOF
4425all:
4426        @echo 'ac_maketemp="$(MAKE)"'
4427_ACEOF
4428# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4429eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4430if test -n "$ac_maketemp"; then
4431  eval ac_cv_prog_make_${ac_make}_set=yes
4432else
4433  eval ac_cv_prog_make_${ac_make}_set=no
4434fi
4435rm -f conftest.make
4436fi
4437if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4438  echo "$as_me:$LINENO: result: yes" >&5
4439echo "${ECHO_T}yes" >&6
4440  SET_MAKE=
4441else
4442  echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6
4444  SET_MAKE="MAKE=${MAKE-make}"
4445fi
4446
4447rm -rf .tst 2>/dev/null
4448mkdir .tst 2>/dev/null
4449if test -d .tst; then
4450  am__leading_dot=.
4451else
4452  am__leading_dot=_
4453fi
4454rmdir .tst 2>/dev/null
4455
4456DEPDIR="${am__leading_dot}deps"
4457
4458          ac_config_commands="$ac_config_commands depfiles"
4459
4460
4461am_make=${MAKE-make}
4462cat > confinc << 'END'
4463am__doit:
4464        @echo done
4465.PHONY: am__doit
4466END
4467# If we don't find an include directive, just comment out the code.
4468echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4469echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4470am__include="#"
4471am__quote=
4472_am_result=none
4473# First try GNU make style include.
4474echo "include confinc" > confmf
4475# We grep out `Entering directory' and `Leaving directory'
4476# messages which can occur if `w' ends up in MAKEFLAGS.
4477# In particular we don't look at `^make:' because GNU make might
4478# be invoked under some other name (usually "gmake"), in which
4479# case it prints its new name instead of `make'.
4480if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4481   am__include=include
4482   am__quote=
4483   _am_result=GNU
4484fi
4485# Now try BSD make style include.
4486if test "$am__include" = "#"; then
4487   echo '.include "confinc"' > confmf
4488   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4489      am__include=.include
4490      am__quote="\""
4491      _am_result=BSD
4492   fi
4493fi
4494
4495
4496echo "$as_me:$LINENO: result: $_am_result" >&5
4497echo "${ECHO_T}$_am_result" >&6
4498rm -f confinc confmf
4499
4500# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4501if test "${enable_dependency_tracking+set}" = set; then
4502  enableval="$enable_dependency_tracking"
4503
4504fi;
4505if test "x$enable_dependency_tracking" != xno; then
4506  am_depcomp="$ac_aux_dir/depcomp"
4507  AMDEPBACKSLASH='\'
4508fi
4509
4510
4511if test "x$enable_dependency_tracking" != xno; then
4512  AMDEP_TRUE=
4513  AMDEP_FALSE='#'
4514else
4515  AMDEP_TRUE='#'
4516  AMDEP_FALSE=
4517fi
4518
4519
4520
4521
4522
4523
4524# AC_MSG_NOTICE([Beginning automake initialisation.])
4525# Stuff for automake
4526# test to see if srcdir already configured
4527if test "`cd $srcdir && pwd`" != "`pwd`" &&
4528   test -f $srcdir/config.status; then
4529  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4530echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4531   { (exit 1); exit 1; }; }
4532fi
4533
4534# test whether we have cygpath
4535if test -z "$CYGPATH_W"; then
4536  if (cygpath --version) >/dev/null 2>/dev/null; then
4537    CYGPATH_W='cygpath -w'
4538  else
4539    CYGPATH_W=echo
4540  fi
4541fi
4542
4543
4544# Define the identity of the package.
4545 PACKAGE='thirdpartyscip'
4546 VERSION='1.3'
4547
4548
4549cat >>confdefs.h <<_ACEOF
4550#define PACKAGE "$PACKAGE"
4551_ACEOF
4552
4553
4554cat >>confdefs.h <<_ACEOF
4555#define VERSION "$VERSION"
4556_ACEOF
4557
4558# Some tools Automake needs.
4559
4560ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4561
4562
4563AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4564
4565
4566AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4567
4568
4569AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4570
4571
4572MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4573
4574install_sh=${install_sh-"$am_aux_dir/install-sh"}
4575
4576# Installed binaries are usually stripped using `strip' when the user
4577# run `make install-strip'.  However `strip' might not be the right
4578# tool to use in cross-compilation environments, therefore Automake
4579# will honor the `STRIP' environment variable to overrule this program.
4580if test "$cross_compiling" != no; then
4581  if test -n "$ac_tool_prefix"; then
4582  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4583set dummy ${ac_tool_prefix}strip; ac_word=$2
4584echo "$as_me:$LINENO: checking for $ac_word" >&5
4585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4586if test "${ac_cv_prog_STRIP+set}" = set; then
4587  echo $ECHO_N "(cached) $ECHO_C" >&6
4588else
4589  if test -n "$STRIP"; then
4590  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4591else
4592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595  IFS=$as_save_IFS
4596  test -z "$as_dir" && as_dir=.
4597  for ac_exec_ext in '' $ac_executable_extensions; do
4598  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4600    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601    break 2
4602  fi
4603done
4604done
4605
4606fi
4607fi
4608STRIP=$ac_cv_prog_STRIP
4609if test -n "$STRIP"; then
4610  echo "$as_me:$LINENO: result: $STRIP" >&5
4611echo "${ECHO_T}$STRIP" >&6
4612else
4613  echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615fi
4616
4617fi
4618if test -z "$ac_cv_prog_STRIP"; then
4619  ac_ct_STRIP=$STRIP
4620  # Extract the first word of "strip", so it can be a program name with args.
4621set dummy strip; ac_word=$2
4622echo "$as_me:$LINENO: checking for $ac_word" >&5
4623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4624if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4625  echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627  if test -n "$ac_ct_STRIP"; then
4628  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4629else
4630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633  IFS=$as_save_IFS
4634  test -z "$as_dir" && as_dir=.
4635  for ac_exec_ext in '' $ac_executable_extensions; do
4636  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637    ac_cv_prog_ac_ct_STRIP="strip"
4638    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639    break 2
4640  fi
4641done
4642done
4643
4644  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4645fi
4646fi
4647ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4648if test -n "$ac_ct_STRIP"; then
4649  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4650echo "${ECHO_T}$ac_ct_STRIP" >&6
4651else
4652  echo "$as_me:$LINENO: result: no" >&5
4653echo "${ECHO_T}no" >&6
4654fi
4655
4656  STRIP=$ac_ct_STRIP
4657else
4658  STRIP="$ac_cv_prog_STRIP"
4659fi
4660
4661fi
4662INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4663
4664# We need awk for the "check" target.  The system "awk" is bad on
4665# some platforms.
4666# Always define AMTAR for backward compatibility.
4667
4668AMTAR=${AMTAR-"${am_missing_run}tar"}
4669
4670am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4671
4672
4673
4674
4675depcc="$CC"   am_compiler_list=
4676
4677echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4678echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4679if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4680  echo $ECHO_N "(cached) $ECHO_C" >&6
4681else
4682  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4683  # We make a subdir and do the tests there.  Otherwise we can end up
4684  # making bogus files that we don't know about and never remove.  For
4685  # instance it was reported that on HP-UX the gcc test will end up
4686  # making a dummy file named `D' -- because `-MD' means `put the output
4687  # in D'.
4688  mkdir conftest.dir
4689  # Copy depcomp to subdir because otherwise we won't find it if we're
4690  # using a relative directory.
4691  cp "$am_depcomp" conftest.dir
4692  cd conftest.dir
4693  # We will build objects and dependencies in a subdirectory because
4694  # it helps to detect inapplicable dependency modes.  For instance
4695  # both Tru64's cc and ICC support -MD to output dependencies as a
4696  # side effect of compilation, but ICC will put the dependencies in
4697  # the current directory while Tru64 will put them in the object
4698  # directory.
4699  mkdir sub
4700
4701  am_cv_CC_dependencies_compiler_type=none
4702  if test "$am_compiler_list" = ""; then
4703     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4704  fi
4705  for depmode in $am_compiler_list; do
4706    # Setup a source with many dependencies, because some compilers
4707    # like to wrap large dependency lists on column 80 (with \), and
4708    # we should not choose a depcomp mode which is confused by this.
4709    #
4710    # We need to recreate these files for each test, as the compiler may
4711    # overwrite some of them when testing with obscure command lines.
4712    # This happens at least with the AIX C compiler.
4713    : > sub/conftest.c
4714    for i in 1 2 3 4 5 6; do
4715      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4716      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4717      # Solaris 8's {/usr,}/bin/sh.
4718      touch sub/conftst$i.h
4719    done
4720    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4721
4722    case $depmode in
4723    nosideeffect)
4724      # after this tag, mechanisms are not by side-effect, so they'll
4725      # only be used when explicitly requested
4726      if test "x$enable_dependency_tracking" = xyes; then
4727        continue
4728      else
4729        break
4730      fi
4731      ;;
4732    none) break ;;
4733    esac
4734    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4735    # mode.  It turns out that the SunPro C++ compiler does not properly
4736    # handle `-M -o', and we need to detect this.
4737    if depmode=$depmode \
4738       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4739       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4740       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4741         >/dev/null 2>conftest.err &&
4742       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4743       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4744       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4745      # icc doesn't choke on unknown options, it will just issue warnings
4746      # or remarks (even with -Werror).  So we grep stderr for any message
4747      # that says an option was ignored or not supported.
4748      # When given -MP, icc 7.0 and 7.1 complain thusly:
4749      #   icc: Command line warning: ignoring option '-M'; no argument required
4750      # The diagnosis changed in icc 8.0:
4751      #   icc: Command line remark: option '-MP' not supported
4752      if (grep 'ignoring option' conftest.err ||
4753          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4754        am_cv_CC_dependencies_compiler_type=$depmode
4755        break
4756      fi
4757    fi
4758  done
4759
4760  cd ..
4761  rm -rf conftest.dir
4762else
4763  am_cv_CC_dependencies_compiler_type=none
4764fi
4765
4766fi
4767echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4768echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4769CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4770
4771
4772
4773if
4774  test "x$enable_dependency_tracking" != xno \
4775  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4776  am__fastdepCC_TRUE=
4777  am__fastdepCC_FALSE='#'
4778else
4779  am__fastdepCC_TRUE='#'
4780  am__fastdepCC_FALSE=
4781fi
4782
4783
4784depcc="$CXX"  am_compiler_list=
4785
4786echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4787echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4788if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4792  # We make a subdir and do the tests there.  Otherwise we can end up
4793  # making bogus files that we don't know about and never remove.  For
4794  # instance it was reported that on HP-UX the gcc test will end up
4795  # making a dummy file named `D' -- because `-MD' means `put the output
4796  # in D'.
4797  mkdir conftest.dir
4798  # Copy depcomp to subdir because otherwise we won't find it if we're
4799  # using a relative directory.
4800  cp "$am_depcomp" conftest.dir
4801  cd conftest.dir
4802  # We will build objects and dependencies in a subdirectory because
4803  # it helps to detect inapplicable dependency modes.  For instance
4804  # both Tru64's cc and ICC support -MD to output dependencies as a
4805  # side effect of compilation, but ICC will put the dependencies in
4806  # the current directory while Tru64 will put them in the object
4807  # directory.
4808  mkdir sub
4809
4810  am_cv_CXX_dependencies_compiler_type=none
4811  if test "$am_compiler_list" = ""; then
4812     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4813  fi
4814  for depmode in $am_compiler_list; do
4815    # Setup a source with many dependencies, because some compilers
4816    # like to wrap large dependency lists on column 80 (with \), and
4817    # we should not choose a depcomp mode which is confused by this.
4818    #
4819    # We need to recreate these files for each test, as the compiler may
4820    # overwrite some of them when testing with obscure command lines.
4821    # This happens at least with the AIX C compiler.
4822    : > sub/conftest.c
4823    for i in 1 2 3 4 5 6; do
4824      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4825      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4826      # Solaris 8's {/usr,}/bin/sh.
4827      touch sub/conftst$i.h
4828    done
4829    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4830
4831    case $depmode in
4832    nosideeffect)
4833      # after this tag, mechanisms are not by side-effect, so they'll
4834      # only be used when explicitly requested
4835      if test "x$enable_dependency_tracking" = xyes; then
4836        continue
4837      else
4838        break
4839      fi
4840      ;;
4841    none) break ;;
4842    esac
4843    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4844    # mode.  It turns out that the SunPro C++ compiler does not properly
4845    # handle `-M -o', and we need to detect this.
4846    if depmode=$depmode \
4847       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4848       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4849       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4850         >/dev/null 2>conftest.err &&
4851       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4852       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4853       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4854      # icc doesn't choke on unknown options, it will just issue warnings
4855      # or remarks (even with -Werror).  So we grep stderr for any message
4856      # that says an option was ignored or not supported.
4857      # When given -MP, icc 7.0 and 7.1 complain thusly:
4858      #   icc: Command line warning: ignoring option '-M'; no argument required
4859      # The diagnosis changed in icc 8.0:
4860      #   icc: Command line remark: option '-MP' not supported
4861      if (grep 'ignoring option' conftest.err ||
4862          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4863        am_cv_CXX_dependencies_compiler_type=$depmode
4864        break
4865      fi
4866    fi
4867  done
4868
4869  cd ..
4870  rm -rf conftest.dir
4871else
4872  am_cv_CXX_dependencies_compiler_type=none
4873fi
4874
4875fi
4876echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4877echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4878CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4879
4880
4881
4882if
4883  test "x$enable_dependency_tracking" != xno \
4884  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4885  am__fastdepCXX_TRUE=
4886  am__fastdepCXX_FALSE='#'
4887else
4888  am__fastdepCXX_TRUE='#'
4889  am__fastdepCXX_FALSE=
4890fi
4891
4892
4893
4894echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4895echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4896    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4897if test "${enable_maintainer_mode+set}" = set; then
4898  enableval="$enable_maintainer_mode"
4899  USE_MAINTAINER_MODE=$enableval
4900else
4901  USE_MAINTAINER_MODE=no
4902fi;
4903  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4904echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4905
4906
4907if test $USE_MAINTAINER_MODE = yes; then
4908  MAINTAINER_MODE_TRUE=
4909  MAINTAINER_MODE_FALSE='#'
4910else
4911  MAINTAINER_MODE_TRUE='#'
4912  MAINTAINER_MODE_FALSE=
4913fi
4914
4915  MAINT=$MAINTAINER_MODE_TRUE
4916
4917
4918
4919coin_have_externals=no
4920if test "$enable_maintainer_mode" = yes; then
4921
4922  # If maintainer mode is chosen, we make sure that the correct versions
4923  # of the tools are used, and that we know where libtool.m4 is (to
4924  # recreate acinclude.m4)
4925
4926
4927  LIBTOOLM4=
4928  # Normally, $HOME
4929  AUTOTOOLS_DFLT=$HOME
4930
4931  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4932echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4933if test "${ac_cv_use_correct_autotools+set}" = set; then
4934  echo $ECHO_N "(cached) $ECHO_C" >&6
4935else
4936  ac_cv_use_correct_autotools=check
4937fi
4938echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4939echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4940
4941  if test $ac_cv_use_correct_autotools = check; then
4942    ac_cv_use_correct_autotools=yes
4943    # Check if we have autoconf
4944    # Extract the first word of "autoconf", so it can be a program name with args.
4945set dummy autoconf; ac_word=$2
4946echo "$as_me:$LINENO: checking for $ac_word" >&5
4947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4948if test "${ac_cv_prog_have_autoconf+set}" = set; then
4949  echo $ECHO_N "(cached) $ECHO_C" >&6
4950else
4951  if test -n "$have_autoconf"; then
4952  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4953else
4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957  IFS=$as_save_IFS
4958  test -z "$as_dir" && as_dir=.
4959  for ac_exec_ext in '' $ac_executable_extensions; do
4960  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961    ac_cv_prog_have_autoconf="yes"
4962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963    break 2
4964  fi
4965done
4966done
4967
4968  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4969fi
4970fi
4971have_autoconf=$ac_cv_prog_have_autoconf
4972if test -n "$have_autoconf"; then
4973  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4974echo "${ECHO_T}$have_autoconf" >&6
4975else
4976  echo "$as_me:$LINENO: result: no" >&5
4977echo "${ECHO_T}no" >&6
4978fi
4979
4980    if test $have_autoconf = no; then
4981      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4982echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4983   { (exit 1); exit 1; }; }
4984    fi
4985
4986    # Check whether autoconf is the correct version
4987    correct_version='2.59'
4988    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4989    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4990echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4991    autoconf --version > confauto.out 2>&1
4992    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4993      echo "$as_me:$LINENO: result: yes" >&5
4994echo "${ECHO_T}yes" >&6
4995    else
4996      rm -f confauto.out
4997      echo "$as_me:$LINENO: result: no" >&5
4998echo "${ECHO_T}no" >&6
4999      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5000echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5001   { (exit 1); exit 1; }; }
5002    fi
5003    rm -f confauto.out
5004
5005    # Check if the executable autoconf is picked up from the correct location
5006    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5007echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5008    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5009    autoconf_dir=`cd $autoconf_dir; pwd`
5010    if test x$AUTOTOOLS_DIR = x; then
5011      want_dir=$AUTOTOOLS_DFLT/bin
5012    else
5013      want_dir=$AUTOTOOLS_DIR/bin
5014    fi
5015    if test $autoconf_dir = `cd $want_dir; pwd`; then
5016      echo "$as_me:$LINENO: result: yes" >&5
5017echo "${ECHO_T}yes" >&6
5018    else
5019      rm -f confauto.out
5020      echo "$as_me:$LINENO: result: no" >&5
5021echo "${ECHO_T}no" >&6
5022      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5023echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5024   { (exit 1); exit 1; }; }
5025    fi
5026
5027    # Check if we have automake
5028    # Extract the first word of "automake", so it can be a program name with args.
5029set dummy automake; ac_word=$2
5030echo "$as_me:$LINENO: checking for $ac_word" >&5
5031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032if test "${ac_cv_prog_have_automake+set}" = set; then
5033  echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035  if test -n "$have_automake"; then
5036  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5037else
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041  IFS=$as_save_IFS
5042  test -z "$as_dir" && as_dir=.
5043  for ac_exec_ext in '' $ac_executable_extensions; do
5044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045    ac_cv_prog_have_automake="yes"
5046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047    break 2
5048  fi
5049done
5050done
5051
5052  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5053fi
5054fi
5055have_automake=$ac_cv_prog_have_automake
5056if test -n "$have_automake"; then
5057  echo "$as_me:$LINENO: result: $have_automake" >&5
5058echo "${ECHO_T}$have_automake" >&6
5059else
5060  echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062fi
5063
5064    if test $have_automake = no; then
5065      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5066echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5067   { (exit 1); exit 1; }; }
5068    fi
5069
5070    # Check whether automake is the correct version
5071    correct_version='1.9.6'
5072    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5073    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5074echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5075    automake --version > confauto.out 2>&1
5076    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5077      echo "$as_me:$LINENO: result: yes" >&5
5078echo "${ECHO_T}yes" >&6
5079    else
5080      rm -f confauto.out
5081      echo "$as_me:$LINENO: result: no" >&5
5082echo "${ECHO_T}no" >&6
5083      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5084echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5085   { (exit 1); exit 1; }; }
5086    fi
5087    rm -f confauto.out
5088
5089    # Check if the executable automake is picked up from the correct location
5090    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5091echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5092    automake_dir=`which automake | sed -e 's=/automake=='`
5093    automake_dir=`cd $automake_dir; pwd`
5094    if test x$AUTOTOOLS_DIR = x; then
5095      want_dir=$AUTOTOOLS_DFLT/bin
5096    else
5097      want_dir=$AUTOTOOLS_DIR/bin
5098    fi
5099    if test $automake_dir = `cd $want_dir; pwd`; then
5100      echo "$as_me:$LINENO: result: yes" >&5
5101echo "${ECHO_T}yes" >&6
5102    else
5103      rm -f confauto.out
5104      echo "$as_me:$LINENO: result: no" >&5
5105echo "${ECHO_T}no" >&6
5106      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5107echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5108   { (exit 1); exit 1; }; }
5109    fi
5110
5111    # Check if this is the correct version of libtool (with escaped dots)
5112    if test x$AUTOTOOLS_DIR = x; then
5113      want_dir=$AUTOTOOLS_DFLT/share
5114    else
5115      want_dir=$AUTOTOOLS_DIR/share
5116    fi
5117    correct_version='1.5.22'
5118    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5119    if test -r $want_dir/libtool/ltmain.sh; then
5120  have_ltmain=yes
5121  :
5122else
5123  have_ltmain=no
5124  :
5125fi
5126
5127    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5128echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5129    if test $have_ltmain = yes; then
5130    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5131        echo "$as_me:$LINENO: result: yes" >&5
5132echo "${ECHO_T}yes" >&6
5133      else
5134        echo "$as_me:$LINENO: result: no" >&5
5135echo "${ECHO_T}no" >&6
5136        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5137echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5138   { (exit 1); exit 1; }; }
5139      fi
5140    else
5141      echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
5143      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5144echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5145   { (exit 1); exit 1; }; }
5146    fi
5147  fi
5148
5149  # Check if we can find the libtool file
5150  if test x$AUTOTOOLS_DIR = x; then
5151    want_dir=$AUTOTOOLS_DFLT/share
5152  else
5153    want_dir=$AUTOTOOLS_DIR/share
5154  fi
5155  if test -r $want_dir/aclocal/libtool.m4; then
5156  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5157  :
5158else
5159  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5160echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5161   { (exit 1); exit 1; }; }
5162  :
5163fi
5164
5165
5166  # Check if we have an Dependencies file
5167  if test -r $srcdir/Dependencies; then
5168    coin_have_externals=yes
5169  fi
5170  # Check if subversion is installed and understands https
5171  # Extract the first word of "svn", so it can be a program name with args.
5172set dummy svn; ac_word=$2
5173echo "$as_me:$LINENO: checking for $ac_word" >&5
5174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5175if test "${ac_cv_prog_have_svn+set}" = set; then
5176  echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178  if test -n "$have_svn"; then
5179  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5180else
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184  IFS=$as_save_IFS
5185  test -z "$as_dir" && as_dir=.
5186  for ac_exec_ext in '' $ac_executable_extensions; do
5187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188    ac_cv_prog_have_svn="yes"
5189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190    break 2
5191  fi
5192done
5193done
5194
5195  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5196fi
5197fi
5198have_svn=$ac_cv_prog_have_svn
5199if test -n "$have_svn"; then
5200  echo "$as_me:$LINENO: result: $have_svn" >&5
5201echo "${ECHO_T}$have_svn" >&6
5202else
5203  echo "$as_me:$LINENO: result: no" >&5
5204echo "${ECHO_T}no" >&6
5205fi
5206
5207  if test x$have_svn = xyes; then
5208    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5209echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5210if test "${ac_cv_svn_understands_https+set}" = set; then
5211  echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213  svn --version > confauto.out 2>&1
5214                    if $EGREP https confauto.out >/dev/null 2>&1; then
5215                      ac_cv_svn_understands_https=yes
5216                    else
5217                      ac_cv_svn_understands_https=no
5218                      have_svn=no
5219                      ac_cv_prog_have_svn=no
5220                    fi
5221                    rm -f confauto.out
5222fi
5223echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5224echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5225  fi
5226
5227  # Find the location of the BuildTools directory
5228  BUILDTOOLSDIR=
5229  if test -r $srcdir/BuildTools/coin.m4; then
5230    BUILDTOOLSDIR=$srcdir/BuildTools
5231  else
5232    if test -r $srcdir/../BuildTools/coin.m4; then
5233      BUILDTOOLSDIR=$srcdir/../BuildTools
5234    else
5235      if test -r $srcdir/../../BuildTools/coin.m4; then
5236        BUILDTOOLSDIR=$srcdir/../../BuildTools
5237      else
5238        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5239echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5240   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5241      fi
5242    fi
5243  fi
5244
5245
5246  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5247  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5248    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5249  fi
5250
5251  # The following variable is set to the name of the directory where
5252  # the autotool scripts are located
5253
5254  AUX_DIR=$ac_aux_dir
5255fi
5256
5257# helpful variable for the base directory of this package
5258abs_source_dir=`cd $srcdir; pwd`
5259
5260
5261# Stuff for example Makefiles
5262if test x$prefix = xNONE; then
5263  full_prefix=$ac_default_prefix
5264else
5265  full_prefix=$prefix
5266fi
5267full_prefix=`cd $full_prefix ; pwd`
5268
5269abs_lib_dir=$full_prefix/lib
5270
5271abs_include_dir=$full_prefix/include
5272
5273abs_bin_dir=$full_prefix/bin
5274
5275
5276
5277if test $coin_have_externals = yes && test x$have_svn = xyes; then
5278  HAVE_EXTERNALS_TRUE=
5279  HAVE_EXTERNALS_FALSE='#'
5280else
5281  HAVE_EXTERNALS_TRUE='#'
5282  HAVE_EXTERNALS_FALSE=
5283fi
5284
5285
5286# AC_MSG_NOTICE([End automake initialisation.])
5287
5288
5289
5290LIBTOOL=
5291if test -f ../libtool; then
5292  coin_config_dir=..
5293  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5294fi
5295if test "x$LIBTOOL" = x; then
5296  if test -f ../../libtool; then
5297    coin_config_dir=../..
5298    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5299  fi
5300fi
5301
5302if test "x$LIBTOOL" = x; then
5303# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5304  # Stuff for libtool
5305  # Check whether --enable-shared or --disable-shared was given.
5306if test "${enable_shared+set}" = set; then
5307  enableval="$enable_shared"
5308  p=${PACKAGE-default}
5309    case $enableval in
5310    yes) enable_shared=yes ;;
5311    no) enable_shared=no ;;
5312    *)
5313      enable_shared=no
5314      # Look at the argument we got.  We use all the common list separators.
5315      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5316      for pkg in $enableval; do
5317        IFS="$lt_save_ifs"
5318        if test "X$pkg" = "X$p"; then
5319          enable_shared=yes
5320        fi
5321      done
5322      IFS="$lt_save_ifs"
5323      ;;
5324    esac
5325else
5326  enable_shared=yes
5327fi;
5328
5329# Check whether --enable-fast-install or --disable-fast-install was given.
5330if test "${enable_fast_install+set}" = set; then
5331  enableval="$enable_fast_install"
5332  p=${PACKAGE-default}
5333    case $enableval in
5334    yes) enable_fast_install=yes ;;
5335    no) enable_fast_install=no ;;
5336    *)
5337      enable_fast_install=no
5338      # Look at the argument we got.  We use all the common list separators.
5339      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5340      for pkg in $enableval; do
5341        IFS="$lt_save_ifs"
5342        if test "X$pkg" = "X$p"; then
5343          enable_fast_install=yes
5344        fi
5345      done
5346      IFS="$lt_save_ifs"
5347      ;;
5348    esac
5349else
5350  enable_fast_install=yes
5351fi;
5352
5353echo "$as_me:$LINENO: checking host system type" >&5
5354echo $ECHO_N "checking host system type... $ECHO_C" >&6
5355if test "${ac_cv_host+set}" = set; then
5356  echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358  ac_cv_host_alias=$host_alias
5359test -z "$ac_cv_host_alias" &&
5360  ac_cv_host_alias=$ac_cv_build_alias
5361ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5362  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5363echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5364   { (exit 1); exit 1; }; }
5365
5366fi
5367echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5368echo "${ECHO_T}$ac_cv_host" >&6
5369host=$ac_cv_host
5370host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5371host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5372host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5373
5374
5375echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5376echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5377if test "${lt_cv_path_SED+set}" = set; then
5378  echo $ECHO_N "(cached) $ECHO_C" >&6
5379else
5380  # Loop through the user's path and test for sed and gsed.
5381# Then use that list of sed's as ones to test for truncation.
5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH
5384do
5385  IFS=$as_save_IFS
5386  test -z "$as_dir" && as_dir=.
5387  for lt_ac_prog in sed gsed; do
5388    for ac_exec_ext in '' $ac_executable_extensions; do
5389      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5390        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5391      fi
5392    done
5393  done
5394done
5395lt_ac_max=0
5396lt_ac_count=0
5397# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5398# along with /bin/sed that truncates output.
5399for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5400  test ! -f $lt_ac_sed && continue
5401  cat /dev/null > conftest.in
5402  lt_ac_count=0
5403  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5404  # Check for GNU sed and select it if it is found.
5405  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5406    lt_cv_path_SED=$lt_ac_sed
5407    break
5408  fi
5409  while true; do
5410    cat conftest.in conftest.in >conftest.tmp
5411    mv conftest.tmp conftest.in
5412    cp conftest.in conftest.nl
5413    echo >>conftest.nl
5414    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5415    cmp -s conftest.out conftest.nl || break
5416    # 10000 chars as input seems more than enough
5417    test $lt_ac_count -gt 10 && break
5418    lt_ac_count=`expr $lt_ac_count + 1`
5419    if test $lt_ac_count -gt $lt_ac_max; then
5420      lt_ac_max=$lt_ac_count
5421      lt_cv_path_SED=$lt_ac_sed
5422    fi
5423  done
5424done
5425
5426fi
5427
5428SED=$lt_cv_path_SED
5429echo "$as_me:$LINENO: result: $SED" >&5
5430echo "${ECHO_T}$SED" >&6
5431
5432
5433# Check whether --with-gnu-ld or --without-gnu-ld was given.
5434if test "${with_gnu_ld+set}" = set; then
5435  withval="$with_gnu_ld"
5436  test "$withval" = no || with_gnu_ld=yes
5437else
5438  with_gnu_ld=no
5439fi;
5440ac_prog=ld
5441if test "$GCC" = yes; then
5442  # Check if gcc -print-prog-name=ld gives a path.
5443  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5444echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5445  case $host in
5446  *-*-mingw*)
5447    # gcc leaves a trailing carriage return which upsets mingw
5448    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5449  *)
5450    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5451  esac
5452  case $ac_prog in
5453    # Accept absolute paths.
5454    [\\/]* | ?:[\\/]*)
5455      re_direlt='/[^/][^/]*/\.\./'
5456      # Canonicalize the pathname of ld
5457      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5458      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5459        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5460      done
5461      test -z "$LD" && LD="$ac_prog"
5462      ;;
5463  "")
5464    # If it fails, then pretend we aren't using GCC.
5465    ac_prog=ld
5466    ;;
5467  *)
5468    # If it is relative, then search for the first ld in PATH.
5469    with_gnu_ld=unknown
5470    ;;
5471  esac
5472elif test "$with_gnu_ld" = yes; then
5473  echo "$as_me:$LINENO: checking for GNU ld" >&5
5474echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5475else
5476  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5477echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5478fi
5479if test "${lt_cv_path_LD+set}" = set; then
5480  echo $ECHO_N "(cached) $ECHO_C" >&6
5481else
5482  if test -z "$LD"; then
5483  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5484  for ac_dir in $PATH; do
5485    IFS="$lt_save_ifs"
5486    test -z "$ac_dir" && ac_dir=.
5487    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5488      lt_cv_path_LD="$ac_dir/$ac_prog"
5489      # Check to see if the program is GNU ld.  I'd rather use --version,
5490      # but apparently some variants of GNU ld only accept -v.
5491      # Break only if it was the GNU/non-GNU ld that we prefer.
5492      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5493      *GNU* | *'with BFD'*)
5494        test "$with_gnu_ld" != no && break
5495        ;;
5496      *)
5497        test "$with_gnu_ld" != yes && break
5498        ;;
5499      esac
5500    fi
5501  done
5502  IFS="$lt_save_ifs"
5503else
5504  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5505fi
5506fi
5507
5508LD="$lt_cv_path_LD"
5509if test -n "$LD"; then
5510  echo "$as_me:$LINENO: result: $LD" >&5
5511echo "${ECHO_T}$LD" >&6
5512else
5513  echo "$as_me:$LINENO: result: no" >&5
5514echo "${ECHO_T}no" >&6
5515fi
5516test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5517echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5518   { (exit 1); exit 1; }; }
5519echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5520echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5521if test "${lt_cv_prog_gnu_ld+set}" = set; then
5522  echo $ECHO_N "(cached) $ECHO_C" >&6
5523else
5524  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5525case `$LD -v 2>&1 </dev/null` in
5526*GNU* | *'with BFD'*)
5527  lt_cv_prog_gnu_ld=yes
5528  ;;
5529*)
5530  lt_cv_prog_gnu_ld=no
5531  ;;
5532esac
5533fi
5534echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5535echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5536with_gnu_ld=$lt_cv_prog_gnu_ld
5537
5538
5539echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5540echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5541if test "${lt_cv_ld_reload_flag+set}" = set; then
5542  echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
5544  lt_cv_ld_reload_flag='-r'
5545fi
5546echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5547echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5548reload_flag=$lt_cv_ld_reload_flag
5549case $reload_flag in
5550"" | " "*) ;;
5551*) reload_flag=" $reload_flag" ;;
5552esac
5553reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554case $host_os in
5555  darwin*)
5556    if test "$GCC" = yes; then
5557      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5558    else
5559      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5560    fi
5561    ;;
5562esac
5563
5564echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5565echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5566if test "${lt_cv_path_NM+set}" = set; then
5567  echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
5569  if test -n "$NM"; then
5570  # Let the user override the test.
5571  lt_cv_path_NM="$NM"
5572else
5573  lt_nm_to_check="${ac_tool_prefix}nm"
5574  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5575    lt_nm_to_check="$lt_nm_to_check nm"
5576  fi
5577  for lt_tmp_nm in $lt_nm_to_check; do
5578    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5579    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5580      IFS="$lt_save_ifs"
5581      test -z "$ac_dir" && ac_dir=.
5582      tmp_nm="$ac_dir/$lt_tmp_nm"
5583      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5584        # Check to see if the nm accepts a BSD-compat flag.
5585        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5586        #   nm: unknown option "B" ignored
5587        # Tru64's nm complains that /dev/null is an invalid object file
5588        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5589        */dev/null* | *'Invalid file or object type'*)
5590          lt_cv_path_NM="$tmp_nm -B"
5591          break
5592          ;;
5593        *)
5594          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5595          */dev/null*)
5596            lt_cv_path_NM="$tmp_nm -p"
5597            break
5598            ;;
5599          *)
5600            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5601            continue # so that we can try to find one that supports BSD flags
5602            ;;
5603          esac
5604          ;;
5605        esac
5606      fi
5607    done
5608    IFS="$lt_save_ifs"
5609  done
5610  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5611fi
5612fi
5613echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5614echo "${ECHO_T}$lt_cv_path_NM" >&6
5615NM="$lt_cv_path_NM"
5616
5617echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5618echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5619if test "${lt_cv_deplibs_check_method+set}" = set; then
5620  echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622  lt_cv_file_magic_cmd='$MAGIC_CMD'
5623lt_cv_file_magic_test_file=
5624lt_cv_deplibs_check_method='unknown'
5625# Need to set the preceding variable on all platforms that support
5626# interlibrary dependencies.
5627# 'none' -- dependencies not supported.
5628# `unknown' -- same as none, but documents that we really don't know.
5629# 'pass_all' -- all dependencies passed with no checks.
5630# 'test_compile' -- check by making test program.
5631# 'file_magic [[regex]]' -- check by looking for files in library path
5632# which responds to the $file_magic_cmd with a given extended regex.
5633# If you have `file' or equivalent on your system and you're not sure
5634# whether `pass_all' will *always* work, you probably want this one.
5635
5636case $host_os in
5637aix4* | aix5*)
5638  lt_cv_deplibs_check_method=pass_all
5639  ;;
5640
5641beos*)
5642  lt_cv_deplibs_check_method=pass_all
5643  ;;
5644
5645bsdi[45]*)
5646  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5647  lt_cv_file_magic_cmd='/usr/bin/file -L'
5648  lt_cv_file_magic_test_file=/shlib/libc.so
5649  ;;
5650
5651cygwin*)
5652  # func_win32_libid is a shell function defined in ltmain.sh
5653  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5654  lt_cv_file_magic_cmd='func_win32_libid'
5655  ;;
5656
5657mingw* | pw32*)
5658  # Base MSYS/MinGW do not provide the 'file' command needed by
5659  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5660  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5661  lt_cv_file_magic_cmd='$OBJDUMP -f'
5662  ;;
5663
5664darwin* | rhapsody*)
5665  lt_cv_deplibs_check_method=pass_all
5666  ;;
5667
5668freebsd* | kfreebsd*-gnu | dragonfly*)
5669  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5670    case $host_cpu in
5671    i*86 )
5672      # Not sure whether the presence of OpenBSD here was a mistake.
5673      # Let's accept both of them until this is cleared up.
5674      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5675      lt_cv_file_magic_cmd=/usr/bin/file
5676      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5677      ;;
5678    esac
5679  else
5680    lt_cv_deplibs_check_method=pass_all
5681  fi
5682  ;;
5683
5684gnu*)
5685  lt_cv_deplibs_check_method=pass_all
5686  ;;
5687
5688hpux10.20* | hpux11*)
5689  lt_cv_file_magic_cmd=/usr/bin/file
5690  case $host_cpu in
5691  ia64*)
5692    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5693    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5694    ;;
5695  hppa*64*)
5696    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]'
5697    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5698    ;;
5699  *)
5700    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5701    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5702    ;;
5703  esac
5704  ;;
5705
5706interix3*)
5707  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5708  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5709  ;;
5710
5711irix5* | irix6* | nonstopux*)
5712  case $LD in
5713  *-32|*"-32 ") libmagic=32-bit;;
5714  *-n32|*"-n32 ") libmagic=N32;;
5715  *-64|*"-64 ") libmagic=64-bit;;
5716  *) libmagic=never-match;;
5717  esac
5718  lt_cv_deplibs_check_method=pass_all
5719  ;;
5720
5721# This must be Linux ELF.
5722linux*)
5723  lt_cv_deplibs_check_method=pass_all
5724  ;;
5725
5726netbsd*)
5727  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5728    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5729  else
5730    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5731  fi
5732  ;;
5733
5734newos6*)
5735  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5736  lt_cv_file_magic_cmd=/usr/bin/file
5737  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5738  ;;
5739
5740nto-qnx*)
5741  lt_cv_deplibs_check_method=unknown
5742  ;;
5743
5744openbsd*)
5745  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5746    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5747  else
5748    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5749  fi
5750  ;;
5751
5752osf3* | osf4* | osf5*)
5753  lt_cv_deplibs_check_method=pass_all
5754  ;;
5755
5756solaris*)
5757  lt_cv_deplibs_check_method=pass_all
5758  ;;
5759
5760sysv4 | sysv4.3*)
5761  case $host_vendor in
5762  motorola)
5763    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]'
5764    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5765    ;;
5766  ncr)
5767    lt_cv_deplibs_check_method=pass_all
5768    ;;
5769  sequent)
5770    lt_cv_file_magic_cmd='/bin/file'
5771    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5772    ;;
5773  sni)
5774    lt_cv_file_magic_cmd='/bin/file'
5775    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5776    lt_cv_file_magic_test_file=/lib/libc.so
5777    ;;
5778  siemens)
5779    lt_cv_deplibs_check_method=pass_all
5780    ;;
5781  pc)
5782    lt_cv_deplibs_check_method=pass_all
5783    ;;
5784  esac
5785  ;;
5786
5787sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5788  lt_cv_deplibs_check_method=pass_all
5789  ;;
5790esac
5791
5792fi
5793echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5794echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5795file_magic_cmd=$lt_cv_file_magic_cmd
5796deplibs_check_method=$lt_cv_deplibs_check_method
5797test -z "$deplibs_check_method" && deplibs_check_method=unknown
5798
5799
5800
5801
5802# If no C compiler was specified, use CC.
5803LTCC=${LTCC-"$CC"}
5804
5805# If no C compiler flags were specified, use CFLAGS.
5806LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5807
5808# Allow CC to be a program name with arguments.
5809compiler=$CC
5810
5811# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5812if test "${enable_libtool_lock+set}" = set; then
5813  enableval="$enable_libtool_lock"
5814
5815fi;
5816test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5817
5818# Some flags need to be propagated to the compiler or linker for good
5819# libtool support.
5820case $host in
5821ia64-*-hpux*)
5822  # Find out which ABI we are using.
5823  echo 'int i;' > conftest.$ac_ext
5824  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825  (eval $ac_compile) 2>&5
5826  ac_status=$?
5827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828  (exit $ac_status); }; then
5829    case `/usr/bin/file conftest.$ac_objext` in
5830    *ELF-32*)
5831      HPUX_IA64_MODE="32"
5832      ;;
5833    *ELF-64*)
5834      HPUX_IA64_MODE="64"
5835      ;;
5836    esac
5837  fi
5838  rm -rf conftest*
5839  ;;
5840*-*-irix6*)
5841  # Find out which ABI we are using.
5842  echo '#line 5842 "configure"' > conftest.$ac_ext
5843  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5844  (eval $ac_compile) 2>&5
5845  ac_status=$?
5846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847  (exit $ac_status); }; then
5848   if test "$lt_cv_prog_gnu_ld" = yes; then
5849    case `/usr/bin/file conftest.$ac_objext` in
5850    *32-bit*)
5851      LD="${LD-ld} -melf32bsmip"
5852      ;;
5853    *N32*)
5854      LD="${LD-ld} -melf32bmipn32"
5855      ;;
5856    *64-bit*)
5857      LD="${LD-ld} -melf64bmip"
5858      ;;
5859    esac
5860   else
5861    case `/usr/bin/file conftest.$ac_objext` in
5862    *32-bit*)
5863      LD="${LD-ld} -32"
5864      ;;
5865    *N32*)
5866      LD="${LD-ld} -n32"
5867      ;;
5868    *64-bit*)
5869      LD="${LD-ld} -64"
5870      ;;
5871    esac
5872   fi
5873  fi
5874  rm -rf conftest*
5875  ;;
5876
5877x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5878  # Find out which ABI we are using.
5879  echo 'int i;' > conftest.$ac_ext
5880  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881  (eval $ac_compile) 2>&5
5882  ac_status=$?
5883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884  (exit $ac_status); }; then
5885    case `/usr/bin/file conftest.o` in
5886    *32-bit*)
5887      case $host in
5888        x86_64-*linux*)
5889          LD="${LD-ld} -m elf_i386"
5890          ;;
5891        ppc64-*linux*|powerpc64-*linux*)
5892          LD="${LD-ld} -m elf32ppclinux"
5893          ;;
5894        s390x-*linux*)
5895          LD="${LD-ld} -m elf_s390"
5896          ;;
5897        sparc64-*linux*)
5898          LD="${LD-ld} -m elf32_sparc"
5899          ;;
5900      esac
5901      ;;
5902    *64-bit*)
5903      case $host in
5904        x86_64-*linux*)
5905          LD="${LD-ld} -m elf_x86_64"
5906          ;;
5907        ppc*-*linux*|powerpc*-*linux*)
5908          LD="${LD-ld} -m elf64ppc"
5909          ;;
5910        s390*-*linux*)
5911          LD="${LD-ld} -m elf64_s390"
5912          ;;
5913        sparc*-*linux*)
5914          LD="${LD-ld} -m elf64_sparc"
5915          ;;
5916      esac
5917      ;;
5918    esac
5919  fi
5920  rm -rf conftest*
5921  ;;
5922
5923*-*-sco3.2v5*)
5924  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5925  SAVE_CFLAGS="$CFLAGS"
5926  CFLAGS="$CFLAGS -belf"
5927  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5928echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5929if test "${lt_cv_cc_needs_belf+set}" = set; then
5930  echo $ECHO_N "(cached) $ECHO_C" >&6
5931else
5932  ac_ext=c
5933ac_cpp='$CPP $CPPFLAGS'
5934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936ac_compiler_gnu=$ac_cv_c_compiler_gnu
5937
5938     cat >conftest.$ac_ext <<_ACEOF
5939/* confdefs.h.  */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
5943/* end confdefs.h.  */
5944
5945int
5946main ()
5947{
5948
5949  ;
5950  return 0;
5951}
5952_ACEOF
5953rm -f conftest.$ac_objext conftest$ac_exeext
5954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955  (eval $ac_link) 2>conftest.er1
5956  ac_status=$?
5957  grep -v '^ *+' conftest.er1 >conftest.err
5958  rm -f conftest.er1
5959  cat conftest.err >&5
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); } &&
5962         { ac_try='test -z "$ac_c_werror_flag"
5963                         || test ! -s conftest.err'
5964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965  (eval $ac_try) 2>&5
5966  ac_status=$?
5967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968  (exit $ac_status); }; } &&
5969         { ac_try='test -s conftest$ac_exeext'
5970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971  (eval $ac_try) 2>&5
5972  ac_status=$?
5973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974  (exit $ac_status); }; }; then
5975  lt_cv_cc_needs_belf=yes
5976else
5977  echo "$as_me: failed program was:" >&5
5978sed 's/^/| /' conftest.$ac_ext >&5
5979
5980lt_cv_cc_needs_belf=no
5981fi
5982rm -f conftest.err conftest.$ac_objext \
5983      conftest$ac_exeext conftest.$ac_ext
5984     ac_ext=c
5985ac_cpp='$CPP $CPPFLAGS'
5986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988ac_compiler_gnu=$ac_cv_c_compiler_gnu
5989
5990fi
5991echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5992echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5993  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5994    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5995    CFLAGS="$SAVE_CFLAGS"
5996  fi
5997  ;;
5998sparc*-*solaris*)
5999  # Find out which ABI we are using.
6000  echo 'int i;' > conftest.$ac_ext
6001  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002  (eval $ac_compile) 2>&5
6003  ac_status=$?
6004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005  (exit $ac_status); }; then
6006    case `/usr/bin/file conftest.o` in
6007    *64-bit*)
6008      case $lt_cv_prog_gnu_ld in
6009      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6010      *)    LD="${LD-ld} -64" ;;
6011      esac
6012      ;;
6013    esac
6014  fi
6015  rm -rf conftest*
6016  ;;
6017
6018
6019esac
6020
6021need_locks="$enable_libtool_lock"
6022
6023
6024ac_ext=c
6025ac_cpp='$CPP $CPPFLAGS'
6026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028ac_compiler_gnu=$ac_cv_c_compiler_gnu
6029echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6030echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6031# On Suns, sometimes $CPP names a directory.
6032if test -n "$CPP" && test -d "$CPP"; then
6033  CPP=
6034fi
6035if test -z "$CPP"; then
6036  if test "${ac_cv_prog_CPP+set}" = set; then
6037  echo $ECHO_N "(cached) $ECHO_C" >&6
6038else
6039      # Double quotes because CPP needs to be expanded
6040    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6041    do
6042      ac_preproc_ok=false
6043for ac_c_preproc_warn_flag in '' yes
6044do
6045  # Use a header file that comes with gcc, so configuring glibc
6046  # with a fresh cross-compiler works.
6047  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6048  # <limits.h> exists even on freestanding compilers.
6049  # On the NeXT, cc -E runs the code through the compiler's parser,
6050  # not just through cpp. "Syntax error" is here to catch this case.
6051  cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h.  */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h.  */
6057#ifdef __STDC__
6058# include <limits.h>
6059#else
6060# include <assert.h>
6061#endif
6062                     Syntax error
6063_ACEOF
6064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6065  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6066  ac_status=$?
6067  grep -v '^ *+' conftest.er1 >conftest.err
6068  rm -f conftest.er1
6069  cat conftest.err >&5
6070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071  (exit $ac_status); } >/dev/null; then
6072  if test -s conftest.err; then
6073    ac_cpp_err=$ac_c_preproc_warn_flag
6074    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6075  else
6076    ac_cpp_err=
6077  fi
6078else
6079  ac_cpp_err=yes
6080fi
6081if test -z "$ac_cpp_err"; then
6082  :
6083else
6084  echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087  # Broken: fails on valid input.
6088continue
6089fi
6090rm -f conftest.err conftest.$ac_ext
6091
6092  # OK, works on sane cases.  Now check whether non-existent headers
6093  # can be detected and how.
6094  cat >conftest.$ac_ext <<_ACEOF
6095/* confdefs.h.  */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h.  */
6100#include <ac_nonexistent.h>
6101_ACEOF
6102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6103  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6104  ac_status=$?
6105  grep -v '^ *+' conftest.er1 >conftest.err
6106  rm -f conftest.er1
6107  cat conftest.err >&5
6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); } >/dev/null; then
6110  if test -s conftest.err; then
6111    ac_cpp_err=$ac_c_preproc_warn_flag
6112    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6113  else
6114    ac_cpp_err=
6115  fi
6116else
6117  ac_cpp_err=yes
6118fi
6119if test -z "$ac_cpp_err"; then
6120  # Broken: success on invalid input.
6121continue
6122else
6123  echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126  # Passes both tests.
6127ac_preproc_ok=:
6128break
6129fi
6130rm -f conftest.err conftest.$ac_ext
6131
6132done
6133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6134rm -f conftest.err conftest.$ac_ext
6135if $ac_preproc_ok; then
6136  break
6137fi
6138
6139    done
6140    ac_cv_prog_CPP=$CPP
6141
6142fi
6143  CPP=$ac_cv_prog_CPP
6144else
6145  ac_cv_prog_CPP=$CPP
6146fi
6147echo "$as_me:$LINENO: result: $CPP" >&5
6148echo "${ECHO_T}$CPP" >&6
6149ac_preproc_ok=false
6150for ac_c_preproc_warn_flag in '' yes
6151do
6152  # Use a header file that comes with gcc, so configuring glibc
6153  # with a fresh cross-compiler works.
6154  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6155  # <limits.h> exists even on freestanding compilers.
6156  # On the NeXT, cc -E runs the code through the compiler's parser,
6157  # not just through cpp. "Syntax error" is here to catch this case.
6158  cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h.  */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h.  */
6164#ifdef __STDC__
6165# include <limits.h>
6166#else
6167# include <assert.h>
6168#endif
6169                     Syntax error
6170_ACEOF
6171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6172  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6173  ac_status=$?
6174  grep -v '^ *+' conftest.er1 >conftest.err
6175  rm -f conftest.er1
6176  cat conftest.err >&5
6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178  (exit $ac_status); } >/dev/null; then
6179  if test -s conftest.err; then
6180    ac_cpp_err=$ac_c_preproc_warn_flag
6181    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6182  else
6183    ac_cpp_err=
6184  fi
6185else
6186  ac_cpp_err=yes
6187fi
6188if test -z "$ac_cpp_err"; then
6189  :
6190else
6191  echo "$as_me: failed program was:" >&5
6192sed 's/^/| /' conftest.$ac_ext >&5
6193
6194  # Broken: fails on valid input.
6195continue
6196fi
6197rm -f conftest.err conftest.$ac_ext
6198
6199  # OK, works on sane cases.  Now check whether non-existent headers
6200  # can be detected and how.
6201  cat >conftest.$ac_ext <<_ACEOF
6202/* confdefs.h.  */
6203_ACEOF
6204cat confdefs.h >>conftest.$ac_ext
6205cat >>conftest.$ac_ext <<_ACEOF
6206/* end confdefs.h.  */
6207#include <ac_nonexistent.h>
6208_ACEOF
6209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6210  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6211  ac_status=$?
6212  grep -v '^ *+' conftest.er1 >conftest.err
6213  rm -f conftest.er1
6214  cat conftest.err >&5
6215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216  (exit $ac_status); } >/dev/null; then
6217  if test -s conftest.err; then
6218    ac_cpp_err=$ac_c_preproc_warn_flag
6219    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6220  else
6221    ac_cpp_err=
6222  fi
6223else
6224  ac_cpp_err=yes
6225fi
6226if test -z "$ac_cpp_err"; then
6227  # Broken: success on invalid input.
6228continue
6229else
6230  echo "$as_me: failed program was:" >&5
6231sed 's/^/| /' conftest.$ac_ext >&5
6232
6233  # Passes both tests.
6234ac_preproc_ok=:
6235break
6236fi
6237rm -f conftest.err conftest.$ac_ext
6238
6239done
6240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6241rm -f conftest.err conftest.$ac_ext
6242if $ac_preproc_ok; then
6243  :
6244else
6245  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6246See \`config.log' for more details." >&5
6247echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6248See \`config.log' for more details." >&2;}
6249   { (exit 1); exit 1; }; }
6250fi
6251
6252ac_ext=c
6253ac_cpp='$CPP $CPPFLAGS'
6254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6256ac_compiler_gnu=$ac_cv_c_compiler_gnu
6257
6258
6259echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6260echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6261if test "${ac_cv_header_stdc+set}" = set; then
6262  echo $ECHO_N "(cached) $ECHO_C" >&6
6263else
6264  cat >conftest.$ac_ext <<_ACEOF
6265/* confdefs.h.  */
6266_ACEOF
6267cat confdefs.h >>conftest.$ac_ext
6268cat >>conftest.$ac_ext <<_ACEOF
6269/* end confdefs.h.  */
6270#include <stdlib.h>
6271#include <stdarg.h>
6272#include <string.h>
6273#include <float.h>
6274
6275int
6276main ()
6277{
6278
6279  ;
6280  return 0;
6281}
6282_ACEOF
6283rm -f conftest.$ac_objext
6284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6285  (eval $ac_compile) 2>conftest.er1
6286  ac_status=$?
6287  grep -v '^ *+' conftest.er1 >conftest.err
6288  rm -f conftest.er1
6289  cat conftest.err >&5
6290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291  (exit $ac_status); } &&
6292         { ac_try='test -z "$ac_c_werror_flag"
6293                         || test ! -s conftest.err'
6294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295  (eval $ac_try) 2>&5
6296  ac_status=$?
6297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298  (exit $ac_status); }; } &&
6299         { ac_try='test -s conftest.$ac_objext'
6300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301  (eval $ac_try) 2>&5
6302  ac_status=$?
6303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304  (exit $ac_status); }; }; then
6305  ac_cv_header_stdc=yes
6306else
6307  echo "$as_me: failed program was:" >&5
6308sed 's/^/| /' conftest.$ac_ext >&5
6309
6310ac_cv_header_stdc=no
6311fi
6312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6313
6314if test $ac_cv_header_stdc = yes; then
6315  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6316  cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h.  */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h.  */
6322#include <string.h>
6323
6324_ACEOF
6325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6326  $EGREP "memchr" >/dev/null 2>&1; then
6327  :
6328else
6329  ac_cv_header_stdc=no
6330fi
6331rm -f conftest*
6332
6333fi
6334
6335if test $ac_cv_header_stdc = yes; then
6336  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6337  cat >conftest.$ac_ext <<_ACEOF
6338/* confdefs.h.  */
6339_ACEOF
6340cat confdefs.h >>conftest.$ac_ext
6341cat >>conftest.$ac_ext <<_ACEOF
6342/* end confdefs.h.  */
6343#include <stdlib.h>
6344
6345_ACEOF
6346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347  $EGREP "free" >/dev/null 2>&1; then
6348  :
6349else
6350  ac_cv_header_stdc=no
6351fi
6352rm -f conftest*
6353
6354fi
6355
6356if test $ac_cv_header_stdc = yes; then
6357  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6358  if test "$cross_compiling" = yes; then
6359  :
6360else
6361  cat >conftest.$ac_ext <<_ACEOF
6362/* confdefs.h.  */
6363_ACEOF
6364cat confdefs.h >>conftest.$ac_ext
6365cat >>conftest.$ac_ext <<_ACEOF
6366/* end confdefs.h.  */
6367#include <ctype.h>
6368#if ((' ' & 0x0FF) == 0x020)
6369# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6370# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6371#else
6372# define ISLOWER(c) \
6373                   (('a' <= (c) && (c) <= 'i') \
6374                     || ('j' <= (c) && (c) <= 'r') \
6375                     || ('s' <= (c) && (c) <= 'z'))
6376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6377#endif
6378
6379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6380int
6381main ()
6382{
6383  int i;
6384  for (i = 0; i < 256; i++)
6385    if (XOR (islower (i), ISLOWER (i))
6386        || toupper (i) != TOUPPER (i))
6387      exit(2);
6388  exit (0);
6389}
6390_ACEOF
6391rm -f conftest$ac_exeext
6392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6393  (eval $ac_link) 2>&5
6394  ac_status=$?
6395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398  (eval $ac_try) 2>&5
6399  ac_status=$?
6400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401  (exit $ac_status); }; }; then
6402  :
6403else
6404  echo "$as_me: program exited with status $ac_status" >&5
6405echo "$as_me: failed program was:" >&5
6406sed 's/^/| /' conftest.$ac_ext >&5
6407
6408( exit $ac_status )
6409ac_cv_header_stdc=no
6410fi
6411rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6412fi
6413fi
6414fi
6415echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6416echo "${ECHO_T}$ac_cv_header_stdc" >&6
6417if test $ac_cv_header_stdc = yes; then
6418
6419cat >>confdefs.h <<\_ACEOF
6420#define STDC_HEADERS 1
6421_ACEOF
6422
6423fi
6424
6425# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6436                  inttypes.h stdint.h unistd.h
6437do
6438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6439echo "$as_me:$LINENO: checking for $ac_header" >&5
6440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6441if eval "test \"\${$as_ac_Header+set}\" = set"; then
6442  echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444  cat >conftest.$ac_ext <<_ACEOF
6445/* confdefs.h.  */
6446_ACEOF
6447cat confdefs.h >>conftest.$ac_ext
6448cat >>conftest.$ac_ext <<_ACEOF
6449/* end confdefs.h.  */
6450$ac_includes_default
6451
6452#include <$ac_header>
6453_ACEOF
6454rm -f conftest.$ac_objext
6455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6456  (eval $ac_compile) 2>conftest.er1
6457  ac_status=$?
6458  grep -v '^ *+' conftest.er1 >conftest.err
6459  rm -f conftest.er1
6460  cat conftest.err >&5
6461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462  (exit $ac_status); } &&
6463         { ac_try='test -z "$ac_c_werror_flag"
6464                         || test ! -s conftest.err'
6465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466  (eval $ac_try) 2>&5
6467  ac_status=$?
6468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469  (exit $ac_status); }; } &&
6470         { ac_try='test -s conftest.$ac_objext'
6471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472  (eval $ac_try) 2>&5
6473  ac_status=$?
6474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475  (exit $ac_status); }; }; then
6476  eval "$as_ac_Header=yes"
6477else
6478  echo "$as_me: failed program was:" >&5
6479sed 's/^/| /' conftest.$ac_ext >&5
6480
6481eval "$as_ac_Header=no"
6482fi
6483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6484fi
6485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6487if test `eval echo '${'$as_ac_Header'}'` = yes; then
6488  cat >>confdefs.h <<_ACEOF
6489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6490_ACEOF
6491
6492fi
6493
6494done
6495
6496
6497
6498for ac_header in dlfcn.h
6499do
6500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502  echo "$as_me:$LINENO: checking for $ac_header" >&5
6503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6504if eval "test \"\${$as_ac_Header+set}\" = set"; then
6505  echo $ECHO_N "(cached) $ECHO_C" >&6
6506fi
6507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6508echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6509else
6510  # Is the header compilable?
6511echo "$as_me:$LINENO: checking $ac_header usability" >&5
6512echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6513cat >conftest.$ac_ext <<_ACEOF
6514/* confdefs.h.  */
6515_ACEOF
6516cat confdefs.h >>conftest.$ac_ext
6517cat >>conftest.$ac_ext <<_ACEOF
6518/* end confdefs.h.  */
6519$ac_includes_default
6520#include <$ac_header>
6521_ACEOF
6522rm -f conftest.$ac_objext
6523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524  (eval $ac_compile) 2>conftest.er1
6525  ac_status=$?
6526  grep -v '^ *+' conftest.er1 >conftest.err
6527  rm -f conftest.er1
6528  cat conftest.err >&5
6529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530  (exit $ac_status); } &&
6531         { ac_try='test -z "$ac_c_werror_flag"
6532                         || test ! -s conftest.err'
6533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534  (eval $ac_try) 2>&5
6535  ac_status=$?
6536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537  (exit $ac_status); }; } &&
6538         { ac_try='test -s conftest.$ac_objext'
6539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540  (eval $ac_try) 2>&5
6541  ac_status=$?
6542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543  (exit $ac_status); }; }; then
6544  ac_header_compiler=yes
6545else
6546  echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549ac_header_compiler=no
6550fi
6551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6552echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6553echo "${ECHO_T}$ac_header_compiler" >&6
6554
6555# Is the header present?
6556echo "$as_me:$LINENO: checking $ac_header presence" >&5
6557echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6558cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h.  */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h.  */
6564#include <$ac_header>
6565_ACEOF
6566if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6567  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6568  ac_status=$?
6569  grep -v '^ *+' conftest.er1 >conftest.err
6570  rm -f conftest.er1
6571  cat conftest.err >&5
6572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573  (exit $ac_status); } >/dev/null; then
6574  if test -s conftest.err; then
6575    ac_cpp_err=$ac_c_preproc_warn_flag
6576    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6577  else
6578    ac_cpp_err=
6579  fi
6580else
6581  ac_cpp_err=yes
6582fi
6583if test -z "$ac_cpp_err"; then
6584  ac_header_preproc=yes
6585else
6586  echo "$as_me: failed program was:" >&5
6587sed 's/^/| /' conftest.$ac_ext >&5
6588
6589  ac_header_preproc=no
6590fi
6591rm -f conftest.err conftest.$ac_ext
6592echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6593echo "${ECHO_T}$ac_header_preproc" >&6
6594
6595# So?  What about this header?
6596case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6597  yes:no: )
6598    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6599echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6600    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6601echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6602    ac_header_preproc=yes
6603    ;;
6604  no:yes:* )
6605    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6606echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6607    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6608echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6609    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6610echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6611    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6612echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6613    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6614echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6615    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6616echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6617    (
6618      cat <<\_ASBOX
6619## --------------------------------------------------------------- ##
6620## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6621## --------------------------------------------------------------- ##
6622_ASBOX
6623    ) |
6624      sed "s/^/$as_me: WARNING:     /" >&2
6625    ;;
6626esac
6627echo "$as_me:$LINENO: checking for $ac_header" >&5
6628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6629if eval "test \"\${$as_ac_Header+set}\" = set"; then
6630  echo $ECHO_N "(cached) $ECHO_C" >&6
6631else
6632  eval "$as_ac_Header=\$ac_header_preproc"
6633fi
6634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6636
6637fi
6638if test `eval echo '${'$as_ac_Header'}'` = yes; then
6639  cat >>confdefs.h <<_ACEOF
6640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6641_ACEOF
6642
6643fi
6644
6645done
6646
6647
6648
6649if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6650    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6651    (test "X$CXX" != "Xg++"))) ; then
6652  ac_ext=cc
6653ac_cpp='$CXXCPP $CPPFLAGS'
6654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6657echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6658echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6659if test -z "$CXXCPP"; then
6660  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6661  echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663      # Double quotes because CXXCPP needs to be expanded
6664    for CXXCPP in "$CXX -E" "/lib/cpp"
6665    do
6666      ac_preproc_ok=false
6667for ac_cxx_preproc_warn_flag in '' yes
6668do
6669  # Use a header file that comes with gcc, so configuring glibc
6670  # with a fresh cross-compiler works.
6671  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6672  # <limits.h> exists even on freestanding compilers.
6673  # On the NeXT, cc -E runs the code through the compiler's parser,
6674  # not just through cpp. "Syntax error" is here to catch this case.
6675  cat >conftest.$ac_ext <<_ACEOF
6676/* confdefs.h.  */
6677_ACEOF
6678cat confdefs.h >>conftest.$ac_ext
6679cat >>conftest.$ac_ext <<_ACEOF
6680/* end confdefs.h.  */
6681#ifdef __STDC__
6682# include <limits.h>
6683#else
6684# include <assert.h>
6685#endif
6686                     Syntax error
6687_ACEOF
6688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6689  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6690  ac_status=$?
6691  grep -v '^ *+' conftest.er1 >conftest.err
6692  rm -f conftest.er1
6693  cat conftest.err >&5
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); } >/dev/null; then
6696  if test -s conftest.err; then
6697    ac_cpp_err=$ac_cxx_preproc_warn_flag
6698    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6699  else
6700    ac_cpp_err=
6701  fi
6702else
6703  ac_cpp_err=yes
6704fi
6705if test -z "$ac_cpp_err"; then
6706  :
6707else
6708  echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711  # Broken: fails on valid input.
6712continue
6713fi
6714rm -f conftest.err conftest.$ac_ext
6715
6716  # OK, works on sane cases.  Now check whether non-existent headers
6717  # can be detected and how.
6718  cat >conftest.$ac_ext <<_ACEOF
6719/* confdefs.h.  */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h.  */
6724#include <ac_nonexistent.h>
6725_ACEOF
6726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6727  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6728  ac_status=$?
6729  grep -v '^ *+' conftest.er1 >conftest.err
6730  rm -f conftest.er1
6731  cat conftest.err >&5
6732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); } >/dev/null; then
6734  if test -s conftest.err; then
6735    ac_cpp_err=$ac_cxx_preproc_warn_flag
6736    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6737  else
6738    ac_cpp_err=
6739  fi
6740else
6741  ac_cpp_err=yes
6742fi
6743if test -z "$ac_cpp_err"; then
6744  # Broken: success on invalid input.
6745continue
6746else
6747  echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
6750  # Passes both tests.
6751ac_preproc_ok=:
6752break
6753fi
6754rm -f conftest.err conftest.$ac_ext
6755
6756done
6757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6758rm -f conftest.err conftest.$ac_ext
6759if $ac_preproc_ok; then
6760  break
6761fi
6762
6763    done
6764    ac_cv_prog_CXXCPP=$CXXCPP
6765
6766fi
6767  CXXCPP=$ac_cv_prog_CXXCPP
6768else
6769  ac_cv_prog_CXXCPP=$CXXCPP
6770fi
6771echo "$as_me:$LINENO: result: $CXXCPP" >&5
6772echo "${ECHO_T}$CXXCPP" >&6
6773ac_preproc_ok=false
6774for ac_cxx_preproc_warn_flag in '' yes
6775do
6776  # Use a header file that comes with gcc, so configuring glibc
6777  # with a fresh cross-compiler works.
6778  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6779  # <limits.h> exists even on freestanding compilers.
6780  # On the NeXT, cc -E runs the code through the compiler's parser,
6781  # not just through cpp. "Syntax error" is here to catch this case.
6782  cat >conftest.$ac_ext <<_ACEOF
6783/* confdefs.h.  */
6784_ACEOF
6785cat confdefs.h >>conftest.$ac_ext
6786cat >>conftest.$ac_ext <<_ACEOF
6787/* end confdefs.h.  */
6788#ifdef __STDC__
6789# include <limits.h>
6790#else
6791# include <assert.h>
6792#endif
6793                     Syntax error
6794_ACEOF
6795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6796  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6797  ac_status=$?
6798  grep -v '^ *+' conftest.er1 >conftest.err
6799  rm -f conftest.er1
6800  cat conftest.err >&5
6801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802  (exit $ac_status); } >/dev/null; then
6803  if test -s conftest.err; then
6804    ac_cpp_err=$ac_cxx_preproc_warn_flag
6805    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6806  else
6807    ac_cpp_err=
6808  fi
6809else
6810  ac_cpp_err=yes
6811fi
6812if test -z "$ac_cpp_err"; then
6813  :
6814else
6815  echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
6818  # Broken: fails on valid input.
6819continue
6820fi
6821rm -f conftest.err conftest.$ac_ext
6822
6823  # OK, works on sane cases.  Now check whether non-existent headers
6824  # can be detected and how.
6825  cat >conftest.$ac_ext <<_ACEOF
6826/* confdefs.h.  */
6827_ACEOF
6828cat confdefs.h >>conftest.$ac_ext
6829cat >>conftest.$ac_ext <<_ACEOF
6830/* end confdefs.h.  */
6831#include <ac_nonexistent.h>
6832_ACEOF
6833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6834  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6835  ac_status=$?
6836  grep -v '^ *+' conftest.er1 >conftest.err
6837  rm -f conftest.er1
6838  cat conftest.err >&5
6839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840  (exit $ac_status); } >/dev/null; then
6841  if test -s conftest.err; then
6842    ac_cpp_err=$ac_cxx_preproc_warn_flag
6843    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6844  else
6845    ac_cpp_err=
6846  fi
6847else
6848  ac_cpp_err=yes
6849fi
6850if test -z "$ac_cpp_err"; then
6851  # Broken: success on invalid input.
6852continue
6853else
6854  echo "$as_me: failed program was:" >&5
6855sed 's/^/| /' conftest.$ac_ext >&5
6856
6857  # Passes both tests.
6858ac_preproc_ok=:
6859break
6860fi
6861rm -f conftest.err conftest.$ac_ext
6862
6863done
6864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6865rm -f conftest.err conftest.$ac_ext
6866if $ac_preproc_ok; then
6867  :
6868else
6869  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6870See \`config.log' for more details." >&5
6871echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6872See \`config.log' for more details." >&2;}
6873   { (exit 1); exit 1; }; }
6874fi
6875
6876ac_ext=cc
6877ac_cpp='$CXXCPP $CPPFLAGS'
6878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6881
6882fi
6883
6884ac_ext=f
6885ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6886ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6888if test -n "$ac_tool_prefix"; then
6889  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6890  do
6891    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6893echo "$as_me:$LINENO: checking for $ac_word" >&5
6894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6895if test "${ac_cv_prog_F77+set}" = set; then
6896  echo $ECHO_N "(cached) $ECHO_C" >&6
6897else
6898  if test -n "$F77"; then
6899  ac_cv_prog_F77="$F77" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904  IFS=$as_save_IFS
6905  test -z "$as_dir" && as_dir=.
6906  for ac_exec_ext in '' $ac_executable_extensions; do
6907  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6909    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910    break 2
6911  fi
6912done
6913done
6914
6915fi
6916fi
6917F77=$ac_cv_prog_F77
6918if test -n "$F77"; then
6919  echo "$as_me:$LINENO: result: $F77" >&5
6920echo "${ECHO_T}$F77" >&6
6921else
6922  echo "$as_me:$LINENO: result: no" >&5
6923echo "${ECHO_T}no" >&6
6924fi
6925
6926    test -n "$F77" && break
6927  done
6928fi
6929if test -z "$F77"; then
6930  ac_ct_F77=$F77
6931  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6932do
6933  # Extract the first word of "$ac_prog", so it can be a program name with args.
6934set dummy $ac_prog; ac_word=$2
6935echo "$as_me:$LINENO: checking for $ac_word" >&5
6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6937if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6938  echo $ECHO_N "(cached) $ECHO_C" >&6
6939else
6940  if test -n "$ac_ct_F77"; then
6941  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6942else
6943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944for as_dir in $PATH
6945do
6946  IFS=$as_save_IFS
6947  test -z "$as_dir" && as_dir=.
6948  for ac_exec_ext in '' $ac_executable_extensions; do
6949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950    ac_cv_prog_ac_ct_F77="$ac_prog"
6951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6952    break 2
6953  fi
6954done
6955done
6956
6957fi
6958fi
6959ac_ct_F77=$ac_cv_prog_ac_ct_F77
6960if test -n "$ac_ct_F77"; then
6961  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6962echo "${ECHO_T}$ac_ct_F77" >&6
6963else
6964  echo "$as_me:$LINENO: result: no" >&5
6965echo "${ECHO_T}no" >&6
6966fi
6967
6968  test -n "$ac_ct_F77" && break
6969done
6970
6971  F77=$ac_ct_F77
6972fi
6973
6974
6975# Provide some information about the compiler.
6976echo "$as_me:6976:" \
6977     "checking for Fortran 77 compiler version" >&5
6978ac_compiler=`set X $ac_compile; echo $2`
6979{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6980  (eval $ac_compiler --version </dev/null >&5) 2>&5
6981  ac_status=$?
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); }
6984{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6985  (eval $ac_compiler -v </dev/null >&5) 2>&5
6986  ac_status=$?
6987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988  (exit $ac_status); }
6989{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6990  (eval $ac_compiler -V </dev/null >&5) 2>&5
6991  ac_status=$?
6992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993  (exit $ac_status); }
6994rm -f a.out
6995
6996# If we don't use `.F' as extension, the preprocessor is not run on the
6997# input file.  (Note that this only needs to work for GNU compilers.)
6998ac_save_ext=$ac_ext
6999ac_ext=F
7000echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7001echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7002if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7003  echo $ECHO_N "(cached) $ECHO_C" >&6
7004else
7005  cat >conftest.$ac_ext <<_ACEOF
7006      program main
7007#ifndef __GNUC__
7008       choke me
7009#endif
7010
7011      end
7012_ACEOF
7013rm -f conftest.$ac_objext
7014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015  (eval $ac_compile) 2>conftest.er1
7016  ac_status=$?
7017  grep -v '^ *+' conftest.er1 >conftest.err
7018  rm -f conftest.er1
7019  cat conftest.err >&5
7020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021  (exit $ac_status); } &&
7022         { ac_try='test -z "$ac_f77_werror_flag"
7023                         || test ! -s conftest.err'
7024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025  (eval $ac_try) 2>&5
7026  ac_status=$?
7027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); }; } &&
7029         { ac_try='test -s conftest.$ac_objext'
7030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031  (eval $ac_try) 2>&5
7032  ac_status=$?
7033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034  (exit $ac_status); }; }; then
7035  ac_compiler_gnu=yes
7036else
7037  echo "$as_me: failed program was:" >&5
7038sed 's/^/| /' conftest.$ac_ext >&5
7039
7040ac_compiler_gnu=no
7041fi
7042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7044
7045fi
7046echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7047echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7048ac_ext=$ac_save_ext
7049ac_test_FFLAGS=${FFLAGS+set}
7050ac_save_FFLAGS=$FFLAGS
7051FFLAGS=
7052echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7053echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7054if test "${ac_cv_prog_f77_g+set}" = set; then
7055  echo $ECHO_N "(cached) $ECHO_C" >&6
7056else
7057  FFLAGS=-g
7058cat >conftest.$ac_ext <<_ACEOF
7059      program main
7060
7061      end
7062_ACEOF
7063rm -f conftest.$ac_objext
7064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065  (eval $ac_compile) 2>conftest.er1
7066  ac_status=$?
7067  grep -v '^ *+' conftest.er1 >conftest.err
7068  rm -f conftest.er1
7069  cat conftest.err >&5
7070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071  (exit $ac_status); } &&
7072         { ac_try='test -z "$ac_f77_werror_flag"
7073                         || test ! -s conftest.err'
7074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075  (eval $ac_try) 2>&5
7076  ac_status=$?
7077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078  (exit $ac_status); }; } &&
7079         { ac_try='test -s conftest.$ac_objext'
7080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081  (eval $ac_try) 2>&5
7082  ac_status=$?
7083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084  (exit $ac_status); }; }; then
7085  ac_cv_prog_f77_g=yes
7086else
7087  echo "$as_me: failed program was:" >&5
7088sed 's/^/| /' conftest.$ac_ext >&5
7089
7090ac_cv_prog_f77_g=no
7091fi
7092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7093
7094fi
7095echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7096echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7097if test "$ac_test_FFLAGS" = set; then
7098  FFLAGS=$ac_save_FFLAGS
7099elif test $ac_cv_prog_f77_g = yes; then
7100  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7101    FFLAGS="-g -O2"
7102  else
7103    FFLAGS="-g"
7104  fi
7105else
7106  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7107    FFLAGS="-O2"
7108  else
7109    FFLAGS=
7110  fi
7111fi
7112
7113G77=`test $ac_compiler_gnu = yes && echo yes`
7114ac_ext=c
7115ac_cpp='$CPP $CPPFLAGS'
7116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118ac_compiler_gnu=$ac_cv_c_compiler_gnu
7119
7120
7121
7122# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7123
7124# find the maximum length of command line arguments
7125echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7126echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7127if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7128  echo $ECHO_N "(cached) $ECHO_C" >&6
7129else
7130    i=0
7131  teststring="ABCD"
7132
7133  case $build_os in
7134  msdosdjgpp*)
7135    # On DJGPP, this test can blow up pretty badly due to problems in libc
7136    # (any single argument exceeding 2000 bytes causes a buffer overrun
7137    # during glob expansion).  Even if it were fixed, the result of this
7138    # check would be larger than it should be.
7139    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7140    ;;
7141
7142  gnu*)
7143    # Under GNU Hurd, this test is not required because there is
7144    # no limit to the length of command line arguments.
7145    # Libtool will interpret -1 as no limit whatsoever
7146    lt_cv_sys_max_cmd_len=-1;
7147    ;;
7148
7149  cygwin* | mingw*)
7150    # On Win9x/ME, this test blows up -- it succeeds, but takes
7151    # about 5 minutes as the teststring grows exponentially.
7152    # Worse, since 9x/ME are not pre-emptively multitasking,
7153    # you end up with a "frozen" computer, even though with patience
7154    # the test eventually succeeds (with a max line length of 256k).
7155    # Instead, let's just punt: use the minimum linelength reported by
7156    # all of the supported platforms: 8192 (on NT/2K/XP).
7157    lt_cv_sys_max_cmd_len=8192;
7158    ;;
7159
7160  amigaos*)
7161    # On AmigaOS with pdksh, this test takes hours, literally.
7162    # So we just punt and use a minimum line length of 8192.
7163    lt_cv_sys_max_cmd_len=8192;
7164    ;;
7165
7166  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7167    # This has been around since 386BSD, at least.  Likely further.
7168    if test -x /sbin/sysctl; then
7169      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7170    elif test -x /usr/sbin/sysctl; then
7171      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7172    else
7173      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7174    fi
7175    # And add a safety zone
7176    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7177    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7178    ;;
7179
7180  interix*)
7181    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7182    lt_cv_sys_max_cmd_len=196608
7183    ;;
7184
7185  osf*)
7186    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7187    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7188    # nice to cause kernel panics so lets avoid the loop below.
7189    # First set a reasonable default.
7190    lt_cv_sys_max_cmd_len=16384
7191    #
7192    if test -x /sbin/sysconfig; then
7193      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7194        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7195      esac
7196    fi
7197    ;;
7198  sco3.2v5*)
7199    lt_cv_sys_max_cmd_len=102400
7200    ;;
7201  sysv5* | sco5v6* | sysv4.2uw2*)
7202    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7203    if test -n "$kargmax"; then
7204      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7205    else
7206      lt_cv_sys_max_cmd_len=32768
7207    fi
7208    ;;
7209  *)
7210    # If test is not a shell built-in, we'll probably end up computing a
7211    # maximum length that is only half of the actual maximum length, but
7212    # we can't tell.
7213    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7214    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7215               = "XX$teststring") >/dev/null 2>&1 &&
7216            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7217            lt_cv_sys_max_cmd_len=$new_result &&
7218            test $i != 17 # 1/2 MB should be enough
7219    do
7220      i=`expr $i + 1`
7221      teststring=$teststring$teststring
7222    done
7223    teststring=
7224    # Add a significant safety factor because C++ compilers can tack on massive
7225    # amounts of additional arguments before passing them to the linker.
7226    # It appears as though 1/2 is a usable value.
7227    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7228    ;;
7229  esac
7230
7231fi
7232
7233if test -n $lt_cv_sys_max_cmd_len ; then
7234  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7235echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7236else
7237  echo "$as_me:$LINENO: result: none" >&5
7238echo "${ECHO_T}none" >&6
7239fi
7240
7241
7242
7243
7244# Check for command to grab the raw symbol name followed by C symbol from nm.
7245echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7246echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7247if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7248  echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250
7251# These are sane defaults that work on at least a few old systems.
7252# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7253
7254# Character class describing NM global symbol codes.
7255symcode='[BCDEGRST]'
7256
7257# Regexp to match symbols that can be accessed directly from C.
7258sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7259
7260# Transform an extracted symbol line into a proper C declaration
7261lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7262
7263# Transform an extracted symbol line into symbol name and symbol address
7264lt_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'"
7265
7266# Define system-specific variables.
7267case $host_os in
7268aix*)
7269  symcode='[BCDT]'
7270  ;;
7271cygwin* | mingw* | pw32*)
7272  symcode='[ABCDGISTW]'
7273  ;;
7274hpux*) # Its linker distinguishes data from code symbols
7275  if test "$host_cpu" = ia64; then
7276    symcode='[ABCDEGRST]'
7277  fi
7278  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7279  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'"
7280  ;;
7281linux*)
7282  if test "$host_cpu" = ia64; then
7283    symcode='[ABCDGIRSTW]'
7284    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7285    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'"
7286  fi
7287  ;;
7288irix* | nonstopux*)
7289  symcode='[BCDEGRST]'
7290  ;;
7291osf*)
7292  symcode='[BCDEGQRST]'
7293  ;;
7294solaris*)
7295  symcode='[BDRT]'
7296  ;;
7297sco3.2v5*)
7298  symcode='[DT]'
7299  ;;
7300sysv4.2uw2*)
7301  symcode='[DT]'
7302  ;;
7303sysv5* | sco5v6* | unixware* | OpenUNIX*)
7304  symcode='[ABDT]'
7305  ;;
7306sysv4)
7307  symcode='[DFNSTU]'
7308  ;;
7309esac
7310
7311# Handle CRLF in mingw tool chain
7312opt_cr=
7313case $build_os in
7314mingw*)
7315  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7316  ;;
7317esac
7318
7319# If we're using GNU nm, then use its standard symbol codes.
7320case `$NM -V 2>&1` in
7321*GNU* | *'with BFD'*)
7322  symcode='[ABCDGIRSTW]' ;;
7323esac
7324
7325# Try without a prefix undercore, then with it.
7326for ac_symprfx in "" "_"; do
7327
7328  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7329  symxfrm="\\1 $ac_symprfx\\2 \\2"
7330
7331  # Write the raw and C identifiers.
7332  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7333
7334  # Check to see that the pipe works correctly.
7335  pipe_works=no
7336
7337  rm -f conftest*
7338  cat > conftest.$ac_ext <<EOF
7339#ifdef __cplusplus
7340extern "C" {
7341#endif
7342char nm_test_var;
7343void nm_test_func(){}
7344#ifdef __cplusplus
7345}
7346#endif
7347int main(){nm_test_var='a';nm_test_func();return(0);}
7348EOF
7349
7350  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351  (eval $ac_compile) 2>&5
7352  ac_status=$?
7353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354  (exit $ac_status); }; then
7355    # Now try to grab the symbols.
7356    nlist=conftest.nm
7357    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7358  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7359  ac_status=$?
7360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361  (exit $ac_status); } && test -s "$nlist"; then
7362      # Try sorting and uniquifying the output.
7363      if sort "$nlist" | uniq > "$nlist"T; then
7364        mv -f "$nlist"T "$nlist"
7365      else
7366        rm -f "$nlist"T
7367      fi
7368
7369      # Make sure that we snagged all the symbols we need.
7370      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7371        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7372          cat <<EOF > conftest.$ac_ext
7373#ifdef __cplusplus
7374extern "C" {
7375#endif
7376
7377EOF
7378          # Now generate the symbol file.
7379          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7380
7381          cat <<EOF >> conftest.$ac_ext
7382#if defined (__STDC__) && __STDC__
7383# define lt_ptr_t void *
7384#else
7385# define lt_ptr_t char *
7386# define const
7387#endif
7388
7389/* The mapping between symbol names and symbols. */
7390const struct {
7391  const char *name;
7392  lt_ptr_t address;
7393}
7394lt_preloaded_symbols[] =
7395{
7396EOF
7397          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7398          cat <<\EOF >> conftest.$ac_ext
7399  {0, (lt_ptr_t) 0}
7400};
7401
7402#ifdef __cplusplus
7403}
7404#endif
7405EOF
7406          # Now try linking the two files.
7407          mv conftest.$ac_objext conftstm.$ac_objext
7408          lt_save_LIBS="$LIBS"
7409          lt_save_CFLAGS="$CFLAGS"
7410          LIBS="conftstm.$ac_objext"
7411          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7412          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413  (eval $ac_link) 2>&5
7414  ac_status=$?
7415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7417            pipe_works=yes
7418          fi
7419          LIBS="$lt_save_LIBS"
7420          CFLAGS="$lt_save_CFLAGS"
7421        else
7422          echo "cannot find nm_test_func in $nlist" >&5
7423        fi
7424      else
7425        echo "cannot find nm_test_var in $nlist" >&5
7426      fi
7427    else
7428      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7429    fi
7430  else
7431    echo "$progname: failed program was:" >&5
7432    cat conftest.$ac_ext >&5
7433  fi
7434  rm -f conftest* conftst*
7435
7436  # Do not use the global_symbol_pipe unless it works.
7437  if test "$pipe_works" = yes; then
7438    break
7439  else
7440    lt_cv_sys_global_symbol_pipe=
7441  fi
7442done
7443
7444fi
7445
7446if test -z "$lt_cv_sys_global_symbol_pipe"; then
7447  lt_cv_sys_global_symbol_to_cdecl=
7448fi
7449if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7450  echo "$as_me:$LINENO: result: failed" >&5
7451echo "${ECHO_T}failed" >&6
7452else
7453  echo "$as_me:$LINENO: result: ok" >&5
7454echo "${ECHO_T}ok" >&6
7455fi
7456
7457echo "$as_me:$LINENO: checking for objdir" >&5
7458echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7459if test "${lt_cv_objdir+set}" = set; then
7460  echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462  rm -f .libs 2>/dev/null
7463mkdir .libs 2>/dev/null
7464if test -d .libs; then
7465  lt_cv_objdir=.libs
7466else
7467  # MS-DOS does not allow filenames that begin with a dot.
7468  lt_cv_objdir=_libs
7469fi
7470rmdir .libs 2>/dev/null
7471fi
7472echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7473echo "${ECHO_T}$lt_cv_objdir" >&6
7474objdir=$lt_cv_objdir
7475
7476
7477
7478
7479
7480case $host_os in
7481aix3*)
7482  # AIX sometimes has problems with the GCC collect2 program.  For some
7483  # reason, if we set the COLLECT_NAMES environment variable, the problems
7484  # vanish in a puff of smoke.
7485  if test "X${COLLECT_NAMES+set}" != Xset; then
7486    COLLECT_NAMES=
7487    export COLLECT_NAMES
7488  fi
7489  ;;
7490esac
7491
7492# Sed substitution that helps us do robust quoting.  It backslashifies
7493# metacharacters that are still active within double-quoted strings.
7494Xsed='sed -e 1s/^X//'
7495sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7496
7497# Same as above, but do not quote variable references.
7498double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7499
7500# Sed substitution to delay expansion of an escaped shell variable in a
7501# double_quote_subst'ed string.
7502delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7503
7504# Sed substitution to avoid accidental globbing in evaled expressions
7505no_glob_subst='s/\*/\\\*/g'
7506
7507# Constants:
7508rm="rm -f"
7509
7510# Global variables:
7511default_ofile=libtool
7512can_build_shared=yes
7513
7514# All known linkers require a `.a' archive for static linking (except MSVC,
7515# which needs '.lib').
7516libext=a
7517ltmain="$ac_aux_dir/ltmain.sh"
7518ofile="$default_ofile"
7519with_gnu_ld="$lt_cv_prog_gnu_ld"
7520
7521if test -n "$ac_tool_prefix"; then
7522  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7523set dummy ${ac_tool_prefix}ar; ac_word=$2
7524echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7526if test "${ac_cv_prog_AR+set}" = set; then
7527  echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529  if test -n "$AR"; then
7530  ac_cv_prog_AR="$AR" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535  IFS=$as_save_IFS
7536  test -z "$as_dir" && as_dir=.
7537  for ac_exec_ext in '' $ac_executable_extensions; do
7538  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539    ac_cv_prog_AR="${ac_tool_prefix}ar"
7540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541    break 2
7542  fi
7543done
7544done
7545
7546fi
7547fi
7548AR=$ac_cv_prog_AR
7549if test -n "$AR"; then
7550  echo "$as_me:$LINENO: result: $AR" >&5
7551echo "${ECHO_T}$AR" >&6
7552else
7553  echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6
7555fi
7556
7557fi
7558if test -z "$ac_cv_prog_AR"; then
7559  ac_ct_AR=$AR
7560  # Extract the first word of "ar", so it can be a program name with args.
7561set dummy ar; ac_word=$2
7562echo "$as_me:$LINENO: checking for $ac_word" >&5
7563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7564if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7565  echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567  if test -n "$ac_ct_AR"; then
7568  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7569else
7570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571for as_dir in $PATH
7572do
7573  IFS=$as_save_IFS
7574  test -z "$as_dir" && as_dir=.
7575  for ac_exec_ext in '' $ac_executable_extensions; do
7576  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7577    ac_cv_prog_ac_ct_AR="ar"
7578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579    break 2
7580  fi
7581done
7582done
7583
7584  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7585fi
7586fi
7587ac_ct_AR=$ac_cv_prog_ac_ct_AR
7588if test -n "$ac_ct_AR"; then
7589  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7590echo "${ECHO_T}$ac_ct_AR" >&6
7591else
7592  echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6
7594fi
7595
7596  AR=$ac_ct_AR
7597else
7598  AR="$ac_cv_prog_AR"
7599fi
7600
7601if test -n "$ac_tool_prefix"; then
7602  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7603set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7604echo "$as_me:$LINENO: checking for $ac_word" >&5
7605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7606if test "${ac_cv_prog_RANLIB+set}" = set; then
7607  echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609  if test -n "$RANLIB"; then
7610  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615  IFS=$as_save_IFS
7616  test -z "$as_dir" && as_dir=.
7617  for ac_exec_ext in '' $ac_executable_extensions; do
7618  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621    break 2
7622  fi
7623done
7624done
7625
7626fi
7627fi
7628RANLIB=$ac_cv_prog_RANLIB
7629if test -n "$RANLIB"; then
7630  echo "$as_me:$LINENO: result: $RANLIB" >&5
7631echo "${ECHO_T}$RANLIB" >&6
7632else
7633  echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6
7635fi
7636
7637fi
7638if test -z "$ac_cv_prog_RANLIB"; then
7639  ac_ct_RANLIB=$RANLIB
7640  # Extract the first word of "ranlib", so it can be a program name with args.
7641set dummy ranlib; ac_word=$2
7642echo "$as_me:$LINENO: checking for $ac_word" >&5
7643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7645  echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647  if test -n "$ac_ct_RANLIB"; then
7648  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653  IFS=$as_save_IFS
7654  test -z "$as_dir" && as_dir=.
7655  for ac_exec_ext in '' $ac_executable_extensions; do
7656  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657    ac_cv_prog_ac_ct_RANLIB="ranlib"
7658    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659    break 2
7660  fi
7661done
7662done
7663
7664  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7665fi
7666fi
7667ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7668if test -n "$ac_ct_RANLIB"; then
7669  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7670echo "${ECHO_T}$ac_ct_RANLIB" >&6
7671else
7672  echo "$as_me:$LINENO: result: no" >&5
7673echo "${ECHO_T}no" >&6
7674fi
7675
7676  RANLIB=$ac_ct_RANLIB
7677else
7678  RANLIB="$ac_cv_prog_RANLIB"
7679fi
7680
7681if test -n "$ac_tool_prefix"; then
7682  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7683set dummy ${ac_tool_prefix}strip; ac_word=$2
7684echo "$as_me:$LINENO: checking for $ac_word" >&5
7685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7686if test "${ac_cv_prog_STRIP+set}" = set; then
7687  echo $ECHO_N "(cached) $ECHO_C" >&6
7688else
7689  if test -n "$STRIP"; then
7690  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7691else
7692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693for as_dir in $PATH
7694do
7695  IFS=$as_save_IFS
7696  test -z "$as_dir" && as_dir=.
7697  for ac_exec_ext in '' $ac_executable_extensions; do
7698  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7699    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701    break 2
7702  fi
7703done
7704done
7705
7706fi
7707fi
7708STRIP=$ac_cv_prog_STRIP
7709if test -n "$STRIP"; then
7710  echo "$as_me:$LINENO: result: $STRIP" >&5
7711echo "${ECHO_T}$STRIP" >&6
7712else
7713  echo "$as_me:$LINENO: result: no" >&5
7714echo "${ECHO_T}no" >&6
7715fi
7716
7717fi
7718if test -z "$ac_cv_prog_STRIP"; then
7719  ac_ct_STRIP=$STRIP
7720  # Extract the first word of "strip", so it can be a program name with args.
7721set dummy strip; ac_word=$2
7722echo "$as_me:$LINENO: checking for $ac_word" >&5
7723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7724if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7725  echo $ECHO_N "(cached) $ECHO_C" >&6
7726else
7727  if test -n "$ac_ct_STRIP"; then
7728  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7729else
7730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731for as_dir in $PATH
7732do
7733  IFS=$as_save_IFS
7734  test -z "$as_dir" && as_dir=.
7735  for ac_exec_ext in '' $ac_executable_extensions; do
7736  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7737    ac_cv_prog_ac_ct_STRIP="strip"
7738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739    break 2
7740  fi
7741done
7742done
7743
7744  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7745fi
7746fi
7747ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7748if test -n "$ac_ct_STRIP"; then
7749  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7750echo "${ECHO_T}$ac_ct_STRIP" >&6
7751else
7752  echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6
7754fi
7755
7756  STRIP=$ac_ct_STRIP
7757else
7758  STRIP="$ac_cv_prog_STRIP"
7759fi
7760
7761
7762old_CC="$CC"
7763old_CFLAGS="$CFLAGS"
7764
7765# Set sane defaults for various variables
7766test -z "$AR" && AR=ar
7767test -z "$AR_FLAGS" && AR_FLAGS=cru
7768test -z "$AS" && AS=as
7769test -z "$CC" && CC=cc
7770test -z "$LTCC" && LTCC=$CC
7771test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7772test -z "$DLLTOOL" && DLLTOOL=dlltool
7773test -z "$LD" && LD=ld
7774test -z "$LN_S" && LN_S="ln -s"
7775test -z "$MAGIC_CMD" && MAGIC_CMD=file
7776test -z "$NM" && NM=nm
7777test -z "$SED" && SED=sed
7778test -z "$OBJDUMP" && OBJDUMP=objdump
7779test -z "$RANLIB" && RANLIB=:
7780test -z "$STRIP" && STRIP=:
7781test -z "$ac_objext" && ac_objext=o
7782
7783# Determine commands to create old-style static archives.
7784old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7785old_postinstall_cmds='chmod 644 $oldlib'
7786old_postuninstall_cmds=
7787
7788if test -n "$RANLIB"; then
7789  case $host_os in
7790  openbsd*)
7791    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7792    ;;
7793  *)
7794    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7795    ;;
7796  esac
7797  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7798fi
7799
7800for cc_temp in $compiler""; do
7801  case $cc_temp in
7802    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7803    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7804    \-*) ;;
7805    *) break;;
7806  esac
7807done
7808cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7809
7810
7811# Only perform the check for file, if the check method requires it
7812case $deplibs_check_method in
7813file_magic*)
7814  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7815    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7816echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7817if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7818  echo $ECHO_N "(cached) $ECHO_C" >&6
7819else
7820  case $MAGIC_CMD in
7821[\\/*] |  ?:[\\/]*)
7822  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7823  ;;
7824*)
7825  lt_save_MAGIC_CMD="$MAGIC_CMD"
7826  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7827  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7828  for ac_dir in $ac_dummy; do
7829    IFS="$lt_save_ifs"
7830    test -z "$ac_dir" && ac_dir=.
7831    if test -f $ac_dir/${ac_tool_prefix}file; then
7832      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7833      if test -n "$file_magic_test_file"; then
7834        case $deplibs_check_method in
7835        "file_magic "*)
7836          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7837          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7838          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7839            $EGREP "$file_magic_regex" > /dev/null; then
7840            :
7841          else
7842            cat <<EOF 1>&2
7843
7844*** Warning: the command libtool uses to detect shared libraries,
7845*** $file_magic_cmd, produces output that libtool cannot recognize.
7846*** The result is that libtool may fail to recognize shared libraries
7847*** as such.  This will affect the creation of libtool libraries that
7848*** depend on shared libraries, but programs linked with such libtool
7849*** libraries will work regardless of this problem.  Nevertheless, you
7850*** may want to report the problem to your system manager and/or to
7851*** bug-libtool@gnu.org
7852
7853EOF
7854          fi ;;
7855        esac
7856      fi
7857      break
7858    fi
7859  done
7860  IFS="$lt_save_ifs"
7861  MAGIC_CMD="$lt_save_MAGIC_CMD"
7862  ;;
7863esac
7864fi
7865
7866MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7867if test -n "$MAGIC_CMD"; then
7868  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7869echo "${ECHO_T}$MAGIC_CMD" >&6
7870else
7871  echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
7873fi
7874
7875if test -z "$lt_cv_path_MAGIC_CMD"; then
7876  if test -n "$ac_tool_prefix"; then
7877    echo "$as_me:$LINENO: checking for file" >&5
7878echo $ECHO_N "checking for file... $ECHO_C" >&6
7879if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7880  echo $ECHO_N "(cached) $ECHO_C" >&6
7881else
7882  case $MAGIC_CMD in
7883[\\/*] |  ?:[\\/]*)
7884  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7885  ;;
7886*)
7887  lt_save_MAGIC_CMD="$MAGIC_CMD"
7888  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7889  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7890  for ac_dir in $ac_dummy; do
7891    IFS="$lt_save_ifs"
7892    test -z "$ac_dir" && ac_dir=.
7893    if test -f $ac_dir/file; then
7894      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7895      if test -n "$file_magic_test_file"; then
7896        case $deplibs_check_method in
7897        "file_magic "*)
7898          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7899          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7901            $EGREP "$file_magic_regex" > /dev/null; then
7902            :
7903          else
7904            cat <<EOF 1>&2
7905
7906*** Warning: the command libtool uses to detect shared libraries,
7907*** $file_magic_cmd, produces output that libtool cannot recognize.
7908*** The result is that libtool may fail to recognize shared libraries
7909*** as such.  This will affect the creation of libtool libraries that
7910*** depend on shared libraries, but programs linked with such libtool
7911*** libraries will work regardless of this problem.  Nevertheless, you
7912*** may want to report the problem to your system manager and/or to
7913*** bug-libtool@gnu.org
7914
7915EOF
7916          fi ;;
7917        esac
7918      fi
7919      break
7920    fi
7921  done
7922  IFS="$lt_save_ifs"
7923  MAGIC_CMD="$lt_save_MAGIC_CMD"
7924  ;;
7925esac
7926fi
7927
7928MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7929if test -n "$MAGIC_CMD"; then
7930  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7931echo "${ECHO_T}$MAGIC_CMD" >&6
7932else
7933  echo "$as_me:$LINENO: result: no" >&5
7934echo "${ECHO_T}no" >&6
7935fi
7936
7937  else
7938    MAGIC_CMD=:
7939  fi
7940fi
7941
7942  fi
7943  ;;
7944esac
7945
7946enable_dlopen=no
7947enable_win32_dll=no
7948
7949# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7950if test "${enable_libtool_lock+set}" = set; then
7951  enableval="$enable_libtool_lock"
7952
7953fi;
7954test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7955
7956
7957# Check whether --with-pic or --without-pic was given.
7958if test "${with_pic+set}" = set; then
7959  withval="$with_pic"
7960  pic_mode="$withval"
7961else
7962  pic_mode=default
7963fi;
7964test -z "$pic_mode" && pic_mode=default
7965
7966# Use C for the default configuration in the libtool script
7967tagname=
7968lt_save_CC="$CC"
7969ac_ext=c
7970ac_cpp='$CPP $CPPFLAGS'
7971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974
7975
7976# Source file extension for C test sources.
7977ac_ext=c
7978
7979# Object file extension for compiled C test sources.
7980objext=o
7981objext=$objext
7982
7983# Code to be used in simple compile tests
7984lt_simple_compile_test_code="int some_variable = 0;\n"
7985
7986# Code to be used in simple link tests
7987lt_simple_link_test_code='int main(){return(0);}\n'
7988
7989
7990# If no C compiler was specified, use CC.
7991LTCC=${LTCC-"$CC"}
7992
7993# If no C compiler flags were specified, use CFLAGS.
7994LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7995
7996# Allow CC to be a program name with arguments.
7997compiler=$CC
7998
7999
8000# save warnings/boilerplate of simple test code
8001ac_outfile=conftest.$ac_objext
8002printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8003eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8004_lt_compiler_boilerplate=`cat conftest.err`
8005$rm conftest*
8006
8007ac_outfile=conftest.$ac_objext
8008printf "$lt_simple_link_test_code" >conftest.$ac_ext
8009eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8010_lt_linker_boilerplate=`cat conftest.err`
8011$rm conftest*
8012
8013
8014## CAVEAT EMPTOR:
8015## There is no encapsulation within the following macros, do not change
8016## the running order or otherwise move them around unless you know exactly
8017## what you are doing...
8018
8019lt_prog_compiler_no_builtin_flag=
8020
8021if test "$GCC" = yes; then
8022  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8023
8024
8025echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8026echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8027if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8028  echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030  lt_cv_prog_compiler_rtti_exceptions=no
8031  ac_outfile=conftest.$ac_objext
8032   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8033   lt_compiler_flag="-fno-rtti -fno-exceptions"
8034   # Insert the option either (1) after the last *FLAGS variable, or
8035   # (2) before a word containing "conftest.", or (3) at the end.
8036   # Note that $ac_compile itself does not contain backslashes and begins
8037   # with a dollar sign (not a hyphen), so the echo should work correctly.
8038   # The option is referenced via a variable to avoid confusing sed.
8039   lt_compile=`echo "$ac_compile" | $SED \
8040   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8041   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8042   -e 's:$: $lt_compiler_flag:'`
8043   (eval echo "\"\$as_me:8043: $lt_compile\"" >&5)
8044   (eval "$lt_compile" 2>conftest.err)
8045   ac_status=$?
8046   cat conftest.err >&5
8047   echo "$as_me:8047: \$? = $ac_status" >&5
8048   if (exit $ac_status) && test -s "$ac_outfile"; then
8049     # The compiler can only warn and ignore the option if not recognized
8050     # So say no if there are warnings other than the usual output.
8051     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8052     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8053     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8054       lt_cv_prog_compiler_rtti_exceptions=yes
8055     fi
8056   fi
8057   $rm conftest*
8058
8059fi
8060echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8061echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8062
8063if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8064    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8065else
8066    :
8067fi
8068
8069fi
8070
8071lt_prog_compiler_wl=
8072lt_prog_compiler_pic=
8073lt_prog_compiler_static=
8074
8075echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8076echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8077
8078  if test "$GCC" = yes; then
8079    lt_prog_compiler_wl='-Wl,'
8080    lt_prog_compiler_static='-static'
8081
8082    case $host_os in
8083      aix*)
8084      # All AIX code is PIC.
8085      if test "$host_cpu" = ia64; then
8086        # AIX 5 now supports IA64 processor
8087        lt_prog_compiler_static='-Bstatic'
8088      fi
8089      ;;
8090
8091    amigaos*)
8092      # FIXME: we need at least 68020 code to build shared libraries, but
8093      # adding the `-m68020' flag to GCC prevents building anything better,
8094      # like `-m68040'.
8095      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8096      ;;
8097
8098    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8099      # PIC is the default for these OSes.
8100      ;;
8101
8102    mingw* | pw32* | os2*)
8103      # This hack is so that the source file can tell whether it is being
8104      # built for inclusion in a dll (and should export symbols for example).
8105      lt_prog_compiler_pic='-DDLL_EXPORT'
8106      ;;
8107
8108    darwin* | rhapsody*)
8109      # PIC is the default on this platform
8110      # Common symbols not allowed in MH_DYLIB files
8111      lt_prog_compiler_pic='-fno-common'
8112      ;;
8113
8114    interix3*)
8115      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8116      # Instead, we relocate shared libraries at runtime.
8117      ;;
8118
8119    msdosdjgpp*)
8120      # Just because we use GCC doesn't mean we suddenly get shared libraries
8121      # on systems that don't support them.
8122      lt_prog_compiler_can_build_shared=no
8123      enable_shared=no
8124      ;;
8125
8126    sysv4*MP*)
8127      if test -d /usr/nec; then
8128        lt_prog_compiler_pic=-Kconform_pic
8129      fi
8130      ;;
8131
8132    hpux*)
8133      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8134      # not for PA HP-UX.
8135      case $host_cpu in
8136      hppa*64*|ia64*)
8137        # +Z the default
8138        ;;
8139      *)
8140        lt_prog_compiler_pic='-fPIC'
8141        ;;
8142      esac
8143      ;;
8144
8145    *)
8146      lt_prog_compiler_pic='-fPIC'
8147      ;;
8148    esac
8149  else
8150    # PORTME Check for flag to pass linker flags through the system compiler.
8151    case $host_os in
8152    aix*)
8153      lt_prog_compiler_wl='-Wl,'
8154      if test "$host_cpu" = ia64; then
8155        # AIX 5 now supports IA64 processor
8156        lt_prog_compiler_static='-Bstatic'
8157      else
8158        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8159      fi
8160      ;;
8161      darwin*)
8162        # PIC is the default on this platform
8163        # Common symbols not allowed in MH_DYLIB files
8164       case $cc_basename in
8165         xlc*)
8166         lt_prog_compiler_pic='-qnocommon'
8167         lt_prog_compiler_wl='-Wl,'
8168         ;;
8169       esac
8170       ;;
8171
8172    mingw* | pw32* | os2*)
8173      # This hack is so that the source file can tell whether it is being
8174      # built for inclusion in a dll (and should export symbols for example).
8175      lt_prog_compiler_pic='-DDLL_EXPORT'
8176      ;;
8177
8178    hpux9* | hpux10* | hpux11*)
8179      lt_prog_compiler_wl='-Wl,'
8180      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8181      # not for PA HP-UX.
8182      case $host_cpu in
8183      hppa*64*|ia64*)
8184        # +Z the default
8185        ;;
8186      *)
8187        lt_prog_compiler_pic='+Z'
8188        ;;
8189      esac
8190      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8191      lt_prog_compiler_static='${wl}-a ${wl}archive'
8192      ;;
8193
8194    irix5* | irix6* | nonstopux*)
8195      lt_prog_compiler_wl='-Wl,'
8196      # PIC (with -KPIC) is the default.
8197      lt_prog_compiler_static='-non_shared'
8198      ;;
8199
8200    newsos6)
8201      lt_prog_compiler_pic='-KPIC'
8202      lt_prog_compiler_static='-Bstatic'
8203      ;;
8204
8205    linux*)
8206      case $cc_basename in
8207      icc* | ecc*)
8208        lt_prog_compiler_wl='-Wl,'
8209        lt_prog_compiler_pic='-KPIC'
8210        lt_prog_compiler_static='-static'
8211        ;;
8212      pgcc* | pgf77* | pgf90* | pgf95*)
8213        # Portland Group compilers (*not* the Pentium gcc compiler,
8214        # which looks to be a dead project)
8215        lt_prog_compiler_wl='-Wl,'
8216        lt_prog_compiler_pic='-fpic'
8217        lt_prog_compiler_static='-Bstatic'
8218        ;;
8219      ccc*)
8220        lt_prog_compiler_wl='-Wl,'
8221        # All Alpha code is PIC.
8222        lt_prog_compiler_static='-non_shared'
8223        ;;
8224      esac
8225      ;;
8226
8227    osf3* | osf4* | osf5*)
8228      lt_prog_compiler_wl='-Wl,'
8229      # All OSF/1 code is PIC.
8230      lt_prog_compiler_static='-non_shared'
8231      ;;
8232
8233    solaris*)
8234      lt_prog_compiler_pic='-KPIC'
8235      lt_prog_compiler_static='-Bstatic'
8236      case $cc_basename in
8237      f77* | f90* | f95*)
8238        lt_prog_compiler_wl='-Qoption ld ';;
8239      *)
8240        lt_prog_compiler_wl='-Wl,';;
8241      esac
8242      ;;
8243
8244    sunos4*)
8245      lt_prog_compiler_wl='-Qoption ld '
8246      lt_prog_compiler_pic='-PIC'
8247      lt_prog_compiler_static='-Bstatic'
8248      ;;
8249
8250    sysv4 | sysv4.2uw2* | sysv4.3*)
8251      lt_prog_compiler_wl='-Wl,'
8252      lt_prog_compiler_pic='-KPIC'
8253      lt_prog_compiler_static='-Bstatic'
8254      ;;
8255
8256    sysv4*MP*)
8257      if test -d /usr/nec ;then
8258        lt_prog_compiler_pic='-Kconform_pic'
8259        lt_prog_compiler_static='-Bstatic'
8260      fi
8261      ;;
8262
8263    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8264      lt_prog_compiler_wl='-Wl,'
8265      lt_prog_compiler_pic='-KPIC'
8266      lt_prog_compiler_static='-Bstatic'
8267      ;;
8268
8269    unicos*)
8270      lt_prog_compiler_wl='-Wl,'
8271      lt_prog_compiler_can_build_shared=no
8272      ;;
8273
8274    uts4*)
8275      lt_prog_compiler_pic='-pic'
8276      lt_prog_compiler_static='-Bstatic'
8277      ;;
8278
8279    *)
8280      lt_prog_compiler_can_build_shared=no
8281      ;;
8282    esac
8283  fi
8284
8285echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8286echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8287
8288#
8289# Check to make sure the PIC flag actually works.
8290#
8291if test -n "$lt_prog_compiler_pic"; then
8292
8293echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8294echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8295if test "${lt_prog_compiler_pic_works+set}" = set; then
8296  echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298  lt_prog_compiler_pic_works=no
8299  ac_outfile=conftest.$ac_objext
8300   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8301   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8302   # Insert the option either (1) after the last *FLAGS variable, or
8303   # (2) before a word containing "conftest.", or (3) at the end.
8304   # Note that $ac_compile itself does not contain backslashes and begins
8305   # with a dollar sign (not a hyphen), so the echo should work correctly.
8306   # The option is referenced via a variable to avoid confusing sed.
8307   lt_compile=`echo "$ac_compile" | $SED \
8308   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8309   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8310   -e 's:$: $lt_compiler_flag:'`
8311   (eval echo "\"\$as_me:8311: $lt_compile\"" >&5)
8312   (eval "$lt_compile" 2>conftest.err)
8313   ac_status=$?
8314   cat conftest.err >&5
8315   echo "$as_me:8315: \$? = $ac_status" >&5
8316   if (exit $ac_status) && test -s "$ac_outfile"; then
8317     # The compiler can only warn and ignore the option if not recognized
8318     # So say no if there are warnings other than the usual output.
8319     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8320     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8321     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8322       lt_prog_compiler_pic_works=yes
8323     fi
8324   fi
8325   $rm conftest*
8326
8327fi
8328echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8329echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8330
8331if test x"$lt_prog_compiler_pic_works" = xyes; then
8332    case $lt_prog_compiler_pic in
8333     "" | " "*) ;;
8334     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8335     esac
8336else
8337    lt_prog_compiler_pic=
8338     lt_prog_compiler_can_build_shared=no
8339fi
8340
8341fi
8342case $host_os in
8343  # For platforms which do not support PIC, -DPIC is meaningless:
8344  *djgpp*)
8345    lt_prog_compiler_pic=
8346    ;;
8347  *)
8348    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8349    ;;
8350esac
8351
8352#
8353# Check to make sure the static flag actually works.
8354#
8355wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8356echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8357echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8358if test "${lt_prog_compiler_static_works+set}" = set; then
8359  echo $ECHO_N "(cached) $ECHO_C" >&6
8360else
8361  lt_prog_compiler_static_works=no
8362   save_LDFLAGS="$LDFLAGS"
8363   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8364   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8365   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8366     # The linker can only warn and ignore the option if not recognized
8367     # So say no if there are warnings
8368     if test -s conftest.err; then
8369       # Append any errors to the config.log.
8370       cat conftest.err 1>&5
8371       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8372       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8373       if diff conftest.exp conftest.er2 >/dev/null; then
8374         lt_prog_compiler_static_works=yes
8375       fi
8376     else
8377       lt_prog_compiler_static_works=yes
8378     fi
8379   fi
8380   $rm conftest*
8381   LDFLAGS="$save_LDFLAGS"
8382
8383fi
8384echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8385echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8386
8387if test x"$lt_prog_compiler_static_works" = xyes; then
8388    :
8389else
8390    lt_prog_compiler_static=
8391fi
8392
8393
8394echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8395echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8396if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8397  echo $ECHO_N "(cached) $ECHO_C" >&6
8398else
8399  lt_cv_prog_compiler_c_o=no
8400   $rm -r conftest 2>/dev/null
8401   mkdir conftest
8402   cd conftest
8403   mkdir out
8404   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8405
8406   lt_compiler_flag="-o out/conftest2.$ac_objext"
8407   # Insert the option either (1) after the last *FLAGS variable, or
8408   # (2) before a word containing "conftest.", or (3) at the end.
8409   # Note that $ac_compile itself does not contain backslashes and begins
8410   # with a dollar sign (not a hyphen), so the echo should work correctly.
8411   lt_compile=`echo "$ac_compile" | $SED \
8412   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8413   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8414   -e 's:$: $lt_compiler_flag:'`
8415   (eval echo "\"\$as_me:8415: $lt_compile\"" >&5)
8416   (eval "$lt_compile" 2>out/conftest.err)
8417   ac_status=$?
8418   cat out/conftest.err >&5
8419   echo "$as_me:8419: \$? = $ac_status" >&5
8420   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8421   then
8422     # The compiler can only warn and ignore the option if not recognized
8423     # So say no if there are warnings
8424     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8425     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8426     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8427       lt_cv_prog_compiler_c_o=yes
8428     fi
8429   fi
8430   chmod u+w . 2>&5
8431   $rm conftest*
8432   # SGI C++ compiler will create directory out/ii_files/ for
8433   # template instantiation
8434   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8435   $rm out/* && rmdir out
8436   cd ..
8437   rmdir conftest
8438   $rm conftest*
8439
8440fi
8441echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8442echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8443
8444
8445hard_links="nottested"
8446if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8447  # do not overwrite the value of need_locks provided by the user
8448  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8449echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8450  hard_links=yes
8451  $rm conftest*
8452  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8453  touch conftest.a
8454  ln conftest.a conftest.b 2>&5 || hard_links=no
8455  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456  echo "$as_me:$LINENO: result: $hard_links" >&5
8457echo "${ECHO_T}$hard_links" >&6
8458  if test "$hard_links" = no; then
8459    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8460echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8461    need_locks=warn
8462  fi
8463else
8464  need_locks=no
8465fi
8466
8467echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8468echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8469
8470  runpath_var=
8471  allow_undefined_flag=
8472  enable_shared_with_static_runtimes=no
8473  archive_cmds=
8474  archive_expsym_cmds=
8475  old_archive_From_new_cmds=
8476  old_archive_from_expsyms_cmds=
8477  export_dynamic_flag_spec=
8478  whole_archive_flag_spec=
8479  thread_safe_flag_spec=
8480  hardcode_libdir_flag_spec=
8481  hardcode_libdir_flag_spec_ld=
8482  hardcode_libdir_separator=
8483  hardcode_direct=no
8484  hardcode_minus_L=no
8485  hardcode_shlibpath_var=unsupported
8486  link_all_deplibs=unknown
8487  hardcode_automatic=no
8488  module_cmds=
8489  module_expsym_cmds=
8490  always_export_symbols=no
8491  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8492  # include_expsyms should be a list of space-separated symbols to be *always*
8493  # included in the symbol list
8494  include_expsyms=
8495  # exclude_expsyms can be an extended regexp of symbols to exclude
8496  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8497  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8498  # as well as any symbol that contains `d'.
8499  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8500  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8501  # platforms (ab)use it in PIC code, but their linkers get confused if
8502  # the symbol is explicitly referenced.  Since portable code cannot
8503  # rely on this symbol name, it's probably fine to never include it in
8504  # preloaded symbol tables.
8505  extract_expsyms_cmds=
8506  # Just being paranoid about ensuring that cc_basename is set.
8507  for cc_temp in $compiler""; do
8508  case $cc_temp in
8509    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8510    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8511    \-*) ;;
8512    *) break;;
8513  esac
8514done
8515cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8516
8517  case $host_os in
8518  cygwin* | mingw* | pw32*)
8519    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8520    # When not using gcc, we currently assume that we are using
8521    # Microsoft Visual C++.
8522    if test "$GCC" != yes; then
8523      with_gnu_ld=no
8524    fi
8525    ;;
8526  interix*)
8527    # we just hope/assume this is gcc and not c89 (= MSVC++)
8528    with_gnu_ld=yes
8529    ;;
8530  openbsd*)
8531    with_gnu_ld=no
8532    ;;
8533  esac
8534
8535  ld_shlibs=yes
8536  if test "$with_gnu_ld" = yes; then
8537    # If archive_cmds runs LD, not CC, wlarc should be empty
8538    wlarc='${wl}'
8539
8540    # Set some defaults for GNU ld with shared library support. These
8541    # are reset later if shared libraries are not supported. Putting them
8542    # here allows them to be overridden if necessary.
8543    runpath_var=LD_RUN_PATH
8544    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8545    export_dynamic_flag_spec='${wl}--export-dynamic'
8546    # ancient GNU ld didn't support --whole-archive et. al.
8547    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8548        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8549      else
8550        whole_archive_flag_spec=
8551    fi
8552    supports_anon_versioning=no
8553    case `$LD -v 2>/dev/null` in
8554      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8555      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8556      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8557      *\ 2.11.*) ;; # other 2.11 versions
8558      *) supports_anon_versioning=yes ;;
8559    esac
8560
8561    # See if GNU ld supports shared libraries.
8562    case $host_os in
8563    aix3* | aix4* | aix5*)
8564      # On AIX/PPC, the GNU linker is very broken
8565      if test "$host_cpu" != ia64; then
8566        ld_shlibs=no
8567        cat <<EOF 1>&2
8568
8569*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8570*** to be unable to reliably create shared libraries on AIX.
8571*** Therefore, libtool is disabling shared libraries support.  If you
8572*** really care for shared libraries, you may want to modify your PATH
8573*** so that a non-GNU linker is found, and then restart.
8574
8575EOF
8576      fi
8577      ;;
8578
8579    amigaos*)
8580      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)'
8581      hardcode_libdir_flag_spec='-L$libdir'
8582      hardcode_minus_L=yes
8583
8584      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8585      # that the semantics of dynamic libraries on AmigaOS, at least up
8586      # to version 4, is to share data among multiple programs linked
8587      # with the same dynamic library.  Since this doesn't match the
8588      # behavior of shared libraries on other platforms, we can't use
8589      # them.
8590      ld_shlibs=no
8591      ;;
8592
8593    beos*)
8594      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8595        allow_undefined_flag=unsupported
8596        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8597        # support --undefined.  This deserves some investigation.  FIXME
8598        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599      else
8600        ld_shlibs=no
8601      fi
8602      ;;
8603
8604    cygwin* | mingw* | pw32*)
8605      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8606      # as there is no search path for DLLs.
8607      hardcode_libdir_flag_spec='-L$libdir'
8608      allow_undefined_flag=unsupported
8609      always_export_symbols=no
8610      enable_shared_with_static_runtimes=yes
8611      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8612
8613      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8614        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8615        # If the export-symbols file already is a .def file (1st line
8616        # is EXPORTS), use it as is; otherwise, prepend...
8617        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8618          cp $export_symbols $output_objdir/$soname.def;
8619        else
8620          echo EXPORTS > $output_objdir/$soname.def;
8621          cat $export_symbols >> $output_objdir/$soname.def;
8622        fi~
8623        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8624      else
8625        ld_shlibs=no
8626      fi
8627      ;;
8628
8629    interix3*)
8630      hardcode_direct=no
8631      hardcode_shlibpath_var=no
8632      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633      export_dynamic_flag_spec='${wl}-E'
8634      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8635      # Instead, shared libraries are loaded at an image base (0x10000000 by
8636      # default) and relocated if they conflict, which is a slow very memory
8637      # consuming and fragmenting process.  To avoid this, we pick a random,
8638      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8639      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8640      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8641      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'
8642      ;;
8643
8644    linux*)
8645      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8646        tmp_addflag=
8647        case $cc_basename,$host_cpu in
8648        pgcc*)                          # Portland Group C compiler
8649          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'
8650          tmp_addflag=' $pic_flag'
8651          ;;
8652        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8653          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'
8654          tmp_addflag=' $pic_flag -Mnomain' ;;
8655        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8656          tmp_addflag=' -i_dynamic' ;;
8657        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8658          tmp_addflag=' -i_dynamic -nofor_main' ;;
8659        ifc* | ifort*)                  # Intel Fortran compiler
8660          tmp_addflag=' -nofor_main' ;;
8661        esac
8662        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663
8664        if test $supports_anon_versioning = yes; then
8665          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8666  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8667  $echo "local: *; };" >> $output_objdir/$libname.ver~
8668          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8669        fi
8670      else
8671        ld_shlibs=no
8672      fi
8673      ;;
8674
8675    netbsd*)
8676      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8677        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8678        wlarc=
8679      else
8680        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8682      fi
8683      ;;
8684
8685    solaris*)
8686      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8687        ld_shlibs=no
8688        cat <<EOF 1>&2
8689
8690*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8691*** create shared libraries on Solaris systems.  Therefore, libtool
8692*** is disabling shared libraries support.  We urge you to upgrade GNU
8693*** binutils to release 2.9.1 or newer.  Another option is to modify
8694*** your PATH or compiler configuration so that the native linker is
8695*** used, and then restart.
8696
8697EOF
8698      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8699        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8701      else
8702        ld_shlibs=no
8703      fi
8704      ;;
8705
8706    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8707      case `$LD -v 2>&1` in
8708        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8709        ld_shlibs=no
8710        cat <<_LT_EOF 1>&2
8711
8712*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8713*** reliably create shared libraries on SCO systems.  Therefore, libtool
8714*** is disabling shared libraries support.  We urge you to upgrade GNU
8715*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8716*** your PATH or compiler configuration so that the native linker is
8717*** used, and then restart.
8718
8719_LT_EOF
8720        ;;
8721        *)
8722          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8723            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8724            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8725            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8726          else
8727            ld_shlibs=no
8728          fi
8729        ;;
8730      esac
8731      ;;
8732
8733    sunos4*)
8734      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8735      wlarc=
8736      hardcode_direct=yes
8737      hardcode_shlibpath_var=no
8738      ;;
8739
8740    *)
8741      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8742        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8744      else
8745        ld_shlibs=no
8746      fi
8747      ;;
8748    esac
8749
8750    if test "$ld_shlibs" = no; then
8751      runpath_var=
8752      hardcode_libdir_flag_spec=
8753      export_dynamic_flag_spec=
8754      whole_archive_flag_spec=
8755    fi
8756  else
8757    # PORTME fill in a description of your system's linker (not GNU ld)
8758    case $host_os in
8759    aix3*)
8760      allow_undefined_flag=unsupported
8761      always_export_symbols=yes
8762      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'
8763      # Note: this linker hardcodes the directories in LIBPATH if there
8764      # are no directories specified by -L.
8765      hardcode_minus_L=yes
8766      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8767        # Neither direct hardcoding nor static linking is supported with a
8768        # broken collect2.
8769        hardcode_direct=unsupported
8770      fi
8771      ;;
8772
8773    aix4* | aix5*)
8774      if test "$host_cpu" = ia64; then
8775        # On IA64, the linker does run time linking by default, so we don't
8776        # have to do anything special.
8777        aix_use_runtimelinking=no
8778        exp_sym_flag='-Bexport'
8779        no_entry_flag=""
8780      else
8781        # If we're using GNU nm, then we don't want the "-C" option.
8782        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8783        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8784          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'
8785        else
8786          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'
8787        fi
8788        aix_use_runtimelinking=no
8789
8790        # Test if we are trying to use run time linking or normal
8791        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8792        # need to do runtime linking.
8793        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8794          for ld_flag in $LDFLAGS; do
8795          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8796            aix_use_runtimelinking=yes
8797            break
8798          fi
8799          done
8800          ;;
8801        esac
8802
8803        exp_sym_flag='-bexport'
8804        no_entry_flag='-bnoentry'
8805      fi
8806
8807      # When large executables or shared objects are built, AIX ld can
8808      # have problems creating the table of contents.  If linking a library
8809      # or program results in "error TOC overflow" add -mminimal-toc to
8810      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8811      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8812
8813      archive_cmds=''
8814      hardcode_direct=yes
8815      hardcode_libdir_separator=':'
8816      link_all_deplibs=yes
8817
8818      if test "$GCC" = yes; then
8819        case $host_os in aix4.[012]|aix4.[012].*)
8820        # We only want to do this on AIX 4.2 and lower, the check
8821        # below for broken collect2 doesn't work under 4.3+
8822          collect2name=`${CC} -print-prog-name=collect2`
8823          if test -f "$collect2name" && \
8824           strings "$collect2name" | grep resolve_lib_name >/dev/null
8825          then
8826          # We have reworked collect2
8827          hardcode_direct=yes
8828          else
8829          # We have old collect2
8830          hardcode_direct=unsupported
8831          # It fails to find uninstalled libraries when the uninstalled
8832          # path is not listed in the libpath.  Setting hardcode_minus_L
8833          # to unsupported forces relinking
8834          hardcode_minus_L=yes
8835          hardcode_libdir_flag_spec='-L$libdir'
8836          hardcode_libdir_separator=
8837          fi
8838          ;;
8839        esac
8840        shared_flag='-shared'
8841        if test "$aix_use_runtimelinking" = yes; then
8842          shared_flag="$shared_flag "'${wl}-G'
8843        fi
8844      else
8845        # not using gcc
8846        if test "$host_cpu" = ia64; then
8847        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8848        # chokes on -Wl,-G. The following line is correct:
8849          shared_flag='-G'
8850        else
8851          if test "$aix_use_runtimelinking" = yes; then
8852            shared_flag='${wl}-G'
8853          else
8854            shared_flag='${wl}-bM:SRE'
8855          fi
8856        fi
8857      fi
8858
8859      # It seems that -bexpall does not export symbols beginning with
8860      # underscore (_), so it is better to generate a list of symbols to export.
8861      always_export_symbols=yes
8862      if test "$aix_use_runtimelinking" = yes; then
8863        # Warning - without using the other runtime loading flags (-brtl),
8864        # -berok will link without error, but may produce a broken library.
8865        allow_undefined_flag='-berok'
8866       # Determine the default libpath from the value encoded in an empty executable.
8867       cat >conftest.$ac_ext <<_ACEOF
8868/* confdefs.h.  */
8869_ACEOF
8870cat confdefs.h >>conftest.$ac_ext
8871cat >>conftest.$ac_ext <<_ACEOF
8872/* end confdefs.h.  */
8873
8874int
8875main ()
8876{
8877
8878  ;
8879  return 0;
8880}
8881_ACEOF
8882rm -f conftest.$ac_objext conftest$ac_exeext
8883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884  (eval $ac_link) 2>conftest.er1
8885  ac_status=$?
8886  grep -v '^ *+' conftest.er1 >conftest.err
8887  rm -f conftest.er1
8888  cat conftest.err >&5
8889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890  (exit $ac_status); } &&
8891         { ac_try='test -z "$ac_c_werror_flag"
8892                         || test ! -s conftest.err'
8893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894  (eval $ac_try) 2>&5
8895  ac_status=$?
8896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897  (exit $ac_status); }; } &&
8898         { ac_try='test -s conftest$ac_exeext'
8899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900  (eval $ac_try) 2>&5
8901  ac_status=$?
8902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903  (exit $ac_status); }; }; then
8904
8905aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8906}'`
8907# Check for a 64-bit object if we didn't find anything.
8908if 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; }
8909}'`; fi
8910else
8911  echo "$as_me: failed program was:" >&5
8912sed 's/^/| /' conftest.$ac_ext >&5
8913
8914fi
8915rm -f conftest.err conftest.$ac_objext \
8916      conftest$ac_exeext conftest.$ac_ext
8917if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8918
8919       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8920        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"
8921       else
8922        if test "$host_cpu" = ia64; then
8923          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8924          allow_undefined_flag="-z nodefs"
8925          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"
8926        else
8927         # Determine the default libpath from the value encoded in an empty executable.
8928         cat >conftest.$ac_ext <<_ACEOF
8929/* confdefs.h.  */
8930_ACEOF
8931cat confdefs.h >>conftest.$ac_ext
8932cat >>conftest.$ac_ext <<_ACEOF
8933/* end confdefs.h.  */
8934
8935int
8936main ()
8937{
8938
8939  ;
8940  return 0;
8941}
8942_ACEOF
8943rm -f conftest.$ac_objext conftest$ac_exeext
8944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945  (eval $ac_link) 2>conftest.er1
8946  ac_status=$?
8947  grep -v '^ *+' conftest.er1 >conftest.err
8948  rm -f conftest.er1
8949  cat conftest.err >&5
8950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951  (exit $ac_status); } &&
8952         { ac_try='test -z "$ac_c_werror_flag"
8953                         || test ! -s conftest.err'
8954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955  (eval $ac_try) 2>&5
8956  ac_status=$?
8957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958  (exit $ac_status); }; } &&
8959         { ac_try='test -s conftest$ac_exeext'
8960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961  (eval $ac_try) 2>&5
8962  ac_status=$?
8963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964  (exit $ac_status); }; }; then
8965
8966aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8967}'`
8968# Check for a 64-bit object if we didn't find anything.
8969if 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; }
8970}'`; fi
8971else
8972  echo "$as_me: failed program was:" >&5
8973sed 's/^/| /' conftest.$ac_ext >&5
8974
8975fi
8976rm -f conftest.err conftest.$ac_objext \
8977      conftest$ac_exeext conftest.$ac_ext
8978if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8979
8980         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8981          # Warning - without using the other run time loading flags,
8982          # -berok will link without error, but may produce a broken library.
8983          no_undefined_flag=' ${wl}-bernotok'
8984          allow_undefined_flag=' ${wl}-berok'
8985          # Exported symbols can be pulled into shared objects from archives
8986          whole_archive_flag_spec='$convenience'
8987          archive_cmds_need_lc=yes
8988          # This is similar to how AIX traditionally builds its shared libraries.
8989          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'
8990        fi
8991      fi
8992      ;;
8993
8994    amigaos*)
8995      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)'
8996      hardcode_libdir_flag_spec='-L$libdir'
8997      hardcode_minus_L=yes
8998      # see comment about different semantics on the GNU ld section
8999      ld_shlibs=no
9000      ;;
9001
9002    bsdi[45]*)
9003      export_dynamic_flag_spec=-rdynamic
9004      ;;
9005
9006    cygwin* | mingw* | pw32*)
9007      # When not using gcc, we currently assume that we are using
9008      # Microsoft Visual C++.
9009      # hardcode_libdir_flag_spec is actually meaningless, as there is
9010      # no search path for DLLs.
9011      hardcode_libdir_flag_spec=' '
9012      allow_undefined_flag=unsupported
9013      # Tell ltmain to make .lib files, not .a files.
9014      libext=lib
9015      # Tell ltmain to make .dll files, not .so files.
9016      shrext_cmds=".dll"
9017      # FIXME: Setting linknames here is a bad hack.
9018      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9019      # The linker will automatically build a .lib file if we build a DLL.
9020      old_archive_From_new_cmds='true'
9021      # FIXME: Should let the user specify the lib program.
9022      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9023      fix_srcfile_path='`cygpath -w "$srcfile"`'
9024      enable_shared_with_static_runtimes=yes
9025      ;;
9026
9027    darwin* | rhapsody*)
9028      case $host_os in
9029        rhapsody* | darwin1.[012])
9030         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9031         ;;
9032       *) # Darwin 1.3 on
9033         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9034           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9035         else
9036           case ${MACOSX_DEPLOYMENT_TARGET} in
9037             10.[012])
9038               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9039               ;;
9040             10.*)
9041               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9042               ;;
9043           esac
9044         fi
9045         ;;
9046      esac
9047      archive_cmds_need_lc=no
9048      hardcode_direct=no
9049      hardcode_automatic=yes
9050      hardcode_shlibpath_var=unsupported
9051      whole_archive_flag_spec=''
9052      link_all_deplibs=yes
9053    if test "$GCC" = yes ; then
9054        output_verbose_link_cmd='echo'
9055        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9056      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9057      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9058      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}'
9059      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}'
9060    else
9061      case $cc_basename in
9062        xlc*)
9063         output_verbose_link_cmd='echo'
9064         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9065         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9066          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9067         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}'
9068          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}'
9069          ;;
9070       *)
9071         ld_shlibs=no
9072          ;;
9073      esac
9074    fi
9075      ;;
9076
9077    dgux*)
9078      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079      hardcode_libdir_flag_spec='-L$libdir'
9080      hardcode_shlibpath_var=no
9081      ;;
9082
9083    freebsd1*)
9084      ld_shlibs=no
9085      ;;
9086
9087    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9088    # support.  Future versions do this automatically, but an explicit c++rt0.o
9089    # does not break anything, and helps significantly (at the cost of a little
9090    # extra space).
9091    freebsd2.2*)
9092      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9093      hardcode_libdir_flag_spec='-R$libdir'
9094      hardcode_direct=yes
9095      hardcode_shlibpath_var=no
9096      ;;
9097
9098    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9099    freebsd2*)
9100      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9101      hardcode_direct=yes
9102      hardcode_minus_L=yes
9103      hardcode_shlibpath_var=no
9104      ;;
9105
9106    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9107    freebsd* | kfreebsd*-gnu | dragonfly*)
9108      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9109      hardcode_libdir_flag_spec='-R$libdir'
9110      hardcode_direct=yes
9111      hardcode_shlibpath_var=no
9112      ;;
9113
9114    hpux9*)
9115      if test "$GCC" = yes; then
9116        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'
9117      else
9118        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'
9119      fi
9120      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9121      hardcode_libdir_separator=:
9122      hardcode_direct=yes
9123
9124      # hardcode_minus_L: Not really in the search PATH,
9125      # but as the default location of the library.
9126      hardcode_minus_L=yes
9127      export_dynamic_flag_spec='${wl}-E'
9128      ;;
9129
9130    hpux10*)
9131      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9132        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9133      else
9134        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9135      fi
9136      if test "$with_gnu_ld" = no; then
9137        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9138        hardcode_libdir_separator=:
9139
9140        hardcode_direct=yes
9141        export_dynamic_flag_spec='${wl}-E'
9142
9143        # hardcode_minus_L: Not really in the search PATH,
9144        # but as the default location of the library.
9145        hardcode_minus_L=yes
9146      fi
9147      ;;
9148
9149    hpux11*)
9150      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9151        case $host_cpu in
9152        hppa*64*)
9153          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9154          ;;
9155        ia64*)
9156          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9157          ;;
9158        *)
9159          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9160          ;;
9161        esac
9162      else
9163        case $host_cpu in
9164        hppa*64*)
9165          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9166          ;;
9167        ia64*)
9168          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9169          ;;
9170        *)
9171          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9172          ;;
9173        esac
9174      fi
9175      if test "$with_gnu_ld" = no; then
9176        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177        hardcode_libdir_separator=:
9178
9179        case $host_cpu in
9180        hppa*64*|ia64*)
9181          hardcode_libdir_flag_spec_ld='+b $libdir'
9182          hardcode_direct=no
9183          hardcode_shlibpath_var=no
9184          ;;
9185        *)
9186          hardcode_direct=yes
9187          export_dynamic_flag_spec='${wl}-E'
9188
9189          # hardcode_minus_L: Not really in the search PATH,
9190          # but as the default location of the library.
9191          hardcode_minus_L=yes
9192          ;;
9193        esac
9194      fi
9195      ;;
9196
9197    irix5* | irix6* | nonstopux*)
9198      if test "$GCC" = yes; then
9199        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'
9200      else
9201        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'
9202        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9203      fi
9204      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9205      hardcode_libdir_separator=:
9206      link_all_deplibs=yes
9207      ;;
9208
9209    netbsd*)
9210      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9211        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9212      else
9213        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9214      fi
9215      hardcode_libdir_flag_spec='-R$libdir'
9216      hardcode_direct=yes
9217      hardcode_shlibpath_var=no
9218      ;;
9219
9220    newsos6)
9221      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9222      hardcode_direct=yes
9223      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9224      hardcode_libdir_separator=:
9225      hardcode_shlibpath_var=no
9226      ;;
9227
9228    openbsd*)
9229      hardcode_direct=yes
9230      hardcode_shlibpath_var=no
9231      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9232        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9233        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9234        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9235        export_dynamic_flag_spec='${wl}-E'
9236      else
9237       case $host_os in
9238         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9239           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9240           hardcode_libdir_flag_spec='-R$libdir'
9241           ;;
9242         *)
9243           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9244           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9245           ;;
9246       esac
9247      fi
9248      ;;
9249
9250    os2*)
9251      hardcode_libdir_flag_spec='-L$libdir'
9252      hardcode_minus_L=yes
9253      allow_undefined_flag=unsupported
9254      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'
9255      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9256      ;;
9257
9258    osf3*)
9259      if test "$GCC" = yes; then
9260        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9261        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'
9262      else
9263        allow_undefined_flag=' -expect_unresolved \*'
9264        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'
9265      fi
9266      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9267      hardcode_libdir_separator=:
9268      ;;
9269
9270    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9271      if test "$GCC" = yes; then
9272        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9273        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'
9274        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9275      else
9276        allow_undefined_flag=' -expect_unresolved \*'
9277        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'
9278        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9279        $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'
9280
9281        # Both c and cxx compiler support -rpath directly
9282        hardcode_libdir_flag_spec='-rpath $libdir'
9283      fi
9284      hardcode_libdir_separator=:
9285      ;;
9286
9287    solaris*)
9288      no_undefined_flag=' -z text'
9289      if test "$GCC" = yes; then
9290        wlarc='${wl}'
9291        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9292        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9293          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9294      else
9295        wlarc=''
9296        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9297        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9298        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9299      fi
9300      hardcode_libdir_flag_spec='-R$libdir'
9301      hardcode_shlibpath_var=no
9302      case $host_os in
9303      solaris2.[0-5] | solaris2.[0-5].*) ;;
9304      *)
9305        # The compiler driver will combine linker options so we
9306        # cannot just pass the convience library names through
9307        # without $wl, iff we do not link with $LD.
9308        # Luckily, gcc supports the same syntax we need for Sun Studio.
9309        # Supported since Solaris 2.6 (maybe 2.5.1?)
9310        case $wlarc in
9311        '')
9312          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9313        *)
9314          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' ;;
9315        esac ;;
9316      esac
9317      link_all_deplibs=yes
9318      ;;
9319
9320    sunos4*)
9321      if test "x$host_vendor" = xsequent; then
9322        # Use $CC to link under sequent, because it throws in some extra .o
9323        # files that make .init and .fini sections work.
9324        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9325      else
9326        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9327      fi
9328      hardcode_libdir_flag_spec='-L$libdir'
9329      hardcode_direct=yes
9330      hardcode_minus_L=yes
9331      hardcode_shlibpath_var=no
9332      ;;
9333
9334    sysv4)
9335      case $host_vendor in
9336        sni)
9337          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9338          hardcode_direct=yes # is this really true???
9339        ;;
9340        siemens)
9341          ## LD is ld it makes a PLAMLIB
9342          ## CC just makes a GrossModule.
9343          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9344          reload_cmds='$CC -r -o $output$reload_objs'
9345          hardcode_direct=no
9346        ;;
9347        motorola)
9348          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9350        ;;
9351      esac
9352      runpath_var='LD_RUN_PATH'
9353      hardcode_shlibpath_var=no
9354      ;;
9355
9356    sysv4.3*)
9357      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358      hardcode_shlibpath_var=no
9359      export_dynamic_flag_spec='-Bexport'
9360      ;;
9361
9362    sysv4*MP*)
9363      if test -d /usr/nec; then
9364        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9365        hardcode_shlibpath_var=no
9366        runpath_var=LD_RUN_PATH
9367        hardcode_runpath_var=yes
9368        ld_shlibs=yes
9369      fi
9370      ;;
9371
9372    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9373      no_undefined_flag='${wl}-z,text'
9374      archive_cmds_need_lc=no
9375      hardcode_shlibpath_var=no
9376      runpath_var='LD_RUN_PATH'
9377
9378      if test "$GCC" = yes; then
9379        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381      else
9382        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384      fi
9385      ;;
9386
9387    sysv5* | sco3.2v5* | sco5v6*)
9388      # Note: We can NOT use -z defs as we might desire, because we do not
9389      # link with -lc, and that would cause any symbols used from libc to
9390      # always be unresolved, which means just about no library would
9391      # ever link correctly.  If we're not using GNU ld we use -z text
9392      # though, which does catch some bad symbols but isn't as heavy-handed
9393      # as -z defs.
9394      no_undefined_flag='${wl}-z,text'
9395      allow_undefined_flag='${wl}-z,nodefs'
9396      archive_cmds_need_lc=no
9397      hardcode_shlibpath_var=no
9398      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9399      hardcode_libdir_separator=':'
9400      link_all_deplibs=yes
9401      export_dynamic_flag_spec='${wl}-Bexport'
9402      runpath_var='LD_RUN_PATH'
9403
9404      if test "$GCC" = yes; then
9405        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9406        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9407      else
9408        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9409        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410      fi
9411      ;;
9412
9413    uts4*)
9414      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415      hardcode_libdir_flag_spec='-L$libdir'
9416      hardcode_shlibpath_var=no
9417      ;;
9418
9419    *)
9420      ld_shlibs=no
9421      ;;
9422    esac
9423  fi
9424
9425echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9426echo "${ECHO_T}$ld_shlibs" >&6
9427test "$ld_shlibs" = no && can_build_shared=no
9428
9429#
9430# Do we need to explicitly link libc?
9431#
9432case "x$archive_cmds_need_lc" in
9433x|xyes)
9434  # Assume -lc should be added
9435  archive_cmds_need_lc=yes
9436
9437  if test "$enable_shared" = yes && test "$GCC" = yes; then
9438    case $archive_cmds in
9439    *'~'*)
9440      # FIXME: we may have to deal with multi-command sequences.
9441      ;;
9442    '$CC '*)
9443      # Test whether the compiler implicitly links with -lc since on some
9444      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9445      # to ld, don't add -lc before -lgcc.
9446      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9447echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9448      $rm conftest*
9449      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9450
9451      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452  (eval $ac_compile) 2>&5
9453  ac_status=$?
9454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455  (exit $ac_status); } 2>conftest.err; then
9456        soname=conftest
9457        lib=conftest
9458        libobjs=conftest.$ac_objext
9459        deplibs=
9460        wl=$lt_prog_compiler_wl
9461        pic_flag=$lt_prog_compiler_pic
9462        compiler_flags=-v
9463        linker_flags=-v
9464        verstring=
9465        output_objdir=.
9466        libname=conftest
9467        lt_save_allow_undefined_flag=$allow_undefined_flag
9468        allow_undefined_flag=
9469        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9470  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9471  ac_status=$?
9472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473  (exit $ac_status); }
9474        then
9475          archive_cmds_need_lc=no
9476        else
9477          archive_cmds_need_lc=yes
9478        fi
9479        allow_undefined_flag=$lt_save_allow_undefined_flag
9480      else
9481        cat conftest.err 1>&5
9482      fi
9483      $rm conftest*
9484      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9485echo "${ECHO_T}$archive_cmds_need_lc" >&6
9486      ;;
9487    esac
9488  fi
9489  ;;
9490esac
9491
9492echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9493echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9494library_names_spec=
9495libname_spec='lib$name'
9496soname_spec=
9497shrext_cmds=".so"
9498postinstall_cmds=
9499postuninstall_cmds=
9500finish_cmds=
9501finish_eval=
9502shlibpath_var=
9503shlibpath_overrides_runpath=unknown
9504version_type=none
9505dynamic_linker="$host_os ld.so"
9506sys_lib_dlsearch_path_spec="/lib /usr/lib"
9507if test "$GCC" = yes; then
9508  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9509  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9510    # if the path contains ";" then we assume it to be the separator
9511    # otherwise default to the standard path separator (i.e. ":") - it is
9512    # assumed that no part of a normal pathname contains ";" but that should
9513    # okay in the real world where ";" in dirpaths is itself problematic.
9514    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9515  else
9516    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9517  fi
9518else
9519  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9520fi
9521need_lib_prefix=unknown
9522hardcode_into_libs=no
9523
9524# when you set need_version to no, make sure it does not cause -set_version
9525# flags to be left without arguments
9526need_version=unknown
9527
9528case $host_os in
9529aix3*)
9530  version_type=linux
9531  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9532  shlibpath_var=LIBPATH
9533
9534  # AIX 3 has no versioning support, so we append a major version to the name.
9535  soname_spec='${libname}${release}${shared_ext}$major'
9536  ;;
9537
9538aix4* | aix5*)
9539  version_type=linux
9540  need_lib_prefix=no
9541  need_version=no
9542  hardcode_into_libs=yes
9543  if test "$host_cpu" = ia64; then
9544    # AIX 5 supports IA64
9545    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9546    shlibpath_var=LD_LIBRARY_PATH
9547  else
9548    # With GCC up to 2.95.x, collect2 would create an import file
9549    # for dependence libraries.  The import file would start with
9550    # the line `#! .'.  This would cause the generated library to
9551    # depend on `.', always an invalid library.  This was fixed in
9552    # development snapshots of GCC prior to 3.0.
9553    case $host_os in
9554      aix4 | aix4.[01] | aix4.[01].*)
9555      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9556           echo ' yes '
9557           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9558        :
9559      else
9560        can_build_shared=no
9561      fi
9562      ;;
9563    esac
9564    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9565    # soname into executable. Probably we can add versioning support to
9566    # collect2, so additional links can be useful in future.
9567    if test "$aix_use_runtimelinking" = yes; then
9568      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9569      # instead of lib<name>.a to let people know that these are not
9570      # typical AIX shared libraries.
9571      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572    else
9573      # We preserve .a as extension for shared libraries through AIX4.2
9574      # and later when we are not doing run time linking.
9575      library_names_spec='${libname}${release}.a $libname.a'
9576      soname_spec='${libname}${release}${shared_ext}$major'
9577    fi
9578    shlibpath_var=LIBPATH
9579  fi
9580  ;;
9581
9582amigaos*)
9583  library_names_spec='$libname.ixlibrary $libname.a'
9584  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9585  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'
9586  ;;
9587
9588beos*)
9589  library_names_spec='${libname}${shared_ext}'
9590  dynamic_linker="$host_os ld.so"
9591  shlibpath_var=LIBRARY_PATH
9592  ;;
9593
9594bsdi[45]*)
9595  version_type=linux
9596  need_version=no
9597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598  soname_spec='${libname}${release}${shared_ext}$major'
9599  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9600  shlibpath_var=LD_LIBRARY_PATH
9601  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9602  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9603  # the default ld.so.conf also contains /usr/contrib/lib and
9604  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9605  # libtool to hard-code these into programs
9606  ;;
9607
9608cygwin* | mingw* | pw32*)
9609  version_type=windows
9610  shrext_cmds=".dll"
9611  need_version=no
9612  need_lib_prefix=no
9613
9614  case $GCC,$host_os in
9615  yes,cygwin* | yes,mingw* | yes,pw32*)
9616    library_names_spec='$libname.dll.a'
9617    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9618    postinstall_cmds='base_file=`basename \${file}`~
9619      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9620      dldir=$destdir/`dirname \$dlpath`~
9621      test -d \$dldir || mkdir -p \$dldir~
9622      $install_prog $dir/$dlname \$dldir/$dlname~
9623      chmod a+x \$dldir/$dlname'
9624    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9625      dlpath=$dir/\$dldll~
9626       $rm \$dlpath'
9627    shlibpath_overrides_runpath=yes
9628
9629    case $host_os in
9630    cygwin*)
9631      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9632      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9633      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9634      ;;
9635    mingw*)
9636      # MinGW DLLs use traditional 'lib' prefix
9637      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9638      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9639      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9640        # It is most probably a Windows format PATH printed by
9641        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9642        # path with ; separators, and with drive letters. We can handle the
9643        # drive letters (cygwin fileutils understands them), so leave them,
9644        # especially as we might pass files found there to a mingw objdump,
9645        # which wouldn't understand a cygwinified path. Ahh.
9646        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9647      else
9648        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9649      fi
9650      ;;
9651    pw32*)
9652      # pw32 DLLs use 'pw' prefix rather than 'lib'
9653      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9654      ;;
9655    esac
9656    ;;
9657
9658  *)
9659    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9660    ;;
9661  esac
9662  dynamic_linker='Win32 ld.exe'
9663  # FIXME: first we should search . and the directory the executable is in
9664  shlibpath_var=PATH
9665  ;;
9666
9667darwin* | rhapsody*)
9668  dynamic_linker="$host_os dyld"
9669  version_type=darwin
9670  need_lib_prefix=no
9671  need_version=no
9672  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9673  soname_spec='${libname}${release}${major}$shared_ext'
9674  shlibpath_overrides_runpath=yes
9675  shlibpath_var=DYLD_LIBRARY_PATH
9676  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9677  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9678  if test "$GCC" = yes; then
9679    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"`
9680  else
9681    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9682  fi
9683  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9684  ;;
9685
9686dgux*)
9687  version_type=linux
9688  need_lib_prefix=no
9689  need_version=no
9690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9691  soname_spec='${libname}${release}${shared_ext}$major'
9692  shlibpath_var=LD_LIBRARY_PATH
9693  ;;
9694
9695freebsd1*)
9696  dynamic_linker=no
9697  ;;
9698
9699kfreebsd*-gnu)
9700  version_type=linux
9701  need_lib_prefix=no
9702  need_version=no
9703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9704  soname_spec='${libname}${release}${shared_ext}$major'
9705  shlibpath_var=LD_LIBRARY_PATH
9706  shlibpath_overrides_runpath=no
9707  hardcode_into_libs=yes
9708  dynamic_linker='GNU ld.so'
9709  ;;
9710
9711freebsd* | dragonfly*)
9712  # DragonFly does not have aout.  When/if they implement a new
9713  # versioning mechanism, adjust this.
9714  if test -x /usr/bin/objformat; then
9715    objformat=`/usr/bin/objformat`
9716  else
9717    case $host_os in
9718    freebsd[123]*) objformat=aout ;;
9719    *) objformat=elf ;;
9720    esac
9721  fi
9722  version_type=freebsd-$objformat
9723  case $version_type in
9724    freebsd-elf*)
9725      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9726      need_version=no
9727      need_lib_prefix=no
9728      ;;
9729    freebsd-*)
9730      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9731      need_version=yes
9732      ;;
9733  esac
9734  shlibpath_var=LD_LIBRARY_PATH
9735  case $host_os in
9736  freebsd2*)
9737    shlibpath_overrides_runpath=yes
9738    ;;
9739  freebsd3.[01]* | freebsdelf3.[01]*)
9740    shlibpath_overrides_runpath=yes
9741    hardcode_into_libs=yes
9742    ;;
9743  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9744  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9745    shlibpath_overrides_runpath=no
9746    hardcode_into_libs=yes
9747    ;;
9748  freebsd*) # from 4.6 on
9749    shlibpath_overrides_runpath=yes
9750    hardcode_into_libs=yes
9751    ;;
9752  esac
9753  ;;
9754
9755gnu*)
9756  version_type=linux
9757  need_lib_prefix=no
9758  need_version=no
9759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9760  soname_spec='${libname}${release}${shared_ext}$major'
9761  shlibpath_var=LD_LIBRARY_PATH
9762  hardcode_into_libs=yes
9763  ;;
9764
9765hpux9* | hpux10* | hpux11*)
9766  # Give a soname corresponding to the major version so that dld.sl refuses to
9767  # link against other versions.
9768  version_type=sunos
9769  need_lib_prefix=no
9770  need_version=no
9771  case $host_cpu in
9772  ia64*)
9773    shrext_cmds='.so'
9774    hardcode_into_libs=yes
9775    dynamic_linker="$host_os dld.so"
9776    shlibpath_var=LD_LIBRARY_PATH
9777    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9778    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779    soname_spec='${libname}${release}${shared_ext}$major'
9780    if test "X$HPUX_IA64_MODE" = X32; then
9781      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9782    else
9783      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9784    fi
9785    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9786    ;;
9787   hppa*64*)
9788     shrext_cmds='.sl'
9789     hardcode_into_libs=yes
9790     dynamic_linker="$host_os dld.sl"
9791     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9792     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794     soname_spec='${libname}${release}${shared_ext}$major'
9795     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9796     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9797     ;;
9798   *)
9799    shrext_cmds='.sl'
9800    dynamic_linker="$host_os dld.sl"
9801    shlibpath_var=SHLIB_PATH
9802    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9803    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804    soname_spec='${libname}${release}${shared_ext}$major'
9805    ;;
9806  esac
9807  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9808  postinstall_cmds='chmod 555 $lib'
9809  ;;
9810
9811interix3*)
9812  version_type=linux
9813  need_lib_prefix=no
9814  need_version=no
9815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9816  soname_spec='${libname}${release}${shared_ext}$major'
9817  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9818  shlibpath_var=LD_LIBRARY_PATH
9819  shlibpath_overrides_runpath=no
9820  hardcode_into_libs=yes
9821  ;;
9822
9823irix5* | irix6* | nonstopux*)
9824  case $host_os in
9825    nonstopux*) version_type=nonstopux ;;
9826    *)
9827        if test "$lt_cv_prog_gnu_ld" = yes; then
9828                version_type=linux
9829        else
9830                version_type=irix
9831        fi ;;
9832  esac
9833  need_lib_prefix=no
9834  need_version=no
9835  soname_spec='${libname}${release}${shared_ext}$major'
9836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9837  case $host_os in
9838  irix5* | nonstopux*)
9839    libsuff= shlibsuff=
9840    ;;
9841  *)
9842    case $LD in # libtool.m4 will add one of these switches to LD
9843    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9844      libsuff= shlibsuff= libmagic=32-bit;;
9845    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9846      libsuff=32 shlibsuff=N32 libmagic=N32;;
9847    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9848      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9849    *) libsuff= shlibsuff= libmagic=never-match;;
9850    esac
9851    ;;
9852  esac
9853  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9854  shlibpath_overrides_runpath=no
9855  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9856  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9857  hardcode_into_libs=yes
9858  ;;
9859
9860# No shared lib support for Linux oldld, aout, or coff.
9861linux*oldld* | linux*aout* | linux*coff*)
9862  dynamic_linker=no
9863  ;;
9864
9865# This must be Linux ELF.
9866linux*)
9867  version_type=linux
9868  need_lib_prefix=no
9869  need_version=no
9870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9871  soname_spec='${libname}${release}${shared_ext}$major'
9872  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9873  shlibpath_var=LD_LIBRARY_PATH
9874  shlibpath_overrides_runpath=no
9875  # This implies no fast_install, which is unacceptable.
9876  # Some rework will be needed to allow for fast_install
9877  # before this can be enabled.
9878  hardcode_into_libs=yes
9879
9880  # Append ld.so.conf contents to the search path
9881  if test -f /etc/ld.so.conf; then
9882    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' ' '`
9883    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9884  fi
9885
9886  # We used to test for /lib/ld.so.1 and disable shared libraries on
9887  # powerpc, because MkLinux only supported shared libraries with the
9888  # GNU dynamic linker.  Since this was broken with cross compilers,
9889  # most powerpc-linux boxes support dynamic linking these days and
9890  # people can always --disable-shared, the test was removed, and we
9891  # assume the GNU/Linux dynamic linker is in use.
9892  dynamic_linker='GNU/Linux ld.so'
9893  ;;
9894
9895knetbsd*-gnu)
9896  version_type=linux
9897  need_lib_prefix=no
9898  need_version=no
9899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9900  soname_spec='${libname}${release}${shared_ext}$major'
9901  shlibpath_var=LD_LIBRARY_PATH
9902  shlibpath_overrides_runpath=no
9903  hardcode_into_libs=yes
9904  dynamic_linker='GNU ld.so'
9905  ;;
9906
9907netbsd*)
9908  version_type=sunos
9909  need_lib_prefix=no
9910  need_version=no
9911  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9912    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9913    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9914    dynamic_linker='NetBSD (a.out) ld.so'
9915  else
9916    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9917    soname_spec='${libname}${release}${shared_ext}$major'
9918    dynamic_linker='NetBSD ld.elf_so'
9919  fi
9920  shlibpath_var=LD_LIBRARY_PATH
9921  shlibpath_overrides_runpath=yes
9922  hardcode_into_libs=yes
9923  ;;
9924
9925newsos6)
9926  version_type=linux
9927  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928  shlibpath_var=LD_LIBRARY_PATH
9929  shlibpath_overrides_runpath=yes
9930  ;;
9931
9932nto-qnx*)
9933  version_type=linux
9934  need_lib_prefix=no
9935  need_version=no
9936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937  soname_spec='${libname}${release}${shared_ext}$major'
9938  shlibpath_var=LD_LIBRARY_PATH
9939  shlibpath_overrides_runpath=yes
9940  ;;
9941
9942openbsd*)
9943  version_type=sunos
9944  sys_lib_dlsearch_path_spec="/usr/lib"
9945  need_lib_prefix=no
9946  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9947  case $host_os in
9948    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9949    *)                         need_version=no  ;;
9950  esac
9951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9952  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9953  shlibpath_var=LD_LIBRARY_PATH
9954  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9955    case $host_os in
9956      openbsd2.[89] | openbsd2.[89].*)
9957        shlibpath_overrides_runpath=no
9958        ;;
9959      *)
9960        shlibpath_overrides_runpath=yes
9961        ;;
9962      esac
9963  else
9964    shlibpath_overrides_runpath=yes
9965  fi
9966  ;;
9967
9968os2*)
9969  libname_spec='$name'
9970  shrext_cmds=".dll"
9971  need_lib_prefix=no
9972  library_names_spec='$libname${shared_ext} $libname.a'
9973  dynamic_linker='OS/2 ld.exe'
9974  shlibpath_var=LIBPATH
9975  ;;
9976
9977osf3* | osf4* | osf5*)
9978  version_type=osf
9979  need_lib_prefix=no
9980  need_version=no
9981  soname_spec='${libname}${release}${shared_ext}$major'
9982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983  shlibpath_var=LD_LIBRARY_PATH
9984  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9985  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9986  ;;
9987
9988solaris*)
9989  version_type=linux
9990  need_lib_prefix=no
9991  need_version=no
9992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993  soname_spec='${libname}${release}${shared_ext}$major'
9994  shlibpath_var=LD_LIBRARY_PATH
9995  shlibpath_overrides_runpath=yes
9996  hardcode_into_libs=yes
9997  # ldd complains unless libraries are executable
9998  postinstall_cmds='chmod +x $lib'
9999  ;;
10000
10001sunos4*)
10002  version_type=sunos
10003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10004  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10005  shlibpath_var=LD_LIBRARY_PATH
10006  shlibpath_overrides_runpath=yes
10007  if test "$with_gnu_ld" = yes; then
10008    need_lib_prefix=no
10009  fi
10010  need_version=yes
10011  ;;
10012
10013sysv4 | sysv4.3*)
10014  version_type=linux
10015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016  soname_spec='${libname}${release}${shared_ext}$major'
10017  shlibpath_var=LD_LIBRARY_PATH
10018  case $host_vendor in
10019    sni)
10020      shlibpath_overrides_runpath=no
10021      need_lib_prefix=no
10022      export_dynamic_flag_spec='${wl}-Blargedynsym'
10023      runpath_var=LD_RUN_PATH
10024      ;;
10025    siemens)
10026      need_lib_prefix=no
10027      ;;
10028    motorola)
10029      need_lib_prefix=no
10030      need_version=no
10031      shlibpath_overrides_runpath=no
10032      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10033      ;;
10034  esac
10035  ;;
10036
10037sysv4*MP*)
10038  if test -d /usr/nec ;then
10039    version_type=linux
10040    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10041    soname_spec='$libname${shared_ext}.$major'
10042    shlibpath_var=LD_LIBRARY_PATH
10043  fi
10044  ;;
10045
10046sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10047  version_type=freebsd-elf
10048  need_lib_prefix=no
10049  need_version=no
10050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10051  soname_spec='${libname}${release}${shared_ext}$major'
10052  shlibpath_var=LD_LIBRARY_PATH
10053  hardcode_into_libs=yes
10054  if test "$with_gnu_ld" = yes; then
10055    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10056    shlibpath_overrides_runpath=no
10057  else
10058    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10059    shlibpath_overrides_runpath=yes
10060    case $host_os in
10061      sco3.2v5*)
10062        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10063        ;;
10064    esac
10065  fi
10066  sys_lib_dlsearch_path_spec='/usr/lib'
10067  ;;
10068
10069uts4*)
10070  version_type=linux
10071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072  soname_spec='${libname}${release}${shared_ext}$major'
10073  shlibpath_var=LD_LIBRARY_PATH
10074  ;;
10075
10076*)
10077  dynamic_linker=no
10078  ;;
10079esac
10080echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10081echo "${ECHO_T}$dynamic_linker" >&6
10082test "$dynamic_linker" = no && can_build_shared=no
10083
10084variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10085if test "$GCC" = yes; then
10086  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10087fi
10088
10089echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10090echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10091hardcode_action=
10092if test -n "$hardcode_libdir_flag_spec" || \
10093   test -n "$runpath_var" || \
10094   test "X$hardcode_automatic" = "Xyes" ; then
10095
10096  # We can hardcode non-existant directories.
10097  if test "$hardcode_direct" != no &&
10098     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10099     # have to relink, otherwise we might link with an installed library
10100     # when we should be linking with a yet-to-be-installed one
10101     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10102     test "$hardcode_minus_L" != no; then
10103    # Linking always hardcodes the temporary library directory.
10104    hardcode_action=relink
10105  else
10106    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10107    hardcode_action=immediate
10108  fi
10109else
10110  # We cannot hardcode anything, or else we can only hardcode existing
10111  # directories.
10112  hardcode_action=unsupported
10113fi
10114echo "$as_me:$LINENO: result: $hardcode_action" >&5
10115echo "${ECHO_T}$hardcode_action" >&6
10116
10117if test "$hardcode_action" = relink; then
10118  # Fast installation is not supported
10119  enable_fast_install=no
10120elif test "$shlibpath_overrides_runpath" = yes ||
10121     test "$enable_shared" = no; then
10122  # Fast installation is not necessary
10123  enable_fast_install=needless
10124fi
10125
10126striplib=
10127old_striplib=
10128echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10129echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10130if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10131  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10132  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10133  echo "$as_me:$LINENO: result: yes" >&5
10134echo "${ECHO_T}yes" >&6
10135else
10136# FIXME - insert some real tests, host_os isn't really good enough
10137  case $host_os in
10138   darwin*)
10139       if test -n "$STRIP" ; then
10140         striplib="$STRIP -x"
10141         echo "$as_me:$LINENO: result: yes" >&5
10142echo "${ECHO_T}yes" >&6
10143       else
10144  echo "$as_me:$LINENO: result: no" >&5
10145echo "${ECHO_T}no" >&6
10146fi
10147       ;;
10148   *)
10149  echo "$as_me:$LINENO: result: no" >&5
10150echo "${ECHO_T}no" >&6
10151    ;;
10152  esac
10153fi
10154
10155if test "x$enable_dlopen" != xyes; then
10156  enable_dlopen=unknown
10157  enable_dlopen_self=unknown
10158  enable_dlopen_self_static=unknown
10159else
10160  lt_cv_dlopen=no
10161  lt_cv_dlopen_libs=
10162
10163  case $host_os in
10164  beos*)
10165    lt_cv_dlopen="load_add_on"
10166    lt_cv_dlopen_libs=
10167    lt_cv_dlopen_self=yes
10168    ;;
10169
10170  mingw* | pw32*)
10171    lt_cv_dlopen="LoadLibrary"
10172    lt_cv_dlopen_libs=
10173   ;;
10174
10175  cygwin*)
10176    lt_cv_dlopen="dlopen"
10177    lt_cv_dlopen_libs=
10178   ;;
10179
10180  darwin*)
10181  # if libdl is installed we need to link against it
10182    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10183echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10184if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10185  echo $ECHO_N "(cached) $ECHO_C" >&6
10186else
10187  ac_check_lib_save_LIBS=$LIBS
10188LIBS="-ldl  $LIBS"
10189cat >conftest.$ac_ext <<_ACEOF
10190/* confdefs.h.  */
10191_ACEOF
10192cat confdefs.h >>conftest.$ac_ext
10193cat >>conftest.$ac_ext <<_ACEOF
10194/* end confdefs.h.  */
10195
10196/* Override any gcc2 internal prototype to avoid an error.  */
10197#ifdef __cplusplus
10198extern "C"
10199#endif
10200/* We use char because int might match the return type of a gcc2
10201   builtin and then its argument prototype would still apply.  */
10202char dlopen ();
10203int
10204main ()
10205{
10206dlopen ();
10207  ;
10208  return 0;
10209}
10210_ACEOF
10211rm -f conftest.$ac_objext conftest$ac_exeext
10212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10213  (eval $ac_link) 2>conftest.er1
10214  ac_status=$?
10215  grep -v '^ *+' conftest.er1 >conftest.err
10216  rm -f conftest.er1
10217  cat conftest.err >&5
10218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219  (exit $ac_status); } &&
10220         { ac_try='test -z "$ac_c_werror_flag"
10221                         || test ! -s conftest.err'
10222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223  (eval $ac_try) 2>&5
10224  ac_status=$?
10225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226  (exit $ac_status); }; } &&
10227         { ac_try='test -s conftest$ac_exeext'
10228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229  (eval $ac_try) 2>&5
10230  ac_status=$?
10231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232  (exit $ac_status); }; }; then
10233  ac_cv_lib_dl_dlopen=yes
10234else
10235  echo "$as_me: failed program was:" >&5
10236sed 's/^/| /' conftest.$ac_ext >&5
10237
10238ac_cv_lib_dl_dlopen=no
10239fi
10240rm -f conftest.err conftest.$ac_objext \
10241      conftest$ac_exeext conftest.$ac_ext
10242LIBS=$ac_check_lib_save_LIBS
10243fi
10244echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10245echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10246if test $ac_cv_lib_dl_dlopen = yes; then
10247  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10248else
10249
10250    lt_cv_dlopen="dyld"
10251    lt_cv_dlopen_libs=
10252    lt_cv_dlopen_self=yes
10253
10254fi
10255
10256   ;;
10257
10258  *)
10259    echo "$as_me:$LINENO: checking for shl_load" >&5
10260echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10261if test "${ac_cv_func_shl_load+set}" = set; then
10262  echo $ECHO_N "(cached) $ECHO_C" >&6
10263else
10264  cat >conftest.$ac_ext <<_ACEOF
10265/* confdefs.h.  */
10266_ACEOF
10267cat confdefs.h >>conftest.$ac_ext
10268cat >>conftest.$ac_ext <<_ACEOF
10269/* end confdefs.h.  */
10270/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10271   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10272#define shl_load innocuous_shl_load
10273
10274/* System header to define __stub macros and hopefully few prototypes,
10275    which can conflict with char shl_load (); below.
10276    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10277    <limits.h> exists even on freestanding compilers.  */
10278
10279#ifdef __STDC__
10280# include <limits.h>
10281#else
10282# include <assert.h>
10283#endif
10284
10285#undef shl_load
10286
10287/* Override any gcc2 internal prototype to avoid an error.  */
10288#ifdef __cplusplus
10289extern "C"
10290{
10291#endif
10292/* We use char because int might match the return type of a gcc2
10293   builtin and then its argument prototype would still apply.  */
10294char shl_load ();
10295/* The GNU C library defines this for functions which it implements
10296    to always fail with ENOSYS.  Some functions are actually named
10297    something starting with __ and the normal name is an alias.  */
10298#if defined (__stub_shl_load) || defined (__stub___shl_load)
10299choke me
10300#else
10301char (*f) () = shl_load;
10302#endif
10303#ifdef __cplusplus
10304}
10305#endif
10306
10307int
10308main ()
10309{
10310return f != shl_load;
10311  ;
10312  return 0;
10313}
10314_ACEOF
10315rm -f conftest.$ac_objext conftest$ac_exeext
10316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317  (eval $ac_link) 2>conftest.er1
10318  ac_status=$?
10319  grep -v '^ *+' conftest.er1 >conftest.err
10320  rm -f conftest.er1
10321  cat conftest.err >&5
10322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323  (exit $ac_status); } &&
10324         { ac_try='test -z "$ac_c_werror_flag"
10325                         || test ! -s conftest.err'
10326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327  (eval $ac_try) 2>&5
10328  ac_status=$?
10329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330  (exit $ac_status); }; } &&
10331         { ac_try='test -s conftest$ac_exeext'
10332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333  (eval $ac_try) 2>&5
10334  ac_status=$?
10335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336  (exit $ac_status); }; }; then
10337  ac_cv_func_shl_load=yes
10338else
10339  echo "$as_me: failed program was:" >&5
10340sed 's/^/| /' conftest.$ac_ext >&5
10341
10342ac_cv_func_shl_load=no
10343fi
10344rm -f conftest.err conftest.$ac_objext \
10345      conftest$ac_exeext conftest.$ac_ext
10346fi
10347echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10348echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10349if test $ac_cv_func_shl_load = yes; then
10350  lt_cv_dlopen="shl_load"
10351else
10352  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10353echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10354if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10355  echo $ECHO_N "(cached) $ECHO_C" >&6
10356else
10357  ac_check_lib_save_LIBS=$LIBS
10358LIBS="-ldld  $LIBS"
10359cat >conftest.$ac_ext <<_ACEOF
10360/* confdefs.h.  */
10361_ACEOF
10362cat confdefs.h >>conftest.$ac_ext
10363cat >>conftest.$ac_ext <<_ACEOF
10364/* end confdefs.h.  */
10365
10366/* Override any gcc2 internal prototype to avoid an error.  */
10367#ifdef __cplusplus
10368extern "C"
10369#endif
10370/* We use char because int might match the return type of a gcc2
10371   builtin and then its argument prototype would still apply.  */
10372char shl_load ();
10373int
10374main ()
10375{
10376shl_load ();
10377  ;
10378  return 0;
10379}
10380_ACEOF
10381rm -f conftest.$ac_objext conftest$ac_exeext
10382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383  (eval $ac_link) 2>conftest.er1
10384  ac_status=$?
10385  grep -v '^ *+' conftest.er1 >conftest.err
10386  rm -f conftest.er1
10387  cat conftest.err >&5
10388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389  (exit $ac_status); } &&
10390         { ac_try='test -z "$ac_c_werror_flag"
10391                         || test ! -s conftest.err'
10392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393  (eval $ac_try) 2>&5
10394  ac_status=$?
10395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396  (exit $ac_status); }; } &&
10397         { ac_try='test -s conftest$ac_exeext'
10398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399  (eval $ac_try) 2>&5
10400  ac_status=$?
10401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402  (exit $ac_status); }; }; then
10403  ac_cv_lib_dld_shl_load=yes
10404else
10405  echo "$as_me: failed program was:" >&5
10406sed 's/^/| /' conftest.$ac_ext >&5
10407
10408ac_cv_lib_dld_shl_load=no
10409fi
10410rm -f conftest.err conftest.$ac_objext \
10411      conftest$ac_exeext conftest.$ac_ext
10412LIBS=$ac_check_lib_save_LIBS
10413fi
10414echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10415echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10416if test $ac_cv_lib_dld_shl_load = yes; then
10417  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10418else
10419  echo "$as_me:$LINENO: checking for dlopen" >&5
10420echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10421if test "${ac_cv_func_dlopen+set}" = set; then
10422  echo $ECHO_N "(cached) $ECHO_C" >&6
10423else
10424  cat >conftest.$ac_ext <<_ACEOF
10425/* confdefs.h.  */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h.  */
10430/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10431   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10432#define dlopen innocuous_dlopen
10433
10434/* System header to define __stub macros and hopefully few prototypes,
10435    which can conflict with char dlopen (); below.
10436    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10437    <limits.h> exists even on freestanding compilers.  */
10438
10439#ifdef __STDC__
10440# include <limits.h>
10441#else
10442# include <assert.h>
10443#endif
10444
10445#undef dlopen
10446
10447/* Override any gcc2 internal prototype to avoid an error.  */
10448#ifdef __cplusplus
10449extern "C"
10450{
10451#endif
10452/* We use char because int might match the return type of a gcc2
10453   builtin and then its argument prototype would still apply.  */
10454char dlopen ();
10455/* The GNU C library defines this for functions which it implements
10456    to always fail with ENOSYS.  Some functions are actually named
10457    something starting with __ and the normal name is an alias.  */
10458#if defined (__stub_dlopen) || defined (__stub___dlopen)
10459choke me
10460#else
10461char (*f) () = dlopen;
10462#endif
10463#ifdef __cplusplus
10464}
10465#endif
10466
10467int
10468main ()
10469{
10470return f != dlopen;
10471  ;
10472  return 0;
10473}
10474_ACEOF
10475rm -f conftest.$ac_objext conftest$ac_exeext
10476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477  (eval $ac_link) 2>conftest.er1
10478  ac_status=$?
10479  grep -v '^ *+' conftest.er1 >conftest.err
10480  rm -f conftest.er1
10481  cat conftest.err >&5
10482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483  (exit $ac_status); } &&
10484         { ac_try='test -z "$ac_c_werror_flag"
10485                         || test ! -s conftest.err'
10486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487  (eval $ac_try) 2>&5
10488  ac_status=$?
10489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490  (exit $ac_status); }; } &&
10491         { ac_try='test -s conftest$ac_exeext'
10492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493  (eval $ac_try) 2>&5
10494  ac_status=$?
10495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496  (exit $ac_status); }; }; then
10497  ac_cv_func_dlopen=yes
10498else
10499  echo "$as_me: failed program was:" >&5
10500sed 's/^/| /' conftest.$ac_ext >&5
10501
10502ac_cv_func_dlopen=no
10503fi
10504rm -f conftest.err conftest.$ac_objext \
10505      conftest$ac_exeext conftest.$ac_ext
10506fi
10507echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10508echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10509if test $ac_cv_func_dlopen = yes; then
10510  lt_cv_dlopen="dlopen"
10511else
10512  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10513echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10514if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10515  echo $ECHO_N "(cached) $ECHO_C" >&6
10516else
10517  ac_check_lib_save_LIBS=$LIBS
10518LIBS="-ldl  $LIBS"
10519cat >conftest.$ac_ext <<_ACEOF
10520/* confdefs.h.  */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h.  */
10525
10526/* Override any gcc2 internal prototype to avoid an error.  */
10527#ifdef __cplusplus
10528extern "C"
10529#endif
10530/* We use char because int might match the return type of a gcc2
10531   builtin and then its argument prototype would still apply.  */
10532char dlopen ();
10533int
10534main ()
10535{
10536dlopen ();
10537  ;
10538  return 0;
10539}
10540_ACEOF
10541rm -f conftest.$ac_objext conftest$ac_exeext
10542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543  (eval $ac_link) 2>conftest.er1
10544  ac_status=$?
10545  grep -v '^ *+' conftest.er1 >conftest.err
10546  rm -f conftest.er1
10547  cat conftest.err >&5
10548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549  (exit $ac_status); } &&
10550         { ac_try='test -z "$ac_c_werror_flag"
10551                         || test ! -s conftest.err'
10552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553  (eval $ac_try) 2>&5
10554  ac_status=$?
10555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556  (exit $ac_status); }; } &&
10557         { ac_try='test -s conftest$ac_exeext'
10558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559  (eval $ac_try) 2>&5
10560  ac_status=$?
10561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562  (exit $ac_status); }; }; then
10563  ac_cv_lib_dl_dlopen=yes
10564else
10565  echo "$as_me: failed program was:" >&5
10566sed 's/^/| /' conftest.$ac_ext >&5
10567
10568ac_cv_lib_dl_dlopen=no
10569fi
10570rm -f conftest.err conftest.$ac_objext \
10571      conftest$ac_exeext conftest.$ac_ext
10572LIBS=$ac_check_lib_save_LIBS
10573fi
10574echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10575echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10576if test $ac_cv_lib_dl_dlopen = yes; then
10577  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10578else
10579  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10580echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10581if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10582  echo $ECHO_N "(cached) $ECHO_C" >&6
10583else
10584  ac_check_lib_save_LIBS=$LIBS
10585LIBS="-lsvld  $LIBS"
10586cat >conftest.$ac_ext <<_ACEOF
10587/* confdefs.h.  */
10588_ACEOF
10589cat confdefs.h >>conftest.$ac_ext
10590cat >>conftest.$ac_ext <<_ACEOF
10591/* end confdefs.h.  */
10592
10593/* Override any gcc2 internal prototype to avoid an error.  */
10594#ifdef __cplusplus
10595extern "C"
10596#endif
10597/* We use char because int might match the return type of a gcc2
10598   builtin and then its argument prototype would still apply.  */
10599char dlopen ();
10600int
10601main ()
10602{
10603dlopen ();
10604  ;
10605  return 0;
10606}
10607_ACEOF
10608rm -f conftest.$ac_objext conftest$ac_exeext
10609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610  (eval $ac_link) 2>conftest.er1
10611  ac_status=$?
10612  grep -v '^ *+' conftest.er1 >conftest.err
10613  rm -f conftest.er1
10614  cat conftest.err >&5
10615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); } &&
10617         { ac_try='test -z "$ac_c_werror_flag"
10618                         || test ! -s conftest.err'
10619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620  (eval $ac_try) 2>&5
10621  ac_status=$?
10622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623  (exit $ac_status); }; } &&
10624         { ac_try='test -s conftest$ac_exeext'
10625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626  (eval $ac_try) 2>&5
10627  ac_status=$?
10628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629  (exit $ac_status); }; }; then
10630  ac_cv_lib_svld_dlopen=yes
10631else
10632  echo "$as_me: failed program was:" >&5
10633sed 's/^/| /' conftest.$ac_ext >&5
10634
10635ac_cv_lib_svld_dlopen=no
10636fi
10637rm -f conftest.err conftest.$ac_objext \
10638      conftest$ac_exeext conftest.$ac_ext
10639LIBS=$ac_check_lib_save_LIBS
10640fi
10641echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10642echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10643if test $ac_cv_lib_svld_dlopen = yes; then
10644  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10645else
10646  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10647echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10648if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10649  echo $ECHO_N "(cached) $ECHO_C" >&6
10650else
10651  ac_check_lib_save_LIBS=$LIBS
10652LIBS="-ldld  $LIBS"
10653cat >conftest.$ac_ext <<_ACEOF
10654/* confdefs.h.  */
10655_ACEOF
10656cat confdefs.h >>conftest.$ac_ext
10657cat >>conftest.$ac_ext <<_ACEOF
10658/* end confdefs.h.  */
10659
10660/* Override any gcc2 internal prototype to avoid an error.  */
10661#ifdef __cplusplus
10662extern "C"
10663#endif
10664/* We use char because int might match the return type of a gcc2
10665   builtin and then its argument prototype would still apply.  */
10666char dld_link ();
10667int
10668main ()
10669{
10670dld_link ();
10671  ;
10672  return 0;
10673}
10674_ACEOF
10675rm -f conftest.$ac_objext conftest$ac_exeext
10676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10677  (eval $ac_link) 2>conftest.er1
10678  ac_status=$?
10679  grep -v '^ *+' conftest.er1 >conftest.err
10680  rm -f conftest.er1
10681  cat conftest.err >&5
10682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683  (exit $ac_status); } &&
10684         { ac_try='test -z "$ac_c_werror_flag"
10685                         || test ! -s conftest.err'
10686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687  (eval $ac_try) 2>&5
10688  ac_status=$?
10689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690  (exit $ac_status); }; } &&
10691         { ac_try='test -s conftest$ac_exeext'
10692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693  (eval $ac_try) 2>&5
10694  ac_status=$?
10695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696  (exit $ac_status); }; }; then
10697  ac_cv_lib_dld_dld_link=yes
10698else
10699  echo "$as_me: failed program was:" >&5
10700sed 's/^/| /' conftest.$ac_ext >&5
10701
10702ac_cv_lib_dld_dld_link=no
10703fi
10704rm -f conftest.err conftest.$ac_objext \
10705      conftest$ac_exeext conftest.$ac_ext
10706LIBS=$ac_check_lib_save_LIBS
10707fi
10708echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10709echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10710if test $ac_cv_lib_dld_dld_link = yes; then
10711  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10712fi
10713
10714
10715fi
10716
10717
10718fi
10719
10720
10721fi
10722
10723
10724fi
10725
10726
10727fi
10728
10729    ;;
10730  esac
10731
10732  if test "x$lt_cv_dlopen" != xno; then
10733    enable_dlopen=yes
10734  else
10735    enable_dlopen=no
10736  fi
10737
10738  case $lt_cv_dlopen in
10739  dlopen)
10740    save_CPPFLAGS="$CPPFLAGS"
10741    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10742
10743    save_LDFLAGS="$LDFLAGS"
10744    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDF