source: ThirdParty/SCIP/trunk/configure @ 2474

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

temporarily committing stable candidate

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