source: ThirdParty/SCIP/trunk/configure @ 2232

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

put back check for SCIP version number

  • Property svn:executable set to *
File size: 846.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 trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2011 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyScip'
431PACKAGE_TARNAME='thirdpartyscip'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyScip trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="scip/src/scip/scip.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SCIP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX 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 EGREP LN_S MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED SOPLEX_LIBS SOPLEX_CFLAGS SOPLEX_DATA SOPLEX_DEPENDENCIES SOPLEX_LIBS_INSTALLED SOPLEX_CFLAGS_INSTALLED SOPLEX_DATA_INSTALLED 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 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 CPPAD_LIBS CPPAD_CFLAGS CPPAD_DATA CPPAD_DEPENDENCIES CPPAD_LIBS_INSTALLED CPPAD_CFLAGS_INSTALLED CPPAD_DATA_INSTALLED COIN_HAS_CPPAD_TRUE COIN_HAS_CPPAD_FALSE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyScip trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyScip trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-scip compile this project (SCIP) with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --disable-dependency-tracking  speeds up one-time build
1090  --enable-dependency-tracking   do not reject slow dependency extractors
1091  --enable-static[=PKGS]
1092                          build static libraries [default=no]
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100  --enable-pkg-config     use pkg-config if available (default is yes)
1101  --enable-interpackage-dependencies
1102                          whether to deduce Makefile dependencies from package
1103                          linker flags (default: yes)
1104  --enable-gnu-packages   compile with GNU packages (disabled by default)
1105
1106Optional Packages:
1107  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1108  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1109  --with-scip-verbosity specify the debug verbosity level for project SCIP
1110  --with-scip-checklevel specify the sanity check level for project SCIP
1111  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1112  --with-pic              try to use only PIC/non-PIC objects [default=use
1113                          both]
1114  --with-tags[=TAGS]
1115                          include additional configurations [automatic]
1116  --with-coin-instdir     prefix of installation directory for precompiled
1117                          COIN packages
1118
1119  --with-soplex-lib linker flags for using package SoPlex
1120  --with-soplex-incdir directory with header files for using package SoPlex
1121  --with-soplex-datadir directory with data files for using package SoPlex
1122  --with-clp-lib linker flags for using package Clp
1123  --with-clp-incdir directory with header files for using package Clp
1124  --with-clp-datadir directory with data files for using package Clp
1125  --with-ipopt-lib linker flags for using package Ipopt
1126  --with-ipopt-incdir directory with header files for using package Ipopt
1127  --with-ipopt-datadir directory with data files for using package Ipopt
1128  --with-cppad-lib linker flags for using package CppAD
1129  --with-cppad-incdir directory with header files for using package CppAD
1130  --with-cppad-datadir directory with data files for using package CppAD
1131
1132Some influential environment variables:
1133  CDEFS       Additional -D flags to be used when compiling C code.
1134  ADD_CFLAGS  Additional C compiler options
1135  DBG_CFLAGS  Debug C compiler options
1136  OPT_CFLAGS  Optimize C compiler options
1137  CC          C compiler command
1138  CFLAGS      C compiler flags
1139  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1140              nonstandard directory <lib dir>
1141  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1142              headers in a nonstandard directory <include dir>
1143  MPICC       C MPI Compiler
1144  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1145  ADD_CXXFLAGS
1146              Additional C++ compiler options
1147  DBG_CXXFLAGS
1148              Debug C++ compiler options
1149  OPT_CXXFLAGS
1150              Optimize C++ compiler options
1151  CXX         C++ compiler command
1152  CXXFLAGS    C++ compiler flags
1153  MPICXX      C++ MPI Compiler
1154  CPP         C preprocessor
1155  CXXCPP      C++ preprocessor
1156  F77         Fortran 77 compiler command
1157  FFLAGS      Fortran 77 compiler flags
1158  PKG_CONFIG  path to pkg-config utility
1159
1160Use these variables to override the choices made by `configure' or to help
1161it to find libraries and programs with nonstandard names/locations.
1162
1163Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1164_ACEOF
1165fi
1166
1167if test "$ac_init_help" = "recursive"; then
1168  # If there are subdirs, report their specific --help.
1169  ac_popdir=`pwd`
1170  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1171    test -d $ac_dir || continue
1172    ac_builddir=.
1173
1174if test "$ac_dir" != .; then
1175  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1176  # A "../" for each directory in $ac_dir_suffix.
1177  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1178else
1179  ac_dir_suffix= ac_top_builddir=
1180fi
1181
1182case $srcdir in
1183  .)  # No --srcdir option.  We are building in place.
1184    ac_srcdir=.
1185    if test -z "$ac_top_builddir"; then
1186       ac_top_srcdir=.
1187    else
1188       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1189    fi ;;
1190  [\\/]* | ?:[\\/]* )  # Absolute path.
1191    ac_srcdir=$srcdir$ac_dir_suffix;
1192    ac_top_srcdir=$srcdir ;;
1193  *) # Relative path.
1194    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1195    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1196esac
1197
1198# Do not use `cd foo && pwd` to compute absolute paths, because
1199# the directories may not exist.
1200case `pwd` in
1201.) ac_abs_builddir="$ac_dir";;
1202*)
1203  case "$ac_dir" in
1204  .) ac_abs_builddir=`pwd`;;
1205  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1206  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1207  esac;;
1208esac
1209case $ac_abs_builddir in
1210.) ac_abs_top_builddir=${ac_top_builddir}.;;
1211*)
1212  case ${ac_top_builddir}. in
1213  .) ac_abs_top_builddir=$ac_abs_builddir;;
1214  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1215  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1216  esac;;
1217esac
1218case $ac_abs_builddir in
1219.) ac_abs_srcdir=$ac_srcdir;;
1220*)
1221  case $ac_srcdir in
1222  .) ac_abs_srcdir=$ac_abs_builddir;;
1223  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1224  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1225  esac;;
1226esac
1227case $ac_abs_builddir in
1228.) ac_abs_top_srcdir=$ac_top_srcdir;;
1229*)
1230  case $ac_top_srcdir in
1231  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1232  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1233  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1234  esac;;
1235esac
1236
1237    cd $ac_dir
1238    # Check for guested configure; otherwise get Cygnus style configure.
1239    if test -f $ac_srcdir/configure.gnu; then
1240      echo
1241      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1242    elif test -f $ac_srcdir/configure; then
1243      echo
1244      $SHELL $ac_srcdir/configure  --help=recursive
1245    elif test -f $ac_srcdir/configure.ac ||
1246           test -f $ac_srcdir/configure.in; then
1247      echo
1248      $ac_configure --help
1249    else
1250      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1251    fi
1252    cd $ac_popdir
1253  done
1254fi
1255
1256test -n "$ac_init_help" && exit 0
1257if $ac_init_version; then
1258  cat <<\_ACEOF
1259ThirdPartyScip configure trunk
1260generated by GNU Autoconf 2.59
1261
1262Copyright (C) 2003 Free Software Foundation, Inc.
1263This configure script is free software; the Free Software Foundation
1264gives unlimited permission to copy, distribute and modify it.
1265
1266
1267Copyright 2011 Stefan Vigerske and others.
1268All Rights Reserved.
1269This file is part of the open source package COIN-OR which is distributed
1270under the Eclipse Public License.
1271_ACEOF
1272  exit 0
1273fi
1274exec 5>config.log
1275cat >&5 <<_ACEOF
1276This file contains any messages produced by compilers while
1277running configure, to aid debugging if configure makes a mistake.
1278
1279It was created by ThirdPartyScip $as_me trunk, which was
1280generated by GNU Autoconf 2.59.  Invocation command line was
1281
1282  $ $0 $@
1283
1284_ACEOF
1285{
1286cat <<_ASUNAME
1287## --------- ##
1288## Platform. ##
1289## --------- ##
1290
1291hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1292uname -m = `(uname -m) 2>/dev/null || echo unknown`
1293uname -r = `(uname -r) 2>/dev/null || echo unknown`
1294uname -s = `(uname -s) 2>/dev/null || echo unknown`
1295uname -v = `(uname -v) 2>/dev/null || echo unknown`
1296
1297/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1298/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1299
1300/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1301/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1302/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1303hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1304/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1305/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1306/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1307
1308_ASUNAME
1309
1310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1311for as_dir in $PATH
1312do
1313  IFS=$as_save_IFS
1314  test -z "$as_dir" && as_dir=.
1315  echo "PATH: $as_dir"
1316done
1317
1318} >&5
1319
1320cat >&5 <<_ACEOF
1321
1322
1323## ----------- ##
1324## Core tests. ##
1325## ----------- ##
1326
1327_ACEOF
1328
1329
1330# Keep a trace of the command line.
1331# Strip out --no-create and --no-recursion so they do not pile up.
1332# Strip out --silent because we don't want to record it for future runs.
1333# Also quote any args containing shell meta-characters.
1334# Make two passes to allow for proper duplicate-argument suppression.
1335ac_configure_args=
1336ac_configure_args0=
1337ac_configure_args1=
1338ac_sep=
1339ac_must_keep_next=false
1340for ac_pass in 1 2
1341do
1342  for ac_arg
1343  do
1344    case $ac_arg in
1345    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1346    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1347    | -silent | --silent | --silen | --sile | --sil)
1348      continue ;;
1349    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1350      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1351    esac
1352    case $ac_pass in
1353    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1354    2)
1355      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1356      if test $ac_must_keep_next = true; then
1357        ac_must_keep_next=false # Got value, back to normal.
1358      else
1359        case $ac_arg in
1360          *=* | --config-cache | -C | -disable-* | --disable-* \
1361          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1362          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1363          | -with-* | --with-* | -without-* | --without-* | --x)
1364            case "$ac_configure_args0 " in
1365              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1366            esac
1367            ;;
1368          -* ) ac_must_keep_next=true ;;
1369        esac
1370      fi
1371      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1372      # Get rid of the leading space.
1373      ac_sep=" "
1374      ;;
1375    esac
1376  done
1377done
1378$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1379$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1380
1381# When interrupted or exit'd, cleanup temporary files, and complete
1382# config.log.  We remove comments because anyway the quotes in there
1383# would cause problems or look ugly.
1384# WARNING: Be sure not to use single quotes in there, as some shells,
1385# such as our DU 5.0 friend, will then `close' the trap.
1386trap 'exit_status=$?
1387  # Save into config.log some information that might help in debugging.
1388  {
1389    echo
1390
1391    cat <<\_ASBOX
1392## ---------------- ##
1393## Cache variables. ##
1394## ---------------- ##
1395_ASBOX
1396    echo
1397    # The following way of writing the cache mishandles newlines in values,
1398{
1399  (set) 2>&1 |
1400    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1401    *ac_space=\ *)
1402      sed -n \
1403        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1404          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1405      ;;
1406    *)
1407      sed -n \
1408        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1409      ;;
1410    esac;
1411}
1412    echo
1413
1414    cat <<\_ASBOX
1415## ----------------- ##
1416## Output variables. ##
1417## ----------------- ##
1418_ASBOX
1419    echo
1420    for ac_var in $ac_subst_vars
1421    do
1422      eval ac_val=$`echo $ac_var`
1423      echo "$ac_var='"'"'$ac_val'"'"'"
1424    done | sort
1425    echo
1426
1427    if test -n "$ac_subst_files"; then
1428      cat <<\_ASBOX
1429## ------------- ##
1430## Output files. ##
1431## ------------- ##
1432_ASBOX
1433      echo
1434      for ac_var in $ac_subst_files
1435      do
1436        eval ac_val=$`echo $ac_var`
1437        echo "$ac_var='"'"'$ac_val'"'"'"
1438      done | sort
1439      echo
1440    fi
1441
1442    if test -s confdefs.h; then
1443      cat <<\_ASBOX
1444## ----------- ##
1445## confdefs.h. ##
1446## ----------- ##
1447_ASBOX
1448      echo
1449      sed "/^$/d" confdefs.h | sort
1450      echo
1451    fi
1452    test "$ac_signal" != 0 &&
1453      echo "$as_me: caught signal $ac_signal"
1454    echo "$as_me: exit $exit_status"
1455  } >&5
1456  rm -f core *.core &&
1457  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1458    exit $exit_status
1459     ' 0
1460for ac_signal in 1 2 13 15; do
1461  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1462done
1463ac_signal=0
1464
1465# confdefs.h avoids OS command line length limits that DEFS can exceed.
1466rm -rf conftest* confdefs.h
1467# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1468echo >confdefs.h
1469
1470# Predefined preprocessor variables.
1471
1472cat >>confdefs.h <<_ACEOF
1473#define PACKAGE_NAME "$PACKAGE_NAME"
1474_ACEOF
1475
1476
1477cat >>confdefs.h <<_ACEOF
1478#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1479_ACEOF
1480
1481
1482cat >>confdefs.h <<_ACEOF
1483#define PACKAGE_VERSION "$PACKAGE_VERSION"
1484_ACEOF
1485
1486
1487cat >>confdefs.h <<_ACEOF
1488#define PACKAGE_STRING "$PACKAGE_STRING"
1489_ACEOF
1490
1491
1492cat >>confdefs.h <<_ACEOF
1493#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1494_ACEOF
1495
1496
1497# Let the site file select an alternate cache file if it wants to.
1498# Prefer explicitly selected file to automatically selected ones.
1499if test -z "$CONFIG_SITE"; then
1500  if test "x$prefix" != xNONE; then
1501    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1502  else
1503    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1504  fi
1505fi
1506for ac_site_file in $CONFIG_SITE; do
1507  if test -r "$ac_site_file"; then
1508    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1509echo "$as_me: loading site script $ac_site_file" >&6;}
1510    sed 's/^/| /' "$ac_site_file" >&5
1511    . "$ac_site_file"
1512  fi
1513done
1514
1515if test -r "$cache_file"; then
1516  # Some versions of bash will fail to source /dev/null (special
1517  # files actually), so we avoid doing that.
1518  if test -f "$cache_file"; then
1519    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1520echo "$as_me: loading cache $cache_file" >&6;}
1521    case $cache_file in
1522      [\\/]* | ?:[\\/]* ) . $cache_file;;
1523      *)                      . ./$cache_file;;
1524    esac
1525  fi
1526else
1527  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1528echo "$as_me: creating cache $cache_file" >&6;}
1529  >$cache_file
1530fi
1531
1532# Check that the precious variables saved in the cache have kept the same
1533# value.
1534ac_cache_corrupted=false
1535for ac_var in `(set) 2>&1 |
1536               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1537  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1538  eval ac_new_set=\$ac_env_${ac_var}_set
1539  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1540  eval ac_new_val="\$ac_env_${ac_var}_value"
1541  case $ac_old_set,$ac_new_set in
1542    set,)
1543      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1544echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1545      ac_cache_corrupted=: ;;
1546    ,set)
1547      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1548echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1549      ac_cache_corrupted=: ;;
1550    ,);;
1551    *)
1552      if test "x$ac_old_val" != "x$ac_new_val"; then
1553        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1554echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1555        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1556echo "$as_me:   former value:  $ac_old_val" >&2;}
1557        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1558echo "$as_me:   current value: $ac_new_val" >&2;}
1559        ac_cache_corrupted=:
1560      fi;;
1561  esac
1562  # Pass precious variables to config.status.
1563  if test "$ac_new_set" = set; then
1564    case $ac_new_val in
1565    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1566      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1567    *) ac_arg=$ac_var=$ac_new_val ;;
1568    esac
1569    case " $ac_configure_args " in
1570      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1571      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1572    esac
1573  fi
1574done
1575if $ac_cache_corrupted; then
1576  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1577echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1578  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1579echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1580   { (exit 1); exit 1; }; }
1581fi
1582
1583ac_ext=c
1584ac_cpp='$CPP $CPPFLAGS'
1585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1587ac_compiler_gnu=$ac_cv_c_compiler_gnu
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618# List one file in the package so that the configure script can test
1619# whether the package is actually there
1620
1621
1622# Where should everything be installed by default?  Here, we want it
1623# to be installed directly in 'bin', 'lib', 'include' subdirectories
1624# of the directory where configure is run.  The default would be
1625# /usr/local.
1626
1627
1628
1629# As backup, we make sure we don't loose an FLIBS if it has been set
1630# by the user
1631save_FLIBS="$FLIBS"
1632
1633# A useful makefile conditional that is always false
1634
1635
1636if false; then
1637  ALWAYS_FALSE_TRUE=
1638  ALWAYS_FALSE_FALSE='#'
1639else
1640  ALWAYS_FALSE_TRUE='#'
1641  ALWAYS_FALSE_FALSE=
1642fi
1643
1644
1645# We set the following variable so that we know later in AC_COIN_FINALIZE
1646# that we are in a project main directory
1647coin_projectdir=yes
1648
1649# Set the project's version numbers
1650
1651
1652cat >>confdefs.h <<_ACEOF
1653#define SCIP_VERSION "$PACKAGE_VERSION"
1654_ACEOF
1655
1656
1657  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1658  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1659  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1660  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1661  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1662  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1663
1664cat >>confdefs.h <<_ACEOF
1665#define SCIP_VERSION_MAJOR $coin_majorver
1666_ACEOF
1667
1668
1669cat >>confdefs.h <<_ACEOF
1670#define SCIP_VERSION_MINOR $coin_minorver
1671_ACEOF
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define SCIP_VERSION_RELEASE $coin_releasever
1676_ACEOF
1677
1678
1679  # We use the following variable to have a string with the upper case
1680  # version of the project name
1681  COIN_PRJCT=SCIP
1682
1683  # Set the project's SVN revision number. The complicated sed expression
1684  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1685  # as a single number.
1686  # Extract the first word of "svnversion", so it can be a program name with args.
1687set dummy svnversion; ac_word=$2
1688echo "$as_me:$LINENO: checking for $ac_word" >&5
1689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690if test "${ac_cv_prog_have_svnversion+set}" = set; then
1691  echo $ECHO_N "(cached) $ECHO_C" >&6
1692else
1693  if test -n "$have_svnversion"; then
1694  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1695else
1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699  IFS=$as_save_IFS
1700  test -z "$as_dir" && as_dir=.
1701  for ac_exec_ext in '' $ac_executable_extensions; do
1702  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703    ac_cv_prog_have_svnversion="yes"
1704    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705    break 2
1706  fi
1707done
1708done
1709
1710  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1711fi
1712fi
1713have_svnversion=$ac_cv_prog_have_svnversion
1714if test -n "$have_svnversion"; then
1715  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1716echo "${ECHO_T}$have_svnversion" >&6
1717else
1718  echo "$as_me:$LINENO: result: no" >&5
1719echo "${ECHO_T}no" >&6
1720fi
1721
1722  if test "x$have_svnversion" = xyes; then
1723
1724    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1725    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1726      SCIP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1727
1728cat >>confdefs.h <<_ACEOF
1729#define SCIP_SVN_REV $SCIP_SVN_REV
1730_ACEOF
1731
1732    fi
1733  fi
1734
1735
1736
1737# Capture libtool library version, if given.
1738
1739
1740
1741
1742#############################################################################
1743#                         Standard build tool stuff                         #
1744#############################################################################
1745
1746# Get the system type
1747ac_aux_dir=
1748for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1749  if test -f $ac_dir/install-sh; then
1750    ac_aux_dir=$ac_dir
1751    ac_install_sh="$ac_aux_dir/install-sh -c"
1752    break
1753  elif test -f $ac_dir/install.sh; then
1754    ac_aux_dir=$ac_dir
1755    ac_install_sh="$ac_aux_dir/install.sh -c"
1756    break
1757  elif test -f $ac_dir/shtool; then
1758    ac_aux_dir=$ac_dir
1759    ac_install_sh="$ac_aux_dir/shtool install -c"
1760    break
1761  fi
1762done
1763if test -z "$ac_aux_dir"; then
1764  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1765echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1766   { (exit 1); exit 1; }; }
1767fi
1768ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1769ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1770ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1771
1772# Make sure we can run config.sub.
1773$ac_config_sub sun4 >/dev/null 2>&1 ||
1774  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1775echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1776   { (exit 1); exit 1; }; }
1777
1778echo "$as_me:$LINENO: checking build system type" >&5
1779echo $ECHO_N "checking build system type... $ECHO_C" >&6
1780if test "${ac_cv_build+set}" = set; then
1781  echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783  ac_cv_build_alias=$build_alias
1784test -z "$ac_cv_build_alias" &&
1785  ac_cv_build_alias=`$ac_config_guess`
1786test -z "$ac_cv_build_alias" &&
1787  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1788echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1789   { (exit 1); exit 1; }; }
1790ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1791  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1792echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1793   { (exit 1); exit 1; }; }
1794
1795fi
1796echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1797echo "${ECHO_T}$ac_cv_build" >&6
1798build=$ac_cv_build
1799build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1800build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1801build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1802
1803
1804
1805# Check if user wants to produce debugging code
1806
1807echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1808echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1809
1810# Check whether --enable-debug or --disable-debug was given.
1811if test "${enable_debug+set}" = set; then
1812  enableval="$enable_debug"
1813  case "${enableval}" in
1814   yes) coin_debug_compile=true
1815        if test "${enable_shared+set}" = set; then :; else
1816          enable_shared=no
1817        fi
1818        ;;
1819   no)  coin_debug_compile=false
1820        ;;
1821   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1822echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1823   { (exit 1); exit 1; }; }
1824        ;;
1825esac
1826else
1827  coin_debug_compile=false
1828fi;
1829
1830# Check whether --enable-debug-scip or --disable-debug-scip was given.
1831if test "${enable_debug_scip+set}" = set; then
1832  enableval="$enable_debug_scip"
1833  case "${enableval}" in
1834    yes) coin_debug_compile=true
1835         ;;
1836    no)  coin_debug_compile=false
1837         ;;
1838    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-scip" >&5
1839echo "$as_me: error: bad value ${enableval} for --enable-debug-scip" >&2;}
1840   { (exit 1); exit 1; }; }
1841         ;;
1842 esac
1843else
1844  :
1845fi;
1846
1847 # m4_ifvaln([SCIP],
1848
1849if test $coin_debug_compile = true; then
1850  echo "$as_me:$LINENO: result: yes" >&5
1851echo "${ECHO_T}yes" >&6
1852else
1853  echo "$as_me:$LINENO: result: no" >&5
1854echo "${ECHO_T}no" >&6
1855fi
1856
1857
1858# Check whether --with-scip-verbosity or --without-scip-verbosity was given.
1859if test "${with_scip_verbosity+set}" = set; then
1860  withval="$with_scip_verbosity"
1861  if test "$withval" = yes; then
1862                withval=1
1863              fi
1864              coin_scip_verbosity=$withval
1865else
1866  coin_scip_verbosity=0
1867fi;
1868
1869cat >>confdefs.h <<_ACEOF
1870#define COIN_SCIP_VERBOSITY $coin_scip_verbosity
1871_ACEOF
1872
1873
1874
1875# Check whether --with-scip-checklevel or --without-scip-checklevel was given.
1876if test "${with_scip_checklevel+set}" = set; then
1877  withval="$with_scip_checklevel"
1878  if test "$withval" = yes; then
1879                withval=1
1880              fi
1881              coin_scip_checklevel=$withval
1882else
1883  coin_scip_checklevel=0
1884fi;
1885
1886cat >>confdefs.h <<_ACEOF
1887#define COIN_SCIP_CHECKLEVEL $coin_scip_checklevel
1888_ACEOF
1889
1890
1891 # m4_ifvaln([SCIP],
1892
1893
1894
1895# Get the name of the C compiler and appropriate compiler options
1896case $build in
1897  *-mingw*)
1898    if test "${LD+set}" = set; then :; else
1899      LD=link
1900    fi
1901    ;;
1902 esac
1903 case $enable_doscompile in
1904   msvc)
1905     if test "x${LD+set}" = xset; then :; else
1906       LD=link
1907     fi
1908     ;;
1909 esac
1910
1911
1912 # Check whether --enable-doscompile or --disable-doscompile was given.
1913if test "${enable_doscompile+set}" = set; then
1914  enableval="$enable_doscompile"
1915  if test "$enable_doscompile" != no; then
1916     case $build in
1917       *-cygwin* | *-mingw*) ;;
1918       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1919echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1920   { (exit 1); exit 1; }; } ;;
1921     esac
1922   fi
1923else
1924  enable_doscompile=no
1925fi;
1926 case "$enable_doscompile" in
1927   mingw)
1928     case $build in
1929       *-mingw*) enable_doscompile=no ;;
1930     esac
1931     ;;
1932   msvc|no) ;;
1933   yes) enable_doscompile=mingw ;;
1934   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1935                    Try configure --help=recursive." >&5
1936echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1937                    Try configure --help=recursive." >&2;}
1938   { (exit 1); exit 1; }; }
1939      ;;
1940  esac
1941  if test "$enable_doscompile" != no ; then
1942    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1943echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1944  fi
1945
1946
1947
1948
1949ac_ext=c
1950ac_cpp='$CPP $CPPFLAGS'
1951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954
1955
1956# For consistency, we set the C compiler to the same value of the C++
1957# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1958if test x"$CXX" != x; then
1959  case "$CXX" in
1960    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1961      if test x"$CC" = x; then
1962        CC="$CXX"
1963        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1964echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1965      fi
1966      ;;
1967  esac
1968fi
1969
1970
1971
1972
1973
1974
1975coin_has_cc=yes
1976
1977save_cflags="$CFLAGS"
1978
1979# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1980# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1981# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1982# compiler. In this case, put cc after gcc.
1983
1984case $build in
1985  *-cygwin* | *-mingw*)
1986             if test "$enable_doscompile" = msvc ; then
1987               comps="icl cl"
1988             else
1989               comps="gcc cl"
1990             fi ;;
1991  *-*-solaris*)
1992             # Extract the first word of "cc", so it can be a program name with args.
1993set dummy cc; ac_word=$2
1994echo "$as_me:$LINENO: checking for $ac_word" >&5
1995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1997  echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999  if test -n "$sol_cc_compiler"; then
2000  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2001else
2002  ac_prog_rejected=no
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006  IFS=$as_save_IFS
2007  test -z "$as_dir" && as_dir=.
2008  for ac_exec_ext in '' $ac_executable_extensions; do
2009  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2011       ac_prog_rejected=yes
2012       continue
2013     fi
2014    ac_cv_prog_sol_cc_compiler="cc"
2015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016    break 2
2017  fi
2018done
2019done
2020
2021if test $ac_prog_rejected = yes; then
2022  # We found a bogon in the path, so make sure we never use it.
2023  set dummy $ac_cv_prog_sol_cc_compiler
2024  shift
2025  if test $# != 0; then
2026    # We chose a different compiler from the bogus one.
2027    # However, it has the same basename, so the bogon will be chosen
2028    # first if we set sol_cc_compiler to just the basename; use the full file name.
2029    shift
2030    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2031  fi
2032fi
2033fi
2034fi
2035sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2036if test -n "$sol_cc_compiler"; then
2037  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2038echo "${ECHO_T}$sol_cc_compiler" >&6
2039else
2040  echo "$as_me:$LINENO: result: no" >&5
2041echo "${ECHO_T}no" >&6
2042fi
2043
2044             if test "$sol_cc_compiler" = "cc" ; then
2045               comps="cc xlc gcc pgcc icc"
2046             else
2047               comps="xlc gcc pgcc icc cc"
2048             fi
2049             ;;
2050  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2051  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2052  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2053esac
2054
2055# We delete the cached value, since the test might not have been
2056# performed with our choice of compilers earlier
2057$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2058# AC_MSG_NOTICE([C compiler candidates: $comps])
2059ac_ext=c
2060ac_cpp='$CPP $CPPFLAGS'
2061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064if test -n "$ac_tool_prefix"; then
2065  for ac_prog in $comps
2066  do
2067    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069echo "$as_me:$LINENO: checking for $ac_word" >&5
2070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071if test "${ac_cv_prog_CC+set}" = set; then
2072  echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
2074  if test -n "$CC"; then
2075  ac_cv_prog_CC="$CC" # Let the user override the test.
2076else
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080  IFS=$as_save_IFS
2081  test -z "$as_dir" && as_dir=.
2082  for ac_exec_ext in '' $ac_executable_extensions; do
2083  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086    break 2
2087  fi
2088done
2089done
2090
2091fi
2092fi
2093CC=$ac_cv_prog_CC
2094if test -n "$CC"; then
2095  echo "$as_me:$LINENO: result: $CC" >&5
2096echo "${ECHO_T}$CC" >&6
2097else
2098  echo "$as_me:$LINENO: result: no" >&5
2099echo "${ECHO_T}no" >&6
2100fi
2101
2102    test -n "$CC" && break
2103  done
2104fi
2105if test -z "$CC"; then
2106  ac_ct_CC=$CC
2107  for ac_prog in $comps
2108do
2109  # Extract the first word of "$ac_prog", so it can be a program name with args.
2110set dummy $ac_prog; ac_word=$2
2111echo "$as_me:$LINENO: checking for $ac_word" >&5
2112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2114  echo $ECHO_N "(cached) $ECHO_C" >&6
2115else
2116  if test -n "$ac_ct_CC"; then
2117  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2118else
2119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120for as_dir in $PATH
2121do
2122  IFS=$as_save_IFS
2123  test -z "$as_dir" && as_dir=.
2124  for ac_exec_ext in '' $ac_executable_extensions; do
2125  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126    ac_cv_prog_ac_ct_CC="$ac_prog"
2127    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128    break 2
2129  fi
2130done
2131done
2132
2133fi
2134fi
2135ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136if test -n "$ac_ct_CC"; then
2137  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2138echo "${ECHO_T}$ac_ct_CC" >&6
2139else
2140  echo "$as_me:$LINENO: result: no" >&5
2141echo "${ECHO_T}no" >&6
2142fi
2143
2144  test -n "$ac_ct_CC" && break
2145done
2146
2147  CC=$ac_ct_CC
2148fi
2149
2150
2151test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2152See \`config.log' for more details." >&5
2153echo "$as_me: error: no acceptable C compiler found in \$PATH
2154See \`config.log' for more details." >&2;}
2155   { (exit 1); exit 1; }; }
2156
2157# Provide some information about the compiler.
2158echo "$as_me:$LINENO:" \
2159     "checking for C compiler version" >&5
2160ac_compiler=`set X $ac_compile; echo $2`
2161{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2162  (eval $ac_compiler --version </dev/null >&5) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }
2166{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2167  (eval $ac_compiler -v </dev/null >&5) 2>&5
2168  ac_status=$?
2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170  (exit $ac_status); }
2171{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2172  (eval $ac_compiler -V </dev/null >&5) 2>&5
2173  ac_status=$?
2174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175  (exit $ac_status); }
2176
2177cat >conftest.$ac_ext <<_ACEOF
2178/* confdefs.h.  */
2179_ACEOF
2180cat confdefs.h >>conftest.$ac_ext
2181cat >>conftest.$ac_ext <<_ACEOF
2182/* end confdefs.h.  */
2183
2184int
2185main ()
2186{
2187
2188  ;
2189  return 0;
2190}
2191_ACEOF
2192ac_clean_files_save=$ac_clean_files
2193ac_clean_files="$ac_clean_files a.out a.exe b.out"
2194# Try to create an executable without -o first, disregard a.out.
2195# It will help us diagnose broken compilers, and finding out an intuition
2196# of exeext.
2197echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2198echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2199ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2200if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2201  (eval $ac_link_default) 2>&5
2202  ac_status=$?
2203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204  (exit $ac_status); }; then
2205  # Find the output, starting from the most likely.  This scheme is
2206# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2207# resort.
2208
2209# Be careful to initialize this variable, since it used to be cached.
2210# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2211ac_cv_exeext=
2212# b.out is created by i960 compilers.
2213for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2214do
2215  test -f "$ac_file" || continue
2216  case $ac_file in
2217    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2218        ;;
2219    conftest.$ac_ext )
2220        # This is the source file.
2221        ;;
2222    [ab].out )
2223        # We found the default executable, but exeext='' is most
2224        # certainly right.
2225        break;;
2226    *.* )
2227        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2228        # FIXME: I believe we export ac_cv_exeext for Libtool,
2229        # but it would be cool to find out if it's true.  Does anybody
2230        # maintain Libtool? --akim.
2231        export ac_cv_exeext
2232        break;;
2233    * )
2234        break;;
2235  esac
2236done
2237else
2238  echo "$as_me: failed program was:" >&5
2239sed 's/^/| /' conftest.$ac_ext >&5
2240
2241{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2242See \`config.log' for more details." >&5
2243echo "$as_me: error: C compiler cannot create executables
2244See \`config.log' for more details." >&2;}
2245   { (exit 77); exit 77; }; }
2246fi
2247
2248ac_exeext=$ac_cv_exeext
2249echo "$as_me:$LINENO: result: $ac_file" >&5
2250echo "${ECHO_T}$ac_file" >&6
2251
2252# Check the compiler produces executables we can run.  If not, either
2253# the compiler is broken, or we cross compile.
2254echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2255echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2256# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2257# If not cross compiling, check that we can run a simple program.
2258if test "$cross_compiling" != yes; then
2259  if { ac_try='./$ac_file'
2260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261  (eval $ac_try) 2>&5
2262  ac_status=$?
2263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264  (exit $ac_status); }; }; then
2265    cross_compiling=no
2266  else
2267    if test "$cross_compiling" = maybe; then
2268        cross_compiling=yes
2269    else
2270        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2271If you meant to cross compile, use \`--host'.
2272See \`config.log' for more details." >&5
2273echo "$as_me: error: cannot run C compiled programs.
2274If you meant to cross compile, use \`--host'.
2275See \`config.log' for more details." >&2;}
2276   { (exit 1); exit 1; }; }
2277    fi
2278  fi
2279fi
2280echo "$as_me:$LINENO: result: yes" >&5
2281echo "${ECHO_T}yes" >&6
2282
2283rm -f a.out a.exe conftest$ac_cv_exeext b.out
2284ac_clean_files=$ac_clean_files_save
2285# Check the compiler produces executables we can run.  If not, either
2286# the compiler is broken, or we cross compile.
2287echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2288echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2289echo "$as_me:$LINENO: result: $cross_compiling" >&5
2290echo "${ECHO_T}$cross_compiling" >&6
2291
2292echo "$as_me:$LINENO: checking for suffix of executables" >&5
2293echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2295  (eval $ac_link) 2>&5
2296  ac_status=$?
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); }; then
2299  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2300# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2301# work properly (i.e., refer to `conftest.exe'), while it won't with
2302# `rm'.
2303for ac_file in conftest.exe conftest conftest.*; do
2304  test -f "$ac_file" || continue
2305  case $ac_file in
2306    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2307    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308          export ac_cv_exeext
2309          break;;
2310    * ) break;;
2311  esac
2312done
2313else
2314  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315See \`config.log' for more details." >&5
2316echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317See \`config.log' for more details." >&2;}
2318   { (exit 1); exit 1; }; }
2319fi
2320
2321rm -f conftest$ac_cv_exeext
2322echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323echo "${ECHO_T}$ac_cv_exeext" >&6
2324
2325rm -f conftest.$ac_ext
2326EXEEXT=$ac_cv_exeext
2327ac_exeext=$EXEEXT
2328echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2330if test "${ac_cv_objext+set}" = set; then
2331  echo $ECHO_N "(cached) $ECHO_C" >&6
2332else
2333  cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h.  */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h.  */
2339
2340int
2341main ()
2342{
2343
2344  ;
2345  return 0;
2346}
2347_ACEOF
2348rm -f conftest.o conftest.obj
2349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350  (eval $ac_compile) 2>&5
2351  ac_status=$?
2352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353  (exit $ac_status); }; then
2354  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2355  case $ac_file in
2356    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2357    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2358       break;;
2359  esac
2360done
2361else
2362  echo "$as_me: failed program was:" >&5
2363sed 's/^/| /' conftest.$ac_ext >&5
2364
2365{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2366See \`config.log' for more details." >&5
2367echo "$as_me: error: cannot compute suffix of object files: cannot compile
2368See \`config.log' for more details." >&2;}
2369   { (exit 1); exit 1; }; }
2370fi
2371
2372rm -f conftest.$ac_cv_objext conftest.$ac_ext
2373fi
2374echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2375echo "${ECHO_T}$ac_cv_objext" >&6
2376OBJEXT=$ac_cv_objext
2377ac_objext=$OBJEXT
2378echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2379echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2380if test "${ac_cv_c_compiler_gnu+set}" = set; then
2381  echo $ECHO_N "(cached) $ECHO_C" >&6
2382else
2383  cat >conftest.$ac_ext <<_ACEOF
2384/* confdefs.h.  */
2385_ACEOF
2386cat confdefs.h >>conftest.$ac_ext
2387cat >>conftest.$ac_ext <<_ACEOF
2388/* end confdefs.h.  */
2389
2390int
2391main ()
2392{
2393#ifndef __GNUC__
2394       choke me
2395#endif
2396
2397  ;
2398  return 0;
2399}
2400_ACEOF
2401rm -f conftest.$ac_objext
2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403  (eval $ac_compile) 2>conftest.er1
2404  ac_status=$?
2405  grep -v '^ *+' conftest.er1 >conftest.err
2406  rm -f conftest.er1
2407  cat conftest.err >&5
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); } &&
2410         { ac_try='test -z "$ac_c_werror_flag"
2411                         || test ! -s conftest.err'
2412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413  (eval $ac_try) 2>&5
2414  ac_status=$?
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); }; } &&
2417         { ac_try='test -s conftest.$ac_objext'
2418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419  (eval $ac_try) 2>&5
2420  ac_status=$?
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); }; }; then
2423  ac_compiler_gnu=yes
2424else
2425  echo "$as_me: failed program was:" >&5
2426sed 's/^/| /' conftest.$ac_ext >&5
2427
2428ac_compiler_gnu=no
2429fi
2430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432
2433fi
2434echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2436GCC=`test $ac_compiler_gnu = yes && echo yes`
2437ac_test_CFLAGS=${CFLAGS+set}
2438ac_save_CFLAGS=$CFLAGS
2439CFLAGS="-g"
2440echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2441echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2442if test "${ac_cv_prog_cc_g+set}" = set; then
2443  echo $ECHO_N "(cached) $ECHO_C" >&6
2444else
2445  cat >conftest.$ac_ext <<_ACEOF
2446/* confdefs.h.  */
2447_ACEOF
2448cat confdefs.h >>conftest.$ac_ext
2449cat >>conftest.$ac_ext <<_ACEOF
2450/* end confdefs.h.  */
2451
2452int
2453main ()
2454{
2455
2456  ;
2457  return 0;
2458}
2459_ACEOF
2460rm -f conftest.$ac_objext
2461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462  (eval $ac_compile) 2>conftest.er1
2463  ac_status=$?
2464  grep -v '^ *+' conftest.er1 >conftest.err
2465  rm -f conftest.er1
2466  cat conftest.err >&5
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); } &&
2469         { ac_try='test -z "$ac_c_werror_flag"
2470                         || test ! -s conftest.err'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; } &&
2476         { ac_try='test -s conftest.$ac_objext'
2477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478  (eval $ac_try) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }; }; then
2482  ac_cv_prog_cc_g=yes
2483else
2484  echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487ac_cv_prog_cc_g=no
2488fi
2489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2490fi
2491echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2492echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2493if test "$ac_test_CFLAGS" = set; then
2494  CFLAGS=$ac_save_CFLAGS
2495elif test $ac_cv_prog_cc_g = yes; then
2496  if test "$GCC" = yes; then
2497    CFLAGS="-g -O2"
2498  else
2499    CFLAGS="-g"
2500  fi
2501else
2502  if test "$GCC" = yes; then
2503    CFLAGS="-O2"
2504  else
2505    CFLAGS=
2506  fi
2507fi
2508echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2509echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2510if test "${ac_cv_prog_cc_stdc+set}" = set; then
2511  echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513  ac_cv_prog_cc_stdc=no
2514ac_save_CC=$CC
2515cat >conftest.$ac_ext <<_ACEOF
2516/* confdefs.h.  */
2517_ACEOF
2518cat confdefs.h >>conftest.$ac_ext
2519cat >>conftest.$ac_ext <<_ACEOF
2520/* end confdefs.h.  */
2521#include <stdarg.h>
2522#include <stdio.h>
2523#include <sys/types.h>
2524#include <sys/stat.h>
2525/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2526struct buf { int x; };
2527FILE * (*rcsopen) (struct buf *, struct stat *, int);
2528static char *e (p, i)
2529     char **p;
2530     int i;
2531{
2532  return p[i];
2533}
2534static char *f (char * (*g) (char **, int), char **p, ...)
2535{
2536  char *s;
2537  va_list v;
2538  va_start (v,p);
2539  s = g (p, va_arg (v,int));
2540  va_end (v);
2541  return s;
2542}
2543
2544/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2545   function prototypes and stuff, but not '\xHH' hex character constants.
2546   These don't provoke an error unfortunately, instead are silently treated
2547   as 'x'.  The following induces an error, until -std1 is added to get
2548   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2549   array size at least.  It's necessary to write '\x00'==0 to get something
2550   that's true only with -std1.  */
2551int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2552
2553int test (int i, double x);
2554struct s1 {int (*f) (int a);};
2555struct s2 {int (*f) (double a);};
2556int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2557int argc;
2558char **argv;
2559int
2560main ()
2561{
2562return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2563  ;
2564  return 0;
2565}
2566_ACEOF
2567# Don't try gcc -ansi; that turns off useful extensions and
2568# breaks some systems' header files.
2569# AIX                   -qlanglvl=ansi
2570# Ultrix and OSF/1      -std1
2571# HP-UX 10.20 and later -Ae
2572# HP-UX older versions  -Aa -D_HPUX_SOURCE
2573# SVR4                  -Xc -D__EXTENSIONS__
2574for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2575do
2576  CC="$ac_save_CC $ac_arg"
2577  rm -f conftest.$ac_objext
2578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579  (eval $ac_compile) 2>conftest.er1
2580  ac_status=$?
2581  grep -v '^ *+' conftest.er1 >conftest.err
2582  rm -f conftest.er1
2583  cat conftest.err >&5
2584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585  (exit $ac_status); } &&
2586         { ac_try='test -z "$ac_c_werror_flag"
2587                         || test ! -s conftest.err'
2588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589  (eval $ac_try) 2>&5
2590  ac_status=$?
2591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592  (exit $ac_status); }; } &&
2593         { ac_try='test -s conftest.$ac_objext'
2594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595  (eval $ac_try) 2>&5
2596  ac_status=$?
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); }; }; then
2599  ac_cv_prog_cc_stdc=$ac_arg
2600break
2601else
2602  echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605fi
2606rm -f conftest.err conftest.$ac_objext
2607done
2608rm -f conftest.$ac_ext conftest.$ac_objext
2609CC=$ac_save_CC
2610
2611fi
2612
2613case "x$ac_cv_prog_cc_stdc" in
2614  x|xno)
2615    echo "$as_me:$LINENO: result: none needed" >&5
2616echo "${ECHO_T}none needed" >&6 ;;
2617  *)
2618    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2619echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2620    CC="$CC $ac_cv_prog_cc_stdc" ;;
2621esac
2622
2623# Some people use a C++ compiler to compile C.  Since we use `exit',
2624# in C++ we need to declare it.  In case someone uses the same compiler
2625# for both compiling C and C++ we need to have the C++ compiler decide
2626# the declaration of exit, since it's the most demanding environment.
2627cat >conftest.$ac_ext <<_ACEOF
2628#ifndef __cplusplus
2629  choke me
2630#endif
2631_ACEOF
2632rm -f conftest.$ac_objext
2633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634  (eval $ac_compile) 2>conftest.er1
2635  ac_status=$?
2636  grep -v '^ *+' conftest.er1 >conftest.err
2637  rm -f conftest.er1
2638  cat conftest.err >&5
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); } &&
2641         { ac_try='test -z "$ac_c_werror_flag"
2642                         || test ! -s conftest.err'
2643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644  (eval $ac_try) 2>&5
2645  ac_status=$?
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); }; } &&
2648         { ac_try='test -s conftest.$ac_objext'
2649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650  (eval $ac_try) 2>&5
2651  ac_status=$?
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); }; }; then
2654  for ac_declaration in \
2655   '' \
2656   'extern "C" void std::exit (int) throw (); using std::exit;' \
2657   'extern "C" void std::exit (int); using std::exit;' \
2658   'extern "C" void exit (int) throw ();' \
2659   'extern "C" void exit (int);' \
2660   'void exit (int);'
2661do
2662  cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h.  */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h.  */
2668$ac_declaration
2669#include <stdlib.h>
2670int
2671main ()
2672{
2673exit (42);
2674  ;
2675  return 0;
2676}
2677_ACEOF
2678rm -f conftest.$ac_objext
2679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680  (eval $ac_compile) 2>conftest.er1
2681  ac_status=$?
2682  grep -v '^ *+' conftest.er1 >conftest.err
2683  rm -f conftest.er1
2684  cat conftest.err >&5
2685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686  (exit $ac_status); } &&
2687         { ac_try='test -z "$ac_c_werror_flag"
2688                         || test ! -s conftest.err'
2689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690  (eval $ac_try) 2>&5
2691  ac_status=$?
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); }; } &&
2694         { ac_try='test -s conftest.$ac_objext'
2695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696  (eval $ac_try) 2>&5
2697  ac_status=$?
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); }; }; then
2700  :
2701else
2702  echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705continue
2706fi
2707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2708  cat >conftest.$ac_ext <<_ACEOF
2709/* confdefs.h.  */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h.  */
2714$ac_declaration
2715int
2716main ()
2717{
2718exit (42);
2719  ;
2720  return 0;
2721}
2722_ACEOF
2723rm -f conftest.$ac_objext
2724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725  (eval $ac_compile) 2>conftest.er1
2726  ac_status=$?
2727  grep -v '^ *+' conftest.er1 >conftest.err
2728  rm -f conftest.er1
2729  cat conftest.err >&5
2730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731  (exit $ac_status); } &&
2732         { ac_try='test -z "$ac_c_werror_flag"
2733                         || test ! -s conftest.err'
2734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735  (eval $ac_try) 2>&5
2736  ac_status=$?
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); }; } &&
2739         { ac_try='test -s conftest.$ac_objext'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; }; then
2745  break
2746else
2747  echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750fi
2751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2752done
2753rm -f conftest*
2754if test -n "$ac_declaration"; then
2755  echo '#ifdef __cplusplus' >>confdefs.h
2756  echo $ac_declaration      >>confdefs.h
2757  echo '#endif'             >>confdefs.h
2758fi
2759
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
2766ac_ext=c
2767ac_cpp='$CPP $CPPFLAGS'
2768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771
2772if test -z "$CC" ; then
2773  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2774echo "$as_me: error: Failed to find a C compiler!" >&2;}
2775   { (exit 1); exit 1; }; }
2776fi
2777# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2778case "$CC" in
2779  cl* | */cl* | CL* | */CL* )
2780    if test "$ac_cv_prog_cc_g" = yes ; then
2781      ac_cv_prog_cc_g=no
2782      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2783echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2784    fi ;;
2785esac
2786CFLAGS="$save_cflags"
2787
2788# add automake conditional so we can recognize cl compiler in makefile
2789coin_cc_is_cl=false
2790case "$CC" in
2791  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2792    coin_cc_is_cl=true
2793    ;;
2794esac
2795
2796
2797if test $coin_cc_is_cl = true; then
2798  COIN_CC_IS_CL_TRUE=
2799  COIN_CC_IS_CL_FALSE='#'
2800else
2801  COIN_CC_IS_CL_TRUE='#'
2802  COIN_CC_IS_CL_FALSE=
2803fi
2804
2805
2806# Check if a project specific CFLAGS variable has been set
2807if test x$COIN_PRJCT != x; then
2808  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2809  if test x$coin_tmp = xset; then
2810    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2811  fi
2812fi
2813
2814if test x"$CFLAGS" = x; then
2815
2816  coin_add_cflags=
2817  coin_opt_cflags=
2818  coin_dbg_cflags=
2819  coin_warn_cflags=
2820
2821  if test "$GCC" = "yes"; then
2822    case "$CC" in
2823      icc* | */icc*)
2824        ;;
2825      *)
2826        coin_opt_cflags="-O3"
2827        coin_add_cflags="-pipe"
2828        coin_dbg_cflags="-g"
2829        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2830        case $build in
2831          *-darwin*)
2832            ;;
2833          *)
2834            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2835            ;;
2836        esac
2837        case $enable_doscompile in
2838          mingw)
2839            CFLAGS="-mno-cygwin"
2840            cat >conftest.$ac_ext <<_ACEOF
2841/* confdefs.h.  */
2842_ACEOF
2843cat confdefs.h >>conftest.$ac_ext
2844cat >>conftest.$ac_ext <<_ACEOF
2845/* end confdefs.h.  */
2846
2847int
2848main ()
2849{
2850int i=0; i++;
2851  ;
2852  return 0;
2853}
2854_ACEOF
2855rm -f conftest.$ac_objext conftest$ac_exeext
2856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2857  (eval $ac_link) 2>conftest.er1
2858  ac_status=$?
2859  grep -v '^ *+' conftest.er1 >conftest.err
2860  rm -f conftest.er1
2861  cat conftest.err >&5
2862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863  (exit $ac_status); } &&
2864         { ac_try='test -z "$ac_c_werror_flag"
2865                         || test ! -s conftest.err'
2866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867  (eval $ac_try) 2>&5
2868  ac_status=$?
2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870  (exit $ac_status); }; } &&
2871         { ac_try='test -s conftest$ac_exeext'
2872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873  (eval $ac_try) 2>&5
2874  ac_status=$?
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); }; }; then
2877  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2878else
2879  echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882fi
2883rm -f conftest.err conftest.$ac_objext \
2884      conftest$ac_exeext conftest.$ac_ext
2885            CFLAGS=
2886          ;;
2887        esac
2888    esac
2889  fi
2890  if test -z "$coin_opt_cflags"; then
2891    case $build in
2892      *-cygwin* | *-mingw*)
2893        case "$CC" in
2894          cl* | */cl* | CL* | */CL*)
2895            coin_opt_cflags='-MT -O2'
2896            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2897            coin_dbg_cflags='-MTd'
2898            ;;
2899          icl* | */icl* | ICL* | */ICL*)
2900            coin_opt_cflags='-MT -Ox'
2901            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2902            coin_dbg_cflags='-MTd -debug'
2903            ;;
2904        esac
2905        ;;
2906      *-linux-*)
2907        case "$CC" in
2908          icc* | */icc*)
2909            coin_opt_cflags="-O3 -ip -mp1"
2910            coin_add_cflags=""
2911            coin_dbg_cflags="-g"
2912            # Check if -i_dynamic is necessary (for new glibc library)
2913            CFLAGS=
2914            cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h.  */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h.  */
2920
2921int
2922main ()
2923{
2924int i=0; i++;
2925  ;
2926  return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext conftest$ac_exeext
2930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931  (eval $ac_link) 2>conftest.er1
2932  ac_status=$?
2933  grep -v '^ *+' conftest.er1 >conftest.err
2934  rm -f conftest.er1
2935  cat conftest.err >&5
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); } &&
2938         { ac_try='test -z "$ac_c_werror_flag"
2939                         || test ! -s conftest.err'
2940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941  (eval $ac_try) 2>&5
2942  ac_status=$?
2943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); }; } &&
2945         { ac_try='test -s conftest$ac_exeext'
2946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947  (eval $ac_try) 2>&5
2948  ac_status=$?
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); }; }; then
2951  :
2952else
2953  echo "$as_me: failed program was:" >&5
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
2956coin_add_cflags="-i_dynamic $coin_add_cflags"
2957fi
2958rm -f conftest.err conftest.$ac_objext \
2959      conftest$ac_exeext conftest.$ac_ext
2960            ;;
2961          pgcc* | */pgcc*)
2962            coin_opt_cflags="-fast"
2963            coin_add_cflags="-Kieee -pc 64"
2964            coin_dbg_cflags="-g"
2965            ;;
2966        esac
2967        ;;
2968      *-ibm-*)
2969        case "$CC" in
2970          xlc* | */xlc* | mpxlc* | */mpxlc*)
2971            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2972            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2973            coin_dbg_cflags="-g"
2974          ;;
2975        esac
2976        ;;
2977      *-hp-*)
2978        coin_opt_cflags="-O"
2979        coin_add_cflags="-Ae"
2980        coin_dbg_cflags="-g"
2981        ;;
2982      *-*-solaris*)
2983        coin_opt_cflags="-xO4"
2984        coin_dbg_cflags="-g"
2985        ;;
2986      *-sgi-*)
2987        coin_opt_cflags="-O -OPT:Olimit=0"
2988        coin_dbg_cflags="-g"
2989        ;;
2990    esac
2991  fi
2992
2993  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2994    coin_dbg_cflags="-g"
2995  fi
2996
2997  if test -z "$coin_opt_cflags"; then
2998    # Try if -O option works if nothing else is set
2999    CFLAGS="-O"
3000    cat >conftest.$ac_ext <<_ACEOF
3001/* confdefs.h.  */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h.  */
3006
3007int
3008main ()
3009{
3010int i=0; i++;
3011  ;
3012  return 0;
3013}
3014_ACEOF
3015rm -f conftest.$ac_objext conftest$ac_exeext
3016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3017  (eval $ac_link) 2>conftest.er1
3018  ac_status=$?
3019  grep -v '^ *+' conftest.er1 >conftest.err
3020  rm -f conftest.er1
3021  cat conftest.err >&5
3022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023  (exit $ac_status); } &&
3024         { ac_try='test -z "$ac_c_werror_flag"
3025                         || test ! -s conftest.err'
3026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027  (eval $ac_try) 2>&5
3028  ac_status=$?
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); }; } &&
3031         { ac_try='test -s conftest$ac_exeext'
3032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033  (eval $ac_try) 2>&5
3034  ac_status=$?
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); }; }; then
3037  coin_opt_cflags="-O"
3038else
3039  echo "$as_me: failed program was:" >&5
3040sed 's/^/| /' conftest.$ac_ext >&5
3041
3042fi
3043rm -f conftest.err conftest.$ac_objext \
3044      conftest$ac_exeext conftest.$ac_ext
3045  fi
3046
3047  # if PM doesn't want the warning messages, take them out
3048  if test x"$coin_skip_warn_cflags" = xyes; then
3049    coin_warn_cflags=
3050  fi
3051
3052  if test x${DBG_CFLAGS+set} != xset; then
3053    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3054  fi
3055  if test x${OPT_CFLAGS+set} != xset; then
3056    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3057  fi
3058
3059  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3060  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3061
3062  if test "$coin_debug_compile" = "true"; then
3063    CFLAGS="$DBG_CFLAGS"
3064  else
3065    CFLAGS="$OPT_CFLAGS"
3066  fi
3067else
3068  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3069  if test x${DBG_CFLAGS+set} != xset; then
3070    DBG_CFLAGS="$CFLAGS"
3071  fi
3072  if test x${OPT_CFLAGS+set} != xset; then
3073    OPT_CFLAGS="$CFLAGS"
3074  fi
3075fi
3076
3077# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3078
3079case "$CFLAGS" in
3080  *-mno-cygwin*)
3081    if test x${CPPFLAGS+set} != xset ; then
3082      CPPFLAGS="-mno-cygwin"
3083    else
3084      case "$CPPFLAGS" in
3085        *-mno-cygwin*)
3086          ;;
3087        *)
3088          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3089          ;;
3090      esac
3091    fi ;;
3092esac
3093
3094# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3095if test x$COIN_PRJCT != x; then
3096  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3097fi
3098
3099# Try if CFLAGS works
3100save_CFLAGS="$CFLAGS"
3101cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h.  */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h.  */
3107
3108int
3109main ()
3110{
3111int i=0; i++;
3112  ;
3113  return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext conftest$ac_exeext
3117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3118  (eval $ac_link) 2>conftest.er1
3119  ac_status=$?
3120  grep -v '^ *+' conftest.er1 >conftest.err
3121  rm -f conftest.er1
3122  cat conftest.err >&5
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); } &&
3125         { ac_try='test -z "$ac_c_werror_flag"
3126                         || test ! -s conftest.err'
3127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128  (eval $ac_try) 2>&5
3129  ac_status=$?
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); }; } &&
3132         { ac_try='test -s conftest$ac_exeext'
3133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134  (eval $ac_try) 2>&5
3135  ac_status=$?
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); }; }; then
3138  :
3139else
3140  echo "$as_me: failed program was:" >&5
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
3143CFLAGS=
3144fi
3145rm -f conftest.err conftest.$ac_objext \
3146      conftest$ac_exeext conftest.$ac_ext
3147if test -z "$CFLAGS"; then
3148  { 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
3149echo "$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;}
3150  CFLAGS='-O'
3151  cat >conftest.$ac_ext <<_ACEOF
3152/* confdefs.h.  */
3153_ACEOF
3154cat confdefs.h >>conftest.$ac_ext
3155cat >>conftest.$ac_ext <<_ACEOF
3156/* end confdefs.h.  */
3157
3158int
3159main ()
3160{
3161int i=0; i++;
3162  ;
3163  return 0;
3164}
3165_ACEOF
3166rm -f conftest.$ac_objext conftest$ac_exeext
3167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3168  (eval $ac_link) 2>conftest.er1
3169  ac_status=$?
3170  grep -v '^ *+' conftest.er1 >conftest.err
3171  rm -f conftest.er1
3172  cat conftest.err >&5
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); } &&
3175         { ac_try='test -z "$ac_c_werror_flag"
3176                         || test ! -s conftest.err'
3177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178  (eval $ac_try) 2>&5
3179  ac_status=$?
3180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181  (exit $ac_status); }; } &&
3182         { ac_try='test -s conftest$ac_exeext'
3183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184  (eval $ac_try) 2>&5
3185  ac_status=$?
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); }; }; then
3188  :
3189else
3190  echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193CFLAGS=
3194fi
3195rm -f conftest.err conftest.$ac_objext \
3196      conftest$ac_exeext conftest.$ac_ext
3197  if test -z "$CFLAGS"; then
3198    { 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
3199echo "$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;}
3200  fi
3201fi
3202
3203{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3204echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3205
3206
3207if test x"$MPICC" = x; then :; else
3208  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3209echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3210  CC="$MPICC"
3211fi
3212
3213# Correct the LD variable if we are using the MS or Intel-windows compiler
3214case "$CC" in
3215  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3216    case $build in
3217  *-mingw*)
3218    if test "${LD+set}" = set; then :; else
3219      LD=link
3220    fi
3221    ;;
3222 esac
3223 case $enable_doscompile in
3224   msvc)
3225     if test "x${LD+set}" = xset; then :; else
3226       LD=link
3227     fi
3228     ;;
3229 esac
3230
3231    ;;
3232esac
3233
3234ac_ext=c
3235ac_cpp='$CPP $CPPFLAGS'
3236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
3240
3241
3242# Get the name of the C++ compiler and appropriate compiler options
3243
3244 #Let's try if that overcomes configuration problem with VC++ 6.0
3245
3246ac_ext=cc
3247ac_cpp='$CXXCPP $CPPFLAGS'
3248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3251
3252
3253
3254
3255
3256
3257
3258coin_has_cxx=yes
3259
3260save_cxxflags="$CXXFLAGS"
3261# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3262case $build in
3263  *-cygwin* | *-mingw*)
3264             if test "$enable_doscompile" = msvc ; then
3265               comps="icl cl"
3266             else
3267               comps="g++ cl"
3268             fi ;;
3269  *-*-solaris*)
3270             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3271  *-darwin*) comps="g++ c++ CC" ;;
3272  *-linux-gnu*)
3273             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3274          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3275esac
3276
3277# We delete the cached value, since the test might not have been
3278# performed with our choice of compilers earlier
3279$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3280# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3281ac_ext=cc
3282ac_cpp='$CXXCPP $CPPFLAGS'
3283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3286if test -n "$ac_tool_prefix"; then
3287  for ac_prog in $CCC $comps
3288  do
3289    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3291echo "$as_me:$LINENO: checking for $ac_word" >&5
3292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293if test "${ac_cv_prog_CXX+set}" = set; then
3294  echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296  if test -n "$CXX"; then
3297  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302  IFS=$as_save_IFS
3303  test -z "$as_dir" && as_dir=.
3304  for ac_exec_ext in '' $ac_executable_extensions; do
3305  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3307    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308    break 2
3309  fi
3310done
3311done
3312
3313fi
3314fi
3315CXX=$ac_cv_prog_CXX
3316if test -n "$CXX"; then
3317  echo "$as_me:$LINENO: result: $CXX" >&5
3318echo "${ECHO_T}$CXX" >&6
3319else
3320  echo "$as_me:$LINENO: result: no" >&5
3321echo "${ECHO_T}no" >&6
3322fi
3323
3324    test -n "$CXX" && break
3325  done
3326fi
3327if test -z "$CXX"; then
3328  ac_ct_CXX=$CXX
3329  for ac_prog in $CCC $comps
3330do
3331  # Extract the first word of "$ac_prog", so it can be a program name with args.
3332set dummy $ac_prog; ac_word=$2
3333echo "$as_me:$LINENO: checking for $ac_word" >&5
3334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3336  echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338  if test -n "$ac_ct_CXX"; then
3339  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344  IFS=$as_save_IFS
3345  test -z "$as_dir" && as_dir=.
3346  for ac_exec_ext in '' $ac_executable_extensions; do
3347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348    ac_cv_prog_ac_ct_CXX="$ac_prog"
3349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350    break 2
3351  fi
3352done
3353done
3354
3355fi
3356fi
3357ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3358if test -n "$ac_ct_CXX"; then
3359  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3360echo "${ECHO_T}$ac_ct_CXX" >&6
3361else
3362  echo "$as_me:$LINENO: result: no" >&5
3363echo "${ECHO_T}no" >&6
3364fi
3365
3366  test -n "$ac_ct_CXX" && break
3367done
3368test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3369
3370  CXX=$ac_ct_CXX
3371fi
3372
3373
3374# Provide some information about the compiler.
3375echo "$as_me:$LINENO:" \
3376     "checking for C++ compiler version" >&5
3377ac_compiler=`set X $ac_compile; echo $2`
3378{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3379  (eval $ac_compiler --version </dev/null >&5) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }
3383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3384  (eval $ac_compiler -v </dev/null >&5) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }
3388{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3389  (eval $ac_compiler -V </dev/null >&5) 2>&5
3390  ac_status=$?
3391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392  (exit $ac_status); }
3393
3394echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3395echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3396if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3397  echo $ECHO_N "(cached) $ECHO_C" >&6
3398else
3399  cat >conftest.$ac_ext <<_ACEOF
3400/* confdefs.h.  */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h.  */
3405
3406int
3407main ()
3408{
3409#ifndef __GNUC__
3410       choke me
3411#endif
3412
3413  ;
3414  return 0;
3415}
3416_ACEOF
3417rm -f conftest.$ac_objext
3418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3419  (eval $ac_compile) 2>conftest.er1
3420  ac_status=$?
3421  grep -v '^ *+' conftest.er1 >conftest.err
3422  rm -f conftest.er1
3423  cat conftest.err >&5
3424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425  (exit $ac_status); } &&
3426         { ac_try='test -z "$ac_cxx_werror_flag"
3427                         || test ! -s conftest.err'
3428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429  (eval $ac_try) 2>&5
3430  ac_status=$?
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); }; } &&
3433         { ac_try='test -s conftest.$ac_objext'
3434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435  (eval $ac_try) 2>&5
3436  ac_status=$?
3437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438  (exit $ac_status); }; }; then
3439  ac_compiler_gnu=yes
3440else
3441  echo "$as_me: failed program was:" >&5
3442sed 's/^/| /' conftest.$ac_ext >&5
3443
3444ac_compiler_gnu=no
3445fi
3446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3447ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3448
3449fi
3450echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3451echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3452GXX=`test $ac_compiler_gnu = yes && echo yes`
3453ac_test_CXXFLAGS=${CXXFLAGS+set}
3454ac_save_CXXFLAGS=$CXXFLAGS
3455CXXFLAGS="-g"
3456echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3457echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3458if test "${ac_cv_prog_cxx_g+set}" = set; then
3459  echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
3461  cat >conftest.$ac_ext <<_ACEOF
3462/* confdefs.h.  */
3463_ACEOF
3464cat confdefs.h >>conftest.$ac_ext
3465cat >>conftest.$ac_ext <<_ACEOF
3466/* end confdefs.h.  */
3467
3468int
3469main ()
3470{
3471
3472  ;
3473  return 0;
3474}
3475_ACEOF
3476rm -f conftest.$ac_objext
3477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478  (eval $ac_compile) 2>conftest.er1
3479  ac_status=$?
3480  grep -v '^ *+' conftest.er1 >conftest.err
3481  rm -f conftest.er1
3482  cat conftest.err >&5
3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); } &&
3485         { ac_try='test -z "$ac_cxx_werror_flag"
3486                         || test ! -s conftest.err'
3487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488  (eval $ac_try) 2>&5
3489  ac_status=$?
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); }; } &&
3492         { ac_try='test -s conftest.$ac_objext'
3493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494  (eval $ac_try) 2>&5
3495  ac_status=$?
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); }; }; then
3498  ac_cv_prog_cxx_g=yes
3499else
3500  echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503ac_cv_prog_cxx_g=no
3504fi
3505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506fi
3507echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3508echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3509if test "$ac_test_CXXFLAGS" = set; then
3510  CXXFLAGS=$ac_save_CXXFLAGS
3511elif test $ac_cv_prog_cxx_g = yes; then
3512  if test "$GXX" = yes; then
3513    CXXFLAGS="-g -O2"
3514  else
3515    CXXFLAGS="-g"
3516  fi
3517else
3518  if test "$GXX" = yes; then
3519    CXXFLAGS="-O2"
3520  else
3521    CXXFLAGS=
3522  fi
3523fi
3524for ac_declaration in \
3525   '' \
3526   'extern "C" void std::exit (int) throw (); using std::exit;' \
3527   'extern "C" void std::exit (int); using std::exit;' \
3528   'extern "C" void exit (int) throw ();' \
3529   'extern "C" void exit (int);' \
3530   'void exit (int);'
3531do
3532  cat >conftest.$ac_ext <<_ACEOF
3533/* confdefs.h.  */
3534_ACEOF
3535cat confdefs.h >>conftest.$ac_ext
3536cat >>conftest.$ac_ext <<_ACEOF
3537/* end confdefs.h.  */
3538$ac_declaration
3539#include <stdlib.h>
3540int
3541main ()
3542{
3543exit (42);
3544  ;
3545  return 0;
3546}
3547_ACEOF
3548rm -f conftest.$ac_objext
3549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3550  (eval $ac_compile) 2>conftest.er1
3551  ac_status=$?
3552  grep -v '^ *+' conftest.er1 >conftest.err
3553  rm -f conftest.er1
3554  cat conftest.err >&5
3555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); } &&
3557         { ac_try='test -z "$ac_cxx_werror_flag"
3558                         || test ! -s conftest.err'
3559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560  (eval $ac_try) 2>&5
3561  ac_status=$?
3562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563  (exit $ac_status); }; } &&
3564         { ac_try='test -s conftest.$ac_objext'
3565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566  (eval $ac_try) 2>&5
3567  ac_status=$?
3568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569  (exit $ac_status); }; }; then
3570  :
3571else
3572  echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575continue
3576fi
3577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3578  cat >conftest.$ac_ext <<_ACEOF
3579/* confdefs.h.  */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h.  */
3584$ac_declaration
3585int
3586main ()
3587{
3588exit (42);
3589  ;
3590  return 0;
3591}
3592_ACEOF
3593rm -f conftest.$ac_objext
3594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3595  (eval $ac_compile) 2>conftest.er1
3596  ac_status=$?
3597  grep -v '^ *+' conftest.er1 >conftest.err
3598  rm -f conftest.er1
3599  cat conftest.err >&5
3600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601  (exit $ac_status); } &&
3602         { ac_try='test -z "$ac_cxx_werror_flag"
3603                         || test ! -s conftest.err'
3604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605  (eval $ac_try) 2>&5
3606  ac_status=$?
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); }; } &&
3609         { ac_try='test -s conftest.$ac_objext'
3610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611  (eval $ac_try) 2>&5
3612  ac_status=$?
3613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614  (exit $ac_status); }; }; then
3615  break
3616else
3617  echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620fi
3621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622done
3623rm -f conftest*
3624if test -n "$ac_declaration"; then
3625  echo '#ifdef __cplusplus' >>confdefs.h
3626  echo $ac_declaration      >>confdefs.h
3627  echo '#endif'             >>confdefs.h
3628fi
3629
3630ac_ext=cc
3631ac_cpp='$CXXCPP $CPPFLAGS'
3632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3635
3636
3637#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3638#thus, we test here whether $CXX is actually working
3639ac_ext=cc
3640ac_cpp='$CXXCPP $CPPFLAGS'
3641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3644
3645echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3646echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3647cat >conftest.$ac_ext <<_ACEOF
3648/* confdefs.h.  */
3649_ACEOF
3650cat confdefs.h >>conftest.$ac_ext
3651cat >>conftest.$ac_ext <<_ACEOF
3652/* end confdefs.h.  */
3653
3654int
3655main ()
3656{
3657int i=0;
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662rm -f conftest.$ac_objext
3663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664  (eval $ac_compile) 2>conftest.er1
3665  ac_status=$?
3666  grep -v '^ *+' conftest.er1 >conftest.err
3667  rm -f conftest.er1
3668  cat conftest.err >&5
3669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670  (exit $ac_status); } &&
3671         { ac_try='test -z "$ac_cxx_werror_flag"
3672                         || test ! -s conftest.err'
3673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674  (eval $ac_try) 2>&5
3675  ac_status=$?
3676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677  (exit $ac_status); }; } &&
3678         { ac_try='test -s conftest.$ac_objext'
3679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680  (eval $ac_try) 2>&5
3681  ac_status=$?
3682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683  (exit $ac_status); }; }; then
3684  echo "$as_me:$LINENO: result: yes" >&5
3685echo "${ECHO_T}yes" >&6
3686else
3687  echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
3690echo "$as_me:$LINENO: result: no" >&5
3691echo "${ECHO_T}no" >&6
3692   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3693echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3694   { (exit 1); exit 1; }; }
3695
3696fi
3697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3698ac_ext=cc
3699ac_cpp='$CXXCPP $CPPFLAGS'
3700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3703
3704
3705coin_cxx_is_cl=false
3706# It seems that we need to cleanup something here for the Windows
3707case "$CXX" in
3708  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3709    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3710    mv confdefs.hh confdefs.h
3711    coin_cxx_is_cl=true
3712    ;;
3713esac
3714
3715# add automake conditional so we can recognize cl compiler in makefile
3716
3717
3718if test $coin_cxx_is_cl = true; then
3719  COIN_CXX_IS_CL_TRUE=
3720  COIN_CXX_IS_CL_FALSE='#'
3721else
3722  COIN_CXX_IS_CL_TRUE='#'
3723  COIN_CXX_IS_CL_FALSE=
3724fi
3725
3726
3727# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3728case "$CXX" in
3729  cl* | */cl* | CL* | */CL* )
3730    if test "$ac_cv_prog_cxx_g" = yes ; then
3731      ac_cv_prog_cxx_g=no
3732      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3733echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3734    fi ;;
3735esac
3736CXXFLAGS="$save_cxxflags"
3737
3738# Check if a project specific CXXFLAGS variable has been set
3739if test x$COIN_PRJCT != x; then
3740  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3741  if test x$coin_tmp = xset; then
3742    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3743  fi
3744fi
3745
3746if test x"$CXXFLAGS" = x; then
3747
3748# ToDo decide whether we want -DNDEBUG for optimization
3749  coin_add_cxxflags=
3750  coin_opt_cxxflags=
3751  coin_dbg_cxxflags=
3752  coin_warn_cxxflags=
3753
3754  if test "$GXX" = "yes"; then
3755    case "$CXX" in
3756      icpc* | */icpc*)
3757        ;;
3758      *)
3759# ToDo decide about unroll-loops
3760        coin_opt_cxxflags="-O3"
3761        coin_add_cxxflags="-pipe"
3762        coin_dbg_cxxflags="-g"
3763        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3764        case $build in
3765          *-darwin*)
3766            ;;
3767          *)
3768            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3769            ;;
3770        esac
3771
3772        case $enable_doscompile in
3773          mingw)
3774            CXXFLAGS="-mno-cygwin"
3775            cat >conftest.$ac_ext <<_ACEOF
3776/* confdefs.h.  */
3777_ACEOF
3778cat confdefs.h >>conftest.$ac_ext
3779cat >>conftest.$ac_ext <<_ACEOF
3780/* end confdefs.h.  */
3781
3782int
3783main ()
3784{
3785int i=0; i++;
3786  ;
3787  return 0;
3788}
3789_ACEOF
3790rm -f conftest.$ac_objext conftest$ac_exeext
3791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792  (eval $ac_link) 2>conftest.er1
3793  ac_status=$?
3794  grep -v '^ *+' conftest.er1 >conftest.err
3795  rm -f conftest.er1
3796  cat conftest.err >&5
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); } &&
3799         { ac_try='test -z "$ac_cxx_werror_flag"
3800                         || test ! -s conftest.err'
3801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802  (eval $ac_try) 2>&5
3803  ac_status=$?
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); }; } &&
3806         { ac_try='test -s conftest$ac_exeext'
3807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808  (eval $ac_try) 2>&5
3809  ac_status=$?
3810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811  (exit $ac_status); }; }; then
3812  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3813else
3814  echo "$as_me: failed program was:" >&5
3815sed 's/^/| /' conftest.$ac_ext >&5
3816
3817fi
3818rm -f conftest.err conftest.$ac_objext \
3819      conftest$ac_exeext conftest.$ac_ext
3820            CXXFLAGS=
3821          ;;
3822        esac
3823    esac
3824  fi
3825
3826# Note that we do not need to cover GCC in the following tests.
3827
3828  if test -z "$coin_opt_cxxflags"; then
3829    case $build in
3830      *-cygwin* | *-mingw*)
3831        case "$CXX" in
3832          cl* | */cl* | CL* | */CL*)
3833            # The MT and MTd options are mutually exclusive
3834            coin_opt_cxxflags='-MT -O2'
3835            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3836            coin_dbg_cxxflags='-MTd'
3837            ;;
3838          icl* | */icl* | ICL* | */ICL*)
3839            # The MT and MTd options are mutually exclusive
3840            coin_opt_cxxflags='-MT -Ox'
3841            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3842            coin_dbg_cxxflags='-MTd -debug'
3843            ;;
3844        esac
3845        ;;
3846      *-linux-*)
3847        case "$CXX" in
3848          icpc* | */icpc*)
3849            coin_opt_cxxflags="-O3 -ip -mp1"
3850            coin_add_cxxflags=""
3851            coin_dbg_cxxflags="-g"
3852            # Check if -i_dynamic is necessary (for new glibc library)
3853            CXXFLAGS=
3854            cat >conftest.$ac_ext <<_ACEOF
3855/* confdefs.h.  */
3856_ACEOF
3857cat confdefs.h >>conftest.$ac_ext
3858cat >>conftest.$ac_ext <<_ACEOF
3859/* end confdefs.h.  */
3860
3861int
3862main ()
3863{
3864int i=0; i++;
3865  ;
3866  return 0;
3867}
3868_ACEOF
3869rm -f conftest.$ac_objext conftest$ac_exeext
3870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3871  (eval $ac_link) 2>conftest.er1
3872  ac_status=$?
3873  grep -v '^ *+' conftest.er1 >conftest.err
3874  rm -f conftest.er1
3875  cat conftest.err >&5
3876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877  (exit $ac_status); } &&
3878         { ac_try='test -z "$ac_cxx_werror_flag"
3879                         || test ! -s conftest.err'
3880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881  (eval $ac_try) 2>&5
3882  ac_status=$?
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); }; } &&
3885         { ac_try='test -s conftest$ac_exeext'
3886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887  (eval $ac_try) 2>&5
3888  ac_status=$?
3889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890  (exit $ac_status); }; }; then
3891  :
3892else
3893  echo "$as_me: failed program was:" >&5
3894sed 's/^/| /' conftest.$ac_ext >&5
3895
3896coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3897fi
3898rm -f conftest.err conftest.$ac_objext \
3899      conftest$ac_exeext conftest.$ac_ext
3900            ;;
3901          pgCC* | */pgCC*)
3902            coin_opt_cxxflags="-fast"
3903            coin_add_cxxflags="-Kieee -pc 64"
3904            coin_dbg_cxxflags="-g"
3905            ;;
3906        esac
3907        ;;
3908      *-ibm-*)
3909        case "$CXX" in
3910          xlC* | */xlC* | mpxlC* | */mpxlC*)
3911            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3912            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3913            coin_dbg_cxxflags="-g"
3914            ;;
3915        esac
3916        ;;
3917      *-hp-*)
3918        case "$CXX" in
3919          aCC* | */aCC* )
3920            coin_opt_cxxflags="-O"
3921            coin_add_cxxflags="-AA"
3922            coin_dbg_cxxflags="-g"
3923            ;;
3924        esac
3925        ;;
3926      *-*-solaris*)
3927          coin_opt_cxxflags="-O4"
3928          coin_dbg_cxxflags="-g"
3929        ;;
3930    esac
3931  fi
3932
3933# Generic flag settings. If these don't work, add a case above.
3934
3935  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3936    coin_dbg_cxxflags="-g"
3937  fi
3938
3939  if test -z "$coin_opt_cxxflags"; then
3940    # Try if -O option works if nothing else is set
3941    CXXFLAGS=-O
3942    cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h.  */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h.  */
3948
3949int
3950main ()
3951{
3952int i=0; i++;
3953  ;
3954  return 0;
3955}
3956_ACEOF
3957rm -f conftest.$ac_objext conftest$ac_exeext
3958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3959  (eval $ac_link) 2>conftest.er1
3960  ac_status=$?
3961  grep -v '^ *+' conftest.er1 >conftest.err
3962  rm -f conftest.er1
3963  cat conftest.err >&5
3964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965  (exit $ac_status); } &&
3966         { ac_try='test -z "$ac_cxx_werror_flag"
3967                         || test ! -s conftest.err'
3968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969  (eval $ac_try) 2>&5
3970  ac_status=$?
3971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972  (exit $ac_status); }; } &&
3973         { ac_try='test -s conftest$ac_exeext'
3974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975  (eval $ac_try) 2>&5
3976  ac_status=$?
3977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978  (exit $ac_status); }; }; then
3979  coin_opt_cxxflags="-O"
3980else
3981  echo "$as_me: failed program was:" >&5
3982sed 's/^/| /' conftest.$ac_ext >&5
3983
3984fi
3985rm -f conftest.err conftest.$ac_objext \
3986      conftest$ac_exeext conftest.$ac_ext
3987  fi
3988
3989  # if PM doesn't want the warning messages, take them out
3990  if test x"$coin_skip_warn_cxxflags" = xyes; then
3991    coin_warn_cxxflags=
3992  fi
3993
3994# Do final setup of flags based on values determined above.
3995
3996  if test x${DBG_CXXFLAGS+set} != xset; then
3997    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3998  fi
3999  if test x${OPT_CXXFLAGS+set} != xset; then
4000    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4001  fi
4002
4003  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4004  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4005
4006  if test "$coin_debug_compile" = "true"; then
4007    CXXFLAGS="$DBG_CXXFLAGS"
4008  else
4009    CXXFLAGS="$OPT_CXXFLAGS"
4010  fi
4011
4012# Handle the case where CXXFLAGS was set externally.
4013else
4014  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4015  if test x${DBG_CXXFLAGS+set} != xset; then
4016    DBG_CXXFLAGS="$CXXFLAGS"
4017  fi
4018  if test x${OPT_CXXFLAGS+set} != xset; then
4019    OPT_CXXFLAGS="$CXXFLAGS"
4020  fi
4021fi
4022
4023# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4024
4025case "$CXXFLAGS" in
4026  *-mno-cygwin*)
4027    if test x${CPPFLAGS+set} != xset ; then
4028      CPPFLAGS="-mno-cygwin"
4029    else
4030      case "$CPPFLAGS" in
4031        *-mno-cygwin*)
4032          ;;
4033        *)
4034          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4035          ;;
4036      esac
4037    fi ;;
4038esac
4039
4040# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4041if test x$COIN_PRJCT != x; then
4042  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4043fi
4044
4045# Try if CXXFLAGS works
4046save_CXXFLAGS="$CXXFLAGS"
4047cat >conftest.$ac_ext <<_ACEOF
4048/* confdefs.h.  */
4049_ACEOF
4050cat confdefs.h >>conftest.$ac_ext
4051cat >>conftest.$ac_ext <<_ACEOF
4052/* end confdefs.h.  */
4053
4054int
4055main ()
4056{
4057int i=0; i++;
4058  ;
4059  return 0;
4060}
4061_ACEOF
4062rm -f conftest.$ac_objext conftest$ac_exeext
4063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4064  (eval $ac_link) 2>conftest.er1
4065  ac_status=$?
4066  grep -v '^ *+' conftest.er1 >conftest.err
4067  rm -f conftest.er1
4068  cat conftest.err >&5
4069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070  (exit $ac_status); } &&
4071         { ac_try='test -z "$ac_cxx_werror_flag"
4072                         || test ! -s conftest.err'
4073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074  (eval $ac_try) 2>&5
4075  ac_status=$?
4076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077  (exit $ac_status); }; } &&
4078         { ac_try='test -s conftest$ac_exeext'
4079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080  (eval $ac_try) 2>&5
4081  ac_status=$?
4082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083  (exit $ac_status); }; }; then
4084  :
4085else
4086  echo "$as_me: failed program was:" >&5
4087sed 's/^/| /' conftest.$ac_ext >&5
4088
4089CXXFLAGS=
4090fi
4091rm -f conftest.err conftest.$ac_objext \
4092      conftest$ac_exeext conftest.$ac_ext
4093if test -z "$CXXFLAGS"; then
4094  { 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
4095echo "$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;}
4096  CXXFLAGS='-O'
4097  cat >conftest.$ac_ext <<_ACEOF
4098/* confdefs.h.  */
4099_ACEOF
4100cat confdefs.h >>conftest.$ac_ext
4101cat >>conftest.$ac_ext <<_ACEOF
4102/* end confdefs.h.  */
4103
4104int
4105main ()
4106{
4107int i=0; i++;
4108  ;
4109  return 0;
4110}
4111_ACEOF
4112rm -f conftest.$ac_objext conftest$ac_exeext
4113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4114  (eval $ac_link) 2>conftest.er1
4115  ac_status=$?
4116  grep -v '^ *+' conftest.er1 >conftest.err
4117  rm -f conftest.er1
4118  cat conftest.err >&5
4119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120  (exit $ac_status); } &&
4121         { ac_try='test -z "$ac_cxx_werror_flag"
4122                         || test ! -s conftest.err'
4123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124  (eval $ac_try) 2>&5
4125  ac_status=$?
4126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127  (exit $ac_status); }; } &&
4128         { ac_try='test -s conftest$ac_exeext'
4129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130  (eval $ac_try) 2>&5
4131  ac_status=$?
4132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133  (exit $ac_status); }; }; then
4134  :
4135else
4136  echo "$as_me: failed program was:" >&5
4137sed 's/^/| /' conftest.$ac_ext >&5
4138
4139CXXFLAGS=
4140fi
4141rm -f conftest.err conftest.$ac_objext \
4142      conftest$ac_exeext conftest.$ac_ext
4143  if test -z "$CXXFLAGS"; then
4144    { 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
4145echo "$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;}
4146  fi
4147fi
4148
4149{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4150echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4151
4152
4153if test x"$MPICXX" = x; then :; else
4154  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4155echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4156  CXX="$MPICXX"
4157fi
4158
4159# correct the LD variable in a mingw build with MS or intel compiler
4160case "$CXX" in
4161  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4162    case $build in
4163  *-mingw*)
4164    if test "${LD+set}" = set; then :; else
4165      LD=link
4166    fi
4167    ;;
4168 esac
4169 case $enable_doscompile in
4170   msvc)
4171     if test "x${LD+set}" = xset; then :; else
4172       LD=link
4173     fi
4174     ;;
4175 esac
4176
4177    ;;
4178esac
4179
4180ac_ext=c
4181ac_cpp='$CPP $CPPFLAGS'
4182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185
4186
4187
4188# Initialize automake
4189am__api_version="1.9"
4190# Find a good install program.  We prefer a C program (faster),
4191# so one script is as good as another.  But avoid the broken or
4192# incompatible versions:
4193# SysV /etc/install, /usr/sbin/install
4194# SunOS /usr/etc/install
4195# IRIX /sbin/install
4196# AIX /bin/install
4197# AmigaOS /C/install, which installs bootblocks on floppy discs
4198# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4199# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4200# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4201# OS/2's system install, which has a completely different semantic
4202# ./install, which can be erroneously created by make from ./install.sh.
4203echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4204echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4205if test -z "$INSTALL"; then
4206if test "${ac_cv_path_install+set}" = set; then
4207  echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH
4211do
4212  IFS=$as_save_IFS
4213  test -z "$as_dir" && as_dir=.
4214  # Account for people who put trailing slashes in PATH elements.
4215case $as_dir/ in
4216  ./ | .// | /cC/* | \
4217  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4218  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4219  /usr/ucb/* ) ;;
4220  *)
4221    # OSF1 and SCO ODT 3.0 have their own names for install.
4222    # Don't use installbsd from OSF since it installs stuff as root
4223    # by default.
4224    for ac_prog in ginstall scoinst install; do
4225      for ac_exec_ext in '' $ac_executable_extensions; do
4226        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4227          if test $ac_prog = install &&
4228            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4229            # AIX install.  It has an incompatible calling convention.
4230            :
4231          elif test $ac_prog = install &&
4232            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4233            # program-specific install script used by HP pwplus--don't use.
4234            :
4235          else
4236            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4237            break 3
4238          fi
4239        fi
4240      done
4241    done
4242    ;;
4243esac
4244done
4245
4246
4247fi
4248  if test "${ac_cv_path_install+set}" = set; then
4249    INSTALL=$ac_cv_path_install
4250  else
4251    # As a last resort, use the slow shell script.  We don't cache a
4252    # path for INSTALL within a source directory, because that will
4253    # break other packages using the cache if that directory is
4254    # removed, or if the path is relative.
4255    INSTALL=$ac_install_sh
4256  fi
4257fi
4258echo "$as_me:$LINENO: result: $INSTALL" >&5
4259echo "${ECHO_T}$INSTALL" >&6
4260
4261# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4262# It thinks the first close brace ends the variable substitution.
4263test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4264
4265test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4266
4267test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4268
4269echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4270echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4271# Just in case
4272sleep 1
4273echo timestamp > conftest.file
4274# Do `set' in a subshell so we don't clobber the current shell's
4275# arguments.  Must try -L first in case configure is actually a
4276# symlink; some systems play weird games with the mod time of symlinks
4277# (eg FreeBSD returns the mod time of the symlink's containing
4278# directory).
4279if (
4280   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4281   if test "$*" = "X"; then
4282      # -L didn't work.
4283      set X `ls -t $srcdir/configure conftest.file`
4284   fi
4285   rm -f conftest.file
4286   if test "$*" != "X $srcdir/configure conftest.file" \
4287      && test "$*" != "X conftest.file $srcdir/configure"; then
4288
4289      # If neither matched, then we have a broken ls.  This can happen
4290      # if, for instance, CONFIG_SHELL is bash and it inherits a
4291      # broken ls alias from the environment.  This has actually
4292      # happened.  Such a system could not be considered "sane".
4293      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4294alias in your environment" >&5
4295echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4296alias in your environment" >&2;}
4297   { (exit 1); exit 1; }; }
4298   fi
4299
4300   test "$2" = conftest.file
4301   )
4302then
4303   # Ok.
4304   :
4305else
4306   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4307Check your system clock" >&5
4308echo "$as_me: error: newly created file is older than distributed files!
4309Check your system clock" >&2;}
4310   { (exit 1); exit 1; }; }
4311fi
4312echo "$as_me:$LINENO: result: yes" >&5
4313echo "${ECHO_T}yes" >&6
4314test "$program_prefix" != NONE &&
4315  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4316# Use a double $ so make ignores it.
4317test "$program_suffix" != NONE &&
4318  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4319# Double any \ or $.  echo might interpret backslashes.
4320# By default was `s,x,x', remove it if useless.
4321cat <<\_ACEOF >conftest.sed
4322s/[\\$]/&&/g;s/;s,x,x,$//
4323_ACEOF
4324program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4325rm conftest.sed
4326
4327# expand $ac_aux_dir to an absolute path
4328am_aux_dir=`cd $ac_aux_dir && pwd`
4329
4330test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4331# Use eval to expand $SHELL
4332if eval "$MISSING --run true"; then
4333  am_missing_run="$MISSING --run "
4334else
4335  am_missing_run=
4336  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4337echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4338fi
4339
4340if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4341  # We used to keeping the `.' as first argument, in order to
4342  # allow $(mkdir_p) to be used without argument.  As in
4343  #   $(mkdir_p) $(somedir)
4344  # where $(somedir) is conditionally defined.  However this is wrong
4345  # for two reasons:
4346  #  1. if the package is installed by a user who cannot write `.'
4347  #     make install will fail,
4348  #  2. the above comment should most certainly read
4349  #     $(mkdir_p) $(DESTDIR)$(somedir)
4350  #     so it does not work when $(somedir) is undefined and
4351  #     $(DESTDIR) is not.
4352  #  To support the latter case, we have to write
4353  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4354  #  so the `.' trick is pointless.
4355  mkdir_p='mkdir -p --'
4356else
4357  # On NextStep and OpenStep, the `mkdir' command does not
4358  # recognize any option.  It will interpret all options as
4359  # directories to create, and then abort because `.' already
4360  # exists.
4361  for d in ./-p ./--version;
4362  do
4363    test -d $d && rmdir $d
4364  done
4365  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4366  if test -f "$ac_aux_dir/mkinstalldirs"; then
4367    mkdir_p='$(mkinstalldirs)'
4368  else
4369    mkdir_p='$(install_sh) -d'
4370  fi
4371fi
4372
4373for ac_prog in gawk mawk nawk awk
4374do
4375  # Extract the first word of "$ac_prog", so it can be a program name with args.
4376set dummy $ac_prog; ac_word=$2
4377echo "$as_me:$LINENO: checking for $ac_word" >&5
4378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4379if test "${ac_cv_prog_AWK+set}" = set; then
4380  echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382  if test -n "$AWK"; then
4383  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4384else
4385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388  IFS=$as_save_IFS
4389  test -z "$as_dir" && as_dir=.
4390  for ac_exec_ext in '' $ac_executable_extensions; do
4391  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4392    ac_cv_prog_AWK="$ac_prog"
4393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394    break 2
4395  fi
4396done
4397done
4398
4399fi
4400fi
4401AWK=$ac_cv_prog_AWK
4402if test -n "$AWK"; then
4403  echo "$as_me:$LINENO: result: $AWK" >&5
4404echo "${ECHO_T}$AWK" >&6
4405else
4406  echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408fi
4409
4410  test -n "$AWK" && break
4411done
4412
4413echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4414echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4415set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4416if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419  cat >conftest.make <<\_ACEOF
4420all:
4421        @echo 'ac_maketemp="$(MAKE)"'
4422_ACEOF
4423# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4424eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4425if test -n "$ac_maketemp"; then
4426  eval ac_cv_prog_make_${ac_make}_set=yes
4427else
4428  eval ac_cv_prog_make_${ac_make}_set=no
4429fi
4430rm -f conftest.make
4431fi
4432if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4433  echo "$as_me:$LINENO: result: yes" >&5
4434echo "${ECHO_T}yes" >&6
4435  SET_MAKE=
4436else
4437  echo "$as_me:$LINENO: result: no" >&5
4438echo "${ECHO_T}no" >&6
4439  SET_MAKE="MAKE=${MAKE-make}"
4440fi
4441
4442rm -rf .tst 2>/dev/null
4443mkdir .tst 2>/dev/null
4444if test -d .tst; then
4445  am__leading_dot=.
4446else
4447  am__leading_dot=_
4448fi
4449rmdir .tst 2>/dev/null
4450
4451DEPDIR="${am__leading_dot}deps"
4452
4453          ac_config_commands="$ac_config_commands depfiles"
4454
4455
4456am_make=${MAKE-make}
4457cat > confinc << 'END'
4458am__doit:
4459        @echo done
4460.PHONY: am__doit
4461END
4462# If we don't find an include directive, just comment out the code.
4463echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4464echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4465am__include="#"
4466am__quote=
4467_am_result=none
4468# First try GNU make style include.
4469echo "include confinc" > confmf
4470# We grep out `Entering directory' and `Leaving directory'
4471# messages which can occur if `w' ends up in MAKEFLAGS.
4472# In particular we don't look at `^make:' because GNU make might
4473# be invoked under some other name (usually "gmake"), in which
4474# case it prints its new name instead of `make'.
4475if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4476   am__include=include
4477   am__quote=
4478   _am_result=GNU
4479fi
4480# Now try BSD make style include.
4481if test "$am__include" = "#"; then
4482   echo '.include "confinc"' > confmf
4483   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4484      am__include=.include
4485      am__quote="\""
4486      _am_result=BSD
4487   fi
4488fi
4489
4490
4491echo "$as_me:$LINENO: result: $_am_result" >&5
4492echo "${ECHO_T}$_am_result" >&6
4493rm -f confinc confmf
4494
4495# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4496if test "${enable_dependency_tracking+set}" = set; then
4497  enableval="$enable_dependency_tracking"
4498
4499fi;
4500if test "x$enable_dependency_tracking" != xno; then
4501  am_depcomp="$ac_aux_dir/depcomp"
4502  AMDEPBACKSLASH='\'
4503fi
4504
4505
4506if test "x$enable_dependency_tracking" != xno; then
4507  AMDEP_TRUE=
4508  AMDEP_FALSE='#'
4509else
4510  AMDEP_TRUE='#'
4511  AMDEP_FALSE=
4512fi
4513
4514
4515
4516# test to see if srcdir already configured
4517if test "`cd $srcdir && pwd`" != "`pwd`" &&
4518   test -f $srcdir/config.status; then
4519  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4520echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4521   { (exit 1); exit 1; }; }
4522fi
4523
4524# test whether we have cygpath
4525if test -z "$CYGPATH_W"; then
4526  if (cygpath --version) >/dev/null 2>/dev/null; then
4527    CYGPATH_W='cygpath -w'
4528  else
4529    CYGPATH_W=echo
4530  fi
4531fi
4532
4533
4534# Define the identity of the package.
4535 PACKAGE='thirdpartyscip'
4536 VERSION='trunk'
4537
4538
4539cat >>confdefs.h <<_ACEOF
4540#define PACKAGE "$PACKAGE"
4541_ACEOF
4542
4543
4544cat >>confdefs.h <<_ACEOF
4545#define VERSION "$VERSION"
4546_ACEOF
4547
4548# Some tools Automake needs.
4549
4550ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4551
4552
4553AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4554
4555
4556AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4557
4558
4559AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4560
4561
4562MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4563
4564install_sh=${install_sh-"$am_aux_dir/install-sh"}
4565
4566# Installed binaries are usually stripped using `strip' when the user
4567# run `make install-strip'.  However `strip' might not be the right
4568# tool to use in cross-compilation environments, therefore Automake
4569# will honor the `STRIP' environment variable to overrule this program.
4570if test "$cross_compiling" != no; then
4571  if test -n "$ac_tool_prefix"; then
4572  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4573set dummy ${ac_tool_prefix}strip; ac_word=$2
4574echo "$as_me:$LINENO: checking for $ac_word" >&5
4575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4576if test "${ac_cv_prog_STRIP+set}" = set; then
4577  echo $ECHO_N "(cached) $ECHO_C" >&6
4578else
4579  if test -n "$STRIP"; then
4580  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4581else
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585  IFS=$as_save_IFS
4586  test -z "$as_dir" && as_dir=.
4587  for ac_exec_ext in '' $ac_executable_extensions; do
4588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591    break 2
4592  fi
4593done
4594done
4595
4596fi
4597fi
4598STRIP=$ac_cv_prog_STRIP
4599if test -n "$STRIP"; then
4600  echo "$as_me:$LINENO: result: $STRIP" >&5
4601echo "${ECHO_T}$STRIP" >&6
4602else
4603  echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6
4605fi
4606
4607fi
4608if test -z "$ac_cv_prog_STRIP"; then
4609  ac_ct_STRIP=$STRIP
4610  # Extract the first word of "strip", so it can be a program name with args.
4611set dummy strip; ac_word=$2
4612echo "$as_me:$LINENO: checking for $ac_word" >&5
4613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4614if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4615  echo $ECHO_N "(cached) $ECHO_C" >&6
4616else
4617  if test -n "$ac_ct_STRIP"; then
4618  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623  IFS=$as_save_IFS
4624  test -z "$as_dir" && as_dir=.
4625  for ac_exec_ext in '' $ac_executable_extensions; do
4626  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627    ac_cv_prog_ac_ct_STRIP="strip"
4628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629    break 2
4630  fi
4631done
4632done
4633
4634  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4635fi
4636fi
4637ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4638if test -n "$ac_ct_STRIP"; then
4639  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4640echo "${ECHO_T}$ac_ct_STRIP" >&6
4641else
4642  echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6
4644fi
4645
4646  STRIP=$ac_ct_STRIP
4647else
4648  STRIP="$ac_cv_prog_STRIP"
4649fi
4650
4651fi
4652INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4653
4654# We need awk for the "check" target.  The system "awk" is bad on
4655# some platforms.
4656# Always define AMTAR for backward compatibility.
4657
4658AMTAR=${AMTAR-"${am_missing_run}tar"}
4659
4660am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4661
4662
4663
4664
4665depcc="$CC"   am_compiler_list=
4666
4667echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4668echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4669if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4670  echo $ECHO_N "(cached) $ECHO_C" >&6
4671else
4672  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4673  # We make a subdir and do the tests there.  Otherwise we can end up
4674  # making bogus files that we don't know about and never remove.  For
4675  # instance it was reported that on HP-UX the gcc test will end up
4676  # making a dummy file named `D' -- because `-MD' means `put the output
4677  # in D'.
4678  mkdir conftest.dir
4679  # Copy depcomp to subdir because otherwise we won't find it if we're
4680  # using a relative directory.
4681  cp "$am_depcomp" conftest.dir
4682  cd conftest.dir
4683  # We will build objects and dependencies in a subdirectory because
4684  # it helps to detect inapplicable dependency modes.  For instance
4685  # both Tru64's cc and ICC support -MD to output dependencies as a
4686  # side effect of compilation, but ICC will put the dependencies in
4687  # the current directory while Tru64 will put them in the object
4688  # directory.
4689  mkdir sub
4690
4691  am_cv_CC_dependencies_compiler_type=none
4692  if test "$am_compiler_list" = ""; then
4693     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4694  fi
4695  for depmode in $am_compiler_list; do
4696    # Setup a source with many dependencies, because some compilers
4697    # like to wrap large dependency lists on column 80 (with \), and
4698    # we should not choose a depcomp mode which is confused by this.
4699    #
4700    # We need to recreate these files for each test, as the compiler may
4701    # overwrite some of them when testing with obscure command lines.
4702    # This happens at least with the AIX C compiler.
4703    : > sub/conftest.c
4704    for i in 1 2 3 4 5 6; do
4705      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4706      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4707      # Solaris 8's {/usr,}/bin/sh.
4708      touch sub/conftst$i.h
4709    done
4710    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4711
4712    case $depmode in
4713    nosideeffect)
4714      # after this tag, mechanisms are not by side-effect, so they'll
4715      # only be used when explicitly requested
4716      if test "x$enable_dependency_tracking" = xyes; then
4717        continue
4718      else
4719        break
4720      fi
4721      ;;
4722    none) break ;;
4723    esac
4724    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4725    # mode.  It turns out that the SunPro C++ compiler does not properly
4726    # handle `-M -o', and we need to detect this.
4727    if depmode=$depmode \
4728       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4729       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4730       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4731         >/dev/null 2>conftest.err &&
4732       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4733       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4734       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4735      # icc doesn't choke on unknown options, it will just issue warnings
4736      # or remarks (even with -Werror).  So we grep stderr for any message
4737      # that says an option was ignored or not supported.
4738      # When given -MP, icc 7.0 and 7.1 complain thusly:
4739      #   icc: Command line warning: ignoring option '-M'; no argument required
4740      # The diagnosis changed in icc 8.0:
4741      #   icc: Command line remark: option '-MP' not supported
4742      if (grep 'ignoring option' conftest.err ||
4743          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4744        am_cv_CC_dependencies_compiler_type=$depmode
4745        break
4746      fi
4747    fi
4748  done
4749
4750  cd ..
4751  rm -rf conftest.dir
4752else
4753  am_cv_CC_dependencies_compiler_type=none
4754fi
4755
4756fi
4757echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4758echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4759CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4760
4761
4762
4763if
4764  test "x$enable_dependency_tracking" != xno \
4765  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4766  am__fastdepCC_TRUE=
4767  am__fastdepCC_FALSE='#'
4768else
4769  am__fastdepCC_TRUE='#'
4770  am__fastdepCC_FALSE=
4771fi
4772
4773
4774depcc="$CXX"  am_compiler_list=
4775
4776echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4777echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4778if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4779  echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
4781  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4782  # We make a subdir and do the tests there.  Otherwise we can end up
4783  # making bogus files that we don't know about and never remove.  For
4784  # instance it was reported that on HP-UX the gcc test will end up
4785  # making a dummy file named `D' -- because `-MD' means `put the output
4786  # in D'.
4787  mkdir conftest.dir
4788  # Copy depcomp to subdir because otherwise we won't find it if we're
4789  # using a relative directory.
4790  cp "$am_depcomp" conftest.dir
4791  cd conftest.dir
4792  # We will build objects and dependencies in a subdirectory because
4793  # it helps to detect inapplicable dependency modes.  For instance
4794  # both Tru64's cc and ICC support -MD to output dependencies as a
4795  # side effect of compilation, but ICC will put the dependencies in
4796  # the current directory while Tru64 will put them in the object
4797  # directory.
4798  mkdir sub
4799
4800  am_cv_CXX_dependencies_compiler_type=none
4801  if test "$am_compiler_list" = ""; then
4802     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4803  fi
4804  for depmode in $am_compiler_list; do
4805    # Setup a source with many dependencies, because some compilers
4806    # like to wrap large dependency lists on column 80 (with \), and
4807    # we should not choose a depcomp mode which is confused by this.
4808    #
4809    # We need to recreate these files for each test, as the compiler may
4810    # overwrite some of them when testing with obscure command lines.
4811    # This happens at least with the AIX C compiler.
4812    : > sub/conftest.c
4813    for i in 1 2 3 4 5 6; do
4814      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4815      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4816      # Solaris 8's {/usr,}/bin/sh.
4817      touch sub/conftst$i.h
4818    done
4819    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4820
4821    case $depmode in
4822    nosideeffect)
4823      # after this tag, mechanisms are not by side-effect, so they'll
4824      # only be used when explicitly requested
4825      if test "x$enable_dependency_tracking" = xyes; then
4826        continue
4827      else
4828        break
4829      fi
4830      ;;
4831    none) break ;;
4832    esac
4833    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4834    # mode.  It turns out that the SunPro C++ compiler does not properly
4835    # handle `-M -o', and we need to detect this.
4836    if depmode=$depmode \
4837       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4838       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4839       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4840         >/dev/null 2>conftest.err &&
4841       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4842       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4843       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4844      # icc doesn't choke on unknown options, it will just issue warnings
4845      # or remarks (even with -Werror).  So we grep stderr for any message
4846      # that says an option was ignored or not supported.
4847      # When given -MP, icc 7.0 and 7.1 complain thusly:
4848      #   icc: Command line warning: ignoring option '-M'; no argument required
4849      # The diagnosis changed in icc 8.0:
4850      #   icc: Command line remark: option '-MP' not supported
4851      if (grep 'ignoring option' conftest.err ||
4852          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4853        am_cv_CXX_dependencies_compiler_type=$depmode
4854        break
4855      fi
4856    fi
4857  done
4858
4859  cd ..
4860  rm -rf conftest.dir
4861else
4862  am_cv_CXX_dependencies_compiler_type=none
4863fi
4864
4865fi
4866echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4867echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4868CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4869
4870
4871
4872if
4873  test "x$enable_dependency_tracking" != xno \
4874  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4875  am__fastdepCXX_TRUE=
4876  am__fastdepCXX_FALSE='#'
4877else
4878  am__fastdepCXX_TRUE='#'
4879  am__fastdepCXX_FALSE=
4880fi
4881
4882
4883
4884if test "x$CC" != xcc; then
4885  echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4886echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4887else
4888  echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4889echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4890fi
4891set dummy $CC; ac_cc=`echo $2 |
4892                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4893if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4894  echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896  cat >conftest.$ac_ext <<_ACEOF
4897/* confdefs.h.  */
4898_ACEOF
4899cat confdefs.h >>conftest.$ac_ext
4900cat >>conftest.$ac_ext <<_ACEOF
4901/* end confdefs.h.  */
4902
4903int
4904main ()
4905{
4906
4907  ;
4908  return 0;
4909}
4910_ACEOF
4911# Make sure it works both with $CC and with simple cc.
4912# We do the test twice because some compilers refuse to overwrite an
4913# existing .o file with -o, though they will create one.
4914ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4915if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916  (eval $ac_try) 2>&5
4917  ac_status=$?
4918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919  (exit $ac_status); } &&
4920   test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921  (eval $ac_try) 2>&5
4922  ac_status=$?
4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924  (exit $ac_status); };
4925then
4926  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4927  if test "x$CC" != xcc; then
4928    # Test first that cc exists at all.
4929    if { ac_try='cc -c conftest.$ac_ext >&5'
4930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931  (eval $ac_try) 2>&5
4932  ac_status=$?
4933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934  (exit $ac_status); }; }; then
4935      ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4936      if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937  (eval $ac_try) 2>&5
4938  ac_status=$?
4939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940  (exit $ac_status); } &&
4941         test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942  (eval $ac_try) 2>&5
4943  ac_status=$?
4944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945  (exit $ac_status); };
4946      then
4947        # cc works too.
4948        :
4949      else
4950        # cc exists but doesn't like -o.
4951        eval ac_cv_prog_cc_${ac_cc}_c_o=no
4952      fi
4953    fi
4954  fi
4955else
4956  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4957fi
4958rm -f conftest*
4959
4960fi
4961if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4962  echo "$as_me:$LINENO: result: yes" >&5
4963echo "${ECHO_T}yes" >&6
4964else
4965  echo "$as_me:$LINENO: result: no" >&5
4966echo "${ECHO_T}no" >&6
4967
4968cat >>confdefs.h <<\_ACEOF
4969#define NO_MINUS_C_MINUS_O 1
4970_ACEOF
4971
4972fi
4973
4974# FIXME: we rely on the cache variable name because
4975# there is no other way.
4976set dummy $CC
4977ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4978if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4979   # Losing compiler, so override with the script.
4980   # FIXME: It is wrong to rewrite CC.
4981   # But if we don't then we get into trouble of one sort or another.
4982   # A longer-term fix would be to have automake use am__CC in this case,
4983   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4984   CC="$am_aux_dir/compile $CC"
4985fi
4986
4987{
4988
4989
4990
4991# START
4992
4993# Test if force_shared has been set
4994if test "x" = xforce_shared; then
4995  if test x$enable_shared = xno; then
4996    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4997echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4998   { (exit 1); exit 1; }; }
4999  fi
5000  enable_shared=yes;
5001else
5002  # On Cygwin and AIX, building DLLs doesn't work
5003  case $build in
5004    *-cygwin*)
5005      coin_disable_shared=yes
5006      platform=Cygwin
5007    ;;
5008    *-aix*)
5009      coin_disable_shared=yes
5010      platform=AIX
5011    ;;
5012    *-mingw*)
5013      coin_disable_shared=yes
5014      platform="Msys"
5015#      case "$CXX" in
5016#        cl*)
5017#          coin_disable_shared=yes
5018#          platform="Msys with cl"
5019#      ;;
5020#      esac
5021    ;;
5022  esac
5023fi
5024if test x"$coin_disable_shared" = xyes; then
5025  if test x"$enable_shared" = xyes; then
5026    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5027echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5028  fi
5029  enable_shared=no
5030fi
5031# By default, we only want the shared objects to be compiled
5032# Check whether --enable-static or --disable-static was given.
5033if test "${enable_static+set}" = set; then
5034  enableval="$enable_static"
5035  p=${PACKAGE-default}
5036    case $enableval in
5037    yes) enable_static=yes ;;
5038    no) enable_static=no ;;
5039    *)
5040     enable_static=no
5041      # Look at the argument we got.  We use all the common list separators.
5042      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5043      for pkg in $enableval; do
5044        IFS="$lt_save_ifs"
5045        if test "X$pkg" = "X$p"; then
5046          enable_static=yes
5047        fi
5048      done
5049      IFS="$lt_save_ifs"
5050      ;;
5051    esac
5052else
5053  enable_static=no
5054fi;
5055
5056
5057
5058
5059# Initialize automake
5060echo "$as_me:$LINENO: checking for egrep" >&5
5061echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5062if test "${ac_cv_prog_egrep+set}" = set; then
5063  echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5066    then ac_cv_prog_egrep='grep -E'
5067    else ac_cv_prog_egrep='egrep'
5068    fi
5069fi
5070echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5071echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5072 EGREP=$ac_cv_prog_egrep
5073
5074
5075echo "$as_me:$LINENO: checking whether ln -s works" >&5
5076echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5077LN_S=$as_ln_s
5078if test "$LN_S" = "ln -s"; then
5079  echo "$as_me:$LINENO: result: yes" >&5
5080echo "${ECHO_T}yes" >&6
5081else
5082  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5083echo "${ECHO_T}no, using $LN_S" >&6
5084fi
5085
5086
5087
5088
5089# AC_MSG_NOTICE([Beginning automake initialisation.])
5090# Stuff for automake
5091# test to see if srcdir already configured
5092if test "`cd $srcdir && pwd`" != "`pwd`" &&
5093   test -f $srcdir/config.status; then
5094  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5095echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5096   { (exit 1); exit 1; }; }
5097fi
5098
5099# test whether we have cygpath
5100if test -z "$CYGPATH_W"; then
5101  if (cygpath --version) >/dev/null 2>/dev/null; then
5102    CYGPATH_W='cygpath -w'
5103  else
5104    CYGPATH_W=echo
5105  fi
5106fi
5107
5108
5109# Define the identity of the package.
5110 PACKAGE='thirdpartyscip'
5111 VERSION='trunk'
5112
5113
5114cat >>confdefs.h <<_ACEOF
5115#define PACKAGE "$PACKAGE"
5116_ACEOF
5117
5118
5119cat >>confdefs.h <<_ACEOF
5120#define VERSION "$VERSION"
5121_ACEOF
5122
5123# Some tools Automake needs.
5124
5125ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5126
5127
5128AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5129
5130
5131AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5132
5133
5134AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5135
5136
5137MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5138
5139install_sh=${install_sh-"$am_aux_dir/install-sh"}
5140
5141# Installed binaries are usually stripped using `strip' when the user
5142# run `make install-strip'.  However `strip' might not be the right
5143# tool to use in cross-compilation environments, therefore Automake
5144# will honor the `STRIP' environment variable to overrule this program.
5145if test "$cross_compiling" != no; then
5146  if test -n "$ac_tool_prefix"; then
5147  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5148set dummy ${ac_tool_prefix}strip; ac_word=$2
5149echo "$as_me:$LINENO: checking for $ac_word" >&5
5150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5151if test "${ac_cv_prog_STRIP+set}" = set; then
5152  echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154  if test -n "$STRIP"; then
5155  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160  IFS=$as_save_IFS
5161  test -z "$as_dir" && as_dir=.
5162  for ac_exec_ext in '' $ac_executable_extensions; do
5163  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166    break 2
5167  fi
5168done
5169done
5170
5171fi
5172fi
5173STRIP=$ac_cv_prog_STRIP
5174if test -n "$STRIP"; then
5175  echo "$as_me:$LINENO: result: $STRIP" >&5
5176echo "${ECHO_T}$STRIP" >&6
5177else
5178  echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
5180fi
5181
5182fi
5183if test -z "$ac_cv_prog_STRIP"; then
5184  ac_ct_STRIP=$STRIP
5185  # Extract the first word of "strip", so it can be a program name with args.
5186set dummy strip; ac_word=$2
5187echo "$as_me:$LINENO: checking for $ac_word" >&5
5188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5190  echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192  if test -n "$ac_ct_STRIP"; then
5193  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198  IFS=$as_save_IFS
5199  test -z "$as_dir" && as_dir=.
5200  for ac_exec_ext in '' $ac_executable_extensions; do
5201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202    ac_cv_prog_ac_ct_STRIP="strip"
5203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204    break 2
5205  fi
5206done
5207done
5208
5209  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5210fi
5211fi
5212ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5213if test -n "$ac_ct_STRIP"; then
5214  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5215echo "${ECHO_T}$ac_ct_STRIP" >&6
5216else
5217  echo "$as_me:$LINENO: result: no" >&5
5218echo "${ECHO_T}no" >&6
5219fi
5220
5221  STRIP=$ac_ct_STRIP
5222else
5223  STRIP="$ac_cv_prog_STRIP"
5224fi
5225
5226fi
5227INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5228
5229# We need awk for the "check" target.  The system "awk" is bad on
5230# some platforms.
5231# Always define AMTAR for backward compatibility.
5232
5233AMTAR=${AMTAR-"${am_missing_run}tar"}
5234
5235am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5236
5237
5238
5239
5240depcc="$CC"   am_compiler_list=
5241
5242echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5243echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5244if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5245  echo $ECHO_N "(cached) $ECHO_C" >&6
5246else
5247  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5248  # We make a subdir and do the tests there.  Otherwise we can end up
5249  # making bogus files that we don't know about and never remove.  For
5250  # instance it was reported that on HP-UX the gcc test will end up
5251  # making a dummy file named `D' -- because `-MD' means `put the output
5252  # in D'.
5253  mkdir conftest.dir
5254  # Copy depcomp to subdir because otherwise we won't find it if we're
5255  # using a relative directory.
5256  cp "$am_depcomp" conftest.dir
5257  cd conftest.dir
5258  # We will build objects and dependencies in a subdirectory because
5259  # it helps to detect inapplicable dependency modes.  For instance
5260  # both Tru64's cc and ICC support -MD to output dependencies as a
5261  # side effect of compilation, but ICC will put the dependencies in
5262  # the current directory while Tru64 will put them in the object
5263  # directory.
5264  mkdir sub
5265
5266  am_cv_CC_dependencies_compiler_type=none
5267  if test "$am_compiler_list" = ""; then
5268     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5269  fi
5270  for depmode in $am_compiler_list; do
5271    # Setup a source with many dependencies, because some compilers
5272    # like to wrap large dependency lists on column 80 (with \), and
5273    # we should not choose a depcomp mode which is confused by this.
5274    #
5275    # We need to recreate these files for each test, as the compiler may
5276    # overwrite some of them when testing with obscure command lines.
5277    # This happens at least with the AIX C compiler.
5278    : > sub/conftest.c
5279    for i in 1 2 3 4 5 6; do
5280      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5281      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5282      # Solaris 8's {/usr,}/bin/sh.
5283      touch sub/conftst$i.h
5284    done
5285    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5286
5287    case $depmode in
5288    nosideeffect)
5289      # after this tag, mechanisms are not by side-effect, so they'll
5290      # only be used when explicitly requested
5291      if test "x$enable_dependency_tracking" = xyes; then
5292        continue
5293      else
5294        break
5295      fi
5296      ;;
5297    none) break ;;
5298    esac
5299    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5300    # mode.  It turns out that the SunPro C++ compiler does not properly
5301    # handle `-M -o', and we need to detect this.
5302    if depmode=$depmode \
5303       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5304       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5305       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5306         >/dev/null 2>conftest.err &&
5307       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5308       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5309       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5310      # icc doesn't choke on unknown options, it will just issue warnings
5311      # or remarks (even with -Werror).  So we grep stderr for any message
5312      # that says an option was ignored or not supported.
5313      # When given -MP, icc 7.0 and 7.1 complain thusly:
5314      #   icc: Command line warning: ignoring option '-M'; no argument required
5315      # The diagnosis changed in icc 8.0:
5316      #   icc: Command line remark: option '-MP' not supported
5317      if (grep 'ignoring option' conftest.err ||
5318          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5319        am_cv_CC_dependencies_compiler_type=$depmode
5320        break
5321      fi
5322    fi
5323  done
5324
5325  cd ..
5326  rm -rf conftest.dir
5327else
5328  am_cv_CC_dependencies_compiler_type=none
5329fi
5330
5331fi
5332echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5333echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5334CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5335
5336
5337
5338if
5339  test "x$enable_dependency_tracking" != xno \
5340  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5341  am__fastdepCC_TRUE=
5342  am__fastdepCC_FALSE='#'
5343else
5344  am__fastdepCC_TRUE='#'
5345  am__fastdepCC_FALSE=
5346fi
5347
5348
5349depcc="$CXX"  am_compiler_list=
5350
5351echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5352echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5353if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5354  echo $ECHO_N "(cached) $ECHO_C" >&6
5355else
5356  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5357  # We make a subdir and do the tests there.  Otherwise we can end up
5358  # making bogus files that we don't know about and never remove.  For
5359  # instance it was reported that on HP-UX the gcc test will end up
5360  # making a dummy file named `D' -- because `-MD' means `put the output
5361  # in D'.
5362  mkdir conftest.dir
5363  # Copy depcomp to subdir because otherwise we won't find it if we're
5364  # using a relative directory.
5365  cp "$am_depcomp" conftest.dir
5366  cd conftest.dir
5367  # We will build objects and dependencies in a subdirectory because
5368  # it helps to detect inapplicable dependency modes.  For instance
5369  # both Tru64's cc and ICC support -MD to output dependencies as a
5370  # side effect of compilation, but ICC will put the dependencies in
5371  # the current directory while Tru64 will put them in the object
5372  # directory.
5373  mkdir sub
5374
5375  am_cv_CXX_dependencies_compiler_type=none
5376  if test "$am_compiler_list" = ""; then
5377     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5378  fi
5379  for depmode in $am_compiler_list; do
5380    # Setup a source with many dependencies, because some compilers
5381    # like to wrap large dependency lists on column 80 (with \), and
5382    # we should not choose a depcomp mode which is confused by this.
5383    #
5384    # We need to recreate these files for each test, as the compiler may
5385    # overwrite some of them when testing with obscure command lines.
5386    # This happens at least with the AIX C compiler.
5387    : > sub/conftest.c
5388    for i in 1 2 3 4 5 6; do
5389      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5390      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5391      # Solaris 8's {/usr,}/bin/sh.
5392      touch sub/conftst$i.h
5393    done
5394    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5395
5396    case $depmode in
5397    nosideeffect)
5398      # after this tag, mechanisms are not by side-effect, so they'll
5399      # only be used when explicitly requested
5400      if test "x$enable_dependency_tracking" = xyes; then
5401        continue
5402      else
5403        break
5404      fi
5405      ;;
5406    none) break ;;
5407    esac
5408    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5409    # mode.  It turns out that the SunPro C++ compiler does not properly
5410    # handle `-M -o', and we need to detect this.
5411    if depmode=$depmode \
5412       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5413       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5414       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5415         >/dev/null 2>conftest.err &&
5416       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5417       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5418       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5419      # icc doesn't choke on unknown options, it will just issue warnings
5420      # or remarks (even with -Werror).  So we grep stderr for any message
5421      # that says an option was ignored or not supported.
5422      # When given -MP, icc 7.0 and 7.1 complain thusly:
5423      #   icc: Command line warning: ignoring option '-M'; no argument required
5424      # The diagnosis changed in icc 8.0:
5425      #   icc: Command line remark: option '-MP' not supported
5426      if (grep 'ignoring option' conftest.err ||
5427          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5428        am_cv_CXX_dependencies_compiler_type=$depmode
5429        break
5430      fi
5431    fi
5432  done
5433
5434  cd ..
5435  rm -rf conftest.dir
5436else
5437  am_cv_CXX_dependencies_compiler_type=none
5438fi
5439
5440fi
5441echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5442echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5443CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5444
5445
5446
5447if
5448  test "x$enable_dependency_tracking" != xno \
5449  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5450  am__fastdepCXX_TRUE=
5451  am__fastdepCXX_FALSE='#'
5452else
5453  am__fastdepCXX_TRUE='#'
5454  am__fastdepCXX_FALSE=
5455fi
5456
5457
5458
5459echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5460echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5461    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5462if test "${enable_maintainer_mode+set}" = set; then
5463  enableval="$enable_maintainer_mode"
5464  USE_MAINTAINER_MODE=$enableval
5465else
5466  USE_MAINTAINER_MODE=no
5467fi;
5468  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5469echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5470
5471
5472if test $USE_MAINTAINER_MODE = yes; then
5473  MAINTAINER_MODE_TRUE=
5474  MAINTAINER_MODE_FALSE='#'
5475else
5476  MAINTAINER_MODE_TRUE='#'
5477  MAINTAINER_MODE_FALSE=
5478fi
5479
5480  MAINT=$MAINTAINER_MODE_TRUE
5481
5482
5483
5484coin_have_externals=no
5485if test "$enable_maintainer_mode" = yes; then
5486
5487  # If maintainer mode is chosen, we make sure that the correct versions
5488  # of the tools are used, and that we know where libtool.m4 is (to
5489  # recreate acinclude.m4)
5490
5491
5492  LIBTOOLM4=
5493  # Normally, $HOME
5494  AUTOTOOLS_DFLT=$HOME
5495
5496  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5497echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5498if test "${ac_cv_use_correct_autotools+set}" = set; then
5499  echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501  ac_cv_use_correct_autotools=check
5502fi
5503echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5504echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5505
5506  if test $ac_cv_use_correct_autotools = check; then
5507    ac_cv_use_correct_autotools=yes
5508    # Check if we have autoconf
5509    # Extract the first word of "autoconf", so it can be a program name with args.
5510set dummy autoconf; ac_word=$2
5511echo "$as_me:$LINENO: checking for $ac_word" >&5
5512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5513if test "${ac_cv_prog_have_autoconf+set}" = set; then
5514  echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516  if test -n "$have_autoconf"; then
5517  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5518else
5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520for as_dir in $PATH
5521do
5522  IFS=$as_save_IFS
5523  test -z "$as_dir" && as_dir=.
5524  for ac_exec_ext in '' $ac_executable_extensions; do
5525  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526    ac_cv_prog_have_autoconf="yes"
5527    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5528    break 2
5529  fi
5530done
5531done
5532
5533  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5534fi
5535fi
5536have_autoconf=$ac_cv_prog_have_autoconf
5537if test -n "$have_autoconf"; then
5538  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5539echo "${ECHO_T}$have_autoconf" >&6
5540else
5541  echo "$as_me:$LINENO: result: no" >&5
5542echo "${ECHO_T}no" >&6
5543fi
5544
5545    if test $have_autoconf = no; then
5546      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5547echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5548   { (exit 1); exit 1; }; }
5549    fi
5550
5551    # Check whether autoconf is the correct version
5552    correct_version='2.59'
5553    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5554    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5555echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5556    autoconf --version > confauto.out 2>&1
5557    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5558      echo "$as_me:$LINENO: result: yes" >&5
5559echo "${ECHO_T}yes" >&6
5560    else
5561      rm -f confauto.out
5562      echo "$as_me:$LINENO: result: no" >&5
5563echo "${ECHO_T}no" >&6
5564      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5565echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5566   { (exit 1); exit 1; }; }
5567    fi
5568    rm -f confauto.out
5569
5570    # Check if the executable autoconf is picked up from the correct location
5571    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5572echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5573    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5574    autoconf_dir=`cd $autoconf_dir; pwd`
5575    if test x$AUTOTOOLS_DIR = x; then
5576      want_dir=$AUTOTOOLS_DFLT/bin
5577    else
5578      want_dir=$AUTOTOOLS_DIR/bin
5579    fi
5580    if test $autoconf_dir = `cd $want_dir; pwd`; then
5581      echo "$as_me:$LINENO: result: yes" >&5
5582echo "${ECHO_T}yes" >&6
5583    else
5584      rm -f confauto.out
5585      echo "$as_me:$LINENO: result: no" >&5
5586echo "${ECHO_T}no" >&6
5587      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5588echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5589   { (exit 1); exit 1; }; }
5590    fi
5591
5592    # Check if we have automake
5593    # Extract the first word of "automake", so it can be a program name with args.
5594set dummy automake; ac_word=$2
5595echo "$as_me:$LINENO: checking for $ac_word" >&5
5596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5597if test "${ac_cv_prog_have_automake+set}" = set; then
5598  echo $ECHO_N "(cached) $ECHO_C" >&6
5599else
5600  if test -n "$have_automake"; then
5601  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5602else
5603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604for as_dir in $PATH
5605do
5606  IFS=$as_save_IFS
5607  test -z "$as_dir" && as_dir=.
5608  for ac_exec_ext in '' $ac_executable_extensions; do
5609  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5610    ac_cv_prog_have_automake="yes"
5611    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5612    break 2
5613  fi
5614done
5615done
5616
5617  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5618fi
5619fi
5620have_automake=$ac_cv_prog_have_automake
5621if test -n "$have_automake"; then
5622  echo "$as_me:$LINENO: result: $have_automake" >&5
5623echo "${ECHO_T}$have_automake" >&6
5624else
5625  echo "$as_me:$LINENO: result: no" >&5
5626echo "${ECHO_T}no" >&6
5627fi
5628
5629    if test $have_automake = no; then
5630      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5631echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5632   { (exit 1); exit 1; }; }
5633    fi
5634
5635    # Check whether automake is the correct version
5636    correct_version='1.9.6'
5637    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5638    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5639echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5640    automake --version > confauto.out 2>&1
5641    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5642      echo "$as_me:$LINENO: result: yes" >&5
5643echo "${ECHO_T}yes" >&6
5644    else
5645      rm -f confauto.out
5646      echo "$as_me:$LINENO: result: no" >&5
5647echo "${ECHO_T}no" >&6
5648      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5649echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5650   { (exit 1); exit 1; }; }
5651    fi
5652    rm -f confauto.out
5653
5654    # Check if the executable automake is picked up from the correct location
5655    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5656echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5657    automake_dir=`which automake | sed -e 's=/automake=='`
5658    automake_dir=`cd $automake_dir; pwd`
5659    if test x$AUTOTOOLS_DIR = x; then
5660      want_dir=$AUTOTOOLS_DFLT/bin
5661    else
5662      want_dir=$AUTOTOOLS_DIR/bin
5663    fi
5664    if test $automake_dir = `cd $want_dir; pwd`; then
5665      echo "$as_me:$LINENO: result: yes" >&5
5666echo "${ECHO_T}yes" >&6
5667    else
5668      rm -f confauto.out
5669      echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6
5671      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5672echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5673   { (exit 1); exit 1; }; }
5674    fi
5675
5676    # Check if this is the correct version of libtool (with escaped dots)
5677    if test x$AUTOTOOLS_DIR = x; then
5678      want_dir=$AUTOTOOLS_DFLT/share
5679    else
5680      want_dir=$AUTOTOOLS_DIR/share
5681    fi
5682    correct_version='1.5.22'
5683    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5684    if test -r $want_dir/libtool/ltmain.sh; then
5685  have_ltmain=yes
5686  :
5687else
5688  have_ltmain=no
5689  :
5690fi
5691
5692    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5693echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5694    if test $have_ltmain = yes; then
5695    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5696        echo "$as_me:$LINENO: result: yes" >&5
5697echo "${ECHO_T}yes" >&6
5698      else
5699        echo "$as_me:$LINENO: result: no" >&5
5700echo "${ECHO_T}no" >&6
5701        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5702echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5703   { (exit 1); exit 1; }; }
5704      fi
5705    else
5706      echo "$as_me:$LINENO: result: no" >&5
5707echo "${ECHO_T}no" >&6
5708      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5709echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5710   { (exit 1); exit 1; }; }
5711    fi
5712  fi
5713
5714  # Check if we can find the libtool file
5715  if test x$AUTOTOOLS_DIR = x; then
5716    want_dir=$AUTOTOOLS_DFLT/share
5717  else
5718    want_dir=$AUTOTOOLS_DIR/share
5719  fi
5720  if test -r $want_dir/aclocal/libtool.m4; then
5721  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5722  :
5723else
5724  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5725echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5726   { (exit 1); exit 1; }; }
5727  :
5728fi
5729
5730
5731  # Check if we have an Dependencies file
5732  if test -r $srcdir/Dependencies; then
5733    coin_have_externals=yes
5734  fi
5735  # Check if subversion is installed and understands https
5736  # Extract the first word of "svn", so it can be a program name with args.
5737set dummy svn; ac_word=$2
5738echo "$as_me:$LINENO: checking for $ac_word" >&5
5739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5740if test "${ac_cv_prog_have_svn+set}" = set; then
5741  echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
5743  if test -n "$have_svn"; then
5744  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5745else
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749  IFS=$as_save_IFS
5750  test -z "$as_dir" && as_dir=.
5751  for ac_exec_ext in '' $ac_executable_extensions; do
5752  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753    ac_cv_prog_have_svn="yes"
5754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755    break 2
5756  fi
5757done
5758done
5759
5760  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5761fi
5762fi
5763have_svn=$ac_cv_prog_have_svn
5764if test -n "$have_svn"; then
5765  echo "$as_me:$LINENO: result: $have_svn" >&5
5766echo "${ECHO_T}$have_svn" >&6
5767else
5768  echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770fi
5771
5772  if test x$have_svn = xyes; then
5773    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5774echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5775if test "${ac_cv_svn_understands_https+set}" = set; then
5776  echo $ECHO_N "(cached) $ECHO_C" >&6
5777else
5778  svn --version > confauto.out 2>&1
5779                    if $EGREP https confauto.out >/dev/null 2>&1; then
5780                      ac_cv_svn_understands_https=yes
5781                    else
5782                      ac_cv_svn_understands_https=no
5783                      have_svn=no
5784                      ac_cv_prog_have_svn=no
5785                    fi
5786                    rm -f confauto.out
5787fi
5788echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5789echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5790  fi
5791
5792  # Find the location of the BuildTools directory
5793  BUILDTOOLSDIR=
5794  if test -r $srcdir/BuildTools/coin.m4; then
5795    BUILDTOOLSDIR=$srcdir/BuildTools
5796  else
5797    if test -r $srcdir/../BuildTools/coin.m4; then
5798      BUILDTOOLSDIR=$srcdir/../BuildTools
5799    else
5800      if test -r $srcdir/../../BuildTools/coin.m4; then
5801        BUILDTOOLSDIR=$srcdir/../../BuildTools
5802      else
5803        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5804echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5805   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5806      fi
5807    fi
5808  fi
5809
5810
5811  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5812  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5813    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5814  fi
5815
5816  # The following variable is set to the name of the directory where
5817  # the autotool scripts are located
5818
5819  AUX_DIR=$ac_aux_dir
5820fi
5821
5822# helpful variable for the base directory of this package
5823abs_source_dir=`cd $srcdir; pwd`
5824
5825
5826# Stuff for example Makefiles
5827if test x$prefix = xNONE; then
5828  full_prefix=$ac_default_prefix
5829else
5830  full_prefix=$prefix
5831fi
5832full_prefix=`cd $full_prefix ; pwd`
5833
5834abs_lib_dir=$full_prefix/lib
5835
5836abs_include_dir=$full_prefix/include
5837
5838abs_bin_dir=$full_prefix/bin
5839
5840
5841
5842if test $coin_have_externals = yes && test x$have_svn = xyes; then
5843  HAVE_EXTERNALS_TRUE=
5844  HAVE_EXTERNALS_FALSE='#'
5845else
5846  HAVE_EXTERNALS_TRUE='#'
5847  HAVE_EXTERNALS_FALSE=
5848fi
5849
5850
5851# AC_MSG_NOTICE([End automake initialisation.])
5852
5853
5854
5855LIBTOOL=
5856if test -r ../libtool; then
5857  coin_config_dir=..
5858  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5859fi
5860if test "x$LIBTOOL" = x; then
5861  if test -r ../../libtool; then
5862    coin_config_dir=../..
5863    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5864  fi
5865fi
5866
5867if test "x$LIBTOOL" = x; then
5868# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5869  # Stuff for libtool
5870  # Check whether --enable-shared or --disable-shared was given.
5871if test "${enable_shared+set}" = set; then
5872  enableval="$enable_shared"
5873  p=${PACKAGE-default}
5874    case $enableval in
5875    yes) enable_shared=yes ;;
5876    no) enable_shared=no ;;
5877    *)
5878      enable_shared=no
5879      # Look at the argument we got.  We use all the common list separators.
5880      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5881      for pkg in $enableval; do
5882        IFS="$lt_save_ifs"
5883        if test "X$pkg" = "X$p"; then
5884          enable_shared=yes
5885        fi
5886      done
5887      IFS="$lt_save_ifs"
5888      ;;
5889    esac
5890else
5891  enable_shared=yes
5892fi;
5893
5894# Check whether --enable-fast-install or --disable-fast-install was given.
5895if test "${enable_fast_install+set}" = set; then
5896  enableval="$enable_fast_install"
5897  p=${PACKAGE-default}
5898    case $enableval in
5899    yes) enable_fast_install=yes ;;
5900    no) enable_fast_install=no ;;
5901    *)
5902      enable_fast_install=no
5903      # Look at the argument we got.  We use all the common list separators.
5904      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5905      for pkg in $enableval; do
5906        IFS="$lt_save_ifs"
5907        if test "X$pkg" = "X$p"; then
5908          enable_fast_install=yes
5909        fi
5910      done
5911      IFS="$lt_save_ifs"
5912      ;;
5913    esac
5914else
5915  enable_fast_install=yes
5916fi;
5917
5918echo "$as_me:$LINENO: checking host system type" >&5
5919echo $ECHO_N "checking host system type... $ECHO_C" >&6
5920if test "${ac_cv_host+set}" = set; then
5921  echo $ECHO_N "(cached) $ECHO_C" >&6
5922else
5923  ac_cv_host_alias=$host_alias
5924test -z "$ac_cv_host_alias" &&
5925  ac_cv_host_alias=$ac_cv_build_alias
5926ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5927  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5928echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5929   { (exit 1); exit 1; }; }
5930
5931fi
5932echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5933echo "${ECHO_T}$ac_cv_host" >&6
5934host=$ac_cv_host
5935host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5936host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5937host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5938
5939
5940echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5941echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5942if test "${lt_cv_path_SED+set}" = set; then
5943  echo $ECHO_N "(cached) $ECHO_C" >&6
5944else
5945  # Loop through the user's path and test for sed and gsed.
5946# Then use that list of sed's as ones to test for truncation.
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950  IFS=$as_save_IFS
5951  test -z "$as_dir" && as_dir=.
5952  for lt_ac_prog in sed gsed; do
5953    for ac_exec_ext in '' $ac_executable_extensions; do
5954      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5955        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5956      fi
5957    done
5958  done
5959done
5960lt_ac_max=0
5961lt_ac_count=0
5962# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5963# along with /bin/sed that truncates output.
5964for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5965  test ! -f $lt_ac_sed && continue
5966  cat /dev/null > conftest.in
5967  lt_ac_count=0
5968  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5969  # Check for GNU sed and select it if it is found.
5970  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5971    lt_cv_path_SED=$lt_ac_sed
5972    break
5973  fi
5974  while true; do
5975    cat conftest.in conftest.in >conftest.tmp
5976    mv conftest.tmp conftest.in
5977    cp conftest.in conftest.nl
5978    echo >>conftest.nl
5979    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5980    cmp -s conftest.out conftest.nl || break
5981    # 10000 chars as input seems more than enough
5982    test $lt_ac_count -gt 10 && break
5983    lt_ac_count=`expr $lt_ac_count + 1`
5984    if test $lt_ac_count -gt $lt_ac_max; then
5985      lt_ac_max=$lt_ac_count
5986      lt_cv_path_SED=$lt_ac_sed
5987    fi
5988  done
5989done
5990
5991fi
5992
5993SED=$lt_cv_path_SED
5994echo "$as_me:$LINENO: result: $SED" >&5
5995echo "${ECHO_T}$SED" >&6
5996
5997
5998# Check whether --with-gnu-ld or --without-gnu-ld was given.
5999if test "${with_gnu_ld+set}" = set; then
6000  withval="$with_gnu_ld"
6001  test "$withval" = no || with_gnu_ld=yes
6002else
6003  with_gnu_ld=no
6004fi;
6005ac_prog=ld
6006if test "$GCC" = yes; then
6007  # Check if gcc -print-prog-name=ld gives a path.
6008  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6009echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6010  case $host in
6011  *-*-mingw*)
6012    # gcc leaves a trailing carriage return which upsets mingw
6013    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6014  *)
6015    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6016  esac
6017  case $ac_prog in
6018    # Accept absolute paths.
6019    [\\/]* | ?:[\\/]*)
6020      re_direlt='/[^/][^/]*/\.\./'
6021      # Canonicalize the pathname of ld
6022      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6023      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6024        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6025      done
6026      test -z "$LD" && LD="$ac_prog"
6027      ;;
6028  "")
6029    # If it fails, then pretend we aren't using GCC.
6030    ac_prog=ld
6031    ;;
6032  *)
6033    # If it is relative, then search for the first ld in PATH.
6034    with_gnu_ld=unknown
6035    ;;
6036  esac
6037elif test "$with_gnu_ld" = yes; then
6038  echo "$as_me:$LINENO: checking for GNU ld" >&5
6039echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6040else
6041  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6042echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6043fi
6044if test "${lt_cv_path_LD+set}" = set; then
6045  echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
6047  if test -z "$LD"; then
6048  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6049  for ac_dir in $PATH; do
6050    IFS="$lt_save_ifs"
6051    test -z "$ac_dir" && ac_dir=.
6052    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6053      lt_cv_path_LD="$ac_dir/$ac_prog"
6054      # Check to see if the program is GNU ld.  I'd rather use --version,
6055      # but apparently some variants of GNU ld only accept -v.
6056      # Break only if it was the GNU/non-GNU ld that we prefer.
6057      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6058      *GNU* | *'with BFD'*)
6059        test "$with_gnu_ld" != no && break
6060        ;;
6061      *)
6062        test "$with_gnu_ld" != yes && break
6063        ;;
6064      esac
6065    fi
6066  done
6067  IFS="$lt_save_ifs"
6068else
6069  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6070fi
6071fi
6072
6073LD="$lt_cv_path_LD"
6074if test -n "$LD"; then
6075  echo "$as_me:$LINENO: result: $LD" >&5
6076echo "${ECHO_T}$LD" >&6
6077else
6078  echo "$as_me:$LINENO: result: no" >&5
6079echo "${ECHO_T}no" >&6
6080fi
6081test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6082echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6083   { (exit 1); exit 1; }; }
6084echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6085echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6086if test "${lt_cv_prog_gnu_ld+set}" = set; then
6087  echo $ECHO_N "(cached) $ECHO_C" >&6
6088else
6089  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6090case `$LD -v 2>&1 </dev/null` in
6091*GNU* | *'with BFD'*)
6092  lt_cv_prog_gnu_ld=yes
6093  ;;
6094*)
6095  lt_cv_prog_gnu_ld=no
6096  ;;
6097esac
6098fi
6099echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6100echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6101with_gnu_ld=$lt_cv_prog_gnu_ld
6102
6103
6104echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6105echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6106if test "${lt_cv_ld_reload_flag+set}" = set; then
6107  echo $ECHO_N "(cached) $ECHO_C" >&6
6108else
6109  lt_cv_ld_reload_flag='-r'
6110fi
6111echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6112echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6113reload_flag=$lt_cv_ld_reload_flag
6114case $reload_flag in
6115"" | " "*) ;;
6116*) reload_flag=" $reload_flag" ;;
6117esac
6118reload_cmds='$LD$reload_flag -o $output$reload_objs'
6119case $host_os in
6120  darwin*)
6121    if test "$GCC" = yes; then
6122      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6123    else
6124      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6125    fi
6126    ;;
6127esac
6128
6129echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6130echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6131if test "${lt_cv_path_NM+set}" = set; then
6132  echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134  if test -n "$NM"; then
6135  # Let the user override the test.
6136  lt_cv_path_NM="$NM"
6137else
6138  lt_nm_to_check="${ac_tool_prefix}nm"
6139  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6140    lt_nm_to_check="$lt_nm_to_check nm"
6141  fi
6142  for lt_tmp_nm in $lt_nm_to_check; do
6143    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6144    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6145      IFS="$lt_save_ifs"
6146      test -z "$ac_dir" && ac_dir=.
6147      tmp_nm="$ac_dir/$lt_tmp_nm"
6148      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6149        # Check to see if the nm accepts a BSD-compat flag.
6150        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6151        #   nm: unknown option "B" ignored
6152        # Tru64's nm complains that /dev/null is an invalid object file
6153        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6154        */dev/null* | *'Invalid file or object type'*)
6155          lt_cv_path_NM="$tmp_nm -B"
6156          break
6157          ;;
6158        *)
6159          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6160          */dev/null*)
6161            lt_cv_path_NM="$tmp_nm -p"
6162            break
6163            ;;
6164          *)
6165            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6166            continue # so that we can try to find one that supports BSD flags
6167            ;;
6168          esac
6169          ;;
6170        esac
6171      fi
6172    done
6173    IFS="$lt_save_ifs"
6174  done
6175  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6176fi
6177fi
6178echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6179echo "${ECHO_T}$lt_cv_path_NM" >&6
6180NM="$lt_cv_path_NM"
6181
6182echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6183echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6184if test "${lt_cv_deplibs_check_method+set}" = set; then
6185  echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187  lt_cv_file_magic_cmd='$MAGIC_CMD'
6188lt_cv_file_magic_test_file=
6189lt_cv_deplibs_check_method='unknown'
6190# Need to set the preceding variable on all platforms that support
6191# interlibrary dependencies.
6192# 'none' -- dependencies not supported.
6193# `unknown' -- same as none, but documents that we really don't know.
6194# 'pass_all' -- all dependencies passed with no checks.
6195# 'test_compile' -- check by making test program.
6196# 'file_magic [[regex]]' -- check by looking for files in library path
6197# which responds to the $file_magic_cmd with a given extended regex.
6198# If you have `file' or equivalent on your system and you're not sure
6199# whether `pass_all' will *always* work, you probably want this one.
6200
6201case $host_os in
6202aix4* | aix5*)
6203  lt_cv_deplibs_check_method=pass_all
6204  ;;
6205
6206beos*)
6207  lt_cv_deplibs_check_method=pass_all
6208  ;;
6209
6210bsdi[45]*)
6211  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6212  lt_cv_file_magic_cmd='/usr/bin/file -L'
6213  lt_cv_file_magic_test_file=/shlib/libc.so
6214  ;;
6215
6216cygwin*)
6217  # func_win32_libid is a shell function defined in ltmain.sh
6218  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6219  lt_cv_file_magic_cmd='func_win32_libid'
6220  ;;
6221
6222mingw* | pw32*)
6223  # Base MSYS/MinGW do not provide the 'file' command needed by
6224  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6225  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6226  lt_cv_file_magic_cmd='$OBJDUMP -f'
6227  ;;
6228
6229darwin* | rhapsody*)
6230  lt_cv_deplibs_check_method=pass_all
6231  ;;
6232
6233freebsd* | kfreebsd*-gnu | dragonfly*)
6234  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6235    case $host_cpu in
6236    i*86 )
6237      # Not sure whether the presence of OpenBSD here was a mistake.
6238      # Let's accept both of them until this is cleared up.
6239      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6240      lt_cv_file_magic_cmd=/usr/bin/file
6241      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6242      ;;
6243    esac
6244  else
6245    lt_cv_deplibs_check_method=pass_all
6246  fi
6247  ;;
6248
6249gnu*)
6250  lt_cv_deplibs_check_method=pass_all
6251  ;;
6252
6253hpux10.20* | hpux11*)
6254  lt_cv_file_magic_cmd=/usr/bin/file
6255  case $host_cpu in
6256  ia64*)
6257    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6258    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6259    ;;
6260  hppa*64*)
6261    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]'
6262    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6263    ;;
6264  *)
6265    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6266    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6267    ;;
6268  esac
6269  ;;
6270
6271interix3*)
6272  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6273  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6274  ;;
6275
6276irix5* | irix6* | nonstopux*)
6277  case $LD in
6278  *-32|*"-32 ") libmagic=32-bit;;
6279  *-n32|*"-n32 ") libmagic=N32;;
6280  *-64|*"-64 ") libmagic=64-bit;;
6281  *) libmagic=never-match;;
6282  esac
6283  lt_cv_deplibs_check_method=pass_all
6284  ;;
6285
6286# This must be Linux ELF.
6287linux*)
6288  lt_cv_deplibs_check_method=pass_all
6289  ;;
6290
6291netbsd*)
6292  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6293    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6294  else
6295    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6296  fi
6297  ;;
6298
6299newos6*)
6300  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6301  lt_cv_file_magic_cmd=/usr/bin/file
6302  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6303  ;;
6304
6305nto-qnx*)
6306  lt_cv_deplibs_check_method=unknown
6307  ;;
6308
6309openbsd*)
6310  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6311    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6312  else
6313    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6314  fi
6315  ;;
6316
6317osf3* | osf4* | osf5*)
6318  lt_cv_deplibs_check_method=pass_all
6319  ;;
6320
6321solaris*)
6322  lt_cv_deplibs_check_method=pass_all
6323  ;;
6324
6325sysv4 | sysv4.3*)
6326  case $host_vendor in
6327  motorola)
6328    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]'
6329    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6330    ;;
6331  ncr)
6332    lt_cv_deplibs_check_method=pass_all
6333    ;;
6334  sequent)
6335    lt_cv_file_magic_cmd='/bin/file'
6336    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6337    ;;
6338  sni)
6339    lt_cv_file_magic_cmd='/bin/file'
6340    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6341    lt_cv_file_magic_test_file=/lib/libc.so
6342    ;;
6343  siemens)
6344    lt_cv_deplibs_check_method=pass_all
6345    ;;
6346  pc)
6347    lt_cv_deplibs_check_method=pass_all
6348    ;;
6349  esac
6350  ;;
6351
6352sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6353  lt_cv_deplibs_check_method=pass_all
6354  ;;
6355esac
6356
6357fi
6358echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6359echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6360file_magic_cmd=$lt_cv_file_magic_cmd
6361deplibs_check_method=$lt_cv_deplibs_check_method
6362test -z "$deplibs_check_method" && deplibs_check_method=unknown
6363
6364
6365
6366
6367# If no C compiler was specified, use CC.
6368LTCC=${LTCC-"$CC"}
6369
6370# If no C compiler flags were specified, use CFLAGS.
6371LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6372
6373# Allow CC to be a program name with arguments.
6374compiler=$CC
6375
6376# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6377if test "${enable_libtool_lock+set}" = set; then
6378  enableval="$enable_libtool_lock"
6379
6380fi;
6381test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6382
6383# Some flags need to be propagated to the compiler or linker for good
6384# libtool support.
6385case $host in
6386ia64-*-hpux*)
6387  # Find out which ABI we are using.
6388  echo 'int i;' > conftest.$ac_ext
6389  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390  (eval $ac_compile) 2>&5
6391  ac_status=$?
6392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393  (exit $ac_status); }; then
6394    case `/usr/bin/file conftest.$ac_objext` in
6395    *ELF-32*)
6396      HPUX_IA64_MODE="32"
6397      ;;
6398    *ELF-64*)
6399      HPUX_IA64_MODE="64"
6400      ;;
6401    esac
6402  fi
6403  rm -rf conftest*
6404  ;;
6405*-*-irix6*)
6406  # Find out which ABI we are using.
6407  echo '#line 6407 "configure"' > conftest.$ac_ext
6408  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409  (eval $ac_compile) 2>&5
6410  ac_status=$?
6411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412  (exit $ac_status); }; then
6413   if test "$lt_cv_prog_gnu_ld" = yes; then
6414    case `/usr/bin/file conftest.$ac_objext` in
6415    *32-bit*)
6416      LD="${LD-ld} -melf32bsmip"
6417      ;;
6418    *N32*)
6419      LD="${LD-ld} -melf32bmipn32"
6420      ;;
6421    *64-bit*)
6422      LD="${LD-ld} -melf64bmip"
6423      ;;
6424    esac
6425   else
6426    case `/usr/bin/file conftest.$ac_objext` in
6427    *32-bit*)
6428      LD="${LD-ld} -32"
6429      ;;
6430    *N32*)
6431      LD="${LD-ld} -n32"
6432      ;;
6433    *64-bit*)
6434      LD="${LD-ld} -64"
6435      ;;
6436    esac
6437   fi
6438  fi
6439  rm -rf conftest*
6440  ;;
6441
6442x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6443  # Find out which ABI we are using.
6444  echo 'int i;' > conftest.$ac_ext
6445  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6446  (eval $ac_compile) 2>&5
6447  ac_status=$?
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); }; then
6450    case `/usr/bin/file conftest.o` in
6451    *32-bit*)
6452      case $host in
6453        x86_64-*linux*)
6454          LD="${LD-ld} -m elf_i386"
6455          ;;
6456        ppc64-*linux*|powerpc64-*linux*)
6457          LD="${LD-ld} -m elf32ppclinux"
6458          ;;
6459        s390x-*linux*)
6460          LD="${LD-ld} -m elf_s390"
6461          ;;
6462        sparc64-*linux*)
6463          LD="${LD-ld} -m elf32_sparc"
6464          ;;
6465      esac
6466      ;;
6467    *64-bit*)
6468      case $host in
6469        x86_64-*linux*)
6470          LD="${LD-ld} -m elf_x86_64"
6471          ;;
6472        ppc*-*linux*|powerpc*-*linux*)
6473          LD="${LD-ld} -m elf64ppc"
6474          ;;
6475        s390*-*linux*)
6476          LD="${LD-ld} -m elf64_s390"
6477          ;;
6478        sparc*-*linux*)
6479          LD="${LD-ld} -m elf64_sparc"
6480          ;;
6481      esac
6482      ;;
6483    esac
6484  fi
6485  rm -rf conftest*
6486  ;;
6487
6488*-*-sco3.2v5*)
6489  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6490  SAVE_CFLAGS="$CFLAGS"
6491  CFLAGS="$CFLAGS -belf"
6492  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6493echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6494if test "${lt_cv_cc_needs_belf+set}" = set; then
6495  echo $ECHO_N "(cached) $ECHO_C" >&6
6496else
6497  ac_ext=c
6498ac_cpp='$CPP $CPPFLAGS'
6499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6501ac_compiler_gnu=$ac_cv_c_compiler_gnu
6502
6503     cat >conftest.$ac_ext <<_ACEOF
6504/* confdefs.h.  */
6505_ACEOF
6506cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF
6508/* end confdefs.h.  */
6509
6510int
6511main ()
6512{
6513
6514  ;
6515  return 0;
6516}
6517_ACEOF
6518rm -f conftest.$ac_objext conftest$ac_exeext
6519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520  (eval $ac_link) 2>conftest.er1
6521  ac_status=$?
6522  grep -v '^ *+' conftest.er1 >conftest.err
6523  rm -f conftest.er1
6524  cat conftest.err >&5
6525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526  (exit $ac_status); } &&
6527         { ac_try='test -z "$ac_c_werror_flag"
6528                         || test ! -s conftest.err'
6529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530  (eval $ac_try) 2>&5
6531  ac_status=$?
6532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533  (exit $ac_status); }; } &&
6534         { ac_try='test -s conftest$ac_exeext'
6535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536  (eval $ac_try) 2>&5
6537  ac_status=$?
6538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539  (exit $ac_status); }; }; then
6540  lt_cv_cc_needs_belf=yes
6541else
6542  echo "$as_me: failed program was:" >&5
6543sed 's/^/| /' conftest.$ac_ext >&5
6544
6545lt_cv_cc_needs_belf=no
6546fi
6547rm -f conftest.err conftest.$ac_objext \
6548      conftest$ac_exeext conftest.$ac_ext
6549     ac_ext=c
6550ac_cpp='$CPP $CPPFLAGS'
6551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553ac_compiler_gnu=$ac_cv_c_compiler_gnu
6554
6555fi
6556echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6557echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6558  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6559    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6560    CFLAGS="$SAVE_CFLAGS"
6561  fi
6562  ;;
6563sparc*-*solaris*)
6564  # Find out which ABI we are using.
6565  echo 'int i;' > conftest.$ac_ext
6566  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6567  (eval $ac_compile) 2>&5
6568  ac_status=$?
6569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570  (exit $ac_status); }; then
6571    case `/usr/bin/file conftest.o` in
6572    *64-bit*)
6573      case $lt_cv_prog_gnu_ld in
6574      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6575      *)    LD="${LD-ld} -64" ;;
6576      esac
6577      ;;
6578    esac
6579  fi
6580  rm -rf conftest*
6581  ;;
6582
6583
6584esac
6585
6586need_locks="$enable_libtool_lock"
6587
6588
6589ac_ext=c
6590ac_cpp='$CPP $CPPFLAGS'
6591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6593ac_compiler_gnu=$ac_cv_c_compiler_gnu
6594echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6595echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6596# On Suns, sometimes $CPP names a directory.
6597if test -n "$CPP" && test -d "$CPP"; then
6598  CPP=
6599fi
6600if test -z "$CPP"; then
6601  if test "${ac_cv_prog_CPP+set}" = set; then
6602  echo $ECHO_N "(cached) $ECHO_C" >&6
6603else
6604      # Double quotes because CPP needs to be expanded
6605    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6606    do
6607      ac_preproc_ok=false
6608for ac_c_preproc_warn_flag in '' yes
6609do
6610  # Use a header file that comes with gcc, so configuring glibc
6611  # with a fresh cross-compiler works.
6612  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6613  # <limits.h> exists even on freestanding compilers.
6614  # On the NeXT, cc -E runs the code through the compiler's parser,
6615  # not just through cpp. "Syntax error" is here to catch this case.
6616  cat >conftest.$ac_ext <<_ACEOF
6617/* confdefs.h.  */
6618_ACEOF
6619cat confdefs.h >>conftest.$ac_ext
6620cat >>conftest.$ac_ext <<_ACEOF
6621/* end confdefs.h.  */
6622#ifdef __STDC__
6623# include <limits.h>
6624#else
6625# include <assert.h>
6626#endif
6627                     Syntax error
6628_ACEOF
6629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6630  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6631  ac_status=$?
6632  grep -v '^ *+' conftest.er1 >conftest.err
6633  rm -f conftest.er1
6634  cat conftest.err >&5
6635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636  (exit $ac_status); } >/dev/null; then
6637  if test -s conftest.err; then
6638    ac_cpp_err=$ac_c_preproc_warn_flag
6639    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6640  else
6641    ac_cpp_err=
6642  fi
6643else
6644  ac_cpp_err=yes
6645fi
6646if test -z "$ac_cpp_err"; then
6647  :
6648else
6649  echo "$as_me: failed program was:" >&5
6650sed 's/^/| /' conftest.$ac_ext >&5
6651
6652  # Broken: fails on valid input.
6653continue
6654fi
6655rm -f conftest.err conftest.$ac_ext
6656
6657  # OK, works on sane cases.  Now check whether non-existent headers
6658  # can be detected and how.
6659  cat >conftest.$ac_ext <<_ACEOF
6660/* confdefs.h.  */
6661_ACEOF
6662cat confdefs.h >>conftest.$ac_ext
6663cat >>conftest.$ac_ext <<_ACEOF
6664/* end confdefs.h.  */
6665#include <ac_nonexistent.h>
6666_ACEOF
6667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6668  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6669  ac_status=$?
6670  grep -v '^ *+' conftest.er1 >conftest.err
6671  rm -f conftest.er1
6672  cat conftest.err >&5
6673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674  (exit $ac_status); } >/dev/null; then
6675  if test -s conftest.err; then
6676    ac_cpp_err=$ac_c_preproc_warn_flag
6677    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6678  else
6679    ac_cpp_err=
6680  fi
6681else
6682  ac_cpp_err=yes
6683fi
6684if test -z "$ac_cpp_err"; then
6685  # Broken: success on invalid input.
6686continue
6687else
6688  echo "$as_me: failed program was:" >&5
6689sed 's/^/| /' conftest.$ac_ext >&5
6690
6691  # Passes both tests.
6692ac_preproc_ok=:
6693break
6694fi
6695rm -f conftest.err conftest.$ac_ext
6696
6697done
6698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6699rm -f conftest.err conftest.$ac_ext
6700if $ac_preproc_ok; then
6701  break
6702fi
6703
6704    done
6705    ac_cv_prog_CPP=$CPP
6706
6707fi
6708  CPP=$ac_cv_prog_CPP
6709else
6710  ac_cv_prog_CPP=$CPP
6711fi
6712echo "$as_me:$LINENO: result: $CPP" >&5
6713echo "${ECHO_T}$CPP" >&6
6714ac_preproc_ok=false
6715for ac_c_preproc_warn_flag in '' yes
6716do
6717  # Use a header file that comes with gcc, so configuring glibc
6718  # with a fresh cross-compiler works.
6719  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6720  # <limits.h> exists even on freestanding compilers.
6721  # On the NeXT, cc -E runs the code through the compiler's parser,
6722  # not just through cpp. "Syntax error" is here to catch this case.
6723  cat >conftest.$ac_ext <<_ACEOF
6724/* confdefs.h.  */
6725_ACEOF
6726cat confdefs.h >>conftest.$ac_ext
6727cat >>conftest.$ac_ext <<_ACEOF
6728/* end confdefs.h.  */
6729#ifdef __STDC__
6730# include <limits.h>
6731#else
6732# include <assert.h>
6733#endif
6734                     Syntax error
6735_ACEOF
6736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6737  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6738  ac_status=$?
6739  grep -v '^ *+' conftest.er1 >conftest.err
6740  rm -f conftest.er1
6741  cat conftest.err >&5
6742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743  (exit $ac_status); } >/dev/null; then
6744  if test -s conftest.err; then
6745    ac_cpp_err=$ac_c_preproc_warn_flag
6746    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6747  else
6748    ac_cpp_err=
6749  fi
6750else
6751  ac_cpp_err=yes
6752fi
6753if test -z "$ac_cpp_err"; then
6754  :
6755else
6756  echo "$as_me: failed program was:" >&5
6757sed 's/^/| /' conftest.$ac_ext >&5
6758
6759  # Broken: fails on valid input.
6760continue
6761fi
6762rm -f conftest.err conftest.$ac_ext
6763
6764  # OK, works on sane cases.  Now check whether non-existent headers
6765  # can be detected and how.
6766  cat >conftest.$ac_ext <<_ACEOF
6767/* confdefs.h.  */
6768_ACEOF
6769cat confdefs.h >>conftest.$ac_ext
6770cat >>conftest.$ac_ext <<_ACEOF
6771/* end confdefs.h.  */
6772#include <ac_nonexistent.h>
6773_ACEOF
6774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6775  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6776  ac_status=$?
6777  grep -v '^ *+' conftest.er1 >conftest.err
6778  rm -f conftest.er1
6779  cat conftest.err >&5
6780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781  (exit $ac_status); } >/dev/null; then
6782  if test -s conftest.err; then
6783    ac_cpp_err=$ac_c_preproc_warn_flag
6784    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6785  else
6786    ac_cpp_err=
6787  fi
6788else
6789  ac_cpp_err=yes
6790fi
6791if test -z "$ac_cpp_err"; then
6792  # Broken: success on invalid input.
6793continue
6794else
6795  echo "$as_me: failed program was:" >&5
6796sed 's/^/| /' conftest.$ac_ext >&5
6797
6798  # Passes both tests.
6799ac_preproc_ok=:
6800break
6801fi
6802rm -f conftest.err conftest.$ac_ext
6803
6804done
6805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6806rm -f conftest.err conftest.$ac_ext
6807if $ac_preproc_ok; then
6808  :
6809else
6810  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6811See \`config.log' for more details." >&5
6812echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6813See \`config.log' for more details." >&2;}
6814   { (exit 1); exit 1; }; }
6815fi
6816
6817ac_ext=c
6818ac_cpp='$CPP $CPPFLAGS'
6819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822
6823
6824echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6825echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6826if test "${ac_cv_header_stdc+set}" = set; then
6827  echo $ECHO_N "(cached) $ECHO_C" >&6
6828else
6829  cat >conftest.$ac_ext <<_ACEOF
6830/* confdefs.h.  */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h.  */
6835#include <stdlib.h>
6836#include <stdarg.h>
6837#include <string.h>
6838#include <float.h>
6839
6840int
6841main ()
6842{
6843
6844  ;
6845  return 0;
6846}
6847_ACEOF
6848rm -f conftest.$ac_objext
6849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850  (eval $ac_compile) 2>conftest.er1
6851  ac_status=$?
6852  grep -v '^ *+' conftest.er1 >conftest.err
6853  rm -f conftest.er1
6854  cat conftest.err >&5
6855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856  (exit $ac_status); } &&
6857         { ac_try='test -z "$ac_c_werror_flag"
6858                         || test ! -s conftest.err'
6859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860  (eval $ac_try) 2>&5
6861  ac_status=$?
6862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863  (exit $ac_status); }; } &&
6864         { ac_try='test -s conftest.$ac_objext'
6865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866  (eval $ac_try) 2>&5
6867  ac_status=$?
6868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869  (exit $ac_status); }; }; then
6870  ac_cv_header_stdc=yes
6871else
6872  echo "$as_me: failed program was:" >&5
6873sed 's/^/| /' conftest.$ac_ext >&5
6874
6875ac_cv_header_stdc=no
6876fi
6877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6878
6879if test $ac_cv_header_stdc = yes; then
6880  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6881  cat >conftest.$ac_ext <<_ACEOF
6882/* confdefs.h.  */
6883_ACEOF
6884cat confdefs.h >>conftest.$ac_ext
6885cat >>conftest.$ac_ext <<_ACEOF
6886/* end confdefs.h.  */
6887#include <string.h>
6888
6889_ACEOF
6890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6891  $EGREP "memchr" >/dev/null 2>&1; then
6892  :
6893else
6894  ac_cv_header_stdc=no
6895fi
6896rm -f conftest*
6897
6898fi
6899
6900if test $ac_cv_header_stdc = yes; then
6901  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6902  cat >conftest.$ac_ext <<_ACEOF
6903/* confdefs.h.  */
6904_ACEOF
6905cat confdefs.h >>conftest.$ac_ext
6906cat >>conftest.$ac_ext <<_ACEOF
6907/* end confdefs.h.  */
6908#include <stdlib.h>
6909
6910_ACEOF
6911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912  $EGREP "free" >/dev/null 2>&1; then
6913  :
6914else
6915  ac_cv_header_stdc=no
6916fi
6917rm -f conftest*
6918
6919fi
6920
6921if test $ac_cv_header_stdc = yes; then
6922  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6923  if test "$cross_compiling" = yes; then
6924  :
6925else
6926  cat >conftest.$ac_ext <<_ACEOF
6927/* confdefs.h.  */
6928_ACEOF
6929cat confdefs.h >>conftest.$ac_ext
6930cat >>conftest.$ac_ext <<_ACEOF
6931/* end confdefs.h.  */
6932#include <ctype.h>
6933#if ((' ' & 0x0FF) == 0x020)
6934# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6935# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6936#else
6937# define ISLOWER(c) \
6938                   (('a' <= (c) && (c) <= 'i') \
6939                     || ('j' <= (c) && (c) <= 'r') \
6940                     || ('s' <= (c) && (c) <= 'z'))
6941# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6942#endif
6943
6944#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6945int
6946main ()
6947{
6948  int i;
6949  for (i = 0; i < 256; i++)
6950    if (XOR (islower (i), ISLOWER (i))
6951        || toupper (i) != TOUPPER (i))
6952      exit(2);
6953  exit (0);
6954}
6955_ACEOF
6956rm -f conftest$ac_exeext
6957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958  (eval $ac_link) 2>&5
6959  ac_status=$?
6960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963  (eval $ac_try) 2>&5
6964  ac_status=$?
6965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966  (exit $ac_status); }; }; then
6967  :
6968else
6969  echo "$as_me: program exited with status $ac_status" >&5
6970echo "$as_me: failed program was:" >&5
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
6973( exit $ac_status )
6974ac_cv_header_stdc=no
6975fi
6976rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6977fi
6978fi
6979fi
6980echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6981echo "${ECHO_T}$ac_cv_header_stdc" >&6
6982if test $ac_cv_header_stdc = yes; then
6983
6984cat >>confdefs.h <<\_ACEOF
6985#define STDC_HEADERS 1
6986_ACEOF
6987
6988fi
6989
6990# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7001                  inttypes.h stdint.h unistd.h
7002do
7003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7004echo "$as_me:$LINENO: checking for $ac_header" >&5
7005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7006if eval "test \"\${$as_ac_Header+set}\" = set"; then
7007  echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009  cat >conftest.$ac_ext <<_ACEOF
7010/* confdefs.h.  */
7011_ACEOF
7012cat confdefs.h >>conftest.$ac_ext
7013cat >>conftest.$ac_ext <<_ACEOF
7014/* end confdefs.h.  */
7015$ac_includes_default
7016
7017#include <$ac_header>
7018_ACEOF
7019rm -f conftest.$ac_objext
7020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7021  (eval $ac_compile) 2>conftest.er1
7022  ac_status=$?
7023  grep -v '^ *+' conftest.er1 >conftest.err
7024  rm -f conftest.er1
7025  cat conftest.err >&5
7026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027  (exit $ac_status); } &&
7028         { ac_try='test -z "$ac_c_werror_flag"
7029                         || test ! -s conftest.err'
7030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031  (eval $ac_try) 2>&5
7032  ac_status=$?
7033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034  (exit $ac_status); }; } &&
7035         { ac_try='test -s conftest.$ac_objext'
7036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037  (eval $ac_try) 2>&5
7038  ac_status=$?
7039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040  (exit $ac_status); }; }; then
7041  eval "$as_ac_Header=yes"
7042else
7043  echo "$as_me: failed program was:" >&5
7044sed 's/^/| /' conftest.$ac_ext >&5
7045
7046eval "$as_ac_Header=no"
7047fi
7048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7049fi
7050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7052if test `eval echo '${'$as_ac_Header'}'` = yes; then
7053  cat >>confdefs.h <<_ACEOF
7054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7055_ACEOF
7056
7057fi
7058
7059done
7060
7061
7062
7063for ac_header in dlfcn.h
7064do
7065as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7066if eval "test \"\${$as_ac_Header+set}\" = set"; then
7067  echo "$as_me:$LINENO: checking for $ac_header" >&5
7068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7069if eval "test \"\${$as_ac_Header+set}\" = set"; then
7070  echo $ECHO_N "(cached) $ECHO_C" >&6
7071fi
7072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7074else
7075  # Is the header compilable?
7076echo "$as_me:$LINENO: checking $ac_header usability" >&5
7077echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7078cat >conftest.$ac_ext <<_ACEOF
7079/* confdefs.h.  */
7080_ACEOF
7081cat confdefs.h >>conftest.$ac_ext
7082cat >>conftest.$ac_ext <<_ACEOF
7083/* end confdefs.h.  */
7084$ac_includes_default
7085#include <$ac_header>
7086_ACEOF
7087rm -f conftest.$ac_objext
7088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089  (eval $ac_compile) 2>conftest.er1
7090  ac_status=$?
7091  grep -v '^ *+' conftest.er1 >conftest.err
7092  rm -f conftest.er1
7093  cat conftest.err >&5
7094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095  (exit $ac_status); } &&
7096         { ac_try='test -z "$ac_c_werror_flag"
7097                         || test ! -s conftest.err'
7098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099  (eval $ac_try) 2>&5
7100  ac_status=$?
7101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102  (exit $ac_status); }; } &&
7103         { ac_try='test -s conftest.$ac_objext'
7104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105  (eval $ac_try) 2>&5
7106  ac_status=$?
7107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108  (exit $ac_status); }; }; then
7109  ac_header_compiler=yes
7110else
7111  echo "$as_me: failed program was:" >&5
7112sed 's/^/| /' conftest.$ac_ext >&5
7113
7114ac_header_compiler=no
7115fi
7116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7118echo "${ECHO_T}$ac_header_compiler" >&6
7119
7120# Is the header present?
7121echo "$as_me:$LINENO: checking $ac_header presence" >&5
7122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7123cat >conftest.$ac_ext <<_ACEOF
7124/* confdefs.h.  */
7125_ACEOF
7126cat confdefs.h >>conftest.$ac_ext
7127cat >>conftest.$ac_ext <<_ACEOF
7128/* end confdefs.h.  */
7129#include <$ac_header>
7130_ACEOF
7131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7132  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7133  ac_status=$?
7134  grep -v '^ *+' conftest.er1 >conftest.err
7135  rm -f conftest.er1
7136  cat conftest.err >&5
7137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138  (exit $ac_status); } >/dev/null; then
7139  if test -s conftest.err; then
7140    ac_cpp_err=$ac_c_preproc_warn_flag
7141    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7142  else
7143    ac_cpp_err=
7144  fi
7145else
7146  ac_cpp_err=yes
7147fi
7148if test -z "$ac_cpp_err"; then
7149  ac_header_preproc=yes
7150else
7151  echo "$as_me: failed program was:" >&5
7152sed 's/^/| /' conftest.$ac_ext >&5
7153
7154  ac_header_preproc=no
7155fi
7156rm -f conftest.err conftest.$ac_ext
7157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7158echo "${ECHO_T}$ac_header_preproc" >&6
7159
7160# So?  What about this header?
7161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7162  yes:no: )
7163    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7165    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7167    ac_header_preproc=yes
7168    ;;
7169  no:yes:* )
7170    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7172    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7173echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7174    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7176    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7177echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7178    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7180    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7182    (
7183      cat <<\_ASBOX
7184## --------------------------------------------------------------- ##
7185## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7186## --------------------------------------------------------------- ##
7187_ASBOX
7188    ) |
7189      sed "s/^/$as_me: WARNING:     /" >&2
7190    ;;
7191esac
7192echo "$as_me:$LINENO: checking for $ac_header" >&5
7193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7194if eval "test \"\${$as_ac_Header+set}\" = set"; then
7195  echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197  eval "$as_ac_Header=\$ac_header_preproc"
7198fi
7199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7201
7202fi
7203if test `eval echo '${'$as_ac_Header'}'` = yes; then
7204  cat >>confdefs.h <<_ACEOF
7205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7206_ACEOF
7207
7208fi
7209
7210done
7211
7212
7213
7214if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7215    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7216    (test "X$CXX" != "Xg++"))) ; then
7217  ac_ext=cc
7218ac_cpp='$CXXCPP $CPPFLAGS'
7219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7222echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7223echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7224if test -z "$CXXCPP"; then
7225  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7226  echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228      # Double quotes because CXXCPP needs to be expanded
7229    for CXXCPP in "$CXX -E" "/lib/cpp"
7230    do
7231      ac_preproc_ok=false
7232for ac_cxx_preproc_warn_flag in '' yes
7233do
7234  # Use a header file that comes with gcc, so configuring glibc
7235  # with a fresh cross-compiler works.
7236  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7237  # <limits.h> exists even on freestanding compilers.
7238  # On the NeXT, cc -E runs the code through the compiler's parser,
7239  # not just through cpp. "Syntax error" is here to catch this case.
7240  cat >conftest.$ac_ext <<_ACEOF
7241/* confdefs.h.  */
7242_ACEOF
7243cat confdefs.h >>conftest.$ac_ext
7244cat >>conftest.$ac_ext <<_ACEOF
7245/* end confdefs.h.  */
7246#ifdef __STDC__
7247# include <limits.h>
7248#else
7249# include <assert.h>
7250#endif
7251                     Syntax error
7252_ACEOF
7253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7255  ac_status=$?
7256  grep -v '^ *+' conftest.er1 >conftest.err
7257  rm -f conftest.er1
7258  cat conftest.err >&5
7259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260  (exit $ac_status); } >/dev/null; then
7261  if test -s conftest.err; then
7262    ac_cpp_err=$ac_cxx_preproc_warn_flag
7263    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7264  else
7265    ac_cpp_err=
7266  fi
7267else
7268  ac_cpp_err=yes
7269fi
7270if test -z "$ac_cpp_err"; then
7271  :
7272else
7273  echo "$as_me: failed program was:" >&5
7274sed 's/^/| /' conftest.$ac_ext >&5
7275
7276  # Broken: fails on valid input.
7277continue
7278fi
7279rm -f conftest.err conftest.$ac_ext
7280
7281  # OK, works on sane cases.  Now check whether non-existent headers
7282  # can be detected and how.
7283  cat >conftest.$ac_ext <<_ACEOF
7284/* confdefs.h.  */
7285_ACEOF
7286cat confdefs.h >>conftest.$ac_ext
7287cat >>conftest.$ac_ext <<_ACEOF
7288/* end confdefs.h.  */
7289#include <ac_nonexistent.h>
7290_ACEOF
7291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7292  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7293  ac_status=$?
7294  grep -v '^ *+' conftest.er1 >conftest.err
7295  rm -f conftest.er1
7296  cat conftest.err >&5
7297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298  (exit $ac_status); } >/dev/null; then
7299  if test -s conftest.err; then
7300    ac_cpp_err=$ac_cxx_preproc_warn_flag
7301    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7302  else
7303    ac_cpp_err=
7304  fi
7305else
7306  ac_cpp_err=yes
7307fi
7308if test -z "$ac_cpp_err"; then
7309  # Broken: success on invalid input.
7310continue
7311else
7312  echo "$as_me: failed program was:" >&5
7313sed 's/^/| /' conftest.$ac_ext >&5
7314
7315  # Passes both tests.
7316ac_preproc_ok=:
7317break
7318fi
7319rm -f conftest.err conftest.$ac_ext
7320
7321done
7322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7323rm -f conftest.err conftest.$ac_ext
7324if $ac_preproc_ok; then
7325  break
7326fi
7327
7328    done
7329    ac_cv_prog_CXXCPP=$CXXCPP
7330
7331fi
7332  CXXCPP=$ac_cv_prog_CXXCPP
7333else
7334  ac_cv_prog_CXXCPP=$CXXCPP
7335fi
7336echo "$as_me:$LINENO: result: $CXXCPP" >&5
7337echo "${ECHO_T}$CXXCPP" >&6
7338ac_preproc_ok=false
7339for ac_cxx_preproc_warn_flag in '' yes
7340do
7341  # Use a header file that comes with gcc, so configuring glibc
7342  # with a fresh cross-compiler works.
7343  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7344  # <limits.h> exists even on freestanding compilers.
7345  # On the NeXT, cc -E runs the code through the compiler's parser,
7346  # not just through cpp. "Syntax error" is here to catch this case.
7347  cat >conftest.$ac_ext <<_ACEOF
7348/* confdefs.h.  */
7349_ACEOF
7350cat confdefs.h >>conftest.$ac_ext
7351cat >>conftest.$ac_ext <<_ACEOF
7352/* end confdefs.h.  */
7353#ifdef __STDC__
7354# include <limits.h>
7355#else
7356# include <assert.h>
7357#endif
7358                     Syntax error
7359_ACEOF
7360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7361  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7362  ac_status=$?
7363  grep -v '^ *+' conftest.er1 >conftest.err
7364  rm -f conftest.er1
7365  cat conftest.err >&5
7366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367  (exit $ac_status); } >/dev/null; then
7368  if test -s conftest.err; then
7369    ac_cpp_err=$ac_cxx_preproc_warn_flag
7370    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7371  else
7372    ac_cpp_err=
7373  fi
7374else
7375  ac_cpp_err=yes
7376fi
7377if test -z "$ac_cpp_err"; then
7378  :
7379else
7380  echo "$as_me: failed program was:" >&5
7381sed 's/^/| /' conftest.$ac_ext >&5
7382
7383  # Broken: fails on valid input.
7384continue
7385fi
7386rm -f conftest.err conftest.$ac_ext
7387
7388  # OK, works on sane cases.  Now check whether non-existent headers
7389  # can be detected and how.
7390  cat >conftest.$ac_ext <<_ACEOF
7391/* confdefs.h.  */
7392_ACEOF
7393cat confdefs.h >>conftest.$ac_ext
7394cat >>conftest.$ac_ext <<_ACEOF
7395/* end confdefs.h.  */
7396#include <ac_nonexistent.h>
7397_ACEOF
7398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7399  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7400  ac_status=$?
7401  grep -v '^ *+' conftest.er1 >conftest.err
7402  rm -f conftest.er1
7403  cat conftest.err >&5
7404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405  (exit $ac_status); } >/dev/null; then
7406  if test -s conftest.err; then
7407    ac_cpp_err=$ac_cxx_preproc_warn_flag
7408    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7409  else
7410    ac_cpp_err=
7411  fi
7412else
7413  ac_cpp_err=yes
7414fi
7415if test -z "$ac_cpp_err"; then
7416  # Broken: success on invalid input.
7417continue
7418else
7419  echo "$as_me: failed program was:" >&5
7420sed 's/^/| /' conftest.$ac_ext >&5
7421
7422  # Passes both tests.
7423ac_preproc_ok=:
7424break
7425fi
7426rm -f conftest.err conftest.$ac_ext
7427
7428done
7429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7430rm -f conftest.err conftest.$ac_ext
7431if $ac_preproc_ok; then
7432  :
7433else
7434  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7435See \`config.log' for more details." >&5
7436echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7437See \`config.log' for more details." >&2;}
7438   { (exit 1); exit 1; }; }
7439fi
7440
7441ac_ext=cc
7442ac_cpp='$CXXCPP $CPPFLAGS'
7443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7446
7447fi
7448
7449ac_ext=f
7450ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7451ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7453if test -n "$ac_tool_prefix"; then
7454  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7455  do
7456    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7457set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7458echo "$as_me:$LINENO: checking for $ac_word" >&5
7459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7460if test "${ac_cv_prog_F77+set}" = set; then
7461  echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463  if test -n "$F77"; then
7464  ac_cv_prog_F77="$F77" # Let the user override the test.
7465else
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469  IFS=$as_save_IFS
7470  test -z "$as_dir" && as_dir=.
7471  for ac_exec_ext in '' $ac_executable_extensions; do
7472  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7474    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475    break 2
7476  fi
7477done
7478done
7479
7480fi
7481fi
7482F77=$ac_cv_prog_F77
7483if test -n "$F77"; then
7484  echo "$as_me:$LINENO: result: $F77" >&5
7485echo "${ECHO_T}$F77" >&6
7486else
7487  echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6
7489fi
7490
7491    test -n "$F77" && break
7492  done
7493fi
7494if test -z "$F77"; then
7495  ac_ct_F77=$F77
7496  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7497do
7498  # Extract the first word of "$ac_prog", so it can be a program name with args.
7499set dummy $ac_prog; ac_word=$2
7500echo "$as_me:$LINENO: checking for $ac_word" >&5
7501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7502if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7503  echo $ECHO_N "(cached) $ECHO_C" >&6
7504else
7505  if test -n "$ac_ct_F77"; then
7506  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7507else
7508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509for as_dir in $PATH
7510do
7511  IFS=$as_save_IFS
7512  test -z "$as_dir" && as_dir=.
7513  for ac_exec_ext in '' $ac_executable_extensions; do
7514  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515    ac_cv_prog_ac_ct_F77="$ac_prog"
7516    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517    break 2
7518  fi
7519done
7520done
7521
7522fi
7523fi
7524ac_ct_F77=$ac_cv_prog_ac_ct_F77
7525if test -n "$ac_ct_F77"; then
7526  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7527echo "${ECHO_T}$ac_ct_F77" >&6
7528else
7529  echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6
7531fi
7532
7533  test -n "$ac_ct_F77" && break
7534done
7535
7536  F77=$ac_ct_F77
7537fi
7538
7539
7540# Provide some information about the compiler.
7541echo "$as_me:7541:" \
7542     "checking for Fortran 77 compiler version" >&5
7543ac_compiler=`set X $ac_compile; echo $2`
7544{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7545  (eval $ac_compiler --version </dev/null >&5) 2>&5
7546  ac_status=$?
7547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548  (exit $ac_status); }
7549{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7550  (eval $ac_compiler -v </dev/null >&5) 2>&5
7551  ac_status=$?
7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553  (exit $ac_status); }
7554{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7555  (eval $ac_compiler -V </dev/null >&5) 2>&5
7556  ac_status=$?
7557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558  (exit $ac_status); }
7559rm -f a.out
7560
7561# If we don't use `.F' as extension, the preprocessor is not run on the
7562# input file.  (Note that this only needs to work for GNU compilers.)
7563ac_save_ext=$ac_ext
7564ac_ext=F
7565echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7566echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7567if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7568  echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570  cat >conftest.$ac_ext <<_ACEOF
7571      program main
7572#ifndef __GNUC__
7573       choke me
7574#endif
7575
7576      end
7577_ACEOF
7578rm -f conftest.$ac_objext
7579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580  (eval $ac_compile) 2>conftest.er1
7581  ac_status=$?
7582  grep -v '^ *+' conftest.er1 >conftest.err
7583  rm -f conftest.er1
7584  cat conftest.err >&5
7585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586  (exit $ac_status); } &&
7587         { ac_try='test -z "$ac_f77_werror_flag"
7588                         || test ! -s conftest.err'
7589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590  (eval $ac_try) 2>&5
7591  ac_status=$?
7592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593  (exit $ac_status); }; } &&
7594         { ac_try='test -s conftest.$ac_objext'
7595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596  (eval $ac_try) 2>&5
7597  ac_status=$?
7598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599  (exit $ac_status); }; }; then
7600  ac_compiler_gnu=yes
7601else
7602  echo "$as_me: failed program was:" >&5
7603sed 's/^/| /' conftest.$ac_ext >&5
7604
7605ac_compiler_gnu=no
7606fi
7607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7608ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7609
7610fi
7611echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7612echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7613ac_ext=$ac_save_ext
7614ac_test_FFLAGS=${FFLAGS+set}
7615ac_save_FFLAGS=$FFLAGS
7616FFLAGS=
7617echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7618echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7619if test "${ac_cv_prog_f77_g+set}" = set; then
7620  echo $ECHO_N "(cached) $ECHO_C" >&6
7621else
7622  FFLAGS=-g
7623cat >conftest.$ac_ext <<_ACEOF
7624      program main
7625
7626      end
7627_ACEOF
7628rm -f conftest.$ac_objext
7629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630  (eval $ac_compile) 2>conftest.er1
7631  ac_status=$?
7632  grep -v '^ *+' conftest.er1 >conftest.err
7633  rm -f conftest.er1
7634  cat conftest.err >&5
7635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636  (exit $ac_status); } &&
7637         { ac_try='test -z "$ac_f77_werror_flag"
7638                         || test ! -s conftest.err'
7639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640  (eval $ac_try) 2>&5
7641  ac_status=$?
7642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643  (exit $ac_status); }; } &&
7644         { ac_try='test -s conftest.$ac_objext'
7645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646  (eval $ac_try) 2>&5
7647  ac_status=$?
7648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649  (exit $ac_status); }; }; then
7650  ac_cv_prog_f77_g=yes
7651else
7652  echo "$as_me: failed program was:" >&5
7653sed 's/^/| /' conftest.$ac_ext >&5
7654
7655ac_cv_prog_f77_g=no
7656fi
7657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7658
7659fi
7660echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7661echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7662if test "$ac_test_FFLAGS" = set; then
7663  FFLAGS=$ac_save_FFLAGS
7664elif test $ac_cv_prog_f77_g = yes; then
7665  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7666    FFLAGS="-g -O2"
7667  else
7668    FFLAGS="-g"
7669  fi
7670else
7671  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7672    FFLAGS="-O2"
7673  else
7674    FFLAGS=
7675  fi
7676fi
7677
7678G77=`test $ac_compiler_gnu = yes && echo yes`
7679ac_ext=c
7680ac_cpp='$CPP $CPPFLAGS'
7681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683ac_compiler_gnu=$ac_cv_c_compiler_gnu
7684
7685
7686
7687# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7688
7689# find the maximum length of command line arguments
7690echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7691echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7692if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7693  echo $ECHO_N "(cached) $ECHO_C" >&6
7694else
7695    i=0
7696  teststring="ABCD"
7697
7698  case $build_os in
7699  msdosdjgpp*)
7700    # On DJGPP, this test can blow up pretty badly due to problems in libc
7701    # (any single argument exceeding 2000 bytes causes a buffer overrun
7702    # during glob expansion).  Even if it were fixed, the result of this
7703    # check would be larger than it should be.
7704    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7705    ;;
7706
7707  gnu*)
7708    # Under GNU Hurd, this test is not required because there is
7709    # no limit to the length of command line arguments.
7710    # Libtool will interpret -1 as no limit whatsoever
7711    lt_cv_sys_max_cmd_len=-1;
7712    ;;
7713
7714  cygwin* | mingw*)
7715    # On Win9x/ME, this test blows up -- it succeeds, but takes
7716    # about 5 minutes as the teststring grows exponentially.
7717    # Worse, since 9x/ME are not pre-emptively multitasking,
7718    # you end up with a "frozen" computer, even though with patience
7719    # the test eventually succeeds (with a max line length of 256k).
7720    # Instead, let's just punt: use the minimum linelength reported by
7721    # all of the supported platforms: 8192 (on NT/2K/XP).
7722    lt_cv_sys_max_cmd_len=8192;
7723    ;;
7724
7725  amigaos*)
7726    # On AmigaOS with pdksh, this test takes hours, literally.
7727    # So we just punt and use a minimum line length of 8192.
7728    lt_cv_sys_max_cmd_len=8192;
7729    ;;
7730
7731  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7732    # This has been around since 386BSD, at least.  Likely further.
7733    if test -x /sbin/sysctl; then
7734      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7735    elif test -x /usr/sbin/sysctl; then
7736      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7737    else
7738      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7739    fi
7740    # And add a safety zone
7741    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7742    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7743    ;;
7744
7745  interix*)
7746    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7747    lt_cv_sys_max_cmd_len=196608
7748    ;;
7749
7750  osf*)
7751    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7752    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7753    # nice to cause kernel panics so lets avoid the loop below.
7754    # First set a reasonable default.
7755    lt_cv_sys_max_cmd_len=16384
7756    #
7757    if test -x /sbin/sysconfig; then
7758      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7759        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7760      esac
7761    fi
7762    ;;
7763  sco3.2v5*)
7764    lt_cv_sys_max_cmd_len=102400
7765    ;;
7766  sysv5* | sco5v6* | sysv4.2uw2*)
7767    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7768    if test -n "$kargmax"; then
7769      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7770    else
7771      lt_cv_sys_max_cmd_len=32768
7772    fi
7773    ;;
7774  *)
7775    # If test is not a shell built-in, we'll probably end up computing a
7776    # maximum length that is only half of the actual maximum length, but
7777    # we can't tell.
7778    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7779    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7780               = "XX$teststring") >/dev/null 2>&1 &&
7781            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7782            lt_cv_sys_max_cmd_len=$new_result &&
7783            test $i != 17 # 1/2 MB should be enough
7784    do
7785      i=`expr $i + 1`
7786      teststring=$teststring$teststring
7787    done
7788    teststring=
7789    # Add a significant safety factor because C++ compilers can tack on massive
7790    # amounts of additional arguments before passing them to the linker.
7791    # It appears as though 1/2 is a usable value.
7792    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7793    ;;
7794  esac
7795
7796fi
7797
7798if test -n $lt_cv_sys_max_cmd_len ; then
7799  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7800echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7801else
7802  echo "$as_me:$LINENO: result: none" >&5
7803echo "${ECHO_T}none" >&6
7804fi
7805
7806
7807
7808
7809# Check for command to grab the raw symbol name followed by C symbol from nm.
7810echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7811echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7812if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7813  echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815
7816# These are sane defaults that work on at least a few old systems.
7817# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7818
7819# Character class describing NM global symbol codes.
7820symcode='[BCDEGRST]'
7821
7822# Regexp to match symbols that can be accessed directly from C.
7823sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7824
7825# Transform an extracted symbol line into a proper C declaration
7826lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7827
7828# Transform an extracted symbol line into symbol name and symbol address
7829lt_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'"
7830
7831# Define system-specific variables.
7832case $host_os in
7833aix*)
7834  symcode='[BCDT]'
7835  ;;
7836cygwin* | mingw* | pw32*)
7837  symcode='[ABCDGISTW]'
7838  ;;
7839hpux*) # Its linker distinguishes data from code symbols
7840  if test "$host_cpu" = ia64; then
7841    symcode='[ABCDEGRST]'
7842  fi
7843  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7844  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'"
7845  ;;
7846linux*)
7847  if test "$host_cpu" = ia64; then
7848    symcode='[ABCDGIRSTW]'
7849    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7850    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'"
7851  fi
7852  ;;
7853irix* | nonstopux*)
7854  symcode='[BCDEGRST]'
7855  ;;
7856osf*)
7857  symcode='[BCDEGQRST]'
7858  ;;
7859solaris*)
7860  symcode='[BDRT]'
7861  ;;
7862sco3.2v5*)
7863  symcode='[DT]'
7864  ;;
7865sysv4.2uw2*)
7866  symcode='[DT]'
7867  ;;
7868sysv5* | sco5v6* | unixware* | OpenUNIX*)
7869  symcode='[ABDT]'
7870  ;;
7871sysv4)
7872  symcode='[DFNSTU]'
7873  ;;
7874esac
7875
7876# Handle CRLF in mingw tool chain
7877opt_cr=
7878case $build_os in
7879mingw*)
7880  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7881  ;;
7882esac
7883
7884# If we're using GNU nm, then use its standard symbol codes.
7885case `$NM -V 2>&1` in
7886*GNU* | *'with BFD'*)
7887  symcode='[ABCDGIRSTW]' ;;
7888esac
7889
7890# Try without a prefix undercore, then with it.
7891for ac_symprfx in "" "_"; do
7892
7893  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7894  symxfrm="\\1 $ac_symprfx\\2 \\2"
7895
7896  # Write the raw and C identifiers.
7897  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7898
7899  # Check to see that the pipe works correctly.
7900  pipe_works=no
7901
7902  rm -f conftest*
7903  cat > conftest.$ac_ext <<EOF
7904#ifdef __cplusplus
7905extern "C" {
7906#endif
7907char nm_test_var;
7908void nm_test_func(){}
7909#ifdef __cplusplus
7910}
7911#endif
7912int main(){nm_test_var='a';nm_test_func();return(0);}
7913EOF
7914
7915  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7916  (eval $ac_compile) 2>&5
7917  ac_status=$?
7918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919  (exit $ac_status); }; then
7920    # Now try to grab the symbols.
7921    nlist=conftest.nm
7922    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7923  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7924  ac_status=$?
7925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926  (exit $ac_status); } && test -s "$nlist"; then
7927      # Try sorting and uniquifying the output.
7928      if sort "$nlist" | uniq > "$nlist"T; then
7929        mv -f "$nlist"T "$nlist"
7930      else
7931        rm -f "$nlist"T
7932      fi
7933
7934      # Make sure that we snagged all the symbols we need.
7935      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7936        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7937          cat <<EOF > conftest.$ac_ext
7938#ifdef __cplusplus
7939extern "C" {
7940#endif
7941
7942EOF
7943          # Now generate the symbol file.
7944          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7945
7946          cat <<EOF >> conftest.$ac_ext
7947#if defined (__STDC__) && __STDC__
7948# define lt_ptr_t void *
7949#else
7950# define lt_ptr_t char *
7951# define const
7952#endif
7953
7954/* The mapping between symbol names and symbols. */
7955const struct {
7956  const char *name;
7957  lt_ptr_t address;
7958}
7959lt_preloaded_symbols[] =
7960{
7961EOF
7962          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7963          cat <<\EOF >> conftest.$ac_ext
7964  {0, (lt_ptr_t) 0}
7965};
7966
7967#ifdef __cplusplus
7968}
7969#endif
7970EOF
7971          # Now try linking the two files.
7972          mv conftest.$ac_objext conftstm.$ac_objext
7973          lt_save_LIBS="$LIBS"
7974          lt_save_CFLAGS="$CFLAGS"
7975          LIBS="conftstm.$ac_objext"
7976          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7977          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7978  (eval $ac_link) 2>&5
7979  ac_status=$?
7980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7982            pipe_works=yes
7983          fi
7984          LIBS="$lt_save_LIBS"
7985          CFLAGS="$lt_save_CFLAGS"
7986        else
7987          echo "cannot find nm_test_func in $nlist" >&5
7988        fi
7989      else
7990        echo "cannot find nm_test_var in $nlist" >&5
7991      fi
7992    else
7993      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7994    fi
7995  else
7996    echo "$progname: failed program was:" >&5
7997    cat conftest.$ac_ext >&5
7998  fi
7999  rm -f conftest* conftst*
8000
8001  # Do not use the global_symbol_pipe unless it works.
8002  if test "$pipe_works" = yes; then
8003    break
8004  else
8005    lt_cv_sys_global_symbol_pipe=
8006  fi
8007done
8008
8009fi
8010
8011if test -z "$lt_cv_sys_global_symbol_pipe"; then
8012  lt_cv_sys_global_symbol_to_cdecl=
8013fi
8014if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8015  echo "$as_me:$LINENO: result: failed" >&5
8016echo "${ECHO_T}failed" >&6
8017else
8018  echo "$as_me:$LINENO: result: ok" >&5
8019echo "${ECHO_T}ok" >&6
8020fi
8021
8022echo "$as_me:$LINENO: checking for objdir" >&5
8023echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8024if test "${lt_cv_objdir+set}" = set; then
8025  echo $ECHO_N "(cached) $ECHO_C" >&6
8026else
8027  rm -f .libs 2>/dev/null
8028mkdir .libs 2>/dev/null
8029if test -d .libs; then
8030  lt_cv_objdir=.libs
8031else
8032  # MS-DOS does not allow filenames that begin with a dot.
8033  lt_cv_objdir=_libs
8034fi
8035rmdir .libs 2>/dev/null
8036fi
8037echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8038echo "${ECHO_T}$lt_cv_objdir" >&6
8039objdir=$lt_cv_objdir
8040
8041
8042
8043
8044
8045case $host_os in
8046aix3*)
8047  # AIX sometimes has problems with the GCC collect2 program.  For some
8048  # reason, if we set the COLLECT_NAMES environment variable, the problems
8049  # vanish in a puff of smoke.
8050  if test "X${COLLECT_NAMES+set}" != Xset; then
8051    COLLECT_NAMES=
8052    export COLLECT_NAMES
8053  fi
8054  ;;
8055esac
8056
8057# Sed substitution that helps us do robust quoting.  It backslashifies
8058# metacharacters that are still active within double-quoted strings.
8059Xsed='sed -e 1s/^X//'
8060sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8061
8062# Same as above, but do not quote variable references.
8063double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8064
8065# Sed substitution to delay expansion of an escaped shell variable in a
8066# double_quote_subst'ed string.
8067delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8068
8069# Sed substitution to avoid accidental globbing in evaled expressions
8070no_glob_subst='s/\*/\\\*/g'
8071
8072# Constants:
8073rm="rm -f"
8074
8075# Global variables:
8076default_ofile=libtool
8077can_build_shared=yes
8078
8079# All known linkers require a `.a' archive for static linking (except MSVC,
8080# which needs '.lib').
8081libext=a
8082ltmain="$ac_aux_dir/ltmain.sh"
8083ofile="$default_ofile"
8084with_gnu_ld="$lt_cv_prog_gnu_ld"
8085
8086if test -n "$ac_tool_prefix"; then
8087  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8088set dummy ${ac_tool_prefix}ar; ac_word=$2
8089echo "$as_me:$LINENO: checking for $ac_word" >&5
8090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8091if test "${ac_cv_prog_AR+set}" = set; then
8092  echo $ECHO_N "(cached) $ECHO_C" >&6
8093else
8094  if test -n "$AR"; then
8095  ac_cv_prog_AR="$AR" # Let the user override the test.
8096else
8097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098for as_dir in $PATH
8099do
8100  IFS=$as_save_IFS
8101  test -z "$as_dir" && as_dir=.
8102  for ac_exec_ext in '' $ac_executable_extensions; do
8103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104    ac_cv_prog_AR="${ac_tool_prefix}ar"
8105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8106    break 2
8107  fi
8108done
8109done
8110
8111fi
8112fi
8113AR=$ac_cv_prog_AR
8114if test -n "$AR"; then
8115  echo "$as_me:$LINENO: result: $AR" >&5
8116echo "${ECHO_T}$AR" >&6
8117else
8118  echo "$as_me:$LINENO: result: no" >&5
8119echo "${ECHO_T}no" >&6
8120fi
8121
8122fi
8123if test -z "$ac_cv_prog_AR"; then
8124  ac_ct_AR=$AR
8125  # Extract the first word of "ar", so it can be a program name with args.
8126set dummy ar; ac_word=$2
8127echo "$as_me:$LINENO: checking for $ac_word" >&5
8128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8129if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8130  echo $ECHO_N "(cached) $ECHO_C" >&6
8131else
8132  if test -n "$ac_ct_AR"; then
8133  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8134else
8135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136for as_dir in $PATH
8137do
8138  IFS=$as_save_IFS
8139  test -z "$as_dir" && as_dir=.
8140  for ac_exec_ext in '' $ac_executable_extensions; do
8141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142    ac_cv_prog_ac_ct_AR="ar"
8143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8144    break 2
8145  fi
8146done
8147done
8148
8149  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8150fi
8151fi
8152ac_ct_AR=$ac_cv_prog_ac_ct_AR
8153if test -n "$ac_ct_AR"; then
8154  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8155echo "${ECHO_T}$ac_ct_AR" >&6
8156else
8157  echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
8159fi
8160
8161  AR=$ac_ct_AR
8162else
8163  AR="$ac_cv_prog_AR"
8164fi
8165
8166if test -n "$ac_tool_prefix"; then
8167  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8168set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8169echo "$as_me:$LINENO: checking for $ac_word" >&5
8170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8171if test "${ac_cv_prog_RANLIB+set}" = set; then
8172  echo $ECHO_N "(cached) $ECHO_C" >&6
8173else
8174  if test -n "$RANLIB"; then
8175  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8176else
8177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178for as_dir in $PATH
8179do
8180  IFS=$as_save_IFS
8181  test -z "$as_dir" && as_dir=.
8182  for ac_exec_ext in '' $ac_executable_extensions; do
8183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8184    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8186    break 2
8187  fi
8188done
8189done
8190
8191fi
8192fi
8193RANLIB=$ac_cv_prog_RANLIB
8194if test -n "$RANLIB"; then
8195  echo "$as_me:$LINENO: result: $RANLIB" >&5
8196echo "${ECHO_T}$RANLIB" >&6
8197else
8198  echo "$as_me:$LINENO: result: no" >&5
8199echo "${ECHO_T}no" >&6
8200fi
8201
8202fi
8203if test -z "$ac_cv_prog_RANLIB"; then
8204  ac_ct_RANLIB=$RANLIB
8205  # Extract the first word of "ranlib", so it can be a program name with args.
8206set dummy ranlib; ac_word=$2
8207echo "$as_me:$LINENO: checking for $ac_word" >&5
8208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8209if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8210  echo $ECHO_N "(cached) $ECHO_C" >&6
8211else
8212  if test -n "$ac_ct_RANLIB"; then
8213  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8214else
8215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216for as_dir in $PATH
8217do
8218  IFS=$as_save_IFS
8219  test -z "$as_dir" && as_dir=.
8220  for ac_exec_ext in '' $ac_executable_extensions; do
8221  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222    ac_cv_prog_ac_ct_RANLIB="ranlib"
8223    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8224    break 2
8225  fi
8226done
8227done
8228
8229  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8230fi
8231fi
8232ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8233if test -n "$ac_ct_RANLIB"; then
8234  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8235echo "${ECHO_T}$ac_ct_RANLIB" >&6
8236else
8237  echo "$as_me:$LINENO: result: no" >&5
8238echo "${ECHO_T}no" >&6
8239fi
8240
8241  RANLIB=$ac_ct_RANLIB
8242else
8243  RANLIB="$ac_cv_prog_RANLIB"
8244fi
8245
8246if test -n "$ac_tool_prefix"; then
8247  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8248set dummy ${ac_tool_prefix}strip; ac_word=$2
8249echo "$as_me:$LINENO: checking for $ac_word" >&5
8250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8251if test "${ac_cv_prog_STRIP+set}" = set; then
8252  echo $ECHO_N "(cached) $ECHO_C" >&6
8253else
8254  if test -n "$STRIP"; then
8255  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8256else
8257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258for as_dir in $PATH
8259do
8260  IFS=$as_save_IFS
8261  test -z "$as_dir" && as_dir=.
8262  for ac_exec_ext in '' $ac_executable_extensions; do
8263  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8266    break 2
8267  fi
8268done
8269done
8270
8271fi
8272fi
8273STRIP=$ac_cv_prog_STRIP
8274if test -n "$STRIP"; then
8275  echo "$as_me:$LINENO: result: $STRIP" >&5
8276echo "${ECHO_T}$STRIP" >&6
8277else
8278  echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6
8280fi
8281
8282fi
8283if test -z "$ac_cv_prog_STRIP"; then
8284  ac_ct_STRIP=$STRIP
8285  # Extract the first word of "strip", so it can be a program name with args.
8286set dummy strip; ac_word=$2
8287echo "$as_me:$LINENO: checking for $ac_word" >&5
8288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8289if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8290  echo $ECHO_N "(cached) $ECHO_C" >&6
8291else
8292  if test -n "$ac_ct_STRIP"; then
8293  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8294else
8295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296for as_dir in $PATH
8297do
8298  IFS=$as_save_IFS
8299  test -z "$as_dir" && as_dir=.
8300  for ac_exec_ext in '' $ac_executable_extensions; do
8301  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302    ac_cv_prog_ac_ct_STRIP="strip"
8303    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8304    break 2
8305  fi
8306done
8307done
8308
8309  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8310fi
8311fi
8312ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8313if test -n "$ac_ct_STRIP"; then
8314  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8315echo "${ECHO_T}$ac_ct_STRIP" >&6
8316else
8317  echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6
8319fi
8320
8321  STRIP=$ac_ct_STRIP
8322else
8323  STRIP="$ac_cv_prog_STRIP"
8324fi
8325
8326
8327old_CC="$CC"
8328old_CFLAGS="$CFLAGS"
8329
8330# Set sane defaults for various variables
8331test -z "$AR" && AR=ar
8332test -z "$AR_FLAGS" && AR_FLAGS=cru
8333test -z "$AS" && AS=as
8334test -z "$CC" && CC=cc
8335test -z "$LTCC" && LTCC=$CC
8336test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8337test -z "$DLLTOOL" && DLLTOOL=dlltool
8338test -z "$LD" && LD=ld
8339test -z "$LN_S" && LN_S="ln -s"
8340test -z "$MAGIC_CMD" && MAGIC_CMD=file
8341test -z "$NM" && NM=nm
8342test -z "$SED" && SED=sed
8343test -z "$OBJDUMP" && OBJDUMP=objdump
8344test -z "$RANLIB" && RANLIB=:
8345test -z "$STRIP" && STRIP=:
8346test -z "$ac_objext" && ac_objext=o
8347
8348# Determine commands to create old-style static archives.
8349old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8350old_postinstall_cmds='chmod 644 $oldlib'
8351old_postuninstall_cmds=
8352
8353if test -n "$RANLIB"; then
8354  case $host_os in
8355  openbsd*)
8356    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8357    ;;
8358  *)
8359    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8360    ;;
8361  esac
8362  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8363fi
8364
8365for cc_temp in $compiler""; do
8366  case $cc_temp in
8367    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8368    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8369    \-*) ;;
8370    *) break;;
8371  esac
8372done
8373cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8374
8375
8376# Only perform the check for file, if the check method requires it
8377case $deplibs_check_method in
8378file_magic*)
8379  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8380    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8381echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8382if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8383  echo $ECHO_N "(cached) $ECHO_C" >&6
8384else
8385  case $MAGIC_CMD in
8386[\\/*] |  ?:[\\/]*)
8387  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8388  ;;
8389*)
8390  lt_save_MAGIC_CMD="$MAGIC_CMD"
8391  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8392  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8393  for ac_dir in $ac_dummy; do
8394    IFS="$lt_save_ifs"
8395    test -z "$ac_dir" && ac_dir=.
8396    if test -f $ac_dir/${ac_tool_prefix}file; then
8397      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8398      if test -n "$file_magic_test_file"; then
8399        case $deplibs_check_method in
8400        "file_magic "*)
8401          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8402          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8403          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8404            $EGREP "$file_magic_regex" > /dev/null; then
8405            :
8406          else
8407            cat <<EOF 1>&2
8408
8409*** Warning: the command libtool uses to detect shared libraries,
8410*** $file_magic_cmd, produces output that libtool cannot recognize.
8411*** The result is that libtool may fail to recognize shared libraries
8412*** as such.  This will affect the creation of libtool libraries that
8413*** depend on shared libraries, but programs linked with such libtool
8414*** libraries will work regardless of this problem.  Nevertheless, you
8415*** may want to report the problem to your system manager and/or to
8416*** bug-libtool@gnu.org
8417
8418EOF
8419          fi ;;
8420        esac
8421      fi
8422      break
8423    fi
8424  done
8425  IFS="$lt_save_ifs"
8426  MAGIC_CMD="$lt_save_MAGIC_CMD"
8427  ;;
8428esac
8429fi
8430
8431MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8432if test -n "$MAGIC_CMD"; then
8433  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8434echo "${ECHO_T}$MAGIC_CMD" >&6
8435else
8436  echo "$as_me:$LINENO: result: no" >&5
8437echo "${ECHO_T}no" >&6
8438fi
8439
8440if test -z "$lt_cv_path_MAGIC_CMD"; then
8441  if test -n "$ac_tool_prefix"; then
8442    echo "$as_me:$LINENO: checking for file" >&5
8443echo $ECHO_N "checking for file... $ECHO_C" >&6
8444if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8445  echo $ECHO_N "(cached) $ECHO_C" >&6
8446else
8447  case $MAGIC_CMD in
8448[\\/*] |  ?:[\\/]*)
8449  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8450  ;;
8451*)
8452  lt_save_MAGIC_CMD="$MAGIC_CMD"
8453  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8454  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8455  for ac_dir in $ac_dummy; do
8456    IFS="$lt_save_ifs"
8457    test -z "$ac_dir" && ac_dir=.
8458    if test -f $ac_dir/file; then
8459      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8460      if test -n "$file_magic_test_file"; then
8461        case $deplibs_check_method in
8462        "file_magic "*)
8463          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8464          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8465          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8466            $EGREP "$file_magic_regex" > /dev/null; then
8467            :
8468          else
8469            cat <<EOF 1>&2
8470
8471*** Warning: the command libtool uses to detect shared libraries,
8472*** $file_magic_cmd, produces output that libtool cannot recognize.
8473*** The result is that libtool may fail to recognize shared libraries
8474*** as such.  This will affect the creation of libtool libraries that
8475*** depend on shared libraries, but programs linked with such libtool
8476*** libraries will work regardless of this problem.  Nevertheless, you
8477*** may want to report the problem to your system manager and/or to
8478*** bug-libtool@gnu.org
8479
8480EOF
8481          fi ;;
8482        esac
8483      fi
8484      break
8485    fi
8486  done
8487  IFS="$lt_save_ifs"
8488  MAGIC_CMD="$lt_save_MAGIC_CMD"
8489  ;;
8490esac
8491fi
8492
8493MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8494if test -n "$MAGIC_CMD"; then
8495  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8496echo "${ECHO_T}$MAGIC_CMD" >&6
8497else
8498  echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6
8500fi
8501
8502  else
8503    MAGIC_CMD=:
8504  fi
8505fi
8506
8507  fi
8508  ;;
8509esac
8510
8511enable_dlopen=no
8512enable_win32_dll=no
8513
8514# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8515if test "${enable_libtool_lock+set}" = set; then
8516  enableval="$enable_libtool_lock"
8517
8518fi;
8519test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8520
8521
8522# Check whether --with-pic or --without-pic was given.
8523if test "${with_pic+set}" = set; then
8524  withval="$with_pic"
8525  pic_mode="$withval"
8526else
8527  pic_mode=default
8528fi;
8529test -z "$pic_mode" && pic_mode=default
8530
8531# Use C for the default configuration in the libtool script
8532tagname=
8533lt_save_CC="$CC"
8534ac_ext=c
8535ac_cpp='$CPP $CPPFLAGS'
8536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8538ac_compiler_gnu=$ac_cv_c_compiler_gnu
8539
8540
8541# Source file extension for C test sources.
8542ac_ext=c
8543
8544# Object file extension for compiled C test sources.
8545objext=o
8546objext=$objext
8547
8548# Code to be used in simple compile tests
8549lt_simple_compile_test_code="int some_variable = 0;\n"
8550
8551# Code to be used in simple link tests
8552lt_simple_link_test_code='int main(){return(0);}\n'
8553
8554
8555# If no C compiler was specified, use CC.
8556LTCC=${LTCC-"$CC"}
8557
8558# If no C compiler flags were specified, use CFLAGS.
8559LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8560
8561# Allow CC to be a program name with arguments.
8562compiler=$CC
8563
8564
8565# save warnings/boilerplate of simple test code
8566ac_outfile=conftest.$ac_objext
8567printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8568eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8569_lt_compiler_boilerplate=`cat conftest.err`
8570$rm conftest*
8571
8572ac_outfile=conftest.$ac_objext
8573printf "$lt_simple_link_test_code" >conftest.$ac_ext
8574eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8575_lt_linker_boilerplate=`cat conftest.err`
8576$rm conftest*
8577
8578
8579## CAVEAT EMPTOR:
8580## There is no encapsulation within the following macros, do not change
8581## the running order or otherwise move them around unless you know exactly
8582## what you are doing...
8583
8584lt_prog_compiler_no_builtin_flag=
8585
8586if test "$GCC" = yes; then
8587  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8588
8589
8590echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8591echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8592if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8593  echo $ECHO_N "(cached) $ECHO_C" >&6
8594else
8595  lt_cv_prog_compiler_rtti_exceptions=no
8596  ac_outfile=conftest.$ac_objext
8597   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8598   lt_compiler_flag="-fno-rtti -fno-exceptions"
8599   # Insert the option either (1) after the last *FLAGS variable, or
8600   # (2) before a word containing "conftest.", or (3) at the end.
8601   # Note that $ac_compile itself does not contain backslashes and begins
8602   # with a dollar sign (not a hyphen), so the echo should work correctly.
8603   # The option is referenced via a variable to avoid confusing sed.
8604   lt_compile=`echo "$ac_compile" | $SED \
8605   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8606   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8607   -e 's:$: $lt_compiler_flag:'`
8608   (eval echo "\"\$as_me:8608: $lt_compile\"" >&5)
8609   (eval "$lt_compile" 2>conftest.err)
8610   ac_status=$?
8611   cat conftest.err >&5
8612   echo "$as_me:8612: \$? = $ac_status" >&5
8613   if (exit $ac_status) && test -s "$ac_outfile"; then
8614     # The compiler can only warn and ignore the option if not recognized
8615     # So say no if there are warnings other than the usual output.
8616     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8617     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8618     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8619       lt_cv_prog_compiler_rtti_exceptions=yes
8620     fi
8621   fi
8622   $rm conftest*
8623
8624fi
8625echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8626echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8627
8628if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8629    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8630else
8631    :
8632fi
8633
8634fi
8635
8636lt_prog_compiler_wl=
8637lt_prog_compiler_pic=
8638lt_prog_compiler_static=
8639
8640echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8641echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8642
8643  if test "$GCC" = yes; then
8644    lt_prog_compiler_wl='-Wl,'
8645    lt_prog_compiler_static='-static'
8646
8647    case $host_os in
8648      aix*)
8649      # All AIX code is PIC.
8650      if test "$host_cpu" = ia64; then
8651        # AIX 5 now supports IA64 processor
8652        lt_prog_compiler_static='-Bstatic'
8653      fi
8654      ;;
8655
8656    amigaos*)
8657      # FIXME: we need at least 68020 code to build shared libraries, but
8658      # adding the `-m68020' flag to GCC prevents building anything better,
8659      # like `-m68040'.
8660      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8661      ;;
8662
8663    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8664      # PIC is the default for these OSes.
8665      ;;
8666
8667    mingw* | pw32* | os2*)
8668      # This hack is so that the source file can tell whether it is being
8669      # built for inclusion in a dll (and should export symbols for example).
8670      lt_prog_compiler_pic='-DDLL_EXPORT'
8671      ;;
8672
8673    darwin* | rhapsody*)
8674      # PIC is the default on this platform
8675      # Common symbols not allowed in MH_DYLIB files
8676      lt_prog_compiler_pic='-fno-common'
8677      ;;
8678
8679    interix3*)
8680      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8681      # Instead, we relocate shared libraries at runtime.
8682      ;;
8683
8684    msdosdjgpp*)
8685      # Just because we use GCC doesn't mean we suddenly get shared libraries
8686      # on systems that don't support them.
8687      lt_prog_compiler_can_build_shared=no
8688      enable_shared=no
8689      ;;
8690
8691    sysv4*MP*)
8692      if test -d /usr/nec; then
8693        lt_prog_compiler_pic=-Kconform_pic
8694      fi
8695      ;;
8696
8697    hpux*)
8698      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8699      # not for PA HP-UX.
8700      case $host_cpu in
8701      hppa*64*|ia64*)
8702        # +Z the default
8703        ;;
8704      *)
8705        lt_prog_compiler_pic='-fPIC'
8706        ;;
8707      esac
8708      ;;
8709
8710    *)
8711      lt_prog_compiler_pic='-fPIC'
8712      ;;
8713    esac
8714  else
8715    # PORTME Check for flag to pass linker flags through the system compiler.
8716    case $host_os in
8717    aix*)
8718      lt_prog_compiler_wl='-Wl,'
8719      if test "$host_cpu" = ia64; then
8720        # AIX 5 now supports IA64 processor
8721        lt_prog_compiler_static='-Bstatic'
8722      else
8723        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8724      fi
8725      ;;
8726      darwin*)
8727        # PIC is the default on this platform
8728        # Common symbols not allowed in MH_DYLIB files
8729       case $cc_basename in
8730         xlc*)
8731         lt_prog_compiler_pic='-qnocommon'
8732         lt_prog_compiler_wl='-Wl,'
8733         ;;
8734       esac
8735       ;;
8736
8737    mingw* | pw32* | os2*)
8738      # This hack is so that the source file can tell whether it is being
8739      # built for inclusion in a dll (and should export symbols for example).
8740      lt_prog_compiler_pic='-DDLL_EXPORT'
8741      ;;
8742
8743    hpux9* | hpux10* | hpux11*)
8744      lt_prog_compiler_wl='-Wl,'
8745      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8746      # not for PA HP-UX.
8747      case $host_cpu in
8748      hppa*64*|ia64*)
8749        # +Z the default
8750        ;;
8751      *)
8752        lt_prog_compiler_pic='+Z'
8753        ;;
8754      esac
8755      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8756      lt_prog_compiler_static='${wl}-a ${wl}archive'
8757      ;;
8758
8759    irix5* | irix6* | nonstopux*)
8760      lt_prog_compiler_wl='-Wl,'
8761      # PIC (with -KPIC) is the default.
8762      lt_prog_compiler_static='-non_shared'
8763      ;;
8764
8765    newsos6)
8766      lt_prog_compiler_pic='-KPIC'
8767      lt_prog_compiler_static='-Bstatic'
8768      ;;
8769
8770    linux*)
8771      case $cc_basename in
8772      icc* | ecc*)
8773        lt_prog_compiler_wl='-Wl,'
8774        lt_prog_compiler_pic='-KPIC'
8775        lt_prog_compiler_static='-static'
8776        ;;
8777      pgcc* | pgf77* | pgf90* | pgf95*)
8778        # Portland Group compilers (*not* the Pentium gcc compiler,
8779        # which looks to be a dead project)
8780        lt_prog_compiler_wl='-Wl,'
8781        lt_prog_compiler_pic='-fpic'
8782        lt_prog_compiler_static='-Bstatic'
8783        ;;
8784      ccc*)
8785        lt_prog_compiler_wl='-Wl,'
8786        # All Alpha code is PIC.
8787        lt_prog_compiler_static='-non_shared'
8788        ;;
8789      esac
8790      ;;
8791
8792    osf3* | osf4* | osf5*)
8793      lt_prog_compiler_wl='-Wl,'
8794      # All OSF/1 code is PIC.
8795      lt_prog_compiler_static='-non_shared'
8796      ;;
8797
8798    solaris*)
8799      lt_prog_compiler_pic='-KPIC'
8800      lt_prog_compiler_static='-Bstatic'
8801      case $cc_basename in
8802      f77* | f90* | f95*)
8803        lt_prog_compiler_wl='-Qoption ld ';;
8804      *)
8805        lt_prog_compiler_wl='-Wl,';;
8806      esac
8807      ;;
8808
8809    sunos4*)
8810      lt_prog_compiler_wl='-Qoption ld '
8811      lt_prog_compiler_pic='-PIC'
8812      lt_prog_compiler_static='-Bstatic'
8813      ;;
8814
8815    sysv4 | sysv4.2uw2* | sysv4.3*)
8816      lt_prog_compiler_wl='-Wl,'
8817      lt_prog_compiler_pic='-KPIC'
8818      lt_prog_compiler_static='-Bstatic'
8819      ;;
8820
8821    sysv4*MP*)
8822      if test -d /usr/nec ;then
8823        lt_prog_compiler_pic='-Kconform_pic'
8824        lt_prog_compiler_static='-Bstatic'
8825      fi
8826      ;;
8827
8828    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8829      lt_prog_compiler_wl='-Wl,'
8830      lt_prog_compiler_pic='-KPIC'
8831      lt_prog_compiler_static='-Bstatic'
8832      ;;
8833
8834    unicos*)
8835      lt_prog_compiler_wl='-Wl,'
8836      lt_prog_compiler_can_build_shared=no
8837      ;;
8838
8839    uts4*)
8840      lt_prog_compiler_pic='-pic'
8841      lt_prog_compiler_static='-Bstatic'
8842      ;;
8843
8844    *)
8845      lt_prog_compiler_can_build_shared=no
8846      ;;
8847    esac
8848  fi
8849
8850echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8851echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8852
8853#
8854# Check to make sure the PIC flag actually works.
8855#
8856if test -n "$lt_prog_compiler_pic"; then
8857
8858echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8859echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8860if test "${lt_prog_compiler_pic_works+set}" = set; then
8861  echo $ECHO_N "(cached) $ECHO_C" >&6
8862else
8863  lt_prog_compiler_pic_works=no
8864  ac_outfile=conftest.$ac_objext
8865   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8866   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8867   # Insert the option either (1) after the last *FLAGS variable, or
8868   # (2) before a word containing "conftest.", or (3) at the end.
8869   # Note that $ac_compile itself does not contain backslashes and begins
8870   # with a dollar sign (not a hyphen), so the echo should work correctly.
8871   # The option is referenced via a variable to avoid confusing sed.
8872   lt_compile=`echo "$ac_compile" | $SED \
8873   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8874   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8875   -e 's:$: $lt_compiler_flag:'`
8876   (eval echo "\"\$as_me:8876: $lt_compile\"" >&5)
8877   (eval "$lt_compile" 2>conftest.err)
8878   ac_status=$?
8879   cat conftest.err >&5
8880   echo "$as_me:8880: \$? = $ac_status" >&5
8881   if (exit $ac_status) && test -s "$ac_outfile"; then
8882     # The compiler can only warn and ignore the option if not recognized
8883     # So say no if there are warnings other than the usual output.
8884     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8885     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8886     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8887       lt_prog_compiler_pic_works=yes
8888     fi
8889   fi
8890   $rm conftest*
8891
8892fi
8893echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8894echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8895
8896if test x"$lt_prog_compiler_pic_works" = xyes; then
8897    case $lt_prog_compiler_pic in
8898     "" | " "*) ;;
8899     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8900     esac
8901else
8902    lt_prog_compiler_pic=
8903     lt_prog_compiler_can_build_shared=no
8904fi
8905
8906fi
8907case $host_os in
8908  # For platforms which do not support PIC, -DPIC is meaningless:
8909  *djgpp*)
8910    lt_prog_compiler_pic=
8911    ;;
8912  *)
8913    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8914    ;;
8915esac
8916
8917#
8918# Check to make sure the static flag actually works.
8919#
8920wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8921echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8922echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8923if test "${lt_prog_compiler_static_works+set}" = set; then
8924  echo $ECHO_N "(cached) $ECHO_C" >&6
8925else
8926  lt_prog_compiler_static_works=no
8927   save_LDFLAGS="$LDFLAGS"
8928   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8929   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8930   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8931     # The linker can only warn and ignore the option if not recognized
8932     # So say no if there are warnings
8933     if test -s conftest.err; then
8934       # Append any errors to the config.log.
8935       cat conftest.err 1>&5
8936       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8937       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8938       if diff conftest.exp conftest.er2 >/dev/null; then
8939         lt_prog_compiler_static_works=yes
8940       fi
8941     else
8942       lt_prog_compiler_static_works=yes
8943     fi
8944   fi
8945   $rm conftest*
8946   LDFLAGS="$save_LDFLAGS"
8947
8948fi
8949echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8950echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8951
8952if test x"$lt_prog_compiler_static_works" = xyes; then
8953    :
8954else
8955    lt_prog_compiler_static=
8956fi
8957
8958
8959echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8960echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8961if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8962  echo $ECHO_N "(cached) $ECHO_C" >&6
8963else
8964  lt_cv_prog_compiler_c_o=no
8965   $rm -r conftest 2>/dev/null
8966   mkdir conftest
8967   cd conftest
8968   mkdir out
8969   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8970
8971   lt_compiler_flag="-o out/conftest2.$ac_objext"
8972   # Insert the option either (1) after the last *FLAGS variable, or
8973   # (2) before a word containing "conftest.", or (3) at the end.
8974   # Note that $ac_compile itself does not contain backslashes and begins
8975   # with a dollar sign (not a hyphen), so the echo should work correctly.
8976   lt_compile=`echo "$ac_compile" | $SED \
8977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8979   -e 's:$: $lt_compiler_flag:'`
8980   (eval echo "\"\$as_me:8980: $lt_compile\"" >&5)
8981   (eval "$lt_compile" 2>out/conftest.err)
8982   ac_status=$?
8983   cat out/conftest.err >&5
8984   echo "$as_me:8984: \$? = $ac_status" >&5
8985   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8986   then
8987     # The compiler can only warn and ignore the option if not recognized
8988     # So say no if there are warnings
8989     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8990     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8991     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8992       lt_cv_prog_compiler_c_o=yes
8993     fi
8994   fi
8995   chmod u+w . 2>&5
8996   $rm conftest*
8997   # SGI C++ compiler will create directory out/ii_files/ for
8998   # template instantiation
8999   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9000   $rm out/* && rmdir out
9001   cd ..
9002   rmdir conftest
9003   $rm conftest*
9004
9005fi
9006echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9007echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9008
9009
9010hard_links="nottested"
9011if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9012  # do not overwrite the value of need_locks provided by the user
9013  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9014echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9015  hard_links=yes
9016  $rm conftest*
9017  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9018  touch conftest.a
9019  ln conftest.a conftest.b 2>&5 || hard_links=no
9020  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9021  echo "$as_me:$LINENO: result: $hard_links" >&5
9022echo "${ECHO_T}$hard_links" >&6
9023  if test "$hard_links" = no; then
9024    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9025echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9026    need_locks=warn
9027  fi
9028else
9029  need_locks=no
9030fi
9031
9032echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9033echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9034
9035  runpath_var=
9036  allow_undefined_flag=
9037  enable_shared_with_static_runtimes=no
9038  archive_cmds=
9039  archive_expsym_cmds=
9040  old_archive_From_new_cmds=
9041  old_archive_from_expsyms_cmds=
9042  export_dynamic_flag_spec=
9043  whole_archive_flag_spec=
9044  thread_safe_flag_spec=
9045  hardcode_libdir_flag_spec=
9046  hardcode_libdir_flag_spec_ld=
9047  hardcode_libdir_separator=
9048  hardcode_direct=no
9049  hardcode_minus_L=no
9050  hardcode_shlibpath_var=unsupported
9051  link_all_deplibs=unknown
9052  hardcode_automatic=no
9053  module_cmds=
9054  module_expsym_cmds=
9055  always_export_symbols=no
9056  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9057  # include_expsyms should be a list of space-separated symbols to be *always*
9058  # included in the symbol list
9059  include_expsyms=
9060  # exclude_expsyms can be an extended regexp of symbols to exclude
9061  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9062  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9063  # as well as any symbol that contains `d'.
9064  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9065  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9066  # platforms (ab)use it in PIC code, but their linkers get confused if
9067  # the symbol is explicitly referenced.  Since portable code cannot
9068  # rely on this symbol name, it's probably fine to never include it in
9069  # preloaded symbol tables.
9070  extract_expsyms_cmds=
9071  # Just being paranoid about ensuring that cc_basename is set.
9072  for cc_temp in $compiler""; do
9073  case $cc_temp in
9074    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9075    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9076    \-*) ;;
9077    *) break;;
9078  esac
9079done
9080cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9081
9082  case $host_os in
9083  cygwin* | mingw* | pw32*)
9084    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9085    # When not using gcc, we currently assume that we are using
9086    # Microsoft Visual C++.
9087    if test "$GCC" != yes; then
9088      with_gnu_ld=no
9089    fi
9090    ;;
9091  interix*)
9092    # we just hope/assume this is gcc and not c89 (= MSVC++)
9093    with_gnu_ld=yes
9094    ;;
9095  openbsd*)
9096    with_gnu_ld=no
9097    ;;
9098  esac
9099
9100  ld_shlibs=yes
9101  if test "$with_gnu_ld" = yes; then
9102    # If archive_cmds runs LD, not CC, wlarc should be empty
9103    wlarc='${wl}'
9104
9105    # Set some defaults for GNU ld with shared library support. These
9106    # are reset later if shared libraries are not supported. Putting them
9107    # here allows them to be overridden if necessary.
9108    runpath_var=LD_RUN_PATH
9109    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9110    export_dynamic_flag_spec='${wl}--export-dynamic'
9111    # ancient GNU ld didn't support --whole-archive et. al.
9112    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9113        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9114      else
9115        whole_archive_flag_spec=
9116    fi
9117    supports_anon_versioning=no
9118    case `$LD -v 2>/dev/null` in
9119      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9120      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9121      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9122      *\ 2.11.*) ;; # other 2.11 versions
9123      *) supports_anon_versioning=yes ;;
9124    esac
9125
9126    # See if GNU ld supports shared libraries.
9127    case $host_os in
9128    aix3* | aix4* | aix5*)
9129      # On AIX/PPC, the GNU linker is very broken
9130      if test "$host_cpu" != ia64; then
9131        ld_shlibs=no
9132        cat <<EOF 1>&2
9133
9134*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9135*** to be unable to reliably create shared libraries on AIX.
9136*** Therefore, libtool is disabling shared libraries support.  If you
9137*** really care for shared libraries, you may want to modify your PATH
9138*** so that a non-GNU linker is found, and then restart.
9139
9140EOF
9141      fi
9142      ;;
9143
9144    amigaos*)
9145      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)'
9146      hardcode_libdir_flag_spec='-L$libdir'
9147      hardcode_minus_L=yes
9148
9149      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9150      # that the semantics of dynamic libraries on AmigaOS, at least up
9151      # to version 4, is to share data among multiple programs linked
9152      # with the same dynamic library.  Since this doesn't match the
9153      # behavior of shared libraries on other platforms, we can't use
9154      # them.
9155      ld_shlibs=no
9156      ;;
9157
9158    beos*)
9159      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9160        allow_undefined_flag=unsupported
9161        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9162        # support --undefined.  This deserves some investigation.  FIXME
9163        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9164      else
9165        ld_shlibs=no
9166      fi
9167      ;;
9168
9169    cygwin* | mingw* | pw32*)
9170      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9171      # as there is no search path for DLLs.
9172      hardcode_libdir_flag_spec='-L$libdir'
9173      allow_undefined_flag=unsupported
9174      always_export_symbols=no
9175      enable_shared_with_static_runtimes=yes
9176      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9177
9178      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9179        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9180        # If the export-symbols file already is a .def file (1st line
9181        # is EXPORTS), use it as is; otherwise, prepend...
9182        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9183          cp $export_symbols $output_objdir/$soname.def;
9184        else
9185          echo EXPORTS > $output_objdir/$soname.def;
9186          cat $export_symbols >> $output_objdir/$soname.def;
9187        fi~
9188        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9189      else
9190        ld_shlibs=no
9191      fi
9192      ;;
9193
9194    interix3*)
9195      hardcode_direct=no
9196      hardcode_shlibpath_var=no
9197      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9198      export_dynamic_flag_spec='${wl}-E'
9199      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9200      # Instead, shared libraries are loaded at an image base (0x10000000 by
9201      # default) and relocated if they conflict, which is a slow very memory
9202      # consuming and fragmenting process.  To avoid this, we pick a random,
9203      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9204      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9205      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9206      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'
9207      ;;
9208
9209    linux*)
9210      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9211        tmp_addflag=
9212        case $cc_basename,$host_cpu in
9213        pgcc*)                          # Portland Group C compiler
9214          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'
9215          tmp_addflag=' $pic_flag'
9216          ;;
9217        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9218          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'
9219          tmp_addflag=' $pic_flag -Mnomain' ;;
9220        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9221          tmp_addflag=' -i_dynamic' ;;
9222        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9223          tmp_addflag=' -i_dynamic -nofor_main' ;;
9224        ifc* | ifort*)                  # Intel Fortran compiler
9225          tmp_addflag=' -nofor_main' ;;
9226        esac
9227        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228
9229        if test $supports_anon_versioning = yes; then
9230          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9231  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9232  $echo "local: *; };" >> $output_objdir/$libname.ver~
9233          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9234        fi
9235      else
9236        ld_shlibs=no
9237      fi
9238      ;;
9239
9240    netbsd*)
9241      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9242        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9243        wlarc=
9244      else
9245        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9247      fi
9248      ;;
9249
9250    solaris*)
9251      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9252        ld_shlibs=no
9253        cat <<EOF 1>&2
9254
9255*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9256*** create shared libraries on Solaris systems.  Therefore, libtool
9257*** is disabling shared libraries support.  We urge you to upgrade GNU
9258*** binutils to release 2.9.1 or newer.  Another option is to modify
9259*** your PATH or compiler configuration so that the native linker is
9260*** used, and then restart.
9261
9262EOF
9263      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9264        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9266      else
9267        ld_shlibs=no
9268      fi
9269      ;;
9270
9271    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9272      case `$LD -v 2>&1` in
9273        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9274        ld_shlibs=no
9275        cat <<_LT_EOF 1>&2
9276
9277*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9278*** reliably create shared libraries on SCO systems.  Therefore, libtool
9279*** is disabling shared libraries support.  We urge you to upgrade GNU
9280*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9281*** your PATH or compiler configuration so that the native linker is
9282*** used, and then restart.
9283
9284_LT_EOF
9285        ;;
9286        *)
9287          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9288            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9289            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9290            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9291          else
9292            ld_shlibs=no
9293          fi
9294        ;;
9295      esac
9296      ;;
9297
9298    sunos4*)
9299      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9300      wlarc=
9301      hardcode_direct=yes
9302      hardcode_shlibpath_var=no
9303      ;;
9304
9305    *)
9306      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9307        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9309      else
9310        ld_shlibs=no
9311      fi
9312      ;;
9313    esac
9314
9315    if test "$ld_shlibs" = no; then
9316      runpath_var=
9317      hardcode_libdir_flag_spec=
9318      export_dynamic_flag_spec=
9319      whole_archive_flag_spec=
9320    fi
9321  else
9322    # PORTME fill in a description of your system's linker (not GNU ld)
9323    case $host_os in
9324    aix3*)
9325      allow_undefined_flag=unsupported
9326      always_export_symbols=yes
9327      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'
9328      # Note: this linker hardcodes the directories in LIBPATH if there
9329      # are no directories specified by -L.
9330      hardcode_minus_L=yes
9331      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9332        # Neither direct hardcoding nor static linking is supported with a
9333        # broken collect2.
9334        hardcode_direct=unsupported
9335      fi
9336      ;;
9337
9338    aix4* | aix5*)
9339      if test "$host_cpu" = ia64; then
9340        # On IA64, the linker does run time linking by default, so we don't
9341        # have to do anything special.
9342        aix_use_runtimelinking=no
9343        exp_sym_flag='-Bexport'
9344        no_entry_flag=""
9345      else
9346        # If we're using GNU nm, then we don't want the "-C" option.
9347        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9348        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9349          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'
9350        else
9351          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'
9352        fi
9353        aix_use_runtimelinking=no
9354
9355        # Test if we are trying to use run time linking or normal
9356        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9357        # need to do runtime linking.
9358        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9359          for ld_flag in $LDFLAGS; do
9360          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9361            aix_use_runtimelinking=yes
9362            break
9363          fi
9364          done
9365          ;;
9366        esac
9367
9368        exp_sym_flag='-bexport'
9369        no_entry_flag='-bnoentry'
9370      fi
9371
9372      # When large executables or shared objects are built, AIX ld can
9373      # have problems creating the table of contents.  If linking a library
9374      # or program results in "error TOC overflow" add -mminimal-toc to
9375      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9376      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9377
9378      archive_cmds=''
9379      hardcode_direct=yes
9380      hardcode_libdir_separator=':'
9381      link_all_deplibs=yes
9382
9383      if test "$GCC" = yes; then
9384        case $host_os in aix4.[012]|aix4.[012].*)
9385        # We only want to do this on AIX 4.2 and lower, the check
9386        # below for broken collect2 doesn't work under 4.3+
9387          collect2name=`${CC} -print-prog-name=collect2`
9388          if test -f "$collect2name" && \
9389           strings "$collect2name" | grep resolve_lib_name >/dev/null
9390          then
9391          # We have reworked collect2
9392          hardcode_direct=yes
9393          else
9394          # We have old collect2
9395          hardcode_direct=unsupported
9396          # It fails to find uninstalled libraries when the uninstalled
9397          # path is not listed in the libpath.  Setting hardcode_minus_L
9398          # to unsupported forces relinking
9399          hardcode_minus_L=yes
9400          hardcode_libdir_flag_spec='-L$libdir'
9401          hardcode_libdir_separator=
9402          fi
9403          ;;
9404        esac
9405        shared_flag='-shared'
9406        if test "$aix_use_runtimelinking" = yes; then
9407          shared_flag="$shared_flag "'${wl}-G'
9408        fi
9409      else
9410        # not using gcc
9411        if test "$host_cpu" = ia64; then
9412        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9413        # chokes on -Wl,-G. The following line is correct:
9414          shared_flag='-G'
9415        else
9416          if test "$aix_use_runtimelinking" = yes; then
9417            shared_flag='${wl}-G'
9418          else
9419            shared_flag='${wl}-bM:SRE'
9420          fi
9421        fi
9422      fi
9423
9424      # It seems that -bexpall does not export symbols beginning with
9425      # underscore (_), so it is better to generate a list of symbols to export.
9426      always_export_symbols=yes
9427      if test "$aix_use_runtimelinking" = yes; then
9428        # Warning - without using the other runtime loading flags (-brtl),
9429        # -berok will link without error, but may produce a broken library.
9430        allow_undefined_flag='-berok'
9431       # Determine the default libpath from the value encoded in an empty executable.
9432       cat >conftest.$ac_ext <<_ACEOF
9433/* confdefs.h.  */
9434_ACEOF
9435cat confdefs.h >>conftest.$ac_ext
9436cat >>conftest.$ac_ext <<_ACEOF
9437/* end confdefs.h.  */
9438
9439int
9440main ()
9441{
9442
9443  ;
9444  return 0;
9445}
9446_ACEOF
9447rm -f conftest.$ac_objext conftest$ac_exeext
9448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449  (eval $ac_link) 2>conftest.er1
9450  ac_status=$?
9451  grep -v '^ *+' conftest.er1 >conftest.err
9452  rm -f conftest.er1
9453  cat conftest.err >&5
9454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455  (exit $ac_status); } &&
9456         { ac_try='test -z "$ac_c_werror_flag"
9457                         || test ! -s conftest.err'
9458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459  (eval $ac_try) 2>&5
9460  ac_status=$?
9461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462  (exit $ac_status); }; } &&
9463         { ac_try='test -s conftest$ac_exeext'
9464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465  (eval $ac_try) 2>&5
9466  ac_status=$?
9467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468  (exit $ac_status); }; }; then
9469
9470aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9471}'`
9472# Check for a 64-bit object if we didn't find anything.
9473if 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; }
9474}'`; fi
9475else
9476  echo "$as_me: failed program was:" >&5
9477sed 's/^/| /' conftest.$ac_ext >&5
9478
9479fi
9480rm -f conftest.err conftest.$ac_objext \
9481      conftest$ac_exeext conftest.$ac_ext
9482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9483
9484       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9485        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"
9486       else
9487        if test "$host_cpu" = ia64; then
9488          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9489          allow_undefined_flag="-z nodefs"
9490          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"
9491        else
9492         # Determine the default libpath from the value encoded in an empty executable.
9493         cat >conftest.$ac_ext <<_ACEOF
9494/* confdefs.h.  */
9495_ACEOF
9496cat confdefs.h >>conftest.$ac_ext
9497cat >>conftest.$ac_ext <<_ACEOF
9498/* end confdefs.h.  */
9499
9500int
9501main ()
9502{
9503
9504  ;
9505  return 0;
9506}
9507_ACEOF
9508rm -f conftest.$ac_objext conftest$ac_exeext
9509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9510  (eval $ac_link) 2>conftest.er1
9511  ac_status=$?
9512  grep -v '^ *+' conftest.er1 >conftest.err
9513  rm -f conftest.er1
9514  cat conftest.err >&5
9515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516  (exit $ac_status); } &&
9517         { ac_try='test -z "$ac_c_werror_flag"
9518                         || test ! -s conftest.err'
9519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520  (eval $ac_try) 2>&5
9521  ac_status=$?
9522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523  (exit $ac_status); }; } &&
9524         { ac_try='test -s conftest$ac_exeext'
9525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526  (eval $ac_try) 2>&5
9527  ac_status=$?
9528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529  (exit $ac_status); }; }; then
9530
9531aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9532}'`
9533# Check for a 64-bit object if we didn't find anything.
9534if 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; }
9535}'`; fi
9536else
9537  echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
9539
9540fi
9541rm -f conftest.err conftest.$ac_objext \
9542      conftest$ac_exeext conftest.$ac_ext
9543if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9544
9545         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9546          # Warning - without using the other run time loading flags,
9547          # -berok will link without error, but may produce a broken library.
9548          no_undefined_flag=' ${wl}-bernotok'
9549          allow_undefined_flag=' ${wl}-berok'
9550          # Exported symbols can be pulled into shared objects from archives
9551          whole_archive_flag_spec='$convenience'
9552          archive_cmds_need_lc=yes
9553          # This is similar to how AIX traditionally builds its shared libraries.
9554          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'
9555        fi
9556      fi
9557      ;;
9558
9559    amigaos*)
9560      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)'
9561      hardcode_libdir_flag_spec='-L$libdir'
9562      hardcode_minus_L=yes
9563      # see comment about different semantics on the GNU ld section
9564      ld_shlibs=no
9565      ;;
9566
9567    bsdi[45]*)
9568      export_dynamic_flag_spec=-rdynamic
9569      ;;
9570
9571    cygwin* | mingw* | pw32*)
9572      # When not using gcc, we currently assume that we are using
9573      # Microsoft Visual C++.
9574      # hardcode_libdir_flag_spec is actually meaningless, as there is
9575      # no search path for DLLs.
9576      hardcode_libdir_flag_spec=' '
9577      allow_undefined_flag=unsupported
9578      # Tell ltmain to make .lib files, not .a files.
9579      libext=lib
9580      # Tell ltmain to make .dll files, not .so files.
9581      shrext_cmds=".dll"
9582      # FIXME: Setting linknames here is a bad hack.
9583      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9584      # The linker will automatically build a .lib file if we build a DLL.
9585      old_archive_From_new_cmds='true'
9586      # FIXME: Should let the user specify the lib program.
9587      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9588      fix_srcfile_path='`cygpath -w "$srcfile"`'
9589      enable_shared_with_static_runtimes=yes
9590      ;;
9591
9592    darwin* | rhapsody*)
9593      case $host_os in
9594        rhapsody* | darwin1.[012])
9595         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9596         ;;
9597       *) # Darwin 1.3 on
9598         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9599           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9600         else
9601           case ${MACOSX_DEPLOYMENT_TARGET} in
9602             10.[012])
9603               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9604               ;;
9605             10.*)
9606               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9607               ;;
9608           esac
9609         fi
9610         ;;
9611      esac
9612      archive_cmds_need_lc=no
9613      hardcode_direct=no
9614      hardcode_automatic=yes
9615      hardcode_shlibpath_var=unsupported
9616      whole_archive_flag_spec=''
9617      link_all_deplibs=yes
9618    if test "$GCC" = yes ; then
9619        output_verbose_link_cmd='echo'
9620        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9621      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9622      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9623      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}'
9624      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}'
9625    else
9626      case $cc_basename in
9627        xlc*)
9628         output_verbose_link_cmd='echo'
9629         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9630         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9631          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9632         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}'
9633          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}'
9634          ;;
9635       *)
9636         ld_shlibs=no
9637          ;;
9638      esac
9639    fi
9640      ;;
9641
9642    dgux*)
9643      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644      hardcode_libdir_flag_spec='-L$libdir'
9645      hardcode_shlibpath_var=no
9646      ;;
9647
9648    freebsd1*)
9649      ld_shlibs=no
9650      ;;
9651
9652    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9653    # support.  Future versions do this automatically, but an explicit c++rt0.o
9654    # does not break anything, and helps significantly (at the cost of a little
9655    # extra space).
9656    freebsd2.2*)
9657      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9658      hardcode_libdir_flag_spec='-R$libdir'
9659      hardcode_direct=yes
9660      hardcode_shlibpath_var=no
9661      ;;
9662
9663    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9664    freebsd2*)
9665      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9666      hardcode_direct=yes
9667      hardcode_minus_L=yes
9668      hardcode_shlibpath_var=no
9669      ;;
9670
9671    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9672    freebsd* | kfreebsd*-gnu | dragonfly*)
9673      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9674      hardcode_libdir_flag_spec='-R$libdir'
9675      hardcode_direct=yes
9676      hardcode_shlibpath_var=no
9677      ;;
9678
9679    hpux9*)
9680      if test "$GCC" = yes; then
9681        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'
9682      else
9683        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'
9684      fi
9685      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9686      hardcode_libdir_separator=:
9687      hardcode_direct=yes
9688
9689      # hardcode_minus_L: Not really in the search PATH,
9690      # but as the default location of the library.
9691      hardcode_minus_L=yes
9692      export_dynamic_flag_spec='${wl}-E'
9693      ;;
9694
9695    hpux10*)
9696      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9697        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9698      else
9699        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9700      fi
9701      if test "$with_gnu_ld" = no; then
9702        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9703        hardcode_libdir_separator=:
9704
9705        hardcode_direct=yes
9706        export_dynamic_flag_spec='${wl}-E'
9707
9708        # hardcode_minus_L: Not really in the search PATH,
9709        # but as the default location of the library.
9710        hardcode_minus_L=yes
9711      fi
9712      ;;
9713
9714    hpux11*)
9715      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9716        case $host_cpu in
9717        hppa*64*)
9718          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9719          ;;
9720        ia64*)
9721          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9722          ;;
9723        *)
9724          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9725          ;;
9726        esac
9727      else
9728        case $host_cpu in
9729        hppa*64*)
9730          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9731          ;;
9732        ia64*)
9733          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9734          ;;
9735        *)
9736          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9737          ;;
9738        esac
9739      fi
9740      if test "$with_gnu_ld" = no; then
9741        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9742        hardcode_libdir_separator=:
9743
9744        case $host_cpu in
9745        hppa*64*|ia64*)
9746          hardcode_libdir_flag_spec_ld='+b $libdir'
9747          hardcode_direct=no
9748          hardcode_shlibpath_var=no
9749          ;;
9750        *)
9751          hardcode_direct=yes
9752          export_dynamic_flag_spec='${wl}-E'
9753
9754          # hardcode_minus_L: Not really in the search PATH,
9755          # but as the default location of the library.
9756          hardcode_minus_L=yes
9757          ;;
9758        esac
9759      fi
9760      ;;
9761
9762    irix5* | irix6* | nonstopux*)
9763      if test "$GCC" = yes; then
9764        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'
9765      else
9766        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'
9767        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9768      fi
9769      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9770      hardcode_libdir_separator=:
9771      link_all_deplibs=yes
9772      ;;
9773
9774    netbsd*)
9775      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9776        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9777      else
9778        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9779      fi
9780      hardcode_libdir_flag_spec='-R$libdir'
9781      hardcode_direct=yes
9782      hardcode_shlibpath_var=no
9783      ;;
9784
9785    newsos6)
9786      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787      hardcode_direct=yes
9788      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9789      hardcode_libdir_separator=:
9790      hardcode_shlibpath_var=no
9791      ;;
9792
9793    openbsd*)
9794      hardcode_direct=yes
9795      hardcode_shlibpath_var=no
9796      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9797        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9798        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9799        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9800        export_dynamic_flag_spec='${wl}-E'
9801      else
9802       case $host_os in
9803         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9804           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9805           hardcode_libdir_flag_spec='-R$libdir'
9806           ;;
9807         *)
9808           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9809           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9810           ;;
9811       esac
9812      fi
9813      ;;
9814
9815    os2*)
9816      hardcode_libdir_flag_spec='-L$libdir'
9817      hardcode_minus_L=yes
9818      allow_undefined_flag=unsupported
9819      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'
9820      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9821      ;;
9822
9823    osf3*)
9824      if test "$GCC" = yes; then
9825        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9826        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'
9827      else
9828        allow_undefined_flag=' -expect_unresolved \*'
9829        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'
9830      fi
9831      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9832      hardcode_libdir_separator=:
9833      ;;
9834
9835    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9836      if test "$GCC" = yes; then
9837        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9838        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'
9839        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9840      else
9841        allow_undefined_flag=' -expect_unresolved \*'
9842        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'
9843        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9844        $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'
9845
9846        # Both c and cxx compiler support -rpath directly
9847        hardcode_libdir_flag_spec='-rpath $libdir'
9848      fi
9849      hardcode_libdir_separator=:
9850      ;;
9851
9852    solaris*)
9853      no_undefined_flag=' -z text'
9854      if test "$GCC" = yes; then
9855        wlarc='${wl}'
9856        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9857        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9858          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9859      else
9860        wlarc=''
9861        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9862        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9863        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9864      fi
9865      hardcode_libdir_flag_spec='-R$libdir'
9866      hardcode_shlibpath_var=no
9867      case $host_os in
9868      solaris2.[0-5] | solaris2.[0-5].*) ;;
9869      *)
9870        # The compiler driver will combine linker options so we
9871        # cannot just pass the convience library names through
9872        # without $wl, iff we do not link with $LD.
9873        # Luckily, gcc supports the same syntax we need for Sun Studio.
9874        # Supported since Solaris 2.6 (maybe 2.5.1?)
9875        case $wlarc in
9876        '')
9877          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9878        *)
9879          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' ;;
9880        esac ;;
9881      esac
9882      link_all_deplibs=yes
9883      ;;
9884
9885    sunos4*)
9886      if test "x$host_vendor" = xsequent; then
9887        # Use $CC to link under sequent, because it throws in some extra .o
9888        # files that make .init and .fini sections work.
9889        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9890      else
9891        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9892      fi
9893      hardcode_libdir_flag_spec='-L$libdir'
9894      hardcode_direct=yes
9895      hardcode_minus_L=yes
9896      hardcode_shlibpath_var=no
9897      ;;
9898
9899    sysv4)
9900      case $host_vendor in
9901        sni)
9902          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903          hardcode_direct=yes # is this really true???
9904        ;;
9905        siemens)
9906          ## LD is ld it makes a PLAMLIB
9907          ## CC just makes a GrossModule.
9908          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9909          reload_cmds='$CC -r -o $output$reload_objs'
9910          hardcode_direct=no
9911        ;;
9912        motorola)
9913          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9915        ;;
9916      esac
9917      runpath_var='LD_RUN_PATH'
9918      hardcode_shlibpath_var=no
9919      ;;
9920
9921    sysv4.3*)
9922      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9923      hardcode_shlibpath_var=no
9924      export_dynamic_flag_spec='-Bexport'
9925      ;;
9926
9927    sysv4*MP*)
9928      if test -d /usr/nec; then
9929        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9930        hardcode_shlibpath_var=no
9931        runpath_var=LD_RUN_PATH
9932        hardcode_runpath_var=yes
9933        ld_shlibs=yes
9934      fi
9935      ;;
9936
9937    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9938      no_undefined_flag='${wl}-z,text'
9939      archive_cmds_need_lc=no
9940      hardcode_shlibpath_var=no
9941      runpath_var='LD_RUN_PATH'
9942
9943      if test "$GCC" = yes; then
9944        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946      else
9947        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9948        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9949      fi
9950      ;;
9951
9952    sysv5* | sco3.2v5* | sco5v6*)
9953      # Note: We can NOT use -z defs as we might desire, because we do not
9954      # link with -lc, and that would cause any symbols used from libc to
9955      # always be unresolved, which means just about no library would
9956      # ever link correctly.  If we're not using GNU ld we use -z text
9957      # though, which does catch some bad symbols but isn't as heavy-handed
9958      # as -z defs.
9959      no_undefined_flag='${wl}-z,text'
9960      allow_undefined_flag='${wl}-z,nodefs'
9961      archive_cmds_need_lc=no
9962      hardcode_shlibpath_var=no
9963      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9964      hardcode_libdir_separator=':'
9965      link_all_deplibs=yes
9966      export_dynamic_flag_spec='${wl}-Bexport'
9967      runpath_var='LD_RUN_PATH'
9968
9969      if test "$GCC" = yes; then
9970        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9971        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9972      else
9973        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9974        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9975      fi
9976      ;;
9977
9978    uts4*)
9979      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980      hardcode_libdir_flag_spec='-L$libdir'
9981      hardcode_shlibpath_var=no
9982      ;;
9983
9984    *)
9985      ld_shlibs=no
9986      ;;
9987    esac
9988  fi
9989
9990echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9991echo "${ECHO_T}$ld_shlibs" >&6
9992test "$ld_shlibs" = no && can_build_shared=no
9993
9994#
9995# Do we need to explicitly link libc?
9996#
9997case "x$archive_cmds_need_lc" in
9998x|xyes)
9999  # Assume -lc should be added
10000  archive_cmds_need_lc=yes
10001
10002  if test "$enable_shared" = yes && test "$GCC" = yes; then
10003    case $archive_cmds in
10004    *'~'*)
10005      # FIXME: we may have to deal with multi-command sequences.
10006      ;;
10007    '$CC '*)
10008      # Test whether the compiler implicitly links with -lc since on some
10009      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10010      # to ld, don't add -lc before -lgcc.
10011      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10012echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10013      $rm conftest*
10014      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10015
10016      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10017  (eval $ac_compile) 2>&5
10018  ac_status=$?
10019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020  (exit $ac_status); } 2>conftest.err; then
10021        soname=conftest
10022        lib=conftest
10023        libobjs=conftest.$ac_objext
10024        deplibs=
10025        wl=$lt_prog_compiler_wl
10026        pic_flag=$lt_prog_compiler_pic
10027        compiler_flags=-v
10028        linker_flags=-v
10029        verstring=
10030        output_objdir=.
10031        libname=conftest
10032        lt_save_allow_undefined_flag=$allow_undefined_flag
10033        allow_undefined_flag=
10034        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10035  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10036  ac_status=$?
10037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038  (exit $ac_status); }
10039        then
10040          archive_cmds_need_lc=no
10041        else
10042          archive_cmds_need_lc=yes
10043        fi
10044        allow_undefined_flag=$lt_save_allow_undefined_flag
10045      else
10046        cat conftest.err 1>&5
10047      fi
10048      $rm conftest*
10049      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10050echo "${ECHO_T}$archive_cmds_need_lc" >&6
10051      ;;
10052    esac
10053  fi
10054  ;;
10055esac
10056
10057echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10058echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10059library_names_spec=
10060libname_spec='lib$name'
10061soname_spec=
10062shrext_cmds=".so"
10063postinstall_cmds=
10064postuninstall_cmds=
10065finish_cmds=
10066finish_eval=
10067shlibpath_var=
10068shlibpath_overrides_runpath=unknown
10069version_type=none
10070dynamic_linker="$host_os ld.so"
10071sys_lib_dlsearch_path_spec="/lib /usr/lib"
10072if test "$GCC" = yes; then
10073  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10074  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10075    # if the path contains ";" then we assume it to be the separator
10076    # otherwise default to the standard path separator (i.e. ":") - it is
10077    # assumed that no part of a normal pathname contains ";" but that should
10078    # okay in the real world where ";" in dirpaths is itself problematic.
10079    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10080  else
10081    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10082  fi
10083else
10084  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10085fi
10086need_lib_prefix=unknown
10087hardcode_into_libs=no
10088
10089# when you set need_version to no, make sure it does not cause -set_version
10090# flags to be left without arguments
10091need_version=unknown
10092
10093case $host_os in
10094aix3*)
10095  version_type=linux
10096  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10097  shlibpath_var=LIBPATH
10098
10099  # AIX 3 has no versioning support, so we append a major version to the name.
10100  soname_spec='${libname}${release}${shared_ext}$major'
10101  ;;
10102
10103aix4* | aix5*)
10104  version_type=linux
10105  need_lib_prefix=no
10106  need_version=no
10107  hardcode_into_libs=yes
10108  if test "$host_cpu" = ia64; then
10109    # AIX 5 supports IA64
10110    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10111    shlibpath_var=LD_LIBRARY_PATH
10112  else
10113    # With GCC up to 2.95.x, collect2 would create an import file
10114    # for dependence libraries.  The import file would start with
10115    # the line `#! .'.  This would cause the generated library to
10116    # depend on `.', always an invalid library.  This was fixed in
10117    # development snapshots of GCC prior to 3.0.
10118    case $host_os in
10119      aix4 | aix4.[01] | aix4.[01].*)
10120      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10121           echo ' yes '
10122           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10123        :
10124      else
10125        can_build_shared=no
10126      fi
10127      ;;
10128    esac
10129    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10130    # soname into executable. Probably we can add versioning support to
10131    # collect2, so additional links can be useful in future.
10132    if test "$aix_use_runtimelinking" = yes; then
10133      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10134      # instead of lib<name>.a to let people know that these are not
10135      # typical AIX shared libraries.
10136      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137    else
10138      # We preserve .a as extension for shared libraries through AIX4.2
10139      # and later when we are not doing run time linking.
10140      library_names_spec='${libname}${release}.a $libname.a'
10141      soname_spec='${libname}${release}${shared_ext}$major'
10142    fi
10143    shlibpath_var=LIBPATH
10144  fi
10145  ;;
10146
10147amigaos*)
10148  library_names_spec='$libname.ixlibrary $libname.a'
10149  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10150  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'
10151  ;;
10152
10153beos*)
10154  library_names_spec='${libname}${shared_ext}'
10155  dynamic_linker="$host_os ld.so"
10156  shlibpath_var=LIBRARY_PATH
10157  ;;
10158
10159bsdi[45]*)
10160  version_type=linux
10161  need_version=no
10162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163  soname_spec='${libname}${release}${shared_ext}$major'
10164  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10165  shlibpath_var=LD_LIBRARY_PATH
10166  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10167  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10168  # the default ld.so.conf also contains /usr/contrib/lib and
10169  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10170  # libtool to hard-code these into programs
10171  ;;
10172
10173cygwin* | mingw* | pw32*)
10174  version_type=windows
10175  shrext_cmds=".dll"
10176  need_version=no
10177  need_lib_prefix=no
10178
10179  case $GCC,$host_os in
10180  yes,cygwin* | yes,mingw* | yes,pw32*)
10181    library_names_spec='$libname.dll.a'
10182    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10183    postinstall_cmds='base_file=`basename \${file}`~
10184      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10185      dldir=$destdir/`dirname \$dlpath`~
10186      test -d \$dldir || mkdir -p \$dldir~
10187      $install_prog $dir/$dlname \$dldir/$dlname~
10188      chmod a+x \$dldir/$dlname'
10189    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10190      dlpath=$dir/\$dldll~
10191       $rm \$dlpath'
10192    shlibpath_overrides_runpath=yes
10193
10194    case $host_os in
10195    cygwin*)
10196      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10197      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10198      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10199      ;;
10200    mingw*)
10201      # MinGW DLLs use traditional 'lib' prefix
10202      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10204      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10205        # It is most probably a Windows format PATH printed by
10206        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10207        # path with ; separators, and with drive letters. We can handle the
10208        # drive letters (cygwin fileutils understands them), so leave them,
10209        # especially as we might pass files found there to a mingw objdump,
10210        # which wouldn't understand a cygwinified path. Ahh.
10211        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10212      else
10213        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10214      fi
10215      ;;
10216    pw32*)
10217      # pw32 DLLs use 'pw' prefix rather than 'lib'
10218      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10219      ;;
10220    esac
10221    ;;
10222
10223  *)
10224    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10225    ;;
10226  esac
10227  dynamic_linker='Win32 ld.exe'
10228  # FIXME: first we should search . and the directory the executable is in
10229  shlibpath_var=PATH
10230  ;;
10231
10232darwin* | rhapsody*)
10233  dynamic_linker="$host_os dyld"
10234  version_type=darwin
10235  need_lib_prefix=no
10236  need_version=no
10237  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10238  soname_spec='${libname}${release}${major}$shared_ext'
10239  shlibpath_overrides_runpath=yes
10240  shlibpath_var=DYLD_LIBRARY_PATH
10241  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10242  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10243  if test "$GCC" = yes; then
10244    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"`
10245  else
10246    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10247  fi
10248  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10249  ;;
10250
10251dgux*)
10252  version_type=linux
10253  need_lib_prefix=no
10254  need_version=no
10255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10256  soname_spec='${libname}${release}${shared_ext}$major'
10257  shlibpath_var=LD_LIBRARY_PATH
10258  ;;
10259
10260freebsd1*)
10261  dynamic_linker=no
10262  ;;
10263
10264kfreebsd*-gnu)
10265  version_type=linux
10266  need_lib_prefix=no
10267  need_version=no
10268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10269  soname_spec='${libname}${release}${shared_ext}$major'
10270  shlibpath_var=LD_LIBRARY_PATH
10271  shlibpath_overrides_runpath=no
10272  hardcode_into_libs=yes
10273  dynamic_linker='GNU ld.so'
10274  ;;
10275
10276freebsd* | dragonfly*)
10277  # DragonFly does not have aout.  When/if they implement a new
10278  # versioning mechanism, adjust this.
10279  if test -x /usr/bin/objformat; then
10280    objformat=`/usr/bin/objformat`
10281  else
10282    case $host_os in
10283    freebsd[123]*) objformat=aout ;;
10284    *) objformat=elf ;;
10285    esac
10286  fi
10287  version_type=freebsd-$objformat
10288  case $version_type in
10289    freebsd-elf*)
10290      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10291      need_version=no
10292      need_lib_prefix=no
10293      ;;
10294    freebsd-*)
10295      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10296      need_version=yes
10297      ;;
10298  esac
10299  shlibpath_var=LD_LIBRARY_PATH
10300  case $host_os in
10301  freebsd2*)
10302    shlibpath_overrides_runpath=yes
10303    ;;
10304  freebsd3.[01]* | freebsdelf3.[01]*)
10305    shlibpath_overrides_runpath=yes
10306    hardcode_into_libs=yes
10307    ;;
10308  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10309  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10310    shlibpath_overrides_runpath=no
10311    hardcode_into_libs=yes
10312    ;;
10313  freebsd*) # from 4.6 on
10314    shlibpath_overrides_runpath=yes
10315    hardcode_into_libs=yes
10316    ;;
10317  esac
10318  ;;
10319
10320gnu*)
10321  version_type=linux
10322  need_lib_prefix=no
10323  need_version=no
10324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10325  soname_spec='${libname}${release}${shared_ext}$major'
10326  shlibpath_var=LD_LIBRARY_PATH
10327  hardcode_into_libs=yes
10328  ;;
10329
10330hpux9* | hpux10* | hpux11*)
10331  # Give a soname corresponding to the major version so that dld.sl refuses to
10332  # link against other versions.
10333  version_type=sunos
10334  need_lib_prefix=no
10335  need_version=no
10336  case $host_cpu in
10337  ia64*)
10338    shrext_cmds='.so'
10339    hardcode_into_libs=yes
10340    dynamic_linker="$host_os dld.so"
10341    shlibpath_var=LD_LIBRARY_PATH
10342    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10343    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344    soname_spec='${libname}${release}${shared_ext}$major'
10345    if test "X$HPUX_IA64_MODE" = X32; then
10346      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10347    else
10348      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10349    fi
10350    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10351    ;;
10352   hppa*64*)
10353     shrext_cmds='.sl'
10354     hardcode_into_libs=yes
10355     dynamic_linker="$host_os dld.sl"
10356     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10357     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359     soname_spec='${libname}${release}${shared_ext}$major'
10360     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10361     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10362     ;;
10363   *)
10364    shrext_cmds='.sl'
10365    dynamic_linker="$host_os dld.sl"
10366    shlibpath_var=SHLIB_PATH
10367    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10368    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369    soname_spec='${libname}${release}${shared_ext}$major'
10370    ;;
10371  esac
10372  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10373  postinstall_cmds='chmod 555 $lib'
10374  ;;
10375
10376interix3*)
10377  version_type=linux
10378  need_lib_prefix=no
10379  need_version=no
10380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10381  soname_spec='${libname}${release}${shared_ext}$major'
10382  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10383  shlibpath_var=LD_LIBRARY_PATH
10384  shlibpath_overrides_runpath=no
10385  hardcode_into_libs=yes
10386  ;;
10387
10388irix5* | irix6* | nonstopux*)
10389  case $host_os in
10390    nonstopux*) version_type=nonstopux ;;
10391    *)
10392        if test "$lt_cv_prog_gnu_ld" = yes; then
10393                version_type=linux
10394        else
10395                version_type=irix
10396        fi ;;
10397  esac
10398  need_lib_prefix=no
10399  need_version=no
10400  soname_spec='${libname}${release}${shared_ext}$major'
10401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10402  case $host_os in
10403  irix5* | nonstopux*)
10404    libsuff= shlibsuff=
10405    ;;
10406  *)
10407    case $LD in # libtool.m4 will add one of these switches to LD
10408    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10409      libsuff= shlibsuff= libmagic=32-bit;;
10410    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10411      libsuff=32 shlibsuff=N32 libmagic=N32;;
10412    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10413      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10414    *) libsuff= shlibsuff= libmagic=never-match;;
10415    esac
10416    ;;
10417  esac
10418  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10419  shlibpath_overrides_runpath=no
10420  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10421  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10422  hardcode_into_libs=yes
10423  ;;
10424
10425# No shared lib support for Linux oldld, aout, or coff.
10426linux*oldld* | linux*aout* | linux*coff*)
10427  dynamic_linker=no
10428  ;;
10429
10430# This must be Linux ELF.
10431linux*)
10432  version_type=linux
10433  need_lib_prefix=no
10434  need_version=no
10435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436  soname_spec='${libname}${release}${shared_ext}$major'
10437  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10438  shlibpath_var=LD_LIBRARY_PATH
10439  shlibpath_overrides_runpath=no
10440  # This implies no fast_install, which is unacceptable.
10441  # Some rework will be needed to allow for fast_install
10442  # before this can be enabled.
10443  hardcode_into_libs=yes
10444
10445  # Append ld.so.conf contents to the search path
10446  if test -f /etc/ld.so.conf; then
10447    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' ' '`
10448    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10449  fi
10450
10451  # We used to test for /lib/ld.so.1 and disable shared libraries on
10452  # powerpc, because MkLinux only supported shared libraries with the
10453  # GNU dynamic linker.  Since this was broken with cross compilers,
10454  # most powerpc-linux boxes support dynamic linking these days and
10455  # people can always --disable-shared, the test was removed, and we
10456  # assume the GNU/Linux dynamic linker is in use.
10457  dynamic_linker='GNU/Linux ld.so'
10458  ;;
10459
10460knetbsd*-gnu)
10461  version_type=linux
10462  need_lib_prefix=no
10463  need_version=no
10464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10465  soname_spec='${libname}${release}${shared_ext}$major'
10466  shlibpath_var=LD_LIBRARY_PATH
10467  shlibpath_overrides_runpath=no
10468  hardcode_into_libs=yes
10469  dynamic_linker='GNU ld.so'
10470  ;;
10471
10472netbsd*)
10473  version_type=sunos
10474  need_lib_prefix=no
10475  need_version=no
10476  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10477    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10478    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10479    dynamic_linker='NetBSD (a.out) ld.so'
10480  else
10481    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10482    soname_spec='${libname}${release}${shared_ext}$major'
10483    dynamic_linker='NetBSD ld.elf_so'
10484  fi
10485  shlibpath_var=LD_LIBRARY_PATH
10486  shlibpath_overrides_runpath=yes
10487  hardcode_into_libs=yes
10488  ;;
10489
10490newsos6)
10491  version_type=linux
10492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493  shlibpath_var=LD_LIBRARY_PATH
10494  shlibpath_overrides_runpath=yes
10495  ;;
10496
10497nto-qnx*)
10498  version_type=linux
10499  need_lib_prefix=no
10500  need_version=no
10501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502  soname_spec='${libname}${release}${shared_ext}$major'
10503  shlibpath_var=LD_LIBRARY_PATH
10504  shlibpath_overrides_runpath=yes
10505  ;;
10506
10507openbsd*)
10508  version_type=sunos
10509  sys_lib_dlsearch_path_spec="/usr/lib"
10510  need_lib_prefix=no
10511  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10512  case $host_os in
10513    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10514    *)                         need_version=no  ;;
10515  esac
10516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10517  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10518  shlibpath_var=LD_LIBRARY_PATH
10519  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10520    case $host_os in
10521      openbsd2.[89] | openbsd2.[89].*)
10522        shlibpath_overrides_runpath=no
10523        ;;
10524      *)
10525        shlibpath_overrides_runpath=yes
10526        ;;
10527      esac
10528  else
10529    shlibpath_overrides_runpath=yes
10530  fi
10531  ;;
10532
10533os2*)
10534  libname_spec='$name'
10535  shrext_cmds=".dll"
10536  need_lib_prefix=no
10537  library_names_spec='$libname${shared_ext} $libname.a'
10538  dynamic_linker='OS/2 ld.exe'
10539  shlibpath_var=LIBPATH
10540  ;;
10541
10542osf3* | osf4* | osf5*)
10543  version_type=osf
10544  need_lib_prefix=no
10545  need_version=no
10546  soname_spec='${libname}${release}${shared_ext}$major'
10547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548  shlibpath_var=LD_LIBRARY_PATH
10549  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10550  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10551  ;;
10552
10553solaris*)
10554  version_type=linux
10555  need_lib_prefix=no
10556  need_version=no
10557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558  soname_spec='${libname}${release}${shared_ext}$major'
10559  shlibpath_var=LD_LIBRARY_PATH
10560  shlibpath_overrides_runpath=yes
10561  hardcode_into_libs=yes
10562  # ldd complains unless libraries are executable
10563  postinstall_cmds='chmod +x $lib'
10564  ;;
10565
10566sunos4*)
10567  version_type=sunos
10568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10569  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10570  shlibpath_var=LD_LIBRARY_PATH
10571  shlibpath_overrides_runpath=yes
10572  if test "$with_gnu_ld" = yes; then
10573    need_lib_prefix=no
10574  fi
10575  need_version=yes
10576  ;;
10577
10578sysv4 | sysv4.3*)
10579  version_type=linux
10580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581  soname_spec='${libname}${release}${shared_ext}$major'
10582  shlibpath_var=LD_LIBRARY_PATH
10583  case $host_vendor in
10584    sni)
10585      shlibpath_overrides_runpath=no
10586      need_lib_prefix=no
10587      export_dynamic_flag_spec='${wl}-Blargedynsym'
10588      runpath_var=LD_RUN_PATH
10589      ;;
10590    siemens)
10591      need_lib_prefix=no
10592      ;;
10593    motorola)
10594      need_lib_prefix=no
10595      need_version=no
10596      shlibpath_overrides_runpath=no
10597      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10598      ;;
10599  esac
10600  ;;
10601
10602sysv4*MP*)
10603  if test -d /usr/nec ;then
10604    version_type=linux
10605    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10606    soname_spec='$libname${shared_ext}.$major'
10607    shlibpath_var=LD_LIBRARY_PATH
10608  fi
10609  ;;
10610
10611sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10612  version_type=freebsd-elf
10613  need_lib_prefix=no
10614  need_version=no
10615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10616  soname_spec='${libname}${release}${shared_ext}$major'
10617  shlibpath_var=LD_LIBRARY_PATH
10618  hardcode_into_libs=yes
10619  if test "$with_gnu_ld" = yes; then
10620    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10621    shlibpath_overrides_runpath=no
10622  else
10623    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10624    shlibpath_overrides_runpath=yes
10625    case $host_os in
10626      sco3.2v5*)
10627        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10628        ;;
10629    esac
10630  fi
10631  sys_lib_dlsearch_path_spec='/usr/lib'
10632  ;;
10633
10634uts4*)
10635  version_type=linux
10636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10637  soname_spec='${libname}${release}${shared_ext}$major'
10638  shlibpath_var=LD_LIBRARY_PATH
10639  ;;
10640
10641*)
10642  dynamic_linker=no
10643  ;;
10644esac
10645echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10646echo "${ECHO_T}$dynamic_linker" >&6
10647test "$dynamic_linker" = no && can_build_shared=no
10648
10649variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10650if test "$GCC" = yes; then
10651  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10652fi
10653
10654echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10655echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10656hardcode_action=
10657if test -n "$hardcode_libdir_flag_spec" || \
10658   test -n "$runpath_var" || \
10659   test "X$hardcode_automatic" = "Xyes" ; then
10660
10661  # We can hardcode non-existant directories.
10662  if test "$hardcode_direct" != no &&
10663     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10664     # have to relink, otherwise we might link with an installed library
10665     # when we should be linking with a yet-to-be-installed one
10666     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10667     test "$hardcode_minus_L" != no; then
10668    # Linking always hardcodes the temporary library directory.
10669    hardcode_action=relink
10670  else
10671    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10672    hardcode_action=immediate
10673  fi
10674else
10675  # We cannot hardcode anything, or else we can only hardcode existing
10676  # directories.
10677  hardcode_action=unsupported
10678fi
10679echo "$as_me:$LINENO: result: $hardcode_action" >&5
10680echo "${ECHO_T}$hardcode_action" >&6
10681
10682if test "$hardcode_action" = relink; then
10683  # Fast installation is not supported
10684  enable_fast_install=no
10685elif test "$shlibpath_overrides_runpath" = yes ||
10686     test "$enable_shared" = no; then
10687  # Fast installation is not necessary
10688  enable_fast_install=needless
10689fi
10690
10691striplib=
10692old_striplib=
10693echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10694echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10695if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10696  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10697  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10698  echo "$as_me:$LINENO: result: yes" >&5
10699echo "${ECHO_T}yes" >&6
10700else
10701# FIXME - insert some real tests, host_os isn't really good enough
10702  case $host_os in
10703   darwin*)
10704       if test -n "$STRIP" ; then
10705         striplib="$STRIP -x"
10706         echo "$as_me:$LINENO: result: yes" >&5
10707echo "${ECHO_T}yes" >&6
10708       else
10709  echo "$as_me:$LINENO: result: no" >&5
10710echo "${ECHO_T}no" >&6
10711fi
10712       ;;
10713   *)
10714  echo "$as_me:$LINENO: result: no" >&5
10715echo "${ECHO_T}no" >&6
10716    ;;
10717  esac
10718fi
10719
10720if test "x$enable_dlopen" != xyes; then
10721  enable_dlopen=unknown
10722  enable_dlopen_self=unknown
10723  enable_dlopen_self_static=unknown
10724else
10725  lt_cv_dlopen=no
10726  lt_cv_dlopen_libs=
10727
10728  case $host_os in
10729  beos*)
10730    lt_cv_dlopen="load_add_on"
10731    lt_cv_dlopen_libs=
10732    lt_cv_dlopen_self=yes
10733    ;;
10734
10735  mingw* | pw32*)
10736    lt_cv_dlopen="LoadLibrary"
10737    lt_cv_dlopen_libs=
10738   ;;
10739
10740  cygwin*)
10741    lt_cv_dlopen="dlopen"
10742    lt_cv_dlopen_