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

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

temporarily committing release candidate

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