source: ThirdParty/SCIP/stable/1.4/configure @ 3377

Last change on this file since 3377 was 3377, checked in by tkr, 7 years ago

temporarily committing release candidate

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