source: ThirdParty/SCIP/stable/1.1/configure @ 2609

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

temporarily committing release candidate

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