source: ThirdParty/SCIP/trunk/configure @ 2581

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

adapt buildsystem for upcoming SCIP 3.0

  • Property svn:executable set to *
File size: 888.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyScip trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2011 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyScip'
431PACKAGE_TARNAME='thirdpartyscip'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyScip trunk'
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 LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED SOPLEX_LIBS SOPLEX_CFLAGS SOPLEX_DATA SOPLEX_DEPENDENCIES SOPLEX_LIBS_INSTALLED SOPLEX_CFLAGS_INSTALLED SOPLEX_DATA_INSTALLED COIN_HAS_SOPLEX_TRUE COIN_HAS_SOPLEX_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GRBINCDIR GRBLIB COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE QSOINCDIR QSOLIB COIN_HAS_QSO_TRUE COIN_HAS_QSO_FALSE SCIPLPI_SPX_TRUE SCIPLPI_SPX_FALSE SCIPLPI_CLP_TRUE SCIPLPI_CLP_FALSE SCIPLPI_CPX_TRUE SCIPLPI_CPX_FALSE SCIPLPI_MSK_TRUE SCIPLPI_MSK_FALSE SCIPLPI_XPR_TRUE SCIPLPI_XPR_FALSE SCIPLPI_GRB_TRUE SCIPLPI_GRB_FALSE SCIPLPI_QSO_TRUE SCIPLPI_QSO_FALSE SCIPLPI_NONE_TRUE SCIPLPI_NONE_FALSE IPOPT_LIBS IPOPT_CFLAGS IPOPT_DATA IPOPT_DEPENDENCIES IPOPT_LIBS_INSTALLED IPOPT_CFLAGS_INSTALLED IPOPT_DATA_INSTALLED SCIPLIB_CFLAGS SCIPLIB_LIBS SCIPLIB_PCLIBS SCIPLIB_PCREQUIRES SCIPLIB_DEPENDENCIES SCIPLIB_CFLAGS_INSTALLED SCIPLIB_LIBS_INSTALLED COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE CPPAD_LIBS CPPAD_CFLAGS CPPAD_DATA CPPAD_DEPENDENCIES CPPAD_LIBS_INSTALLED CPPAD_CFLAGS_INSTALLED CPPAD_DATA_INSTALLED COIN_HAS_CPPAD_TRUE COIN_HAS_CPPAD_FALSE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyScip trunk 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 trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-scip compile project SCIP with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100  --disable-pkg-config    disable use of pkg-config (if available)
1101  --disable-interpackage-dependencies
1102                          disables deduction of Makefile dependencies from
1103                          package linker flags
1104  --disable-cplex-libcheck
1105                          skip the link check at configuration time
1106  --disable-mosek-libcheck
1107                          skip the link check at configuration time
1108  --disable-xpress-libcheck
1109                          skip the link check at configuration time
1110  --disable-gurobi-libcheck
1111                          skip the link check at configuration time
1112  --disable-qsopt-libcheck
1113                          skip the link check at configuration time
1114  --disable-zlib          do not compile with compression library zlib
1115  --disable-gmp           do not compile with GNU multiple precision library
1116  --enable-gnu-packages   compile with GNU packages (disabled by default)
1117
1118Optional Packages:
1119  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1120  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1121  --with-scip-verbosity specify the debug verbosity level for project SCIP
1122  --with-scip-checklevel specify the sanity check level for project SCIP
1123  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1124  --with-pic              try to use only PIC/non-PIC objects [default=use
1125                          both]
1126  --with-tags[=TAGS]
1127                          include additional configurations [automatic]
1128  --with-coin-instdir     prefix of installation directory for precompiled
1129                          COIN packages
1130
1131  --with-soplex-lib linker flags for using package SoPlex
1132  --with-soplex-incdir directory with header files for using package SoPlex
1133  --with-soplex-datadir directory with data files for using package SoPlex
1134  --with-clp-lib linker flags for using package Clp
1135  --with-clp-incdir directory with header files for using package Clp
1136  --with-clp-datadir directory with data files for using package Clp
1137  --with-cplex-incdir specify the header file directory for library Cplex
1138  --with-cplex-lib specify the flags used to link with the library Cplex
1139  --with-mosek-incdir specify the header file directory for library Mosek
1140  --with-mosek-lib specify the flags used to link with the library Mosek
1141  --with-xpress-incdir specify the header file directory for library Xpress
1142  --with-xpress-lib specify the flags used to link with the library Xpress
1143  --with-gurobi-incdir specify the header file directory for library Gurobi
1144  --with-gurobi-lib specify the flags used to link with the library Gurobi
1145  --with-qsopt-incdir specify the header file directory for library QSopt
1146  --with-qsopt-lib specify the flags used to link with the library QSopt
1147  --with-scip-lpsolver    specify LP solver to use in SCIP (soplex, clp,
1148                          cplex, mosek, xpress, gurobi, qsopt, none)
1149  --with-ipopt-lib linker flags for using package Ipopt
1150  --with-ipopt-incdir directory with header files for using package Ipopt
1151  --with-ipopt-datadir directory with data files for using package Ipopt
1152  --with-cppad-lib linker flags for using package CppAD
1153  --with-cppad-incdir directory with header files for using package CppAD
1154  --with-cppad-datadir directory with data files for using package CppAD
1155
1156Some influential environment variables:
1157  CDEFS       Additional -D flags to be used when compiling C code.
1158  ADD_CFLAGS  Additional C compiler options
1159  DBG_CFLAGS  Debug C compiler options
1160  OPT_CFLAGS  Optimize C compiler options
1161  CC          C compiler command
1162  CFLAGS      C compiler flags
1163  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1164              nonstandard directory <lib dir>
1165  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1166              headers in a nonstandard directory <include dir>
1167  MPICC       C MPI Compiler
1168  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1169  ADD_CXXFLAGS
1170              Additional C++ compiler options
1171  DBG_CXXFLAGS
1172              Debug C++ compiler options
1173  OPT_CXXFLAGS
1174              Optimize C++ compiler options
1175  CXX         C++ compiler command
1176  CXXFLAGS    C++ compiler flags
1177  MPICXX      C++ MPI Compiler
1178  CPP         C preprocessor
1179  CXXCPP      C++ preprocessor
1180  F77         Fortran 77 compiler command
1181  FFLAGS      Fortran 77 compiler flags
1182  PKG_CONFIG  path to pkg-config utility
1183
1184Use these variables to override the choices made by `configure' or to help
1185it to find libraries and programs with nonstandard names/locations.
1186
1187Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1188_ACEOF
1189fi
1190
1191if test "$ac_init_help" = "recursive"; then
1192  # If there are subdirs, report their specific --help.
1193  ac_popdir=`pwd`
1194  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1195    test -d $ac_dir || continue
1196    ac_builddir=.
1197
1198if test "$ac_dir" != .; then
1199  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1200  # A "../" for each directory in $ac_dir_suffix.
1201  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1202else
1203  ac_dir_suffix= ac_top_builddir=
1204fi
1205
1206case $srcdir in
1207  .)  # No --srcdir option.  We are building in place.
1208    ac_srcdir=.
1209    if test -z "$ac_top_builddir"; then
1210       ac_top_srcdir=.
1211    else
1212       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1213    fi ;;
1214  [\\/]* | ?:[\\/]* )  # Absolute path.
1215    ac_srcdir=$srcdir$ac_dir_suffix;
1216    ac_top_srcdir=$srcdir ;;
1217  *) # Relative path.
1218    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1219    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1220esac
1221
1222# Do not use `cd foo && pwd` to compute absolute paths, because
1223# the directories may not exist.
1224case `pwd` in
1225.) ac_abs_builddir="$ac_dir";;
1226*)
1227  case "$ac_dir" in
1228  .) ac_abs_builddir=`pwd`;;
1229  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1230  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1231  esac;;
1232esac
1233case $ac_abs_builddir in
1234.) ac_abs_top_builddir=${ac_top_builddir}.;;
1235*)
1236  case ${ac_top_builddir}. in
1237  .) ac_abs_top_builddir=$ac_abs_builddir;;
1238  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1239  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1240  esac;;
1241esac
1242case $ac_abs_builddir in
1243.) ac_abs_srcdir=$ac_srcdir;;
1244*)
1245  case $ac_srcdir in
1246  .) ac_abs_srcdir=$ac_abs_builddir;;
1247  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1248  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1249  esac;;
1250esac
1251case $ac_abs_builddir in
1252.) ac_abs_top_srcdir=$ac_top_srcdir;;
1253*)
1254  case $ac_top_srcdir in
1255  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1256  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1257  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1258  esac;;
1259esac
1260
1261    cd $ac_dir
1262    # Check for guested configure; otherwise get Cygnus style configure.
1263    if test -f $ac_srcdir/configure.gnu; then
1264      echo
1265      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1266    elif test -f $ac_srcdir/configure; then
1267      echo
1268      $SHELL $ac_srcdir/configure  --help=recursive
1269    elif test -f $ac_srcdir/configure.ac ||
1270           test -f $ac_srcdir/configure.in; then
1271      echo
1272      $ac_configure --help
1273    else
1274      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1275    fi
1276    cd $ac_popdir
1277  done
1278fi
1279
1280test -n "$ac_init_help" && exit 0
1281if $ac_init_version; then
1282  cat <<\_ACEOF
1283ThirdPartyScip configure trunk
1284generated by GNU Autoconf 2.59
1285
1286Copyright (C) 2003 Free Software Foundation, Inc.
1287This configure script is free software; the Free Software Foundation
1288gives unlimited permission to copy, distribute and modify it.
1289
1290
1291Copyright 2011 Stefan Vigerske and others.
1292All Rights Reserved.
1293This file is part of the open source package COIN-OR which is distributed
1294under the Eclipse Public License.
1295_ACEOF
1296  exit 0
1297fi
1298exec 5>config.log
1299cat >&5 <<_ACEOF
1300This file contains any messages produced by compilers while
1301running configure, to aid debugging if configure makes a mistake.
1302
1303It was created by ThirdPartyScip $as_me trunk, which was
1304generated by GNU Autoconf 2.59.  Invocation command line was
1305
1306  $ $0 $@
1307
1308_ACEOF
1309{
1310cat <<_ASUNAME
1311## --------- ##
1312## Platform. ##
1313## --------- ##
1314
1315hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1316uname -m = `(uname -m) 2>/dev/null || echo unknown`
1317uname -r = `(uname -r) 2>/dev/null || echo unknown`
1318uname -s = `(uname -s) 2>/dev/null || echo unknown`
1319uname -v = `(uname -v) 2>/dev/null || echo unknown`
1320
1321/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1322/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1323
1324/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1325/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1326/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1327hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1328/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1329/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1330/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1331
1332_ASUNAME
1333
1334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1335for as_dir in $PATH
1336do
1337  IFS=$as_save_IFS
1338  test -z "$as_dir" && as_dir=.
1339  echo "PATH: $as_dir"
1340done
1341
1342} >&5
1343
1344cat >&5 <<_ACEOF
1345
1346
1347## ----------- ##
1348## Core tests. ##
1349## ----------- ##
1350
1351_ACEOF
1352
1353
1354# Keep a trace of the command line.
1355# Strip out --no-create and --no-recursion so they do not pile up.
1356# Strip out --silent because we don't want to record it for future runs.
1357# Also quote any args containing shell meta-characters.
1358# Make two passes to allow for proper duplicate-argument suppression.
1359ac_configure_args=
1360ac_configure_args0=
1361ac_configure_args1=
1362ac_sep=
1363ac_must_keep_next=false
1364for ac_pass in 1 2
1365do
1366  for ac_arg
1367  do
1368    case $ac_arg in
1369    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1370    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1371    | -silent | --silent | --silen | --sile | --sil)
1372      continue ;;
1373    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1374      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1375    esac
1376    case $ac_pass in
1377    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1378    2)
1379      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1380      if test $ac_must_keep_next = true; then
1381        ac_must_keep_next=false # Got value, back to normal.
1382      else
1383        case $ac_arg in
1384          *=* | --config-cache | -C | -disable-* | --disable-* \
1385          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1386          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1387          | -with-* | --with-* | -without-* | --without-* | --x)
1388            case "$ac_configure_args0 " in
1389              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1390            esac
1391            ;;
1392          -* ) ac_must_keep_next=true ;;
1393        esac
1394      fi
1395      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1396      # Get rid of the leading space.
1397      ac_sep=" "
1398      ;;
1399    esac
1400  done
1401done
1402$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1403$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1404
1405# When interrupted or exit'd, cleanup temporary files, and complete
1406# config.log.  We remove comments because anyway the quotes in there
1407# would cause problems or look ugly.
1408# WARNING: Be sure not to use single quotes in there, as some shells,
1409# such as our DU 5.0 friend, will then `close' the trap.
1410trap 'exit_status=$?
1411  # Save into config.log some information that might help in debugging.
1412  {
1413    echo
1414
1415    cat <<\_ASBOX
1416## ---------------- ##
1417## Cache variables. ##
1418## ---------------- ##
1419_ASBOX
1420    echo
1421    # The following way of writing the cache mishandles newlines in values,
1422{
1423  (set) 2>&1 |
1424    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1425    *ac_space=\ *)
1426      sed -n \
1427        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1428          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1429      ;;
1430    *)
1431      sed -n \
1432        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1433      ;;
1434    esac;
1435}
1436    echo
1437
1438    cat <<\_ASBOX
1439## ----------------- ##
1440## Output variables. ##
1441## ----------------- ##
1442_ASBOX
1443    echo
1444    for ac_var in $ac_subst_vars
1445    do
1446      eval ac_val=$`echo $ac_var`
1447      echo "$ac_var='"'"'$ac_val'"'"'"
1448    done | sort
1449    echo
1450
1451    if test -n "$ac_subst_files"; then
1452      cat <<\_ASBOX
1453## ------------- ##
1454## Output files. ##
1455## ------------- ##
1456_ASBOX
1457      echo
1458      for ac_var in $ac_subst_files
1459      do
1460        eval ac_val=$`echo $ac_var`
1461        echo "$ac_var='"'"'$ac_val'"'"'"
1462      done | sort
1463      echo
1464    fi
1465
1466    if test -s confdefs.h; then
1467      cat <<\_ASBOX
1468## ----------- ##
1469## confdefs.h. ##
1470## ----------- ##
1471_ASBOX
1472      echo
1473      sed "/^$/d" confdefs.h | sort
1474      echo
1475    fi
1476    test "$ac_signal" != 0 &&
1477      echo "$as_me: caught signal $ac_signal"
1478    echo "$as_me: exit $exit_status"
1479  } >&5
1480  rm -f core *.core &&
1481  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1482    exit $exit_status
1483     ' 0
1484for ac_signal in 1 2 13 15; do
1485  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1486done
1487ac_signal=0
1488
1489# confdefs.h avoids OS command line length limits that DEFS can exceed.
1490rm -rf conftest* confdefs.h
1491# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1492echo >confdefs.h
1493
1494# Predefined preprocessor variables.
1495
1496cat >>confdefs.h <<_ACEOF
1497#define PACKAGE_NAME "$PACKAGE_NAME"
1498_ACEOF
1499
1500
1501cat >>confdefs.h <<_ACEOF
1502#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1503_ACEOF
1504
1505
1506cat >>confdefs.h <<_ACEOF
1507#define PACKAGE_VERSION "$PACKAGE_VERSION"
1508_ACEOF
1509
1510
1511cat >>confdefs.h <<_ACEOF
1512#define PACKAGE_STRING "$PACKAGE_STRING"
1513_ACEOF
1514
1515
1516cat >>confdefs.h <<_ACEOF
1517#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1518_ACEOF
1519
1520
1521# Let the site file select an alternate cache file if it wants to.
1522# Prefer explicitly selected file to automatically selected ones.
1523if test -z "$CONFIG_SITE"; then
1524  if test "x$prefix" != xNONE; then
1525    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1526  else
1527    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1528  fi
1529fi
1530for ac_site_file in $CONFIG_SITE; do
1531  if test -r "$ac_site_file"; then
1532    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1533echo "$as_me: loading site script $ac_site_file" >&6;}
1534    sed 's/^/| /' "$ac_site_file" >&5
1535    . "$ac_site_file"
1536  fi
1537done
1538
1539if test -r "$cache_file"; then
1540  # Some versions of bash will fail to source /dev/null (special
1541  # files actually), so we avoid doing that.
1542  if test -f "$cache_file"; then
1543    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1544echo "$as_me: loading cache $cache_file" >&6;}
1545    case $cache_file in
1546      [\\/]* | ?:[\\/]* ) . $cache_file;;
1547      *)                      . ./$cache_file;;
1548    esac
1549  fi
1550else
1551  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1552echo "$as_me: creating cache $cache_file" >&6;}
1553  >$cache_file
1554fi
1555
1556# Check that the precious variables saved in the cache have kept the same
1557# value.
1558ac_cache_corrupted=false
1559for ac_var in `(set) 2>&1 |
1560               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1561  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1562  eval ac_new_set=\$ac_env_${ac_var}_set
1563  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1564  eval ac_new_val="\$ac_env_${ac_var}_value"
1565  case $ac_old_set,$ac_new_set in
1566    set,)
1567      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1568echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1569      ac_cache_corrupted=: ;;
1570    ,set)
1571      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1572echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1573      ac_cache_corrupted=: ;;
1574    ,);;
1575    *)
1576      if test "x$ac_old_val" != "x$ac_new_val"; then
1577        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1578echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1579        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1580echo "$as_me:   former value:  $ac_old_val" >&2;}
1581        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1582echo "$as_me:   current value: $ac_new_val" >&2;}
1583        ac_cache_corrupted=:
1584      fi;;
1585  esac
1586  # Pass precious variables to config.status.
1587  if test "$ac_new_set" = set; then
1588    case $ac_new_val in
1589    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1590      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1591    *) ac_arg=$ac_var=$ac_new_val ;;
1592    esac
1593    case " $ac_configure_args " in
1594      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1595      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1596    esac
1597  fi
1598done
1599if $ac_cache_corrupted; then
1600  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1601echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1602  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1603echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1604   { (exit 1); exit 1; }; }
1605fi
1606
1607ac_ext=c
1608ac_cpp='$CPP $CPPFLAGS'
1609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1611ac_compiler_gnu=$ac_cv_c_compiler_gnu
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642# List one file in the package so that the configure script can test
1643# whether the package is actually there
1644
1645
1646# Where should everything be installed by default?  Here, we want it
1647# to be installed directly in 'bin', 'lib', 'include' subdirectories
1648# of the directory where configure is run.  The default would be
1649# /usr/local.
1650
1651
1652
1653# As backup, we make sure we don't loose an FLIBS if it has been set
1654# by the user
1655save_FLIBS="$FLIBS"
1656
1657# A useful makefile conditional that is always false
1658
1659
1660if false; then
1661  ALWAYS_FALSE_TRUE=
1662  ALWAYS_FALSE_FALSE='#'
1663else
1664  ALWAYS_FALSE_TRUE='#'
1665  ALWAYS_FALSE_FALSE=
1666fi
1667
1668
1669# We set the following variable so that we know later in AC_COIN_FINALIZE
1670# that we are in a project main directory
1671coin_projectdir=yes
1672
1673# Set the project's version numbers
1674
1675
1676cat >>confdefs.h <<_ACEOF
1677#define SCIP_VERSION "$PACKAGE_VERSION"
1678_ACEOF
1679
1680
1681  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1682  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1683  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1684  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1685  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1686  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1687
1688cat >>confdefs.h <<_ACEOF
1689#define SCIP_VERSION_MAJOR $coin_majorver
1690_ACEOF
1691
1692
1693cat >>confdefs.h <<_ACEOF
1694#define SCIP_VERSION_MINOR $coin_minorver
1695_ACEOF
1696
1697
1698cat >>confdefs.h <<_ACEOF
1699#define SCIP_VERSION_RELEASE $coin_releasever
1700_ACEOF
1701
1702
1703  # We use the following variable to have a string with the upper case
1704  # version of the project name
1705  COIN_PRJCT=SCIP
1706
1707  # Set the project's SVN revision number. The complicated sed expression
1708  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1709  # as a single number.
1710  # Extract the first word of "svnversion", so it can be a program name with args.
1711set dummy svnversion; ac_word=$2
1712echo "$as_me:$LINENO: checking for $ac_word" >&5
1713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714if test "${ac_cv_prog_have_svnversion+set}" = set; then
1715  echo $ECHO_N "(cached) $ECHO_C" >&6
1716else
1717  if test -n "$have_svnversion"; then
1718  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1719else
1720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721for as_dir in $PATH
1722do
1723  IFS=$as_save_IFS
1724  test -z "$as_dir" && as_dir=.
1725  for ac_exec_ext in '' $ac_executable_extensions; do
1726  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727    ac_cv_prog_have_svnversion="yes"
1728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729    break 2
1730  fi
1731done
1732done
1733
1734  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1735fi
1736fi
1737have_svnversion=$ac_cv_prog_have_svnversion
1738if test -n "$have_svnversion"; then
1739  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1740echo "${ECHO_T}$have_svnversion" >&6
1741else
1742  echo "$as_me:$LINENO: result: no" >&5
1743echo "${ECHO_T}no" >&6
1744fi
1745
1746  if test "x$have_svnversion" = xyes; then
1747
1748    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1749    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1750      SCIP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1751
1752cat >>confdefs.h <<_ACEOF
1753#define SCIP_SVN_REV $SCIP_SVN_REV
1754_ACEOF
1755
1756    fi
1757  fi
1758
1759
1760
1761# Capture libtool library version, if given.
1762
1763
1764
1765
1766#############################################################################
1767#                         Standard build tool stuff                         #
1768#############################################################################
1769
1770# Get the system type
1771ac_aux_dir=
1772for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1773  if test -f $ac_dir/install-sh; then
1774    ac_aux_dir=$ac_dir
1775    ac_install_sh="$ac_aux_dir/install-sh -c"
1776    break
1777  elif test -f $ac_dir/install.sh; then
1778    ac_aux_dir=$ac_dir
1779    ac_install_sh="$ac_aux_dir/install.sh -c"
1780    break
1781  elif test -f $ac_dir/shtool; then
1782    ac_aux_dir=$ac_dir
1783    ac_install_sh="$ac_aux_dir/shtool install -c"
1784    break
1785  fi
1786done
1787if test -z "$ac_aux_dir"; then
1788  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1789echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1790   { (exit 1); exit 1; }; }
1791fi
1792ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1793ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1794ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1795
1796# Make sure we can run config.sub.
1797$ac_config_sub sun4 >/dev/null 2>&1 ||
1798  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1799echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1800   { (exit 1); exit 1; }; }
1801
1802echo "$as_me:$LINENO: checking build system type" >&5
1803echo $ECHO_N "checking build system type... $ECHO_C" >&6
1804if test "${ac_cv_build+set}" = set; then
1805  echo $ECHO_N "(cached) $ECHO_C" >&6
1806else
1807  ac_cv_build_alias=$build_alias
1808test -z "$ac_cv_build_alias" &&
1809  ac_cv_build_alias=`$ac_config_guess`
1810test -z "$ac_cv_build_alias" &&
1811  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1812echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1813   { (exit 1); exit 1; }; }
1814ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1815  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1816echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1817   { (exit 1); exit 1; }; }
1818
1819fi
1820echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1821echo "${ECHO_T}$ac_cv_build" >&6
1822build=$ac_cv_build
1823build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1824build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1825build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1826
1827
1828
1829# Check if user wants to produce debugging code
1830
1831echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1832echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1833
1834# Check whether --enable-debug or --disable-debug was given.
1835if test "${enable_debug+set}" = set; then
1836  enableval="$enable_debug"
1837  case "${enableval}" in
1838   yes) coin_debug_compile=true
1839        if test "${enable_shared+set}" = set; then :; else
1840          enable_shared=no
1841        fi
1842        ;;
1843   no)  coin_debug_compile=false
1844        ;;
1845   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1846echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1847   { (exit 1); exit 1; }; }
1848        ;;
1849esac
1850else
1851  coin_debug_compile=false
1852fi;
1853
1854# Check whether --enable-debug-scip or --disable-debug-scip was given.
1855if test "${enable_debug_scip+set}" = set; then
1856  enableval="$enable_debug_scip"
1857  case "${enableval}" in
1858    yes) coin_debug_compile=true
1859         ;;
1860    no)  coin_debug_compile=false
1861         ;;
1862    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-scip" >&5
1863echo "$as_me: error: bad value ${enableval} for --enable-debug-scip" >&2;}
1864   { (exit 1); exit 1; }; }
1865         ;;
1866 esac
1867else
1868  :
1869fi;
1870
1871 # m4_ifvaln([SCIP],
1872
1873if test $coin_debug_compile = true; then
1874  echo "$as_me:$LINENO: result: yes" >&5
1875echo "${ECHO_T}yes" >&6
1876else
1877  echo "$as_me:$LINENO: result: no" >&5
1878echo "${ECHO_T}no" >&6
1879fi
1880
1881
1882# Check whether --with-scip-verbosity or --without-scip-verbosity was given.
1883if test "${with_scip_verbosity+set}" = set; then
1884  withval="$with_scip_verbosity"
1885  if test "$withval" = yes; then
1886                withval=1
1887              fi
1888              coin_scip_verbosity=$withval
1889else
1890  coin_scip_verbosity=0
1891fi;
1892
1893cat >>confdefs.h <<_ACEOF
1894#define COIN_SCIP_VERBOSITY $coin_scip_verbosity
1895_ACEOF
1896
1897
1898
1899# Check whether --with-scip-checklevel or --without-scip-checklevel was given.
1900if test "${with_scip_checklevel+set}" = set; then
1901  withval="$with_scip_checklevel"
1902  if test "$withval" = yes; then
1903                withval=1
1904              fi
1905              coin_scip_checklevel=$withval
1906else
1907  coin_scip_checklevel=0
1908fi;
1909
1910cat >>confdefs.h <<_ACEOF
1911#define COIN_SCIP_CHECKLEVEL $coin_scip_checklevel
1912_ACEOF
1913
1914
1915 # m4_ifvaln([SCIP],
1916
1917
1918
1919# Get the name of the C compiler and appropriate compiler options
1920case $build in
1921  *-mingw*)
1922    if test "${LD+set}" = set; then :; else
1923      LD=link
1924    fi
1925    ;;
1926 esac
1927 case $enable_doscompile in
1928   msvc)
1929     if test "x${LD+set}" = xset; then :; else
1930       LD=link
1931     fi
1932     ;;
1933 esac
1934
1935
1936 # Check whether --enable-doscompile or --disable-doscompile was given.
1937if test "${enable_doscompile+set}" = set; then
1938  enableval="$enable_doscompile"
1939  if test "$enable_doscompile" != no; then
1940     case $build in
1941       *-cygwin* | *-mingw*) ;;
1942       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1943echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1944   { (exit 1); exit 1; }; } ;;
1945     esac
1946   fi
1947else
1948  enable_doscompile=no
1949fi;
1950 case "$enable_doscompile" in
1951   mingw)
1952     case $build in
1953       *-mingw*) enable_doscompile=no ;;
1954     esac
1955     ;;
1956   msvc|no) ;;
1957   yes) enable_doscompile=mingw ;;
1958   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1959                    Try configure --help=recursive." >&5
1960echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1961                    Try configure --help=recursive." >&2;}
1962   { (exit 1); exit 1; }; }
1963      ;;
1964  esac
1965  if test "$enable_doscompile" != no ; then
1966    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1967echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1968  fi
1969
1970
1971
1972
1973ac_ext=c
1974ac_cpp='$CPP $CPPFLAGS'
1975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978
1979
1980# For consistency, we set the C compiler to the same value of the C++
1981# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1982if test x"$CXX" != x; then
1983  case "$CXX" in
1984    clang* ) ;;
1985    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1986      if test x"$CC" = x; then
1987        CC="$CXX"
1988        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1989echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1990      fi
1991      ;;
1992  esac
1993fi
1994
1995
1996
1997
1998
1999
2000coin_has_cc=yes
2001
2002save_cflags="$CFLAGS"
2003
2004# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2005# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2006# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2007# compiler. In this case, put cc after gcc.
2008
2009case $build in
2010  *-cygwin* | *-mingw*)
2011             if test "$enable_doscompile" = msvc ; then
2012               comps="icl cl"
2013             else
2014               comps="gcc cl"
2015             fi ;;
2016  *-*-solaris*)
2017             # Extract the first word of "cc", so it can be a program name with args.
2018set dummy cc; ac_word=$2
2019echo "$as_me:$LINENO: checking for $ac_word" >&5
2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2022  echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024  if test -n "$sol_cc_compiler"; then
2025  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2026else
2027  ac_prog_rejected=no
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031  IFS=$as_save_IFS
2032  test -z "$as_dir" && as_dir=.
2033  for ac_exec_ext in '' $ac_executable_extensions; do
2034  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2036       ac_prog_rejected=yes
2037       continue
2038     fi
2039    ac_cv_prog_sol_cc_compiler="cc"
2040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041    break 2
2042  fi
2043done
2044done
2045
2046if test $ac_prog_rejected = yes; then
2047  # We found a bogon in the path, so make sure we never use it.
2048  set dummy $ac_cv_prog_sol_cc_compiler
2049  shift
2050  if test $# != 0; then
2051    # We chose a different compiler from the bogus one.
2052    # However, it has the same basename, so the bogon will be chosen
2053    # first if we set sol_cc_compiler to just the basename; use the full file name.
2054    shift
2055    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2056  fi
2057fi
2058fi
2059fi
2060sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2061if test -n "$sol_cc_compiler"; then
2062  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2063echo "${ECHO_T}$sol_cc_compiler" >&6
2064else
2065  echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6
2067fi
2068
2069             if test "$sol_cc_compiler" = "cc" ; then
2070               comps="cc xlc gcc pgcc icc"
2071             else
2072               comps="xlc gcc pgcc icc cc"
2073             fi
2074             ;;
2075  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2076  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2077  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2078esac
2079
2080# We delete the cached value, since the test might not have been
2081# performed with our choice of compilers earlier
2082$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2083# AC_MSG_NOTICE([C compiler candidates: $comps])
2084ac_ext=c
2085ac_cpp='$CPP $CPPFLAGS'
2086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089if test -n "$ac_tool_prefix"; then
2090  for ac_prog in $comps
2091  do
2092    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2094echo "$as_me:$LINENO: checking for $ac_word" >&5
2095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096if test "${ac_cv_prog_CC+set}" = set; then
2097  echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099  if test -n "$CC"; then
2100  ac_cv_prog_CC="$CC" # Let the user override the test.
2101else
2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105  IFS=$as_save_IFS
2106  test -z "$as_dir" && as_dir=.
2107  for ac_exec_ext in '' $ac_executable_extensions; do
2108  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111    break 2
2112  fi
2113done
2114done
2115
2116fi
2117fi
2118CC=$ac_cv_prog_CC
2119if test -n "$CC"; then
2120  echo "$as_me:$LINENO: result: $CC" >&5
2121echo "${ECHO_T}$CC" >&6
2122else
2123  echo "$as_me:$LINENO: result: no" >&5
2124echo "${ECHO_T}no" >&6
2125fi
2126
2127    test -n "$CC" && break
2128  done
2129fi
2130if test -z "$CC"; then
2131  ac_ct_CC=$CC
2132  for ac_prog in $comps
2133do
2134  # Extract the first word of "$ac_prog", so it can be a program name with args.
2135set dummy $ac_prog; ac_word=$2
2136echo "$as_me:$LINENO: checking for $ac_word" >&5
2137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139  echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141  if test -n "$ac_ct_CC"; then
2142  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143else
2144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147  IFS=$as_save_IFS
2148  test -z "$as_dir" && as_dir=.
2149  for ac_exec_ext in '' $ac_executable_extensions; do
2150  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151    ac_cv_prog_ac_ct_CC="$ac_prog"
2152    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153    break 2
2154  fi
2155done
2156done
2157
2158fi
2159fi
2160ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161if test -n "$ac_ct_CC"; then
2162  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163echo "${ECHO_T}$ac_ct_CC" >&6
2164else
2165  echo "$as_me:$LINENO: result: no" >&5
2166echo "${ECHO_T}no" >&6
2167fi
2168
2169  test -n "$ac_ct_CC" && break
2170done
2171
2172  CC=$ac_ct_CC
2173fi
2174
2175
2176test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2177See \`config.log' for more details." >&5
2178echo "$as_me: error: no acceptable C compiler found in \$PATH
2179See \`config.log' for more details." >&2;}
2180   { (exit 1); exit 1; }; }
2181
2182# Provide some information about the compiler.
2183echo "$as_me:$LINENO:" \
2184     "checking for C compiler version" >&5
2185ac_compiler=`set X $ac_compile; echo $2`
2186{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2187  (eval $ac_compiler --version </dev/null >&5) 2>&5
2188  ac_status=$?
2189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190  (exit $ac_status); }
2191{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2192  (eval $ac_compiler -v </dev/null >&5) 2>&5
2193  ac_status=$?
2194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195  (exit $ac_status); }
2196{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2197  (eval $ac_compiler -V </dev/null >&5) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }
2201
2202cat >conftest.$ac_ext <<_ACEOF
2203/* confdefs.h.  */
2204_ACEOF
2205cat confdefs.h >>conftest.$ac_ext
2206cat >>conftest.$ac_ext <<_ACEOF
2207/* end confdefs.h.  */
2208
2209int
2210main ()
2211{
2212
2213  ;
2214  return 0;
2215}
2216_ACEOF
2217ac_clean_files_save=$ac_clean_files
2218ac_clean_files="$ac_clean_files a.out a.exe b.out"
2219# Try to create an executable without -o first, disregard a.out.
2220# It will help us diagnose broken compilers, and finding out an intuition
2221# of exeext.
2222echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2223echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2224ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2225if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2226  (eval $ac_link_default) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }; then
2230  # Find the output, starting from the most likely.  This scheme is
2231# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2232# resort.
2233
2234# Be careful to initialize this variable, since it used to be cached.
2235# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2236ac_cv_exeext=
2237# b.out is created by i960 compilers.
2238for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2239do
2240  test -f "$ac_file" || continue
2241  case $ac_file in
2242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2243        ;;
2244    conftest.$ac_ext )
2245        # This is the source file.
2246        ;;
2247    [ab].out )
2248        # We found the default executable, but exeext='' is most
2249        # certainly right.
2250        break;;
2251    *.* )
2252        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253        # FIXME: I believe we export ac_cv_exeext for Libtool,
2254        # but it would be cool to find out if it's true.  Does anybody
2255        # maintain Libtool? --akim.
2256        export ac_cv_exeext
2257        break;;
2258    * )
2259        break;;
2260  esac
2261done
2262else
2263  echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2267See \`config.log' for more details." >&5
2268echo "$as_me: error: C compiler cannot create executables
2269See \`config.log' for more details." >&2;}
2270   { (exit 77); exit 77; }; }
2271fi
2272
2273ac_exeext=$ac_cv_exeext
2274echo "$as_me:$LINENO: result: $ac_file" >&5
2275echo "${ECHO_T}$ac_file" >&6
2276
2277# Check the compiler produces executables we can run.  If not, either
2278# the compiler is broken, or we cross compile.
2279echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2280echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2281# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2282# If not cross compiling, check that we can run a simple program.
2283if test "$cross_compiling" != yes; then
2284  if { ac_try='./$ac_file'
2285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286  (eval $ac_try) 2>&5
2287  ac_status=$?
2288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289  (exit $ac_status); }; }; then
2290    cross_compiling=no
2291  else
2292    if test "$cross_compiling" = maybe; then
2293        cross_compiling=yes
2294    else
2295        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2296If you meant to cross compile, use \`--host'.
2297See \`config.log' for more details." >&5
2298echo "$as_me: error: cannot run C compiled programs.
2299If you meant to cross compile, use \`--host'.
2300See \`config.log' for more details." >&2;}
2301   { (exit 1); exit 1; }; }
2302    fi
2303  fi
2304fi
2305echo "$as_me:$LINENO: result: yes" >&5
2306echo "${ECHO_T}yes" >&6
2307
2308rm -f a.out a.exe conftest$ac_cv_exeext b.out
2309ac_clean_files=$ac_clean_files_save
2310# Check the compiler produces executables we can run.  If not, either
2311# the compiler is broken, or we cross compile.
2312echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2313echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2314echo "$as_me:$LINENO: result: $cross_compiling" >&5
2315echo "${ECHO_T}$cross_compiling" >&6
2316
2317echo "$as_me:$LINENO: checking for suffix of executables" >&5
2318echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2320  (eval $ac_link) 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }; then
2324  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2325# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2326# work properly (i.e., refer to `conftest.exe'), while it won't with
2327# `rm'.
2328for ac_file in conftest.exe conftest conftest.*; do
2329  test -f "$ac_file" || continue
2330  case $ac_file in
2331    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2332    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333          export ac_cv_exeext
2334          break;;
2335    * ) break;;
2336  esac
2337done
2338else
2339  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2340See \`config.log' for more details." >&5
2341echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2342See \`config.log' for more details." >&2;}
2343   { (exit 1); exit 1; }; }
2344fi
2345
2346rm -f conftest$ac_cv_exeext
2347echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2348echo "${ECHO_T}$ac_cv_exeext" >&6
2349
2350rm -f conftest.$ac_ext
2351EXEEXT=$ac_cv_exeext
2352ac_exeext=$EXEEXT
2353echo "$as_me:$LINENO: checking for suffix of object files" >&5
2354echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2355if test "${ac_cv_objext+set}" = set; then
2356  echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358  cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h.  */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h.  */
2364
2365int
2366main ()
2367{
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373rm -f conftest.o conftest.obj
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375  (eval $ac_compile) 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; then
2379  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2380  case $ac_file in
2381    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2382    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383       break;;
2384  esac
2385done
2386else
2387  echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391See \`config.log' for more details." >&5
2392echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393See \`config.log' for more details." >&2;}
2394   { (exit 1); exit 1; }; }
2395fi
2396
2397rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398fi
2399echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400echo "${ECHO_T}$ac_cv_objext" >&6
2401OBJEXT=$ac_cv_objext
2402ac_objext=$OBJEXT
2403echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2404echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2405if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406  echo $ECHO_N "(cached) $ECHO_C" >&6
2407else
2408  cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h.  */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h.  */
2414
2415int
2416main ()
2417{
2418#ifndef __GNUC__
2419       choke me
2420#endif
2421
2422  ;
2423  return 0;
2424}
2425_ACEOF
2426rm -f conftest.$ac_objext
2427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428  (eval $ac_compile) 2>conftest.er1
2429  ac_status=$?
2430  grep -v '^ *+' conftest.er1 >conftest.err
2431  rm -f conftest.er1
2432  cat conftest.err >&5
2433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434  (exit $ac_status); } &&
2435         { ac_try='test -z "$ac_c_werror_flag"
2436                         || test ! -s conftest.err'
2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438  (eval $ac_try) 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; } &&
2442         { ac_try='test -s conftest.$ac_objext'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; }; then
2448  ac_compiler_gnu=yes
2449else
2450  echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453ac_compiler_gnu=no
2454fi
2455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458fi
2459echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2461GCC=`test $ac_compiler_gnu = yes && echo yes`
2462ac_test_CFLAGS=${CFLAGS+set}
2463ac_save_CFLAGS=$CFLAGS
2464CFLAGS="-g"
2465echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2467if test "${ac_cv_prog_cc_g+set}" = set; then
2468  echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470  cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h.  */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h.  */
2476
2477int
2478main ()
2479{
2480
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
2486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487  (eval $ac_compile) 2>conftest.er1
2488  ac_status=$?
2489  grep -v '^ *+' conftest.er1 >conftest.err
2490  rm -f conftest.er1
2491  cat conftest.err >&5
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); } &&
2494         { ac_try='test -z "$ac_c_werror_flag"
2495                         || test ! -s conftest.err'
2496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497  (eval $ac_try) 2>&5
2498  ac_status=$?
2499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500  (exit $ac_status); }; } &&
2501         { ac_try='test -s conftest.$ac_objext'
2502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503  (eval $ac_try) 2>&5
2504  ac_status=$?
2505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); }; }; then
2507  ac_cv_prog_cc_g=yes
2508else
2509  echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512ac_cv_prog_cc_g=no
2513fi
2514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515fi
2516echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2517echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2518if test "$ac_test_CFLAGS" = set; then
2519  CFLAGS=$ac_save_CFLAGS
2520elif test $ac_cv_prog_cc_g = yes; then
2521  if test "$GCC" = yes; then
2522    CFLAGS="-g -O2"
2523  else
2524    CFLAGS="-g"
2525  fi
2526else
2527  if test "$GCC" = yes; then
2528    CFLAGS="-O2"
2529  else
2530    CFLAGS=
2531  fi
2532fi
2533echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2534echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2535if test "${ac_cv_prog_cc_stdc+set}" = set; then
2536  echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538  ac_cv_prog_cc_stdc=no
2539ac_save_CC=$CC
2540cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h.  */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h.  */
2546#include <stdarg.h>
2547#include <stdio.h>
2548#include <sys/types.h>
2549#include <sys/stat.h>
2550/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2551struct buf { int x; };
2552FILE * (*rcsopen) (struct buf *, struct stat *, int);
2553static char *e (p, i)
2554     char **p;
2555     int i;
2556{
2557  return p[i];
2558}
2559static char *f (char * (*g) (char **, int), char **p, ...)
2560{
2561  char *s;
2562  va_list v;
2563  va_start (v,p);
2564  s = g (p, va_arg (v,int));
2565  va_end (v);
2566  return s;
2567}
2568
2569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2570   function prototypes and stuff, but not '\xHH' hex character constants.
2571   These don't provoke an error unfortunately, instead are silently treated
2572   as 'x'.  The following induces an error, until -std1 is added to get
2573   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2574   array size at least.  It's necessary to write '\x00'==0 to get something
2575   that's true only with -std1.  */
2576int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2577
2578int test (int i, double x);
2579struct s1 {int (*f) (int a);};
2580struct s2 {int (*f) (double a);};
2581int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2582int argc;
2583char **argv;
2584int
2585main ()
2586{
2587return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2588  ;
2589  return 0;
2590}
2591_ACEOF
2592# Don't try gcc -ansi; that turns off useful extensions and
2593# breaks some systems' header files.
2594# AIX                   -qlanglvl=ansi
2595# Ultrix and OSF/1      -std1
2596# HP-UX 10.20 and later -Ae
2597# HP-UX older versions  -Aa -D_HPUX_SOURCE
2598# SVR4                  -Xc -D__EXTENSIONS__
2599for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2600do
2601  CC="$ac_save_CC $ac_arg"
2602  rm -f conftest.$ac_objext
2603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604  (eval $ac_compile) 2>conftest.er1
2605  ac_status=$?
2606  grep -v '^ *+' conftest.er1 >conftest.err
2607  rm -f conftest.er1
2608  cat conftest.err >&5
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); } &&
2611         { ac_try='test -z "$ac_c_werror_flag"
2612                         || test ! -s conftest.err'
2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614  (eval $ac_try) 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; } &&
2618         { ac_try='test -s conftest.$ac_objext'
2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620  (eval $ac_try) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }; }; then
2624  ac_cv_prog_cc_stdc=$ac_arg
2625break
2626else
2627  echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630fi
2631rm -f conftest.err conftest.$ac_objext
2632done
2633rm -f conftest.$ac_ext conftest.$ac_objext
2634CC=$ac_save_CC
2635
2636fi
2637
2638case "x$ac_cv_prog_cc_stdc" in
2639  x|xno)
2640    echo "$as_me:$LINENO: result: none needed" >&5
2641echo "${ECHO_T}none needed" >&6 ;;
2642  *)
2643    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2644echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2645    CC="$CC $ac_cv_prog_cc_stdc" ;;
2646esac
2647
2648# Some people use a C++ compiler to compile C.  Since we use `exit',
2649# in C++ we need to declare it.  In case someone uses the same compiler
2650# for both compiling C and C++ we need to have the C++ compiler decide
2651# the declaration of exit, since it's the most demanding environment.
2652cat >conftest.$ac_ext <<_ACEOF
2653#ifndef __cplusplus
2654  choke me
2655#endif
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659  (eval $ac_compile) 2>conftest.er1
2660  ac_status=$?
2661  grep -v '^ *+' conftest.er1 >conftest.err
2662  rm -f conftest.er1
2663  cat conftest.err >&5
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); } &&
2666         { ac_try='test -z "$ac_c_werror_flag"
2667                         || test ! -s conftest.err'
2668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669  (eval $ac_try) 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }; } &&
2673         { ac_try='test -s conftest.$ac_objext'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; }; then
2679  for ac_declaration in \
2680   '' \
2681   'extern "C" void std::exit (int) throw (); using std::exit;' \
2682   'extern "C" void std::exit (int); using std::exit;' \
2683   'extern "C" void exit (int) throw ();' \
2684   'extern "C" void exit (int);' \
2685   'void exit (int);'
2686do
2687  cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693$ac_declaration
2694#include <stdlib.h>
2695int
2696main ()
2697{
2698exit (42);
2699  ;
2700  return 0;
2701}
2702_ACEOF
2703rm -f conftest.$ac_objext
2704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705  (eval $ac_compile) 2>conftest.er1
2706  ac_status=$?
2707  grep -v '^ *+' conftest.er1 >conftest.err
2708  rm -f conftest.er1
2709  cat conftest.err >&5
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); } &&
2712         { ac_try='test -z "$ac_c_werror_flag"
2713                         || test ! -s conftest.err'
2714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715  (eval $ac_try) 2>&5
2716  ac_status=$?
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); }; } &&
2719         { ac_try='test -s conftest.$ac_objext'
2720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721  (eval $ac_try) 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }; }; then
2725  :
2726else
2727  echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730continue
2731fi
2732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733  cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h.  */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h.  */
2739$ac_declaration
2740int
2741main ()
2742{
2743exit (42);
2744  ;
2745  return 0;
2746}
2747_ACEOF
2748rm -f conftest.$ac_objext
2749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750  (eval $ac_compile) 2>conftest.er1
2751  ac_status=$?
2752  grep -v '^ *+' conftest.er1 >conftest.err
2753  rm -f conftest.er1
2754  cat conftest.err >&5
2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756  (exit $ac_status); } &&
2757         { ac_try='test -z "$ac_c_werror_flag"
2758                         || test ! -s conftest.err'
2759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760  (eval $ac_try) 2>&5
2761  ac_status=$?
2762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763  (exit $ac_status); }; } &&
2764         { ac_try='test -s conftest.$ac_objext'
2765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766  (eval $ac_try) 2>&5
2767  ac_status=$?
2768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769  (exit $ac_status); }; }; then
2770  break
2771else
2772  echo "$as_me: failed program was:" >&5
2773sed 's/^/| /' conftest.$ac_ext >&5
2774
2775fi
2776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777done
2778rm -f conftest*
2779if test -n "$ac_declaration"; then
2780  echo '#ifdef __cplusplus' >>confdefs.h
2781  echo $ac_declaration      >>confdefs.h
2782  echo '#endif'             >>confdefs.h
2783fi
2784
2785else
2786  echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789fi
2790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791ac_ext=c
2792ac_cpp='$CPP $CPPFLAGS'
2793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797if test -z "$CC" ; then
2798  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2799echo "$as_me: error: Failed to find a C compiler!" >&2;}
2800   { (exit 1); exit 1; }; }
2801fi
2802# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2803case "$CC" in
2804  clang* ) ;;
2805  cl* | */cl* | CL* | */CL* )
2806    if test "$ac_cv_prog_cc_g" = yes ; then
2807      ac_cv_prog_cc_g=no
2808      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2809echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2810    fi ;;
2811esac
2812CFLAGS="$save_cflags"
2813
2814# add automake conditional so we can recognize cl compiler in makefile
2815coin_cc_is_cl=false
2816case "$CC" in
2817  clang* ) ;;
2818  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2819    coin_cc_is_cl=true
2820    ;;
2821esac
2822
2823
2824if test $coin_cc_is_cl = true; then
2825  COIN_CC_IS_CL_TRUE=
2826  COIN_CC_IS_CL_FALSE='#'
2827else
2828  COIN_CC_IS_CL_TRUE='#'
2829  COIN_CC_IS_CL_FALSE=
2830fi
2831
2832
2833# Check if a project specific CFLAGS variable has been set
2834if test x$COIN_PRJCT != x; then
2835  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2836  if test x$coin_tmp = xset; then
2837    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2838  fi
2839fi
2840
2841if test x"$CFLAGS" = x; then
2842
2843  coin_add_cflags=
2844  coin_opt_cflags=
2845  coin_dbg_cflags=
2846  coin_warn_cflags=
2847
2848  if test "$GCC" = "yes"; then
2849    case "$CC" in
2850      icc* | */icc*)
2851        ;;
2852      *)
2853        coin_opt_cflags="-O3"
2854        coin_add_cflags="-pipe"
2855        coin_dbg_cflags="-g -O0"
2856        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2857        case $build in
2858          *-darwin*)
2859            ;;
2860          *)
2861            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2862            ;;
2863        esac
2864        case $enable_doscompile in
2865          mingw)
2866            CFLAGS="-mno-cygwin"
2867            cat >conftest.$ac_ext <<_ACEOF
2868/* confdefs.h.  */
2869_ACEOF
2870cat confdefs.h >>conftest.$ac_ext
2871cat >>conftest.$ac_ext <<_ACEOF
2872/* end confdefs.h.  */
2873
2874int
2875main ()
2876{
2877int i=0; i++;
2878  ;
2879  return 0;
2880}
2881_ACEOF
2882rm -f conftest.$ac_objext conftest$ac_exeext
2883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2884  (eval $ac_link) 2>conftest.er1
2885  ac_status=$?
2886  grep -v '^ *+' conftest.er1 >conftest.err
2887  rm -f conftest.er1
2888  cat conftest.err >&5
2889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890  (exit $ac_status); } &&
2891         { ac_try='test -z "$ac_c_werror_flag"
2892                         || test ! -s conftest.err'
2893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894  (eval $ac_try) 2>&5
2895  ac_status=$?
2896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897  (exit $ac_status); }; } &&
2898         { ac_try='test -s conftest$ac_exeext'
2899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900  (eval $ac_try) 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }; }; then
2904  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2905else
2906  echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909fi
2910rm -f conftest.err conftest.$ac_objext \
2911      conftest$ac_exeext conftest.$ac_ext
2912            CFLAGS=
2913          ;;
2914        esac
2915    esac
2916  fi
2917  if test -z "$coin_opt_cflags"; then
2918    case $build in
2919      *-cygwin* | *-mingw*)
2920        case "$CC" in
2921          clang* ) ;;
2922          cl* | */cl* | CL* | */CL*)
2923            coin_opt_cflags='-MT -O2'
2924            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2925            coin_dbg_cflags='-MTd'
2926            ;;
2927          icl* | */icl* | ICL* | */ICL*)
2928            coin_opt_cflags='-MT -Ox'
2929            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2930            coin_dbg_cflags='-MTd -debug'
2931            ;;
2932        esac
2933        ;;
2934      *-linux-*)
2935        case "$CC" in
2936          icc* | */icc*)
2937            coin_opt_cflags="-O3 -ip -mp1"
2938            coin_add_cflags=""
2939            coin_dbg_cflags="-g"
2940            # Check if -i_dynamic is necessary (for new glibc library)
2941            CFLAGS=
2942            cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h.  */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h.  */
2948
2949int
2950main ()
2951{
2952int i=0; i++;
2953  ;
2954  return 0;
2955}
2956_ACEOF
2957rm -f conftest.$ac_objext conftest$ac_exeext
2958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2959  (eval $ac_link) 2>conftest.er1
2960  ac_status=$?
2961  grep -v '^ *+' conftest.er1 >conftest.err
2962  rm -f conftest.er1
2963  cat conftest.err >&5
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); } &&
2966         { ac_try='test -z "$ac_c_werror_flag"
2967                         || test ! -s conftest.err'
2968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969  (eval $ac_try) 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; } &&
2973         { ac_try='test -s conftest$ac_exeext'
2974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975  (eval $ac_try) 2>&5
2976  ac_status=$?
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); }; }; then
2979  :
2980else
2981  echo "$as_me: failed program was:" >&5
2982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984coin_add_cflags="-i_dynamic $coin_add_cflags"
2985fi
2986rm -f conftest.err conftest.$ac_objext \
2987      conftest$ac_exeext conftest.$ac_ext
2988            ;;
2989          pgcc* | */pgcc*)
2990            coin_opt_cflags="-fast"
2991            coin_add_cflags="-Kieee -pc 64"
2992            coin_dbg_cflags="-g"
2993            ;;
2994        esac
2995        ;;
2996      *-ibm-*)
2997        case "$CC" in
2998          xlc* | */xlc* | mpxlc* | */mpxlc*)
2999            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3000            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3001            coin_dbg_cflags="-g"
3002          ;;
3003        esac
3004        ;;
3005      *-hp-*)
3006        coin_opt_cflags="-O"
3007        coin_add_cflags="-Ae"
3008        coin_dbg_cflags="-g"
3009        ;;
3010      *-*-solaris*)
3011        coin_opt_cflags="-xO4"
3012        coin_dbg_cflags="-g"
3013        ;;
3014      *-sgi-*)
3015        coin_opt_cflags="-O -OPT:Olimit=0"
3016        coin_dbg_cflags="-g"
3017        ;;
3018    esac
3019  fi
3020
3021  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3022    coin_dbg_cflags="-g"
3023  fi
3024
3025  if test -z "$coin_opt_cflags"; then
3026    # Try if -O option works if nothing else is set
3027    CFLAGS="-O"
3028    cat >conftest.$ac_ext <<_ACEOF
3029/* confdefs.h.  */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h.  */
3034
3035int
3036main ()
3037{
3038int i=0; i++;
3039  ;
3040  return 0;
3041}
3042_ACEOF
3043rm -f conftest.$ac_objext conftest$ac_exeext
3044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3045  (eval $ac_link) 2>conftest.er1
3046  ac_status=$?
3047  grep -v '^ *+' conftest.er1 >conftest.err
3048  rm -f conftest.er1
3049  cat conftest.err >&5
3050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051  (exit $ac_status); } &&
3052         { ac_try='test -z "$ac_c_werror_flag"
3053                         || test ! -s conftest.err'
3054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055  (eval $ac_try) 2>&5
3056  ac_status=$?
3057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058  (exit $ac_status); }; } &&
3059         { ac_try='test -s conftest$ac_exeext'
3060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061  (eval $ac_try) 2>&5
3062  ac_status=$?
3063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); }; }; then
3065  coin_opt_cflags="-O"
3066else
3067  echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070fi
3071rm -f conftest.err conftest.$ac_objext \
3072      conftest$ac_exeext conftest.$ac_ext
3073  fi
3074
3075  # if PM doesn't want the warning messages, take them out
3076  if test x"$coin_skip_warn_cflags" = xyes; then
3077    coin_warn_cflags=
3078  fi
3079
3080  if test x${DBG_CFLAGS+set} != xset; then
3081    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3082  fi
3083  if test x${OPT_CFLAGS+set} != xset; then
3084    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3085  fi
3086
3087  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3088  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3089
3090  if test "$coin_debug_compile" = "true"; then
3091    CFLAGS="$DBG_CFLAGS"
3092  else
3093    CFLAGS="$OPT_CFLAGS"
3094  fi
3095else
3096  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3097  if test x${DBG_CFLAGS+set} != xset; then
3098    DBG_CFLAGS="$CFLAGS"
3099  fi
3100  if test x${OPT_CFLAGS+set} != xset; then
3101    OPT_CFLAGS="$CFLAGS"
3102  fi
3103fi
3104
3105# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3106
3107case "$CFLAGS" in
3108  *-mno-cygwin*)
3109    if test x${CPPFLAGS+set} != xset ; then
3110      CPPFLAGS="-mno-cygwin"
3111    else
3112      case "$CPPFLAGS" in
3113        *-mno-cygwin*)
3114          ;;
3115        *)
3116          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3117          ;;
3118      esac
3119    fi ;;
3120esac
3121
3122# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3123if test x$COIN_PRJCT != x; then
3124  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3125fi
3126
3127# Try if CFLAGS works
3128save_CFLAGS="$CFLAGS"
3129cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h.  */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h.  */
3135
3136int
3137main ()
3138{
3139int i=0; i++;
3140  ;
3141  return 0;
3142}
3143_ACEOF
3144rm -f conftest.$ac_objext conftest$ac_exeext
3145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3146  (eval $ac_link) 2>conftest.er1
3147  ac_status=$?
3148  grep -v '^ *+' conftest.er1 >conftest.err
3149  rm -f conftest.er1
3150  cat conftest.err >&5
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); } &&
3153         { ac_try='test -z "$ac_c_werror_flag"
3154                         || test ! -s conftest.err'
3155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156  (eval $ac_try) 2>&5
3157  ac_status=$?
3158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159  (exit $ac_status); }; } &&
3160         { ac_try='test -s conftest$ac_exeext'
3161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162  (eval $ac_try) 2>&5
3163  ac_status=$?
3164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165  (exit $ac_status); }; }; then
3166  :
3167else
3168  echo "$as_me: failed program was:" >&5
3169sed 's/^/| /' conftest.$ac_ext >&5
3170
3171CFLAGS=
3172fi
3173rm -f conftest.err conftest.$ac_objext \
3174      conftest$ac_exeext conftest.$ac_ext
3175if test -z "$CFLAGS"; then
3176  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3177echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3178  CFLAGS='-O'
3179  cat >conftest.$ac_ext <<_ACEOF
3180/* confdefs.h.  */
3181_ACEOF
3182cat confdefs.h >>conftest.$ac_ext
3183cat >>conftest.$ac_ext <<_ACEOF
3184/* end confdefs.h.  */
3185
3186int
3187main ()
3188{
3189int i=0; i++;
3190  ;
3191  return 0;
3192}
3193_ACEOF
3194rm -f conftest.$ac_objext conftest$ac_exeext
3195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196  (eval $ac_link) 2>conftest.er1
3197  ac_status=$?
3198  grep -v '^ *+' conftest.er1 >conftest.err
3199  rm -f conftest.er1
3200  cat conftest.err >&5
3201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202  (exit $ac_status); } &&
3203         { ac_try='test -z "$ac_c_werror_flag"
3204                         || test ! -s conftest.err'
3205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206  (eval $ac_try) 2>&5
3207  ac_status=$?
3208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209  (exit $ac_status); }; } &&
3210         { ac_try='test -s conftest$ac_exeext'
3211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212  (eval $ac_try) 2>&5
3213  ac_status=$?
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); }; }; then
3216  :
3217else
3218  echo "$as_me: failed program was:" >&5
3219sed 's/^/| /' conftest.$ac_ext >&5
3220
3221CFLAGS=
3222fi
3223rm -f conftest.err conftest.$ac_objext \
3224      conftest$ac_exeext conftest.$ac_ext
3225  if test -z "$CFLAGS"; then
3226    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3227echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3228  fi
3229fi
3230
3231{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3232echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3233
3234
3235if test x"$MPICC" = x; then :; else
3236  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3237echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3238  CC="$MPICC"
3239fi
3240
3241# Correct the LD variable if we are using the MS or Intel-windows compiler
3242case "$CC" in
3243  clang* ) ;;
3244  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3245    case $build in
3246  *-mingw*)
3247    if test "${LD+set}" = set; then :; else
3248      LD=link
3249    fi
3250    ;;
3251 esac
3252 case $enable_doscompile in
3253   msvc)
3254     if test "x${LD+set}" = xset; then :; else
3255       LD=link
3256     fi
3257     ;;
3258 esac
3259
3260    ;;
3261esac
3262
3263ac_ext=c
3264ac_cpp='$CPP $CPPFLAGS'
3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269
3270
3271# Get the name of the C++ compiler and appropriate compiler options
3272
3273 #Let's try if that overcomes configuration problem with VC++ 6.0
3274
3275ac_ext=cc
3276ac_cpp='$CXXCPP $CPPFLAGS'
3277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3280
3281
3282
3283
3284
3285
3286
3287coin_has_cxx=yes
3288
3289save_cxxflags="$CXXFLAGS"
3290# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3291case $build in
3292  *-cygwin* | *-mingw*)
3293             if test "$enable_doscompile" = msvc ; then
3294               comps="icl cl"
3295             else
3296               comps="g++ cl"
3297             fi ;;
3298  *-*-solaris*)
3299             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3300  *-darwin*) comps="g++ c++ CC" ;;
3301  *-linux-gnu*)
3302             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3303          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3304esac
3305
3306# We delete the cached value, since the test might not have been
3307# performed with our choice of compilers earlier
3308$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3309# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3310ac_ext=cc
3311ac_cpp='$CXXCPP $CPPFLAGS'
3312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3315if test -n "$ac_tool_prefix"; then
3316  for ac_prog in $CCC $comps
3317  do
3318    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3319set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3320echo "$as_me:$LINENO: checking for $ac_word" >&5
3321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3322if test "${ac_cv_prog_CXX+set}" = set; then
3323  echo $ECHO_N "(cached) $ECHO_C" >&6
3324else
3325  if test -n "$CXX"; then
3326  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3327else
3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329for as_dir in $PATH
3330do
3331  IFS=$as_save_IFS
3332  test -z "$as_dir" && as_dir=.
3333  for ac_exec_ext in '' $ac_executable_extensions; do
3334  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337    break 2
3338  fi
3339done
3340done
3341
3342fi
3343fi
3344CXX=$ac_cv_prog_CXX
3345if test -n "$CXX"; then
3346  echo "$as_me:$LINENO: result: $CXX" >&5
3347echo "${ECHO_T}$CXX" >&6
3348else
3349  echo "$as_me:$LINENO: result: no" >&5
3350echo "${ECHO_T}no" >&6
3351fi
3352
3353    test -n "$CXX" && break
3354  done
3355fi
3356if test -z "$CXX"; then
3357  ac_ct_CXX=$CXX
3358  for ac_prog in $CCC $comps
3359do
3360  # Extract the first word of "$ac_prog", so it can be a program name with args.
3361set dummy $ac_prog; ac_word=$2
3362echo "$as_me:$LINENO: checking for $ac_word" >&5
3363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3364if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3365  echo $ECHO_N "(cached) $ECHO_C" >&6
3366else
3367  if test -n "$ac_ct_CXX"; then
3368  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3369else
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373  IFS=$as_save_IFS
3374  test -z "$as_dir" && as_dir=.
3375  for ac_exec_ext in '' $ac_executable_extensions; do
3376  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377    ac_cv_prog_ac_ct_CXX="$ac_prog"
3378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3379    break 2
3380  fi
3381done
3382done
3383
3384fi
3385fi
3386ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3387if test -n "$ac_ct_CXX"; then
3388  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3389echo "${ECHO_T}$ac_ct_CXX" >&6
3390else
3391  echo "$as_me:$LINENO: result: no" >&5
3392echo "${ECHO_T}no" >&6
3393fi
3394
3395  test -n "$ac_ct_CXX" && break
3396done
3397test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3398
3399  CXX=$ac_ct_CXX
3400fi
3401
3402
3403# Provide some information about the compiler.
3404echo "$as_me:$LINENO:" \
3405     "checking for C++ compiler version" >&5
3406ac_compiler=`set X $ac_compile; echo $2`
3407{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3408  (eval $ac_compiler --version </dev/null >&5) 2>&5
3409  ac_status=$?
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); }
3412{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3413  (eval $ac_compiler -v </dev/null >&5) 2>&5
3414  ac_status=$?
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); }
3417{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3418  (eval $ac_compiler -V </dev/null >&5) 2>&5
3419  ac_status=$?
3420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421  (exit $ac_status); }
3422
3423echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3424echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3425if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3426  echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428  cat >conftest.$ac_ext <<_ACEOF
3429/* confdefs.h.  */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h.  */
3434
3435int
3436main ()
3437{
3438#ifndef __GNUC__
3439       choke me
3440#endif
3441
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446rm -f conftest.$ac_objext
3447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448  (eval $ac_compile) 2>conftest.er1
3449  ac_status=$?
3450  grep -v '^ *+' conftest.er1 >conftest.err
3451  rm -f conftest.er1
3452  cat conftest.err >&5
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); } &&
3455         { ac_try='test -z "$ac_cxx_werror_flag"
3456                         || test ! -s conftest.err'
3457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458  (eval $ac_try) 2>&5
3459  ac_status=$?
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); }; } &&
3462         { ac_try='test -s conftest.$ac_objext'
3463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464  (eval $ac_try) 2>&5
3465  ac_status=$?
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); }; }; then
3468  ac_compiler_gnu=yes
3469else
3470  echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473ac_compiler_gnu=no
3474fi
3475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3476ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3477
3478fi
3479echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3480echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3481GXX=`test $ac_compiler_gnu = yes && echo yes`
3482ac_test_CXXFLAGS=${CXXFLAGS+set}
3483ac_save_CXXFLAGS=$CXXFLAGS
3484CXXFLAGS="-g"
3485echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3486echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3487if test "${ac_cv_prog_cxx_g+set}" = set; then
3488  echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490  cat >conftest.$ac_ext <<_ACEOF
3491/* confdefs.h.  */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h.  */
3496
3497int
3498main ()
3499{
3500
3501  ;
3502  return 0;
3503}
3504_ACEOF
3505rm -f conftest.$ac_objext
3506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507  (eval $ac_compile) 2>conftest.er1
3508  ac_status=$?
3509  grep -v '^ *+' conftest.er1 >conftest.err
3510  rm -f conftest.er1
3511  cat conftest.err >&5
3512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513  (exit $ac_status); } &&
3514         { ac_try='test -z "$ac_cxx_werror_flag"
3515                         || test ! -s conftest.err'
3516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517  (eval $ac_try) 2>&5
3518  ac_status=$?
3519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520  (exit $ac_status); }; } &&
3521         { ac_try='test -s conftest.$ac_objext'
3522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523  (eval $ac_try) 2>&5
3524  ac_status=$?
3525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526  (exit $ac_status); }; }; then
3527  ac_cv_prog_cxx_g=yes
3528else
3529  echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532ac_cv_prog_cxx_g=no
3533fi
3534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3535fi
3536echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3537echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3538if test "$ac_test_CXXFLAGS" = set; then
3539  CXXFLAGS=$ac_save_CXXFLAGS
3540elif test $ac_cv_prog_cxx_g = yes; then
3541  if test "$GXX" = yes; then
3542    CXXFLAGS="-g -O2"
3543  else
3544    CXXFLAGS="-g"
3545  fi
3546else
3547  if test "$GXX" = yes; then
3548    CXXFLAGS="-O2"
3549  else
3550    CXXFLAGS=
3551  fi
3552fi
3553for ac_declaration in \
3554   '' \
3555   'extern "C" void std::exit (int) throw (); using std::exit;' \
3556   'extern "C" void std::exit (int); using std::exit;' \
3557   'extern "C" void exit (int) throw ();' \
3558   'extern "C" void exit (int);' \
3559   'void exit (int);'
3560do
3561  cat >conftest.$ac_ext <<_ACEOF
3562/* confdefs.h.  */
3563_ACEOF
3564cat confdefs.h >>conftest.$ac_ext
3565cat >>conftest.$ac_ext <<_ACEOF
3566/* end confdefs.h.  */
3567$ac_declaration
3568#include <stdlib.h>
3569int
3570main ()
3571{
3572exit (42);
3573  ;
3574  return 0;
3575}
3576_ACEOF
3577rm -f conftest.$ac_objext
3578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579  (eval $ac_compile) 2>conftest.er1
3580  ac_status=$?
3581  grep -v '^ *+' conftest.er1 >conftest.err
3582  rm -f conftest.er1
3583  cat conftest.err >&5
3584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585  (exit $ac_status); } &&
3586         { ac_try='test -z "$ac_cxx_werror_flag"
3587                         || test ! -s conftest.err'
3588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589  (eval $ac_try) 2>&5
3590  ac_status=$?
3591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); }; } &&
3593         { ac_try='test -s conftest.$ac_objext'
3594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595  (eval $ac_try) 2>&5
3596  ac_status=$?
3597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598  (exit $ac_status); }; }; then
3599  :
3600else
3601  echo "$as_me: failed program was:" >&5
3602sed 's/^/| /' conftest.$ac_ext >&5
3603
3604continue
3605fi
3606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3607  cat >conftest.$ac_ext <<_ACEOF
3608/* confdefs.h.  */
3609_ACEOF
3610cat confdefs.h >>conftest.$ac_ext
3611cat >>conftest.$ac_ext <<_ACEOF
3612/* end confdefs.h.  */
3613$ac_declaration
3614int
3615main ()
3616{
3617exit (42);
3618  ;
3619  return 0;
3620}
3621_ACEOF
3622rm -f conftest.$ac_objext
3623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624  (eval $ac_compile) 2>conftest.er1
3625  ac_status=$?
3626  grep -v '^ *+' conftest.er1 >conftest.err
3627  rm -f conftest.er1
3628  cat conftest.err >&5
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); } &&
3631         { ac_try='test -z "$ac_cxx_werror_flag"
3632                         || test ! -s conftest.err'
3633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634  (eval $ac_try) 2>&5
3635  ac_status=$?
3636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637  (exit $ac_status); }; } &&
3638         { ac_try='test -s conftest.$ac_objext'
3639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640  (eval $ac_try) 2>&5
3641  ac_status=$?
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); }; }; then
3644  break
3645else
3646  echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
3649fi
3650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3651done
3652rm -f conftest*
3653if test -n "$ac_declaration"; then
3654  echo '#ifdef __cplusplus' >>confdefs.h
3655  echo $ac_declaration      >>confdefs.h
3656  echo '#endif'             >>confdefs.h
3657fi
3658
3659ac_ext=cc
3660ac_cpp='$CXXCPP $CPPFLAGS'
3661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3664
3665
3666#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3667#thus, we test here whether $CXX is actually working
3668ac_ext=cc
3669ac_cpp='$CXXCPP $CPPFLAGS'
3670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3673
3674echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3675echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3676cat >conftest.$ac_ext <<_ACEOF
3677/* confdefs.h.  */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h.  */
3682
3683int
3684main ()
3685{
3686int i=0;
3687  ;
3688  return 0;
3689}
3690_ACEOF
3691rm -f conftest.$ac_objext
3692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693  (eval $ac_compile) 2>conftest.er1
3694  ac_status=$?
3695  grep -v '^ *+' conftest.er1 >conftest.err
3696  rm -f conftest.er1
3697  cat conftest.err >&5
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); } &&
3700         { ac_try='test -z "$ac_cxx_werror_flag"
3701                         || test ! -s conftest.err'
3702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703  (eval $ac_try) 2>&5
3704  ac_status=$?
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); }; } &&
3707         { ac_try='test -s conftest.$ac_objext'
3708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709  (eval $ac_try) 2>&5
3710  ac_status=$?
3711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712  (exit $ac_status); }; }; then
3713  echo "$as_me:$LINENO: result: yes" >&5
3714echo "${ECHO_T}yes" >&6
3715else
3716  echo "$as_me: failed program was:" >&5
3717sed 's/^/| /' conftest.$ac_ext >&5
3718
3719echo "$as_me:$LINENO: result: no" >&5
3720echo "${ECHO_T}no" >&6
3721   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3722echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3723   { (exit 1); exit 1; }; }
3724
3725fi
3726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3727ac_ext=cc
3728ac_cpp='$CXXCPP $CPPFLAGS'
3729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3732
3733
3734coin_cxx_is_cl=false
3735# It seems that we need to cleanup something here for the Windows
3736case "$CXX" in
3737  clang* ) ;;
3738  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3739    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3740    mv confdefs.hh confdefs.h
3741    coin_cxx_is_cl=true
3742    ;;
3743esac
3744
3745# add automake conditional so we can recognize cl compiler in makefile
3746
3747
3748if test $coin_cxx_is_cl = true; then
3749  COIN_CXX_IS_CL_TRUE=
3750  COIN_CXX_IS_CL_FALSE='#'
3751else
3752  COIN_CXX_IS_CL_TRUE='#'
3753  COIN_CXX_IS_CL_FALSE=
3754fi
3755
3756
3757# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3758case "$CXX" in
3759  clang* ) ;;
3760  cl* | */cl* | CL* | */CL* )
3761    if test "$ac_cv_prog_cxx_g" = yes ; then
3762      ac_cv_prog_cxx_g=no
3763      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3764echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3765    fi ;;
3766esac
3767CXXFLAGS="$save_cxxflags"
3768
3769# Check if a project specific CXXFLAGS variable has been set
3770if test x$COIN_PRJCT != x; then
3771  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3772  if test x$coin_tmp = xset; then
3773    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3774  fi
3775fi
3776
3777if test x"$CXXFLAGS" = x; then
3778
3779# ToDo decide whether we want -DNDEBUG for optimization
3780  coin_add_cxxflags=
3781  coin_opt_cxxflags=
3782  coin_dbg_cxxflags=
3783  coin_warn_cxxflags=
3784
3785  if test "$GXX" = "yes"; then
3786    case "$CXX" in
3787      icpc* | */icpc*)
3788        ;;
3789      *)
3790# ToDo decide about unroll-loops
3791        coin_opt_cxxflags="-O3"
3792        coin_add_cxxflags="-pipe"
3793        coin_dbg_cxxflags="-g -O0"
3794        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3795        case $build in
3796          *-darwin*)
3797            ;;
3798          *)
3799            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3800            ;;
3801        esac
3802
3803        case $enable_doscompile in
3804          mingw)
3805            CXXFLAGS="-mno-cygwin"
3806            cat >conftest.$ac_ext <<_ACEOF
3807/* confdefs.h.  */
3808_ACEOF
3809cat confdefs.h >>conftest.$ac_ext
3810cat >>conftest.$ac_ext <<_ACEOF
3811/* end confdefs.h.  */
3812
3813int
3814main ()
3815{
3816int i=0; i++;
3817  ;
3818  return 0;
3819}
3820_ACEOF
3821rm -f conftest.$ac_objext conftest$ac_exeext
3822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3823  (eval $ac_link) 2>conftest.er1
3824  ac_status=$?
3825  grep -v '^ *+' conftest.er1 >conftest.err
3826  rm -f conftest.er1
3827  cat conftest.err >&5
3828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829  (exit $ac_status); } &&
3830         { ac_try='test -z "$ac_cxx_werror_flag"
3831                         || test ! -s conftest.err'
3832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833  (eval $ac_try) 2>&5
3834  ac_status=$?
3835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836  (exit $ac_status); }; } &&
3837         { ac_try='test -s conftest$ac_exeext'
3838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839  (eval $ac_try) 2>&5
3840  ac_status=$?
3841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842  (exit $ac_status); }; }; then
3843  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3844else
3845  echo "$as_me: failed program was:" >&5
3846sed 's/^/| /' conftest.$ac_ext >&5
3847
3848fi
3849rm -f conftest.err conftest.$ac_objext \
3850      conftest$ac_exeext conftest.$ac_ext
3851            CXXFLAGS=
3852          ;;
3853        esac
3854    esac
3855  fi
3856
3857# Note that we do not need to cover GCC in the following tests.
3858
3859  if test -z "$coin_opt_cxxflags"; then
3860    case $build in
3861      *-cygwin* | *-mingw*)
3862        case "$CXX" in
3863          clang* ) ;;
3864          cl* | */cl* | CL* | */CL*)
3865            # The MT and MTd options are mutually exclusive
3866            coin_opt_cxxflags='-MT -O2'
3867            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3868            coin_dbg_cxxflags='-MTd'
3869            ;;
3870          icl* | */icl* | ICL* | */ICL*)
3871            # The MT and MTd options are mutually exclusive
3872            coin_opt_cxxflags='-MT -Ox'
3873            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3874            coin_dbg_cxxflags='-MTd -debug'
3875            ;;
3876        esac
3877        ;;
3878      *-linux-*)
3879        case "$CXX" in
3880          icpc* | */icpc*)
3881            coin_opt_cxxflags="-O3 -ip -mp1"
3882            coin_add_cxxflags=""
3883            coin_dbg_cxxflags="-g"
3884            # Check if -i_dynamic is necessary (for new glibc library)
3885            CXXFLAGS=
3886            cat >conftest.$ac_ext <<_ACEOF
3887/* confdefs.h.  */
3888_ACEOF
3889cat confdefs.h >>conftest.$ac_ext
3890cat >>conftest.$ac_ext <<_ACEOF
3891/* end confdefs.h.  */
3892
3893int
3894main ()
3895{
3896int i=0; i++;
3897  ;
3898  return 0;
3899}
3900_ACEOF
3901rm -f conftest.$ac_objext conftest$ac_exeext
3902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3903  (eval $ac_link) 2>conftest.er1
3904  ac_status=$?
3905  grep -v '^ *+' conftest.er1 >conftest.err
3906  rm -f conftest.er1
3907  cat conftest.err >&5
3908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909  (exit $ac_status); } &&
3910         { ac_try='test -z "$ac_cxx_werror_flag"
3911                         || test ! -s conftest.err'
3912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913  (eval $ac_try) 2>&5
3914  ac_status=$?
3915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916  (exit $ac_status); }; } &&
3917         { ac_try='test -s conftest$ac_exeext'
3918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919  (eval $ac_try) 2>&5
3920  ac_status=$?
3921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922  (exit $ac_status); }; }; then
3923  :
3924else
3925  echo "$as_me: failed program was:" >&5
3926sed 's/^/| /' conftest.$ac_ext >&5
3927
3928coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3929fi
3930rm -f conftest.err conftest.$ac_objext \
3931      conftest$ac_exeext conftest.$ac_ext
3932            ;;
3933          pgCC* | */pgCC*)
3934            coin_opt_cxxflags="-fast"
3935            coin_add_cxxflags="-Kieee -pc 64"
3936            coin_dbg_cxxflags="-g"
3937            ;;
3938        esac
3939        ;;
3940      *-ibm-*)
3941        case "$CXX" in
3942          xlC* | */xlC* | mpxlC* | */mpxlC*)
3943            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3944            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3945            coin_dbg_cxxflags="-g"
3946            ;;
3947        esac
3948        ;;
3949      *-hp-*)
3950        case "$CXX" in
3951          aCC* | */aCC* )
3952            coin_opt_cxxflags="-O"
3953            coin_add_cxxflags="-AA"
3954            coin_dbg_cxxflags="-g"
3955            ;;
3956        esac
3957        ;;
3958      *-*-solaris*)
3959          coin_opt_cxxflags="-O4"
3960          coin_dbg_cxxflags="-g"
3961        ;;
3962    esac
3963  fi
3964
3965# Generic flag settings. If these don't work, add a case above.
3966
3967  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3968    coin_dbg_cxxflags="-g"
3969  fi
3970
3971  if test -z "$coin_opt_cxxflags"; then
3972    # Try if -O option works if nothing else is set
3973    CXXFLAGS=-O
3974    cat >conftest.$ac_ext <<_ACEOF
3975/* confdefs.h.  */
3976_ACEOF
3977cat confdefs.h >>conftest.$ac_ext
3978cat >>conftest.$ac_ext <<_ACEOF
3979/* end confdefs.h.  */
3980
3981int
3982main ()
3983{
3984int i=0; i++;
3985  ;
3986  return 0;
3987}
3988_ACEOF
3989rm -f conftest.$ac_objext conftest$ac_exeext
3990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3991  (eval $ac_link) 2>conftest.er1
3992  ac_status=$?
3993  grep -v '^ *+' conftest.er1 >conftest.err
3994  rm -f conftest.er1
3995  cat conftest.err >&5
3996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997  (exit $ac_status); } &&
3998         { ac_try='test -z "$ac_cxx_werror_flag"
3999                         || test ! -s conftest.err'
4000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001  (eval $ac_try) 2>&5
4002  ac_status=$?
4003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004  (exit $ac_status); }; } &&
4005         { ac_try='test -s conftest$ac_exeext'
4006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007  (eval $ac_try) 2>&5
4008  ac_status=$?
4009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010  (exit $ac_status); }; }; then
4011  coin_opt_cxxflags="-O"
4012else
4013  echo "$as_me: failed program was:" >&5
4014sed 's/^/| /' conftest.$ac_ext >&5
4015
4016fi
4017rm -f conftest.err conftest.$ac_objext \
4018      conftest$ac_exeext conftest.$ac_ext
4019  fi
4020
4021  # if PM doesn't want the warning messages, take them out
4022  if test x"$coin_skip_warn_cxxflags" = xyes; then
4023    coin_warn_cxxflags=
4024  fi
4025
4026# Do final setup of flags based on values determined above.
4027
4028  if test x${DBG_CXXFLAGS+set} != xset; then
4029    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4030  fi
4031  if test x${OPT_CXXFLAGS+set} != xset; then
4032    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4033  fi
4034
4035  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4036  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4037
4038  if test "$coin_debug_compile" = "true"; then
4039    CXXFLAGS="$DBG_CXXFLAGS"
4040  else
4041    CXXFLAGS="$OPT_CXXFLAGS"
4042  fi
4043
4044# Handle the case where CXXFLAGS was set externally.
4045else
4046  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4047  if test x${DBG_CXXFLAGS+set} != xset; then
4048    DBG_CXXFLAGS="$CXXFLAGS"
4049  fi
4050  if test x${OPT_CXXFLAGS+set} != xset; then
4051    OPT_CXXFLAGS="$CXXFLAGS"
4052  fi
4053fi
4054
4055# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4056
4057case "$CXXFLAGS" in
4058  *-mno-cygwin*)
4059    if test x${CPPFLAGS+set} != xset ; then
4060      CPPFLAGS="-mno-cygwin"
4061    else
4062      case "$CPPFLAGS" in
4063        *-mno-cygwin*)
4064          ;;
4065        *)
4066          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4067          ;;
4068      esac
4069    fi ;;
4070esac
4071
4072# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4073if test x$COIN_PRJCT != x; then
4074  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4075fi
4076
4077# Try if CXXFLAGS works
4078save_CXXFLAGS="$CXXFLAGS"
4079cat >conftest.$ac_ext <<_ACEOF
4080/* confdefs.h.  */
4081_ACEOF
4082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
4084/* end confdefs.h.  */
4085
4086int
4087main ()
4088{
4089int i=0; i++;
4090  ;
4091  return 0;
4092}
4093_ACEOF
4094rm -f conftest.$ac_objext conftest$ac_exeext
4095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4096  (eval $ac_link) 2>conftest.er1
4097  ac_status=$?
4098  grep -v '^ *+' conftest.er1 >conftest.err
4099  rm -f conftest.er1
4100  cat conftest.err >&5
4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); } &&
4103         { ac_try='test -z "$ac_cxx_werror_flag"
4104                         || test ! -s conftest.err'
4105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106  (eval $ac_try) 2>&5
4107  ac_status=$?
4108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109  (exit $ac_status); }; } &&
4110         { ac_try='test -s conftest$ac_exeext'
4111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112  (eval $ac_try) 2>&5
4113  ac_status=$?
4114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115  (exit $ac_status); }; }; then
4116  :
4117else
4118  echo "$as_me: failed program was:" >&5
4119sed 's/^/| /' conftest.$ac_ext >&5
4120
4121CXXFLAGS=
4122fi
4123rm -f conftest.err conftest.$ac_objext \
4124      conftest$ac_exeext conftest.$ac_ext
4125if test -z "$CXXFLAGS"; then
4126  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
4127echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
4128  CXXFLAGS='-O'
4129  cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h.  */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h.  */
4135
4136int
4137main ()
4138{
4139int i=0; i++;
4140  ;
4141  return 0;
4142}
4143_ACEOF
4144rm -f conftest.$ac_objext conftest$ac_exeext
4145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4146  (eval $ac_link) 2>conftest.er1
4147  ac_status=$?
4148  grep -v '^ *+' conftest.er1 >conftest.err
4149  rm -f conftest.er1
4150  cat conftest.err >&5
4151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152  (exit $ac_status); } &&
4153         { ac_try='test -z "$ac_cxx_werror_flag"
4154                         || test ! -s conftest.err'
4155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156  (eval $ac_try) 2>&5
4157  ac_status=$?
4158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159  (exit $ac_status); }; } &&
4160         { ac_try='test -s conftest$ac_exeext'
4161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162  (eval $ac_try) 2>&5
4163  ac_status=$?
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); }; }; then
4166  :
4167else
4168  echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171CXXFLAGS=
4172fi
4173rm -f conftest.err conftest.$ac_objext \
4174      conftest$ac_exeext conftest.$ac_ext
4175  if test -z "$CXXFLAGS"; then
4176    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
4177echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
4178  fi
4179fi
4180
4181{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4182echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4183
4184
4185if test x"$MPICXX" = x; then :; else
4186  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4187echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4188  CXX="$MPICXX"
4189fi
4190
4191# correct the LD variable in a mingw build with MS or intel compiler
4192case "$CXX" in
4193  clang* ) ;;
4194  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4195    case $build in
4196  *-mingw*)
4197    if test "${LD+set}" = set; then :; else
4198      LD=link
4199    fi
4200    ;;
4201 esac
4202 case $enable_doscompile in
4203   msvc)
4204     if test "x${LD+set}" = xset; then :; else
4205       LD=link
4206     fi
4207     ;;
4208 esac
4209
4210    ;;
4211esac
4212
4213ac_ext=c
4214ac_cpp='$CPP $CPPFLAGS'
4215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218
4219
4220
4221# Initialize automake
4222{
4223
4224
4225
4226# START
4227
4228# Test if force_shared has been set
4229if test "x" = xforce_shared; then
4230  if test x$enable_shared = xno; then
4231    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4232echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4233   { (exit 1); exit 1; }; }
4234  fi
4235  enable_shared=yes;
4236else
4237  # On Cygwin and AIX, building DLLs doesn't work
4238  case $build in
4239    *-cygwin*)
4240      coin_disable_shared=yes
4241      platform=Cygwin
4242    ;;
4243    *-aix*)
4244      coin_disable_shared=yes
4245      platform=AIX
4246    ;;
4247    *-mingw*)
4248      coin_disable_shared=yes
4249      platform="Msys"
4250#      case "$CXX" in
4251#        cl*)
4252#          coin_disable_shared=yes
4253#          platform="Msys with cl"
4254#      ;;
4255#      esac
4256    ;;
4257  esac
4258fi
4259if test x"$coin_disable_shared" = xyes; then
4260  if test x"$enable_shared" = xyes; then
4261    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4262echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4263  fi
4264  enable_shared=no
4265fi
4266# By default, we only want the shared objects to be compiled
4267# Check whether --enable-static or --disable-static was given.
4268if test "${enable_static+set}" = set; then
4269  enableval="$enable_static"
4270  p=${PACKAGE-default}
4271    case $enableval in
4272    yes) enable_static=yes ;;
4273    no) enable_static=no ;;
4274    *)
4275     enable_static=no
4276      # Look at the argument we got.  We use all the common list separators.
4277      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4278      for pkg in $enableval; do
4279        IFS="$lt_save_ifs"
4280        if test "X$pkg" = "X$p"; then
4281          enable_static=yes
4282        fi
4283      done
4284      IFS="$lt_save_ifs"
4285      ;;
4286    esac
4287else
4288  enable_static=no
4289fi;
4290
4291
4292
4293
4294# Initialize automake
4295echo "$as_me:$LINENO: checking for egrep" >&5
4296echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4297if test "${ac_cv_prog_egrep+set}" = set; then
4298  echo $ECHO_N "(cached) $ECHO_C" >&6
4299else
4300  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4301    then ac_cv_prog_egrep='grep -E'
4302    else ac_cv_prog_egrep='egrep'
4303    fi
4304fi
4305echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4306echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4307 EGREP=$ac_cv_prog_egrep
4308
4309
4310echo "$as_me:$LINENO: checking whether ln -s works" >&5
4311echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4312LN_S=$as_ln_s
4313if test "$LN_S" = "ln -s"; then
4314  echo "$as_me:$LINENO: result: yes" >&5
4315echo "${ECHO_T}yes" >&6
4316else
4317  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4318echo "${ECHO_T}no, using $LN_S" >&6
4319fi
4320
4321am__api_version="1.9"
4322# Find a good install program.  We prefer a C program (faster),
4323# so one script is as good as another.  But avoid the broken or
4324# incompatible versions:
4325# SysV /etc/install, /usr/sbin/install
4326# SunOS /usr/etc/install
4327# IRIX /sbin/install
4328# AIX /bin/install
4329# AmigaOS /C/install, which installs bootblocks on floppy discs
4330# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4331# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4332# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4333# OS/2's system install, which has a completely different semantic
4334# ./install, which can be erroneously created by make from ./install.sh.
4335echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4336echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4337if test -z "$INSTALL"; then
4338if test "${ac_cv_path_install+set}" = set; then
4339  echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH
4343do
4344  IFS=$as_save_IFS
4345  test -z "$as_dir" && as_dir=.
4346  # Account for people who put trailing slashes in PATH elements.
4347case $as_dir/ in
4348  ./ | .// | /cC/* | \
4349  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4350  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4351  /usr/ucb/* ) ;;
4352  *)
4353    # OSF1 and SCO ODT 3.0 have their own names for install.
4354    # Don't use installbsd from OSF since it installs stuff as root
4355    # by default.
4356    for ac_prog in ginstall scoinst install; do
4357      for ac_exec_ext in '' $ac_executable_extensions; do
4358        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4359          if test $ac_prog = install &&
4360            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4361            # AIX install.  It has an incompatible calling convention.
4362            :
4363          elif test $ac_prog = install &&
4364            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4365            # program-specific install script used by HP pwplus--don't use.
4366            :
4367          else
4368            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4369            break 3
4370          fi
4371        fi
4372      done
4373    done
4374    ;;
4375esac
4376done
4377
4378
4379fi
4380  if test "${ac_cv_path_install+set}" = set; then
4381    INSTALL=$ac_cv_path_install
4382  else
4383    # As a last resort, use the slow shell script.  We don't cache a
4384    # path for INSTALL within a source directory, because that will
4385    # break other packages using the cache if that directory is
4386    # removed, or if the path is relative.
4387    INSTALL=$ac_install_sh
4388  fi
4389fi
4390echo "$as_me:$LINENO: result: $INSTALL" >&5
4391echo "${ECHO_T}$INSTALL" >&6
4392
4393# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4394# It thinks the first close brace ends the variable substitution.
4395test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4396
4397test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4398
4399test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4400
4401echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4402echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4403# Just in case
4404sleep 1
4405echo timestamp > conftest.file
4406# Do `set' in a subshell so we don't clobber the current shell's
4407# arguments.  Must try -L first in case configure is actually a
4408# symlink; some systems play weird games with the mod time of symlinks
4409# (eg FreeBSD returns the mod time of the symlink's containing
4410# directory).
4411if (
4412   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4413   if test "$*" = "X"; then
4414      # -L didn't work.
4415      set X `ls -t $srcdir/configure conftest.file`
4416   fi
4417   rm -f conftest.file
4418   if test "$*" != "X $srcdir/configure conftest.file" \
4419      && test "$*" != "X conftest.file $srcdir/configure"; then
4420
4421      # If neither matched, then we have a broken ls.  This can happen
4422      # if, for instance, CONFIG_SHELL is bash and it inherits a
4423      # broken ls alias from the environment.  This has actually
4424      # happened.  Such a system could not be considered "sane".
4425      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4426alias in your environment" >&5
4427echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4428alias in your environment" >&2;}
4429   { (exit 1); exit 1; }; }
4430   fi
4431
4432   test "$2" = conftest.file
4433   )
4434then
4435   # Ok.
4436   :
4437else
4438   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4439Check your system clock" >&5
4440echo "$as_me: error: newly created file is older than distributed files!
4441Check your system clock" >&2;}
4442   { (exit 1); exit 1; }; }
4443fi
4444echo "$as_me:$LINENO: result: yes" >&5
4445echo "${ECHO_T}yes" >&6
4446test "$program_prefix" != NONE &&
4447  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4448# Use a double $ so make ignores it.
4449test "$program_suffix" != NONE &&
4450  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4451# Double any \ or $.  echo might interpret backslashes.
4452# By default was `s,x,x', remove it if useless.
4453cat <<\_ACEOF >conftest.sed
4454s/[\\$]/&&/g;s/;s,x,x,$//
4455_ACEOF
4456program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4457rm conftest.sed
4458
4459# expand $ac_aux_dir to an absolute path
4460am_aux_dir=`cd $ac_aux_dir && pwd`
4461
4462test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4463# Use eval to expand $SHELL
4464if eval "$MISSING --run true"; then
4465  am_missing_run="$MISSING --run "
4466else
4467  am_missing_run=
4468  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4469echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4470fi
4471
4472if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4473  # We used to keeping the `.' as first argument, in order to
4474  # allow $(mkdir_p) to be used without argument.  As in
4475  #   $(mkdir_p) $(somedir)
4476  # where $(somedir) is conditionally defined.  However this is wrong
4477  # for two reasons:
4478  #  1. if the package is installed by a user who cannot write `.'
4479  #     make install will fail,
4480  #  2. the above comment should most certainly read
4481  #     $(mkdir_p) $(DESTDIR)$(somedir)
4482  #     so it does not work when $(somedir) is undefined and
4483  #     $(DESTDIR) is not.
4484  #  To support the latter case, we have to write
4485  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4486  #  so the `.' trick is pointless.
4487  mkdir_p='mkdir -p --'
4488else
4489  # On NextStep and OpenStep, the `mkdir' command does not
4490  # recognize any option.  It will interpret all options as
4491  # directories to create, and then abort because `.' already
4492  # exists.
4493  for d in ./-p ./--version;
4494  do
4495    test -d $d && rmdir $d
4496  done
4497  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4498  if test -f "$ac_aux_dir/mkinstalldirs"; then
4499    mkdir_p='$(mkinstalldirs)'
4500  else
4501    mkdir_p='$(install_sh) -d'
4502  fi
4503fi
4504
4505for ac_prog in gawk mawk nawk awk
4506do
4507  # Extract the first word of "$ac_prog", so it can be a program name with args.
4508set dummy $ac_prog; ac_word=$2
4509echo "$as_me:$LINENO: checking for $ac_word" >&5
4510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511if test "${ac_cv_prog_AWK+set}" = set; then
4512  echo $ECHO_N "(cached) $ECHO_C" >&6
4513else
4514  if test -n "$AWK"; then
4515  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4516else
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520  IFS=$as_save_IFS
4521  test -z "$as_dir" && as_dir=.
4522  for ac_exec_ext in '' $ac_executable_extensions; do
4523  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524    ac_cv_prog_AWK="$ac_prog"
4525    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526    break 2
4527  fi
4528done
4529done
4530
4531fi
4532fi
4533AWK=$ac_cv_prog_AWK
4534if test -n "$AWK"; then
4535  echo "$as_me:$LINENO: result: $AWK" >&5
4536echo "${ECHO_T}$AWK" >&6
4537else
4538  echo "$as_me:$LINENO: result: no" >&5
4539echo "${ECHO_T}no" >&6
4540fi
4541
4542  test -n "$AWK" && break
4543done
4544
4545echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4546echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4547set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4548if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4549  echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
4551  cat >conftest.make <<\_ACEOF
4552all:
4553        @echo 'ac_maketemp="$(MAKE)"'
4554_ACEOF
4555# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4556eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4557if test -n "$ac_maketemp"; then
4558  eval ac_cv_prog_make_${ac_make}_set=yes
4559else
4560  eval ac_cv_prog_make_${ac_make}_set=no
4561fi
4562rm -f conftest.make
4563fi
4564if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4565  echo "$as_me:$LINENO: result: yes" >&5
4566echo "${ECHO_T}yes" >&6
4567  SET_MAKE=
4568else
4569  echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6
4571  SET_MAKE="MAKE=${MAKE-make}"
4572fi
4573
4574rm -rf .tst 2>/dev/null
4575mkdir .tst 2>/dev/null
4576if test -d .tst; then
4577  am__leading_dot=.
4578else
4579  am__leading_dot=_
4580fi
4581rmdir .tst 2>/dev/null
4582
4583DEPDIR="${am__leading_dot}deps"
4584
4585          ac_config_commands="$ac_config_commands depfiles"
4586
4587
4588am_make=${MAKE-make}
4589cat > confinc << 'END'
4590am__doit:
4591        @echo done
4592.PHONY: am__doit
4593END
4594# If we don't find an include directive, just comment out the code.
4595echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4596echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4597am__include="#"
4598am__quote=
4599_am_result=none
4600# First try GNU make style include.
4601echo "include confinc" > confmf
4602# We grep out `Entering directory' and `Leaving directory'
4603# messages which can occur if `w' ends up in MAKEFLAGS.
4604# In particular we don't look at `^make:' because GNU make might
4605# be invoked under some other name (usually "gmake"), in which
4606# case it prints its new name instead of `make'.
4607if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4608   am__include=include
4609   am__quote=
4610   _am_result=GNU
4611fi
4612# Now try BSD make style include.
4613if test "$am__include" = "#"; then
4614   echo '.include "confinc"' > confmf
4615   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4616      am__include=.include
4617      am__quote="\""
4618      _am_result=BSD
4619   fi
4620fi
4621
4622
4623echo "$as_me:$LINENO: result: $_am_result" >&5
4624echo "${ECHO_T}$_am_result" >&6
4625rm -f confinc confmf
4626
4627# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4628if test "${enable_dependency_tracking+set}" = set; then
4629  enableval="$enable_dependency_tracking"
4630
4631fi;
4632if test "x$enable_dependency_tracking" != xno; then
4633  am_depcomp="$ac_aux_dir/depcomp"
4634  AMDEPBACKSLASH='\'
4635fi
4636
4637
4638if test "x$enable_dependency_tracking" != xno; then
4639  AMDEP_TRUE=
4640  AMDEP_FALSE='#'
4641else
4642  AMDEP_TRUE='#'
4643  AMDEP_FALSE=
4644fi
4645
4646
4647
4648
4649
4650
4651# AC_MSG_NOTICE([Beginning automake initialisation.])
4652# Stuff for automake
4653# test to see if srcdir already configured
4654if test "`cd $srcdir && pwd`" != "`pwd`" &&
4655   test -f $srcdir/config.status; then
4656  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4657echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4658   { (exit 1); exit 1; }; }
4659fi
4660
4661# test whether we have cygpath
4662if test -z "$CYGPATH_W"; then
4663  if (cygpath --version) >/dev/null 2>/dev/null; then
4664    CYGPATH_W='cygpath -w'
4665  else
4666    CYGPATH_W=echo
4667  fi
4668fi
4669
4670
4671# Define the identity of the package.
4672 PACKAGE='thirdpartyscip'
4673 VERSION='trunk'
4674
4675
4676cat >>confdefs.h <<_ACEOF
4677#define PACKAGE "$PACKAGE"
4678_ACEOF
4679
4680
4681cat >>confdefs.h <<_ACEOF
4682#define VERSION "$VERSION"
4683_ACEOF
4684
4685# Some tools Automake needs.
4686
4687ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4688
4689
4690AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4691
4692
4693AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4694
4695
4696AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4697
4698
4699MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4700
4701install_sh=${install_sh-"$am_aux_dir/install-sh"}
4702
4703# Installed binaries are usually stripped using `strip' when the user
4704# run `make install-strip'.  However `strip' might not be the right
4705# tool to use in cross-compilation environments, therefore Automake
4706# will honor the `STRIP' environment variable to overrule this program.
4707if test "$cross_compiling" != no; then
4708  if test -n "$ac_tool_prefix"; then
4709  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4710set dummy ${ac_tool_prefix}strip; ac_word=$2
4711echo "$as_me:$LINENO: checking for $ac_word" >&5
4712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4713if test "${ac_cv_prog_STRIP+set}" = set; then
4714  echo $ECHO_N "(cached) $ECHO_C" >&6
4715else
4716  if test -n "$STRIP"; then
4717  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4718else
4719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720for as_dir in $PATH
4721do
4722  IFS=$as_save_IFS
4723  test -z "$as_dir" && as_dir=.
4724  for ac_exec_ext in '' $ac_executable_extensions; do
4725  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728    break 2
4729  fi
4730done
4731done
4732
4733fi
4734fi
4735STRIP=$ac_cv_prog_STRIP
4736if test -n "$STRIP"; then
4737  echo "$as_me:$LINENO: result: $STRIP" >&5
4738echo "${ECHO_T}$STRIP" >&6
4739else
4740  echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6
4742fi
4743
4744fi
4745if test -z "$ac_cv_prog_STRIP"; then
4746  ac_ct_STRIP=$STRIP
4747  # Extract the first word of "strip", so it can be a program name with args.
4748set dummy strip; ac_word=$2
4749echo "$as_me:$LINENO: checking for $ac_word" >&5
4750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4751if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4752  echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754  if test -n "$ac_ct_STRIP"; then
4755  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4756else
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760  IFS=$as_save_IFS
4761  test -z "$as_dir" && as_dir=.
4762  for ac_exec_ext in '' $ac_executable_extensions; do
4763  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764    ac_cv_prog_ac_ct_STRIP="strip"
4765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766    break 2
4767  fi
4768done
4769done
4770
4771  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4772fi
4773fi
4774ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4775if test -n "$ac_ct_STRIP"; then
4776  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4777echo "${ECHO_T}$ac_ct_STRIP" >&6
4778else
4779  echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6
4781fi
4782
4783  STRIP=$ac_ct_STRIP
4784else
4785  STRIP="$ac_cv_prog_STRIP"
4786fi
4787
4788fi
4789INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4790
4791# We need awk for the "check" target.  The system "awk" is bad on
4792# some platforms.
4793# Always define AMTAR for backward compatibility.
4794
4795AMTAR=${AMTAR-"${am_missing_run}tar"}
4796
4797am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4798
4799
4800
4801
4802depcc="$CC"   am_compiler_list=
4803
4804echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4805echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4806if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4807  echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4810  # We make a subdir and do the tests there.  Otherwise we can end up
4811  # making bogus files that we don't know about and never remove.  For
4812  # instance it was reported that on HP-UX the gcc test will end up
4813  # making a dummy file named `D' -- because `-MD' means `put the output
4814  # in D'.
4815  mkdir conftest.dir
4816  # Copy depcomp to subdir because otherwise we won't find it if we're
4817  # using a relative directory.
4818  cp "$am_depcomp" conftest.dir
4819  cd conftest.dir
4820  # We will build objects and dependencies in a subdirectory because
4821  # it helps to detect inapplicable dependency modes.  For instance
4822  # both Tru64's cc and ICC support -MD to output dependencies as a
4823  # side effect of compilation, but ICC will put the dependencies in
4824  # the current directory while Tru64 will put them in the object
4825  # directory.
4826  mkdir sub
4827
4828  am_cv_CC_dependencies_compiler_type=none
4829  if test "$am_compiler_list" = ""; then
4830     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4831  fi
4832  for depmode in $am_compiler_list; do
4833    # Setup a source with many dependencies, because some compilers
4834    # like to wrap large dependency lists on column 80 (with \), and
4835    # we should not choose a depcomp mode which is confused by this.
4836    #
4837    # We need to recreate these files for each test, as the compiler may
4838    # overwrite some of them when testing with obscure command lines.
4839    # This happens at least with the AIX C compiler.
4840    : > sub/conftest.c
4841    for i in 1 2 3 4 5 6; do
4842      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4843      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4844      # Solaris 8's {/usr,}/bin/sh.
4845      touch sub/conftst$i.h
4846    done
4847    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4848
4849    case $depmode in
4850    nosideeffect)
4851      # after this tag, mechanisms are not by side-effect, so they'll
4852      # only be used when explicitly requested
4853      if test "x$enable_dependency_tracking" = xyes; then
4854        continue
4855      else
4856        break
4857      fi
4858      ;;
4859    none) break ;;
4860    esac
4861    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4862    # mode.  It turns out that the SunPro C++ compiler does not properly
4863    # handle `-M -o', and we need to detect this.
4864    if depmode=$depmode \
4865       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4866       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4867       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4868         >/dev/null 2>conftest.err &&
4869       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4870       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4871       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4872      # icc doesn't choke on unknown options, it will just issue warnings
4873      # or remarks (even with -Werror).  So we grep stderr for any message
4874      # that says an option was ignored or not supported.
4875      # When given -MP, icc 7.0 and 7.1 complain thusly:
4876      #   icc: Command line warning: ignoring option '-M'; no argument required
4877      # The diagnosis changed in icc 8.0:
4878      #   icc: Command line remark: option '-MP' not supported
4879      if (grep 'ignoring option' conftest.err ||
4880          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4881        am_cv_CC_dependencies_compiler_type=$depmode
4882        break
4883      fi
4884    fi
4885  done
4886
4887  cd ..
4888  rm -rf conftest.dir
4889else
4890  am_cv_CC_dependencies_compiler_type=none
4891fi
4892
4893fi
4894echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4895echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4896CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4897
4898
4899
4900if
4901  test "x$enable_dependency_tracking" != xno \
4902  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4903  am__fastdepCC_TRUE=
4904  am__fastdepCC_FALSE='#'
4905else
4906  am__fastdepCC_TRUE='#'
4907  am__fastdepCC_FALSE=
4908fi
4909
4910
4911depcc="$CXX"  am_compiler_list=
4912
4913echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4914echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4915if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4916  echo $ECHO_N "(cached) $ECHO_C" >&6
4917else
4918  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4919  # We make a subdir and do the tests there.  Otherwise we can end up
4920  # making bogus files that we don't know about and never remove.  For
4921  # instance it was reported that on HP-UX the gcc test will end up
4922  # making a dummy file named `D' -- because `-MD' means `put the output
4923  # in D'.
4924  mkdir conftest.dir
4925  # Copy depcomp to subdir because otherwise we won't find it if we're
4926  # using a relative directory.
4927  cp "$am_depcomp" conftest.dir
4928  cd conftest.dir
4929  # We will build objects and dependencies in a subdirectory because
4930  # it helps to detect inapplicable dependency modes.  For instance
4931  # both Tru64's cc and ICC support -MD to output dependencies as a
4932  # side effect of compilation, but ICC will put the dependencies in
4933  # the current directory while Tru64 will put them in the object
4934  # directory.
4935  mkdir sub
4936
4937  am_cv_CXX_dependencies_compiler_type=none
4938  if test "$am_compiler_list" = ""; then
4939     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4940  fi
4941  for depmode in $am_compiler_list; do
4942    # Setup a source with many dependencies, because some compilers
4943    # like to wrap large dependency lists on column 80 (with \), and
4944    # we should not choose a depcomp mode which is confused by this.
4945    #
4946    # We need to recreate these files for each test, as the compiler may
4947    # overwrite some of them when testing with obscure command lines.
4948    # This happens at least with the AIX C compiler.
4949    : > sub/conftest.c
4950    for i in 1 2 3 4 5 6; do
4951      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4952      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4953      # Solaris 8's {/usr,}/bin/sh.
4954      touch sub/conftst$i.h
4955    done
4956    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4957
4958    case $depmode in
4959    nosideeffect)
4960      # after this tag, mechanisms are not by side-effect, so they'll
4961      # only be used when explicitly requested
4962      if test "x$enable_dependency_tracking" = xyes; then
4963        continue
4964      else
4965        break
4966      fi
4967      ;;
4968    none) break ;;
4969    esac
4970    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4971    # mode.  It turns out that the SunPro C++ compiler does not properly
4972    # handle `-M -o', and we need to detect this.
4973    if depmode=$depmode \
4974       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4975       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4976       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4977         >/dev/null 2>conftest.err &&
4978       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4979       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4980       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4981      # icc doesn't choke on unknown options, it will just issue warnings
4982      # or remarks (even with -Werror).  So we grep stderr for any message
4983      # that says an option was ignored or not supported.
4984      # When given -MP, icc 7.0 and 7.1 complain thusly:
4985      #   icc: Command line warning: ignoring option '-M'; no argument required
4986      # The diagnosis changed in icc 8.0:
4987      #   icc: Command line remark: option '-MP' not supported
4988      if (grep 'ignoring option' conftest.err ||
4989          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4990        am_cv_CXX_dependencies_compiler_type=$depmode
4991        break
4992      fi
4993    fi
4994  done
4995
4996  cd ..
4997  rm -rf conftest.dir
4998else
4999  am_cv_CXX_dependencies_compiler_type=none
5000fi
5001
5002fi
5003echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5004echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5005CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5006
5007
5008
5009if
5010  test "x$enable_dependency_tracking" != xno \
5011  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5012  am__fastdepCXX_TRUE=
5013  am__fastdepCXX_FALSE='#'
5014else
5015  am__fastdepCXX_TRUE='#'
5016  am__fastdepCXX_FALSE=
5017fi
5018
5019
5020
5021echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5022echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5023    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5024if test "${enable_maintainer_mode+set}" = set; then
5025  enableval="$enable_maintainer_mode"
5026  USE_MAINTAINER_MODE=$enableval
5027else
5028  USE_MAINTAINER_MODE=no
5029fi;
5030  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5031echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5032
5033
5034if test $USE_MAINTAINER_MODE = yes; then
5035  MAINTAINER_MODE_TRUE=
5036  MAINTAINER_MODE_FALSE='#'
5037else
5038  MAINTAINER_MODE_TRUE='#'
5039  MAINTAINER_MODE_FALSE=
5040fi
5041
5042  MAINT=$MAINTAINER_MODE_TRUE
5043
5044
5045
5046coin_have_externals=no
5047if test "$enable_maintainer_mode" = yes; then
5048
5049  # If maintainer mode is chosen, we make sure that the correct versions
5050  # of the tools are used, and that we know where libtool.m4 is (to
5051  # recreate acinclude.m4)
5052
5053
5054  LIBTOOLM4=
5055  # Normally, $HOME
5056  AUTOTOOLS_DFLT=$HOME
5057
5058  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5059echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5060if test "${ac_cv_use_correct_autotools+set}" = set; then
5061  echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063  ac_cv_use_correct_autotools=check
5064fi
5065echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5066echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5067
5068  if test $ac_cv_use_correct_autotools = check; then
5069    ac_cv_use_correct_autotools=yes
5070    # Check if we have autoconf
5071    # Extract the first word of "autoconf", so it can be a program name with args.
5072set dummy autoconf; ac_word=$2
5073echo "$as_me:$LINENO: checking for $ac_word" >&5
5074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075if test "${ac_cv_prog_have_autoconf+set}" = set; then
5076  echo $ECHO_N "(cached) $ECHO_C" >&6
5077else
5078  if test -n "$have_autoconf"; then
5079  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5080else
5081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082for as_dir in $PATH
5083do
5084  IFS=$as_save_IFS
5085  test -z "$as_dir" && as_dir=.
5086  for ac_exec_ext in '' $ac_executable_extensions; do
5087  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088    ac_cv_prog_have_autoconf="yes"
5089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090    break 2
5091  fi
5092done
5093done
5094
5095  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5096fi
5097fi
5098have_autoconf=$ac_cv_prog_have_autoconf
5099if test -n "$have_autoconf"; then
5100  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5101echo "${ECHO_T}$have_autoconf" >&6
5102else
5103  echo "$as_me:$LINENO: result: no" >&5
5104echo "${ECHO_T}no" >&6
5105fi
5106
5107    if test $have_autoconf = no; then
5108      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5109echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5110   { (exit 1); exit 1; }; }
5111    fi
5112
5113    # Check whether autoconf is the correct version
5114    correct_version='2.59'
5115    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5116    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5117echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5118    autoconf --version > confauto.out 2>&1
5119    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5120      echo "$as_me:$LINENO: result: yes" >&5
5121echo "${ECHO_T}yes" >&6
5122    else
5123      rm -f confauto.out
5124      echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5127echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5128   { (exit 1); exit 1; }; }
5129    fi
5130    rm -f confauto.out
5131
5132    # Check if the executable autoconf is picked up from the correct location
5133    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5134echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5135    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5136    autoconf_dir=`cd $autoconf_dir; pwd`
5137    if test x$AUTOTOOLS_DIR = x; then
5138      want_dir=$AUTOTOOLS_DFLT/bin
5139    else
5140      want_dir=$AUTOTOOLS_DIR/bin
5141    fi
5142    if test $autoconf_dir = `cd $want_dir; pwd`; then
5143      echo "$as_me:$LINENO: result: yes" >&5
5144echo "${ECHO_T}yes" >&6
5145    else
5146      rm -f confauto.out
5147      echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
5149      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5150echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5151   { (exit 1); exit 1; }; }
5152    fi
5153
5154    # Check if we have automake
5155    # Extract the first word of "automake", so it can be a program name with args.
5156set dummy automake; ac_word=$2
5157echo "$as_me:$LINENO: checking for $ac_word" >&5
5158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159if test "${ac_cv_prog_have_automake+set}" = set; then
5160  echo $ECHO_N "(cached) $ECHO_C" >&6
5161else
5162  if test -n "$have_automake"; then
5163  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5164else
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168  IFS=$as_save_IFS
5169  test -z "$as_dir" && as_dir=.
5170  for ac_exec_ext in '' $ac_executable_extensions; do
5171  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172    ac_cv_prog_have_automake="yes"
5173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174    break 2
5175  fi
5176done
5177done
5178
5179  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5180fi
5181fi
5182have_automake=$ac_cv_prog_have_automake
5183if test -n "$have_automake"; then
5184  echo "$as_me:$LINENO: result: $have_automake" >&5
5185echo "${ECHO_T}$have_automake" >&6
5186else
5187  echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6
5189fi
5190
5191    if test $have_automake = no; then
5192      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5193echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5194   { (exit 1); exit 1; }; }
5195    fi
5196
5197    # Check whether automake is the correct version
5198    correct_version='1.9.6'
5199    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5200    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5201echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5202    automake --version > confauto.out 2>&1
5203    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5204      echo "$as_me:$LINENO: result: yes" >&5
5205echo "${ECHO_T}yes" >&6
5206    else
5207      rm -f confauto.out
5208      echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6
5210      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5211echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5212   { (exit 1); exit 1; }; }
5213    fi
5214    rm -f confauto.out
5215
5216    # Check if the executable automake is picked up from the correct location
5217    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5218echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5219    automake_dir=`which automake | sed -e 's=/automake=='`
5220    automake_dir=`cd $automake_dir; pwd`
5221    if test x$AUTOTOOLS_DIR = x; then
5222      want_dir=$AUTOTOOLS_DFLT/bin
5223    else
5224      want_dir=$AUTOTOOLS_DIR/bin
5225    fi
5226    if test $automake_dir = `cd $want_dir; pwd`; then
5227      echo "$as_me:$LINENO: result: yes" >&5
5228echo "${ECHO_T}yes" >&6
5229    else
5230      rm -f confauto.out
5231      echo "$as_me:$LINENO: result: no" >&5
5232echo "${ECHO_T}no" >&6
5233      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5234echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5235   { (exit 1); exit 1; }; }
5236    fi
5237
5238    # Check if this is the correct version of libtool (with escaped dots)
5239    if test x$AUTOTOOLS_DIR = x; then
5240      want_dir=$AUTOTOOLS_DFLT/share
5241    else
5242      want_dir=$AUTOTOOLS_DIR/share
5243    fi
5244    correct_version='1.5.22'
5245    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5246    if test -r $want_dir/libtool/ltmain.sh; then
5247  have_ltmain=yes
5248  :
5249else
5250  have_ltmain=no
5251  :
5252fi
5253
5254    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5255echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5256    if test $have_ltmain = yes; then
5257    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5258        echo "$as_me:$LINENO: result: yes" >&5
5259echo "${ECHO_T}yes" >&6
5260      else
5261        echo "$as_me:$LINENO: result: no" >&5
5262echo "${ECHO_T}no" >&6
5263        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5264echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5265   { (exit 1); exit 1; }; }
5266      fi
5267    else
5268      echo "$as_me:$LINENO: result: no" >&5
5269echo "${ECHO_T}no" >&6
5270      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5271echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5272   { (exit 1); exit 1; }; }
5273    fi
5274  fi
5275
5276  # Check if we can find the libtool file
5277  if test x$AUTOTOOLS_DIR = x; then
5278    want_dir=$AUTOTOOLS_DFLT/share
5279  else
5280    want_dir=$AUTOTOOLS_DIR/share
5281  fi
5282  if test -r $want_dir/aclocal/libtool.m4; then
5283  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5284  :
5285else
5286  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5287echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5288   { (exit 1); exit 1; }; }
5289  :
5290fi
5291
5292
5293  # Check if we have an Dependencies file
5294  if test -r $srcdir/Dependencies; then
5295    coin_have_externals=yes
5296  fi
5297  # Check if subversion is installed and understands https
5298  # Extract the first word of "svn", so it can be a program name with args.
5299set dummy svn; ac_word=$2
5300echo "$as_me:$LINENO: checking for $ac_word" >&5
5301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302if test "${ac_cv_prog_have_svn+set}" = set; then
5303  echo $ECHO_N "(cached) $ECHO_C" >&6
5304else
5305  if test -n "$have_svn"; then
5306  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5307else
5308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309for as_dir in $PATH
5310do
5311  IFS=$as_save_IFS
5312  test -z "$as_dir" && as_dir=.
5313  for ac_exec_ext in '' $ac_executable_extensions; do
5314  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315    ac_cv_prog_have_svn="yes"
5316    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317    break 2
5318  fi
5319done
5320done
5321
5322  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5323fi
5324fi
5325have_svn=$ac_cv_prog_have_svn
5326if test -n "$have_svn"; then
5327  echo "$as_me:$LINENO: result: $have_svn" >&5
5328echo "${ECHO_T}$have_svn" >&6
5329else
5330  echo "$as_me:$LINENO: result: no" >&5
5331echo "${ECHO_T}no" >&6
5332fi
5333
5334  if test x$have_svn = xyes; then
5335    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5336echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5337if test "${ac_cv_svn_understands_https+set}" = set; then
5338  echo $ECHO_N "(cached) $ECHO_C" >&6
5339else
5340  svn --version > confauto.out 2>&1
5341                    if $EGREP https confauto.out >/dev/null 2>&1; then
5342                      ac_cv_svn_understands_https=yes
5343                    else
5344                      ac_cv_svn_understands_https=no
5345                      have_svn=no
5346                      ac_cv_prog_have_svn=no
5347                    fi
5348                    rm -f confauto.out
5349fi
5350echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5351echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5352  fi
5353
5354  # Find the location of the BuildTools directory
5355  BUILDTOOLSDIR=
5356  if test -r $srcdir/BuildTools/coin.m4; then
5357    BUILDTOOLSDIR=$srcdir/BuildTools
5358  else
5359    if test -r $srcdir/../BuildTools/coin.m4; then
5360      BUILDTOOLSDIR=$srcdir/../BuildTools
5361    else
5362      if test -r $srcdir/../../BuildTools/coin.m4; then
5363        BUILDTOOLSDIR=$srcdir/../../BuildTools
5364      else
5365        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5366echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5367   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5368      fi
5369    fi
5370  fi
5371
5372
5373  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5374  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5375    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5376  fi
5377
5378  # The following variable is set to the name of the directory where
5379  # the autotool scripts are located
5380
5381  AUX_DIR=$ac_aux_dir
5382fi
5383
5384# helpful variable for the base directory of this package
5385abs_source_dir=`cd $srcdir; pwd`
5386
5387
5388# Stuff for example Makefiles
5389if test x$prefix = xNONE; then
5390  full_prefix=$ac_default_prefix
5391else
5392  full_prefix=$prefix
5393fi
5394full_prefix=`cd $full_prefix ; pwd`
5395
5396abs_lib_dir=$full_prefix/lib
5397
5398abs_include_dir=$full_prefix/include
5399
5400abs_bin_dir=$full_prefix/bin
5401
5402
5403
5404if test $coin_have_externals = yes && test x$have_svn = xyes; then
5405  HAVE_EXTERNALS_TRUE=
5406  HAVE_EXTERNALS_FALSE='#'
5407else
5408  HAVE_EXTERNALS_TRUE='#'
5409  HAVE_EXTERNALS_FALSE=
5410fi
5411
5412
5413# AC_MSG_NOTICE([End automake initialisation.])
5414
5415
5416
5417LIBTOOL=
5418if test -r ../libtool; then
5419  coin_config_dir=..
5420  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5421fi
5422if test "x$LIBTOOL" = x; then
5423  if test -r ../../libtool; then
5424    coin_config_dir=../..
5425    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5426  fi
5427fi
5428
5429if test "x$LIBTOOL" = x; then
5430# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5431  # Stuff for libtool
5432  # Check whether --enable-shared or --disable-shared was given.
5433if test "${enable_shared+set}" = set; then
5434  enableval="$enable_shared"
5435  p=${PACKAGE-default}
5436    case $enableval in
5437    yes) enable_shared=yes ;;
5438    no) enable_shared=no ;;
5439    *)
5440      enable_shared=no
5441      # Look at the argument we got.  We use all the common list separators.
5442      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5443      for pkg in $enableval; do
5444        IFS="$lt_save_ifs"
5445        if test "X$pkg" = "X$p"; then
5446          enable_shared=yes
5447        fi
5448      done
5449      IFS="$lt_save_ifs"
5450      ;;
5451    esac
5452else
5453  enable_shared=yes
5454fi;
5455
5456# Check whether --enable-fast-install or --disable-fast-install was given.
5457if test "${enable_fast_install+set}" = set; then
5458  enableval="$enable_fast_install"
5459  p=${PACKAGE-default}
5460    case $enableval in
5461    yes) enable_fast_install=yes ;;
5462    no) enable_fast_install=no ;;
5463    *)
5464      enable_fast_install=no
5465      # Look at the argument we got.  We use all the common list separators.
5466      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5467      for pkg in $enableval; do
5468        IFS="$lt_save_ifs"
5469        if test "X$pkg" = "X$p"; then
5470          enable_fast_install=yes
5471        fi
5472      done
5473      IFS="$lt_save_ifs"
5474      ;;
5475    esac
5476else
5477  enable_fast_install=yes
5478fi;
5479
5480echo "$as_me:$LINENO: checking host system type" >&5
5481echo $ECHO_N "checking host system type... $ECHO_C" >&6
5482if test "${ac_cv_host+set}" = set; then
5483  echo $ECHO_N "(cached) $ECHO_C" >&6
5484else
5485  ac_cv_host_alias=$host_alias
5486test -z "$ac_cv_host_alias" &&
5487  ac_cv_host_alias=$ac_cv_build_alias
5488ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5489  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5490echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5491   { (exit 1); exit 1; }; }
5492
5493fi
5494echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5495echo "${ECHO_T}$ac_cv_host" >&6
5496host=$ac_cv_host
5497host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5498host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5499host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5500
5501
5502echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5503echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5504if test "${lt_cv_path_SED+set}" = set; then
5505  echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507  # Loop through the user's path and test for sed and gsed.
5508# Then use that list of sed's as ones to test for truncation.
5509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510for as_dir in $PATH
5511do
5512  IFS=$as_save_IFS
5513  test -z "$as_dir" && as_dir=.
5514  for lt_ac_prog in sed gsed; do
5515    for ac_exec_ext in '' $ac_executable_extensions; do
5516      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5517        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5518      fi
5519    done
5520  done
5521done
5522lt_ac_max=0
5523lt_ac_count=0
5524# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5525# along with /bin/sed that truncates output.
5526for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5527  test ! -f $lt_ac_sed && continue
5528  cat /dev/null > conftest.in
5529  lt_ac_count=0
5530  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5531  # Check for GNU sed and select it if it is found.
5532  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5533    lt_cv_path_SED=$lt_ac_sed
5534    break
5535  fi
5536  while true; do
5537    cat conftest.in conftest.in >conftest.tmp
5538    mv conftest.tmp conftest.in
5539    cp conftest.in conftest.nl
5540    echo >>conftest.nl
5541    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5542    cmp -s conftest.out conftest.nl || break
5543    # 10000 chars as input seems more than enough
5544    test $lt_ac_count -gt 10 && break
5545    lt_ac_count=`expr $lt_ac_count + 1`
5546    if test $lt_ac_count -gt $lt_ac_max; then
5547      lt_ac_max=$lt_ac_count
5548      lt_cv_path_SED=$lt_ac_sed
5549    fi
5550  done
5551done
5552
5553fi
5554
5555SED=$lt_cv_path_SED
5556echo "$as_me:$LINENO: result: $SED" >&5
5557echo "${ECHO_T}$SED" >&6
5558
5559
5560# Check whether --with-gnu-ld or --without-gnu-ld was given.
5561if test "${with_gnu_ld+set}" = set; then
5562  withval="$with_gnu_ld"
5563  test "$withval" = no || with_gnu_ld=yes
5564else
5565  with_gnu_ld=no
5566fi;
5567ac_prog=ld
5568if test "$GCC" = yes; then
5569  # Check if gcc -print-prog-name=ld gives a path.
5570  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5571echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5572  case $host in
5573  *-*-mingw*)
5574    # gcc leaves a trailing carriage return which upsets mingw
5575    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5576  *)
5577    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5578  esac
5579  case $ac_prog in
5580    # Accept absolute paths.
5581    [\\/]* | ?:[\\/]*)
5582      re_direlt='/[^/][^/]*/\.\./'
5583      # Canonicalize the pathname of ld
5584      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5585      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5586        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5587      done
5588      test -z "$LD" && LD="$ac_prog"
5589      ;;
5590  "")
5591    # If it fails, then pretend we aren't using GCC.
5592    ac_prog=ld
5593    ;;
5594  *)
5595    # If it is relative, then search for the first ld in PATH.
5596    with_gnu_ld=unknown
5597    ;;
5598  esac
5599elif test "$with_gnu_ld" = yes; then
5600  echo "$as_me:$LINENO: checking for GNU ld" >&5
5601echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5602else
5603  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5604echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5605fi
5606if test "${lt_cv_path_LD+set}" = set; then
5607  echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609  if test -z "$LD"; then
5610  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5611  for ac_dir in $PATH; do
5612    IFS="$lt_save_ifs"
5613    test -z "$ac_dir" && ac_dir=.
5614    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5615      lt_cv_path_LD="$ac_dir/$ac_prog"
5616      # Check to see if the program is GNU ld.  I'd rather use --version,
5617      # but apparently some variants of GNU ld only accept -v.
5618      # Break only if it was the GNU/non-GNU ld that we prefer.
5619      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5620      *GNU* | *'with BFD'*)
5621        test "$with_gnu_ld" != no && break
5622        ;;
5623      *)
5624        test "$with_gnu_ld" != yes && break
5625        ;;
5626      esac
5627    fi
5628  done
5629  IFS="$lt_save_ifs"
5630else
5631  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5632fi
5633fi
5634
5635LD="$lt_cv_path_LD"
5636if test -n "$LD"; then
5637  echo "$as_me:$LINENO: result: $LD" >&5
5638echo "${ECHO_T}$LD" >&6
5639else
5640  echo "$as_me:$LINENO: result: no" >&5
5641echo "${ECHO_T}no" >&6
5642fi
5643test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5644echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5645   { (exit 1); exit 1; }; }
5646echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5647echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5648if test "${lt_cv_prog_gnu_ld+set}" = set; then
5649  echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5652case `$LD -v 2>&1 </dev/null` in
5653*GNU* | *'with BFD'*)
5654  lt_cv_prog_gnu_ld=yes
5655  ;;
5656*)
5657  lt_cv_prog_gnu_ld=no
5658  ;;
5659esac
5660fi
5661echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5662echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5663with_gnu_ld=$lt_cv_prog_gnu_ld
5664
5665
5666echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5667echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5668if test "${lt_cv_ld_reload_flag+set}" = set; then
5669  echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671  lt_cv_ld_reload_flag='-r'
5672fi
5673echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5674echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5675reload_flag=$lt_cv_ld_reload_flag
5676case $reload_flag in
5677"" | " "*) ;;
5678*) reload_flag=" $reload_flag" ;;
5679esac
5680reload_cmds='$LD$reload_flag -o $output$reload_objs'
5681case $host_os in
5682  darwin*)
5683    if test "$GCC" = yes; then
5684      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5685    else
5686      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5687    fi
5688    ;;
5689esac
5690
5691echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5692echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5693if test "${lt_cv_path_NM+set}" = set; then
5694  echo $ECHO_N "(cached) $ECHO_C" >&6
5695else
5696  if test -n "$NM"; then
5697  # Let the user override the test.
5698  lt_cv_path_NM="$NM"
5699else
5700  lt_nm_to_check="${ac_tool_prefix}nm"
5701  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5702    lt_nm_to_check="$lt_nm_to_check nm"
5703  fi
5704  for lt_tmp_nm in $lt_nm_to_check; do
5705    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5706    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5707      IFS="$lt_save_ifs"
5708      test -z "$ac_dir" && ac_dir=.
5709      tmp_nm="$ac_dir/$lt_tmp_nm"
5710      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5711        # Check to see if the nm accepts a BSD-compat flag.
5712        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5713        #   nm: unknown option "B" ignored
5714        # Tru64's nm complains that /dev/null is an invalid object file
5715        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5716        */dev/null* | *'Invalid file or object type'*)
5717          lt_cv_path_NM="$tmp_nm -B"
5718          break
5719          ;;
5720        *)
5721          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5722          */dev/null*)
5723            lt_cv_path_NM="$tmp_nm -p"
5724            break
5725            ;;
5726          *)
5727            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5728            continue # so that we can try to find one that supports BSD flags
5729            ;;
5730          esac
5731          ;;
5732        esac
5733      fi
5734    done
5735    IFS="$lt_save_ifs"
5736  done
5737  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5738fi
5739fi
5740echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5741echo "${ECHO_T}$lt_cv_path_NM" >&6
5742NM="$lt_cv_path_NM"
5743
5744echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5745echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5746if test "${lt_cv_deplibs_check_method+set}" = set; then
5747  echo $ECHO_N "(cached) $ECHO_C" >&6
5748else
5749  lt_cv_file_magic_cmd='$MAGIC_CMD'
5750lt_cv_file_magic_test_file=
5751lt_cv_deplibs_check_method='unknown'
5752# Need to set the preceding variable on all platforms that support
5753# interlibrary dependencies.
5754# 'none' -- dependencies not supported.
5755# `unknown' -- same as none, but documents that we really don't know.
5756# 'pass_all' -- all dependencies passed with no checks.
5757# 'test_compile' -- check by making test program.
5758# 'file_magic [[regex]]' -- check by looking for files in library path
5759# which responds to the $file_magic_cmd with a given extended regex.
5760# If you have `file' or equivalent on your system and you're not sure
5761# whether `pass_all' will *always* work, you probably want this one.
5762
5763case $host_os in
5764aix4* | aix5*)
5765  lt_cv_deplibs_check_method=pass_all
5766  ;;
5767
5768beos*)
5769  lt_cv_deplibs_check_method=pass_all
5770  ;;
5771
5772bsdi[45]*)
5773  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5774  lt_cv_file_magic_cmd='/usr/bin/file -L'
5775  lt_cv_file_magic_test_file=/shlib/libc.so
5776  ;;
5777
5778cygwin*)
5779  # func_win32_libid is a shell function defined in ltmain.sh
5780  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5781  lt_cv_file_magic_cmd='func_win32_libid'
5782  ;;
5783
5784mingw* | pw32*)
5785  # Base MSYS/MinGW do not provide the 'file' command needed by
5786  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5787  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5788  lt_cv_file_magic_cmd='$OBJDUMP -f'
5789  ;;
5790
5791darwin* | rhapsody*)
5792  lt_cv_deplibs_check_method=pass_all
5793  ;;
5794
5795freebsd* | kfreebsd*-gnu | dragonfly*)
5796  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5797    case $host_cpu in
5798    i*86 )
5799      # Not sure whether the presence of OpenBSD here was a mistake.
5800      # Let's accept both of them until this is cleared up.
5801      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5802      lt_cv_file_magic_cmd=/usr/bin/file
5803      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5804      ;;
5805    esac
5806  else
5807    lt_cv_deplibs_check_method=pass_all
5808  fi
5809  ;;
5810
5811gnu*)
5812  lt_cv_deplibs_check_method=pass_all
5813  ;;
5814
5815hpux10.20* | hpux11*)
5816  lt_cv_file_magic_cmd=/usr/bin/file
5817  case $host_cpu in
5818  ia64*)
5819    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5820    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5821    ;;
5822  hppa*64*)
5823    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]'
5824    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5825    ;;
5826  *)
5827    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5828    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5829    ;;
5830  esac
5831  ;;
5832
5833interix3*)
5834  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5835  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5836  ;;
5837
5838irix5* | irix6* | nonstopux*)
5839  case $LD in
5840  *-32|*"-32 ") libmagic=32-bit;;
5841  *-n32|*"-n32 ") libmagic=N32;;
5842  *-64|*"-64 ") libmagic=64-bit;;
5843  *) libmagic=never-match;;
5844  esac
5845  lt_cv_deplibs_check_method=pass_all
5846  ;;
5847
5848# This must be Linux ELF.
5849linux*)
5850  lt_cv_deplibs_check_method=pass_all
5851  ;;
5852
5853netbsd*)
5854  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5855    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5856  else
5857    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5858  fi
5859  ;;
5860
5861newos6*)
5862  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5863  lt_cv_file_magic_cmd=/usr/bin/file
5864  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5865  ;;
5866
5867nto-qnx*)
5868  lt_cv_deplibs_check_method=unknown
5869  ;;
5870
5871openbsd*)
5872  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5873    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5874  else
5875    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5876  fi
5877  ;;
5878
5879osf3* | osf4* | osf5*)
5880  lt_cv_deplibs_check_method=pass_all
5881  ;;
5882
5883solaris*)
5884  lt_cv_deplibs_check_method=pass_all
5885  ;;
5886
5887sysv4 | sysv4.3*)
5888  case $host_vendor in
5889  motorola)
5890    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]'
5891    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5892    ;;
5893  ncr)
5894    lt_cv_deplibs_check_method=pass_all
5895    ;;
5896  sequent)
5897    lt_cv_file_magic_cmd='/bin/file'
5898    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5899    ;;
5900  sni)
5901    lt_cv_file_magic_cmd='/bin/file'
5902    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5903    lt_cv_file_magic_test_file=/lib/libc.so
5904    ;;
5905  siemens)
5906    lt_cv_deplibs_check_method=pass_all
5907    ;;
5908  pc)
5909    lt_cv_deplibs_check_method=pass_all
5910    ;;
5911  esac
5912  ;;
5913
5914sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5915  lt_cv_deplibs_check_method=pass_all
5916  ;;
5917esac
5918
5919fi
5920echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5921echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5922file_magic_cmd=$lt_cv_file_magic_cmd
5923deplibs_check_method=$lt_cv_deplibs_check_method
5924test -z "$deplibs_check_method" && deplibs_check_method=unknown
5925
5926
5927
5928
5929# If no C compiler was specified, use CC.
5930LTCC=${LTCC-"$CC"}
5931
5932# If no C compiler flags were specified, use CFLAGS.
5933LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5934
5935# Allow CC to be a program name with arguments.
5936compiler=$CC
5937
5938# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5939if test "${enable_libtool_lock+set}" = set; then
5940  enableval="$enable_libtool_lock"
5941
5942fi;
5943test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5944
5945# Some flags need to be propagated to the compiler or linker for good
5946# libtool support.
5947case $host in
5948ia64-*-hpux*)
5949  # Find out which ABI we are using.
5950  echo 'int i;' > conftest.$ac_ext
5951  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952  (eval $ac_compile) 2>&5
5953  ac_status=$?
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); }; then
5956    case `/usr/bin/file conftest.$ac_objext` in
5957    *ELF-32*)
5958      HPUX_IA64_MODE="32"
5959      ;;
5960    *ELF-64*)
5961      HPUX_IA64_MODE="64"
5962      ;;
5963    esac
5964  fi
5965  rm -rf conftest*
5966  ;;
5967*-*-irix6*)
5968  # Find out which ABI we are using.
5969  echo '#line 5969 "configure"' > conftest.$ac_ext
5970  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5971  (eval $ac_compile) 2>&5
5972  ac_status=$?
5973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974  (exit $ac_status); }; then
5975   if test "$lt_cv_prog_gnu_ld" = yes; then
5976    case `/usr/bin/file conftest.$ac_objext` in
5977    *32-bit*)
5978      LD="${LD-ld} -melf32bsmip"
5979      ;;
5980    *N32*)
5981      LD="${LD-ld} -melf32bmipn32"
5982      ;;
5983    *64-bit*)
5984      LD="${LD-ld} -melf64bmip"
5985      ;;
5986    esac
5987   else
5988    case `/usr/bin/file conftest.$ac_objext` in
5989    *32-bit*)
5990      LD="${LD-ld} -32"
5991      ;;
5992    *N32*)
5993      LD="${LD-ld} -n32"
5994      ;;
5995    *64-bit*)
5996      LD="${LD-ld} -64"
5997      ;;
5998    esac
5999   fi
6000  fi
6001  rm -rf conftest*
6002  ;;
6003
6004x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6005  # Find out which ABI we are using.
6006  echo 'int i;' > conftest.$ac_ext
6007  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008  (eval $ac_compile) 2>&5
6009  ac_status=$?
6010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011  (exit $ac_status); }; then
6012    case `/usr/bin/file conftest.o` in
6013    *32-bit*)
6014      case $host in
6015        x86_64-*linux*)
6016          LD="${LD-ld} -m elf_i386"
6017          ;;
6018        ppc64-*linux*|powerpc64-*linux*)
6019          LD="${LD-ld} -m elf32ppclinux"
6020          ;;
6021        s390x-*linux*)
6022          LD="${LD-ld} -m elf_s390"
6023          ;;
6024        sparc64-*linux*)
6025          LD="${LD-ld} -m elf32_sparc"
6026          ;;
6027      esac
6028      ;;
6029    *64-bit*)
6030      case $host in
6031        x86_64-*linux*)
6032          LD="${LD-ld} -m elf_x86_64"
6033          ;;
6034        ppc*-*linux*|powerpc*-*linux*)
6035          LD="${LD-ld} -m elf64ppc"
6036          ;;
6037        s390*-*linux*)
6038          LD="${LD-ld} -m elf64_s390"
6039          ;;
6040        sparc*-*linux*)
6041          LD="${LD-ld} -m elf64_sparc"
6042          ;;
6043      esac
6044      ;;
6045    esac
6046  fi
6047  rm -rf conftest*
6048  ;;
6049
6050*-*-sco3.2v5*)
6051  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6052  SAVE_CFLAGS="$CFLAGS"
6053  CFLAGS="$CFLAGS -belf"
6054  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6055echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6056if test "${lt_cv_cc_needs_belf+set}" = set; then
6057  echo $ECHO_N "(cached) $ECHO_C" >&6
6058else
6059  ac_ext=c
6060ac_cpp='$CPP $CPPFLAGS'
6061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064
6065     cat >conftest.$ac_ext <<_ACEOF
6066/* confdefs.h.  */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
6070/* end confdefs.h.  */
6071
6072int
6073main ()
6074{
6075
6076  ;
6077  return 0;
6078}
6079_ACEOF
6080rm -f conftest.$ac_objext conftest$ac_exeext
6081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082  (eval $ac_link) 2>conftest.er1
6083  ac_status=$?
6084  grep -v '^ *+' conftest.er1 >conftest.err
6085  rm -f conftest.er1
6086  cat conftest.err >&5
6087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088  (exit $ac_status); } &&
6089         { ac_try='test -z "$ac_c_werror_flag"
6090                         || test ! -s conftest.err'
6091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092  (eval $ac_try) 2>&5
6093  ac_status=$?
6094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095  (exit $ac_status); }; } &&
6096         { ac_try='test -s conftest$ac_exeext'
6097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098  (eval $ac_try) 2>&5
6099  ac_status=$?
6100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101  (exit $ac_status); }; }; then
6102  lt_cv_cc_needs_belf=yes
6103else
6104  echo "$as_me: failed program was:" >&5
6105sed 's/^/| /' conftest.$ac_ext >&5
6106
6107lt_cv_cc_needs_belf=no
6108fi
6109rm -f conftest.err conftest.$ac_objext \
6110      conftest$ac_exeext conftest.$ac_ext
6111     ac_ext=c
6112ac_cpp='$CPP $CPPFLAGS'
6113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115ac_compiler_gnu=$ac_cv_c_compiler_gnu
6116
6117fi
6118echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6119echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6120  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6121    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6122    CFLAGS="$SAVE_CFLAGS"
6123  fi
6124  ;;
6125sparc*-*solaris*)
6126  # Find out which ABI we are using.
6127  echo 'int i;' > conftest.$ac_ext
6128  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129  (eval $ac_compile) 2>&5
6130  ac_status=$?
6131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132  (exit $ac_status); }; then
6133    case `/usr/bin/file conftest.o` in
6134    *64-bit*)
6135      case $lt_cv_prog_gnu_ld in
6136      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6137      *)    LD="${LD-ld} -64" ;;
6138      esac
6139      ;;
6140    esac
6141  fi
6142  rm -rf conftest*
6143  ;;
6144
6145
6146esac
6147
6148need_locks="$enable_libtool_lock"
6149
6150
6151ac_ext=c
6152ac_cpp='$CPP $CPPFLAGS'
6153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6157echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6158# On Suns, sometimes $CPP names a directory.
6159if test -n "$CPP" && test -d "$CPP"; then
6160  CPP=
6161fi
6162if test -z "$CPP"; then
6163  if test "${ac_cv_prog_CPP+set}" = set; then
6164  echo $ECHO_N "(cached) $ECHO_C" >&6
6165else
6166      # Double quotes because CPP needs to be expanded
6167    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6168    do
6169      ac_preproc_ok=false
6170for ac_c_preproc_warn_flag in '' yes
6171do
6172  # Use a header file that comes with gcc, so configuring glibc
6173  # with a fresh cross-compiler works.
6174  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6175  # <limits.h> exists even on freestanding compilers.
6176  # On the NeXT, cc -E runs the code through the compiler's parser,
6177  # not just through cpp. "Syntax error" is here to catch this case.
6178  cat >conftest.$ac_ext <<_ACEOF
6179/* confdefs.h.  */
6180_ACEOF
6181cat confdefs.h >>conftest.$ac_ext
6182cat >>conftest.$ac_ext <<_ACEOF
6183/* end confdefs.h.  */
6184#ifdef __STDC__
6185# include <limits.h>
6186#else
6187# include <assert.h>
6188#endif
6189                     Syntax error
6190_ACEOF
6191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6192  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6193  ac_status=$?
6194  grep -v '^ *+' conftest.er1 >conftest.err
6195  rm -f conftest.er1
6196  cat conftest.err >&5
6197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198  (exit $ac_status); } >/dev/null; then
6199  if test -s conftest.err; then
6200    ac_cpp_err=$ac_c_preproc_warn_flag
6201    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6202  else
6203    ac_cpp_err=
6204  fi
6205else
6206  ac_cpp_err=yes
6207fi
6208if test -z "$ac_cpp_err"; then
6209  :
6210else
6211  echo "$as_me: failed program was:" >&5
6212sed 's/^/| /' conftest.$ac_ext >&5
6213
6214  # Broken: fails on valid input.
6215continue
6216fi
6217rm -f conftest.err conftest.$ac_ext
6218
6219  # OK, works on sane cases.  Now check whether non-existent headers
6220  # can be detected and how.
6221  cat >conftest.$ac_ext <<_ACEOF
6222/* confdefs.h.  */
6223_ACEOF
6224cat confdefs.h >>conftest.$ac_ext
6225cat >>conftest.$ac_ext <<_ACEOF
6226/* end confdefs.h.  */
6227#include <ac_nonexistent.h>
6228_ACEOF
6229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6230  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6231  ac_status=$?
6232  grep -v '^ *+' conftest.er1 >conftest.err
6233  rm -f conftest.er1
6234  cat conftest.err >&5
6235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); } >/dev/null; then
6237  if test -s conftest.err; then
6238    ac_cpp_err=$ac_c_preproc_warn_flag
6239    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6240  else
6241    ac_cpp_err=
6242  fi
6243else
6244  ac_cpp_err=yes
6245fi
6246if test -z "$ac_cpp_err"; then
6247  # Broken: success on invalid input.
6248continue
6249else
6250  echo "$as_me: failed program was:" >&5
6251sed 's/^/| /' conftest.$ac_ext >&5
6252
6253  # Passes both tests.
6254ac_preproc_ok=:
6255break
6256fi
6257rm -f conftest.err conftest.$ac_ext
6258
6259done
6260# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6261rm -f conftest.err conftest.$ac_ext
6262if $ac_preproc_ok; then
6263  break
6264fi
6265
6266    done
6267    ac_cv_prog_CPP=$CPP
6268
6269fi
6270  CPP=$ac_cv_prog_CPP
6271else
6272  ac_cv_prog_CPP=$CPP
6273fi
6274echo "$as_me:$LINENO: result: $CPP" >&5
6275echo "${ECHO_T}$CPP" >&6
6276ac_preproc_ok=false
6277for ac_c_preproc_warn_flag in '' yes
6278do
6279  # Use a header file that comes with gcc, so configuring glibc
6280  # with a fresh cross-compiler works.
6281  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6282  # <limits.h> exists even on freestanding compilers.
6283  # On the NeXT, cc -E runs the code through the compiler's parser,
6284  # not just through cpp. "Syntax error" is here to catch this case.
6285  cat >conftest.$ac_ext <<_ACEOF
6286/* confdefs.h.  */
6287_ACEOF
6288cat confdefs.h >>conftest.$ac_ext
6289cat >>conftest.$ac_ext <<_ACEOF
6290/* end confdefs.h.  */
6291#ifdef __STDC__
6292# include <limits.h>
6293#else
6294# include <assert.h>
6295#endif
6296                     Syntax error
6297_ACEOF
6298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6299  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6300  ac_status=$?
6301  grep -v '^ *+' conftest.er1 >conftest.err
6302  rm -f conftest.er1
6303  cat conftest.err >&5
6304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305  (exit $ac_status); } >/dev/null; then
6306  if test -s conftest.err; then
6307    ac_cpp_err=$ac_c_preproc_warn_flag
6308    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6309  else
6310    ac_cpp_err=
6311  fi
6312else
6313  ac_cpp_err=yes
6314fi
6315if test -z "$ac_cpp_err"; then
6316  :
6317else
6318  echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
6321  # Broken: fails on valid input.
6322continue
6323fi
6324rm -f conftest.err conftest.$ac_ext
6325
6326  # OK, works on sane cases.  Now check whether non-existent headers
6327  # can be detected and how.
6328  cat >conftest.$ac_ext <<_ACEOF
6329/* confdefs.h.  */
6330_ACEOF
6331cat confdefs.h >>conftest.$ac_ext
6332cat >>conftest.$ac_ext <<_ACEOF
6333/* end confdefs.h.  */
6334#include <ac_nonexistent.h>
6335_ACEOF
6336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6338  ac_status=$?
6339  grep -v '^ *+' conftest.er1 >conftest.err
6340  rm -f conftest.er1
6341  cat conftest.err >&5
6342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343  (exit $ac_status); } >/dev/null; then
6344  if test -s conftest.err; then
6345    ac_cpp_err=$ac_c_preproc_warn_flag
6346    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6347  else
6348    ac_cpp_err=
6349  fi
6350else
6351  ac_cpp_err=yes
6352fi
6353if test -z "$ac_cpp_err"; then
6354  # Broken: success on invalid input.
6355continue
6356else
6357  echo "$as_me: failed program was:" >&5
6358sed 's/^/| /' conftest.$ac_ext >&5
6359
6360  # Passes both tests.
6361ac_preproc_ok=:
6362break
6363fi
6364rm -f conftest.err conftest.$ac_ext
6365
6366done
6367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6368rm -f conftest.err conftest.$ac_ext
6369if $ac_preproc_ok; then
6370  :
6371else
6372  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6373See \`config.log' for more details." >&5
6374echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6375See \`config.log' for more details." >&2;}
6376   { (exit 1); exit 1; }; }
6377fi
6378
6379ac_ext=c
6380ac_cpp='$CPP $CPPFLAGS'
6381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383ac_compiler_gnu=$ac_cv_c_compiler_gnu
6384
6385
6386echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6387echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6388if test "${ac_cv_header_stdc+set}" = set; then
6389  echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391  cat >conftest.$ac_ext <<_ACEOF
6392/* confdefs.h.  */
6393_ACEOF
6394cat confdefs.h >>conftest.$ac_ext
6395cat >>conftest.$ac_ext <<_ACEOF
6396/* end confdefs.h.  */
6397#include <stdlib.h>
6398#include <stdarg.h>
6399#include <string.h>
6400#include <float.h>
6401
6402int
6403main ()
6404{
6405
6406  ;
6407  return 0;
6408}
6409_ACEOF
6410rm -f conftest.$ac_objext
6411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412  (eval $ac_compile) 2>conftest.er1
6413  ac_status=$?
6414  grep -v '^ *+' conftest.er1 >conftest.err
6415  rm -f conftest.er1
6416  cat conftest.err >&5
6417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418  (exit $ac_status); } &&
6419         { ac_try='test -z "$ac_c_werror_flag"
6420                         || test ! -s conftest.err'
6421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422  (eval $ac_try) 2>&5
6423  ac_status=$?
6424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425  (exit $ac_status); }; } &&
6426         { ac_try='test -s conftest.$ac_objext'
6427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428  (eval $ac_try) 2>&5
6429  ac_status=$?
6430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431  (exit $ac_status); }; }; then
6432  ac_cv_header_stdc=yes
6433else
6434  echo "$as_me: failed program was:" >&5
6435sed 's/^/| /' conftest.$ac_ext >&5
6436
6437ac_cv_header_stdc=no
6438fi
6439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6440
6441if test $ac_cv_header_stdc = yes; then
6442  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6443  cat >conftest.$ac_ext <<_ACEOF
6444/* confdefs.h.  */
6445_ACEOF
6446cat confdefs.h >>conftest.$ac_ext
6447cat >>conftest.$ac_ext <<_ACEOF
6448/* end confdefs.h.  */
6449#include <string.h>
6450
6451_ACEOF
6452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6453  $EGREP "memchr" >/dev/null 2>&1; then
6454  :
6455else
6456  ac_cv_header_stdc=no
6457fi
6458rm -f conftest*
6459
6460fi
6461
6462if test $ac_cv_header_stdc = yes; then
6463  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6464  cat >conftest.$ac_ext <<_ACEOF
6465/* confdefs.h.  */
6466_ACEOF
6467cat confdefs.h >>conftest.$ac_ext
6468cat >>conftest.$ac_ext <<_ACEOF
6469/* end confdefs.h.  */
6470#include <stdlib.h>
6471
6472_ACEOF
6473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6474  $EGREP "free" >/dev/null 2>&1; then
6475  :
6476else
6477  ac_cv_header_stdc=no
6478fi
6479rm -f conftest*
6480
6481fi
6482
6483if test $ac_cv_header_stdc = yes; then
6484  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6485  if test "$cross_compiling" = yes; then
6486  :
6487else
6488  cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h.  */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h.  */
6494#include <ctype.h>
6495#if ((' ' & 0x0FF) == 0x020)
6496# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6497# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6498#else
6499# define ISLOWER(c) \
6500                   (('a' <= (c) && (c) <= 'i') \
6501                     || ('j' <= (c) && (c) <= 'r') \
6502                     || ('s' <= (c) && (c) <= 'z'))
6503# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6504#endif
6505
6506#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6507int
6508main ()
6509{
6510  int i;
6511  for (i = 0; i < 256; i++)
6512    if (XOR (islower (i), ISLOWER (i))
6513        || toupper (i) != TOUPPER (i))
6514      exit(2);
6515  exit (0);
6516}
6517_ACEOF
6518rm -f conftest$ac_exeext
6519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520  (eval $ac_link) 2>&5
6521  ac_status=$?
6522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525  (eval $ac_try) 2>&5
6526  ac_status=$?
6527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528  (exit $ac_status); }; }; then
6529  :
6530else
6531  echo "$as_me: program exited with status $ac_status" >&5
6532echo "$as_me: failed program was:" >&5
6533sed 's/^/| /' conftest.$ac_ext >&5
6534
6535( exit $ac_status )
6536ac_cv_header_stdc=no
6537fi
6538rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6539fi
6540fi
6541fi
6542echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6543echo "${ECHO_T}$ac_cv_header_stdc" >&6
6544if test $ac_cv_header_stdc = yes; then
6545
6546cat >>confdefs.h <<\_ACEOF
6547#define STDC_HEADERS 1
6548_ACEOF
6549
6550fi
6551
6552# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6563                  inttypes.h stdint.h unistd.h
6564do
6565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6566echo "$as_me:$LINENO: checking for $ac_header" >&5
6567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6568if eval "test \"\${$as_ac_Header+set}\" = set"; then
6569  echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571  cat >conftest.$ac_ext <<_ACEOF
6572/* confdefs.h.  */
6573_ACEOF
6574cat confdefs.h >>conftest.$ac_ext
6575cat >>conftest.$ac_ext <<_ACEOF
6576/* end confdefs.h.  */
6577$ac_includes_default
6578
6579#include <$ac_header>
6580_ACEOF
6581rm -f conftest.$ac_objext
6582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583  (eval $ac_compile) 2>conftest.er1
6584  ac_status=$?
6585  grep -v '^ *+' conftest.er1 >conftest.err
6586  rm -f conftest.er1
6587  cat conftest.err >&5
6588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589  (exit $ac_status); } &&
6590         { ac_try='test -z "$ac_c_werror_flag"
6591                         || test ! -s conftest.err'
6592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593  (eval $ac_try) 2>&5
6594  ac_status=$?
6595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596  (exit $ac_status); }; } &&
6597         { ac_try='test -s conftest.$ac_objext'
6598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599  (eval $ac_try) 2>&5
6600  ac_status=$?
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); }; }; then
6603  eval "$as_ac_Header=yes"
6604else
6605  echo "$as_me: failed program was:" >&5
6606sed 's/^/| /' conftest.$ac_ext >&5
6607
6608eval "$as_ac_Header=no"
6609fi
6610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6611fi
6612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6613echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6614if test `eval echo '${'$as_ac_Header'}'` = yes; then
6615  cat >>confdefs.h <<_ACEOF
6616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6617_ACEOF
6618
6619fi
6620
6621done
6622
6623
6624
6625for ac_header in dlfcn.h
6626do
6627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6628if eval "test \"\${$as_ac_Header+set}\" = set"; then
6629  echo "$as_me:$LINENO: checking for $ac_header" >&5
6630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6631if eval "test \"\${$as_ac_Header+set}\" = set"; then
6632  echo $ECHO_N "(cached) $ECHO_C" >&6
6633fi
6634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6636else
6637  # Is the header compilable?
6638echo "$as_me:$LINENO: checking $ac_header usability" >&5
6639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6640cat >conftest.$ac_ext <<_ACEOF
6641/* confdefs.h.  */
6642_ACEOF
6643cat confdefs.h >>conftest.$ac_ext
6644cat >>conftest.$ac_ext <<_ACEOF
6645/* end confdefs.h.  */
6646$ac_includes_default
6647#include <$ac_header>
6648_ACEOF
6649rm -f conftest.$ac_objext
6650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651  (eval $ac_compile) 2>conftest.er1
6652  ac_status=$?
6653  grep -v '^ *+' conftest.er1 >conftest.err
6654  rm -f conftest.er1
6655  cat conftest.err >&5
6656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657  (exit $ac_status); } &&
6658         { ac_try='test -z "$ac_c_werror_flag"
6659                         || test ! -s conftest.err'
6660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661  (eval $ac_try) 2>&5
6662  ac_status=$?
6663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664  (exit $ac_status); }; } &&
6665         { ac_try='test -s conftest.$ac_objext'
6666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667  (eval $ac_try) 2>&5
6668  ac_status=$?
6669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670  (exit $ac_status); }; }; then
6671  ac_header_compiler=yes
6672else
6673  echo "$as_me: failed program was:" >&5
6674sed 's/^/| /' conftest.$ac_ext >&5
6675
6676ac_header_compiler=no
6677fi
6678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6680echo "${ECHO_T}$ac_header_compiler" >&6
6681
6682# Is the header present?
6683echo "$as_me:$LINENO: checking $ac_header presence" >&5
6684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6685cat >conftest.$ac_ext <<_ACEOF
6686/* confdefs.h.  */
6687_ACEOF
6688cat confdefs.h >>conftest.$ac_ext
6689cat >>conftest.$ac_ext <<_ACEOF
6690/* end confdefs.h.  */
6691#include <$ac_header>
6692_ACEOF
6693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6694  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6695  ac_status=$?
6696  grep -v '^ *+' conftest.er1 >conftest.err
6697  rm -f conftest.er1
6698  cat conftest.err >&5
6699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700  (exit $ac_status); } >/dev/null; then
6701  if test -s conftest.err; then
6702    ac_cpp_err=$ac_c_preproc_warn_flag
6703    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6704  else
6705    ac_cpp_err=
6706  fi
6707else
6708  ac_cpp_err=yes
6709fi
6710if test -z "$ac_cpp_err"; then
6711  ac_header_preproc=yes
6712else
6713  echo "$as_me: failed program was:" >&5
6714sed 's/^/| /' conftest.$ac_ext >&5
6715
6716  ac_header_preproc=no
6717fi
6718rm -f conftest.err conftest.$ac_ext
6719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6720echo "${ECHO_T}$ac_header_preproc" >&6
6721
6722# So?  What about this header?
6723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6724  yes:no: )
6725    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6727    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6729    ac_header_preproc=yes
6730    ;;
6731  no:yes:* )
6732    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6734    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6735echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6736    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6738    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6739echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6740    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6742    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6744    (
6745      cat <<\_ASBOX
6746## --------------------------------------------------------------- ##
6747## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6748## --------------------------------------------------------------- ##
6749_ASBOX
6750    ) |
6751      sed "s/^/$as_me: WARNING:     /" >&2
6752    ;;
6753esac
6754echo "$as_me:$LINENO: checking for $ac_header" >&5
6755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6756if eval "test \"\${$as_ac_Header+set}\" = set"; then
6757  echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759  eval "$as_ac_Header=\$ac_header_preproc"
6760fi
6761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6763
6764fi
6765if test `eval echo '${'$as_ac_Header'}'` = yes; then
6766  cat >>confdefs.h <<_ACEOF
6767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6768_ACEOF
6769
6770fi
6771
6772done
6773
6774
6775
6776if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6777    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6778    (test "X$CXX" != "Xg++"))) ; then
6779  ac_ext=cc
6780ac_cpp='$CXXCPP $CPPFLAGS'
6781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6784echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6785echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6786if test -z "$CXXCPP"; then
6787  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6788  echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790      # Double quotes because CXXCPP needs to be expanded
6791    for CXXCPP in "$CXX -E" "/lib/cpp"
6792    do
6793      ac_preproc_ok=false
6794for ac_cxx_preproc_warn_flag in '' yes
6795do
6796  # Use a header file that comes with gcc, so configuring glibc
6797  # with a fresh cross-compiler works.
6798  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6799  # <limits.h> exists even on freestanding compilers.
6800  # On the NeXT, cc -E runs the code through the compiler's parser,
6801  # not just through cpp. "Syntax error" is here to catch this case.
6802  cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h.  */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h.  */
6808#ifdef __STDC__
6809# include <limits.h>
6810#else
6811# include <assert.h>
6812#endif
6813                     Syntax error
6814_ACEOF
6815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6816  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6817  ac_status=$?
6818  grep -v '^ *+' conftest.er1 >conftest.err
6819  rm -f conftest.er1
6820  cat conftest.err >&5
6821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822  (exit $ac_status); } >/dev/null; then
6823  if test -s conftest.err; then
6824    ac_cpp_err=$ac_cxx_preproc_warn_flag
6825    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6826  else
6827    ac_cpp_err=
6828  fi
6829else
6830  ac_cpp_err=yes
6831fi
6832if test -z "$ac_cpp_err"; then
6833  :
6834else
6835  echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
6837
6838  # Broken: fails on valid input.
6839continue
6840fi
6841rm -f conftest.err conftest.$ac_ext
6842
6843  # OK, works on sane cases.  Now check whether non-existent headers
6844  # can be detected and how.
6845  cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h.  */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h.  */
6851#include <ac_nonexistent.h>
6852_ACEOF
6853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6854  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6855  ac_status=$?
6856  grep -v '^ *+' conftest.er1 >conftest.err
6857  rm -f conftest.er1
6858  cat conftest.err >&5
6859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860  (exit $ac_status); } >/dev/null; then
6861  if test -s conftest.err; then
6862    ac_cpp_err=$ac_cxx_preproc_warn_flag
6863    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6864  else
6865    ac_cpp_err=
6866  fi
6867else
6868  ac_cpp_err=yes
6869fi
6870if test -z "$ac_cpp_err"; then
6871  # Broken: success on invalid input.
6872continue
6873else
6874  echo "$as_me: failed program was:" >&5
6875sed 's/^/| /' conftest.$ac_ext >&5
6876
6877  # Passes both tests.
6878ac_preproc_ok=:
6879break
6880fi
6881rm -f conftest.err conftest.$ac_ext
6882
6883done
6884# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6885rm -f conftest.err conftest.$ac_ext
6886if $ac_preproc_ok; then
6887  break
6888fi
6889
6890    done
6891    ac_cv_prog_CXXCPP=$CXXCPP
6892
6893fi
6894  CXXCPP=$ac_cv_prog_CXXCPP
6895else
6896  ac_cv_prog_CXXCPP=$CXXCPP
6897fi
6898echo "$as_me:$LINENO: result: $CXXCPP" >&5
6899echo "${ECHO_T}$CXXCPP" >&6
6900ac_preproc_ok=false
6901for ac_cxx_preproc_warn_flag in '' yes
6902do
6903  # Use a header file that comes with gcc, so configuring glibc
6904  # with a fresh cross-compiler works.
6905  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6906  # <limits.h> exists even on freestanding compilers.
6907  # On the NeXT, cc -E runs the code through the compiler's parser,
6908  # not just through cpp. "Syntax error" is here to catch this case.
6909  cat >conftest.$ac_ext <<_ACEOF
6910/* confdefs.h.  */
6911_ACEOF
6912cat confdefs.h >>conftest.$ac_ext
6913cat >>conftest.$ac_ext <<_ACEOF
6914/* end confdefs.h.  */
6915#ifdef __STDC__
6916# include <limits.h>
6917#else
6918# include <assert.h>
6919#endif
6920                     Syntax error
6921_ACEOF
6922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6923  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6924  ac_status=$?
6925  grep -v '^ *+' conftest.er1 >conftest.err
6926  rm -f conftest.er1
6927  cat conftest.err >&5
6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); } >/dev/null; then
6930  if test -s conftest.err; then
6931    ac_cpp_err=$ac_cxx_preproc_warn_flag
6932    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6933  else
6934    ac_cpp_err=
6935  fi
6936else
6937  ac_cpp_err=yes
6938fi
6939if test -z "$ac_cpp_err"; then
6940  :
6941else
6942  echo "$as_me: failed program was:" >&5
6943sed 's/^/| /' conftest.$ac_ext >&5
6944
6945  # Broken: fails on valid input.
6946continue
6947fi
6948rm -f conftest.err conftest.$ac_ext
6949
6950  # OK, works on sane cases.  Now check whether non-existent headers
6951  # can be detected and how.
6952  cat >conftest.$ac_ext <<_ACEOF
6953/* confdefs.h.  */
6954_ACEOF
6955cat confdefs.h >>conftest.$ac_ext
6956cat >>conftest.$ac_ext <<_ACEOF
6957/* end confdefs.h.  */
6958#include <ac_nonexistent.h>
6959_ACEOF
6960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6961  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6962  ac_status=$?
6963  grep -v '^ *+' conftest.er1 >conftest.err
6964  rm -f conftest.er1
6965  cat conftest.err >&5
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); } >/dev/null; then
6968  if test -s conftest.err; then
6969    ac_cpp_err=$ac_cxx_preproc_warn_flag
6970    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6971  else
6972    ac_cpp_err=
6973  fi
6974else
6975  ac_cpp_err=yes
6976fi
6977if test -z "$ac_cpp_err"; then
6978  # Broken: success on invalid input.
6979continue
6980else
6981  echo "$as_me: failed program was:" >&5
6982sed 's/^/| /' conftest.$ac_ext >&5
6983
6984  # Passes both tests.
6985ac_preproc_ok=:
6986break
6987fi
6988rm -f conftest.err conftest.$ac_ext
6989
6990done
6991# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6992rm -f conftest.err conftest.$ac_ext
6993if $ac_preproc_ok; then
6994  :
6995else
6996  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6997See \`config.log' for more details." >&5
6998echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6999See \`config.log' for more details." >&2;}
7000   { (exit 1); exit 1; }; }
7001fi
7002
7003ac_ext=cc
7004ac_cpp='$CXXCPP $CPPFLAGS'
7005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7008
7009fi
7010
7011ac_ext=f
7012ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7013ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7015if test -n "$ac_tool_prefix"; then
7016  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7017  do
7018    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7019set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7020echo "$as_me:$LINENO: checking for $ac_word" >&5
7021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7022if test "${ac_cv_prog_F77+set}" = set; then
7023  echo $ECHO_N "(cached) $ECHO_C" >&6
7024else
7025  if test -n "$F77"; then
7026  ac_cv_prog_F77="$F77" # Let the user override the test.
7027else
7028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031  IFS=$as_save_IFS
7032  test -z "$as_dir" && as_dir=.
7033  for ac_exec_ext in '' $ac_executable_extensions; do
7034  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7036    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037    break 2
7038  fi
7039done
7040done
7041
7042fi
7043fi
7044F77=$ac_cv_prog_F77
7045if test -n "$F77"; then
7046  echo "$as_me:$LINENO: result: $F77" >&5
7047echo "${ECHO_T}$F77" >&6
7048else
7049  echo "$as_me:$LINENO: result: no" >&5
7050echo "${ECHO_T}no" >&6
7051fi
7052
7053    test -n "$F77" && break
7054  done
7055fi
7056if test -z "$F77"; then
7057  ac_ct_F77=$F77
7058  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7059do
7060  # Extract the first word of "$ac_prog", so it can be a program name with args.
7061set dummy $ac_prog; ac_word=$2
7062echo "$as_me:$LINENO: checking for $ac_word" >&5
7063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7064if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7065  echo $ECHO_N "(cached) $ECHO_C" >&6
7066else
7067  if test -n "$ac_ct_F77"; then
7068  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073  IFS=$as_save_IFS
7074  test -z "$as_dir" && as_dir=.
7075  for ac_exec_ext in '' $ac_executable_extensions; do
7076  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077    ac_cv_prog_ac_ct_F77="$ac_prog"
7078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079    break 2
7080  fi
7081done
7082done
7083
7084fi
7085fi
7086ac_ct_F77=$ac_cv_prog_ac_ct_F77
7087if test -n "$ac_ct_F77"; then
7088  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7089echo "${ECHO_T}$ac_ct_F77" >&6
7090else
7091  echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6
7093fi
7094
7095  test -n "$ac_ct_F77" && break
7096done
7097
7098  F77=$ac_ct_F77
7099fi
7100
7101
7102# Provide some information about the compiler.
7103echo "$as_me:7103:" \
7104     "checking for Fortran 77 compiler version" >&5
7105ac_compiler=`set X $ac_compile; echo $2`
7106{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7107  (eval $ac_compiler --version </dev/null >&5) 2>&5
7108  ac_status=$?
7109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110  (exit $ac_status); }
7111{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7112  (eval $ac_compiler -v </dev/null >&5) 2>&5
7113  ac_status=$?
7114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115  (exit $ac_status); }
7116{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7117  (eval $ac_compiler -V </dev/null >&5) 2>&5
7118  ac_status=$?
7119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120  (exit $ac_status); }
7121rm -f a.out
7122
7123# If we don't use `.F' as extension, the preprocessor is not run on the
7124# input file.  (Note that this only needs to work for GNU compilers.)
7125ac_save_ext=$ac_ext
7126ac_ext=F
7127echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7128echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7129if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7130  echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132  cat >conftest.$ac_ext <<_ACEOF
7133      program main
7134#ifndef __GNUC__
7135       choke me
7136#endif
7137
7138      end
7139_ACEOF
7140rm -f conftest.$ac_objext
7141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142  (eval $ac_compile) 2>conftest.er1
7143  ac_status=$?
7144  grep -v '^ *+' conftest.er1 >conftest.err
7145  rm -f conftest.er1
7146  cat conftest.err >&5
7147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148  (exit $ac_status); } &&
7149         { ac_try='test -z "$ac_f77_werror_flag"
7150                         || test ! -s conftest.err'
7151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152  (eval $ac_try) 2>&5
7153  ac_status=$?
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); }; } &&
7156         { ac_try='test -s conftest.$ac_objext'
7157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158  (eval $ac_try) 2>&5
7159  ac_status=$?
7160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161  (exit $ac_status); }; }; then
7162  ac_compiler_gnu=yes
7163else
7164  echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
7166
7167ac_compiler_gnu=no
7168fi
7169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7170ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7171
7172fi
7173echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7174echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7175ac_ext=$ac_save_ext
7176ac_test_FFLAGS=${FFLAGS+set}
7177ac_save_FFLAGS=$FFLAGS
7178FFLAGS=
7179echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7180echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7181if test "${ac_cv_prog_f77_g+set}" = set; then
7182  echo $ECHO_N "(cached) $ECHO_C" >&6
7183else
7184  FFLAGS=-g
7185cat >conftest.$ac_ext <<_ACEOF
7186      program main
7187
7188      end
7189_ACEOF
7190rm -f conftest.$ac_objext
7191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7192  (eval $ac_compile) 2>conftest.er1
7193  ac_status=$?
7194  grep -v '^ *+' conftest.er1 >conftest.err
7195  rm -f conftest.er1
7196  cat conftest.err >&5
7197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198  (exit $ac_status); } &&
7199         { ac_try='test -z "$ac_f77_werror_flag"
7200                         || test ! -s conftest.err'
7201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202  (eval $ac_try) 2>&5
7203  ac_status=$?
7204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205  (exit $ac_status); }; } &&
7206         { ac_try='test -s conftest.$ac_objext'
7207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208  (eval $ac_try) 2>&5
7209  ac_status=$?
7210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211  (exit $ac_status); }; }; then
7212  ac_cv_prog_f77_g=yes
7213else
7214  echo "$as_me: failed program was:" >&5
7215sed 's/^/| /' conftest.$ac_ext >&5
7216
7217ac_cv_prog_f77_g=no
7218fi
7219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7220
7221fi
7222echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7223echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7224if test "$ac_test_FFLAGS" = set; then
7225  FFLAGS=$ac_save_FFLAGS
7226elif test $ac_cv_prog_f77_g = yes; then
7227  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7228    FFLAGS="-g -O2"
7229  else
7230    FFLAGS="-g"
7231  fi
7232else
7233  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7234    FFLAGS="-O2"
7235  else
7236    FFLAGS=
7237  fi
7238fi
7239
7240G77=`test $ac_compiler_gnu = yes && echo yes`
7241ac_ext=c
7242ac_cpp='$CPP $CPPFLAGS'
7243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7245ac_compiler_gnu=$ac_cv_c_compiler_gnu
7246
7247
7248
7249# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7250
7251# find the maximum length of command line arguments
7252echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7253echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7254if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7255  echo $ECHO_N "(cached) $ECHO_C" >&6
7256else
7257    i=0
7258  teststring="ABCD"
7259
7260  case $build_os in
7261  msdosdjgpp*)
7262    # On DJGPP, this test can blow up pretty badly due to problems in libc
7263    # (any single argument exceeding 2000 bytes causes a buffer overrun
7264    # during glob expansion).  Even if it were fixed, the result of this
7265    # check would be larger than it should be.
7266    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7267    ;;
7268
7269  gnu*)
7270    # Under GNU Hurd, this test is not required because there is
7271    # no limit to the length of command line arguments.
7272    # Libtool will interpret -1 as no limit whatsoever
7273    lt_cv_sys_max_cmd_len=-1;
7274    ;;
7275
7276  cygwin* | mingw*)
7277    # On Win9x/ME, this test blows up -- it succeeds, but takes
7278    # about 5 minutes as the teststring grows exponentially.
7279    # Worse, since 9x/ME are not pre-emptively multitasking,
7280    # you end up with a "frozen" computer, even though with patience
7281    # the test eventually succeeds (with a max line length of 256k).
7282    # Instead, let's just punt: use the minimum linelength reported by
7283    # all of the supported platforms: 8192 (on NT/2K/XP).
7284    lt_cv_sys_max_cmd_len=8192;
7285    ;;
7286
7287  amigaos*)
7288    # On AmigaOS with pdksh, this test takes hours, literally.
7289    # So we just punt and use a minimum line length of 8192.
7290    lt_cv_sys_max_cmd_len=8192;
7291    ;;
7292
7293  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7294    # This has been around since 386BSD, at least.  Likely further.
7295    if test -x /sbin/sysctl; then
7296      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7297    elif test -x /usr/sbin/sysctl; then
7298      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7299    else
7300      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7301    fi
7302    # And add a safety zone
7303    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7304    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7305    ;;
7306
7307  interix*)
7308    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7309    lt_cv_sys_max_cmd_len=196608
7310    ;;
7311
7312  osf*)
7313    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7314    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7315    # nice to cause kernel panics so lets avoid the loop below.
7316    # First set a reasonable default.
7317    lt_cv_sys_max_cmd_len=16384
7318    #
7319    if test -x /sbin/sysconfig; then
7320      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7321        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7322      esac
7323    fi
7324    ;;
7325  sco3.2v5*)
7326    lt_cv_sys_max_cmd_len=102400
7327    ;;
7328  sysv5* | sco5v6* | sysv4.2uw2*)
7329    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7330    if test -n "$kargmax"; then
7331      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7332    else
7333      lt_cv_sys_max_cmd_len=32768
7334    fi
7335    ;;
7336  *)
7337    # If test is not a shell built-in, we'll probably end up computing a
7338    # maximum length that is only half of the actual maximum length, but
7339    # we can't tell.
7340    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7341    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7342               = "XX$teststring") >/dev/null 2>&1 &&
7343            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7344            lt_cv_sys_max_cmd_len=$new_result &&
7345            test $i != 17 # 1/2 MB should be enough
7346    do
7347      i=`expr $i + 1`
7348      teststring=$teststring$teststring
7349    done
7350    teststring=
7351    # Add a significant safety factor because C++ compilers can tack on massive
7352    # amounts of additional arguments before passing them to the linker.
7353    # It appears as though 1/2 is a usable value.
7354    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7355    ;;
7356  esac
7357
7358fi
7359
7360if test -n $lt_cv_sys_max_cmd_len ; then
7361  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7362echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7363else
7364  echo "$as_me:$LINENO: result: none" >&5
7365echo "${ECHO_T}none" >&6
7366fi
7367
7368
7369
7370
7371# Check for command to grab the raw symbol name followed by C symbol from nm.
7372echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7373echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7374if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7375  echo $ECHO_N "(cached) $ECHO_C" >&6
7376else
7377
7378# These are sane defaults that work on at least a few old systems.
7379# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7380
7381# Character class describing NM global symbol codes.
7382symcode='[BCDEGRST]'
7383
7384# Regexp to match symbols that can be accessed directly from C.
7385sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7386
7387# Transform an extracted symbol line into a proper C declaration
7388lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7389
7390# Transform an extracted symbol line into symbol name and symbol address
7391lt_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'"
7392
7393# Define system-specific variables.
7394case $host_os in
7395aix*)
7396  symcode='[BCDT]'
7397  ;;
7398cygwin* | mingw* | pw32*)
7399  symcode='[ABCDGISTW]'
7400  ;;
7401hpux*) # Its linker distinguishes data from code symbols
7402  if test "$host_cpu" = ia64; then
7403    symcode='[ABCDEGRST]'
7404  fi
7405  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7406  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'"
7407  ;;
7408linux*)
7409  if test "$host_cpu" = ia64; then
7410    symcode='[ABCDGIRSTW]'
7411    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7412    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'"
7413  fi
7414  ;;
7415irix* | nonstopux*)
7416  symcode='[BCDEGRST]'
7417  ;;
7418osf*)
7419  symcode='[BCDEGQRST]'
7420  ;;
7421solaris*)
7422  symcode='[BDRT]'
7423  ;;
7424sco3.2v5*)
7425  symcode='[DT]'
7426  ;;
7427sysv4.2uw2*)
7428  symcode='[DT]'
7429  ;;
7430sysv5* | sco5v6* | unixware* | OpenUNIX*)
7431  symcode='[ABDT]'
7432  ;;
7433sysv4)
7434  symcode='[DFNSTU]'
7435  ;;
7436esac
7437
7438# Handle CRLF in mingw tool chain
7439opt_cr=
7440case $build_os in
7441mingw*)
7442  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7443  ;;
7444esac
7445
7446# If we're using GNU nm, then use its standard symbol codes.
7447case `$NM -V 2>&1` in
7448*GNU* | *'with BFD'*)
7449  symcode='[ABCDGIRSTW]' ;;
7450esac
7451
7452# Try without a prefix undercore, then with it.
7453for ac_symprfx in "" "_"; do
7454
7455  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7456  symxfrm="\\1 $ac_symprfx\\2 \\2"
7457
7458  # Write the raw and C identifiers.
7459  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7460
7461  # Check to see that the pipe works correctly.
7462  pipe_works=no
7463
7464  rm -f conftest*
7465  cat > conftest.$ac_ext <<EOF
7466#ifdef __cplusplus
7467extern "C" {
7468#endif
7469char nm_test_var;
7470void nm_test_func(){}
7471#ifdef __cplusplus
7472}
7473#endif
7474int main(){nm_test_var='a';nm_test_func();return(0);}
7475EOF
7476
7477  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478  (eval $ac_compile) 2>&5
7479  ac_status=$?
7480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481  (exit $ac_status); }; then
7482    # Now try to grab the symbols.
7483    nlist=conftest.nm
7484    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7485  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7486  ac_status=$?
7487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488  (exit $ac_status); } && test -s "$nlist"; then
7489      # Try sorting and uniquifying the output.
7490      if sort "$nlist" | uniq > "$nlist"T; then
7491        mv -f "$nlist"T "$nlist"
7492      else
7493        rm -f "$nlist"T
7494      fi
7495
7496      # Make sure that we snagged all the symbols we need.
7497      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7498        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7499          cat <<EOF > conftest.$ac_ext
7500#ifdef __cplusplus
7501extern "C" {
7502#endif
7503
7504EOF
7505          # Now generate the symbol file.
7506          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7507
7508          cat <<EOF >> conftest.$ac_ext
7509#if defined (__STDC__) && __STDC__
7510# define lt_ptr_t void *
7511#else
7512# define lt_ptr_t char *
7513# define const
7514#endif
7515
7516/* The mapping between symbol names and symbols. */
7517const struct {
7518  const char *name;
7519  lt_ptr_t address;
7520}
7521lt_preloaded_symbols[] =
7522{
7523EOF
7524          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7525          cat <<\EOF >> conftest.$ac_ext
7526  {0, (lt_ptr_t) 0}
7527};
7528
7529#ifdef __cplusplus
7530}
7531#endif
7532EOF
7533          # Now try linking the two files.
7534          mv conftest.$ac_objext conftstm.$ac_objext
7535          lt_save_LIBS="$LIBS"
7536          lt_save_CFLAGS="$CFLAGS"
7537          LIBS="conftstm.$ac_objext"
7538          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7539          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7540  (eval $ac_link) 2>&5
7541  ac_status=$?
7542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7544            pipe_works=yes
7545          fi
7546          LIBS="$lt_save_LIBS"
7547          CFLAGS="$lt_save_CFLAGS"
7548        else
7549          echo "cannot find nm_test_func in $nlist" >&5
7550        fi
7551      else
7552        echo "cannot find nm_test_var in $nlist" >&5
7553      fi
7554    else
7555      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7556    fi
7557  else
7558    echo "$progname: failed program was:" >&5
7559    cat conftest.$ac_ext >&5
7560  fi
7561  rm -f conftest* conftst*
7562
7563  # Do not use the global_symbol_pipe unless it works.
7564  if test "$pipe_works" = yes; then
7565    break
7566  else
7567    lt_cv_sys_global_symbol_pipe=
7568  fi
7569done
7570
7571fi
7572
7573if test -z "$lt_cv_sys_global_symbol_pipe"; then
7574  lt_cv_sys_global_symbol_to_cdecl=
7575fi
7576if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7577  echo "$as_me:$LINENO: result: failed" >&5
7578echo "${ECHO_T}failed" >&6
7579else
7580  echo "$as_me:$LINENO: result: ok" >&5
7581echo "${ECHO_T}ok" >&6
7582fi
7583
7584echo "$as_me:$LINENO: checking for objdir" >&5
7585echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7586if test "${lt_cv_objdir+set}" = set; then
7587  echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589  rm -f .libs 2>/dev/null
7590mkdir .libs 2>/dev/null
7591if test -d .libs; then
7592  lt_cv_objdir=.libs
7593else
7594  # MS-DOS does not allow filenames that begin with a dot.
7595  lt_cv_objdir=_libs
7596fi
7597rmdir .libs 2>/dev/null
7598fi
7599echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7600echo "${ECHO_T}$lt_cv_objdir" >&6
7601objdir=$lt_cv_objdir
7602
7603
7604
7605
7606
7607case $host_os in
7608aix3*)
7609  # AIX sometimes has problems with the GCC collect2 program.  For some
7610  # reason, if we set the COLLECT_NAMES environment variable, the problems
7611  # vanish in a puff of smoke.
7612  if test "X${COLLECT_NAMES+set}" != Xset; then
7613    COLLECT_NAMES=
7614    export COLLECT_NAMES
7615  fi
7616  ;;
7617esac
7618
7619# Sed substitution that helps us do robust quoting.  It backslashifies
7620# metacharacters that are still active within double-quoted strings.
7621Xsed='sed -e 1s/^X//'
7622sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7623
7624# Same as above, but do not quote variable references.
7625double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7626
7627# Sed substitution to delay expansion of an escaped shell variable in a
7628# double_quote_subst'ed string.
7629delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7630
7631# Sed substitution to avoid accidental globbing in evaled expressions
7632no_glob_subst='s/\*/\\\*/g'
7633
7634# Constants:
7635rm="rm -f"
7636
7637# Global variables:
7638default_ofile=libtool
7639can_build_shared=yes
7640
7641# All known linkers require a `.a' archive for static linking (except MSVC,
7642# which needs '.lib').
7643libext=a
7644ltmain="$ac_aux_dir/ltmain.sh"
7645ofile="$default_ofile"
7646with_gnu_ld="$lt_cv_prog_gnu_ld"
7647
7648if test -n "$ac_tool_prefix"; then
7649  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7650set dummy ${ac_tool_prefix}ar; ac_word=$2
7651echo "$as_me:$LINENO: checking for $ac_word" >&5
7652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7653if test "${ac_cv_prog_AR+set}" = set; then
7654  echo $ECHO_N "(cached) $ECHO_C" >&6
7655else
7656  if test -n "$AR"; then
7657  ac_cv_prog_AR="$AR" # Let the user override the test.
7658else
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662  IFS=$as_save_IFS
7663  test -z "$as_dir" && as_dir=.
7664  for ac_exec_ext in '' $ac_executable_extensions; do
7665  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7666    ac_cv_prog_AR="${ac_tool_prefix}ar"
7667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668    break 2
7669  fi
7670done
7671done
7672
7673fi
7674fi
7675AR=$ac_cv_prog_AR
7676if test -n "$AR"; then
7677  echo "$as_me:$LINENO: result: $AR" >&5
7678echo "${ECHO_T}$AR" >&6
7679else
7680  echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6
7682fi
7683
7684fi
7685if test -z "$ac_cv_prog_AR"; then
7686  ac_ct_AR=$AR
7687  # Extract the first word of "ar", so it can be a program name with args.
7688set dummy ar; ac_word=$2
7689echo "$as_me:$LINENO: checking for $ac_word" >&5
7690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7691if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7692  echo $ECHO_N "(cached) $ECHO_C" >&6
7693else
7694  if test -n "$ac_ct_AR"; then
7695  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7696else
7697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698for as_dir in $PATH
7699do
7700  IFS=$as_save_IFS
7701  test -z "$as_dir" && as_dir=.
7702  for ac_exec_ext in '' $ac_executable_extensions; do
7703  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704    ac_cv_prog_ac_ct_AR="ar"
7705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7706    break 2
7707  fi
7708done
7709done
7710
7711  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7712fi
7713fi
7714ac_ct_AR=$ac_cv_prog_ac_ct_AR
7715if test -n "$ac_ct_AR"; then
7716  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7717echo "${ECHO_T}$ac_ct_AR" >&6
7718else
7719  echo "$as_me:$LINENO: result: no" >&5
7720echo "${ECHO_T}no" >&6
7721fi
7722
7723  AR=$ac_ct_AR
7724else
7725  AR="$ac_cv_prog_AR"
7726fi
7727
7728if test -n "$ac_tool_prefix"; then
7729  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7730set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7731echo "$as_me:$LINENO: checking for $ac_word" >&5
7732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7733if test "${ac_cv_prog_RANLIB+set}" = set; then
7734  echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736  if test -n "$RANLIB"; then
7737  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7738else
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742  IFS=$as_save_IFS
7743  test -z "$as_dir" && as_dir=.
7744  for ac_exec_ext in '' $ac_executable_extensions; do
7745  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748    break 2
7749  fi
7750done
7751done
7752
7753fi
7754fi
7755RANLIB=$ac_cv_prog_RANLIB
7756if test -n "$RANLIB"; then
7757  echo "$as_me:$LINENO: result: $RANLIB" >&5
7758echo "${ECHO_T}$RANLIB" >&6
7759else
7760  echo "$as_me:$LINENO: result: no" >&5
7761echo "${ECHO_T}no" >&6
7762fi
7763
7764fi
7765if test -z "$ac_cv_prog_RANLIB"; then
7766  ac_ct_RANLIB=$RANLIB
7767  # Extract the first word of "ranlib", so it can be a program name with args.
7768set dummy ranlib; ac_word=$2
7769echo "$as_me:$LINENO: checking for $ac_word" >&5
7770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7771if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7772  echo $ECHO_N "(cached) $ECHO_C" >&6
7773else
7774  if test -n "$ac_ct_RANLIB"; then
7775  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7776else
7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780  IFS=$as_save_IFS
7781  test -z "$as_dir" && as_dir=.
7782  for ac_exec_ext in '' $ac_executable_extensions; do
7783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7784    ac_cv_prog_ac_ct_RANLIB="ranlib"
7785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786    break 2
7787  fi
7788done
7789done
7790
7791  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7792fi
7793fi
7794ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7795if test -n "$ac_ct_RANLIB"; then
7796  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7797echo "${ECHO_T}$ac_ct_RANLIB" >&6
7798else
7799  echo "$as_me:$LINENO: result: no" >&5
7800echo "${ECHO_T}no" >&6
7801fi
7802
7803  RANLIB=$ac_ct_RANLIB
7804else
7805  RANLIB="$ac_cv_prog_RANLIB"
7806fi
7807
7808if test -n "$ac_tool_prefix"; then
7809  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7810set dummy ${ac_tool_prefix}strip; ac_word=$2
7811echo "$as_me:$LINENO: checking for $ac_word" >&5
7812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7813if test "${ac_cv_prog_STRIP+set}" = set; then
7814  echo $ECHO_N "(cached) $ECHO_C" >&6
7815else
7816  if test -n "$STRIP"; then
7817  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7818else
7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820for as_dir in $PATH
7821do
7822  IFS=$as_save_IFS
7823  test -z "$as_dir" && as_dir=.
7824  for ac_exec_ext in '' $ac_executable_extensions; do
7825  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7827    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828    break 2
7829  fi
7830done
7831done
7832
7833fi
7834fi
7835STRIP=$ac_cv_prog_STRIP
7836if test -n "$STRIP"; then
7837  echo "$as_me:$LINENO: result: $STRIP" >&5
7838echo "${ECHO_T}$STRIP" >&6
7839else
7840  echo "$as_me:$LINENO: result: no" >&5
7841echo "${ECHO_T}no" >&6
7842fi
7843
7844fi
7845if test -z "$ac_cv_prog_STRIP"; then
7846  ac_ct_STRIP=$STRIP
7847  # Extract the first word of "strip", so it can be a program name with args.
7848set dummy strip; ac_word=$2
7849echo "$as_me:$LINENO: checking for $ac_word" >&5
7850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7851if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7852  echo $ECHO_N "(cached) $ECHO_C" >&6
7853else
7854  if test -n "$ac_ct_STRIP"; then
7855  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860  IFS=$as_save_IFS
7861  test -z "$as_dir" && as_dir=.
7862  for ac_exec_ext in '' $ac_executable_extensions; do
7863  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864    ac_cv_prog_ac_ct_STRIP="strip"
7865    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866    break 2
7867  fi
7868done
7869done
7870
7871  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7872fi
7873fi
7874ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7875if test -n "$ac_ct_STRIP"; then
7876  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7877echo "${ECHO_T}$ac_ct_STRIP" >&6
7878else
7879  echo "$as_me:$LINENO: result: no" >&5
7880echo "${ECHO_T}no" >&6
7881fi
7882
7883  STRIP=$ac_ct_STRIP
7884else
7885  STRIP="$ac_cv_prog_STRIP"
7886fi
7887
7888
7889old_CC="$CC"
7890old_CFLAGS="$CFLAGS"
7891
7892# Set sane defaults for various variables
7893test -z "$AR" && AR=ar
7894test -z "$AR_FLAGS" && AR_FLAGS=cru
7895test -z "$AS" && AS=as
7896test -z "$CC" && CC=cc
7897test -z "$LTCC" && LTCC=$CC
7898test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7899test -z "$DLLTOOL" && DLLTOOL=dlltool
7900test -z "$LD" && LD=ld
7901test -z "$LN_S" && LN_S="ln -s"
7902test -z "$MAGIC_CMD" && MAGIC_CMD=file
7903test -z "$NM" && NM=nm
7904test -z "$SED" && SED=sed
7905test -z "$OBJDUMP" && OBJDUMP=objdump
7906test -z "$RANLIB" && RANLIB=:
7907test -z "$STRIP" && STRIP=:
7908test -z "$ac_objext" && ac_objext=o
7909
7910# Determine commands to create old-style static archives.
7911old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7912old_postinstall_cmds='chmod 644 $oldlib'
7913old_postuninstall_cmds=
7914
7915if test -n "$RANLIB"; then
7916  case $host_os in
7917  openbsd*)
7918    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7919    ;;
7920  *)
7921    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7922    ;;
7923  esac
7924  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7925fi
7926
7927for cc_temp in $compiler""; do
7928  case $cc_temp in
7929    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7930    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7931    \-*) ;;
7932    *) break;;
7933  esac
7934done
7935cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7936
7937
7938# Only perform the check for file, if the check method requires it
7939case $deplibs_check_method in
7940file_magic*)
7941  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7942    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7943echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7944if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7945  echo $ECHO_N "(cached) $ECHO_C" >&6
7946else
7947  case $MAGIC_CMD in
7948[\\/*] |  ?:[\\/]*)
7949  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7950  ;;
7951*)
7952  lt_save_MAGIC_CMD="$MAGIC_CMD"
7953  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7954  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7955  for ac_dir in $ac_dummy; do
7956    IFS="$lt_save_ifs"
7957    test -z "$ac_dir" && ac_dir=.
7958    if test -f $ac_dir/${ac_tool_prefix}file; then
7959      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7960      if test -n "$file_magic_test_file"; then
7961        case $deplibs_check_method in
7962        "file_magic "*)
7963          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7964          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7965          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7966            $EGREP "$file_magic_regex" > /dev/null; then
7967            :
7968          else
7969            cat <<EOF 1>&2
7970
7971*** Warning: the command libtool uses to detect shared libraries,
7972*** $file_magic_cmd, produces output that libtool cannot recognize.
7973*** The result is that libtool may fail to recognize shared libraries
7974*** as such.  This will affect the creation of libtool libraries that
7975*** depend on shared libraries, but programs linked with such libtool
7976*** libraries will work regardless of this problem.  Nevertheless, you
7977*** may want to report the problem to your system manager and/or to
7978*** bug-libtool@gnu.org
7979
7980EOF
7981          fi ;;
7982        esac
7983      fi
7984      break
7985    fi
7986  done
7987  IFS="$lt_save_ifs"
7988  MAGIC_CMD="$lt_save_MAGIC_CMD"
7989  ;;
7990esac
7991fi
7992
7993MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7994if test -n "$MAGIC_CMD"; then
7995  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7996echo "${ECHO_T}$MAGIC_CMD" >&6
7997else
7998  echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6
8000fi
8001
8002if test -z "$lt_cv_path_MAGIC_CMD"; then
8003  if test -n "$ac_tool_prefix"; then
8004    echo "$as_me:$LINENO: checking for file" >&5
8005echo $ECHO_N "checking for file... $ECHO_C" >&6
8006if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8007  echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009  case $MAGIC_CMD in
8010[\\/*] |  ?:[\\/]*)
8011  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8012  ;;
8013*)
8014  lt_save_MAGIC_CMD="$MAGIC_CMD"
8015  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8016  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8017  for ac_dir in $ac_dummy; do
8018    IFS="$lt_save_ifs"
8019    test -z "$ac_dir" && ac_dir=.
8020    if test -f $ac_dir/file; then
8021      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8022      if test -n "$file_magic_test_file"; then
8023        case $deplibs_check_method in
8024        "file_magic "*)
8025          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8026          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8027          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8028            $EGREP "$file_magic_regex" > /dev/null; then
8029            :
8030          else
8031            cat <<EOF 1>&2
8032
8033*** Warning: the command libtool uses to detect shared libraries,
8034*** $file_magic_cmd, produces output that libtool cannot recognize.
8035*** The result is that libtool may fail to recognize shared libraries
8036*** as such.  This will affect the creation of libtool libraries that
8037*** depend on shared libraries, but programs linked with such libtool
8038*** libraries will work regardless of this problem.  Nevertheless, you
8039*** may want to report the problem to your system manager and/or to
8040*** bug-libtool@gnu.org
8041
8042EOF
8043          fi ;;
8044        esac
8045      fi
8046      break
8047    fi
8048  done
8049  IFS="$lt_save_ifs"
8050  MAGIC_CMD="$lt_save_MAGIC_CMD"
8051  ;;
8052esac
8053fi
8054
8055MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8056if test -n "$MAGIC_CMD"; then
8057  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8058echo "${ECHO_T}$MAGIC_CMD" >&6
8059else
8060  echo "$as_me:$LINENO: result: no" >&5
8061echo "${ECHO_T}no" >&6
8062fi
8063
8064  else
8065    MAGIC_CMD=:
8066  fi
8067fi
8068
8069  fi
8070  ;;
8071esac
8072
8073enable_dlopen=no
8074enable_win32_dll=no
8075
8076# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8077if test "${enable_libtool_lock+set}" = set; then
8078  enableval="$enable_libtool_lock"
8079
8080fi;
8081test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8082
8083
8084# Check whether --with-pic or --without-pic was given.
8085if test "${with_pic+set}" = set; then
8086  withval="$with_pic"
8087  pic_mode="$withval"
8088else
8089  pic_mode=default
8090fi;
8091test -z "$pic_mode" && pic_mode=default
8092
8093# Use C for the default configuration in the libtool script
8094tagname=
8095lt_save_CC="$CC"
8096ac_ext=c
8097ac_cpp='$CPP $CPPFLAGS'
8098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8100ac_compiler_gnu=$ac_cv_c_compiler_gnu
8101
8102
8103# Source file extension for C test sources.
8104ac_ext=c
8105
8106# Object file extension for compiled C test sources.
8107objext=o
8108objext=$objext
8109
8110# Code to be used in simple compile tests
8111lt_simple_compile_test_code="int some_variable = 0;\n"
8112
8113# Code to be used in simple link tests
8114lt_simple_link_test_code='int main(){return(0);}\n'
8115
8116
8117# If no C compiler was specified, use CC.
8118LTCC=${LTCC-"$CC"}
8119
8120# If no C compiler flags were specified, use CFLAGS.
8121LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8122
8123# Allow CC to be a program name with arguments.
8124compiler=$CC
8125
8126
8127# save warnings/boilerplate of simple test code
8128ac_outfile=conftest.$ac_objext
8129printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8130eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8131_lt_compiler_boilerplate=`cat conftest.err`
8132$rm conftest*
8133
8134ac_outfile=conftest.$ac_objext
8135printf "$lt_simple_link_test_code" >conftest.$ac_ext
8136eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8137_lt_linker_boilerplate=`cat conftest.err`
8138$rm conftest*
8139
8140
8141## CAVEAT EMPTOR:
8142## There is no encapsulation within the following macros, do not change
8143## the running order or otherwise move them around unless you know exactly
8144## what you are doing...
8145
8146lt_prog_compiler_no_builtin_flag=
8147
8148if test "$GCC" = yes; then
8149  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8150
8151
8152echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8153echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8154if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8155  echo $ECHO_N "(cached) $ECHO_C" >&6
8156else
8157  lt_cv_prog_compiler_rtti_exceptions=no
8158  ac_outfile=conftest.$ac_objext
8159   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8160   lt_compiler_flag="-fno-rtti -fno-exceptions"
8161   # Insert the option either (1) after the last *FLAGS variable, or
8162   # (2) before a word containing "conftest.", or (3) at the end.
8163   # Note that $ac_compile itself does not contain backslashes and begins
8164   # with a dollar sign (not a hyphen), so the echo should work correctly.
8165   # The option is referenced via a variable to avoid confusing sed.
8166   lt_compile=`echo "$ac_compile" | $SED \
8167   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8168   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8169   -e 's:$: $lt_compiler_flag:'`
8170   (eval echo "\"\$as_me:8170: $lt_compile\"" >&5)
8171   (eval "$lt_compile" 2>conftest.err)
8172   ac_status=$?
8173   cat conftest.err >&5
8174   echo "$as_me:8174: \$? = $ac_status" >&5
8175   if (exit $ac_status) && test -s "$ac_outfile"; then
8176     # The compiler can only warn and ignore the option if not recognized
8177     # So say no if there are warnings other than the usual output.
8178     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8179     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8180     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8181       lt_cv_prog_compiler_rtti_exceptions=yes
8182     fi
8183   fi
8184   $rm conftest*
8185
8186fi
8187echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8188echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8189
8190if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8191    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8192else
8193    :
8194fi
8195
8196fi
8197
8198lt_prog_compiler_wl=
8199lt_prog_compiler_pic=
8200lt_prog_compiler_static=
8201
8202echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8203echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8204
8205  if test "$GCC" = yes; then
8206    lt_prog_compiler_wl='-Wl,'
8207    lt_prog_compiler_static='-static'
8208
8209    case $host_os in
8210      aix*)
8211      # All AIX code is PIC.
8212      if test "$host_cpu" = ia64; then
8213        # AIX 5 now supports IA64 processor
8214        lt_prog_compiler_static='-Bstatic'
8215      fi
8216      ;;
8217
8218    amigaos*)
8219      # FIXME: we need at least 68020 code to build shared libraries, but
8220      # adding the `-m68020' flag to GCC prevents building anything better,
8221      # like `-m68040'.
8222      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8223      ;;
8224
8225    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8226      # PIC is the default for these OSes.
8227      ;;
8228
8229    mingw* | pw32* | os2*)
8230      # This hack is so that the source file can tell whether it is being
8231      # built for inclusion in a dll (and should export symbols for example).
8232      lt_prog_compiler_pic='-DDLL_EXPORT'
8233      ;;
8234
8235    darwin* | rhapsody*)
8236      # PIC is the default on this platform
8237      # Common symbols not allowed in MH_DYLIB files
8238      lt_prog_compiler_pic='-fno-common'
8239      ;;
8240
8241    interix3*)
8242      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8243      # Instead, we relocate shared libraries at runtime.
8244      ;;
8245
8246    msdosdjgpp*)
8247      # Just because we use GCC doesn't mean we suddenly get shared libraries
8248      # on systems that don't support them.
8249      lt_prog_compiler_can_build_shared=no
8250      enable_shared=no
8251      ;;
8252
8253    sysv4*MP*)
8254      if test -d /usr/nec; then
8255        lt_prog_compiler_pic=-Kconform_pic
8256      fi
8257      ;;
8258
8259    hpux*)
8260      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8261      # not for PA HP-UX.
8262      case $host_cpu in
8263      hppa*64*|ia64*)
8264        # +Z the default
8265        ;;
8266      *)
8267        lt_prog_compiler_pic='-fPIC'
8268        ;;
8269      esac
8270      ;;
8271
8272    *)
8273      lt_prog_compiler_pic='-fPIC'
8274      ;;
8275    esac
8276  else
8277    # PORTME Check for flag to pass linker flags through the system compiler.
8278    case $host_os in
8279    aix*)
8280      lt_prog_compiler_wl='-Wl,'
8281      if test "$host_cpu" = ia64; then
8282        # AIX 5 now supports IA64 processor
8283        lt_prog_compiler_static='-Bstatic'
8284      else
8285        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8286      fi
8287      ;;
8288      darwin*)
8289        # PIC is the default on this platform
8290        # Common symbols not allowed in MH_DYLIB files
8291       case $cc_basename in
8292         xlc*)
8293         lt_prog_compiler_pic='-qnocommon'
8294         lt_prog_compiler_wl='-Wl,'
8295         ;;
8296       esac
8297       ;;
8298
8299    mingw* | pw32* | os2*)
8300      # This hack is so that the source file can tell whether it is being
8301      # built for inclusion in a dll (and should export symbols for example).
8302      lt_prog_compiler_pic='-DDLL_EXPORT'
8303      ;;
8304
8305    hpux9* | hpux10* | hpux11*)
8306      lt_prog_compiler_wl='-Wl,'
8307      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8308      # not for PA HP-UX.
8309      case $host_cpu in
8310      hppa*64*|ia64*)
8311        # +Z the default
8312        ;;
8313      *)
8314        lt_prog_compiler_pic='+Z'
8315        ;;
8316      esac
8317      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8318      lt_prog_compiler_static='${wl}-a ${wl}archive'
8319      ;;
8320
8321    irix5* | irix6* | nonstopux*)
8322      lt_prog_compiler_wl='-Wl,'
8323      # PIC (with -KPIC) is the default.
8324      lt_prog_compiler_static='-non_shared'
8325      ;;
8326
8327    newsos6)
8328      lt_prog_compiler_pic='-KPIC'
8329      lt_prog_compiler_static='-Bstatic'
8330      ;;
8331
8332    linux*)
8333      case $cc_basename in
8334      icc* | ecc*)
8335        lt_prog_compiler_wl='-Wl,'
8336        lt_prog_compiler_pic='-KPIC'
8337        lt_prog_compiler_static='-static'
8338        ;;
8339      pgcc* | pgf77* | pgf90* | pgf95*)
8340        # Portland Group compilers (*not* the Pentium gcc compiler,
8341        # which looks to be a dead project)
8342        lt_prog_compiler_wl='-Wl,'
8343        lt_prog_compiler_pic='-fpic'
8344        lt_prog_compiler_static='-Bstatic'
8345        ;;
8346      ccc*)
8347        lt_prog_compiler_wl='-Wl,'
8348        # All Alpha code is PIC.
8349        lt_prog_compiler_static='-non_shared'
8350        ;;
8351      esac
8352      ;;
8353
8354    osf3* | osf4* | osf5*)
8355      lt_prog_compiler_wl='-Wl,'
8356      # All OSF/1 code is PIC.
8357      lt_prog_compiler_static='-non_shared'
8358      ;;
8359
8360    solaris*)
8361      lt_prog_compiler_pic='-KPIC'
8362      lt_prog_compiler_static='-Bstatic'
8363      case $cc_basename in
8364      f77* | f90* | f95*)
8365        lt_prog_compiler_wl='-Qoption ld ';;
8366      *)
8367        lt_prog_compiler_wl='-Wl,';;
8368      esac
8369      ;;
8370
8371    sunos4*)
8372      lt_prog_compiler_wl='-Qoption ld '
8373      lt_prog_compiler_pic='-PIC'
8374      lt_prog_compiler_static='-Bstatic'
8375      ;;
8376
8377    sysv4 | sysv4.2uw2* | sysv4.3*)
8378      lt_prog_compiler_wl='-Wl,'
8379      lt_prog_compiler_pic='-KPIC'
8380      lt_prog_compiler_static='-Bstatic'
8381      ;;
8382
8383    sysv4*MP*)
8384      if test -d /usr/nec ;then
8385        lt_prog_compiler_pic='-Kconform_pic'
8386        lt_prog_compiler_static='-Bstatic'
8387      fi
8388      ;;
8389
8390    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8391      lt_prog_compiler_wl='-Wl,'
8392      lt_prog_compiler_pic='-KPIC'
8393      lt_prog_compiler_static='-Bstatic'
8394      ;;
8395
8396    unicos*)
8397      lt_prog_compiler_wl='-Wl,'
8398      lt_prog_compiler_can_build_shared=no
8399      ;;
8400
8401    uts4*)
8402      lt_prog_compiler_pic='-pic'
8403      lt_prog_compiler_static='-Bstatic'
8404      ;;
8405
8406    *)
8407      lt_prog_compiler_can_build_shared=no
8408      ;;
8409    esac
8410  fi
8411
8412echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8413echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8414
8415#
8416# Check to make sure the PIC flag actually works.
8417#
8418if test -n "$lt_prog_compiler_pic"; then
8419
8420echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8421echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8422if test "${lt_prog_compiler_pic_works+set}" = set; then
8423  echo $ECHO_N "(cached) $ECHO_C" >&6
8424else
8425  lt_prog_compiler_pic_works=no
8426  ac_outfile=conftest.$ac_objext
8427   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8428   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8429   # Insert the option either (1) after the last *FLAGS variable, or
8430   # (2) before a word containing "conftest.", or (3) at the end.
8431   # Note that $ac_compile itself does not contain backslashes and begins
8432   # with a dollar sign (not a hyphen), so the echo should work correctly.
8433   # The option is referenced via a variable to avoid confusing sed.
8434   lt_compile=`echo "$ac_compile" | $SED \
8435   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8436   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8437   -e 's:$: $lt_compiler_flag:'`
8438   (eval echo "\"\$as_me:8438: $lt_compile\"" >&5)
8439   (eval "$lt_compile" 2>conftest.err)
8440   ac_status=$?
8441   cat conftest.err >&5
8442   echo "$as_me:8442: \$? = $ac_status" >&5
8443   if (exit $ac_status) && test -s "$ac_outfile"; then
8444     # The compiler can only warn and ignore the option if not recognized
8445     # So say no if there are warnings other than the usual output.
8446     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8447     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8448     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8449       lt_prog_compiler_pic_works=yes
8450     fi
8451   fi
8452   $rm conftest*
8453
8454fi
8455echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8456echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8457
8458if test x"$lt_prog_compiler_pic_works" = xyes; then
8459    case $lt_prog_compiler_pic in
8460     "" | " "*) ;;
8461     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8462     esac
8463else
8464    lt_prog_compiler_pic=
8465     lt_prog_compiler_can_build_shared=no
8466fi
8467
8468fi
8469case $host_os in
8470  # For platforms which do not support PIC, -DPIC is meaningless:
8471  *djgpp*)
8472    lt_prog_compiler_pic=
8473    ;;
8474  *)
8475    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8476    ;;
8477esac
8478
8479#
8480# Check to make sure the static flag actually works.
8481#
8482wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8483echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8484echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8485if test "${lt_prog_compiler_static_works+set}" = set; then
8486  echo $ECHO_N "(cached) $ECHO_C" >&6
8487else
8488  lt_prog_compiler_static_works=no
8489   save_LDFLAGS="$LDFLAGS"
8490   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8491   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8492   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8493     # The linker can only warn and ignore the option if not recognized
8494     # So say no if there are warnings
8495     if test -s conftest.err; then
8496       # Append any errors to the config.log.
8497       cat conftest.err 1>&5
8498       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8499       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8500       if diff conftest.exp conftest.er2 >/dev/null; then
8501         lt_prog_compiler_static_works=yes
8502       fi
8503     else
8504       lt_prog_compiler_static_works=yes
8505     fi
8506   fi
8507   $rm conftest*
8508   LDFLAGS="$save_LDFLAGS"
8509
8510fi
8511echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8512echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8513
8514if test x"$lt_prog_compiler_static_works" = xyes; then
8515    :
8516else
8517    lt_prog_compiler_static=
8518fi
8519
8520
8521echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8522echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8523if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8524  echo $ECHO_N "(cached) $ECHO_C" >&6
8525else
8526  lt_cv_prog_compiler_c_o=no
8527   $rm -r conftest 2>/dev/null
8528   mkdir conftest
8529   cd conftest
8530   mkdir out
8531   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8532
8533   lt_compiler_flag="-o out/conftest2.$ac_objext"
8534   # Insert the option either (1) after the last *FLAGS variable, or
8535   # (2) before a word containing "conftest.", or (3) at the end.
8536   # Note that $ac_compile itself does not contain backslashes and begins
8537   # with a dollar sign (not a hyphen), so the echo should work correctly.
8538   lt_compile=`echo "$ac_compile" | $SED \
8539   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8540   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8541   -e 's:$: $lt_compiler_flag:'`
8542   (eval echo "\"\$as_me:8542: $lt_compile\"" >&5)
8543   (eval "$lt_compile" 2>out/conftest.err)
8544   ac_status=$?
8545   cat out/conftest.err >&5
8546   echo "$as_me:8546: \$? = $ac_status" >&5
8547   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8548   then
8549     # The compiler can only warn and ignore the option if not recognized
8550     # So say no if there are warnings
8551     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8552     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8553     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8554       lt_cv_prog_compiler_c_o=yes
8555     fi
8556   fi
8557   chmod u+w . 2>&5
8558   $rm conftest*
8559   # SGI C++ compiler will create directory out/ii_files/ for
8560   # template instantiation
8561   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8562   $rm out/* && rmdir out
8563   cd ..
8564   rmdir conftest
8565   $rm conftest*
8566
8567fi
8568echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8569echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8570
8571
8572hard_links="nottested"
8573if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8574  # do not overwrite the value of need_locks provided by the user
8575  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8576echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8577  hard_links=yes
8578  $rm conftest*
8579  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8580  touch conftest.a
8581  ln conftest.a conftest.b 2>&5 || hard_links=no
8582  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8583  echo "$as_me:$LINENO: result: $hard_links" >&5
8584echo "${ECHO_T}$hard_links" >&6
8585  if test "$hard_links" = no; then
8586    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8587echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8588    need_locks=warn
8589  fi
8590else
8591  need_locks=no
8592fi
8593
8594echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8595echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8596
8597  runpath_var=
8598  allow_undefined_flag=
8599  enable_shared_with_static_runtimes=no
8600  archive_cmds=
8601  archive_expsym_cmds=
8602  old_archive_From_new_cmds=
8603  old_archive_from_expsyms_cmds=
8604  export_dynamic_flag_spec=
8605  whole_archive_flag_spec=
8606  thread_safe_flag_spec=
8607  hardcode_libdir_flag_spec=
8608  hardcode_libdir_flag_spec_ld=
8609  hardcode_libdir_separator=
8610  hardcode_direct=no
8611  hardcode_minus_L=no
8612  hardcode_shlibpath_var=unsupported
8613  link_all_deplibs=unknown
8614  hardcode_automatic=no
8615  module_cmds=
8616  module_expsym_cmds=
8617  always_export_symbols=no
8618  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8619  # include_expsyms should be a list of space-separated symbols to be *always*
8620  # included in the symbol list
8621  include_expsyms=
8622  # exclude_expsyms can be an extended regexp of symbols to exclude
8623  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8624  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8625  # as well as any symbol that contains `d'.
8626  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8627  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8628  # platforms (ab)use it in PIC code, but their linkers get confused if
8629  # the symbol is explicitly referenced.  Since portable code cannot
8630  # rely on this symbol name, it's probably fine to never include it in
8631  # preloaded symbol tables.
8632  extract_expsyms_cmds=
8633  # Just being paranoid about ensuring that cc_basename is set.
8634  for cc_temp in $compiler""; do
8635  case $cc_temp in
8636    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8637    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8638    \-*) ;;
8639    *) break;;
8640  esac
8641done
8642cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8643
8644  case $host_os in
8645  cygwin* | mingw* | pw32*)
8646    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8647    # When not using gcc, we currently assume that we are using
8648    # Microsoft Visual C++.
8649    if test "$GCC" != yes; then
8650      with_gnu_ld=no
8651    fi
8652    ;;
8653  interix*)
8654    # we just hope/assume this is gcc and not c89 (= MSVC++)
8655    with_gnu_ld=yes
8656    ;;
8657  openbsd*)
8658    with_gnu_ld=no
8659    ;;
8660  esac
8661
8662  ld_shlibs=yes
8663  if test "$with_gnu_ld" = yes; then
8664    # If archive_cmds runs LD, not CC, wlarc should be empty
8665    wlarc='${wl}'
8666
8667    # Set some defaults for GNU ld with shared library support. These
8668    # are reset later if shared libraries are not supported. Putting them
8669    # here allows them to be overridden if necessary.
8670    runpath_var=LD_RUN_PATH
8671    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8672    export_dynamic_flag_spec='${wl}--export-dynamic'
8673    # ancient GNU ld didn't support --whole-archive et. al.
8674    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8675        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8676      else
8677        whole_archive_flag_spec=
8678    fi
8679    supports_anon_versioning=no
8680    case `$LD -v 2>/dev/null` in
8681      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8682      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8683      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8684      *\ 2.11.*) ;; # other 2.11 versions
8685      *) supports_anon_versioning=yes ;;
8686    esac
8687
8688    # See if GNU ld supports shared libraries.
8689    case $host_os in
8690    aix3* | aix4* | aix5*)
8691      # On AIX/PPC, the GNU linker is very broken
8692      if test "$host_cpu" != ia64; then
8693        ld_shlibs=no
8694        cat <<EOF 1>&2
8695
8696*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8697*** to be unable to reliably create shared libraries on AIX.
8698*** Therefore, libtool is disabling shared libraries support.  If you
8699*** really care for shared libraries, you may want to modify your PATH
8700*** so that a non-GNU linker is found, and then restart.
8701
8702EOF
8703      fi
8704      ;;
8705
8706    amigaos*)
8707      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)'
8708      hardcode_libdir_flag_spec='-L$libdir'
8709      hardcode_minus_L=yes
8710
8711      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8712      # that the semantics of dynamic libraries on AmigaOS, at least up
8713      # to version 4, is to share data among multiple programs linked
8714      # with the same dynamic library.  Since this doesn't match the
8715      # behavior of shared libraries on other platforms, we can't use
8716      # them.
8717      ld_shlibs=no
8718      ;;
8719
8720    beos*)
8721      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8722        allow_undefined_flag=unsupported
8723        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8724        # support --undefined.  This deserves some investigation.  FIXME
8725        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8726      else
8727        ld_shlibs=no
8728      fi
8729      ;;
8730
8731    cygwin* | mingw* | pw32*)
8732      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8733      # as there is no search path for DLLs.
8734      hardcode_libdir_flag_spec='-L$libdir'
8735      allow_undefined_flag=unsupported
8736      always_export_symbols=no
8737      enable_shared_with_static_runtimes=yes
8738      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8739
8740      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8741        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8742        # If the export-symbols file already is a .def file (1st line
8743        # is EXPORTS), use it as is; otherwise, prepend...
8744        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8745          cp $export_symbols $output_objdir/$soname.def;
8746        else
8747          echo EXPORTS > $output_objdir/$soname.def;
8748          cat $export_symbols >> $output_objdir/$soname.def;
8749        fi~
8750        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8751      else
8752        ld_shlibs=no
8753      fi
8754      ;;
8755
8756    interix3*)
8757      hardcode_direct=no
8758      hardcode_shlibpath_var=no
8759      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8760      export_dynamic_flag_spec='${wl}-E'
8761      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8762      # Instead, shared libraries are loaded at an image base (0x10000000 by
8763      # default) and relocated if they conflict, which is a slow very memory
8764      # consuming and fragmenting process.  To avoid this, we pick a random,
8765      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8766      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8767      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8768      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'
8769      ;;
8770
8771    linux*)
8772      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8773        tmp_addflag=
8774        case $cc_basename,$host_cpu in
8775        pgcc*)                          # Portland Group C compiler
8776          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'
8777          tmp_addflag=' $pic_flag'
8778          ;;
8779        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8780          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'
8781          tmp_addflag=' $pic_flag -Mnomain' ;;
8782        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8783          tmp_addflag=' -i_dynamic' ;;
8784        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8785          tmp_addflag=' -i_dynamic -nofor_main' ;;
8786        ifc* | ifort*)                  # Intel Fortran compiler
8787          tmp_addflag=' -nofor_main' ;;
8788        esac
8789        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8790
8791        if test $supports_anon_versioning = yes; then
8792          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8793  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8794  $echo "local: *; };" >> $output_objdir/$libname.ver~
8795          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8796        fi
8797      else
8798        ld_shlibs=no
8799      fi
8800      ;;
8801
8802    netbsd*)
8803      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8804        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8805        wlarc=
8806      else
8807        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8809      fi
8810      ;;
8811
8812    solaris*)
8813      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8814        ld_shlibs=no
8815        cat <<EOF 1>&2
8816
8817*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8818*** create shared libraries on Solaris systems.  Therefore, libtool
8819*** is disabling shared libraries support.  We urge you to upgrade GNU
8820*** binutils to release 2.9.1 or newer.  Another option is to modify
8821*** your PATH or compiler configuration so that the native linker is
8822*** used, and then restart.
8823
8824EOF
8825      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8826        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8828      else
8829        ld_shlibs=no
8830      fi
8831      ;;
8832
8833    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8834      case `$LD -v 2>&1` in
8835        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8836        ld_shlibs=no
8837        cat <<_LT_EOF 1>&2
8838
8839*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8840*** reliably create shared libraries on SCO systems.  Therefore, libtool
8841*** is disabling shared libraries support.  We urge you to upgrade GNU
8842*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8843*** your PATH or compiler configuration so that the native linker is
8844*** used, and then restart.
8845
8846_LT_EOF
8847        ;;
8848        *)
8849          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8850            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8851            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8852            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8853          else
8854            ld_shlibs=no
8855          fi
8856        ;;
8857      esac
8858      ;;
8859
8860    sunos4*)
8861      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8862      wlarc=
8863      hardcode_direct=yes
8864      hardcode_shlibpath_var=no
8865      ;;
8866
8867    *)
8868      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8869        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8870        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8871      else
8872        ld_shlibs=no
8873      fi
8874      ;;
8875    esac
8876
8877    if test "$ld_shlibs" = no; then
8878      runpath_var=
8879      hardcode_libdir_flag_spec=
8880      export_dynamic_flag_spec=
8881      whole_archive_flag_spec=
8882    fi
8883  else
8884    # PORTME fill in a description of your system's linker (not GNU ld)
8885    case $host_os in
8886    aix3*)
8887      allow_undefined_flag=unsupported
8888      always_export_symbols=yes
8889      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'
8890      # Note: this linker hardcodes the directories in LIBPATH if there
8891      # are no directories specified by -L.
8892      hardcode_minus_L=yes
8893      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8894        # Neither direct hardcoding nor static linking is supported with a
8895        # broken collect2.
8896        hardcode_direct=unsupported
8897      fi
8898      ;;
8899
8900    aix4* | aix5*)
8901      if test "$host_cpu" = ia64; then
8902        # On IA64, the linker does run time linking by default, so we don't
8903        # have to do anything special.
8904        aix_use_runtimelinking=no
8905        exp_sym_flag='-Bexport'
8906        no_entry_flag=""
8907      else
8908        # If we're using GNU nm, then we don't want the "-C" option.
8909        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8910        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8911          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'
8912        else
8913          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'
8914        fi
8915        aix_use_runtimelinking=no
8916
8917        # Test if we are trying to use run time linking or normal
8918        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8919        # need to do runtime linking.
8920        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8921          for ld_flag in $LDFLAGS; do
8922          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8923            aix_use_runtimelinking=yes
8924            break
8925          fi
8926          done
8927          ;;
8928        esac
8929
8930        exp_sym_flag='-bexport'
8931        no_entry_flag='-bnoentry'
8932      fi
8933
8934      # When large executables or shared objects are built, AIX ld can
8935      # have problems creating the table of contents.  If linking a library
8936      # or program results in "error TOC overflow" add -mminimal-toc to
8937      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8938      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8939
8940      archive_cmds=''
8941      hardcode_direct=yes
8942      hardcode_libdir_separator=':'
8943      link_all_deplibs=yes
8944
8945      if test "$GCC" = yes; then
8946        case $host_os in aix4.[012]|aix4.[012].*)
8947        # We only want to do this on AIX 4.2 and lower, the check
8948        # below for broken collect2 doesn't work under 4.3+
8949          collect2name=`${CC} -print-prog-name=collect2`
8950          if test -f "$collect2name" && \
8951           strings "$collect2name" | grep resolve_lib_name >/dev/null
8952          then
8953          # We have reworked collect2
8954          hardcode_direct=yes
8955          else
8956          # We have old collect2
8957          hardcode_direct=unsupported
8958          # It fails to find uninstalled libraries when the uninstalled
8959          # path is not listed in the libpath.  Setting hardcode_minus_L
8960          # to unsupported forces relinking
8961          hardcode_minus_L=yes
8962          hardcode_libdir_flag_spec='-L$libdir'
8963          hardcode_libdir_separator=
8964          fi
8965          ;;
8966        esac
8967        shared_flag='-shared'
8968        if test "$aix_use_runtimelinking" = yes; then
8969          shared_flag="$shared_flag "'${wl}-G'
8970        fi
8971      else
8972        # not using gcc
8973        if test "$host_cpu" = ia64; then
8974        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8975        # chokes on -Wl,-G. The following line is correct:
8976          shared_flag='-G'
8977        else
8978          if test "$aix_use_runtimelinking" = yes; then
8979            shared_flag='${wl}-G'
8980          else
8981            shared_flag='${wl}-bM:SRE'
8982          fi
8983        fi
8984      fi
8985
8986      # It seems that -bexpall does not export symbols beginning with
8987      # underscore (_), so it is better to generate a list of symbols to export.
8988      always_export_symbols=yes
8989      if test "$aix_use_runtimelinking" = yes; then
8990        # Warning - without using the other runtime loading flags (-brtl),
8991        # -berok will link without error, but may produce a broken library.
8992        allow_undefined_flag='-berok'
8993       # Determine the default libpath from the value encoded in an empty executable.
8994       cat >conftest.$ac_ext <<_ACEOF
8995/* confdefs.h.  */
8996_ACEOF
8997cat confdefs.h >>conftest.$ac_ext
8998cat >>conftest.$ac_ext <<_ACEOF
8999/* end confdefs.h.  */
9000
9001int
9002main ()
9003{
9004
9005  ;
9006  return 0;
9007}
9008_ACEOF
9009rm -f conftest.$ac_objext conftest$ac_exeext
9010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9011  (eval $ac_link) 2>conftest.er1
9012  ac_status=$?
9013  grep -v '^ *+' conftest.er1 >conftest.err
9014  rm -f conftest.er1
9015  cat conftest.err >&5
9016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017  (exit $ac_status); } &&
9018         { ac_try='test -z "$ac_c_werror_flag"
9019                         || test ! -s conftest.err'
9020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021  (eval $ac_try) 2>&5
9022  ac_status=$?
9023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024  (exit $ac_status); }; } &&
9025         { ac_try='test -s conftest$ac_exeext'
9026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027  (eval $ac_try) 2>&5
9028  ac_status=$?
9029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030  (exit $ac_status); }; }; then
9031
9032aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9033}'`
9034# Check for a 64-bit object if we didn't find anything.
9035if 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; }
9036}'`; fi
9037else
9038  echo "$as_me: failed program was:" >&5
9039sed 's/^/| /' conftest.$ac_ext >&5
9040
9041fi
9042rm -f conftest.err conftest.$ac_objext \
9043      conftest$ac_exeext conftest.$ac_ext
9044if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9045
9046       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9047        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"
9048       else
9049        if test "$host_cpu" = ia64; then
9050          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9051          allow_undefined_flag="-z nodefs"
9052          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"
9053        else
9054         # Determine the default libpath from the value encoded in an empty executable.
9055         cat >conftest.$ac_ext <<_ACEOF
9056/* confdefs.h.  */
9057_ACEOF
9058cat confdefs.h >>conftest.$ac_ext
9059cat >>conftest.$ac_ext <<_ACEOF
9060/* end confdefs.h.  */
9061
9062int
9063main ()
9064{
9065
9066  ;
9067  return 0;
9068}
9069_ACEOF
9070rm -f conftest.$ac_objext conftest$ac_exeext
9071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9072  (eval $ac_link) 2>conftest.er1
9073  ac_status=$?
9074  grep -v '^ *+' conftest.er1 >conftest.err
9075  rm -f conftest.er1
9076  cat conftest.err >&5
9077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078  (exit $ac_status); } &&
9079         { ac_try='test -z "$ac_c_werror_flag"
9080                         || test ! -s conftest.err'
9081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082  (eval $ac_try) 2>&5
9083  ac_status=$?
9084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085  (exit $ac_status); }; } &&
9086         { ac_try='test -s conftest$ac_exeext'
9087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088  (eval $ac_try) 2>&5
9089  ac_status=$?
9090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091  (exit $ac_status); }; }; then
9092
9093aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9094}'`
9095# Check for a 64-bit object if we didn't find anything.
9096if 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; }
9097}'`; fi
9098else
9099  echo "$as_me: failed program was:" >&5
9100sed 's/^/| /' conftest.$ac_ext >&5
9101
9102fi
9103rm -f conftest.err conftest.$ac_objext \
9104      conftest$ac_exeext conftest.$ac_ext
9105if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9106
9107         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9108          # Warning - without using the other run time loading flags,
9109          # -berok will link without error, but may produce a broken library.
9110          no_undefined_flag=' ${wl}-bernotok'
9111          allow_undefined_flag=' ${wl}-berok'
9112          # Exported symbols can be pulled into shared objects from archives
9113          whole_archive_flag_spec='$convenience'
9114          archive_cmds_need_lc=yes
9115          # This is similar to how AIX traditionally builds its shared libraries.
9116          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'
9117        fi
9118      fi
9119      ;;
9120
9121    amigaos*)
9122      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)'
9123      hardcode_libdir_flag_spec='-L$libdir'
9124      hardcode_minus_L=yes
9125      # see comment about different semantics on the GNU ld section
9126      ld_shlibs=no
9127      ;;
9128
9129    bsdi[45]*)
9130      export_dynamic_flag_spec=-rdynamic
9131      ;;
9132
9133    cygwin* | mingw* | pw32*)
9134      # When not using gcc, we currently assume that we are using
9135      # Microsoft Visual C++.
9136      # hardcode_libdir_flag_spec is actually meaningless, as there is
9137      # no search path for DLLs.
9138      hardcode_libdir_flag_spec=' '
9139      allow_undefined_flag=unsupported
9140      # Tell ltmain to make .lib files, not .a files.
9141      libext=lib
9142      # Tell ltmain to make .dll files, not .so files.
9143      shrext_cmds=".dll"
9144      # FIXME: Setting linknames here is a bad hack.
9145      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9146      # The linker will automatically build a .lib file if we build a DLL.
9147      old_archive_From_new_cmds='true'
9148      # FIXME: Should let the user specify the lib program.
9149      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9150      fix_srcfile_path='`cygpath -w "$srcfile"`'
9151      enable_shared_with_static_runtimes=yes
9152      ;;
9153
9154    darwin* | rhapsody*)
9155      case $host_os in
9156        rhapsody* | darwin1.[012])
9157         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9158         ;;
9159       *) # Darwin 1.3 on
9160         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9161           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9162         else
9163           case ${MACOSX_DEPLOYMENT_TARGET} in
9164             10.[012])
9165               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9166               ;;
9167             10.*)
9168               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9169               ;;
9170           esac
9171         fi
9172         ;;
9173      esac
9174      archive_cmds_need_lc=no
9175      hardcode_direct=no
9176      hardcode_automatic=yes
9177      hardcode_shlibpath_var=unsupported
9178      whole_archive_flag_spec=''
9179      link_all_deplibs=yes
9180    if test "$GCC" = yes ; then
9181        output_verbose_link_cmd='echo'
9182        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9183      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9184      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9185      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}'
9186      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}'
9187    else
9188      case $cc_basename in
9189        xlc*)
9190         output_verbose_link_cmd='echo'
9191         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9192         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9193          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9194         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}'
9195          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}'
9196          ;;
9197       *)
9198         ld_shlibs=no
9199          ;;
9200      esac
9201    fi
9202      ;;
9203
9204    dgux*)
9205      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9206      hardcode_libdir_flag_spec='-L$libdir'
9207      hardcode_shlibpath_var=no
9208      ;;
9209
9210    freebsd1*)
9211      ld_shlibs=no
9212      ;;
9213
9214    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9215    # support.  Future versions do this automatically, but an explicit c++rt0.o
9216    # does not break anything, and helps significantly (at the cost of a little
9217    # extra space).
9218    freebsd2.2*)
9219      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9220      hardcode_libdir_flag_spec='-R$libdir'
9221      hardcode_direct=yes
9222      hardcode_shlibpath_var=no
9223      ;;
9224
9225    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9226    freebsd2*)
9227      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9228      hardcode_direct=yes
9229      hardcode_minus_L=yes
9230      hardcode_shlibpath_var=no
9231      ;;
9232
9233    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9234    freebsd* | kfreebsd*-gnu | dragonfly*)
9235      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9236      hardcode_libdir_flag_spec='-R$libdir'
9237      hardcode_direct=yes
9238      hardcode_shlibpath_var=no
9239      ;;
9240
9241    hpux9*)
9242      if test "$GCC" = yes; then
9243        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'
9244      else
9245        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'
9246      fi
9247      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9248      hardcode_libdir_separator=:
9249      hardcode_direct=yes
9250
9251      # hardcode_minus_L: Not really in the search PATH,
9252      # but as the default location of the library.
9253      hardcode_minus_L=yes
9254      export_dynamic_flag_spec='${wl}-E'
9255      ;;
9256
9257    hpux10*)
9258      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9259        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9260      else
9261        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9262      fi
9263      if test "$with_gnu_ld" = no; then
9264        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9265        hardcode_libdir_separator=:
9266
9267        hardcode_direct=yes
9268        export_dynamic_flag_spec='${wl}-E'
9269
9270        # hardcode_minus_L: Not really in the search PATH,
9271        # but as the default location of the library.
9272        hardcode_minus_L=yes
9273      fi
9274      ;;
9275
9276    hpux11*)
9277      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9278        case $host_cpu in
9279        hppa*64*)
9280          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9281          ;;
9282        ia64*)
9283          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9284          ;;
9285        *)
9286          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9287          ;;
9288        esac
9289      else
9290        case $host_cpu in
9291        hppa*64*)
9292          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9293          ;;
9294        ia64*)
9295          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9296          ;;
9297        *)
9298          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9299          ;;
9300        esac
9301      fi
9302      if test "$with_gnu_ld" = no; then
9303        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9304        hardcode_libdir_separator=:
9305
9306        case $host_cpu in
9307        hppa*64*|ia64*)
9308          hardcode_libdir_flag_spec_ld='+b $libdir'
9309          hardcode_direct=no
9310          hardcode_shlibpath_var=no
9311          ;;
9312        *)
9313          hardcode_direct=yes
9314          export_dynamic_flag_spec='${wl}-E'
9315
9316          # hardcode_minus_L: Not really in the search PATH,
9317          # but as the default location of the library.
9318          hardcode_minus_L=yes
9319          ;;
9320        esac
9321      fi
9322      ;;
9323
9324    irix5* | irix6* | nonstopux*)
9325      if test "$GCC" = yes; then
9326        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'
9327      else
9328        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'
9329        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9330      fi
9331      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9332      hardcode_libdir_separator=:
9333      link_all_deplibs=yes
9334      ;;
9335
9336    netbsd*)
9337      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9338        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9339      else
9340        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9341      fi
9342      hardcode_libdir_flag_spec='-R$libdir'
9343      hardcode_direct=yes
9344      hardcode_shlibpath_var=no
9345      ;;
9346
9347    newsos6)
9348      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349      hardcode_direct=yes
9350      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9351      hardcode_libdir_separator=:
9352      hardcode_shlibpath_var=no
9353      ;;
9354
9355    openbsd*)
9356      hardcode_direct=yes
9357      hardcode_shlibpath_var=no
9358      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9359        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9360        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9361        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9362        export_dynamic_flag_spec='${wl}-E'
9363      else
9364       case $host_os in
9365         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9366           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9367           hardcode_libdir_flag_spec='-R$libdir'
9368           ;;
9369         *)
9370           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9371           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9372           ;;
9373       esac
9374      fi
9375      ;;
9376
9377    os2*)
9378      hardcode_libdir_flag_spec='-L$libdir'
9379      hardcode_minus_L=yes
9380      allow_undefined_flag=unsupported
9381      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'
9382      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9383      ;;
9384
9385    osf3*)
9386      if test "$GCC" = yes; then
9387        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9388        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'
9389      else
9390        allow_undefined_flag=' -expect_unresolved \*'
9391        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'
9392      fi
9393      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9394      hardcode_libdir_separator=:
9395      ;;
9396
9397    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9398      if test "$GCC" = yes; then
9399        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9400        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'
9401        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9402      else
9403        allow_undefined_flag=' -expect_unresolved \*'
9404        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'
9405        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9406        $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'
9407
9408        # Both c and cxx compiler support -rpath directly
9409        hardcode_libdir_flag_spec='-rpath $libdir'
9410      fi
9411      hardcode_libdir_separator=:
9412      ;;
9413
9414    solaris*)
9415      no_undefined_flag=' -z text'
9416      if test "$GCC" = yes; then
9417        wlarc='${wl}'
9418        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9419        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9420          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9421      else
9422        wlarc=''
9423        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9425        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9426      fi
9427      hardcode_libdir_flag_spec='-R$libdir'
9428      hardcode_shlibpath_var=no
9429      case $host_os in
9430      solaris2.[0-5] | solaris2.[0-5].*) ;;
9431      *)
9432        # The compiler driver will combine linker options so we
9433        # cannot just pass the convience library names through
9434        # without $wl, iff we do not link with $LD.
9435        # Luckily, gcc supports the same syntax we need for Sun Studio.
9436        # Supported since Solaris 2.6 (maybe 2.5.1?)
9437        case $wlarc in
9438        '')
9439          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9440        *)
9441          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' ;;
9442        esac ;;
9443      esac
9444      link_all_deplibs=yes
9445      ;;
9446
9447    sunos4*)
9448      if test "x$host_vendor" = xsequent; then
9449        # Use $CC to link under sequent, because it throws in some extra .o
9450        # files that make .init and .fini sections work.
9451        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9452      else
9453        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9454      fi
9455      hardcode_libdir_flag_spec='-L$libdir'
9456      hardcode_direct=yes
9457      hardcode_minus_L=yes
9458      hardcode_shlibpath_var=no
9459      ;;
9460
9461    sysv4)
9462      case $host_vendor in
9463        sni)
9464          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465          hardcode_direct=yes # is this really true???
9466        ;;
9467        siemens)
9468          ## LD is ld it makes a PLAMLIB
9469          ## CC just makes a GrossModule.
9470          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9471          reload_cmds='$CC -r -o $output$reload_objs'
9472          hardcode_direct=no
9473        ;;
9474        motorola)
9475          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9477        ;;
9478      esac
9479      runpath_var='LD_RUN_PATH'
9480      hardcode_shlibpath_var=no
9481      ;;
9482
9483    sysv4.3*)
9484      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485      hardcode_shlibpath_var=no
9486      export_dynamic_flag_spec='-Bexport'
9487      ;;
9488
9489    sysv4*MP*)
9490      if test -d /usr/nec; then
9491        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492        hardcode_shlibpath_var=no
9493        runpath_var=LD_RUN_PATH
9494        hardcode_runpath_var=yes
9495        ld_shlibs=yes
9496      fi
9497      ;;
9498
9499    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9500      no_undefined_flag='${wl}-z,text'
9501      archive_cmds_need_lc=no
9502      hardcode_shlibpath_var=no
9503      runpath_var='LD_RUN_PATH'
9504
9505      if test "$GCC" = yes; then
9506        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508      else
9509        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511      fi
9512      ;;
9513
9514    sysv5* | sco3.2v5* | sco5v6*)
9515      # Note: We can NOT use -z defs as we might desire, because we do not
9516      # link with -lc, and that would cause any symbols used from libc to
9517      # always be unresolved, which means just about no library would
9518      # ever link correctly.  If we're not using GNU ld we use -z text
9519      # though, which does catch some bad symbols but isn't as heavy-handed
9520      # as -z defs.
9521      no_undefined_flag='${wl}-z,text'
9522      allow_undefined_flag='${wl}-z,nodefs'
9523      archive_cmds_need_lc=no
9524      hardcode_shlibpath_var=no
9525      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9526      hardcode_libdir_separator=':'
9527      link_all_deplibs=yes
9528      export_dynamic_flag_spec='${wl}-Bexport'
9529      runpath_var='LD_RUN_PATH'
9530
9531      if test "$GCC" = yes; then
9532        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9533        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9534      else
9535        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9536        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9537      fi
9538      ;;
9539
9540    uts4*)
9541      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542      hardcode_libdir_flag_spec='-L$libdir'
9543      hardcode_shlibpath_var=no
9544      ;;
9545
9546    *)
9547      ld_shlibs=no
9548      ;;
9549    esac
9550  fi
9551
9552echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9553echo "${ECHO_T}$ld_shlibs" >&6
9554test "$ld_shlibs" = no && can_build_shared=no
9555
9556#
9557# Do we need to explicitly link libc?
9558#
9559case "x$archive_cmds_need_lc" in
9560x|xyes)
9561  # Assume -lc should be added
9562  archive_cmds_need_lc=yes
9563
9564  if test "$enable_shared" = yes && test "$GCC" = yes; then
9565    case $archive_cmds in
9566    *'~'*)
9567      # FIXME: we may have to deal with multi-command sequences.
9568      ;;
9569    '$CC '*)
9570      # Test whether the compiler implicitly links with -lc since on some
9571      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9572      # to ld, don't add -lc before -lgcc.
9573      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9574echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9575      $rm conftest*
9576      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9577
9578      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579  (eval $ac_compile) 2>&5
9580  ac_status=$?
9581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582  (exit $ac_status); } 2>conftest.err; then
9583        soname=conftest
9584        lib=conftest
9585        libobjs=conftest.$ac_objext
9586        deplibs=
9587        wl=$lt_prog_compiler_wl
9588        pic_flag=$lt_prog_compiler_pic
9589        compiler_flags=-v
9590        linker_flags=-v
9591        verstring=
9592        output_objdir=.
9593        libname=conftest
9594        lt_save_allow_undefined_flag=$allow_undefined_flag
9595        allow_undefined_flag=
9596        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9597  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9598  ac_status=$?
9599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600  (exit $ac_status); }
9601        then
9602          archive_cmds_need_lc=no
9603        else
9604          archive_cmds_need_lc=yes
9605        fi
9606        allow_undefined_flag=$lt_save_allow_undefined_flag
9607      else
9608        cat conftest.err 1>&5
9609      fi
9610      $rm conftest*
9611      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9612echo "${ECHO_T}$archive_cmds_need_lc" >&6
9613      ;;
9614    esac
9615  fi
9616  ;;
9617esac
9618
9619echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9620echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9621library_names_spec=
9622libname_spec='lib$name'
9623soname_spec=
9624shrext_cmds=".so"
9625postinstall_cmds=
9626postuninstall_cmds=
9627finish_cmds=
9628finish_eval=
9629shlibpath_var=
9630shlibpath_overrides_runpath=unknown
9631version_type=none
9632dynamic_linker="$host_os ld.so"
9633sys_lib_dlsearch_path_spec="/lib /usr/lib"
9634if test "$GCC" = yes; then
9635  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9636  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9637    # if the path contains ";" then we assume it to be the separator
9638    # otherwise default to the standard path separator (i.e. ":") - it is
9639    # assumed that no part of a normal pathname contains ";" but that should
9640    # okay in the real world where ";" in dirpaths is itself problematic.
9641    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9642  else
9643    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9644  fi
9645else
9646  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9647fi
9648need_lib_prefix=unknown
9649hardcode_into_libs=no
9650
9651# when you set need_version to no, make sure it does not cause -set_version
9652# flags to be left without arguments
9653need_version=unknown
9654
9655case $host_os in
9656aix3*)
9657  version_type=linux
9658  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9659  shlibpath_var=LIBPATH
9660
9661  # AIX 3 has no versioning support, so we append a major version to the name.
9662  soname_spec='${libname}${release}${shared_ext}$major'
9663  ;;
9664
9665aix4* | aix5*)
9666  version_type=linux
9667  need_lib_prefix=no
9668  need_version=no
9669  hardcode_into_libs=yes
9670  if test "$host_cpu" = ia64; then
9671    # AIX 5 supports IA64
9672    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9673    shlibpath_var=LD_LIBRARY_PATH
9674  else
9675    # With GCC up to 2.95.x, collect2 would create an import file
9676    # for dependence libraries.  The import file would start with
9677    # the line `#! .'.  This would cause the generated library to
9678    # depend on `.', always an invalid library.  This was fixed in
9679    # development snapshots of GCC prior to 3.0.
9680    case $host_os in
9681      aix4 | aix4.[01] | aix4.[01].*)
9682      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9683           echo ' yes '
9684           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9685        :
9686      else
9687        can_build_shared=no
9688      fi
9689      ;;
9690    esac
9691    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9692    # soname into executable. Probably we can add versioning support to
9693    # collect2, so additional links can be useful in future.
9694    if test "$aix_use_runtimelinking" = yes; then
9695      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9696      # instead of lib<name>.a to let people know that these are not
9697      # typical AIX shared libraries.
9698      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699    else
9700      # We preserve .a as extension for shared libraries through AIX4.2
9701      # and later when we are not doing run time linking.
9702      library_names_spec='${libname}${release}.a $libname.a'
9703      soname_spec='${libname}${release}${shared_ext}$major'
9704    fi
9705    shlibpath_var=LIBPATH
9706  fi
9707  ;;
9708
9709amigaos*)
9710  library_names_spec='$libname.ixlibrary $libname.a'
9711  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9712  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'
9713  ;;
9714
9715beos*)
9716  library_names_spec='${libname}${shared_ext}'
9717  dynamic_linker="$host_os ld.so"
9718  shlibpath_var=LIBRARY_PATH
9719  ;;
9720
9721bsdi[45]*)
9722  version_type=linux
9723  need_version=no
9724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725  soname_spec='${libname}${release}${shared_ext}$major'
9726  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9727  shlibpath_var=LD_LIBRARY_PATH
9728  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9729  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9730  # the default ld.so.conf also contains /usr/contrib/lib and
9731  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9732  # libtool to hard-code these into programs
9733  ;;
9734
9735cygwin* | mingw* | pw32*)
9736  version_type=windows
9737  shrext_cmds=".dll"
9738  need_version=no
9739  need_lib_prefix=no
9740
9741  case $GCC,$host_os in
9742  yes,cygwin* | yes,mingw* | yes,pw32*)
9743    library_names_spec='$libname.dll.a'
9744    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9745    postinstall_cmds='base_file=`basename \${file}`~
9746      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9747      dldir=$destdir/`dirname \$dlpath`~
9748      test -d \$dldir || mkdir -p \$dldir~
9749      $install_prog $dir/$dlname \$dldir/$dlname~
9750      chmod a+x \$dldir/$dlname'
9751    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9752      dlpath=$dir/\$dldll~
9753       $rm \$dlpath'
9754    shlibpath_overrides_runpath=yes
9755
9756    case $host_os in
9757    cygwin*)
9758      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9759      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9760      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9761      ;;
9762    mingw*)
9763      # MinGW DLLs use traditional 'lib' prefix
9764      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9765      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9766      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9767        # It is most probably a Windows format PATH printed by
9768        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9769        # path with ; separators, and with drive letters. We can handle the
9770        # drive letters (cygwin fileutils understands them), so leave them,
9771        # especially as we might pass files found there to a mingw objdump,
9772        # which wouldn't understand a cygwinified path. Ahh.
9773        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9774      else
9775        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9776      fi
9777      ;;
9778    pw32*)
9779      # pw32 DLLs use 'pw' prefix rather than 'lib'
9780      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9781      ;;
9782    esac
9783    ;;
9784
9785  *)
9786    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9787    ;;
9788  esac
9789  dynamic_linker='Win32 ld.exe'
9790  # FIXME: first we should search . and the directory the executable is in
9791  shlibpath_var=PATH
9792  ;;
9793
9794darwin* | rhapsody*)
9795  dynamic_linker="$host_os dyld"
9796  version_type=darwin
9797  need_lib_prefix=no
9798  need_version=no
9799  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9800  soname_spec='${libname}${release}${major}$shared_ext'
9801  shlibpath_overrides_runpath=yes
9802  shlibpath_var=DYLD_LIBRARY_PATH
9803  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9804  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9805  if test "$GCC" = yes; then
9806    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"`
9807  else
9808    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9809  fi
9810  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9811  ;;
9812
9813dgux*)
9814  version_type=linux
9815  need_lib_prefix=no
9816  need_version=no
9817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9818  soname_spec='${libname}${release}${shared_ext}$major'
9819  shlibpath_var=LD_LIBRARY_PATH
9820  ;;
9821
9822freebsd1*)
9823  dynamic_linker=no
9824  ;;
9825
9826kfreebsd*-gnu)
9827  version_type=linux
9828  need_lib_prefix=no
9829  need_version=no
9830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9831  soname_spec='${libname}${release}${shared_ext}$major'
9832  shlibpath_var=LD_LIBRARY_PATH
9833  shlibpath_overrides_runpath=no
9834  hardcode_into_libs=yes
9835  dynamic_linker='GNU ld.so'
9836  ;;
9837
9838freebsd* | dragonfly*)
9839  # DragonFly does not have aout.  When/if they implement a new
9840  # versioning mechanism, adjust this.
9841  if test -x /usr/bin/objformat; then
9842    objformat=`/usr/bin/objformat`
9843  else
9844    case $host_os in
9845    freebsd[123]*) objformat=aout ;;
9846    *) objformat=elf ;;
9847    esac
9848  fi
9849  version_type=freebsd-$objformat
9850  case $version_type in
9851    freebsd-elf*)
9852      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9853      need_version=no
9854      need_lib_prefix=no
9855      ;;
9856    freebsd-*)
9857      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9858      need_version=yes
9859      ;;
9860  esac
9861  shlibpath_var=LD_LIBRARY_PATH
9862  case $host_os in
9863  freebsd2*)
9864    shlibpath_overrides_runpath=yes
9865    ;;
9866  freebsd3.[01]* | freebsdelf3.[01]*)
9867    shlibpath_overrides_runpath=yes
9868    hardcode_into_libs=yes
9869    ;;
9870  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9871  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9872    shlibpath_overrides_runpath=no
9873    hardcode_into_libs=yes
9874    ;;
9875  freebsd*) # from 4.6 on
9876    shlibpath_overrides_runpath=yes
9877    hardcode_into_libs=yes
9878    ;;
9879  esac
9880  ;;
9881
9882gnu*)
9883  version_type=linux
9884  need_lib_prefix=no
9885  need_version=no
9886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9887  soname_spec='${libname}${release}${shared_ext}$major'
9888  shlibpath_var=LD_LIBRARY_PATH
9889  hardcode_into_libs=yes
9890  ;;
9891
9892hpux9* | hpux10* | hpux11*)
9893  # Give a soname corresponding to the major version so that dld.sl refuses to
9894  # link against other versions.
9895  version_type=sunos
9896  need_lib_prefix=no
9897  need_version=no
9898  case $host_cpu in
9899  ia64*)
9900    shrext_cmds='.so'
9901    hardcode_into_libs=yes
9902    dynamic_linker="$host_os dld.so"
9903    shlibpath_var=LD_LIBRARY_PATH
9904    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9905    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9906    soname_spec='${libname}${release}${shared_ext}$major'
9907    if test "X$HPUX_IA64_MODE" = X32; then
9908      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9909    else
9910      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9911    fi
9912    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9913    ;;
9914   hppa*64*)
9915     shrext_cmds='.sl'
9916     hardcode_into_libs=yes
9917     dynamic_linker="$host_os dld.sl"
9918     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9919     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921     soname_spec='${libname}${release}${shared_ext}$major'
9922     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9923     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9924     ;;
9925   *)
9926    shrext_cmds='.sl'
9927    dynamic_linker="$host_os dld.sl"
9928    shlibpath_var=SHLIB_PATH
9929    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9930    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931    soname_spec='${libname}${release}${shared_ext}$major'
9932    ;;
9933  esac
9934  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9935  postinstall_cmds='chmod 555 $lib'
9936  ;;
9937
9938interix3*)
9939  version_type=linux
9940  need_lib_prefix=no
9941  need_version=no
9942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9943  soname_spec='${libname}${release}${shared_ext}$major'
9944  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9945  shlibpath_var=LD_LIBRARY_PATH
9946  shlibpath_overrides_runpath=no
9947  hardcode_into_libs=yes
9948  ;;
9949
9950irix5* | irix6* | nonstopux*)
9951  case $host_os in
9952    nonstopux*) version_type=nonstopux ;;
9953    *)
9954        if test "$lt_cv_prog_gnu_ld" = yes; then
9955                version_type=linux
9956        else
9957                version_type=irix
9958        fi ;;
9959  esac
9960  need_lib_prefix=no
9961  need_version=no
9962  soname_spec='${libname}${release}${shared_ext}$major'
9963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9964  case $host_os in
9965  irix5* | nonstopux*)
9966    libsuff= shlibsuff=
9967    ;;
9968  *)
9969    case $LD in # libtool.m4 will add one of these switches to LD
9970    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9971      libsuff= shlibsuff= libmagic=32-bit;;
9972    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9973      libsuff=32 shlibsuff=N32 libmagic=N32;;
9974    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9975      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9976    *) libsuff= shlibsuff= libmagic=never-match;;
9977    esac
9978    ;;
9979  esac
9980  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9981  shlibpath_overrides_runpath=no
9982  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9983  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9984  hardcode_into_libs=yes
9985  ;;
9986
9987# No shared lib support for Linux oldld, aout, or coff.
9988linux*oldld* | linux*aout* | linux*coff*)
9989  dynamic_linker=no
9990  ;;
9991
9992# This must be Linux ELF.
9993linux*)
9994  version_type=linux
9995  need_lib_prefix=no
9996  need_version=no
9997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998  soname_spec='${libname}${release}${shared_ext}$major'
9999  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10000  shlibpath_var=LD_LIBRARY_PATH
10001  shlibpath_overrides_runpath=no
10002  # This implies no fast_install, which is unacceptable.
10003  # Some rework will be needed to allow for fast_install
10004  # before this can be enabled.
10005  hardcode_into_libs=yes
10006
10007  # Append ld.so.conf contents to the search path
10008  if test -f /etc/ld.so.conf; then
10009    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' ' '`
10010    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10011  fi
10012
10013  # We used to test for /lib/ld.so.1 and disable shared libraries on
10014  # powerpc, because MkLinux only supported shared libraries with the
10015  # GNU dynamic linker.  Since this was broken with cross compilers,
10016  # most powerpc-linux boxes support dynamic linking these days and
10017  # people can always --disable-shared, the test was removed, and we
10018  # assume the GNU/Linux dynamic linker is in use.
10019  dynamic_linker='GNU/Linux ld.so'
10020  ;;
10021
10022knetbsd*-gnu)
10023  version_type=linux
10024  need_lib_prefix=no
10025  need_version=no
10026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10027  soname_spec='${libname}${release}${shared_ext}$major'
10028  shlibpath_var=LD_LIBRARY_PATH
10029  shlibpath_overrides_runpath=no
10030  hardcode_into_libs=yes
10031  dynamic_linker='GNU ld.so'
10032  ;;
10033
10034netbsd*)
10035  version_type=sunos
10036  need_lib_prefix=no
10037  need_version=no
10038  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10039    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10040    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10041    dynamic_linker='NetBSD (a.out) ld.so'
10042  else
10043    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10044    soname_spec='${libname}${release}${shared_ext}$major'
10045    dynamic_linker='NetBSD ld.elf_so'
10046  fi
10047  shlibpath_var=LD_LIBRARY_PATH
10048  shlibpath_overrides_runpath=yes
10049  hardcode_into_libs=yes
10050  ;;
10051
10052newsos6)
10053  version_type=linux
10054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055  shlibpath_var=LD_LIBRARY_PATH
10056  shlibpath_overrides_runpath=yes
10057  ;;
10058
10059nto-qnx*)
10060  version_type=linux
10061  need_lib_prefix=no
10062  need_version=no
10063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064  soname_spec='${libname}${release}${shared_ext}$major'
10065  shlibpath_var=LD_LIBRARY_PATH
10066  shlibpath_overrides_runpath=yes
10067  ;;
10068
10069openbsd*)
10070  version_type=sunos
10071  sys_lib_dlsearch_path_spec="/usr/lib"
10072  need_lib_prefix=no
10073  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10074  case $host_os in
10075    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10076    *)                         need_version=no  ;;
10077  esac
10078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10079  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10080  shlibpath_var=LD_LIBRARY_PATH
10081  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10082    case $host_os in
10083      openbsd2.[89] | openbsd2.[89].*)
10084        shlibpath_overrides_runpath=no
10085        ;;
10086      *)
10087        shlibpath_overrides_runpath=yes
10088        ;;
10089      esac
10090  else
10091    shlibpath_overrides_runpath=yes
10092  fi
10093  ;;
10094
10095os2*)
10096  libname_spec='$name'
10097  shrext_cmds=".dll"
10098  need_lib_prefix=no
10099  library_names_spec='$libname${shared_ext} $libname.a'
10100  dynamic_linker='OS/2 ld.exe'
10101  shlibpath_var=LIBPATH
10102  ;;
10103
10104osf3* | osf4* | osf5*)
10105  version_type=osf
10106  need_lib_prefix=no
10107  need_version=no
10108  soname_spec='${libname}${release}${shared_ext}$major'
10109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110  shlibpath_var=LD_LIBRARY_PATH
10111  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10112  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10113  ;;
10114
10115solaris*)
10116  version_type=linux
10117  need_lib_prefix=no
10118  need_version=no
10119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120  soname_spec='${libname}${release}${shared_ext}$major'
10121  shlibpath_var=LD_LIBRARY_PATH
10122  shlibpath_overrides_runpath=yes
10123  hardcode_into_libs=yes
10124  # ldd complains unless libraries are executable
10125  postinstall_cmds='chmod +x $lib'
10126  ;;
10127
10128sunos4*)
10129  version_type=sunos
10130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10131  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10132  shlibpath_var=LD_LIBRARY_PATH
10133  shlibpath_overrides_runpath=yes
10134  if test "$with_gnu_ld" = yes; then
10135    need_lib_prefix=no
10136  fi
10137  need_version=yes
10138  ;;
10139
10140sysv4 | sysv4.3*)
10141  version_type=linux
10142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143  soname_spec='${libname}${release}${shared_ext}$major'
10144  shlibpath_var=LD_LIBRARY_PATH
10145  case $host_vendor in
10146    sni)
10147      shlibpath_overrides_runpath=no
10148      need_lib_prefix=no
10149      export_dynamic_flag_spec='${wl}-Blargedynsym'
10150      runpath_var=LD_RUN_PATH
10151      ;;
10152    siemens)
10153      need_lib_prefix=no
10154      ;;
10155    motorola)
10156      need_lib_prefix=no
10157      need_version=no
10158      shlibpath_overrides_runpath=no
10159      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10160      ;;
10161  esac
10162  ;;
10163
10164sysv4*MP*)
10165  if test -d /usr/nec ;then
10166    version_type=linux
10167    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10168    soname_spec='$libname${shared_ext}.$major'
10169    shlibpath_var=LD_LIBRARY_PATH
10170  fi
10171  ;;
10172
10173sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10174  version_type=freebsd-elf
10175  need_lib_prefix=no
10176  need_version=no
10177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10178  soname_spec='${libname}${release}${shared_ext}$major'
10179  shlibpath_var=LD_LIBRARY_PATH
10180  hardcode_into_libs=yes
10181  if test "$with_gnu_ld" = yes; then
10182    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10183    shlibpath_overrides_runpath=no
10184  else
10185    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10186    shlibpath_overrides_runpath=yes
10187    case $host_os in
10188      sco3.2v5*)
10189        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10190        ;;
10191    esac
10192  fi
10193  sys_lib_dlsearch_path_spec='/usr/lib'
10194  ;;
10195
10196uts4*)
10197  version_type=linux
10198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199  soname_spec='${libname}${release}${shared_ext}$major'
10200  shlibpath_var=LD_LIBRARY_PATH
10201  ;;
10202
10203*)
10204  dynamic_linker=no
10205  ;;
10206esac
10207echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10208echo "${ECHO_T}$dynamic_linker" >&6
10209test "$dynamic_linker" = no && can_build_shared=no
10210
10211variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10212if test "$GCC" = yes; then
10213  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10214fi
10215
10216echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10217echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10218hardcode_action=
10219if test -n "$hardcode_libdir_flag_spec" || \
10220   test -n "$runpath_var" || \
10221   test "X$hardcode_automatic" = "Xyes" ; then
10222
10223  # We can hardcode non-existant directories.
10224  if test "$hardcode_direct" != no &&
10225     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10226     # have to relink, otherwise we might link with an installed library
10227     # when we should be linking with a yet-to-be-installed one
10228     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10229     test "$hardcode_minus_L" != no; then
10230    # Linking always hardcodes the temporary library directory.
10231    hardcode_action=relink
10232  else
10233    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10234    hardcode_action=immediate
10235  fi
10236else
10237  # We cannot hardcode anything, or else we can only hardcode existing
10238  # directories.
10239  hardcode_action=unsupported
10240fi
10241echo "$as_me:$LINENO: result: $hardcode_action" >&5
10242echo "${ECHO_T}$hardcode_action" >&6
10243
10244if test "$hardcode_action" = relink; then
10245  # Fast installation is not supported
10246  enable_fast_install=no
10247elif test "$shlibpath_overrides_runpath" = yes ||
10248     test "$enable_shared" = no; then
10249  # Fast installation is not necessary
10250  enable_fast_install=needless
10251fi
10252
10253striplib=
10254old_striplib=
10255echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10256echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10257if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10258  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10259  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10260  echo "$as_me:$LINENO: result: yes" >&5
10261echo "${ECHO_T}yes" >&6
10262else
10263# FIXME - insert some real tests, host_os isn't really good enough
10264  case $host_os in
10265   darwin*)
10266       if test -n "$STRIP" ; then
10267         striplib="$STRIP -x"
10268         echo "$as_me:$LINENO: result: yes" >&5
10269echo "${ECHO_T}yes" >&6
10270       else
10271  echo "$as_me:$LINENO: result: no" >&5
10272echo "${ECHO_T}no" >&6
10273fi
10274       ;;
10275   *)
10276  echo "$as_me:$LINENO: result: no" >&5
10277echo "${ECHO_T}no" >&6
10278    ;;
10279  esac
10280fi
10281
10282if test "x$enable_dlopen" != xyes; then
10283  enable_dlopen=unknown
10284  enable_dlopen_self=unknown
10285  enable_dlopen_self_static=unknown
10286else
10287  lt_cv_dlopen=no
10288  lt_cv_dlopen_libs=
10289
10290  case $host_os in
10291  beos*)
10292    lt_cv_dlopen="load_add_on"
10293    lt_cv_dlopen_libs=
10294    lt_cv_dlopen_self=yes
10295    ;;
10296
10297  mingw* | pw32*)
10298    lt_cv_dlopen="LoadLibrary"
10299    lt_cv_dlopen_libs=
10300   ;;
10301
10302  cygwin*)
10303    lt_cv_dlopen="dlopen"
10304    lt_cv_dlopen_libs=
10305   ;;
10306
10307  darwin*)
10308  # if libdl is installed we need to link against it
10309    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10310echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10311if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10312  echo $ECHO_N "(cached) $ECHO_C" >&6
10313else
10314  ac_check_lib_save_LIBS=$LIBS
10315LIBS="-ldl  $LIBS"
10316cat >conftest.$ac_ext <<_ACEOF
10317/* confdefs.h.  */
10318_ACEOF
10319cat confdefs.h >>conftest.$ac_ext
10320cat >>conftest.$ac_ext <<_ACEOF
10321/* end confdefs.h.  */
10322
10323/* Override any gcc2 internal prototype to avoid an error.  */
10324#ifdef __cplusplus
10325extern "C"
10326#endif
10327/* We use char because int might match the return type of a gcc2
10328   builtin and then its argument prototype would still apply.  */
10329char dlopen ();
10330int
10331main ()
10332{
10333dlopen ();
10334  ;
10335  return 0;
10336}
10337_ACEOF
10338rm -f conftest.$ac_objext conftest$ac_exeext
10339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10340  (eval $ac_link) 2>conftest.er1
10341  ac_status=$?
10342  grep -v '^ *+' conftest.er1 >conftest.err
10343  rm -f conftest.er1
10344  cat conftest.err >&5
10345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346  (exit $ac_status); } &&
10347         { ac_try='test -z "$ac_c_werror_flag"
10348                         || test ! -s conftest.err'
10349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350  (eval $ac_try) 2>&5
10351  ac_status=$?
10352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353  (exit $ac_status); }; } &&
10354         { ac_try='test -s conftest$ac_exeext'
10355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356  (eval $ac_try) 2>&5
10357  ac_status=$?
10358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359  (exit $ac_status); }; }; then
10360  ac_cv_lib_dl_dlopen=yes
10361else
10362  echo "$as_me: failed program was:" >&5
10363sed 's/^/| /' conftest.$ac_ext >&5
10364
10365ac_cv_lib_dl_dlopen=no
10366fi
10367rm -f conftest.err conftest.$ac_objext \
10368      conftest$ac_exeext conftest.$ac_ext
10369LIBS=$ac_check_lib_save_LIBS
10370fi
10371echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10372echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10373if test $ac_cv_lib_dl_dlopen = yes; then
10374  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10375else
10376
10377    lt_cv_dlopen="dyld"
10378    lt_cv_dlopen_libs=
10379    lt_cv_dlopen_self=yes
10380
10381fi
10382
10383   ;;
10384
10385  *)
10386    echo "$as_me:$LINENO: checking for shl_load" >&5
10387echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10388if test "${ac_cv_func_shl_load+set}" = set; then
10389  echo $ECHO_N "(cached) $ECHO_C" >&6
10390else
10391  cat >conftest.$ac_ext <<_ACEOF
10392/* confdefs.h.  */
10393_ACEOF
10394cat confdefs.h >>conftest.$ac_ext
10395cat >>conftest.$ac_ext <<_ACEOF
10396/* end confdefs.h.  */
10397/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10398   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10399#define shl_load innocuous_shl_load
10400
10401/* System header to define __stub macros and hopefully few prototypes,
10402    which can conflict with char shl_load (); below.
10403    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10404    <limits.h> exists even on freestanding compilers.  */
10405
10406#ifdef __STDC__
10407# include <limits.h>
10408#else
10409# include <assert.h>
10410#endif
10411
10412#undef shl_load
10413
10414/* Override any gcc2 internal prototype to avoid an error.  */
10415#ifdef __cplusplus
10416extern "C"
10417{
10418#endif
10419/* We use char because int might match the return type of a gcc2
10420   builtin and then its argument prototype would still apply.  */
10421char shl_load ();
10422/* The GNU C library defines this for functions which it implements
10423    to always fail with ENOSYS.  Some functions are actually named
10424    something starting with __ and the normal name is an alias.  */
10425#if defined (__stub_shl_load) || defined (__stub___shl_load)
10426choke me
10427#else
10428char (*f) () = shl_load;
10429#endif
10430#ifdef __cplusplus
10431}
10432#endif
10433
10434int
10435main ()
10436{
10437return f != shl_load;
10438  ;
10439  return 0;
10440}
10441_ACEOF
10442rm -f conftest.$ac_objext conftest$ac_exeext
10443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444  (eval $ac_link) 2>conftest.er1
10445  ac_status=$?
10446  grep -v '^ *+' conftest.er1 >conftest.err
10447  rm -f conftest.er1
10448  cat conftest.err >&5
10449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450  (exit $ac_status); } &&
10451         { ac_try='test -z "$ac_c_werror_flag"
10452                         || test ! -s conftest.err'
10453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454  (eval $ac_try) 2>&5
10455  ac_status=$?
10456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457  (exit $ac_status); }; } &&
10458         { ac_try='test -s conftest$ac_exeext'
10459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460  (eval $ac_try) 2>&5
10461  ac_status=$?
10462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463  (exit $ac_status); }; }; then
10464  ac_cv_func_shl_load=yes
10465else
10466  echo "$as_me: failed program was:" >&5
10467sed 's/^/| /' conftest.$ac_ext >&5
10468
10469ac_cv_func_shl_load=no
10470fi
10471rm -f conftest.err conftest.$ac_objext \
10472      conftest$ac_exeext conftest.$ac_ext
10473fi
10474echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10475echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10476if test $ac_cv_func_shl_load = yes; then
10477  lt_cv_dlopen="shl_load"
10478else
10479  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10480echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10481if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10482  echo $ECHO_N "(cached) $ECHO_C" >&6
10483else
10484  ac_check_lib_save_LIBS=$LIBS
10485LIBS="-ldld  $LIBS"
10486cat >conftest.$ac_ext <<_ACEOF
10487/* confdefs.h.  */
10488_ACEOF
10489cat confdefs.h >>conftest.$ac_ext
10490cat >>conftest.$ac_ext <<_ACEOF
10491/* end confdefs.h.  */
10492
10493/* Override any gcc2 internal prototype to avoid an error.  */
10494#ifdef __cplusplus
10495extern "C"
10496#endif
10497/* We use char because int might match the return type of a gcc2
10498   builtin and then its argument prototype would still apply.  */
10499char shl_load ();
10500int
10501main ()
10502{
10503shl_load ();
10504  ;
10505  return 0;
10506}
10507_ACEOF
10508rm -f conftest.$ac_objext conftest$ac_exeext
10509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10510  (eval $ac_link) 2>conftest.er1
10511  ac_status=$?
10512  grep -v '^ *+' conftest.er1 >conftest.err
10513  rm -f conftest.er1
10514  cat conftest.err >&5
10515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516  (exit $ac_status); } &&
10517         { ac_try='test -z "$ac_c_werror_flag"
10518                         || test ! -s conftest.err'
10519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520  (eval $ac_try) 2>&5
10521  ac_status=$?
10522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523  (exit $ac_status); }; } &&
10524         { ac_try='test -s conftest$ac_exeext'
10525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526  (eval $ac_try) 2>&5
10527  ac_status=$?
10528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529  (exit $ac_status); }; }; then
10530  ac_cv_lib_dld_shl_load=yes
10531else
10532  echo "$as_me: failed program was:" >&5
10533sed 's/^/| /' conftest.$ac_ext >&5
10534
10535ac_cv_lib_dld_shl_load=no
10536fi
10537rm -f conftest.err conftest.$ac_objext \
10538      conftest$ac_exeext conftest.$ac_ext
10539LIBS=$ac_check_lib_save_LIBS
10540fi
10541echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10542echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10543if test $ac_cv_lib_dld_shl_load = yes; then
10544  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10545else
10546  echo "$as_me:$LINENO: checking for dlopen" >&5
10547echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10548if test "${ac_cv_func_dlopen+set}" = set; then
10549  echo $ECHO_N "(cached) $ECHO_C" >&6
10550else
10551  cat >conftest.$ac_ext <<_ACEOF
10552/* confdefs.h.  */
10553_ACEOF
10554cat confdefs.h >>conftest.$ac_ext
10555cat >>conftest.$ac_ext <<_ACEOF
10556/* end confdefs.h.  */
10557/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10558   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10559#define dlopen innocuous_dlopen
10560
10561/* System header to define __stub macros and hopefully few prototypes,
10562    which can conflict with char dlopen (); below.
10563    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10564    <limits.h> exists even on freestanding compilers.  */
10565
10566#ifdef __STDC__
10567# include <limits.h>
10568#else
10569# include <assert.h>
10570#endif
10571
10572#undef dlopen
10573
10574/* Override any gcc2 internal prototype to avoid an error.  */
10575#ifdef __cplusplus
10576extern "C"
10577{
10578#endif
10579/* We use char because int might match the return type of a gcc2
10580   builtin and then its argument prototype would still apply.  */
10581char dlopen ();
10582/* The GNU C library defines this for functions which it implements
10583    to always fail with ENOSYS.  Some functions are actually named
10584    something starting with __ and the normal name is an alias.  */
10585#if defined (__stub_dlopen) || defined (__stub___dlopen)
10586choke me
10587#else
10588char (*f) () = dlopen;
10589#endif
10590#ifdef __cplusplus
10591}
10592#endif
10593
10594int
10595main ()
10596{
10597return f != dlopen;
10598  ;
10599  return 0;
10600}
10601_ACEOF
10602rm -f conftest.$ac_objext conftest$ac_exeext
10603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604  (eval $ac_link) 2>conftest.er1
10605  ac_status=$?
10606  grep -v '^ *+' conftest.er1 >conftest.err
10607  rm -f conftest.er1
10608  cat conftest.err >&5
10609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610  (exit $ac_status); } &&
10611         { ac_try='test -z "$ac_c_werror_flag"
10612                         || test ! -s conftest.err'
10613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614  (eval $ac_try) 2>&5
10615  ac_status=$?
10616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617  (exit $ac_status); }; } &&
10618         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10624  ac_cv_func_dlopen=yes
10625else
10626  echo "$as_me: failed program was:" >&5
10627sed 's/^/| /' conftest.$ac_ext >&5
10628
10629ac_cv_func_dlopen=no
10630fi
10631rm -f conftest.err conftest.$ac_objext \
10632      conftest$ac_exeext conftest.$ac_ext
10633fi
10634echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10635echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10636if test $ac_cv_func_dlopen = yes; then
10637  lt_cv_dlopen="dlopen"
10638else
10639  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10640echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10641if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10642  echo $ECHO_N "(cached) $ECHO_C" >&6
10643else
10644  ac_check_lib_save_LIBS=$LIBS
10645LIBS="-ldl  $LIBS"
10646cat >conftest.$ac_ext <<_ACEOF
10647/* confdefs.h.  */
10648_ACEOF
10649cat confdefs.h >>conftest.$ac_ext
10650cat >>conftest.$ac_ext <<_ACEOF
10651/* end confdefs.h.  */
10652
10653/* Override any gcc2 internal prototype to avoid an error.  */
10654#ifdef __cplusplus
10655extern "C"
10656#endif
10657/* We use char because int might match the return type of a gcc2
10658   builtin and then its argument prototype would still apply.  */
10659char dlopen ();
10660int
10661main ()
10662{
10663dlopen ();
10664  ;
10665  return 0;
10666}
10667_ACEOF
10668rm -f conftest.$ac_objext conftest$ac_exeext
10669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670  (eval $ac_link) 2>conftest.er1
10671  ac_status=$?
10672  grep -v '^ *+' conftest.er1 >conftest.err
10673  rm -f conftest.er1
10674  cat conftest.err >&5
10675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676  (exit $ac_status); } &&
10677         { ac_try='test -z "$ac_c_werror_flag"
10678                         || test ! -s conftest.err'
10679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680  (eval $ac_try) 2>&5
10681  ac_status=$?
10682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683  (exit $ac_status); }; } &&
10684         { ac_try='test -s conftest$ac_exeext'
10685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686  (eval $ac_try) 2>&5
10687  ac_status=$?
10688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689  (exit $ac_status); }; }; then
10690  ac_cv_lib_dl_dlopen=yes
10691else
10692  echo "$as_me: failed program was:" >&5
10693sed 's/^/| /' conftest.$ac_ext >&5
10694
10695ac_cv_lib_dl_dlopen=no
10696fi
10697rm -f conftest.err conftest.$ac_objext \
10698      conftest$ac_exeext conftest.$ac_ext
10699LIBS=$ac_check_lib_save_LIBS
10700fi
10701echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10702echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10703if test $ac_cv_lib_dl_dlopen = yes; then
10704  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10705else
10706  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10707echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10708if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10709  echo $ECHO_N "(cached) $ECHO_C" >&6
10710else
10711  ac_check_lib_save_LIBS=$LIBS
10712LIBS="-lsvld  $LIBS"
10713cat >conftest.$ac_ext <<_ACEOF
10714/* confdefs.h.  */
10715_ACEOF
10716cat confdefs.h >>conftest.$ac_ext
10717cat >>conftest.$ac_ext <<_ACEOF
10718/* end confdefs.h.  */
10719
10720/* Override any gcc2 internal prototype to avoid an error.  */
10721#ifdef __cplusplus
10722extern "C"
10723#endif
10724/* We use char because int might match the return type of a gcc2
10725   builtin and then its argument prototype would still apply.  */
10726char dlopen ();
10727int
10728main ()
10729{
10730dlopen ();
10731  ;
10732  return 0;
10733}
10734_ACEOF
10735rm -f conftest.$ac_objext conftest$ac_exeext
10736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10737  (eval $ac_link) 2>conftest.er1
10738  ac_status=$?
10739  grep -v '^ *+' conftest.er1 >conftest.err
10740  rm -f conftest.er1
10741  cat conftest.err >&5
10742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743  (exit $ac_status); } &&
10744         { ac_try='test -z "$ac_c_werror_flag"
10745                         || test ! -s conftest.err'
10746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747  (eval $ac_try) 2>&5
10748  ac_status=$?
10749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750  (exit