source: ThirdParty/SCIP/releases/1.2.1/configure @ 2985

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

revert r2394:HEAD - releases are not to be modified

  • Property svn:executable set to *
File size: 871.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyScip 1.2.1.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2011-2012 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyScip'
431PACKAGE_TARNAME='thirdpartyscip'
432PACKAGE_VERSION='1.2.1'
433PACKAGE_STRING='ThirdPartyScip 1.2.1'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="scip/src/scip/scip.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SCIP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED SOPLEX_LIBS SOPLEX_CFLAGS SOPLEX_DATA SOPLEX_DEPENDENCIES SOPLEX_LIBS_INSTALLED SOPLEX_CFLAGS_INSTALLED SOPLEX_DATA_INSTALLED SCIPLIB_CFLAGS SCIPLIB_LIBS SCIPLIB_PCLIBS SCIPLIB_PCREQUIRES SCIPLIB_DEPENDENCIES SCIPLIB_CFLAGS_INSTALLED SCIPLIB_LIBS_INSTALLED COIN_HAS_SOPLEX_TRUE COIN_HAS_SOPLEX_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GRBINCDIR GRBLIB COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE QSOINCDIR QSOLIB COIN_HAS_QSO_TRUE COIN_HAS_QSO_FALSE IPOPT_LIBS IPOPT_CFLAGS IPOPT_DATA IPOPT_DEPENDENCIES IPOPT_LIBS_INSTALLED IPOPT_CFLAGS_INSTALLED IPOPT_DATA_INSTALLED COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyScip 1.2.1 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyScip 1.2.1:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-scip compile project SCIP with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100  --disable-pkg-config    disable use of pkg-config (if available)
1101  --disable-interpackage-dependencies
1102                          disables deduction of Makefile dependencies from
1103                          package linker flags
1104  --disable-cplex-libcheck
1105                          skip the link check at configuration time
1106  --disable-mosek-libcheck
1107                          skip the link check at configuration time
1108  --disable-xpress-libcheck
1109                          skip the link check at configuration time
1110  --disable-gurobi-libcheck
1111                          skip the link check at configuration time
1112  --disable-qsopt-libcheck
1113                          skip the link check at configuration time
1114  --disable-scip-threadsafe
1115                          do not build SCIP threadsafe (default=auto)
1116  --disable-zlib          do not compile with compression library zlib
1117  --disable-gmp           do not compile with GNU multiple precision library
1118  --enable-gnu-packages   compile with GNU packages (disabled by default)
1119
1120Optional Packages:
1121  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1122  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1123  --with-scip-verbosity specify the debug verbosity level for project SCIP
1124  --with-scip-checklevel specify the sanity check level for project SCIP
1125  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1126  --with-pic              try to use only PIC/non-PIC objects [default=use
1127                          both]
1128  --with-tags[=TAGS]
1129                          include additional configurations [automatic]
1130  --with-coin-instdir     prefix of installation directory for precompiled
1131                          COIN packages
1132
1133  --with-soplex-lib linker flags for using package SoPlex
1134  --with-soplex-incdir directory with header files for using package SoPlex
1135  --with-soplex-datadir directory with data files for using package SoPlex
1136  --with-clp-lib linker flags for using package Clp
1137  --with-clp-incdir directory with header files for using package Clp
1138  --with-clp-datadir directory with data files for using package Clp
1139  --with-cplex-incdir specify the header file directory for library Cplex
1140  --with-cplex-lib specify the flags used to link with the library Cplex
1141  --with-mosek-incdir specify the header file directory for library Mosek
1142  --with-mosek-lib specify the flags used to link with the library Mosek
1143  --with-xpress-incdir specify the header file directory for library Xpress
1144  --with-xpress-lib specify the flags used to link with the library Xpress
1145  --with-gurobi-incdir specify the header file directory for library Gurobi
1146  --with-gurobi-lib specify the flags used to link with the library Gurobi
1147  --with-qsopt-incdir specify the header file directory for library QSopt
1148  --with-qsopt-lib specify the flags used to link with the library QSopt
1149  --with-scip-lpsolver    specify default LP solver to use in SCIP (soplex,
1150                          clp, cplex, mosek, xpress, gurobi, qsopt, none)
1151  --with-ipopt-lib linker flags for using package Ipopt
1152  --with-ipopt-incdir directory with header files for using package Ipopt
1153  --with-ipopt-datadir directory with data files for using package Ipopt
1154
1155Some influential environment variables:
1156  CDEFS       Additional -D flags to be used when compiling C code.
1157  ADD_CFLAGS  Additional C compiler options
1158  DBG_CFLAGS  Debug C compiler options
1159  OPT_CFLAGS  Optimize C compiler options
1160  CC          C compiler command
1161  CFLAGS      C compiler flags
1162  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1163              nonstandard directory <lib dir>
1164  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1165              headers in a nonstandard directory <include dir>
1166  MPICC       C MPI Compiler
1167  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1168  ADD_CXXFLAGS
1169              Additional C++ compiler options
1170  DBG_CXXFLAGS
1171              Debug C++ compiler options
1172  OPT_CXXFLAGS
1173              Optimize C++ compiler options
1174  CXX         C++ compiler command
1175  CXXFLAGS    C++ compiler flags
1176  MPICXX      C++ MPI Compiler
1177  CPP         C preprocessor
1178  CXXCPP      C++ preprocessor
1179  F77         Fortran 77 compiler command
1180  FFLAGS      Fortran 77 compiler flags
1181  PKG_CONFIG  path to pkg-config utility
1182
1183Use these variables to override the choices made by `configure' or to help
1184it to find libraries and programs with nonstandard names/locations.
1185
1186Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1187_ACEOF
1188fi
1189
1190if test "$ac_init_help" = "recursive"; then
1191  # If there are subdirs, report their specific --help.
1192  ac_popdir=`pwd`
1193  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1194    test -d $ac_dir || continue
1195    ac_builddir=.
1196
1197if test "$ac_dir" != .; then
1198  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1199  # A "../" for each directory in $ac_dir_suffix.
1200  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1201else
1202  ac_dir_suffix= ac_top_builddir=
1203fi
1204
1205case $srcdir in
1206  .)  # No --srcdir option.  We are building in place.
1207    ac_srcdir=.
1208    if test -z "$ac_top_builddir"; then
1209       ac_top_srcdir=.
1210    else
1211       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1212    fi ;;
1213  [\\/]* | ?:[\\/]* )  # Absolute path.
1214    ac_srcdir=$srcdir$ac_dir_suffix;
1215    ac_top_srcdir=$srcdir ;;
1216  *) # Relative path.
1217    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1218    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1219esac
1220
1221# Do not use `cd foo && pwd` to compute absolute paths, because
1222# the directories may not exist.
1223case `pwd` in
1224.) ac_abs_builddir="$ac_dir";;
1225*)
1226  case "$ac_dir" in
1227  .) ac_abs_builddir=`pwd`;;
1228  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1229  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1230  esac;;
1231esac
1232case $ac_abs_builddir in
1233.) ac_abs_top_builddir=${ac_top_builddir}.;;
1234*)
1235  case ${ac_top_builddir}. in
1236  .) ac_abs_top_builddir=$ac_abs_builddir;;
1237  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1238  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1239  esac;;
1240esac
1241case $ac_abs_builddir in
1242.) ac_abs_srcdir=$ac_srcdir;;
1243*)
1244  case $ac_srcdir in
1245  .) ac_abs_srcdir=$ac_abs_builddir;;
1246  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1247  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1248  esac;;
1249esac
1250case $ac_abs_builddir in
1251.) ac_abs_top_srcdir=$ac_top_srcdir;;
1252*)
1253  case $ac_top_srcdir in
1254  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1255  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1256  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1257  esac;;
1258esac
1259
1260    cd $ac_dir
1261    # Check for guested configure; otherwise get Cygnus style configure.
1262    if test -f $ac_srcdir/configure.gnu; then
1263      echo
1264      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1265    elif test -f $ac_srcdir/configure; then
1266      echo
1267      $SHELL $ac_srcdir/configure  --help=recursive
1268    elif test -f $ac_srcdir/configure.ac ||
1269           test -f $ac_srcdir/configure.in; then
1270      echo
1271      $ac_configure --help
1272    else
1273      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1274    fi
1275    cd $ac_popdir
1276  done
1277fi
1278
1279test -n "$ac_init_help" && exit 0
1280if $ac_init_version; then
1281  cat <<\_ACEOF
1282ThirdPartyScip configure 1.2.1
1283generated by GNU Autoconf 2.59
1284
1285Copyright (C) 2003 Free Software Foundation, Inc.
1286This configure script is free software; the Free Software Foundation
1287gives unlimited permission to copy, distribute and modify it.
1288
1289
1290Copyright 2011-2012 Stefan Vigerske and others.
1291All Rights Reserved.
1292This file is part of the open source package COIN-OR which is distributed
1293under the Eclipse Public License.
1294_ACEOF
1295  exit 0
1296fi
1297exec 5>config.log
1298cat >&5 <<_ACEOF
1299This file contains any messages produced by compilers while
1300running configure, to aid debugging if configure makes a mistake.
1301
1302It was created by ThirdPartyScip $as_me 1.2.1, which was
1303generated by GNU Autoconf 2.59.  Invocation command line was
1304
1305  $ $0 $@
1306
1307_ACEOF
1308{
1309cat <<_ASUNAME
1310## --------- ##
1311## Platform. ##
1312## --------- ##
1313
1314hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1315uname -m = `(uname -m) 2>/dev/null || echo unknown`
1316uname -r = `(uname -r) 2>/dev/null || echo unknown`
1317uname -s = `(uname -s) 2>/dev/null || echo unknown`
1318uname -v = `(uname -v) 2>/dev/null || echo unknown`
1319
1320/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1321/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1322
1323/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1324/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1325/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1326hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1327/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1328/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1329/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1330
1331_ASUNAME
1332
1333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334for as_dir in $PATH
1335do
1336  IFS=$as_save_IFS
1337  test -z "$as_dir" && as_dir=.
1338  echo "PATH: $as_dir"
1339done
1340
1341} >&5
1342
1343cat >&5 <<_ACEOF
1344
1345
1346## ----------- ##
1347## Core tests. ##
1348## ----------- ##
1349
1350_ACEOF
1351
1352
1353# Keep a trace of the command line.
1354# Strip out --no-create and --no-recursion so they do not pile up.
1355# Strip out --silent because we don't want to record it for future runs.
1356# Also quote any args containing shell meta-characters.
1357# Make two passes to allow for proper duplicate-argument suppression.
1358ac_configure_args=
1359ac_configure_args0=
1360ac_configure_args1=
1361ac_sep=
1362ac_must_keep_next=false
1363for ac_pass in 1 2
1364do
1365  for ac_arg
1366  do
1367    case $ac_arg in
1368    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1369    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1370    | -silent | --silent | --silen | --sile | --sil)
1371      continue ;;
1372    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1373      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1374    esac
1375    case $ac_pass in
1376    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1377    2)
1378      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1379      if test $ac_must_keep_next = true; then
1380        ac_must_keep_next=false # Got value, back to normal.
1381      else
1382        case $ac_arg in
1383          *=* | --config-cache | -C | -disable-* | --disable-* \
1384          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1385          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1386          | -with-* | --with-* | -without-* | --without-* | --x)
1387            case "$ac_configure_args0 " in
1388              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1389            esac
1390            ;;
1391          -* ) ac_must_keep_next=true ;;
1392        esac
1393      fi
1394      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1395      # Get rid of the leading space.
1396      ac_sep=" "
1397      ;;
1398    esac
1399  done
1400done
1401$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1402$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1403
1404# When interrupted or exit'd, cleanup temporary files, and complete
1405# config.log.  We remove comments because anyway the quotes in there
1406# would cause problems or look ugly.
1407# WARNING: Be sure not to use single quotes in there, as some shells,
1408# such as our DU 5.0 friend, will then `close' the trap.
1409trap 'exit_status=$?
1410  # Save into config.log some information that might help in debugging.
1411  {
1412    echo
1413
1414    cat <<\_ASBOX
1415## ---------------- ##
1416## Cache variables. ##
1417## ---------------- ##
1418_ASBOX
1419    echo
1420    # The following way of writing the cache mishandles newlines in values,
1421{
1422  (set) 2>&1 |
1423    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1424    *ac_space=\ *)
1425      sed -n \
1426        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1427          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1428      ;;
1429    *)
1430      sed -n \
1431        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1432      ;;
1433    esac;
1434}
1435    echo
1436
1437    cat <<\_ASBOX
1438## ----------------- ##
1439## Output variables. ##
1440## ----------------- ##
1441_ASBOX
1442    echo
1443    for ac_var in $ac_subst_vars
1444    do
1445      eval ac_val=$`echo $ac_var`
1446      echo "$ac_var='"'"'$ac_val'"'"'"
1447    done | sort
1448    echo
1449
1450    if test -n "$ac_subst_files"; then
1451      cat <<\_ASBOX
1452## ------------- ##
1453## Output files. ##
1454## ------------- ##
1455_ASBOX
1456      echo
1457      for ac_var in $ac_subst_files
1458      do
1459        eval ac_val=$`echo $ac_var`
1460        echo "$ac_var='"'"'$ac_val'"'"'"
1461      done | sort
1462      echo
1463    fi
1464
1465    if test -s confdefs.h; then
1466      cat <<\_ASBOX
1467## ----------- ##
1468## confdefs.h. ##
1469## ----------- ##
1470_ASBOX
1471      echo
1472      sed "/^$/d" confdefs.h | sort
1473      echo
1474    fi
1475    test "$ac_signal" != 0 &&
1476      echo "$as_me: caught signal $ac_signal"
1477    echo "$as_me: exit $exit_status"
1478  } >&5
1479  rm -f core *.core &&
1480  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1481    exit $exit_status
1482     ' 0
1483for ac_signal in 1 2 13 15; do
1484  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1485done
1486ac_signal=0
1487
1488# confdefs.h avoids OS command line length limits that DEFS can exceed.
1489rm -rf conftest* confdefs.h
1490# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1491echo >confdefs.h
1492
1493# Predefined preprocessor variables.
1494
1495cat >>confdefs.h <<_ACEOF
1496#define PACKAGE_NAME "$PACKAGE_NAME"
1497_ACEOF
1498
1499
1500cat >>confdefs.h <<_ACEOF
1501#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1502_ACEOF
1503
1504
1505cat >>confdefs.h <<_ACEOF
1506#define PACKAGE_VERSION "$PACKAGE_VERSION"
1507_ACEOF
1508
1509
1510cat >>confdefs.h <<_ACEOF
1511#define PACKAGE_STRING "$PACKAGE_STRING"
1512_ACEOF
1513
1514
1515cat >>confdefs.h <<_ACEOF
1516#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1517_ACEOF
1518
1519
1520# Let the site file select an alternate cache file if it wants to.
1521# Prefer explicitly selected file to automatically selected ones.
1522if test -z "$CONFIG_SITE"; then
1523  if test "x$prefix" != xNONE; then
1524    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1525  else
1526    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1527  fi
1528fi
1529for ac_site_file in $CONFIG_SITE; do
1530  if test -r "$ac_site_file"; then
1531    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1532echo "$as_me: loading site script $ac_site_file" >&6;}
1533    sed 's/^/| /' "$ac_site_file" >&5
1534    . "$ac_site_file"
1535  fi
1536done
1537
1538if test -r "$cache_file"; then
1539  # Some versions of bash will fail to source /dev/null (special
1540  # files actually), so we avoid doing that.
1541  if test -f "$cache_file"; then
1542    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1543echo "$as_me: loading cache $cache_file" >&6;}
1544    case $cache_file in
1545      [\\/]* | ?:[\\/]* ) . $cache_file;;
1546      *)                      . ./$cache_file;;
1547    esac
1548  fi
1549else
1550  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1551echo "$as_me: creating cache $cache_file" >&6;}
1552  >$cache_file
1553fi
1554
1555# Check that the precious variables saved in the cache have kept the same
1556# value.
1557ac_cache_corrupted=false
1558for ac_var in `(set) 2>&1 |
1559               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1560  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1561  eval ac_new_set=\$ac_env_${ac_var}_set
1562  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1563  eval ac_new_val="\$ac_env_${ac_var}_value"
1564  case $ac_old_set,$ac_new_set in
1565    set,)
1566      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1567echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1568      ac_cache_corrupted=: ;;
1569    ,set)
1570      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1571echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1572      ac_cache_corrupted=: ;;
1573    ,);;
1574    *)
1575      if test "x$ac_old_val" != "x$ac_new_val"; then
1576        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1577echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1578        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1579echo "$as_me:   former value:  $ac_old_val" >&2;}
1580        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1581echo "$as_me:   current value: $ac_new_val" >&2;}
1582        ac_cache_corrupted=:
1583      fi;;
1584  esac
1585  # Pass precious variables to config.status.
1586  if test "$ac_new_set" = set; then
1587    case $ac_new_val in
1588    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1589      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1590    *) ac_arg=$ac_var=$ac_new_val ;;
1591    esac
1592    case " $ac_configure_args " in
1593      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1594      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1595    esac
1596  fi
1597done
1598if $ac_cache_corrupted; then
1599  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1600echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1601  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1602echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1603   { (exit 1); exit 1; }; }
1604fi
1605
1606ac_ext=c
1607ac_cpp='$CPP $CPPFLAGS'
1608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1610ac_compiler_gnu=$ac_cv_c_compiler_gnu
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641# List one file in the package so that the configure script can test
1642# whether the package is actually there
1643
1644
1645# Where should everything be installed by default?  Here, we want it
1646# to be installed directly in 'bin', 'lib', 'include' subdirectories
1647# of the directory where configure is run.  The default would be
1648# /usr/local.
1649
1650
1651
1652# As backup, we make sure we don't loose an FLIBS if it has been set
1653# by the user
1654save_FLIBS="$FLIBS"
1655
1656# A useful makefile conditional that is always false
1657
1658
1659if false; then
1660  ALWAYS_FALSE_TRUE=
1661  ALWAYS_FALSE_FALSE='#'
1662else
1663  ALWAYS_FALSE_TRUE='#'
1664  ALWAYS_FALSE_FALSE=
1665fi
1666
1667
1668# We set the following variable so that we know later in AC_COIN_FINALIZE
1669# that we are in a project main directory
1670coin_projectdir=yes
1671
1672# Set the project's version numbers
1673
1674
1675cat >>confdefs.h <<_ACEOF
1676#define SCIP_VERSION "$PACKAGE_VERSION"
1677_ACEOF
1678
1679
1680  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1681  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1682  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1683  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1684  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1685  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1686
1687cat >>confdefs.h <<_ACEOF
1688#define SCIP_VERSION_MAJOR $coin_majorver
1689_ACEOF
1690
1691
1692cat >>confdefs.h <<_ACEOF
1693#define SCIP_VERSION_MINOR $coin_minorver
1694_ACEOF
1695
1696
1697cat >>confdefs.h <<_ACEOF
1698#define SCIP_VERSION_RELEASE $coin_releasever
1699_ACEOF
1700
1701
1702  # We use the following variable to have a string with the upper case
1703  # version of the project name
1704  COIN_PRJCT=SCIP
1705
1706  # Set the project's SVN revision number. The complicated sed expression
1707  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1708  # as a single number.
1709  # Extract the first word of "svnversion", so it can be a program name with args.
1710set dummy svnversion; ac_word=$2
1711echo "$as_me:$LINENO: checking for $ac_word" >&5
1712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713if test "${ac_cv_prog_have_svnversion+set}" = set; then
1714  echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716  if test -n "$have_svnversion"; then
1717  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1718else
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722  IFS=$as_save_IFS
1723  test -z "$as_dir" && as_dir=.
1724  for ac_exec_ext in '' $ac_executable_extensions; do
1725  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726    ac_cv_prog_have_svnversion="yes"
1727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728    break 2
1729  fi
1730done
1731done
1732
1733  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1734fi
1735fi
1736have_svnversion=$ac_cv_prog_have_svnversion
1737if test -n "$have_svnversion"; then
1738  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1739echo "${ECHO_T}$have_svnversion" >&6
1740else
1741  echo "$as_me:$LINENO: result: no" >&5
1742echo "${ECHO_T}no" >&6
1743fi
1744
1745  if test "x$have_svnversion" = xyes; then
1746
1747    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1748    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1749      SCIP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1750
1751cat >>confdefs.h <<_ACEOF
1752#define SCIP_SVN_REV $SCIP_SVN_REV
1753_ACEOF
1754
1755    fi
1756  fi
1757
1758
1759
1760# Capture libtool library version, if given.
1761 coin_libversion=3:1:2
1762
1763
1764
1765
1766#############################################################################
1767#                         Standard build tool stuff                         #
1768#############################################################################
1769
1770# Get the system type
1771ac_aux_dir=
1772for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1773  if test -f $ac_dir/install-sh; then
1774    ac_aux_dir=$ac_dir
1775    ac_install_sh="$ac_aux_dir/install-sh -c"
1776    break
1777  elif test -f $ac_dir/install.sh; then
1778    ac_aux_dir=$ac_dir
1779    ac_install_sh="$ac_aux_dir/install.sh -c"
1780    break
1781  elif test -f $ac_dir/shtool; then
1782    ac_aux_dir=$ac_dir
1783    ac_install_sh="$ac_aux_dir/shtool install -c"
1784    break
1785  fi
1786done
1787if test -z "$ac_aux_dir"; then
1788  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1789echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1790   { (exit 1); exit 1; }; }
1791fi
1792ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1793ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1794ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1795
1796# Make sure we can run config.sub.
1797$ac_config_sub sun4 >/dev/null 2>&1 ||
1798  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1799echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1800   { (exit 1); exit 1; }; }
1801
1802echo "$as_me:$LINENO: checking build system type" >&5
1803echo $ECHO_N "checking build system type... $ECHO_C" >&6
1804if test "${ac_cv_build+set}" = set; then
1805  echo $ECHO_N "(cached) $ECHO_C" >&6
1806else
1807  ac_cv_build_alias=$build_alias
1808test -z "$ac_cv_build_alias" &&
1809  ac_cv_build_alias=`$ac_config_guess`
1810test -z "$ac_cv_build_alias" &&
1811  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1812echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1813   { (exit 1); exit 1; }; }
1814ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1815  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1816echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1817   { (exit 1); exit 1; }; }
1818
1819fi
1820echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1821echo "${ECHO_T}$ac_cv_build" >&6
1822build=$ac_cv_build
1823build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1824build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1825build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1826
1827
1828
1829# Check if user wants to produce debugging code
1830
1831echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1832echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1833
1834# Check whether --enable-debug or --disable-debug was given.
1835if test "${enable_debug+set}" = set; then
1836  enableval="$enable_debug"
1837  case "${enableval}" in
1838   yes) coin_debug_compile=true
1839        if test "${enable_shared+set}" = set; then :; else
1840          enable_shared=no
1841        fi
1842        ;;
1843   no)  coin_debug_compile=false
1844        ;;
1845   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1846echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1847   { (exit 1); exit 1; }; }
1848        ;;
1849esac
1850else
1851  coin_debug_compile=false
1852fi;
1853
1854# Check whether --enable-debug-scip or --disable-debug-scip was given.
1855if test "${enable_debug_scip+set}" = set; then
1856  enableval="$enable_debug_scip"
1857  case "${enableval}" in
1858    yes) coin_debug_compile=true
1859         ;;
1860    no)  coin_debug_compile=false
1861         ;;
1862    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-scip" >&5
1863echo "$as_me: error: bad value ${enableval} for --enable-debug-scip" >&2;}
1864   { (exit 1); exit 1; }; }
1865         ;;
1866 esac
1867else
1868  :
1869fi;
1870
1871 # m4_ifvaln([SCIP],
1872
1873if test $coin_debug_compile = true; then
1874  echo "$as_me:$LINENO: result: yes" >&5
1875echo "${ECHO_T}yes" >&6
1876else
1877  echo "$as_me:$LINENO: result: no" >&5
1878echo "${ECHO_T}no" >&6
1879fi
1880
1881
1882# Check whether --with-scip-verbosity or --without-scip-verbosity was given.
1883if test "${with_scip_verbosity+set}" = set; then
1884  withval="$with_scip_verbosity"
1885  if test "$withval" = yes; then
1886                withval=1
1887              fi
1888              coin_scip_verbosity=$withval
1889else
1890  coin_scip_verbosity=0
1891fi;
1892
1893cat >>confdefs.h <<_ACEOF
1894#define COIN_SCIP_VERBOSITY $coin_scip_verbosity
1895_ACEOF
1896
1897
1898
1899# Check whether --with-scip-checklevel or --without-scip-checklevel was given.
1900if test "${with_scip_checklevel+set}" = set; then
1901  withval="$with_scip_checklevel"
1902  if test "$withval" = yes; then
1903                withval=1
1904              fi
1905              coin_scip_checklevel=$withval
1906else
1907  coin_scip_checklevel=0
1908fi;
1909
1910cat >>confdefs.h <<_ACEOF
1911#define COIN_SCIP_CHECKLEVEL $coin_scip_checklevel
1912_ACEOF
1913
1914
1915 # m4_ifvaln([SCIP],
1916
1917
1918
1919# Get the name of the C compiler and appropriate compiler options
1920case $build in
1921  *-mingw*)
1922    if test "${LD+set}" = set; then :; else
1923      LD=link
1924    fi
1925    ;;
1926 esac
1927 case $enable_doscompile in
1928   msvc)
1929     if test "x${LD+set}" = xset; then :; else
1930       LD=link
1931     fi
1932     ;;
1933 esac
1934
1935
1936 # Check whether --enable-doscompile or --disable-doscompile was given.
1937if test "${enable_doscompile+set}" = set; then
1938  enableval="$enable_doscompile"
1939  if test "$enable_doscompile" != no; then
1940     case $build in
1941       *-cygwin* | *-mingw*) ;;
1942       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1943echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1944   { (exit 1); exit 1; }; } ;;
1945     esac
1946   fi
1947else
1948  enable_doscompile=no
1949fi;
1950 case "$enable_doscompile" in
1951   mingw)
1952     case $build in
1953       *-mingw*) enable_doscompile=no ;;
1954     esac
1955     ;;
1956   msvc|no) ;;
1957   yes) enable_doscompile=mingw ;;
1958   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1959                    Try configure --help=recursive." >&5
1960echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1961                    Try configure --help=recursive." >&2;}
1962   { (exit 1); exit 1; }; }
1963      ;;
1964  esac
1965  if test "$enable_doscompile" != no ; then
1966    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1967echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1968  fi
1969
1970
1971
1972
1973ac_ext=c
1974ac_cpp='$CPP $CPPFLAGS'
1975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978
1979
1980# For consistency, we set the C compiler to the same value of the C++
1981# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1982if test x"$CXX" != x; then
1983  case "$CXX" in
1984    clang* ) ;;
1985    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1986      if test x"$CC" = x; then
1987        CC="$CXX"
1988        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1989echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1990      fi
1991      ;;
1992  esac
1993fi
1994
1995
1996
1997
1998
1999
2000coin_has_cc=yes
2001
2002save_cflags="$CFLAGS"
2003
2004# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2005# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2006# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2007# compiler. In this case, put cc after gcc.
2008
2009case $build in
2010  *-cygwin* | *-mingw*)
2011             if test "$enable_doscompile" = msvc ; then
2012               comps="icl cl"
2013             else
2014               comps="gcc cl"
2015             fi ;;
2016  *-*-solaris*)
2017             # Extract the first word of "cc", so it can be a program name with args.
2018set dummy cc; ac_word=$2
2019echo "$as_me:$LINENO: checking for $ac_word" >&5
2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2022  echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024  if test -n "$sol_cc_compiler"; then
2025  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2026else
2027  ac_prog_rejected=no
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031  IFS=$as_save_IFS
2032  test -z "$as_dir" && as_dir=.
2033  for ac_exec_ext in '' $ac_executable_extensions; do
2034  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2036       ac_prog_rejected=yes
2037       continue
2038     fi
2039    ac_cv_prog_sol_cc_compiler="cc"
2040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041    break 2
2042  fi
2043done
2044done
2045
2046if test $ac_prog_rejected = yes; then
2047  # We found a bogon in the path, so make sure we never use it.
2048  set dummy $ac_cv_prog_sol_cc_compiler
2049  shift
2050  if test $# != 0; then
2051    # We chose a different compiler from the bogus one.
2052    # However, it has the same basename, so the bogon will be chosen
2053    # first if we set sol_cc_compiler to just the basename; use the full file name.
2054    shift
2055    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2056  fi
2057fi
2058fi
2059fi
2060sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2061if test -n "$sol_cc_compiler"; then
2062  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2063echo "${ECHO_T}$sol_cc_compiler" >&6
2064else
2065  echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6
2067fi
2068
2069             if test "$sol_cc_compiler" = "cc" ; then
2070               comps="cc xlc gcc pgcc icc"
2071             else
2072               comps="xlc gcc pgcc icc cc"
2073             fi
2074             ;;
2075  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2076  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2077  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2078esac
2079
2080# We delete the cached value, since the test might not have been
2081# performed with our choice of compilers earlier
2082$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2083# AC_MSG_NOTICE([C compiler candidates: $comps])
2084ac_ext=c
2085ac_cpp='$CPP $CPPFLAGS'
2086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089if test -n "$ac_tool_prefix"; then
2090  for ac_prog in $comps
2091  do
2092    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2094echo "$as_me:$LINENO: checking for $ac_word" >&5
2095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096if test "${ac_cv_prog_CC+set}" = set; then
2097  echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099  if test -n "$CC"; then
2100  ac_cv_prog_CC="$CC" # Let the user override the test.
2101else
2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105  IFS=$as_save_IFS
2106  test -z "$as_dir" && as_dir=.
2107  for ac_exec_ext in '' $ac_executable_extensions; do
2108  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111    break 2
2112  fi
2113done
2114done
2115
2116fi
2117fi
2118CC=$ac_cv_prog_CC
2119if test -n "$CC"; then
2120  echo "$as_me:$LINENO: result: $CC" >&5
2121echo "${ECHO_T}$CC" >&6
2122else
2123  echo "$as_me:$LINENO: result: no" >&5
2124echo "${ECHO_T}no" >&6
2125fi
2126
2127    test -n "$CC" && break
2128  done
2129fi
2130if test -z "$CC"; then
2131  ac_ct_CC=$CC
2132  for ac_prog in $comps
2133do
2134  # Extract the first word of "$ac_prog", so it can be a program name with args.
2135set dummy $ac_prog; ac_word=$2
2136echo "$as_me:$LINENO: checking for $ac_word" >&5
2137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139  echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141  if test -n "$ac_ct_CC"; then
2142  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143else
2144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147  IFS=$as_save_IFS
2148  test -z "$as_dir" && as_dir=.
2149  for ac_exec_ext in '' $ac_executable_extensions; do
2150  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151    ac_cv_prog_ac_ct_CC="$ac_prog"
2152    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153    break 2
2154  fi
2155done
2156done
2157
2158fi
2159fi
2160ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161if test -n "$ac_ct_CC"; then
2162  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163echo "${ECHO_T}$ac_ct_CC" >&6
2164else
2165  echo "$as_me:$LINENO: result: no" >&5
2166echo "${ECHO_T}no" >&6
2167fi
2168
2169  test -n "$ac_ct_CC" && break
2170done
2171
2172  CC=$ac_ct_CC
2173fi
2174
2175
2176test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2177See \`config.log' for more details." >&5
2178echo "$as_me: error: no acceptable C compiler found in \$PATH
2179See \`config.log' for more details." >&2;}
2180   { (exit 1); exit 1; }; }
2181
2182# Provide some information about the compiler.
2183echo "$as_me:$LINENO:" \
2184     "checking for C compiler version" >&5
2185ac_compiler=`set X $ac_compile; echo $2`
2186{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2187  (eval $ac_compiler --version </dev/null >&5) 2>&5
2188  ac_status=$?
2189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190  (exit $ac_status); }
2191{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2192  (eval $ac_compiler -v </dev/null >&5) 2>&5
2193  ac_status=$?
2194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195  (exit $ac_status); }
2196{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2197  (eval $ac_compiler -V </dev/null >&5) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }
2201
2202cat >conftest.$ac_ext <<_ACEOF
2203/* confdefs.h.  */
2204_ACEOF
2205cat confdefs.h >>conftest.$ac_ext
2206cat >>conftest.$ac_ext <<_ACEOF
2207/* end confdefs.h.  */
2208
2209int
2210main ()
2211{
2212
2213  ;
2214  return 0;
2215}
2216_ACEOF
2217ac_clean_files_save=$ac_clean_files
2218ac_clean_files="$ac_clean_files a.out a.exe b.out"
2219# Try to create an executable without -o first, disregard a.out.
2220# It will help us diagnose broken compilers, and finding out an intuition
2221# of exeext.
2222echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2223echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2224ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2225if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2226  (eval $ac_link_default) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }; then
2230  # Find the output, starting from the most likely.  This scheme is
2231# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2232# resort.
2233
2234# Be careful to initialize this variable, since it used to be cached.
2235# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2236ac_cv_exeext=
2237# b.out is created by i960 compilers.
2238for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2239do
2240  test -f "$ac_file" || continue
2241  case $ac_file in
2242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2243        ;;
2244    conftest.$ac_ext )
2245        # This is the source file.
2246        ;;
2247    [ab].out )
2248        # We found the default executable, but exeext='' is most
2249        # certainly right.
2250        break;;
2251    *.* )
2252        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253        # FIXME: I believe we export ac_cv_exeext for Libtool,
2254        # but it would be cool to find out if it's true.  Does anybody
2255        # maintain Libtool? --akim.
2256        export ac_cv_exeext
2257        break;;
2258    * )
2259        break;;
2260  esac
2261done
2262else
2263  echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2267See \`config.log' for more details." >&5
2268echo "$as_me: error: C compiler cannot create executables
2269See \`config.log' for more details." >&2;}
2270   { (exit 77); exit 77; }; }
2271fi
2272
2273ac_exeext=$ac_cv_exeext
2274echo "$as_me:$LINENO: result: $ac_file" >&5
2275echo "${ECHO_T}$ac_file" >&6
2276
2277# Check the compiler produces executables we can run.  If not, either
2278# the compiler is broken, or we cross compile.
2279echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2280echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2281# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2282# If not cross compiling, check that we can run a simple program.
2283if test "$cross_compiling" != yes; then
2284  if { ac_try='./$ac_file'
2285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286  (eval $ac_try) 2>&5
2287  ac_status=$?
2288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289  (exit $ac_status); }; }; then
2290    cross_compiling=no
2291  else
2292    if test "$cross_compiling" = maybe; then
2293        cross_compiling=yes
2294    else
2295        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2296If you meant to cross compile, use \`--host'.
2297See \`config.log' for more details." >&5
2298echo "$as_me: error: cannot run C compiled programs.
2299If you meant to cross compile, use \`--host'.
2300See \`config.log' for more details." >&2;}
2301   { (exit 1); exit 1; }; }
2302    fi
2303  fi
2304fi
2305echo "$as_me:$LINENO: result: yes" >&5
2306echo "${ECHO_T}yes" >&6
2307
2308rm -f a.out a.exe conftest$ac_cv_exeext b.out
2309ac_clean_files=$ac_clean_files_save
2310# Check the compiler produces executables we can run.  If not, either
2311# the compiler is broken, or we cross compile.
2312echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2313echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2314echo "$as_me:$LINENO: result: $cross_compiling" >&5
2315echo "${ECHO_T}$cross_compiling" >&6
2316
2317echo "$as_me:$LINENO: checking for suffix of executables" >&5
2318echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2320  (eval $ac_link) 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }; then
2324  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2325# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2326# work properly (i.e., refer to `conftest.exe'), while it won't with
2327# `rm'.
2328for ac_file in conftest.exe conftest conftest.*; do
2329  test -f "$ac_file" || continue
2330  case $ac_file in
2331    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2332    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333          export ac_cv_exeext
2334          break;;
2335    * ) break;;
2336  esac
2337done
2338else
2339  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2340See \`config.log' for more details." >&5
2341echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2342See \`config.log' for more details." >&2;}
2343   { (exit 1); exit 1; }; }
2344fi
2345
2346rm -f conftest$ac_cv_exeext
2347echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2348echo "${ECHO_T}$ac_cv_exeext" >&6
2349
2350rm -f conftest.$ac_ext
2351EXEEXT=$ac_cv_exeext
2352ac_exeext=$EXEEXT
2353echo "$as_me:$LINENO: checking for suffix of object files" >&5
2354echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2355if test "${ac_cv_objext+set}" = set; then
2356  echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358  cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h.  */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h.  */
2364
2365int
2366main ()
2367{
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373rm -f conftest.o conftest.obj
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375  (eval $ac_compile) 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; then
2379  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2380  case $ac_file in
2381    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2382    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383       break;;
2384  esac
2385done
2386else
2387  echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391See \`config.log' for more details." >&5
2392echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393See \`config.log' for more details." >&2;}
2394   { (exit 1); exit 1; }; }
2395fi
2396
2397rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398fi
2399echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400echo "${ECHO_T}$ac_cv_objext" >&6
2401OBJEXT=$ac_cv_objext
2402ac_objext=$OBJEXT
2403echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2404echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2405if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406  echo $ECHO_N "(cached) $ECHO_C" >&6
2407else
2408  cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h.  */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h.  */
2414
2415int
2416main ()
2417{
2418#ifndef __GNUC__
2419       choke me
2420#endif
2421
2422  ;
2423  return 0;
2424}
2425_ACEOF
2426rm -f conftest.$ac_objext
2427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428  (eval $ac_compile) 2>conftest.er1
2429  ac_status=$?
2430  grep -v '^ *+' conftest.er1 >conftest.err
2431  rm -f conftest.er1
2432  cat conftest.err >&5
2433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434  (exit $ac_status); } &&
2435         { ac_try='test -z "$ac_c_werror_flag"
2436                         || test ! -s conftest.err'
2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438  (eval $ac_try) 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; } &&
2442         { ac_try='test -s conftest.$ac_objext'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; }; then
2448  ac_compiler_gnu=yes
2449else
2450  echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453ac_compiler_gnu=no
2454fi
2455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458fi
2459echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2461GCC=`test $ac_compiler_gnu = yes && echo yes`
2462ac_test_CFLAGS=${CFLAGS+set}
2463ac_save_CFLAGS=$CFLAGS
2464CFLAGS="-g"
2465echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2467if test "${ac_cv_prog_cc_g+set}" = set; then
2468  echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470  cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h.  */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h.  */
2476
2477int
2478main ()
2479{
2480
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
2486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487  (eval $ac_compile) 2>conftest.er1
2488  ac_status=$?
2489  grep -v '^ *+' conftest.er1 >conftest.err
2490  rm -f conftest.er1
2491  cat conftest.err >&5
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); } &&
2494         { ac_try='test -z "$ac_c_werror_flag"
2495                         || test ! -s conftest.err'
2496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497  (eval $ac_try) 2>&5
2498  ac_status=$?
2499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500  (exit $ac_status); }; } &&
2501         { ac_try='test -s conftest.$ac_objext'
2502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503  (eval $ac_try) 2>&5
2504  ac_status=$?
2505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); }; }; then
2507  ac_cv_prog_cc_g=yes
2508else
2509  echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512ac_cv_prog_cc_g=no
2513fi
2514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515fi
2516echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2517echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2518if test "$ac_test_CFLAGS" = set; then
2519  CFLAGS=$ac_save_CFLAGS
2520elif test $ac_cv_prog_cc_g = yes; then
2521  if test "$GCC" = yes; then
2522    CFLAGS="-g -O2"
2523  else
2524    CFLAGS="-g"
2525  fi
2526else
2527  if test "$GCC" = yes; then
2528    CFLAGS="-O2"
2529  else
2530    CFLAGS=
2531  fi
2532fi
2533echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2534echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2535if test "${ac_cv_prog_cc_stdc+set}" = set; then
2536  echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538  ac_cv_prog_cc_stdc=no
2539ac_save_CC=$CC
2540cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h.  */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h.  */
2546#include <stdarg.h>
2547#include <stdio.h>
2548#include <sys/types.h>
2549#include <sys/stat.h>
2550/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2551struct buf { int x; };
2552FILE * (*rcsopen) (struct buf *, struct stat *, int);
2553static char *e (p, i)
2554     char **p;
2555     int i;
2556{
2557  return p[i];
2558}
2559static char *f (char * (*g) (char **, int), char **p, ...)
2560{
2561  char *s;
2562  va_list v;
2563  va_start (v,p);
2564  s = g (p, va_arg (v,int));
2565  va_end (v);
2566  return s;
2567}
2568
2569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2570   function prototypes and stuff, but not '\xHH' hex character constants.
2571   These don't provoke an error unfortunately, instead are silently treated
2572   as 'x'.  The following induces an error, until -std1 is added to get
2573   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2574   array size at least.  It's necessary to write '\x00'==0 to get something
2575   that's true only with -std1.  */
2576int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2577
2578int test (int i, double x);
2579struct s1 {int (*f) (int a);};
2580struct s2 {int (*f) (double a);};
2581int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2582int argc;
2583char **argv;
2584int
2585main ()
2586{
2587return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2588  ;
2589  return 0;
2590}
2591_ACEOF
2592# Don't try gcc -ansi; that turns off useful extensions and
2593# breaks some systems' header files.
2594# AIX                   -qlanglvl=ansi
2595# Ultrix and OSF/1      -std1
2596# HP-UX 10.20 and later -Ae
2597# HP-UX older versions  -Aa -D_HPUX_SOURCE
2598# SVR4                  -Xc -D__EXTENSIONS__
2599for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2600do
2601  CC="$ac_save_CC $ac_arg"
2602  rm -f conftest.$ac_objext
2603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604  (eval $ac_compile) 2>conftest.er1
2605  ac_status=$?
2606  grep -v '^ *+' conftest.er1 >conftest.err
2607  rm -f conftest.er1
2608  cat conftest.err >&5
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); } &&
2611         { ac_try='test -z "$ac_c_werror_flag"
2612                         || test ! -s conftest.err'
2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614  (eval $ac_try) 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; } &&
2618         { ac_try='test -s conftest.$ac_objext'
2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620  (eval $ac_try) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }; }; then
2624  ac_cv_prog_cc_stdc=$ac_arg
2625break
2626else
2627  echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630fi
2631rm -f conftest.err conftest.$ac_objext
2632done
2633rm -f conftest.$ac_ext conftest.$ac_objext
2634CC=$ac_save_CC
2635
2636fi
2637
2638case "x$ac_cv_prog_cc_stdc" in
2639  x|xno)
2640    echo "$as_me:$LINENO: result: none needed" >&5
2641echo "${ECHO_T}none needed" >&6 ;;
2642  *)
2643    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2644echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2645    CC="$CC $ac_cv_prog_cc_stdc" ;;
2646esac
2647
2648# Some people use a C++ compiler to compile C.  Since we use `exit',
2649# in C++ we need to declare it.  In case someone uses the same compiler
2650# for both compiling C and C++ we need to have the C++ compiler decide
2651# the declaration of exit, since it's the most demanding environment.
2652cat >conftest.$ac_ext <<_ACEOF
2653#ifndef __cplusplus
2654  choke me
2655#endif
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659  (eval $ac_compile) 2>conftest.er1
2660  ac_status=$?
2661  grep -v '^ *+' conftest.er1 >conftest.err
2662  rm -f conftest.er1
2663  cat conftest.err >&5
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); } &&
2666         { ac_try='test -z "$ac_c_werror_flag"
2667                         || test ! -s conftest.err'
2668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669  (eval $ac_try) 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }; } &&
2673         { ac_try='test -s conftest.$ac_objext'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; }; then
2679  for ac_declaration in \
2680   '' \
2681   'extern "C" void std::exit (int) throw (); using std::exit;' \
2682   'extern "C" void std::exit (int); using std::exit;' \
2683   'extern "C" void exit (int) throw ();' \
2684   'extern "C" void exit (int);' \
2685   'void exit (int);'
2686do
2687  cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693$ac_declaration
2694#include <stdlib.h>
2695int
2696main ()
2697{
2698exit (42);
2699  ;
2700  return 0;
2701}
2702_ACEOF
2703rm -f conftest.$ac_objext
2704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705  (eval $ac_compile) 2>conftest.er1
2706  ac_status=$?
2707  grep -v '^ *+' conftest.er1 >conftest.err
2708  rm -f conftest.er1
2709  cat conftest.err >&5
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); } &&
2712         { ac_try='test -z "$ac_c_werror_flag"
2713                         || test ! -s conftest.err'
2714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715  (eval $ac_try) 2>&5
2716  ac_status=$?
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); }; } &&
2719         { ac_try='test -s conftest.$ac_objext'
2720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721  (eval $ac_try) 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }; }; then
2725  :
2726else
2727  echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730continue
2731fi
2732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733  cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h.  */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h.  */
2739$ac_declaration
2740int
2741main ()
2742{
2743exit (42);
2744  ;
2745  return 0;
2746}
2747_ACEOF
2748rm -f conftest.$ac_objext
2749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750  (eval $ac_compile) 2>conftest.er1
2751  ac_status=$?
2752  grep -v '^ *+' conftest.er1 >conftest.err
2753  rm -f conftest.er1
2754  cat conftest.err >&5
2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756  (exit $ac_status); } &&
2757         { ac_try='test -z "$ac_c_werror_flag"
2758                         || test ! -s conftest.err'
2759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760  (eval $ac_try) 2>&5
2761  ac_status=$?
2762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763  (exit $ac_status); }; } &&
2764         { ac_try='test -s conftest.$ac_objext'
2765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766  (eval $ac_try) 2>&5
2767  ac_status=$?
2768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769  (exit $ac_status); }; }; then
2770  break
2771else
2772  echo "$as_me: failed program was:" >&5
2773sed 's/^/| /' conftest.$ac_ext >&5
2774
2775fi
2776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777done
2778rm -f conftest*
2779if test -n "$ac_declaration"; then
2780  echo '#ifdef __cplusplus' >>confdefs.h
2781  echo $ac_declaration      >>confdefs.h
2782  echo '#endif'             >>confdefs.h
2783fi
2784
2785else
2786  echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789fi
2790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791ac_ext=c
2792ac_cpp='$CPP $CPPFLAGS'
2793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797if test -z "$CC" ; then
2798  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2799echo "$as_me: error: Failed to find a C compiler!" >&2;}
2800   { (exit 1); exit 1; }; }
2801fi
2802# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2803case "$CC" in
2804  clang* ) ;;
2805  cl* | */cl* | CL* | */CL* )
2806    if test "$ac_cv_prog_cc_g" = yes ; then
2807      ac_cv_prog_cc_g=no
2808      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2809echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2810    fi ;;
2811  * )
2812    CYGPATH_W=echo
2813    ;;
2814esac
2815CFLAGS="$save_cflags"
2816
2817# add automake conditional so we can recognize cl compiler in makefile
2818coin_cc_is_cl=false
2819case "$CC" in
2820  clang* ) ;;
2821  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2822    coin_cc_is_cl=true
2823    ;;
2824esac
2825
2826
2827if test $coin_cc_is_cl = true; then
2828  COIN_CC_IS_CL_TRUE=
2829  COIN_CC_IS_CL_FALSE='#'
2830else
2831  COIN_CC_IS_CL_TRUE='#'
2832  COIN_CC_IS_CL_FALSE=
2833fi
2834
2835
2836# Check if a project specific CFLAGS variable has been set
2837if test x$COIN_PRJCT != x; then
2838  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2839  if test x$coin_tmp = xset; then
2840    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2841  fi
2842fi
2843
2844if test x"$CFLAGS" = x; then
2845
2846  coin_add_cflags=
2847  coin_opt_cflags=
2848  coin_dbg_cflags=
2849  coin_warn_cflags=
2850
2851  if test "$GCC" = "yes"; then
2852    case "$CC" in
2853      icc* | */icc*)
2854        ;;
2855      *)
2856        coin_opt_cflags="-O3"
2857        coin_add_cflags="-pipe"
2858        coin_dbg_cflags="-g -O0"
2859        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2860        case $build in
2861          *-darwin*)
2862            ;;
2863          *)
2864            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2865            ;;
2866        esac
2867        case $enable_doscompile in
2868          mingw)
2869            CFLAGS="-mno-cygwin"
2870            cat >conftest.$ac_ext <<_ACEOF
2871/* confdefs.h.  */
2872_ACEOF
2873cat confdefs.h >>conftest.$ac_ext
2874cat >>conftest.$ac_ext <<_ACEOF
2875/* end confdefs.h.  */
2876
2877int
2878main ()
2879{
2880int i=0; i++;
2881  ;
2882  return 0;
2883}
2884_ACEOF
2885rm -f conftest.$ac_objext conftest$ac_exeext
2886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2887  (eval $ac_link) 2>conftest.er1
2888  ac_status=$?
2889  grep -v '^ *+' conftest.er1 >conftest.err
2890  rm -f conftest.er1
2891  cat conftest.err >&5
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); } &&
2894         { ac_try='test -z "$ac_c_werror_flag"
2895                         || test ! -s conftest.err'
2896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897  (eval $ac_try) 2>&5
2898  ac_status=$?
2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); }; } &&
2901         { ac_try='test -s conftest$ac_exeext'
2902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903  (eval $ac_try) 2>&5
2904  ac_status=$?
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); }; }; then
2907  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2908else
2909  echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
2912fi
2913rm -f conftest.err conftest.$ac_objext \
2914      conftest$ac_exeext conftest.$ac_ext
2915            CFLAGS=
2916          ;;
2917        esac
2918    esac
2919  fi
2920  if test -z "$coin_opt_cflags"; then
2921    case $build in
2922      *-cygwin* | *-mingw*)
2923        case "$CC" in
2924          clang* ) ;;
2925          cl* | */cl* | CL* | */CL*)
2926            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2927              coin_opt_cflags='-MD -O2'
2928              coin_dbg_cflags='-MDd'
2929            else
2930              coin_opt_cflags='-MT -O2'
2931              coin_dbg_cflags='-MTd'
2932            fi
2933            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2934            ;;
2935          icl* | */icl* | ICL* | */ICL*)
2936            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2937              coin_opt_cflags='-MD -Ox'
2938              coin_dbg_cflags='-MDd -debug'
2939            else
2940              coin_opt_cflags='-MT -Ox'
2941              coin_dbg_cflags='-MTd -debug'
2942            fi
2943            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2944            ;;
2945        esac
2946        ;;
2947      *-linux-*)
2948        case "$CC" in
2949          icc* | */icc*)
2950            coin_opt_cflags="-O3 -ip -mp1"
2951            coin_add_cflags=""
2952            coin_dbg_cflags="-g"
2953            # Check if -i_dynamic is necessary (for new glibc library)
2954            CFLAGS=
2955            cat >conftest.$ac_ext <<_ACEOF
2956/* confdefs.h.  */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h.  */
2961
2962int
2963main ()
2964{
2965int i=0; i++;
2966  ;
2967  return 0;
2968}
2969_ACEOF
2970rm -f conftest.$ac_objext conftest$ac_exeext
2971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2972  (eval $ac_link) 2>conftest.er1
2973  ac_status=$?
2974  grep -v '^ *+' conftest.er1 >conftest.err
2975  rm -f conftest.er1
2976  cat conftest.err >&5
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); } &&
2979         { ac_try='test -z "$ac_c_werror_flag"
2980                         || test ! -s conftest.err'
2981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982  (eval $ac_try) 2>&5
2983  ac_status=$?
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }; } &&
2986         { ac_try='test -s conftest$ac_exeext'
2987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988  (eval $ac_try) 2>&5
2989  ac_status=$?
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }; }; then
2992  :
2993else
2994  echo "$as_me: failed program was:" >&5
2995sed 's/^/| /' conftest.$ac_ext >&5
2996
2997coin_add_cflags="-i_dynamic $coin_add_cflags"
2998fi
2999rm -f conftest.err conftest.$ac_objext \
3000      conftest$ac_exeext conftest.$ac_ext
3001            ;;
3002          pgcc* | */pgcc*)
3003            coin_opt_cflags="-fast"
3004            coin_add_cflags="-Kieee -pc 64"
3005            coin_dbg_cflags="-g"
3006            ;;
3007        esac
3008        ;;
3009      *-ibm-*)
3010        case "$CC" in
3011          xlc* | */xlc* | mpxlc* | */mpxlc*)
3012            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3013            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3014            coin_dbg_cflags="-g"
3015          ;;
3016        esac
3017        ;;
3018      *-hp-*)
3019        coin_opt_cflags="-O"
3020        coin_add_cflags="-Ae"
3021        coin_dbg_cflags="-g"
3022        ;;
3023      *-*-solaris*)
3024        coin_opt_cflags="-xO4"
3025        coin_dbg_cflags="-g"
3026        ;;
3027      *-sgi-*)
3028        coin_opt_cflags="-O -OPT:Olimit=0"
3029        coin_dbg_cflags="-g"
3030        ;;
3031    esac
3032  fi
3033
3034  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3035    coin_dbg_cflags="-g"
3036  fi
3037
3038  if test -z "$coin_opt_cflags"; then
3039    # Try if -O option works if nothing else is set
3040    CFLAGS="-O"
3041    cat >conftest.$ac_ext <<_ACEOF
3042/* confdefs.h.  */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h.  */
3047
3048int
3049main ()
3050{
3051int i=0; i++;
3052  ;
3053  return 0;
3054}
3055_ACEOF
3056rm -f conftest.$ac_objext conftest$ac_exeext
3057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3058  (eval $ac_link) 2>conftest.er1
3059  ac_status=$?
3060  grep -v '^ *+' conftest.er1 >conftest.err
3061  rm -f conftest.er1
3062  cat conftest.err >&5
3063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); } &&
3065         { ac_try='test -z "$ac_c_werror_flag"
3066                         || test ! -s conftest.err'
3067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068  (eval $ac_try) 2>&5
3069  ac_status=$?
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); }; } &&
3072         { ac_try='test -s conftest$ac_exeext'
3073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074  (eval $ac_try) 2>&5
3075  ac_status=$?
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); }; }; then
3078  coin_opt_cflags="-O"
3079else
3080  echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083fi
3084rm -f conftest.err conftest.$ac_objext \
3085      conftest$ac_exeext conftest.$ac_ext
3086  fi
3087
3088  # if PM doesn't want the warning messages, take them out
3089  if test x"$coin_skip_warn_cflags" = xyes; then
3090    coin_warn_cflags=
3091  fi
3092
3093  if test x${DBG_CFLAGS+set} != xset; then
3094    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3095  fi
3096  if test x${OPT_CFLAGS+set} != xset; then
3097    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3098  fi
3099
3100  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3101  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3102
3103  if test "$coin_debug_compile" = "true"; then
3104    CFLAGS="$DBG_CFLAGS"
3105  else
3106    CFLAGS="$OPT_CFLAGS"
3107  fi
3108else
3109  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3110  if test x${DBG_CFLAGS+set} != xset; then
3111    DBG_CFLAGS="$CFLAGS"
3112  fi
3113  if test x${OPT_CFLAGS+set} != xset; then
3114    OPT_CFLAGS="$CFLAGS"
3115  fi
3116fi
3117
3118# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3119
3120case "$CFLAGS" in
3121  *-mno-cygwin*)
3122    if test x${CPPFLAGS+set} != xset ; then
3123      CPPFLAGS="-mno-cygwin"
3124    else
3125      case "$CPPFLAGS" in
3126        *-mno-cygwin*)
3127          ;;
3128        *)
3129          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3130          ;;
3131      esac
3132    fi ;;
3133esac
3134
3135# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3136if test x$COIN_PRJCT != x; then
3137  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3138fi
3139
3140# Try if CFLAGS works
3141save_CFLAGS="$CFLAGS"
3142cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h.  */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h.  */
3148
3149int
3150main ()
3151{
3152int i=0; i++;
3153  ;
3154  return 0;
3155}
3156_ACEOF
3157rm -f conftest.$ac_objext conftest$ac_exeext
3158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3159  (eval $ac_link) 2>conftest.er1
3160  ac_status=$?
3161  grep -v '^ *+' conftest.er1 >conftest.err
3162  rm -f conftest.er1
3163  cat conftest.err >&5
3164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165  (exit $ac_status); } &&
3166         { ac_try='test -z "$ac_c_werror_flag"
3167                         || test ! -s conftest.err'
3168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169  (eval $ac_try) 2>&5
3170  ac_status=$?
3171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172  (exit $ac_status); }; } &&
3173         { ac_try='test -s conftest$ac_exeext'
3174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175  (eval $ac_try) 2>&5
3176  ac_status=$?
3177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178  (exit $ac_status); }; }; then
3179  :
3180else
3181  echo "$as_me: failed program was:" >&5
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184CFLAGS=
3185fi
3186rm -f conftest.err conftest.$ac_objext \
3187      conftest$ac_exeext conftest.$ac_ext
3188if test -z "$CFLAGS"; then
3189  { 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
3190echo "$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;}
3191  CFLAGS='-O'
3192  cat >conftest.$ac_ext <<_ACEOF
3193/* confdefs.h.  */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h.  */
3198
3199int
3200main ()
3201{
3202int i=0; i++;
3203  ;
3204  return 0;
3205}
3206_ACEOF
3207rm -f conftest.$ac_objext conftest$ac_exeext
3208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3209  (eval $ac_link) 2>conftest.er1
3210  ac_status=$?
3211  grep -v '^ *+' conftest.er1 >conftest.err
3212  rm -f conftest.er1
3213  cat conftest.err >&5
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); } &&
3216         { ac_try='test -z "$ac_c_werror_flag"
3217                         || test ! -s conftest.err'
3218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219  (eval $ac_try) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; } &&
3223         { ac_try='test -s conftest$ac_exeext'
3224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225  (eval $ac_try) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; }; then
3229  :
3230else
3231  echo "$as_me: failed program was:" >&5
3232sed 's/^/| /' conftest.$ac_ext >&5
3233
3234CFLAGS=
3235fi
3236rm -f conftest.err conftest.$ac_objext \
3237      conftest$ac_exeext conftest.$ac_ext
3238  if test -z "$CFLAGS"; then
3239    { 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
3240echo "$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;}
3241  fi
3242fi
3243
3244{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3245echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3246
3247
3248if test x"$MPICC" = x; then :; else
3249  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3250echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3251  CC="$MPICC"
3252fi
3253
3254# Correct the LD variable if we are using the MS or Intel-windows compiler
3255case "$CC" in
3256  clang* ) ;;
3257  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3258    case $build in
3259  *-mingw*)
3260    if test "${LD+set}" = set; then :; else
3261      LD=link
3262    fi
3263    ;;
3264 esac
3265 case $enable_doscompile in
3266   msvc)
3267     if test "x${LD+set}" = xset; then :; else
3268       LD=link
3269     fi
3270     ;;
3271 esac
3272
3273    ;;
3274esac
3275
3276ac_ext=c
3277ac_cpp='$CPP $CPPFLAGS'
3278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281
3282
3283
3284# Get the name of the C++ compiler and appropriate compiler options
3285
3286 #Let's try if that overcomes configuration problem with VC++ 6.0
3287
3288ac_ext=cc
3289ac_cpp='$CXXCPP $CPPFLAGS'
3290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3293
3294
3295
3296
3297
3298
3299
3300coin_has_cxx=yes
3301
3302save_cxxflags="$CXXFLAGS"
3303# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3304case $build in
3305  *-cygwin* | *-mingw*)
3306             if test "$enable_doscompile" = msvc ; then
3307               comps="icl cl"
3308             else
3309               comps="g++ cl"
3310             fi ;;
3311  *-*-solaris*)
3312             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3313  *-darwin*) comps="g++ c++ CC" ;;
3314  *-linux-gnu*)
3315             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3316          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3317esac
3318
3319# We delete the cached value, since the test might not have been
3320# performed with our choice of compilers earlier
3321$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3322# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3323ac_ext=cc
3324ac_cpp='$CXXCPP $CPPFLAGS'
3325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3328if test -n "$ac_tool_prefix"; then
3329  for ac_prog in $CCC $comps
3330  do
3331    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332set dummy $ac_tool_prefix$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_CXX+set}" = set; then
3336  echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338  if test -n "$CXX"; then
3339  ac_cv_prog_CXX="$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_CXX="$ac_tool_prefix$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
3357CXX=$ac_cv_prog_CXX
3358if test -n "$CXX"; then
3359  echo "$as_me:$LINENO: result: $CXX" >&5
3360echo "${ECHO_T}$CXX" >&6
3361else
3362  echo "$as_me:$LINENO: result: no" >&5
3363echo "${ECHO_T}no" >&6
3364fi
3365
3366    test -n "$CXX" && break
3367  done
3368fi
3369if test -z "$CXX"; then
3370  ac_ct_CXX=$CXX
3371  for ac_prog in $CCC $comps
3372do
3373  # Extract the first word of "$ac_prog", so it can be a program name with args.
3374set dummy $ac_prog; ac_word=$2
3375echo "$as_me:$LINENO: checking for $ac_word" >&5
3376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3378  echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380  if test -n "$ac_ct_CXX"; then
3381  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3382else
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386  IFS=$as_save_IFS
3387  test -z "$as_dir" && as_dir=.
3388  for ac_exec_ext in '' $ac_executable_extensions; do
3389  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390    ac_cv_prog_ac_ct_CXX="$ac_prog"
3391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392    break 2
3393  fi
3394done
3395done
3396
3397fi
3398fi
3399ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3400if test -n "$ac_ct_CXX"; then
3401  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3402echo "${ECHO_T}$ac_ct_CXX" >&6
3403else
3404  echo "$as_me:$LINENO: result: no" >&5
3405echo "${ECHO_T}no" >&6
3406fi
3407
3408  test -n "$ac_ct_CXX" && break
3409done
3410test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3411
3412  CXX=$ac_ct_CXX
3413fi
3414
3415
3416# Provide some information about the compiler.
3417echo "$as_me:$LINENO:" \
3418     "checking for C++ compiler version" >&5
3419ac_compiler=`set X $ac_compile; echo $2`
3420{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3421  (eval $ac_compiler --version </dev/null >&5) 2>&5
3422  ac_status=$?
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); }
3425{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3426  (eval $ac_compiler -v </dev/null >&5) 2>&5
3427  ac_status=$?
3428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429  (exit $ac_status); }
3430{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3431  (eval $ac_compiler -V </dev/null >&5) 2>&5
3432  ac_status=$?
3433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434  (exit $ac_status); }
3435
3436echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3437echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3438if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3439  echo $ECHO_N "(cached) $ECHO_C" >&6
3440else
3441  cat >conftest.$ac_ext <<_ACEOF
3442/* confdefs.h.  */
3443_ACEOF
3444cat confdefs.h >>conftest.$ac_ext
3445cat >>conftest.$ac_ext <<_ACEOF
3446/* end confdefs.h.  */
3447
3448int
3449main ()
3450{
3451#ifndef __GNUC__
3452       choke me
3453#endif
3454
3455  ;
3456  return 0;
3457}
3458_ACEOF
3459rm -f conftest.$ac_objext
3460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3461  (eval $ac_compile) 2>conftest.er1
3462  ac_status=$?
3463  grep -v '^ *+' conftest.er1 >conftest.err
3464  rm -f conftest.er1
3465  cat conftest.err >&5
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); } &&
3468         { ac_try='test -z "$ac_cxx_werror_flag"
3469                         || test ! -s conftest.err'
3470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471  (eval $ac_try) 2>&5
3472  ac_status=$?
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }; } &&
3475         { ac_try='test -s conftest.$ac_objext'
3476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477  (eval $ac_try) 2>&5
3478  ac_status=$?
3479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480  (exit $ac_status); }; }; then
3481  ac_compiler_gnu=yes
3482else
3483  echo "$as_me: failed program was:" >&5
3484sed 's/^/| /' conftest.$ac_ext >&5
3485
3486ac_compiler_gnu=no
3487fi
3488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3489ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3490
3491fi
3492echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3493echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3494GXX=`test $ac_compiler_gnu = yes && echo yes`
3495ac_test_CXXFLAGS=${CXXFLAGS+set}
3496ac_save_CXXFLAGS=$CXXFLAGS
3497CXXFLAGS="-g"
3498echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3499echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3500if test "${ac_cv_prog_cxx_g+set}" = set; then
3501  echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503  cat >conftest.$ac_ext <<_ACEOF
3504/* confdefs.h.  */
3505_ACEOF
3506cat confdefs.h >>conftest.$ac_ext
3507cat >>conftest.$ac_ext <<_ACEOF
3508/* end confdefs.h.  */
3509
3510int
3511main ()
3512{
3513
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518rm -f conftest.$ac_objext
3519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520  (eval $ac_compile) 2>conftest.er1
3521  ac_status=$?
3522  grep -v '^ *+' conftest.er1 >conftest.err
3523  rm -f conftest.er1
3524  cat conftest.err >&5
3525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526  (exit $ac_status); } &&
3527         { ac_try='test -z "$ac_cxx_werror_flag"
3528                         || test ! -s conftest.err'
3529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530  (eval $ac_try) 2>&5
3531  ac_status=$?
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); }; } &&
3534         { ac_try='test -s conftest.$ac_objext'
3535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536  (eval $ac_try) 2>&5
3537  ac_status=$?
3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539  (exit $ac_status); }; }; then
3540  ac_cv_prog_cxx_g=yes
3541else
3542  echo "$as_me: failed program was:" >&5
3543sed 's/^/| /' conftest.$ac_ext >&5
3544
3545ac_cv_prog_cxx_g=no
3546fi
3547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3548fi
3549echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3550echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3551if test "$ac_test_CXXFLAGS" = set; then
3552  CXXFLAGS=$ac_save_CXXFLAGS
3553elif test $ac_cv_prog_cxx_g = yes; then
3554  if test "$GXX" = yes; then
3555    CXXFLAGS="-g -O2"
3556  else
3557    CXXFLAGS="-g"
3558  fi
3559else
3560  if test "$GXX" = yes; then
3561    CXXFLAGS="-O2"
3562  else
3563    CXXFLAGS=
3564  fi
3565fi
3566for ac_declaration in \
3567   '' \
3568   'extern "C" void std::exit (int) throw (); using std::exit;' \
3569   'extern "C" void std::exit (int); using std::exit;' \
3570   'extern "C" void exit (int) throw ();' \
3571   'extern "C" void exit (int);' \
3572   'void exit (int);'
3573do
3574  cat >conftest.$ac_ext <<_ACEOF
3575/* confdefs.h.  */
3576_ACEOF
3577cat confdefs.h >>conftest.$ac_ext
3578cat >>conftest.$ac_ext <<_ACEOF
3579/* end confdefs.h.  */
3580$ac_declaration
3581#include <stdlib.h>
3582int
3583main ()
3584{
3585exit (42);
3586  ;
3587  return 0;
3588}
3589_ACEOF
3590rm -f conftest.$ac_objext
3591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592  (eval $ac_compile) 2>conftest.er1
3593  ac_status=$?
3594  grep -v '^ *+' conftest.er1 >conftest.err
3595  rm -f conftest.er1
3596  cat conftest.err >&5
3597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598  (exit $ac_status); } &&
3599         { ac_try='test -z "$ac_cxx_werror_flag"
3600                         || test ! -s conftest.err'
3601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602  (eval $ac_try) 2>&5
3603  ac_status=$?
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); }; } &&
3606         { ac_try='test -s conftest.$ac_objext'
3607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608  (eval $ac_try) 2>&5
3609  ac_status=$?
3610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611  (exit $ac_status); }; }; then
3612  :
3613else
3614  echo "$as_me: failed program was:" >&5
3615sed 's/^/| /' conftest.$ac_ext >&5
3616
3617continue
3618fi
3619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620  cat >conftest.$ac_ext <<_ACEOF
3621/* confdefs.h.  */
3622_ACEOF
3623cat confdefs.h >>conftest.$ac_ext
3624cat >>conftest.$ac_ext <<_ACEOF
3625/* end confdefs.h.  */
3626$ac_declaration
3627int
3628main ()
3629{
3630exit (42);
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635rm -f conftest.$ac_objext
3636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637  (eval $ac_compile) 2>conftest.er1
3638  ac_status=$?
3639  grep -v '^ *+' conftest.er1 >conftest.err
3640  rm -f conftest.er1
3641  cat conftest.err >&5
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); } &&
3644         { ac_try='test -z "$ac_cxx_werror_flag"
3645                         || test ! -s conftest.err'
3646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647  (eval $ac_try) 2>&5
3648  ac_status=$?
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); }; } &&
3651         { ac_try='test -s conftest.$ac_objext'
3652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653  (eval $ac_try) 2>&5
3654  ac_status=$?
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); }; }; then
3657  break
3658else
3659  echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662fi
3663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3664done
3665rm -f conftest*
3666if test -n "$ac_declaration"; then
3667  echo '#ifdef __cplusplus' >>confdefs.h
3668  echo $ac_declaration      >>confdefs.h
3669  echo '#endif'             >>confdefs.h
3670fi
3671
3672ac_ext=cc
3673ac_cpp='$CXXCPP $CPPFLAGS'
3674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3677
3678
3679#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3680#thus, we test here whether $CXX is actually working
3681ac_ext=cc
3682ac_cpp='$CXXCPP $CPPFLAGS'
3683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3686
3687echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3688echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3689cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695
3696int
3697main ()
3698{
3699int i=0;
3700  ;
3701  return 0;
3702}
3703_ACEOF
3704rm -f conftest.$ac_objext
3705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706  (eval $ac_compile) 2>conftest.er1
3707  ac_status=$?
3708  grep -v '^ *+' conftest.er1 >conftest.err
3709  rm -f conftest.er1
3710  cat conftest.err >&5
3711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712  (exit $ac_status); } &&
3713         { ac_try='test -z "$ac_cxx_werror_flag"
3714                         || test ! -s conftest.err'
3715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716  (eval $ac_try) 2>&5
3717  ac_status=$?
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); }; } &&
3720         { ac_try='test -s conftest.$ac_objext'
3721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722  (eval $ac_try) 2>&5
3723  ac_status=$?
3724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725  (exit $ac_status); }; }; then
3726  echo "$as_me:$LINENO: result: yes" >&5
3727echo "${ECHO_T}yes" >&6
3728else
3729  echo "$as_me: failed program was:" >&5
3730sed 's/^/| /' conftest.$ac_ext >&5
3731
3732echo "$as_me:$LINENO: result: no" >&5
3733echo "${ECHO_T}no" >&6
3734   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3735echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3736   { (exit 1); exit 1; }; }
3737
3738fi
3739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3740ac_ext=cc
3741ac_cpp='$CXXCPP $CPPFLAGS'
3742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3745
3746
3747coin_cxx_is_cl=false
3748# It seems that we need to cleanup something here for the Windows
3749case "$CXX" in
3750  clang* ) ;;
3751  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3752    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3753    mv confdefs.hh confdefs.h
3754    coin_cxx_is_cl=true
3755    ;;
3756esac
3757
3758# add automake conditional so we can recognize cl compiler in makefile
3759
3760
3761if test $coin_cxx_is_cl = true; then
3762  COIN_CXX_IS_CL_TRUE=
3763  COIN_CXX_IS_CL_FALSE='#'
3764else
3765  COIN_CXX_IS_CL_TRUE='#'
3766  COIN_CXX_IS_CL_FALSE=
3767fi
3768
3769
3770# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3771case "$CXX" in
3772  clang* ) ;;
3773  cl* | */cl* | CL* | */CL* )
3774    if test "$ac_cv_prog_cxx_g" = yes ; then
3775      ac_cv_prog_cxx_g=no
3776      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3777echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3778    fi ;;
3779  * )
3780    CYGPATH_W=echo
3781    ;;
3782esac
3783CXXFLAGS="$save_cxxflags"
3784
3785# Check if a project specific CXXFLAGS variable has been set
3786if test x$COIN_PRJCT != x; then
3787  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3788  if test x$coin_tmp = xset; then
3789    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3790  fi
3791fi
3792
3793if test x"$CXXFLAGS" = x; then
3794
3795# ToDo decide whether we want -DNDEBUG for optimization
3796  coin_add_cxxflags=
3797  coin_opt_cxxflags=
3798  coin_dbg_cxxflags=
3799  coin_warn_cxxflags=
3800
3801  if test "$GXX" = "yes"; then
3802    case "$CXX" in
3803      icpc* | */icpc*)
3804        ;;
3805      *)
3806# ToDo decide about unroll-loops
3807        coin_opt_cxxflags="-O3"
3808        coin_add_cxxflags="-pipe"
3809        coin_dbg_cxxflags="-g -O0"
3810        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3811        case $build in
3812          *-darwin*)
3813            ;;
3814          *)
3815            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3816            ;;
3817        esac
3818
3819        case $enable_doscompile in
3820          mingw)
3821            CXXFLAGS="-mno-cygwin"
3822            cat >conftest.$ac_ext <<_ACEOF
3823/* confdefs.h.  */
3824_ACEOF
3825cat confdefs.h >>conftest.$ac_ext
3826cat >>conftest.$ac_ext <<_ACEOF
3827/* end confdefs.h.  */
3828
3829int
3830main ()
3831{
3832int i=0; i++;
3833  ;
3834  return 0;
3835}
3836_ACEOF
3837rm -f conftest.$ac_objext conftest$ac_exeext
3838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3839  (eval $ac_link) 2>conftest.er1
3840  ac_status=$?
3841  grep -v '^ *+' conftest.er1 >conftest.err
3842  rm -f conftest.er1
3843  cat conftest.err >&5
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); } &&
3846         { ac_try='test -z "$ac_cxx_werror_flag"
3847                         || test ! -s conftest.err'
3848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849  (eval $ac_try) 2>&5
3850  ac_status=$?
3851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852  (exit $ac_status); }; } &&
3853         { ac_try='test -s conftest$ac_exeext'
3854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855  (eval $ac_try) 2>&5
3856  ac_status=$?
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); }; }; then
3859  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3860else
3861  echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864fi
3865rm -f conftest.err conftest.$ac_objext \
3866      conftest$ac_exeext conftest.$ac_ext
3867            CXXFLAGS=
3868          ;;
3869        esac
3870    esac
3871  fi
3872
3873# Note that we do not need to cover GCC in the following tests.
3874
3875  if test -z "$coin_opt_cxxflags"; then
3876    case $build in
3877      *-cygwin* | *-mingw*)
3878        case "$CXX" in
3879          clang* ) ;;
3880          cl* | */cl* | CL* | */CL*)
3881            # The MT and MTd options are mutually exclusive
3882            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3883               coin_opt_cxxflags='-MD -O2'
3884               coin_dbg_cxxflags='-MDd'
3885            else
3886               coin_opt_cxxflags='-MT -O2'
3887               coin_dbg_cxxflags='-MTd'
3888            fi
3889            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3890            ;;
3891          icl* | */icl* | ICL* | */ICL*)
3892          # The MT and MTd options are mutually exclusive
3893            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3894              coin_opt_cxxflags='-MD -Ox'
3895              coin_dbg_cxxflags='-MDd -debug'
3896            else
3897              coin_opt_cxxflags='-MT -Ox'
3898              coin_dbg_cxxflags='-MTd -debug'
3899            fi
3900            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3901            ;;
3902        esac
3903        ;;
3904      *-linux-*)
3905        case "$CXX" in
3906          icpc* | */icpc*)
3907            coin_opt_cxxflags="-O3 -ip -mp1"
3908            coin_add_cxxflags=""
3909            coin_dbg_cxxflags="-g"
3910            # Check if -i_dynamic is necessary (for new glibc library)
3911            CXXFLAGS=
3912            cat >conftest.$ac_ext <<_ACEOF
3913/* confdefs.h.  */
3914_ACEOF
3915cat confdefs.h >>conftest.$ac_ext
3916cat >>conftest.$ac_ext <<_ACEOF
3917/* end confdefs.h.  */
3918
3919int
3920main ()
3921{
3922int i=0; i++;
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927rm -f conftest.$ac_objext conftest$ac_exeext
3928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929  (eval $ac_link) 2>conftest.er1
3930  ac_status=$?
3931  grep -v '^ *+' conftest.er1 >conftest.err
3932  rm -f conftest.er1
3933  cat conftest.err >&5
3934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935  (exit $ac_status); } &&
3936         { ac_try='test -z "$ac_cxx_werror_flag"
3937                         || test ! -s conftest.err'
3938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939  (eval $ac_try) 2>&5
3940  ac_status=$?
3941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942  (exit $ac_status); }; } &&
3943         { ac_try='test -s conftest$ac_exeext'
3944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945  (eval $ac_try) 2>&5
3946  ac_status=$?
3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); }; }; then
3949  :
3950else
3951  echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3955fi
3956rm -f conftest.err conftest.$ac_objext \
3957      conftest$ac_exeext conftest.$ac_ext
3958            ;;
3959          pgCC* | */pgCC*)
3960            coin_opt_cxxflags="-fast"
3961            coin_add_cxxflags="-Kieee -pc 64"
3962            coin_dbg_cxxflags="-g"
3963            ;;
3964        esac
3965        ;;
3966      *-ibm-*)
3967        case "$CXX" in
3968          xlC* | */xlC* | mpxlC* | */mpxlC*)
3969            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3970            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3971            coin_dbg_cxxflags="-g"
3972            ;;
3973        esac
3974        ;;
3975      *-hp-*)
3976        case "$CXX" in
3977          aCC* | */aCC* )
3978            coin_opt_cxxflags="-O"
3979            coin_add_cxxflags="-AA"
3980            coin_dbg_cxxflags="-g"
3981            ;;
3982        esac
3983        ;;
3984      *-*-solaris*)
3985          coin_opt_cxxflags="-O4"
3986          coin_dbg_cxxflags="-g"
3987        ;;
3988    esac
3989  fi
3990
3991# Generic flag settings. If these don't work, add a case above.
3992
3993  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3994    coin_dbg_cxxflags="-g"
3995  fi
3996
3997  if test -z "$coin_opt_cxxflags"; then
3998    # Try if -O option works if nothing else is set
3999    CXXFLAGS=-O
4000    cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h.  */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h.  */
4006
4007int
4008main ()
4009{
4010int i=0; i++;
4011  ;
4012  return 0;
4013}
4014_ACEOF
4015rm -f conftest.$ac_objext conftest$ac_exeext
4016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017  (eval $ac_link) 2>conftest.er1
4018  ac_status=$?
4019  grep -v '^ *+' conftest.er1 >conftest.err
4020  rm -f conftest.er1
4021  cat conftest.err >&5
4022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023  (exit $ac_status); } &&
4024         { ac_try='test -z "$ac_cxx_werror_flag"
4025                         || test ! -s conftest.err'
4026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027  (eval $ac_try) 2>&5
4028  ac_status=$?
4029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030  (exit $ac_status); }; } &&
4031         { ac_try='test -s conftest$ac_exeext'
4032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033  (eval $ac_try) 2>&5
4034  ac_status=$?
4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036  (exit $ac_status); }; }; then
4037  coin_opt_cxxflags="-O"
4038else
4039  echo "$as_me: failed program was:" >&5
4040sed 's/^/| /' conftest.$ac_ext >&5
4041
4042fi
4043rm -f conftest.err conftest.$ac_objext \
4044      conftest$ac_exeext conftest.$ac_ext
4045  fi
4046
4047  # if PM doesn't want the warning messages, take them out
4048  if test x"$coin_skip_warn_cxxflags" = xyes; then
4049    coin_warn_cxxflags=
4050  fi
4051
4052# Do final setup of flags based on values determined above.
4053
4054  if test x${DBG_CXXFLAGS+set} != xset; then
4055    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4056  fi
4057  if test x${OPT_CXXFLAGS+set} != xset; then
4058    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4059  fi
4060
4061  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4062  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4063
4064  if test "$coin_debug_compile" = "true"; then
4065    CXXFLAGS="$DBG_CXXFLAGS"
4066  else
4067    CXXFLAGS="$OPT_CXXFLAGS"
4068  fi
4069
4070# Handle the case where CXXFLAGS was set externally.
4071else
4072  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4073  if test x${DBG_CXXFLAGS+set} != xset; then
4074    DBG_CXXFLAGS="$CXXFLAGS"
4075  fi
4076  if test x${OPT_CXXFLAGS+set} != xset; then
4077    OPT_CXXFLAGS="$CXXFLAGS"
4078  fi
4079fi
4080
4081# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4082
4083case "$CXXFLAGS" in
4084  *-mno-cygwin*)
4085    if test x${CPPFLAGS+set} != xset ; then
4086      CPPFLAGS="-mno-cygwin"
4087    else
4088      case "$CPPFLAGS" in
4089        *-mno-cygwin*)
4090          ;;
4091        *)
4092          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4093          ;;
4094      esac
4095    fi ;;
4096esac
4097
4098# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4099if test x$COIN_PRJCT != x; then
4100  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4101fi
4102
4103# Try if CXXFLAGS works
4104save_CXXFLAGS="$CXXFLAGS"
4105cat >conftest.$ac_ext <<_ACEOF
4106/* confdefs.h.  */
4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h.  */
4111
4112int
4113main ()
4114{
4115int i=0; i++;
4116  ;
4117  return 0;
4118}
4119_ACEOF
4120rm -f conftest.$ac_objext conftest$ac_exeext
4121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4122  (eval $ac_link) 2>conftest.er1
4123  ac_status=$?
4124  grep -v '^ *+' conftest.er1 >conftest.err
4125  rm -f conftest.er1
4126  cat conftest.err >&5
4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); } &&
4129         { ac_try='test -z "$ac_cxx_werror_flag"
4130                         || test ! -s conftest.err'
4131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132  (eval $ac_try) 2>&5
4133  ac_status=$?
4134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135  (exit $ac_status); }; } &&
4136         { ac_try='test -s conftest$ac_exeext'
4137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138  (eval $ac_try) 2>&5
4139  ac_status=$?
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); }; }; then
4142  :
4143else
4144  echo "$as_me: failed program was:" >&5
4145sed 's/^/| /' conftest.$ac_ext >&5
4146
4147CXXFLAGS=
4148fi
4149rm -f conftest.err conftest.$ac_objext \
4150      conftest$ac_exeext conftest.$ac_ext
4151if test -z "$CXXFLAGS"; then
4152  { 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
4153echo "$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;}
4154  CXXFLAGS='-O'
4155  cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h.  */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h.  */
4161
4162int
4163main ()
4164{
4165int i=0; i++;
4166  ;
4167  return 0;
4168}
4169_ACEOF
4170rm -f conftest.$ac_objext conftest$ac_exeext
4171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4172  (eval $ac_link) 2>conftest.er1
4173  ac_status=$?
4174  grep -v '^ *+' conftest.er1 >conftest.err
4175  rm -f conftest.er1
4176  cat conftest.err >&5
4177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178  (exit $ac_status); } &&
4179         { ac_try='test -z "$ac_cxx_werror_flag"
4180                         || test ! -s conftest.err'
4181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182  (eval $ac_try) 2>&5
4183  ac_status=$?
4184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185  (exit $ac_status); }; } &&
4186         { ac_try='test -s conftest$ac_exeext'
4187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188  (eval $ac_try) 2>&5
4189  ac_status=$?
4190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191  (exit $ac_status); }; }; then
4192  :
4193else
4194  echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197CXXFLAGS=
4198fi
4199rm -f conftest.err conftest.$ac_objext \
4200      conftest$ac_exeext conftest.$ac_ext
4201  if test -z "$CXXFLAGS"; then
4202    { 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
4203echo "$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;}
4204  fi
4205fi
4206
4207{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4208echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4209
4210
4211if test x"$MPICXX" = x; then :; else
4212  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4213echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4214  CXX="$MPICXX"
4215fi
4216
4217# correct the LD variable in a mingw build with MS or intel compiler
4218case "$CXX" in
4219  clang* ) ;;
4220  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4221    case $build in
4222  *-mingw*)
4223    if test "${LD+set}" = set; then :; else
4224      LD=link
4225    fi
4226    ;;
4227 esac
4228 case $enable_doscompile in
4229   msvc)
4230     if test "x${LD+set}" = xset; then :; else
4231       LD=link
4232     fi
4233     ;;
4234 esac
4235
4236    ;;
4237esac
4238
4239ac_ext=c
4240ac_cpp='$CPP $CPPFLAGS'
4241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4243ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244
4245
4246
4247# Initialize automake
4248{
4249
4250
4251
4252# START
4253
4254coin_disable_shared=no
4255# Test if force_shared has been set
4256if test "x" = xforce_shared; then
4257  if test x$enable_shared = xno; then
4258    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4259echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4260   { (exit 1); exit 1; }; }
4261  fi
4262  enable_shared=yes;
4263else
4264  # On Cygwin and AIX, building DLLs doesn't work
4265  case $build in
4266    *-cygwin* | *-mingw*)
4267      coin_disable_shared=yes
4268      if test x"$enable_shared" = xyes; then
4269        case "$CXX" in
4270          clang* )
4271            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4272echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4273            ;;
4274          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4275            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
4276echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
4277            ;;
4278          *)
4279            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4280echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4281            ;;
4282        esac
4283      fi
4284    ;;
4285    *-aix*)
4286      coin_disable_shared=yes
4287      platform=AIX
4288      if test x"$enable_shared" = xyes; then
4289        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4290echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4291      fi
4292    ;;
4293  esac
4294fi
4295if test x"$coin_disable_shared" = xyes; then
4296  if test x"$enable_shared" = xyes; then
4297    :
4298  else
4299    # we don't disable shared, because it was not selected anyway
4300    coin_disable_shared=no
4301  fi
4302  enable_shared=no
4303fi
4304# By default, we only want the shared objects to be compiled
4305# Check whether --enable-static or --disable-static was given.
4306if test "${enable_static+set}" = set; then
4307  enableval="$enable_static"
4308  p=${PACKAGE-default}
4309    case $enableval in
4310    yes) enable_static=yes ;;
4311    no) enable_static=no ;;
4312    *)
4313     enable_static=no
4314      # Look at the argument we got.  We use all the common list separators.
4315      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4316      for pkg in $enableval; do
4317        IFS="$lt_save_ifs"
4318        if test "X$pkg" = "X$p"; then
4319          enable_static=yes
4320        fi
4321      done
4322      IFS="$lt_save_ifs"
4323      ;;
4324    esac
4325else
4326  enable_static=no
4327fi;
4328
4329
4330
4331
4332# Initialize automake
4333echo "$as_me:$LINENO: checking for egrep" >&5
4334echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4335if test "${ac_cv_prog_egrep+set}" = set; then
4336  echo $ECHO_N "(cached) $ECHO_C" >&6
4337else
4338  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4339    then ac_cv_prog_egrep='grep -E'
4340    else ac_cv_prog_egrep='egrep'
4341    fi
4342fi
4343echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4344echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4345 EGREP=$ac_cv_prog_egrep
4346
4347
4348echo "$as_me:$LINENO: checking whether ln -s works" >&5
4349echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4350LN_S=$as_ln_s
4351if test "$LN_S" = "ln -s"; then
4352  echo "$as_me:$LINENO: result: yes" >&5
4353echo "${ECHO_T}yes" >&6
4354else
4355  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4356echo "${ECHO_T}no, using $LN_S" >&6
4357fi
4358
4359am__api_version="1.9"
4360# Find a good install program.  We prefer a C program (faster),
4361# so one script is as good as another.  But avoid the broken or
4362# incompatible versions:
4363# SysV /etc/install, /usr/sbin/install
4364# SunOS /usr/etc/install
4365# IRIX /sbin/install
4366# AIX /bin/install
4367# AmigaOS /C/install, which installs bootblocks on floppy discs
4368# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4369# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4370# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4371# OS/2's system install, which has a completely different semantic
4372# ./install, which can be erroneously created by make from ./install.sh.
4373echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4374echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4375if test -z "$INSTALL"; then
4376if test "${ac_cv_path_install+set}" = set; then
4377  echo $ECHO_N "(cached) $ECHO_C" >&6
4378else
4379  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380for as_dir in $PATH
4381do
4382  IFS=$as_save_IFS
4383  test -z "$as_dir" && as_dir=.
4384  # Account for people who put trailing slashes in PATH elements.
4385case $as_dir/ in
4386  ./ | .// | /cC/* | \
4387  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4388  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4389  /usr/ucb/* ) ;;
4390  *)
4391    # OSF1 and SCO ODT 3.0 have their own names for install.
4392    # Don't use installbsd from OSF since it installs stuff as root
4393    # by default.
4394    for ac_prog in ginstall scoinst install; do
4395      for ac_exec_ext in '' $ac_executable_extensions; do
4396        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4397          if test $ac_prog = install &&
4398            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4399            # AIX install.  It has an incompatible calling convention.
4400            :
4401          elif test $ac_prog = install &&
4402            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4403            # program-specific install script used by HP pwplus--don't use.
4404            :
4405          else
4406            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4407            break 3
4408          fi
4409        fi
4410      done
4411    done
4412    ;;
4413esac
4414done
4415
4416
4417fi
4418  if test "${ac_cv_path_install+set}" = set; then
4419    INSTALL=$ac_cv_path_install
4420  else
4421    # As a last resort, use the slow shell script.  We don't cache a
4422    # path for INSTALL within a source directory, because that will
4423    # break other packages using the cache if that directory is
4424    # removed, or if the path is relative.
4425    INSTALL=$ac_install_sh
4426  fi
4427fi
4428echo "$as_me:$LINENO: result: $INSTALL" >&5
4429echo "${ECHO_T}$INSTALL" >&6
4430
4431# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4432# It thinks the first close brace ends the variable substitution.
4433test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4434
4435test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4436
4437test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4438
4439echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4440echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4441# Just in case
4442sleep 1
4443echo timestamp > conftest.file
4444# Do `set' in a subshell so we don't clobber the current shell's
4445# arguments.  Must try -L first in case configure is actually a
4446# symlink; some systems play weird games with the mod time of symlinks
4447# (eg FreeBSD returns the mod time of the symlink's containing
4448# directory).
4449if (
4450   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4451   if test "$*" = "X"; then
4452      # -L didn't work.
4453      set X `ls -t $srcdir/configure conftest.file`
4454   fi
4455   rm -f conftest.file
4456   if test "$*" != "X $srcdir/configure conftest.file" \
4457      && test "$*" != "X conftest.file $srcdir/configure"; then
4458
4459      # If neither matched, then we have a broken ls.  This can happen
4460      # if, for instance, CONFIG_SHELL is bash and it inherits a
4461      # broken ls alias from the environment.  This has actually
4462      # happened.  Such a system could not be considered "sane".
4463      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4464alias in your environment" >&5
4465echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4466alias in your environment" >&2;}
4467   { (exit 1); exit 1; }; }
4468   fi
4469
4470   test "$2" = conftest.file
4471   )
4472then
4473   # Ok.
4474   :
4475else
4476   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4477Check your system clock" >&5
4478echo "$as_me: error: newly created file is older than distributed files!
4479Check your system clock" >&2;}
4480   { (exit 1); exit 1; }; }
4481fi
4482echo "$as_me:$LINENO: result: yes" >&5
4483echo "${ECHO_T}yes" >&6
4484test "$program_prefix" != NONE &&
4485  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4486# Use a double $ so make ignores it.
4487test "$program_suffix" != NONE &&
4488  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4489# Double any \ or $.  echo might interpret backslashes.
4490# By default was `s,x,x', remove it if useless.
4491cat <<\_ACEOF >conftest.sed
4492s/[\\$]/&&/g;s/;s,x,x,$//
4493_ACEOF
4494program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4495rm conftest.sed
4496
4497# expand $ac_aux_dir to an absolute path
4498am_aux_dir=`cd $ac_aux_dir && pwd`
4499
4500test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4501# Use eval to expand $SHELL
4502if eval "$MISSING --run true"; then
4503  am_missing_run="$MISSING --run "
4504else
4505  am_missing_run=
4506  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4507echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4508fi
4509
4510if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4511  # We used to keeping the `.' as first argument, in order to
4512  # allow $(mkdir_p) to be used without argument.  As in
4513  #   $(mkdir_p) $(somedir)
4514  # where $(somedir) is conditionally defined.  However this is wrong
4515  # for two reasons:
4516  #  1. if the package is installed by a user who cannot write `.'
4517  #     make install will fail,
4518  #  2. the above comment should most certainly read
4519  #     $(mkdir_p) $(DESTDIR)$(somedir)
4520  #     so it does not work when $(somedir) is undefined and
4521  #     $(DESTDIR) is not.
4522  #  To support the latter case, we have to write
4523  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4524  #  so the `.' trick is pointless.
4525  mkdir_p='mkdir -p --'
4526else
4527  # On NextStep and OpenStep, the `mkdir' command does not
4528  # recognize any option.  It will interpret all options as
4529  # directories to create, and then abort because `.' already
4530  # exists.
4531  for d in ./-p ./--version;
4532  do
4533    test -d $d && rmdir $d
4534  done
4535  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4536  if test -f "$ac_aux_dir/mkinstalldirs"; then
4537    mkdir_p='$(mkinstalldirs)'
4538  else
4539    mkdir_p='$(install_sh) -d'
4540  fi
4541fi
4542
4543for ac_prog in gawk mawk nawk awk
4544do
4545  # Extract the first word of "$ac_prog", so it can be a program name with args.
4546set dummy $ac_prog; ac_word=$2
4547echo "$as_me:$LINENO: checking for $ac_word" >&5
4548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549if test "${ac_cv_prog_AWK+set}" = set; then
4550  echo $ECHO_N "(cached) $ECHO_C" >&6
4551else
4552  if test -n "$AWK"; then
4553  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558  IFS=$as_save_IFS
4559  test -z "$as_dir" && as_dir=.
4560  for ac_exec_ext in '' $ac_executable_extensions; do
4561  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562    ac_cv_prog_AWK="$ac_prog"
4563    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564    break 2
4565  fi
4566done
4567done
4568
4569fi
4570fi
4571AWK=$ac_cv_prog_AWK
4572if test -n "$AWK"; then
4573  echo "$as_me:$LINENO: result: $AWK" >&5
4574echo "${ECHO_T}$AWK" >&6
4575else
4576  echo "$as_me:$LINENO: result: no" >&5
4577echo "${ECHO_T}no" >&6
4578fi
4579
4580  test -n "$AWK" && break
4581done
4582
4583echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4584echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4585set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4586if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4587  echo $ECHO_N "(cached) $ECHO_C" >&6
4588else
4589  cat >conftest.make <<\_ACEOF
4590all:
4591        @echo 'ac_maketemp="$(MAKE)"'
4592_ACEOF
4593# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4594eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4595if test -n "$ac_maketemp"; then
4596  eval ac_cv_prog_make_${ac_make}_set=yes
4597else
4598  eval ac_cv_prog_make_${ac_make}_set=no
4599fi
4600rm -f conftest.make
4601fi
4602if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4603  echo "$as_me:$LINENO: result: yes" >&5
4604echo "${ECHO_T}yes" >&6
4605  SET_MAKE=
4606else
4607  echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6
4609  SET_MAKE="MAKE=${MAKE-make}"
4610fi
4611
4612rm -rf .tst 2>/dev/null
4613mkdir .tst 2>/dev/null
4614if test -d .tst; then
4615  am__leading_dot=.
4616else
4617  am__leading_dot=_
4618fi
4619rmdir .tst 2>/dev/null
4620
4621DEPDIR="${am__leading_dot}deps"
4622
4623          ac_config_commands="$ac_config_commands depfiles"
4624
4625
4626am_make=${MAKE-make}
4627cat > confinc << 'END'
4628am__doit:
4629        @echo done
4630.PHONY: am__doit
4631END
4632# If we don't find an include directive, just comment out the code.
4633echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4634echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4635am__include="#"
4636am__quote=
4637_am_result=none
4638# First try GNU make style include.
4639echo "include confinc" > confmf
4640# We grep out `Entering directory' and `Leaving directory'
4641# messages which can occur if `w' ends up in MAKEFLAGS.
4642# In particular we don't look at `^make:' because GNU make might
4643# be invoked under some other name (usually "gmake"), in which
4644# case it prints its new name instead of `make'.
4645if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4646   am__include=include
4647   am__quote=
4648   _am_result=GNU
4649fi
4650# Now try BSD make style include.
4651if test "$am__include" = "#"; then
4652   echo '.include "confinc"' > confmf
4653   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4654      am__include=.include
4655      am__quote="\""
4656      _am_result=BSD
4657   fi
4658fi
4659
4660
4661echo "$as_me:$LINENO: result: $_am_result" >&5
4662echo "${ECHO_T}$_am_result" >&6
4663rm -f confinc confmf
4664
4665# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4666if test "${enable_dependency_tracking+set}" = set; then
4667  enableval="$enable_dependency_tracking"
4668
4669fi;
4670if test "x$enable_dependency_tracking" != xno; then
4671  am_depcomp="$ac_aux_dir/depcomp"
4672  AMDEPBACKSLASH='\'
4673fi
4674
4675
4676if test "x$enable_dependency_tracking" != xno; then
4677  AMDEP_TRUE=
4678  AMDEP_FALSE='#'
4679else
4680  AMDEP_TRUE='#'
4681  AMDEP_FALSE=
4682fi
4683
4684
4685
4686
4687
4688
4689# AC_MSG_NOTICE([Beginning automake initialisation.])
4690# Stuff for automake
4691# test to see if srcdir already configured
4692if test "`cd $srcdir && pwd`" != "`pwd`" &&
4693   test -f $srcdir/config.status; then
4694  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4695echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4696   { (exit 1); exit 1; }; }
4697fi
4698
4699# test whether we have cygpath
4700if test -z "$CYGPATH_W"; then
4701  if (cygpath --version) >/dev/null 2>/dev/null; then
4702    CYGPATH_W='cygpath -w'
4703  else
4704    CYGPATH_W=echo
4705  fi
4706fi
4707
4708
4709# Define the identity of the package.
4710 PACKAGE='thirdpartyscip'
4711 VERSION='1.2.1'
4712
4713
4714cat >>confdefs.h <<_ACEOF
4715#define PACKAGE "$PACKAGE"
4716_ACEOF
4717
4718
4719cat >>confdefs.h <<_ACEOF
4720#define VERSION "$VERSION"
4721_ACEOF
4722
4723# Some tools Automake needs.
4724
4725ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4726
4727
4728AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4729
4730
4731AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4732
4733
4734AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4735
4736
4737MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4738
4739install_sh=${install_sh-"$am_aux_dir/install-sh"}
4740
4741# Installed binaries are usually stripped using `strip' when the user
4742# run `make install-strip'.  However `strip' might not be the right
4743# tool to use in cross-compilation environments, therefore Automake
4744# will honor the `STRIP' environment variable to overrule this program.
4745if test "$cross_compiling" != no; then
4746  if test -n "$ac_tool_prefix"; then
4747  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4748set dummy ${ac_tool_prefix}strip; ac_word=$2
4749echo "$as_me:$LINENO: checking for $ac_word" >&5
4750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4751if test "${ac_cv_prog_STRIP+set}" = set; then
4752  echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754  if test -n "$STRIP"; then
4755  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4756else
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760  IFS=$as_save_IFS
4761  test -z "$as_dir" && as_dir=.
4762  for ac_exec_ext in '' $ac_executable_extensions; do
4763  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766    break 2
4767  fi
4768done
4769done
4770
4771fi
4772fi
4773STRIP=$ac_cv_prog_STRIP
4774if test -n "$STRIP"; then
4775  echo "$as_me:$LINENO: result: $STRIP" >&5
4776echo "${ECHO_T}$STRIP" >&6
4777else
4778  echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6
4780fi
4781
4782fi
4783if test -z "$ac_cv_prog_STRIP"; then
4784  ac_ct_STRIP=$STRIP
4785  # Extract the first word of "strip", so it can be a program name with args.
4786set dummy strip; ac_word=$2
4787echo "$as_me:$LINENO: checking for $ac_word" >&5
4788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4790  echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792  if test -n "$ac_ct_STRIP"; then
4793  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4794else
4795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796for as_dir in $PATH
4797do
4798  IFS=$as_save_IFS
4799  test -z "$as_dir" && as_dir=.
4800  for ac_exec_ext in '' $ac_executable_extensions; do
4801  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802    ac_cv_prog_ac_ct_STRIP="strip"
4803    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804    break 2
4805  fi
4806done
4807done
4808
4809  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4810fi
4811fi
4812ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4813if test -n "$ac_ct_STRIP"; then
4814  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4815echo "${ECHO_T}$ac_ct_STRIP" >&6
4816else
4817  echo "$as_me:$LINENO: result: no" >&5
4818echo "${ECHO_T}no" >&6
4819fi
4820
4821  STRIP=$ac_ct_STRIP
4822else
4823  STRIP="$ac_cv_prog_STRIP"
4824fi
4825
4826fi
4827INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4828
4829# We need awk for the "check" target.  The system "awk" is bad on
4830# some platforms.
4831# Always define AMTAR for backward compatibility.
4832
4833AMTAR=${AMTAR-"${am_missing_run}tar"}
4834
4835am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4836
4837
4838
4839
4840depcc="$CC"   am_compiler_list=
4841
4842echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4843echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4844if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4845  echo $ECHO_N "(cached) $ECHO_C" >&6
4846else
4847  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4848  # We make a subdir and do the tests there.  Otherwise we can end up
4849  # making bogus files that we don't know about and never remove.  For
4850  # instance it was reported that on HP-UX the gcc test will end up
4851  # making a dummy file named `D' -- because `-MD' means `put the output
4852  # in D'.
4853  mkdir conftest.dir
4854  # Copy depcomp to subdir because otherwise we won't find it if we're
4855  # using a relative directory.
4856  cp "$am_depcomp" conftest.dir
4857  cd conftest.dir
4858  # We will build objects and dependencies in a subdirectory because
4859  # it helps to detect inapplicable dependency modes.  For instance
4860  # both Tru64's cc and ICC support -MD to output dependencies as a
4861  # side effect of compilation, but ICC will put the dependencies in
4862  # the current directory while Tru64 will put them in the object
4863  # directory.
4864  mkdir sub
4865
4866  am_cv_CC_dependencies_compiler_type=none
4867  if test "$am_compiler_list" = ""; then
4868     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4869  fi
4870  for depmode in $am_compiler_list; do
4871    # Setup a source with many dependencies, because some compilers
4872    # like to wrap large dependency lists on column 80 (with \), and
4873    # we should not choose a depcomp mode which is confused by this.
4874    #
4875    # We need to recreate these files for each test, as the compiler may
4876    # overwrite some of them when testing with obscure command lines.
4877    # This happens at least with the AIX C compiler.
4878    : > sub/conftest.c
4879    for i in 1 2 3 4 5 6; do
4880      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4881      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4882      # Solaris 8's {/usr,}/bin/sh.
4883      touch sub/conftst$i.h
4884    done
4885    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4886
4887    case $depmode in
4888    nosideeffect)
4889      # after this tag, mechanisms are not by side-effect, so they'll
4890      # only be used when explicitly requested
4891      if test "x$enable_dependency_tracking" = xyes; then
4892        continue
4893      else
4894        break
4895      fi
4896      ;;
4897    none) break ;;
4898    esac
4899    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4900    # mode.  It turns out that the SunPro C++ compiler does not properly
4901    # handle `-M -o', and we need to detect this.
4902    if depmode=$depmode \
4903       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4904       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4905       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4906         >/dev/null 2>conftest.err &&
4907       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4908       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4909       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4910      # icc doesn't choke on unknown options, it will just issue warnings
4911      # or remarks (even with -Werror).  So we grep stderr for any message
4912      # that says an option was ignored or not supported.
4913      # When given -MP, icc 7.0 and 7.1 complain thusly:
4914      #   icc: Command line warning: ignoring option '-M'; no argument required
4915      # The diagnosis changed in icc 8.0:
4916      #   icc: Command line remark: option '-MP' not supported
4917      if (grep 'ignoring option' conftest.err ||
4918          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4919        am_cv_CC_dependencies_compiler_type=$depmode
4920        break
4921      fi
4922    fi
4923  done
4924
4925  cd ..
4926  rm -rf conftest.dir
4927else
4928  am_cv_CC_dependencies_compiler_type=none
4929fi
4930
4931fi
4932echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4933echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4934CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4935
4936
4937
4938if
4939  test "x$enable_dependency_tracking" != xno \
4940  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4941  am__fastdepCC_TRUE=
4942  am__fastdepCC_FALSE='#'
4943else
4944  am__fastdepCC_TRUE='#'
4945  am__fastdepCC_FALSE=
4946fi
4947
4948
4949depcc="$CXX"  am_compiler_list=
4950
4951echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4952echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4953if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4954  echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4957  # We make a subdir and do the tests there.  Otherwise we can end up
4958  # making bogus files that we don't know about and never remove.  For
4959  # instance it was reported that on HP-UX the gcc test will end up
4960  # making a dummy file named `D' -- because `-MD' means `put the output
4961  # in D'.
4962  mkdir conftest.dir
4963  # Copy depcomp to subdir because otherwise we won't find it if we're
4964  # using a relative directory.
4965  cp "$am_depcomp" conftest.dir
4966  cd conftest.dir
4967  # We will build objects and dependencies in a subdirectory because
4968  # it helps to detect inapplicable dependency modes.  For instance
4969  # both Tru64's cc and ICC support -MD to output dependencies as a
4970  # side effect of compilation, but ICC will put the dependencies in
4971  # the current directory while Tru64 will put them in the object
4972  # directory.
4973  mkdir sub
4974
4975  am_cv_CXX_dependencies_compiler_type=none
4976  if test "$am_compiler_list" = ""; then
4977     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4978  fi
4979  for depmode in $am_compiler_list; do
4980    # Setup a source with many dependencies, because some compilers
4981    # like to wrap large dependency lists on column 80 (with \), and
4982    # we should not choose a depcomp mode which is confused by this.
4983    #
4984    # We need to recreate these files for each test, as the compiler may
4985    # overwrite some of them when testing with obscure command lines.
4986    # This happens at least with the AIX C compiler.
4987    : > sub/conftest.c
4988    for i in 1 2 3 4 5 6; do
4989      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4990      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4991      # Solaris 8's {/usr,}/bin/sh.
4992      touch sub/conftst$i.h
4993    done
4994    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4995
4996    case $depmode in
4997    nosideeffect)
4998      # after this tag, mechanisms are not by side-effect, so they'll
4999      # only be used when explicitly requested
5000      if test "x$enable_dependency_tracking" = xyes; then
5001        continue
5002      else
5003        break
5004      fi
5005      ;;
5006    none) break ;;
5007    esac
5008    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5009    # mode.  It turns out that the SunPro C++ compiler does not properly
5010    # handle `-M -o', and we need to detect this.
5011    if depmode=$depmode \
5012       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5013       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5014       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5015         >/dev/null 2>conftest.err &&
5016       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5017       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5018       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5019      # icc doesn't choke on unknown options, it will just issue warnings
5020      # or remarks (even with -Werror).  So we grep stderr for any message
5021      # that says an option was ignored or not supported.
5022      # When given -MP, icc 7.0 and 7.1 complain thusly:
5023      #   icc: Command line warning: ignoring option '-M'; no argument required
5024      # The diagnosis changed in icc 8.0:
5025      #   icc: Command line remark: option '-MP' not supported
5026      if (grep 'ignoring option' conftest.err ||
5027          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5028        am_cv_CXX_dependencies_compiler_type=$depmode
5029        break
5030      fi
5031    fi
5032  done
5033
5034  cd ..
5035  rm -rf conftest.dir
5036else
5037  am_cv_CXX_dependencies_compiler_type=none
5038fi
5039
5040fi
5041echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5042echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5043CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5044
5045
5046
5047if
5048  test "x$enable_dependency_tracking" != xno \
5049  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5050  am__fastdepCXX_TRUE=
5051  am__fastdepCXX_FALSE='#'
5052else
5053  am__fastdepCXX_TRUE='#'
5054  am__fastdepCXX_FALSE=
5055fi
5056
5057
5058
5059echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5060echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5061    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5062if test "${enable_maintainer_mode+set}" = set; then
5063  enableval="$enable_maintainer_mode"
5064  USE_MAINTAINER_MODE=$enableval
5065else
5066  USE_MAINTAINER_MODE=no
5067fi;
5068  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5069echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5070
5071
5072if test $USE_MAINTAINER_MODE = yes; then
5073  MAINTAINER_MODE_TRUE=
5074  MAINTAINER_MODE_FALSE='#'
5075else
5076  MAINTAINER_MODE_TRUE='#'
5077  MAINTAINER_MODE_FALSE=
5078fi
5079
5080  MAINT=$MAINTAINER_MODE_TRUE
5081
5082
5083
5084coin_have_externals=no
5085if test "$enable_maintainer_mode" = yes; then
5086
5087  # If maintainer mode is chosen, we make sure that the correct versions
5088  # of the tools are used, and that we know where libtool.m4 is (to
5089  # recreate acinclude.m4)
5090
5091
5092  LIBTOOLM4=
5093  # Normally, $HOME
5094  AUTOTOOLS_DFLT=$HOME
5095
5096  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5097echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5098if test "${ac_cv_use_correct_autotools+set}" = set; then
5099  echo $ECHO_N "(cached) $ECHO_C" >&6
5100else
5101  ac_cv_use_correct_autotools=check
5102fi
5103echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5104echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5105
5106  if test $ac_cv_use_correct_autotools = check; then
5107    ac_cv_use_correct_autotools=yes
5108    # Check if we have autoconf
5109    # Extract the first word of "autoconf", so it can be a program name with args.
5110set dummy autoconf; ac_word=$2
5111echo "$as_me:$LINENO: checking for $ac_word" >&5
5112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5113if test "${ac_cv_prog_have_autoconf+set}" = set; then
5114  echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116  if test -n "$have_autoconf"; then
5117  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5118else
5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122  IFS=$as_save_IFS
5123  test -z "$as_dir" && as_dir=.
5124  for ac_exec_ext in '' $ac_executable_extensions; do
5125  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126    ac_cv_prog_have_autoconf="yes"
5127    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128    break 2
5129  fi
5130done
5131done
5132
5133  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5134fi
5135fi
5136have_autoconf=$ac_cv_prog_have_autoconf
5137if test -n "$have_autoconf"; then
5138  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5139echo "${ECHO_T}$have_autoconf" >&6
5140else
5141  echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
5143fi
5144
5145    if test $have_autoconf = no; then
5146      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5147echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5148   { (exit 1); exit 1; }; }
5149    fi
5150
5151    # Check whether autoconf is the correct version
5152    correct_version='2.59'
5153    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5154    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5155echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5156    autoconf --version > confauto.out 2>&1
5157    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5158      echo "$as_me:$LINENO: result: yes" >&5
5159echo "${ECHO_T}yes" >&6
5160    else
5161      rm -f confauto.out
5162      echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5165echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5166   { (exit 1); exit 1; }; }
5167    fi
5168    rm -f confauto.out
5169
5170    # Check if the executable autoconf is picked up from the correct location
5171    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5172echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5173    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5174    autoconf_dir=`cd $autoconf_dir; pwd`
5175    if test x$AUTOTOOLS_DIR = x; then
5176      want_dir=$AUTOTOOLS_DFLT/bin
5177    else
5178      want_dir=$AUTOTOOLS_DIR/bin
5179    fi
5180    if test $autoconf_dir = `cd $want_dir; pwd`; then
5181      echo "$as_me:$LINENO: result: yes" >&5
5182echo "${ECHO_T}yes" >&6
5183    else
5184      rm -f confauto.out
5185      echo "$as_me:$LINENO: result: no" >&5
5186echo "${ECHO_T}no" >&6
5187      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5188echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5189   { (exit 1); exit 1; }; }
5190    fi
5191
5192    # Check if we have automake
5193    # Extract the first word of "automake", so it can be a program name with args.
5194set dummy automake; ac_word=$2
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197if test "${ac_cv_prog_have_automake+set}" = set; then
5198  echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200  if test -n "$have_automake"; then
5201  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206  IFS=$as_save_IFS
5207  test -z "$as_dir" && as_dir=.
5208  for ac_exec_ext in '' $ac_executable_extensions; do
5209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210    ac_cv_prog_have_automake="yes"
5211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212    break 2
5213  fi
5214done
5215done
5216
5217  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5218fi
5219fi
5220have_automake=$ac_cv_prog_have_automake
5221if test -n "$have_automake"; then
5222  echo "$as_me:$LINENO: result: $have_automake" >&5
5223echo "${ECHO_T}$have_automake" >&6
5224else
5225  echo "$as_me:$LINENO: result: no" >&5
5226echo "${ECHO_T}no" >&6
5227fi
5228
5229    if test $have_automake = no; then
5230      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5231echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5232   { (exit 1); exit 1; }; }
5233    fi
5234
5235    # Check whether automake is the correct version
5236    correct_version='1.9.6'
5237    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5238    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5239echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5240    automake --version > confauto.out 2>&1
5241    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5242      echo "$as_me:$LINENO: result: yes" >&5
5243echo "${ECHO_T}yes" >&6
5244    else
5245      rm -f confauto.out
5246      echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
5248      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5249echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5250   { (exit 1); exit 1; }; }
5251    fi
5252    rm -f confauto.out
5253
5254    # Check if the executable automake is picked up from the correct location
5255    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5256echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5257    automake_dir=`which automake | sed -e 's=/automake=='`
5258    automake_dir=`cd $automake_dir; pwd`
5259    if test x$AUTOTOOLS_DIR = x; then
5260      want_dir=$AUTOTOOLS_DFLT/bin
5261    else
5262      want_dir=$AUTOTOOLS_DIR/bin
5263    fi
5264    if test $automake_dir = `cd $want_dir; pwd`; then
5265      echo "$as_me:$LINENO: result: yes" >&5
5266echo "${ECHO_T}yes" >&6
5267    else
5268      rm -f confauto.out
5269      echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6
5271      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5272echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5273   { (exit 1); exit 1; }; }
5274    fi
5275
5276    # Check if this is the correct version of libtool (with escaped dots)
5277    if test x$AUTOTOOLS_DIR = x; then
5278      want_dir=$AUTOTOOLS_DFLT/share
5279    else
5280      want_dir=$AUTOTOOLS_DIR/share
5281    fi
5282    correct_version='1.5.22'
5283    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5284    if test -r $want_dir/libtool/ltmain.sh; then
5285  have_ltmain=yes
5286  :
5287else
5288  have_ltmain=no
5289  :
5290fi
5291
5292    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5293echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5294    if test $have_ltmain = yes; then
5295    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5296        echo "$as_me:$LINENO: result: yes" >&5
5297echo "${ECHO_T}yes" >&6
5298      else
5299        echo "$as_me:$LINENO: result: no" >&5
5300echo "${ECHO_T}no" >&6
5301        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5302echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5303   { (exit 1); exit 1; }; }
5304      fi
5305    else
5306      echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5309echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5310   { (exit 1); exit 1; }; }
5311    fi
5312  fi
5313
5314  # Check if we can find the libtool file
5315  if test x$AUTOTOOLS_DIR = x; then
5316    want_dir=$AUTOTOOLS_DFLT/share
5317  else
5318    want_dir=$AUTOTOOLS_DIR/share
5319  fi
5320  if test -r $want_dir/aclocal/libtool.m4; then
5321  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5322  :
5323else
5324  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5325echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5326   { (exit 1); exit 1; }; }
5327  :
5328fi
5329
5330
5331  # Check if we have an Dependencies file
5332  if test -r $srcdir/Dependencies; then
5333    coin_have_externals=yes
5334  fi
5335  # Check if subversion is installed and understands https
5336  # Extract the first word of "svn", so it can be a program name with args.
5337set dummy svn; ac_word=$2
5338echo "$as_me:$LINENO: checking for $ac_word" >&5
5339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340if test "${ac_cv_prog_have_svn+set}" = set; then
5341  echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343  if test -n "$have_svn"; then
5344  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5345else
5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349  IFS=$as_save_IFS
5350  test -z "$as_dir" && as_dir=.
5351  for ac_exec_ext in '' $ac_executable_extensions; do
5352  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353    ac_cv_prog_have_svn="yes"
5354    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355    break 2
5356  fi
5357done
5358done
5359
5360  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5361fi
5362fi
5363have_svn=$ac_cv_prog_have_svn
5364if test -n "$have_svn"; then
5365  echo "$as_me:$LINENO: result: $have_svn" >&5
5366echo "${ECHO_T}$have_svn" >&6
5367else
5368  echo "$as_me:$LINENO: result: no" >&5
5369echo "${ECHO_T}no" >&6
5370fi
5371
5372  if test x$have_svn = xyes; then
5373    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5374echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5375if test "${ac_cv_svn_understands_https+set}" = set; then
5376  echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378  svn --version > confauto.out 2>&1
5379                    if $EGREP https confauto.out >/dev/null 2>&1; then
5380                      ac_cv_svn_understands_https=yes
5381                    else
5382                      ac_cv_svn_understands_https=no
5383                      have_svn=no
5384                      ac_cv_prog_have_svn=no
5385                    fi
5386                    rm -f confauto.out
5387fi
5388echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5389echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5390  fi
5391
5392  # Find the location of the BuildTools directory
5393  BUILDTOOLSDIR=
5394  if test -r $srcdir/BuildTools/coin.m4; then
5395    BUILDTOOLSDIR=$srcdir/BuildTools
5396  else
5397    if test -r $srcdir/../BuildTools/coin.m4; then
5398      BUILDTOOLSDIR=$srcdir/../BuildTools
5399    else
5400      if test -r $srcdir/../../BuildTools/coin.m4; then
5401        BUILDTOOLSDIR=$srcdir/../../BuildTools
5402      else
5403        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5404echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5405   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5406      fi
5407    fi
5408  fi
5409
5410
5411  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5412  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5413    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5414  fi
5415
5416  # The following variable is set to the name of the directory where
5417  # the autotool scripts are located
5418
5419  AUX_DIR=$ac_aux_dir
5420fi
5421
5422# helpful variable for the base directory of this package
5423abs_source_dir=`cd $srcdir; pwd`
5424
5425
5426# Stuff for example Makefiles
5427if test x$prefix = xNONE; then
5428  full_prefix=$ac_default_prefix
5429else
5430  full_prefix=$prefix
5431fi
5432full_prefix=`cd $full_prefix ; pwd`
5433
5434abs_lib_dir=$full_prefix/lib
5435
5436abs_include_dir=$full_prefix/include
5437
5438abs_bin_dir=$full_prefix/bin
5439
5440
5441
5442if test $coin_have_externals = yes && test x$have_svn = xyes; then
5443  HAVE_EXTERNALS_TRUE=
5444  HAVE_EXTERNALS_FALSE='#'
5445else
5446  HAVE_EXTERNALS_TRUE='#'
5447  HAVE_EXTERNALS_FALSE=
5448fi
5449
5450
5451# AC_MSG_NOTICE([End automake initialisation.])
5452
5453
5454
5455LIBTOOL=
5456if test -r ../libtool; then
5457  coin_config_dir=..
5458  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5459fi
5460if test "x$LIBTOOL" = x; then
5461  if test -r ../../libtool; then
5462    coin_config_dir=../..
5463    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5464  fi
5465fi
5466
5467if test "x$LIBTOOL" = x; then
5468# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5469  # Stuff for libtool
5470  # Check whether --enable-shared or --disable-shared was given.
5471if test "${enable_shared+set}" = set; then
5472  enableval="$enable_shared"
5473  p=${PACKAGE-default}
5474    case $enableval in
5475    yes) enable_shared=yes ;;
5476    no) enable_shared=no ;;
5477    *)
5478      enable_shared=no
5479      # Look at the argument we got.  We use all the common list separators.
5480      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5481      for pkg in $enableval; do
5482        IFS="$lt_save_ifs"
5483        if test "X$pkg" = "X$p"; then
5484          enable_shared=yes
5485        fi
5486      done
5487      IFS="$lt_save_ifs"
5488      ;;
5489    esac
5490else
5491  enable_shared=yes
5492fi;
5493
5494# Check whether --enable-fast-install or --disable-fast-install was given.
5495if test "${enable_fast_install+set}" = set; then
5496  enableval="$enable_fast_install"
5497  p=${PACKAGE-default}
5498    case $enableval in
5499    yes) enable_fast_install=yes ;;
5500    no) enable_fast_install=no ;;
5501    *)
5502      enable_fast_install=no
5503      # Look at the argument we got.  We use all the common list separators.
5504      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5505      for pkg in $enableval; do
5506        IFS="$lt_save_ifs"
5507        if test "X$pkg" = "X$p"; then
5508          enable_fast_install=yes
5509        fi
5510      done
5511      IFS="$lt_save_ifs"
5512      ;;
5513    esac
5514else
5515  enable_fast_install=yes
5516fi;
5517
5518echo "$as_me:$LINENO: checking host system type" >&5
5519echo $ECHO_N "checking host system type... $ECHO_C" >&6
5520if test "${ac_cv_host+set}" = set; then
5521  echo $ECHO_N "(cached) $ECHO_C" >&6
5522else
5523  ac_cv_host_alias=$host_alias
5524test -z "$ac_cv_host_alias" &&
5525  ac_cv_host_alias=$ac_cv_build_alias
5526ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5527  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5528echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5529   { (exit 1); exit 1; }; }
5530
5531fi
5532echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5533echo "${ECHO_T}$ac_cv_host" >&6
5534host=$ac_cv_host
5535host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5536host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5537host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5538
5539
5540echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5541echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5542if test "${lt_cv_path_SED+set}" = set; then
5543  echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545  # Loop through the user's path and test for sed and gsed.
5546# Then use that list of sed's as ones to test for truncation.
5547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550  IFS=$as_save_IFS
5551  test -z "$as_dir" && as_dir=.
5552  for lt_ac_prog in sed gsed; do
5553    for ac_exec_ext in '' $ac_executable_extensions; do
5554      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5555        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5556      fi
5557    done
5558  done
5559done
5560lt_ac_max=0
5561lt_ac_count=0
5562# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5563# along with /bin/sed that truncates output.
5564for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5565  test ! -f $lt_ac_sed && continue
5566  cat /dev/null > conftest.in
5567  lt_ac_count=0
5568  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5569  # Check for GNU sed and select it if it is found.
5570  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5571    lt_cv_path_SED=$lt_ac_sed
5572    break
5573  fi
5574  while true; do
5575    cat conftest.in conftest.in >conftest.tmp
5576    mv conftest.tmp conftest.in
5577    cp conftest.in conftest.nl
5578    echo >>conftest.nl
5579    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5580    cmp -s conftest.out conftest.nl || break
5581    # 10000 chars as input seems more than enough
5582    test $lt_ac_count -gt 10 && break
5583    lt_ac_count=`expr $lt_ac_count + 1`
5584    if test $lt_ac_count -gt $lt_ac_max; then
5585      lt_ac_max=$lt_ac_count
5586      lt_cv_path_SED=$lt_ac_sed
5587    fi
5588  done
5589done
5590
5591fi
5592
5593SED=$lt_cv_path_SED
5594echo "$as_me:$LINENO: result: $SED" >&5
5595echo "${ECHO_T}$SED" >&6
5596
5597
5598# Check whether --with-gnu-ld or --without-gnu-ld was given.
5599if test "${with_gnu_ld+set}" = set; then
5600  withval="$with_gnu_ld"
5601  test "$withval" = no || with_gnu_ld=yes
5602else
5603  with_gnu_ld=no
5604fi;
5605ac_prog=ld
5606if test "$GCC" = yes; then
5607  # Check if gcc -print-prog-name=ld gives a path.
5608  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5609echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5610  case $host in
5611  *-*-mingw*)
5612    # gcc leaves a trailing carriage return which upsets mingw
5613    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5614  *)
5615    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5616  esac
5617  case $ac_prog in
5618    # Accept absolute paths.
5619    [\\/]* | ?:[\\/]*)
5620      re_direlt='/[^/][^/]*/\.\./'
5621      # Canonicalize the pathname of ld
5622      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5623      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5624        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5625      done
5626      test -z "$LD" && LD="$ac_prog"
5627      ;;
5628  "")
5629    # If it fails, then pretend we aren't using GCC.
5630    ac_prog=ld
5631    ;;
5632  *)
5633    # If it is relative, then search for the first ld in PATH.
5634    with_gnu_ld=unknown
5635    ;;
5636  esac
5637elif test "$with_gnu_ld" = yes; then
5638  echo "$as_me:$LINENO: checking for GNU ld" >&5
5639echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5640else
5641  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5642echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5643fi
5644if test "${lt_cv_path_LD+set}" = set; then
5645  echo $ECHO_N "(cached) $ECHO_C" >&6
5646else
5647  if test -z "$LD"; then
5648  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5649  for ac_dir in $PATH; do
5650    IFS="$lt_save_ifs"
5651    test -z "$ac_dir" && ac_dir=.
5652    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5653      lt_cv_path_LD="$ac_dir/$ac_prog"
5654      # Check to see if the program is GNU ld.  I'd rather use --version,
5655      # but apparently some variants of GNU ld only accept -v.
5656      # Break only if it was the GNU/non-GNU ld that we prefer.
5657      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5658      *GNU* | *'with BFD'*)
5659        test "$with_gnu_ld" != no && break
5660        ;;
5661      *)
5662        test "$with_gnu_ld" != yes && break
5663        ;;
5664      esac
5665    fi
5666  done
5667  IFS="$lt_save_ifs"
5668else
5669  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5670fi
5671fi
5672
5673LD="$lt_cv_path_LD"
5674if test -n "$LD"; then
5675  echo "$as_me:$LINENO: result: $LD" >&5
5676echo "${ECHO_T}$LD" >&6
5677else
5678  echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6
5680fi
5681test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5682echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5683   { (exit 1); exit 1; }; }
5684echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5685echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5686if test "${lt_cv_prog_gnu_ld+set}" = set; then
5687  echo $ECHO_N "(cached) $ECHO_C" >&6
5688else
5689  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5690case `$LD -v 2>&1 </dev/null` in
5691*GNU* | *'with BFD'*)
5692  lt_cv_prog_gnu_ld=yes
5693  ;;
5694*)
5695  lt_cv_prog_gnu_ld=no
5696  ;;
5697esac
5698fi
5699echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5700echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5701with_gnu_ld=$lt_cv_prog_gnu_ld
5702
5703
5704echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5705echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5706if test "${lt_cv_ld_reload_flag+set}" = set; then
5707  echo $ECHO_N "(cached) $ECHO_C" >&6
5708else
5709  lt_cv_ld_reload_flag='-r'
5710fi
5711echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5712echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5713reload_flag=$lt_cv_ld_reload_flag
5714case $reload_flag in
5715"" | " "*) ;;
5716*) reload_flag=" $reload_flag" ;;
5717esac
5718reload_cmds='$LD$reload_flag -o $output$reload_objs'
5719case $host_os in
5720  darwin*)
5721    if test "$GCC" = yes; then
5722      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5723    else
5724      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5725    fi
5726    ;;
5727esac
5728
5729echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5730echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5731if test "${lt_cv_path_NM+set}" = set; then
5732  echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
5734  if test -n "$NM"; then
5735  # Let the user override the test.
5736  lt_cv_path_NM="$NM"
5737else
5738  lt_nm_to_check="${ac_tool_prefix}nm"
5739  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5740    lt_nm_to_check="$lt_nm_to_check nm"
5741  fi
5742  for lt_tmp_nm in $lt_nm_to_check; do
5743    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5744    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5745      IFS="$lt_save_ifs"
5746      test -z "$ac_dir" && ac_dir=.
5747      tmp_nm="$ac_dir/$lt_tmp_nm"
5748      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5749        # Check to see if the nm accepts a BSD-compat flag.
5750        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5751        #   nm: unknown option "B" ignored
5752        # Tru64's nm complains that /dev/null is an invalid object file
5753        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5754        */dev/null* | *'Invalid file or object type'*)
5755          lt_cv_path_NM="$tmp_nm -B"
5756          break
5757          ;;
5758        *)
5759          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5760          */dev/null*)
5761            lt_cv_path_NM="$tmp_nm -p"
5762            break
5763            ;;
5764          *)
5765            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5766            continue # so that we can try to find one that supports BSD flags
5767            ;;
5768          esac
5769          ;;
5770        esac
5771      fi
5772    done
5773    IFS="$lt_save_ifs"
5774  done
5775  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5776fi
5777fi
5778echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5779echo "${ECHO_T}$lt_cv_path_NM" >&6
5780NM="$lt_cv_path_NM"
5781
5782echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5783echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5784if test "${lt_cv_deplibs_check_method+set}" = set; then
5785  echo $ECHO_N "(cached) $ECHO_C" >&6
5786else
5787  lt_cv_file_magic_cmd='$MAGIC_CMD'
5788lt_cv_file_magic_test_file=
5789lt_cv_deplibs_check_method='unknown'
5790# Need to set the preceding variable on all platforms that support
5791# interlibrary dependencies.
5792# 'none' -- dependencies not supported.
5793# `unknown' -- same as none, but documents that we really don't know.
5794# 'pass_all' -- all dependencies passed with no checks.
5795# 'test_compile' -- check by making test program.
5796# 'file_magic [[regex]]' -- check by looking for files in library path
5797# which responds to the $file_magic_cmd with a given extended regex.
5798# If you have `file' or equivalent on your system and you're not sure
5799# whether `pass_all' will *always* work, you probably want this one.
5800
5801case $host_os in
5802aix4* | aix5*)
5803  lt_cv_deplibs_check_method=pass_all
5804  ;;
5805
5806beos*)
5807  lt_cv_deplibs_check_method=pass_all
5808  ;;
5809
5810bsdi[45]*)
5811  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5812  lt_cv_file_magic_cmd='/usr/bin/file -L'
5813  lt_cv_file_magic_test_file=/shlib/libc.so
5814  ;;
5815
5816cygwin*)
5817  # func_win32_libid is a shell function defined in ltmain.sh
5818  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5819  lt_cv_file_magic_cmd='func_win32_libid'
5820  ;;
5821
5822mingw* | pw32*)
5823  # Base MSYS/MinGW do not provide the 'file' command needed by
5824  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5825  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5826  lt_cv_file_magic_cmd='$OBJDUMP -f'
5827  ;;
5828
5829darwin* | rhapsody*)
5830  lt_cv_deplibs_check_method=pass_all
5831  ;;
5832
5833freebsd* | kfreebsd*-gnu | dragonfly*)
5834  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5835    case $host_cpu in
5836    i*86 )
5837      # Not sure whether the presence of OpenBSD here was a mistake.
5838      # Let's accept both of them until this is cleared up.
5839      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5840      lt_cv_file_magic_cmd=/usr/bin/file
5841      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5842      ;;
5843    esac
5844  else
5845    lt_cv_deplibs_check_method=pass_all
5846  fi
5847  ;;
5848
5849gnu*)
5850  lt_cv_deplibs_check_method=pass_all
5851  ;;
5852
5853hpux10.20* | hpux11*)
5854  lt_cv_file_magic_cmd=/usr/bin/file
5855  case $host_cpu in
5856  ia64*)
5857    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5858    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5859    ;;
5860  hppa*64*)
5861    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]'
5862    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5863    ;;
5864  *)
5865    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5866    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5867    ;;
5868  esac
5869  ;;
5870
5871interix3*)
5872  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5873  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5874  ;;
5875
5876irix5* | irix6* | nonstopux*)
5877  case $LD in
5878  *-32|*"-32 ") libmagic=32-bit;;
5879  *-n32|*"-n32 ") libmagic=N32;;
5880  *-64|*"-64 ") libmagic=64-bit;;
5881  *) libmagic=never-match;;
5882  esac
5883  lt_cv_deplibs_check_method=pass_all
5884  ;;
5885
5886# This must be Linux ELF.
5887linux*)
5888  lt_cv_deplibs_check_method=pass_all
5889  ;;
5890
5891netbsd*)
5892  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5893    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5894  else
5895    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5896  fi
5897  ;;
5898
5899newos6*)
5900  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5901  lt_cv_file_magic_cmd=/usr/bin/file
5902  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5903  ;;
5904
5905nto-qnx*)
5906  lt_cv_deplibs_check_method=unknown
5907  ;;
5908
5909openbsd*)
5910  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5911    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5912  else
5913    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5914  fi
5915  ;;
5916
5917osf3* | osf4* | osf5*)
5918  lt_cv_deplibs_check_method=pass_all
5919  ;;
5920
5921solaris*)
5922  lt_cv_deplibs_check_method=pass_all
5923  ;;
5924
5925sysv4 | sysv4.3*)
5926  case $host_vendor in
5927  motorola)
5928    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]'
5929    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5930    ;;
5931  ncr)
5932    lt_cv_deplibs_check_method=pass_all
5933    ;;
5934  sequent)
5935    lt_cv_file_magic_cmd='/bin/file'
5936    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5937    ;;
5938  sni)
5939    lt_cv_file_magic_cmd='/bin/file'
5940    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5941    lt_cv_file_magic_test_file=/lib/libc.so
5942    ;;
5943  siemens)
5944    lt_cv_deplibs_check_method=pass_all
5945    ;;
5946  pc)
5947    lt_cv_deplibs_check_method=pass_all
5948    ;;
5949  esac
5950  ;;
5951
5952sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5953  lt_cv_deplibs_check_method=pass_all
5954  ;;
5955esac
5956
5957fi
5958echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5959echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5960file_magic_cmd=$lt_cv_file_magic_cmd
5961deplibs_check_method=$lt_cv_deplibs_check_method
5962test -z "$deplibs_check_method" && deplibs_check_method=unknown
5963
5964
5965
5966
5967# If no C compiler was specified, use CC.
5968LTCC=${LTCC-"$CC"}
5969
5970# If no C compiler flags were specified, use CFLAGS.
5971LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5972
5973# Allow CC to be a program name with arguments.
5974compiler=$CC
5975
5976# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5977if test "${enable_libtool_lock+set}" = set; then
5978  enableval="$enable_libtool_lock"
5979
5980fi;
5981test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5982
5983# Some flags need to be propagated to the compiler or linker for good
5984# libtool support.
5985case $host in
5986ia64-*-hpux*)
5987  # Find out which ABI we are using.
5988  echo 'int i;' > conftest.$ac_ext
5989  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5990  (eval $ac_compile) 2>&5
5991  ac_status=$?
5992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993  (exit $ac_status); }; then
5994    case `/usr/bin/file conftest.$ac_objext` in
5995    *ELF-32*)
5996      HPUX_IA64_MODE="32"
5997      ;;
5998    *ELF-64*)
5999      HPUX_IA64_MODE="64"
6000      ;;
6001    esac
6002  fi
6003  rm -rf conftest*
6004  ;;
6005*-*-irix6*)
6006  # Find out which ABI we are using.
6007  echo '#line 6007 "configure"' > conftest.$ac_ext
6008  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009  (eval $ac_compile) 2>&5
6010  ac_status=$?
6011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012  (exit $ac_status); }; then
6013   if test "$lt_cv_prog_gnu_ld" = yes; then
6014    case `/usr/bin/file conftest.$ac_objext` in
6015    *32-bit*)
6016      LD="${LD-ld} -melf32bsmip"
6017      ;;
6018    *N32*)
6019      LD="${LD-ld} -melf32bmipn32"
6020      ;;
6021    *64-bit*)
6022      LD="${LD-ld} -melf64bmip"
6023      ;;
6024    esac
6025   else
6026    case `/usr/bin/file conftest.$ac_objext` in
6027    *32-bit*)
6028      LD="${LD-ld} -32"
6029      ;;
6030    *N32*)
6031      LD="${LD-ld} -n32"
6032      ;;
6033    *64-bit*)
6034      LD="${LD-ld} -64"
6035      ;;
6036    esac
6037   fi
6038  fi
6039  rm -rf conftest*
6040  ;;
6041
6042x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6043  # Find out which ABI we are using.
6044  echo 'int i;' > conftest.$ac_ext
6045  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046  (eval $ac_compile) 2>&5
6047  ac_status=$?
6048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049  (exit $ac_status); }; then
6050    case `/usr/bin/file conftest.o` in
6051    *32-bit*)
6052      case $host in
6053        x86_64-*linux*)
6054          LD="${LD-ld} -m elf_i386"
6055          ;;
6056        ppc64-*linux*|powerpc64-*linux*)
6057          LD="${LD-ld} -m elf32ppclinux"
6058          ;;
6059        s390x-*linux*)
6060          LD="${LD-ld} -m elf_s390"
6061          ;;
6062        sparc64-*linux*)
6063          LD="${LD-ld} -m elf32_sparc"
6064          ;;
6065      esac
6066      ;;
6067    *64-bit*)
6068      case $host in
6069        x86_64-*linux*)
6070          LD="${LD-ld} -m elf_x86_64"
6071          ;;
6072        ppc*-*linux*|powerpc*-*linux*)
6073          LD="${LD-ld} -m elf64ppc"
6074          ;;
6075        s390*-*linux*)
6076          LD="${LD-ld} -m elf64_s390"
6077          ;;
6078        sparc*-*linux*)
6079          LD="${LD-ld} -m elf64_sparc"
6080          ;;
6081      esac
6082      ;;
6083    esac
6084  fi
6085  rm -rf conftest*
6086  ;;
6087
6088*-*-sco3.2v5*)
6089  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6090  SAVE_CFLAGS="$CFLAGS"
6091  CFLAGS="$CFLAGS -belf"
6092  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6093echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6094if test "${lt_cv_cc_needs_belf+set}" = set; then
6095  echo $ECHO_N "(cached) $ECHO_C" >&6
6096else
6097  ac_ext=c
6098ac_cpp='$CPP $CPPFLAGS'
6099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6101ac_compiler_gnu=$ac_cv_c_compiler_gnu
6102
6103     cat >conftest.$ac_ext <<_ACEOF
6104/* confdefs.h.  */
6105_ACEOF
6106cat confdefs.h >>conftest.$ac_ext
6107cat >>conftest.$ac_ext <<_ACEOF
6108/* end confdefs.h.  */
6109
6110int
6111main ()
6112{
6113
6114  ;
6115  return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext conftest$ac_exeext
6119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120  (eval $ac_link) 2>conftest.er1
6121  ac_status=$?
6122  grep -v '^ *+' conftest.er1 >conftest.err
6123  rm -f conftest.er1
6124  cat conftest.err >&5
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); } &&
6127         { ac_try='test -z "$ac_c_werror_flag"
6128                         || test ! -s conftest.err'
6129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130  (eval $ac_try) 2>&5
6131  ac_status=$?
6132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133  (exit $ac_status); }; } &&
6134         { ac_try='test -s conftest$ac_exeext'
6135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136  (eval $ac_try) 2>&5
6137  ac_status=$?
6138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139  (exit $ac_status); }; }; then
6140  lt_cv_cc_needs_belf=yes
6141else
6142  echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145lt_cv_cc_needs_belf=no
6146fi
6147rm -f conftest.err conftest.$ac_objext \
6148      conftest$ac_exeext conftest.$ac_ext
6149     ac_ext=c
6150ac_cpp='$CPP $CPPFLAGS'
6151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153ac_compiler_gnu=$ac_cv_c_compiler_gnu
6154
6155fi
6156echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6157echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6158  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6159    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6160    CFLAGS="$SAVE_CFLAGS"
6161  fi
6162  ;;
6163sparc*-*solaris*)
6164  # Find out which ABI we are using.
6165  echo 'int i;' > conftest.$ac_ext
6166  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167  (eval $ac_compile) 2>&5
6168  ac_status=$?
6169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170  (exit $ac_status); }; then
6171    case `/usr/bin/file conftest.o` in
6172    *64-bit*)
6173      case $lt_cv_prog_gnu_ld in
6174      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6175      *)    LD="${LD-ld} -64" ;;
6176      esac
6177      ;;
6178    esac
6179  fi
6180  rm -rf conftest*
6181  ;;
6182
6183
6184esac
6185
6186need_locks="$enable_libtool_lock"
6187
6188
6189ac_ext=c
6190ac_cpp='$CPP $CPPFLAGS'
6191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6195echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6196# On Suns, sometimes $CPP names a directory.
6197if test -n "$CPP" && test -d "$CPP"; then
6198  CPP=
6199fi
6200if test -z "$CPP"; then
6201  if test "${ac_cv_prog_CPP+set}" = set; then
6202  echo $ECHO_N "(cached) $ECHO_C" >&6
6203else
6204      # Double quotes because CPP needs to be expanded
6205    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6206    do
6207      ac_preproc_ok=false
6208for ac_c_preproc_warn_flag in '' yes
6209do
6210  # Use a header file that comes with gcc, so configuring glibc
6211  # with a fresh cross-compiler works.
6212  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6213  # <limits.h> exists even on freestanding compilers.
6214  # On the NeXT, cc -E runs the code through the compiler's parser,
6215  # not just through cpp. "Syntax error" is here to catch this case.
6216  cat >conftest.$ac_ext <<_ACEOF
6217/* confdefs.h.  */
6218_ACEOF
6219cat confdefs.h >>conftest.$ac_ext
6220cat >>conftest.$ac_ext <<_ACEOF
6221/* end confdefs.h.  */
6222#ifdef __STDC__
6223# include <limits.h>
6224#else
6225# include <assert.h>
6226#endif
6227                     Syntax error
6228_ACEOF
6229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6230  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6231  ac_status=$?
6232  grep -v '^ *+' conftest.er1 >conftest.err
6233  rm -f conftest.er1
6234  cat conftest.err >&5
6235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); } >/dev/null; then
6237  if test -s conftest.err; then
6238    ac_cpp_err=$ac_c_preproc_warn_flag
6239    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6240  else
6241    ac_cpp_err=
6242  fi
6243else
6244  ac_cpp_err=yes
6245fi
6246if test -z "$ac_cpp_err"; then
6247  :
6248else
6249  echo "$as_me: failed program was:" >&5
6250sed 's/^/| /' conftest.$ac_ext >&5
6251
6252  # Broken: fails on valid input.
6253continue
6254fi
6255rm -f conftest.err conftest.$ac_ext
6256
6257  # OK, works on sane cases.  Now check whether non-existent headers
6258  # can be detected and how.
6259  cat >conftest.$ac_ext <<_ACEOF
6260/* confdefs.h.  */
6261_ACEOF
6262cat confdefs.h >>conftest.$ac_ext
6263cat >>conftest.$ac_ext <<_ACEOF
6264/* end confdefs.h.  */
6265#include <ac_nonexistent.h>
6266_ACEOF
6267if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6268  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6269  ac_status=$?
6270  grep -v '^ *+' conftest.er1 >conftest.err
6271  rm -f conftest.er1
6272  cat conftest.err >&5
6273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274  (exit $ac_status); } >/dev/null; then
6275  if test -s conftest.err; then
6276    ac_cpp_err=$ac_c_preproc_warn_flag
6277    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6278  else
6279    ac_cpp_err=
6280  fi
6281else
6282  ac_cpp_err=yes
6283fi
6284if test -z "$ac_cpp_err"; then
6285  # Broken: success on invalid input.
6286continue
6287else
6288  echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
6291  # Passes both tests.
6292ac_preproc_ok=:
6293break
6294fi
6295rm -f conftest.err conftest.$ac_ext
6296
6297done
6298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6299rm -f conftest.err conftest.$ac_ext
6300if $ac_preproc_ok; then
6301  break
6302fi
6303
6304    done
6305    ac_cv_prog_CPP=$CPP
6306
6307fi
6308  CPP=$ac_cv_prog_CPP
6309else
6310  ac_cv_prog_CPP=$CPP
6311fi
6312echo "$as_me:$LINENO: result: $CPP" >&5
6313echo "${ECHO_T}$CPP" >&6
6314ac_preproc_ok=false
6315for ac_c_preproc_warn_flag in '' yes
6316do
6317  # Use a header file that comes with gcc, so configuring glibc
6318  # with a fresh cross-compiler works.
6319  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6320  # <limits.h> exists even on freestanding compilers.
6321  # On the NeXT, cc -E runs the code through the compiler's parser,
6322  # not just through cpp. "Syntax error" is here to catch this case.
6323  cat >conftest.$ac_ext <<_ACEOF
6324/* confdefs.h.  */
6325_ACEOF
6326cat confdefs.h >>conftest.$ac_ext
6327cat >>conftest.$ac_ext <<_ACEOF
6328/* end confdefs.h.  */
6329#ifdef __STDC__
6330# include <limits.h>
6331#else
6332# include <assert.h>
6333#endif
6334                     Syntax error
6335_ACEOF
6336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6338  ac_status=$?
6339  grep -v '^ *+' conftest.er1 >conftest.err
6340  rm -f conftest.er1
6341  cat conftest.err >&5
6342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343  (exit $ac_status); } >/dev/null; then
6344  if test -s conftest.err; then
6345    ac_cpp_err=$ac_c_preproc_warn_flag
6346    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6347  else
6348    ac_cpp_err=
6349  fi
6350else
6351  ac_cpp_err=yes
6352fi
6353if test -z "$ac_cpp_err"; then
6354  :
6355else
6356  echo "$as_me: failed program was:" >&5
6357sed 's/^/| /' conftest.$ac_ext >&5
6358
6359  # Broken: fails on valid input.
6360continue
6361fi
6362rm -f conftest.err conftest.$ac_ext
6363
6364  # OK, works on sane cases.  Now check whether non-existent headers
6365  # can be detected and how.
6366  cat >conftest.$ac_ext <<_ACEOF
6367/* confdefs.h.  */
6368_ACEOF
6369cat confdefs.h >>conftest.$ac_ext
6370cat >>conftest.$ac_ext <<_ACEOF
6371/* end confdefs.h.  */
6372#include <ac_nonexistent.h>
6373_ACEOF
6374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6375  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6376  ac_status=$?
6377  grep -v '^ *+' conftest.er1 >conftest.err
6378  rm -f conftest.er1
6379  cat conftest.err >&5
6380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381  (exit $ac_status); } >/dev/null; then
6382  if test -s conftest.err; then
6383    ac_cpp_err=$ac_c_preproc_warn_flag
6384    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6385  else
6386    ac_cpp_err=
6387  fi
6388else
6389  ac_cpp_err=yes
6390fi
6391if test -z "$ac_cpp_err"; then
6392  # Broken: success on invalid input.
6393continue
6394else
6395  echo "$as_me: failed program was:" >&5
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
6398  # Passes both tests.
6399ac_preproc_ok=:
6400break
6401fi
6402rm -f conftest.err conftest.$ac_ext
6403
6404done
6405# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6406rm -f conftest.err conftest.$ac_ext
6407if $ac_preproc_ok; then
6408  :
6409else
6410  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6411See \`config.log' for more details." >&5
6412echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6413See \`config.log' for more details." >&2;}
6414   { (exit 1); exit 1; }; }
6415fi
6416
6417ac_ext=c
6418ac_cpp='$CPP $CPPFLAGS'
6419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421ac_compiler_gnu=$ac_cv_c_compiler_gnu
6422
6423
6424echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6425echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6426if test "${ac_cv_header_stdc+set}" = set; then
6427  echo $ECHO_N "(cached) $ECHO_C" >&6
6428else
6429  cat >conftest.$ac_ext <<_ACEOF
6430/* confdefs.h.  */
6431_ACEOF
6432cat confdefs.h >>conftest.$ac_ext
6433cat >>conftest.$ac_ext <<_ACEOF
6434/* end confdefs.h.  */
6435#include <stdlib.h>
6436#include <stdarg.h>
6437#include <string.h>
6438#include <float.h>
6439
6440int
6441main ()
6442{
6443
6444  ;
6445  return 0;
6446}
6447_ACEOF
6448rm -f conftest.$ac_objext
6449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450  (eval $ac_compile) 2>conftest.er1
6451  ac_status=$?
6452  grep -v '^ *+' conftest.er1 >conftest.err
6453  rm -f conftest.er1
6454  cat conftest.err >&5
6455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456  (exit $ac_status); } &&
6457         { ac_try='test -z "$ac_c_werror_flag"
6458                         || test ! -s conftest.err'
6459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460  (eval $ac_try) 2>&5
6461  ac_status=$?
6462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463  (exit $ac_status); }; } &&
6464         { ac_try='test -s conftest.$ac_objext'
6465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466  (eval $ac_try) 2>&5
6467  ac_status=$?
6468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469  (exit $ac_status); }; }; then
6470  ac_cv_header_stdc=yes
6471else
6472  echo "$as_me: failed program was:" >&5
6473sed 's/^/| /' conftest.$ac_ext >&5
6474
6475ac_cv_header_stdc=no
6476fi
6477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6478
6479if test $ac_cv_header_stdc = yes; then
6480  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6481  cat >conftest.$ac_ext <<_ACEOF
6482/* confdefs.h.  */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h.  */
6487#include <string.h>
6488
6489_ACEOF
6490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6491  $EGREP "memchr" >/dev/null 2>&1; then
6492  :
6493else
6494  ac_cv_header_stdc=no
6495fi
6496rm -f conftest*
6497
6498fi
6499
6500if test $ac_cv_header_stdc = yes; then
6501  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6502  cat >conftest.$ac_ext <<_ACEOF
6503/* confdefs.h.  */
6504_ACEOF
6505cat confdefs.h >>conftest.$ac_ext
6506cat >>conftest.$ac_ext <<_ACEOF
6507/* end confdefs.h.  */
6508#include <stdlib.h>
6509
6510_ACEOF
6511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6512  $EGREP "free" >/dev/null 2>&1; then
6513  :
6514else
6515  ac_cv_header_stdc=no
6516fi
6517rm -f conftest*
6518
6519fi
6520
6521if test $ac_cv_header_stdc = yes; then
6522  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6523  if test "$cross_compiling" = yes; then
6524  :
6525else
6526  cat >conftest.$ac_ext <<_ACEOF
6527/* confdefs.h.  */
6528_ACEOF
6529cat confdefs.h >>conftest.$ac_ext
6530cat >>conftest.$ac_ext <<_ACEOF
6531/* end confdefs.h.  */
6532#include <ctype.h>
6533#if ((' ' & 0x0FF) == 0x020)
6534# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6535# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6536#else
6537# define ISLOWER(c) \
6538                   (('a' <= (c) && (c) <= 'i') \
6539                     || ('j' <= (c) && (c) <= 'r') \
6540                     || ('s' <= (c) && (c) <= 'z'))
6541# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6542#endif
6543
6544#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6545int
6546main ()
6547{
6548  int i;
6549  for (i = 0; i < 256; i++)
6550    if (XOR (islower (i), ISLOWER (i))
6551        || toupper (i) != TOUPPER (i))
6552      exit(2);
6553  exit (0);
6554}
6555_ACEOF
6556rm -f conftest$ac_exeext
6557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6558  (eval $ac_link) 2>&5
6559  ac_status=$?
6560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563  (eval $ac_try) 2>&5
6564  ac_status=$?
6565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566  (exit $ac_status); }; }; then
6567  :
6568else
6569  echo "$as_me: program exited with status $ac_status" >&5
6570echo "$as_me: failed program was:" >&5
6571sed 's/^/| /' conftest.$ac_ext >&5
6572
6573( exit $ac_status )
6574ac_cv_header_stdc=no
6575fi
6576rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6577fi
6578fi
6579fi
6580echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6581echo "${ECHO_T}$ac_cv_header_stdc" >&6
6582if test $ac_cv_header_stdc = yes; then
6583
6584cat >>confdefs.h <<\_ACEOF
6585#define STDC_HEADERS 1
6586_ACEOF
6587
6588fi
6589
6590# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6601                  inttypes.h stdint.h unistd.h
6602do
6603as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6604echo "$as_me:$LINENO: checking for $ac_header" >&5
6605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6606if eval "test \"\${$as_ac_Header+set}\" = set"; then
6607  echo $ECHO_N "(cached) $ECHO_C" >&6
6608else
6609  cat >conftest.$ac_ext <<_ACEOF
6610/* confdefs.h.  */
6611_ACEOF
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
6614/* end confdefs.h.  */
6615$ac_includes_default
6616
6617#include <$ac_header>
6618_ACEOF
6619rm -f conftest.$ac_objext
6620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621  (eval $ac_compile) 2>conftest.er1
6622  ac_status=$?
6623  grep -v '^ *+' conftest.er1 >conftest.err
6624  rm -f conftest.er1
6625  cat conftest.err >&5
6626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); } &&
6628         { ac_try='test -z "$ac_c_werror_flag"
6629                         || test ! -s conftest.err'
6630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631  (eval $ac_try) 2>&5
6632  ac_status=$?
6633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); }; } &&
6635         { ac_try='test -s conftest.$ac_objext'
6636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637  (eval $ac_try) 2>&5
6638  ac_status=$?
6639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640  (exit $ac_status); }; }; then
6641  eval "$as_ac_Header=yes"
6642else
6643  echo "$as_me: failed program was:" >&5
6644sed 's/^/| /' conftest.$ac_ext >&5
6645
6646eval "$as_ac_Header=no"
6647fi
6648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649fi
6650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6652if test `eval echo '${'$as_ac_Header'}'` = yes; then
6653  cat >>confdefs.h <<_ACEOF
6654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6655_ACEOF
6656
6657fi
6658
6659done
6660
6661
6662
6663for ac_header in dlfcn.h
6664do
6665as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6666if eval "test \"\${$as_ac_Header+set}\" = set"; then
6667  echo "$as_me:$LINENO: checking for $ac_header" >&5
6668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6669if eval "test \"\${$as_ac_Header+set}\" = set"; then
6670  echo $ECHO_N "(cached) $ECHO_C" >&6
6671fi
6672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6673echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6674else
6675  # Is the header compilable?
6676echo "$as_me:$LINENO: checking $ac_header usability" >&5
6677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6678cat >conftest.$ac_ext <<_ACEOF
6679/* confdefs.h.  */
6680_ACEOF
6681cat confdefs.h >>conftest.$ac_ext
6682cat >>conftest.$ac_ext <<_ACEOF
6683/* end confdefs.h.  */
6684$ac_includes_default
6685#include <$ac_header>
6686_ACEOF
6687rm -f conftest.$ac_objext
6688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689  (eval $ac_compile) 2>conftest.er1
6690  ac_status=$?
6691  grep -v '^ *+' conftest.er1 >conftest.err
6692  rm -f conftest.er1
6693  cat conftest.err >&5
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); } &&
6696         { ac_try='test -z "$ac_c_werror_flag"
6697                         || test ! -s conftest.err'
6698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699  (eval $ac_try) 2>&5
6700  ac_status=$?
6701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702  (exit $ac_status); }; } &&
6703         { ac_try='test -s conftest.$ac_objext'
6704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705  (eval $ac_try) 2>&5
6706  ac_status=$?
6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708  (exit $ac_status); }; }; then
6709  ac_header_compiler=yes
6710else
6711  echo "$as_me: failed program was:" >&5
6712sed 's/^/| /' conftest.$ac_ext >&5
6713
6714ac_header_compiler=no
6715fi
6716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6718echo "${ECHO_T}$ac_header_compiler" >&6
6719
6720# Is the header present?
6721echo "$as_me:$LINENO: checking $ac_header presence" >&5
6722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6723cat >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#include <$ac_header>
6730_ACEOF
6731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6732  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6733  ac_status=$?
6734  grep -v '^ *+' conftest.er1 >conftest.err
6735  rm -f conftest.er1
6736  cat conftest.err >&5
6737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738  (exit $ac_status); } >/dev/null; then
6739  if test -s conftest.err; then
6740    ac_cpp_err=$ac_c_preproc_warn_flag
6741    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6742  else
6743    ac_cpp_err=
6744  fi
6745else
6746  ac_cpp_err=yes
6747fi
6748if test -z "$ac_cpp_err"; then
6749  ac_header_preproc=yes
6750else
6751  echo "$as_me: failed program was:" >&5
6752sed 's/^/| /' conftest.$ac_ext >&5
6753
6754  ac_header_preproc=no
6755fi
6756rm -f conftest.err conftest.$ac_ext
6757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6758echo "${ECHO_T}$ac_header_preproc" >&6
6759
6760# So?  What about this header?
6761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6762  yes:no: )
6763    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6765    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6767    ac_header_preproc=yes
6768    ;;
6769  no:yes:* )
6770    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6772    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6773echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6774    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6776    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6777echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6778    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6780    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6782    (
6783      cat <<\_ASBOX
6784## --------------------------------------------------------------- ##
6785## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6786## --------------------------------------------------------------- ##
6787_ASBOX
6788    ) |
6789      sed "s/^/$as_me: WARNING:     /" >&2
6790    ;;
6791esac
6792echo "$as_me:$LINENO: checking for $ac_header" >&5
6793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6794if eval "test \"\${$as_ac_Header+set}\" = set"; then
6795  echo $ECHO_N "(cached) $ECHO_C" >&6
6796else
6797  eval "$as_ac_Header=\$ac_header_preproc"
6798fi
6799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6801
6802fi
6803if test `eval echo '${'$as_ac_Header'}'` = yes; then
6804  cat >>confdefs.h <<_ACEOF
6805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6806_ACEOF
6807
6808fi
6809
6810done
6811
6812
6813
6814if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6815    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6816    (test "X$CXX" != "Xg++"))) ; then
6817  ac_ext=cc
6818ac_cpp='$CXXCPP $CPPFLAGS'
6819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6822echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6823echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6824if test -z "$CXXCPP"; then
6825  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6826  echo $ECHO_N "(cached) $ECHO_C" >&6
6827else
6828      # Double quotes because CXXCPP needs to be expanded
6829    for CXXCPP in "$CXX -E" "/lib/cpp"
6830    do
6831      ac_preproc_ok=false
6832for ac_cxx_preproc_warn_flag in '' yes
6833do
6834  # Use a header file that comes with gcc, so configuring glibc
6835  # with a fresh cross-compiler works.
6836  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6837  # <limits.h> exists even on freestanding compilers.
6838  # On the NeXT, cc -E runs the code through the compiler's parser,
6839  # not just through cpp. "Syntax error" is here to catch this case.
6840  cat >conftest.$ac_ext <<_ACEOF
6841/* confdefs.h.  */
6842_ACEOF
6843cat confdefs.h >>conftest.$ac_ext
6844cat >>conftest.$ac_ext <<_ACEOF
6845/* end confdefs.h.  */
6846#ifdef __STDC__
6847# include <limits.h>
6848#else
6849# include <assert.h>
6850#endif
6851                     Syntax error
6852_ACEOF
6853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6854  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6855  ac_status=$?
6856  grep -v '^ *+' conftest.er1 >conftest.err
6857  rm -f conftest.er1
6858  cat conftest.err >&5
6859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860  (exit $ac_status); } >/dev/null; then
6861  if test -s conftest.err; then
6862    ac_cpp_err=$ac_cxx_preproc_warn_flag
6863    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6864  else
6865    ac_cpp_err=
6866  fi
6867else
6868  ac_cpp_err=yes
6869fi
6870if test -z "$ac_cpp_err"; then
6871  :
6872else
6873  echo "$as_me: failed program was:" >&5
6874sed 's/^/| /' conftest.$ac_ext >&5
6875
6876  # Broken: fails on valid input.
6877continue
6878fi
6879rm -f conftest.err conftest.$ac_ext
6880
6881  # OK, works on sane cases.  Now check whether non-existent headers
6882  # can be detected and how.
6883  cat >conftest.$ac_ext <<_ACEOF
6884/* confdefs.h.  */
6885_ACEOF
6886cat confdefs.h >>conftest.$ac_ext
6887cat >>conftest.$ac_ext <<_ACEOF
6888/* end confdefs.h.  */
6889#include <ac_nonexistent.h>
6890_ACEOF
6891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6892  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6893  ac_status=$?
6894  grep -v '^ *+' conftest.er1 >conftest.err
6895  rm -f conftest.er1
6896  cat conftest.err >&5
6897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898  (exit $ac_status); } >/dev/null; then
6899  if test -s conftest.err; then
6900    ac_cpp_err=$ac_cxx_preproc_warn_flag
6901    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6902  else
6903    ac_cpp_err=
6904  fi
6905else
6906  ac_cpp_err=yes
6907fi
6908if test -z "$ac_cpp_err"; then
6909  # Broken: success on invalid input.
6910continue
6911else
6912  echo "$as_me: failed program was:" >&5
6913sed 's/^/| /' conftest.$ac_ext >&5
6914
6915  # Passes both tests.
6916ac_preproc_ok=:
6917break
6918fi
6919rm -f conftest.err conftest.$ac_ext
6920
6921done
6922# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6923rm -f conftest.err conftest.$ac_ext
6924if $ac_preproc_ok; then
6925  break
6926fi
6927
6928    done
6929    ac_cv_prog_CXXCPP=$CXXCPP
6930
6931fi
6932  CXXCPP=$ac_cv_prog_CXXCPP
6933else
6934  ac_cv_prog_CXXCPP=$CXXCPP
6935fi
6936echo "$as_me:$LINENO: result: $CXXCPP" >&5
6937echo "${ECHO_T}$CXXCPP" >&6
6938ac_preproc_ok=false
6939for ac_cxx_preproc_warn_flag in '' yes
6940do
6941  # Use a header file that comes with gcc, so configuring glibc
6942  # with a fresh cross-compiler works.
6943  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6944  # <limits.h> exists even on freestanding compilers.
6945  # On the NeXT, cc -E runs the code through the compiler's parser,
6946  # not just through cpp. "Syntax error" is here to catch this case.
6947  cat >conftest.$ac_ext <<_ACEOF
6948/* confdefs.h.  */
6949_ACEOF
6950cat confdefs.h >>conftest.$ac_ext
6951cat >>conftest.$ac_ext <<_ACEOF
6952/* end confdefs.h.  */
6953#ifdef __STDC__
6954# include <limits.h>
6955#else
6956# include <assert.h>
6957#endif
6958                     Syntax error
6959_ACEOF
6960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6961  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6962  ac_status=$?
6963  grep -v '^ *+' conftest.er1 >conftest.err
6964  rm -f conftest.er1
6965  cat conftest.err >&5
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); } >/dev/null; then
6968  if test -s conftest.err; then
6969    ac_cpp_err=$ac_cxx_preproc_warn_flag
6970    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6971  else
6972    ac_cpp_err=
6973  fi
6974else
6975  ac_cpp_err=yes
6976fi
6977if test -z "$ac_cpp_err"; then
6978  :
6979else
6980  echo "$as_me: failed program was:" >&5
6981sed 's/^/| /' conftest.$ac_ext >&5
6982
6983  # Broken: fails on valid input.
6984continue
6985fi
6986rm -f conftest.err conftest.$ac_ext
6987
6988  # OK, works on sane cases.  Now check whether non-existent headers
6989  # can be detected and how.
6990  cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h.  */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h.  */
6996#include <ac_nonexistent.h>
6997_ACEOF
6998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6999  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7000  ac_status=$?
7001  grep -v '^ *+' conftest.er1 >conftest.err
7002  rm -f conftest.er1
7003  cat conftest.err >&5
7004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005  (exit $ac_status); } >/dev/null; then
7006  if test -s conftest.err; then
7007    ac_cpp_err=$ac_cxx_preproc_warn_flag
7008    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7009  else
7010    ac_cpp_err=
7011  fi
7012else
7013  ac_cpp_err=yes
7014fi
7015if test -z "$ac_cpp_err"; then
7016  # Broken: success on invalid input.
7017continue
7018else
7019  echo "$as_me: failed program was:" >&5
7020sed 's/^/| /' conftest.$ac_ext >&5
7021
7022  # Passes both tests.
7023ac_preproc_ok=:
7024break
7025fi
7026rm -f conftest.err conftest.$ac_ext
7027
7028done
7029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7030rm -f conftest.err conftest.$ac_ext
7031if $ac_preproc_ok; then
7032  :
7033else
7034  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7035See \`config.log' for more details." >&5
7036echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7037See \`config.log' for more details." >&2;}
7038   { (exit 1); exit 1; }; }
7039fi
7040
7041ac_ext=cc
7042ac_cpp='$CXXCPP $CPPFLAGS'
7043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7046
7047fi
7048
7049ac_ext=f
7050ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7051ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7052ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7053if test -n "$ac_tool_prefix"; then
7054  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7055  do
7056    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7057set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7058echo "$as_me:$LINENO: checking for $ac_word" >&5
7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7060if test "${ac_cv_prog_F77+set}" = set; then
7061  echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063  if test -n "$F77"; then
7064  ac_cv_prog_F77="$F77" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069  IFS=$as_save_IFS
7070  test -z "$as_dir" && as_dir=.
7071  for ac_exec_ext in '' $ac_executable_extensions; do
7072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075    break 2
7076  fi
7077done
7078done
7079
7080fi
7081fi
7082F77=$ac_cv_prog_F77
7083if test -n "$F77"; then
7084  echo "$as_me:$LINENO: result: $F77" >&5
7085echo "${ECHO_T}$F77" >&6
7086else
7087  echo "$as_me:$LINENO: result: no" >&5
7088echo "${ECHO_T}no" >&6
7089fi
7090
7091    test -n "$F77" && break
7092  done
7093fi
7094if test -z "$F77"; then
7095  ac_ct_F77=$F77
7096  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7097do
7098  # Extract the first word of "$ac_prog", so it can be a program name with args.
7099set dummy $ac_prog; ac_word=$2
7100echo "$as_me:$LINENO: checking for $ac_word" >&5
7101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7102if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7103  echo $ECHO_N "(cached) $ECHO_C" >&6
7104else
7105  if test -n "$ac_ct_F77"; then
7106  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7107else
7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111  IFS=$as_save_IFS
7112  test -z "$as_dir" && as_dir=.
7113  for ac_exec_ext in '' $ac_executable_extensions; do
7114  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115    ac_cv_prog_ac_ct_F77="$ac_prog"
7116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117    break 2
7118  fi
7119done
7120done
7121
7122fi
7123fi
7124ac_ct_F77=$ac_cv_prog_ac_ct_F77
7125if test -n "$ac_ct_F77"; then
7126  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7127echo "${ECHO_T}$ac_ct_F77" >&6
7128else
7129  echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6
7131fi
7132
7133  test -n "$ac_ct_F77" && break
7134done
7135
7136  F77=$ac_ct_F77
7137fi
7138
7139
7140# Provide some information about the compiler.
7141echo "$as_me:7141:" \
7142     "checking for Fortran 77 compiler version" >&5
7143ac_compiler=`set X $ac_compile; echo $2`
7144{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7145  (eval $ac_compiler --version </dev/null >&5) 2>&5
7146  ac_status=$?
7147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148  (exit $ac_status); }
7149{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7150  (eval $ac_compiler -v </dev/null >&5) 2>&5
7151  ac_status=$?
7152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153  (exit $ac_status); }
7154{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7155  (eval $ac_compiler -V </dev/null >&5) 2>&5
7156  ac_status=$?
7157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158  (exit $ac_status); }
7159rm -f a.out
7160
7161# If we don't use `.F' as extension, the preprocessor is not run on the
7162# input file.  (Note that this only needs to work for GNU compilers.)
7163ac_save_ext=$ac_ext
7164ac_ext=F
7165echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7166echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7167if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7168  echo $ECHO_N "(cached) $ECHO_C" >&6
7169else
7170  cat >conftest.$ac_ext <<_ACEOF
7171      program main
7172#ifndef __GNUC__
7173       choke me
7174#endif
7175
7176      end
7177_ACEOF
7178rm -f conftest.$ac_objext
7179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7180  (eval $ac_compile) 2>conftest.er1
7181  ac_status=$?
7182  grep -v '^ *+' conftest.er1 >conftest.err
7183  rm -f conftest.er1
7184  cat conftest.err >&5
7185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186  (exit $ac_status); } &&
7187         { ac_try='test -z "$ac_f77_werror_flag"
7188                         || test ! -s conftest.err'
7189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190  (eval $ac_try) 2>&5
7191  ac_status=$?
7192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193  (exit $ac_status); }; } &&
7194         { ac_try='test -s conftest.$ac_objext'
7195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196  (eval $ac_try) 2>&5
7197  ac_status=$?
7198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199  (exit $ac_status); }; }; then
7200  ac_compiler_gnu=yes
7201else
7202  echo "$as_me: failed program was:" >&5
7203sed 's/^/| /' conftest.$ac_ext >&5
7204
7205ac_compiler_gnu=no
7206fi
7207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7208ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7209
7210fi
7211echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7212echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7213ac_ext=$ac_save_ext
7214ac_test_FFLAGS=${FFLAGS+set}
7215ac_save_FFLAGS=$FFLAGS
7216FFLAGS=
7217echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7218echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7219if test "${ac_cv_prog_f77_g+set}" = set; then
7220  echo $ECHO_N "(cached) $ECHO_C" >&6
7221else
7222  FFLAGS=-g
7223cat >conftest.$ac_ext <<_ACEOF
7224      program main
7225
7226      end
7227_ACEOF
7228rm -f conftest.$ac_objext
7229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230  (eval $ac_compile) 2>conftest.er1
7231  ac_status=$?
7232  grep -v '^ *+' conftest.er1 >conftest.err
7233  rm -f conftest.er1
7234  cat conftest.err >&5
7235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236  (exit $ac_status); } &&
7237         { ac_try='test -z "$ac_f77_werror_flag"
7238                         || test ! -s conftest.err'
7239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240  (eval $ac_try) 2>&5
7241  ac_status=$?
7242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243  (exit $ac_status); }; } &&
7244         { ac_try='test -s conftest.$ac_objext'
7245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246  (eval $ac_try) 2>&5
7247  ac_status=$?
7248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249  (exit $ac_status); }; }; then
7250  ac_cv_prog_f77_g=yes
7251else
7252  echo "$as_me: failed program was:" >&5
7253sed 's/^/| /' conftest.$ac_ext >&5
7254
7255ac_cv_prog_f77_g=no
7256fi
7257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7258
7259fi
7260echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7261echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7262if test "$ac_test_FFLAGS" = set; then
7263  FFLAGS=$ac_save_FFLAGS
7264elif test $ac_cv_prog_f77_g = yes; then
7265  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7266    FFLAGS="-g -O2"
7267  else
7268    FFLAGS="-g"
7269  fi
7270else
7271  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7272    FFLAGS="-O2"
7273  else
7274    FFLAGS=
7275  fi
7276fi
7277
7278G77=`test $ac_compiler_gnu = yes && echo yes`
7279ac_ext=c
7280ac_cpp='$CPP $CPPFLAGS'
7281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283ac_compiler_gnu=$ac_cv_c_compiler_gnu
7284
7285
7286
7287# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7288
7289# find the maximum length of command line arguments
7290echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7291echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7292if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7293  echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295    i=0
7296  teststring="ABCD"
7297
7298  case $build_os in
7299  msdosdjgpp*)
7300    # On DJGPP, this test can blow up pretty badly due to problems in libc
7301    # (any single argument exceeding 2000 bytes causes a buffer overrun
7302    # during glob expansion).  Even if it were fixed, the result of this
7303    # check would be larger than it should be.
7304    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7305    ;;
7306
7307  gnu*)
7308    # Under GNU Hurd, this test is not required because there is
7309    # no limit to the length of command line arguments.
7310    # Libtool will interpret -1 as no limit whatsoever
7311    lt_cv_sys_max_cmd_len=-1;
7312    ;;
7313
7314  cygwin* | mingw*)
7315    # On Win9x/ME, this test blows up -- it succeeds, but takes
7316    # about 5 minutes as the teststring grows exponentially.
7317    # Worse, since 9x/ME are not pre-emptively multitasking,
7318    # you end up with a "frozen" computer, even though with patience
7319    # the test eventually succeeds (with a max line length of 256k).
7320    # Instead, let's just punt: use the minimum linelength reported by
7321    # all of the supported platforms: 8192 (on NT/2K/XP).
7322    lt_cv_sys_max_cmd_len=8192;
7323    ;;
7324
7325  amigaos*)
7326    # On AmigaOS with pdksh, this test takes hours, literally.
7327    # So we just punt and use a minimum line length of 8192.
7328    lt_cv_sys_max_cmd_len=8192;
7329    ;;
7330
7331  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7332    # This has been around since 386BSD, at least.  Likely further.
7333    if test -x /sbin/sysctl; then
7334      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7335    elif test -x /usr/sbin/sysctl; then
7336      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7337    else
7338      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7339    fi
7340    # And add a safety zone
7341    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7342    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7343    ;;
7344
7345  interix*)
7346    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7347    lt_cv_sys_max_cmd_len=196608
7348    ;;
7349
7350  osf*)
7351    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7352    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7353    # nice to cause kernel panics so lets avoid the loop below.
7354    # First set a reasonable default.
7355    lt_cv_sys_max_cmd_len=16384
7356    #
7357    if test -x /sbin/sysconfig; then
7358      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7359        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7360      esac
7361    fi
7362    ;;
7363  sco3.2v5*)
7364    lt_cv_sys_max_cmd_len=102400
7365    ;;
7366  sysv5* | sco5v6* | sysv4.2uw2*)
7367    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7368    if test -n "$kargmax"; then
7369      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7370    else
7371      lt_cv_sys_max_cmd_len=32768
7372    fi
7373    ;;
7374  *)
7375    # If test is not a shell built-in, we'll probably end up computing a
7376    # maximum length that is only half of the actual maximum length, but
7377    # we can't tell.
7378    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7379    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7380               = "XX$teststring") >/dev/null 2>&1 &&
7381            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7382            lt_cv_sys_max_cmd_len=$new_result &&
7383            test $i != 17 # 1/2 MB should be enough
7384    do
7385      i=`expr $i + 1`
7386      teststring=$teststring$teststring
7387    done
7388    teststring=
7389    # Add a significant safety factor because C++ compilers can tack on massive
7390    # amounts of additional arguments before passing them to the linker.
7391    # It appears as though 1/2 is a usable value.
7392    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7393    ;;
7394  esac
7395
7396fi
7397
7398if test -n $lt_cv_sys_max_cmd_len ; then
7399  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7400echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7401else
7402  echo "$as_me:$LINENO: result: none" >&5
7403echo "${ECHO_T}none" >&6
7404fi
7405
7406
7407
7408
7409# Check for command to grab the raw symbol name followed by C symbol from nm.
7410echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7411echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7412if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7413  echo $ECHO_N "(cached) $ECHO_C" >&6
7414else
7415
7416# These are sane defaults that work on at least a few old systems.
7417# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7418
7419# Character class describing NM global symbol codes.
7420symcode='[BCDEGRST]'
7421
7422# Regexp to match symbols that can be accessed directly from C.
7423sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7424
7425# Transform an extracted symbol line into a proper C declaration
7426lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7427
7428# Transform an extracted symbol line into symbol name and symbol address
7429lt_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'"
7430
7431# Define system-specific variables.
7432case $host_os in
7433aix*)
7434  symcode='[BCDT]'
7435  ;;
7436cygwin* | mingw* | pw32*)
7437  symcode='[ABCDGISTW]'
7438  ;;
7439hpux*) # Its linker distinguishes data from code symbols
7440  if test "$host_cpu" = ia64; then
7441    symcode='[ABCDEGRST]'
7442  fi
7443  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7444  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'"
7445  ;;
7446linux*)
7447  if test "$host_cpu" = ia64; then
7448    symcode='[ABCDGIRSTW]'
7449    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7450    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'"
7451  fi
7452  ;;
7453irix* | nonstopux*)
7454  symcode='[BCDEGRST]'
7455  ;;
7456osf*)
7457  symcode='[BCDEGQRST]'
7458  ;;
7459solaris*)
7460  symcode='[BDRT]'
7461  ;;
7462sco3.2v5*)
7463  symcode='[DT]'
7464  ;;
7465sysv4.2uw2*)
7466  symcode='[DT]'
7467  ;;
7468sysv5* | sco5v6* | unixware* | OpenUNIX*)
7469  symcode='[ABDT]'
7470  ;;
7471sysv4)
7472  symcode='[DFNSTU]'
7473  ;;
7474esac
7475
7476# Handle CRLF in mingw tool chain
7477opt_cr=
7478case $build_os in
7479mingw*)
7480  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7481  ;;
7482esac
7483
7484# If we're using GNU nm, then use its standard symbol codes.
7485case `$NM -V 2>&1` in
7486*GNU* | *'with BFD'*)
7487  symcode='[ABCDGIRSTW]' ;;
7488esac
7489
7490# Try without a prefix undercore, then with it.
7491for ac_symprfx in "" "_"; do
7492
7493  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7494  symxfrm="\\1 $ac_symprfx\\2 \\2"
7495
7496  # Write the raw and C identifiers.
7497  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7498
7499  # Check to see that the pipe works correctly.
7500  pipe_works=no
7501
7502  rm -f conftest*
7503  cat > conftest.$ac_ext <<EOF
7504#ifdef __cplusplus
7505extern "C" {
7506#endif
7507char nm_test_var;
7508void nm_test_func(){}
7509#ifdef __cplusplus
7510}
7511#endif
7512int main(){nm_test_var='a';nm_test_func();return(0);}
7513EOF
7514
7515  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7516  (eval $ac_compile) 2>&5
7517  ac_status=$?
7518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519  (exit $ac_status); }; then
7520    # Now try to grab the symbols.
7521    nlist=conftest.nm
7522    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7523  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7524  ac_status=$?
7525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526  (exit $ac_status); } && test -s "$nlist"; then
7527      # Try sorting and uniquifying the output.
7528      if sort "$nlist" | uniq > "$nlist"T; then
7529        mv -f "$nlist"T "$nlist"
7530      else
7531        rm -f "$nlist"T
7532      fi
7533
7534      # Make sure that we snagged all the symbols we need.
7535      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7536        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7537          cat <<EOF > conftest.$ac_ext
7538#ifdef __cplusplus
7539extern "C" {
7540#endif
7541
7542EOF
7543          # Now generate the symbol file.
7544          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7545
7546          cat <<EOF >> conftest.$ac_ext
7547#if defined (__STDC__) && __STDC__
7548# define lt_ptr_t void *
7549#else
7550# define lt_ptr_t char *
7551# define const
7552#endif
7553
7554/* The mapping between symbol names and symbols. */
7555const struct {
7556  const char *name;
7557  lt_ptr_t address;
7558}
7559lt_preloaded_symbols[] =
7560{
7561EOF
7562          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7563          cat <<\EOF >> conftest.$ac_ext
7564  {0, (lt_ptr_t) 0}
7565};
7566
7567#ifdef __cplusplus
7568}
7569#endif
7570EOF
7571          # Now try linking the two files.
7572          mv conftest.$ac_objext conftstm.$ac_objext
7573          lt_save_LIBS="$LIBS"
7574          lt_save_CFLAGS="$CFLAGS"
7575          LIBS="conftstm.$ac_objext"
7576          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7577          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578  (eval $ac_link) 2>&5
7579  ac_status=$?
7580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7582            pipe_works=yes
7583          fi
7584          LIBS="$lt_save_LIBS"
7585          CFLAGS="$lt_save_CFLAGS"
7586        else
7587          echo "cannot find nm_test_func in $nlist" >&5
7588        fi
7589      else
7590        echo "cannot find nm_test_var in $nlist" >&5
7591      fi
7592    else
7593      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7594    fi
7595  else
7596    echo "$progname: failed program was:" >&5
7597    cat conftest.$ac_ext >&5
7598  fi
7599  rm -f conftest* conftst*
7600
7601  # Do not use the global_symbol_pipe unless it works.
7602  if test "$pipe_works" = yes; then
7603    break
7604  else
7605    lt_cv_sys_global_symbol_pipe=
7606  fi
7607done
7608
7609fi
7610
7611if test -z "$lt_cv_sys_global_symbol_pipe"; then
7612  lt_cv_sys_global_symbol_to_cdecl=
7613fi
7614if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7615  echo "$as_me:$LINENO: result: failed" >&5
7616echo "${ECHO_T}failed" >&6
7617else
7618  echo "$as_me:$LINENO: result: ok" >&5
7619echo "${ECHO_T}ok" >&6
7620fi
7621
7622echo "$as_me:$LINENO: checking for objdir" >&5
7623echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7624if test "${lt_cv_objdir+set}" = set; then
7625  echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627  rm -f .libs 2>/dev/null
7628mkdir .libs 2>/dev/null
7629if test -d .libs; then
7630  lt_cv_objdir=.libs
7631else
7632  # MS-DOS does not allow filenames that begin with a dot.
7633  lt_cv_objdir=_libs
7634fi
7635rmdir .libs 2>/dev/null
7636fi
7637echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7638echo "${ECHO_T}$lt_cv_objdir" >&6
7639objdir=$lt_cv_objdir
7640
7641
7642
7643
7644
7645case $host_os in
7646aix3*)
7647  # AIX sometimes has problems with the GCC collect2 program.  For some
7648  # reason, if we set the COLLECT_NAMES environment variable, the problems
7649  # vanish in a puff of smoke.
7650  if test "X${COLLECT_NAMES+set}" != Xset; then
7651    COLLECT_NAMES=
7652    export COLLECT_NAMES
7653  fi
7654  ;;
7655esac
7656
7657# Sed substitution that helps us do robust quoting.  It backslashifies
7658# metacharacters that are still active within double-quoted strings.
7659Xsed='sed -e 1s/^X//'
7660sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7661
7662# Same as above, but do not quote variable references.
7663double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7664
7665# Sed substitution to delay expansion of an escaped shell variable in a
7666# double_quote_subst'ed string.
7667delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7668
7669# Sed substitution to avoid accidental globbing in evaled expressions
7670no_glob_subst='s/\*/\\\*/g'
7671
7672# Constants:
7673rm="rm -f"
7674
7675# Global variables:
7676default_ofile=libtool
7677can_build_shared=yes
7678
7679# All known linkers require a `.a' archive for static linking (except MSVC,
7680# which needs '.lib').
7681libext=a
7682ltmain="$ac_aux_dir/ltmain.sh"
7683ofile="$default_ofile"
7684with_gnu_ld="$lt_cv_prog_gnu_ld"
7685
7686if test -n "$ac_tool_prefix"; then
7687  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7688set dummy ${ac_tool_prefix}ar; ac_word=$2
7689echo "$as_me:$LINENO: checking for $ac_word" >&5
7690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7691if test "${ac_cv_prog_AR+set}" = set; then
7692  echo $ECHO_N "(cached) $ECHO_C" >&6
7693else
7694  if test -n "$AR"; then
7695  ac_cv_prog_AR="$AR" # Let the user override the test.
7696else
7697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698for as_dir in $PATH
7699do
7700  IFS=$as_save_IFS
7701  test -z "$as_dir" && as_dir=.
7702  for ac_exec_ext in '' $ac_executable_extensions; do
7703  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704    ac_cv_prog_AR="${ac_tool_prefix}ar"
7705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7706    break 2
7707  fi
7708done
7709done
7710
7711fi
7712fi
7713AR=$ac_cv_prog_AR
7714if test -n "$AR"; then
7715  echo "$as_me:$LINENO: result: $AR" >&5
7716echo "${ECHO_T}$AR" >&6
7717else
7718  echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6
7720fi
7721
7722fi
7723if test -z "$ac_cv_prog_AR"; then
7724  ac_ct_AR=$AR
7725  # Extract the first word of "ar", so it can be a program name with args.
7726set dummy ar; ac_word=$2
7727echo "$as_me:$LINENO: checking for $ac_word" >&5
7728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7729if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7730  echo $ECHO_N "(cached) $ECHO_C" >&6
7731else
7732  if test -n "$ac_ct_AR"; then
7733  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7734else
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738  IFS=$as_save_IFS
7739  test -z "$as_dir" && as_dir=.
7740  for ac_exec_ext in '' $ac_executable_extensions; do
7741  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742    ac_cv_prog_ac_ct_AR="ar"
7743    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744    break 2
7745  fi
7746done
7747done
7748
7749  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7750fi
7751fi
7752ac_ct_AR=$ac_cv_prog_ac_ct_AR
7753if test -n "$ac_ct_AR"; then
7754  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7755echo "${ECHO_T}$ac_ct_AR" >&6
7756else
7757  echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6
7759fi
7760
7761  AR=$ac_ct_AR
7762else
7763  AR="$ac_cv_prog_AR"
7764fi
7765
7766if test -n "$ac_tool_prefix"; then
7767  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7768set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7769echo "$as_me:$LINENO: checking for $ac_word" >&5
7770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7771if test "${ac_cv_prog_RANLIB+set}" = set; then
7772  echo $ECHO_N "(cached) $ECHO_C" >&6
7773else
7774  if test -n "$RANLIB"; then
7775  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7776else
7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780  IFS=$as_save_IFS
7781  test -z "$as_dir" && as_dir=.
7782  for ac_exec_ext in '' $ac_executable_extensions; do
7783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7784    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786    break 2
7787  fi
7788done
7789done
7790
7791fi
7792fi
7793RANLIB=$ac_cv_prog_RANLIB
7794if test -n "$RANLIB"; then
7795  echo "$as_me:$LINENO: result: $RANLIB" >&5
7796echo "${ECHO_T}$RANLIB" >&6
7797else
7798  echo "$as_me:$LINENO: result: no" >&5
7799echo "${ECHO_T}no" >&6
7800fi
7801
7802fi
7803if test -z "$ac_cv_prog_RANLIB"; then
7804  ac_ct_RANLIB=$RANLIB
7805  # Extract the first word of "ranlib", so it can be a program name with args.
7806set dummy ranlib; ac_word=$2
7807echo "$as_me:$LINENO: checking for $ac_word" >&5
7808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7809if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7810  echo $ECHO_N "(cached) $ECHO_C" >&6
7811else
7812  if test -n "$ac_ct_RANLIB"; then
7813  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7814else
7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818  IFS=$as_save_IFS
7819  test -z "$as_dir" && as_dir=.
7820  for ac_exec_ext in '' $ac_executable_extensions; do
7821  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822    ac_cv_prog_ac_ct_RANLIB="ranlib"
7823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824    break 2
7825  fi
7826done
7827done
7828
7829  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7830fi
7831fi
7832ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7833if test -n "$ac_ct_RANLIB"; then
7834  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7835echo "${ECHO_T}$ac_ct_RANLIB" >&6
7836else
7837  echo "$as_me:$LINENO: result: no" >&5
7838echo "${ECHO_T}no" >&6
7839fi
7840
7841  RANLIB=$ac_ct_RANLIB
7842else
7843  RANLIB="$ac_cv_prog_RANLIB"
7844fi
7845
7846if test -n "$ac_tool_prefix"; then
7847  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7848set dummy ${ac_tool_prefix}strip; ac_word=$2
7849echo "$as_me:$LINENO: checking for $ac_word" >&5
7850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7851if test "${ac_cv_prog_STRIP+set}" = set; then
7852  echo $ECHO_N "(cached) $ECHO_C" >&6
7853else
7854  if test -n "$STRIP"; then
7855  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860  IFS=$as_save_IFS
7861  test -z "$as_dir" && as_dir=.
7862  for ac_exec_ext in '' $ac_executable_extensions; do
7863  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7865    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866    break 2
7867  fi
7868done
7869done
7870
7871fi
7872fi
7873STRIP=$ac_cv_prog_STRIP
7874if test -n "$STRIP"; then
7875  echo "$as_me:$LINENO: result: $STRIP" >&5
7876echo "${ECHO_T}$STRIP" >&6
7877else
7878  echo "$as_me:$LINENO: result: no" >&5
7879echo "${ECHO_T}no" >&6
7880fi
7881
7882fi
7883if test -z "$ac_cv_prog_STRIP"; then
7884  ac_ct_STRIP=$STRIP
7885  # Extract the first word of "strip", so it can be a program name with args.
7886set dummy strip; ac_word=$2
7887echo "$as_me:$LINENO: checking for $ac_word" >&5
7888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7889if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7890  echo $ECHO_N "(cached) $ECHO_C" >&6
7891else
7892  if test -n "$ac_ct_STRIP"; then
7893  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7894else
7895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896for as_dir in $PATH
7897do
7898  IFS=$as_save_IFS
7899  test -z "$as_dir" && as_dir=.
7900  for ac_exec_ext in '' $ac_executable_extensions; do
7901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7902    ac_cv_prog_ac_ct_STRIP="strip"
7903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7904    break 2
7905  fi
7906done
7907done
7908
7909  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7910fi
7911fi
7912ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7913if test -n "$ac_ct_STRIP"; then
7914  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7915echo "${ECHO_T}$ac_ct_STRIP" >&6
7916else
7917  echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
7919fi
7920
7921  STRIP=$ac_ct_STRIP
7922else
7923  STRIP="$ac_cv_prog_STRIP"
7924fi
7925
7926
7927old_CC="$CC"
7928old_CFLAGS="$CFLAGS"
7929
7930# Set sane defaults for various variables
7931test -z "$AR" && AR=ar
7932test -z "$AR_FLAGS" && AR_FLAGS=cru
7933test -z "$AS" && AS=as
7934test -z "$CC" && CC=cc
7935test -z "$LTCC" && LTCC=$CC
7936test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7937test -z "$DLLTOOL" && DLLTOOL=dlltool
7938test -z "$LD" && LD=ld
7939test -z "$LN_S" && LN_S="ln -s"
7940test -z "$MAGIC_CMD" && MAGIC_CMD=file
7941test -z "$NM" && NM=nm
7942test -z "$SED" && SED=sed
7943test -z "$OBJDUMP" && OBJDUMP=objdump
7944test -z "$RANLIB" && RANLIB=:
7945test -z "$STRIP" && STRIP=:
7946test -z "$ac_objext" && ac_objext=o
7947
7948# Determine commands to create old-style static archives.
7949old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7950old_postinstall_cmds='chmod 644 $oldlib'
7951old_postuninstall_cmds=
7952
7953if test -n "$RANLIB"; then
7954  case $host_os in
7955  openbsd*)
7956    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7957    ;;
7958  *)
7959    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7960    ;;
7961  esac
7962  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7963fi
7964
7965for cc_temp in $compiler""; do
7966  case $cc_temp in
7967    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7968    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7969    \-*) ;;
7970    *) break;;
7971  esac
7972done
7973cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7974
7975
7976# Only perform the check for file, if the check method requires it
7977case $deplibs_check_method in
7978file_magic*)
7979  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7980    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7981echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7982if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7983  echo $ECHO_N "(cached) $ECHO_C" >&6
7984else
7985  case $MAGIC_CMD in
7986[\\/*] |  ?:[\\/]*)
7987  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7988  ;;
7989*)
7990  lt_save_MAGIC_CMD="$MAGIC_CMD"
7991  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7992  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7993  for ac_dir in $ac_dummy; do
7994    IFS="$lt_save_ifs"
7995    test -z "$ac_dir" && ac_dir=.
7996    if test -f $ac_dir/${ac_tool_prefix}file; then
7997      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7998      if test -n "$file_magic_test_file"; then
7999        case $deplibs_check_method in
8000        "file_magic "*)
8001          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8002          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8003          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8004            $EGREP "$file_magic_regex" > /dev/null; then
8005            :
8006          else
8007            cat <<EOF 1>&2
8008
8009*** Warning: the command libtool uses to detect shared libraries,
8010*** $file_magic_cmd, produces output that libtool cannot recognize.
8011*** The result is that libtool may fail to recognize shared libraries
8012*** as such.  This will affect the creation of libtool libraries that
8013*** depend on shared libraries, but programs linked with such libtool
8014*** libraries will work regardless of this problem.  Nevertheless, you
8015*** may want to report the problem to your system manager and/or to
8016*** bug-libtool@gnu.org
8017
8018EOF
8019          fi ;;
8020        esac
8021      fi
8022      break
8023    fi
8024  done
8025  IFS="$lt_save_ifs"
8026  MAGIC_CMD="$lt_save_MAGIC_CMD"
8027  ;;
8028esac
8029fi
8030
8031MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8032if test -n "$MAGIC_CMD"; then
8033  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8034echo "${ECHO_T}$MAGIC_CMD" >&6
8035else
8036  echo "$as_me:$LINENO: result: no" >&5
8037echo "${ECHO_T}no" >&6
8038fi
8039
8040if test -z "$lt_cv_path_MAGIC_CMD"; then
8041  if test -n "$ac_tool_prefix"; then
8042    echo "$as_me:$LINENO: checking for file" >&5
8043echo $ECHO_N "checking for file... $ECHO_C" >&6
8044if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8045  echo $ECHO_N "(cached) $ECHO_C" >&6
8046else
8047  case $MAGIC_CMD in
8048[\\/*] |  ?:[\\/]*)
8049  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8050  ;;
8051*)
8052  lt_save_MAGIC_CMD="$MAGIC_CMD"
8053  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8054  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8055  for ac_dir in $ac_dummy; do
8056    IFS="$lt_save_ifs"
8057    test -z "$ac_dir" && ac_dir=.
8058    if test -f $ac_dir/file; then
8059      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8060      if test -n "$file_magic_test_file"; then
8061        case $deplibs_check_method in
8062        "file_magic "*)
8063          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8064          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8065          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8066            $EGREP "$file_magic_regex" > /dev/null; then
8067            :
8068          else
8069            cat <<EOF 1>&2
8070
8071*** Warning: the command libtool uses to detect shared libraries,
8072*** $file_magic_cmd, produces output that libtool cannot recognize.
8073*** The result is that libtool may fail to recognize shared libraries
8074*** as such.  This will affect the creation of libtool libraries that
8075*** depend on shared libraries, but programs linked with such libtool
8076*** libraries will work regardless of this problem.  Nevertheless, you
8077*** may want to report the problem to your system manager and/or to
8078*** bug-libtool@gnu.org
8079
8080EOF
8081          fi ;;
8082        esac
8083      fi
8084      break
8085    fi
8086  done
8087  IFS="$lt_save_ifs"
8088  MAGIC_CMD="$lt_save_MAGIC_CMD"
8089  ;;
8090esac
8091fi
8092
8093MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8094if test -n "$MAGIC_CMD"; then
8095  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8096echo "${ECHO_T}$MAGIC_CMD" >&6
8097else
8098  echo "$as_me:$LINENO: result: no" >&5
8099echo "${ECHO_T}no" >&6
8100fi
8101
8102  else
8103    MAGIC_CMD=:
8104  fi
8105fi
8106
8107  fi
8108  ;;
8109esac
8110
8111enable_dlopen=no
8112enable_win32_dll=no
8113
8114# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8115if test "${enable_libtool_lock+set}" = set; then
8116  enableval="$enable_libtool_lock"
8117
8118fi;
8119test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8120
8121
8122# Check whether --with-pic or --without-pic was given.
8123if test "${with_pic+set}" = set; then
8124  withval="$with_pic"
8125  pic_mode="$withval"
8126else
8127  pic_mode=default
8128fi;
8129test -z "$pic_mode" && pic_mode=default
8130
8131# Use C for the default configuration in the libtool script
8132tagname=
8133lt_save_CC="$CC"
8134ac_ext=c
8135ac_cpp='$CPP $CPPFLAGS'
8136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8138ac_compiler_gnu=$ac_cv_c_compiler_gnu
8139
8140
8141# Source file extension for C test sources.
8142ac_ext=c
8143
8144# Object file extension for compiled C test sources.
8145objext=o
8146objext=$objext
8147
8148# Code to be used in simple compile tests
8149lt_simple_compile_test_code="int some_variable = 0;\n"
8150
8151# Code to be used in simple link tests
8152lt_simple_link_test_code='int main(){return(0);}\n'
8153
8154
8155# If no C compiler was specified, use CC.
8156LTCC=${LTCC-"$CC"}
8157
8158# If no C compiler flags were specified, use CFLAGS.
8159LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8160
8161# Allow CC to be a program name with arguments.
8162compiler=$CC
8163
8164
8165# save warnings/boilerplate of simple test code
8166ac_outfile=conftest.$ac_objext
8167printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8168eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8169_lt_compiler_boilerplate=`cat conftest.err`
8170$rm conftest*
8171
8172ac_outfile=conftest.$ac_objext
8173printf "$lt_simple_link_test_code" >conftest.$ac_ext
8174eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8175_lt_linker_boilerplate=`cat conftest.err`
8176$rm conftest*
8177
8178
8179## CAVEAT EMPTOR:
8180## There is no encapsulation within the following macros, do not change
8181## the running order or otherwise move them around unless you know exactly
8182## what you are doing...
8183
8184lt_prog_compiler_no_builtin_flag=
8185
8186if test "$GCC" = yes; then
8187  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8188
8189
8190echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8191echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8192if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8193  echo $ECHO_N "(cached) $ECHO_C" >&6
8194else
8195  lt_cv_prog_compiler_rtti_exceptions=no
8196  ac_outfile=conftest.$ac_objext
8197   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8198   lt_compiler_flag="-fno-rtti -fno-exceptions"
8199   # Insert the option either (1) after the last *FLAGS variable, or
8200   # (2) before a word containing "conftest.", or (3) at the end.
8201   # Note that $ac_compile itself does not contain backslashes and begins
8202   # with a dollar sign (not a hyphen), so the echo should work correctly.
8203   # The option is referenced via a variable to avoid confusing sed.
8204   lt_compile=`echo "$ac_compile" | $SED \
8205   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8206   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8207   -e 's:$: $lt_compiler_flag:'`
8208   (eval echo "\"\$as_me:8208: $lt_compile\"" >&5)
8209   (eval "$lt_compile" 2>conftest.err)
8210   ac_status=$?
8211   cat conftest.err >&5
8212   echo "$as_me:8212: \$? = $ac_status" >&5
8213   if (exit $ac_status) && test -s "$ac_outfile"; then
8214     # The compiler can only warn and ignore the option if not recognized
8215     # So say no if there are warnings other than the usual output.
8216     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8217     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8218     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8219       lt_cv_prog_compiler_rtti_exceptions=yes
8220     fi
8221   fi
8222   $rm conftest*
8223
8224fi
8225echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8226echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8227
8228if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8229    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8230else
8231    :
8232fi
8233
8234fi
8235
8236lt_prog_compiler_wl=
8237lt_prog_compiler_pic=
8238lt_prog_compiler_static=
8239
8240echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8241echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8242
8243  if test "$GCC" = yes; then
8244    lt_prog_compiler_wl='-Wl,'
8245    lt_prog_compiler_static='-static'
8246
8247    case $host_os in
8248      aix*)
8249      # All AIX code is PIC.
8250      if test "$host_cpu" = ia64; then
8251        # AIX 5 now supports IA64 processor
8252        lt_prog_compiler_static='-Bstatic'
8253      fi
8254      ;;
8255
8256    amigaos*)
8257      # FIXME: we need at least 68020 code to build shared libraries, but
8258      # adding the `-m68020' flag to GCC prevents building anything better,
8259      # like `-m68040'.
8260      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8261      ;;
8262
8263    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8264      # PIC is the default for these OSes.
8265      ;;
8266
8267    mingw* | pw32* | os2*)
8268      # This hack is so that the source file can tell whether it is being
8269      # built for inclusion in a dll (and should export symbols for example).
8270      lt_prog_compiler_pic='-DDLL_EXPORT'
8271      ;;
8272
8273    darwin* | rhapsody*)
8274      # PIC is the default on this platform
8275      # Common symbols not allowed in MH_DYLIB files
8276      lt_prog_compiler_pic='-fno-common'
8277      ;;
8278
8279    interix3*)
8280      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8281      # Instead, we relocate shared libraries at runtime.
8282      ;;
8283
8284    msdosdjgpp*)
8285      # Just because we use GCC doesn't mean we suddenly get shared libraries
8286      # on systems that don't support them.
8287      lt_prog_compiler_can_build_shared=no
8288      enable_shared=no
8289      ;;
8290
8291    sysv4*MP*)
8292      if test -d /usr/nec; then
8293        lt_prog_compiler_pic=-Kconform_pic
8294      fi
8295      ;;
8296
8297    hpux*)
8298      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8299      # not for PA HP-UX.
8300      case $host_cpu in
8301      hppa*64*|ia64*)
8302        # +Z the default
8303        ;;
8304      *)
8305        lt_prog_compiler_pic='-fPIC'
8306        ;;
8307      esac
8308      ;;
8309
8310    *)
8311      lt_prog_compiler_pic='-fPIC'
8312      ;;
8313    esac
8314  else
8315    # PORTME Check for flag to pass linker flags through the system compiler.
8316    case $host_os in
8317    aix*)
8318      lt_prog_compiler_wl='-Wl,'
8319      if test "$host_cpu" = ia64; then
8320        # AIX 5 now supports IA64 processor
8321        lt_prog_compiler_static='-Bstatic'
8322      else
8323        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8324      fi
8325      ;;
8326      darwin*)
8327        # PIC is the default on this platform
8328        # Common symbols not allowed in MH_DYLIB files
8329       case $cc_basename in
8330         xlc*)
8331         lt_prog_compiler_pic='-qnocommon'
8332         lt_prog_compiler_wl='-Wl,'
8333         ;;
8334       esac
8335       ;;
8336
8337    mingw* | pw32* | os2*)
8338      # This hack is so that the source file can tell whether it is being
8339      # built for inclusion in a dll (and should export symbols for example).
8340      lt_prog_compiler_pic='-DDLL_EXPORT'
8341      ;;
8342
8343    hpux9* | hpux10* | hpux11*)
8344      lt_prog_compiler_wl='-Wl,'
8345      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8346      # not for PA HP-UX.
8347      case $host_cpu in
8348      hppa*64*|ia64*)
8349        # +Z the default
8350        ;;
8351      *)
8352        lt_prog_compiler_pic='+Z'
8353        ;;
8354      esac
8355      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8356      lt_prog_compiler_static='${wl}-a ${wl}archive'
8357      ;;
8358
8359    irix5* | irix6* | nonstopux*)
8360      lt_prog_compiler_wl='-Wl,'
8361      # PIC (with -KPIC) is the default.
8362      lt_prog_compiler_static='-non_shared'
8363      ;;
8364
8365    newsos6)
8366      lt_prog_compiler_pic='-KPIC'
8367      lt_prog_compiler_static='-Bstatic'
8368      ;;
8369
8370    linux*)
8371      case $cc_basename in
8372      icc* | ecc*)
8373        lt_prog_compiler_wl='-Wl,'
8374        lt_prog_compiler_pic='-KPIC'
8375        lt_prog_compiler_static='-static'
8376        ;;
8377      pgcc* | pgf77* | pgf90* | pgf95*)
8378        # Portland Group compilers (*not* the Pentium gcc compiler,
8379        # which looks to be a dead project)
8380        lt_prog_compiler_wl='-Wl,'
8381        lt_prog_compiler_pic='-fpic'
8382        lt_prog_compiler_static='-Bstatic'
8383        ;;
8384      ccc*)
8385        lt_prog_compiler_wl='-Wl,'
8386        # All Alpha code is PIC.
8387        lt_prog_compiler_static='-non_shared'
8388        ;;
8389      esac
8390      ;;
8391
8392    osf3* | osf4* | osf5*)
8393      lt_prog_compiler_wl='-Wl,'
8394      # All OSF/1 code is PIC.
8395      lt_prog_compiler_static='-non_shared'
8396      ;;
8397
8398    solaris*)
8399      lt_prog_compiler_pic='-KPIC'
8400      lt_prog_compiler_static='-Bstatic'
8401      case $cc_basename in
8402      f77* | f90* | f95*)
8403        lt_prog_compiler_wl='-Qoption ld ';;
8404      *)
8405        lt_prog_compiler_wl='-Wl,';;
8406      esac
8407      ;;
8408
8409    sunos4*)
8410      lt_prog_compiler_wl='-Qoption ld '
8411      lt_prog_compiler_pic='-PIC'
8412      lt_prog_compiler_static='-Bstatic'
8413      ;;
8414
8415    sysv4 | sysv4.2uw2* | sysv4.3*)
8416      lt_prog_compiler_wl='-Wl,'
8417      lt_prog_compiler_pic='-KPIC'
8418      lt_prog_compiler_static='-Bstatic'
8419      ;;
8420
8421    sysv4*MP*)
8422      if test -d /usr/nec ;then
8423        lt_prog_compiler_pic='-Kconform_pic'
8424        lt_prog_compiler_static='-Bstatic'
8425      fi
8426      ;;
8427
8428    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8429      lt_prog_compiler_wl='-Wl,'
8430      lt_prog_compiler_pic='-KPIC'
8431      lt_prog_compiler_static='-Bstatic'
8432      ;;
8433
8434    unicos*)
8435      lt_prog_compiler_wl='-Wl,'
8436      lt_prog_compiler_can_build_shared=no
8437      ;;
8438
8439    uts4*)
8440      lt_prog_compiler_pic='-pic'
8441      lt_prog_compiler_static='-Bstatic'
8442      ;;
8443
8444    *)
8445      lt_prog_compiler_can_build_shared=no
8446      ;;
8447    esac
8448  fi
8449
8450echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8451echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8452
8453#
8454# Check to make sure the PIC flag actually works.
8455#
8456if test -n "$lt_prog_compiler_pic"; then
8457
8458echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8459echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8460if test "${lt_prog_compiler_pic_works+set}" = set; then
8461  echo $ECHO_N "(cached) $ECHO_C" >&6
8462else
8463  lt_prog_compiler_pic_works=no
8464  ac_outfile=conftest.$ac_objext
8465   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8466   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8467   # Insert the option either (1) after the last *FLAGS variable, or
8468   # (2) before a word containing "conftest.", or (3) at the end.
8469   # Note that $ac_compile itself does not contain backslashes and begins
8470   # with a dollar sign (not a hyphen), so the echo should work correctly.
8471   # The option is referenced via a variable to avoid confusing sed.
8472   lt_compile=`echo "$ac_compile" | $SED \
8473   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8474   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8475   -e 's:$: $lt_compiler_flag:'`
8476   (eval echo "\"\$as_me:8476: $lt_compile\"" >&5)
8477   (eval "$lt_compile" 2>conftest.err)
8478   ac_status=$?
8479   cat conftest.err >&5
8480   echo "$as_me:8480: \$? = $ac_status" >&5
8481   if (exit $ac_status) && test -s "$ac_outfile"; then
8482     # The compiler can only warn and ignore the option if not recognized
8483     # So say no if there are warnings other than the usual output.
8484     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8485     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8486     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8487       lt_prog_compiler_pic_works=yes
8488     fi
8489   fi
8490   $rm conftest*
8491
8492fi
8493echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8494echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8495
8496if test x"$lt_prog_compiler_pic_works" = xyes; then
8497    case $lt_prog_compiler_pic in
8498     "" | " "*) ;;
8499     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8500     esac
8501else
8502    lt_prog_compiler_pic=
8503     lt_prog_compiler_can_build_shared=no
8504fi
8505
8506fi
8507case $host_os in
8508  # For platforms which do not support PIC, -DPIC is meaningless:
8509  *djgpp*)
8510    lt_prog_compiler_pic=
8511    ;;
8512  *)
8513    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8514    ;;
8515esac
8516
8517#
8518# Check to make sure the static flag actually works.
8519#
8520wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8521echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8522echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8523if test "${lt_prog_compiler_static_works+set}" = set; then
8524  echo $ECHO_N "(cached) $ECHO_C" >&6
8525else
8526  lt_prog_compiler_static_works=no
8527   save_LDFLAGS="$LDFLAGS"
8528   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8529   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8530   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8531     # The linker can only warn and ignore the option if not recognized
8532     # So say no if there are warnings
8533     if test -s conftest.err; then
8534       # Append any errors to the config.log.
8535       cat conftest.err 1>&5
8536       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8537       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8538       if diff conftest.exp conftest.er2 >/dev/null; then
8539         lt_prog_compiler_static_works=yes
8540       fi
8541     else
8542       lt_prog_compiler_static_works=yes
8543     fi
8544   fi
8545   $rm conftest*
8546   LDFLAGS="$save_LDFLAGS"
8547
8548fi
8549echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8550echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8551
8552if test x"$lt_prog_compiler_static_works" = xyes; then
8553    :
8554else
8555    lt_prog_compiler_static=
8556fi
8557
8558
8559echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8560echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8561if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8562  echo $ECHO_N "(cached) $ECHO_C" >&6
8563else
8564  lt_cv_prog_compiler_c_o=no
8565   $rm -r conftest 2>/dev/null
8566   mkdir conftest
8567   cd conftest
8568   mkdir out
8569   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8570
8571   lt_compiler_flag="-o out/conftest2.$ac_objext"
8572   # Insert the option either (1) after the last *FLAGS variable, or
8573   # (2) before a word containing "conftest.", or (3) at the end.
8574   # Note that $ac_compile itself does not contain backslashes and begins
8575   # with a dollar sign (not a hyphen), so the echo should work correctly.
8576   lt_compile=`echo "$ac_compile" | $SED \
8577   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8578   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8579   -e 's:$: $lt_compiler_flag:'`
8580   (eval echo "\"\$as_me:8580: $lt_compile\"" >&5)
8581   (eval "$lt_compile" 2>out/conftest.err)
8582   ac_status=$?
8583   cat out/conftest.err >&5
8584   echo "$as_me:8584: \$? = $ac_status" >&5
8585   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8586   then
8587     # The compiler can only warn and ignore the option if not recognized
8588     # So say no if there are warnings
8589     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8590     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8591     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8592       lt_cv_prog_compiler_c_o=yes
8593     fi
8594   fi
8595   chmod u+w . 2>&5
8596   $rm conftest*
8597   # SGI C++ compiler will create directory out/ii_files/ for
8598   # template instantiation
8599   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8600   $rm out/* && rmdir out
8601   cd ..
8602   rmdir conftest
8603   $rm conftest*
8604
8605fi
8606echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8607echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8608
8609
8610hard_links="nottested"
8611if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8612  # do not overwrite the value of need_locks provided by the user
8613  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8614echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8615  hard_links=yes
8616  $rm conftest*
8617  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8618  touch conftest.a
8619  ln conftest.a conftest.b 2>&5 || hard_links=no
8620  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8621  echo "$as_me:$LINENO: result: $hard_links" >&5
8622echo "${ECHO_T}$hard_links" >&6
8623  if test "$hard_links" = no; then
8624    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8625echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8626    need_locks=warn
8627  fi
8628else
8629  need_locks=no
8630fi
8631
8632echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8633echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8634
8635  runpath_var=
8636  allow_undefined_flag=
8637  enable_shared_with_static_runtimes=no
8638  archive_cmds=
8639  archive_expsym_cmds=
8640  old_archive_From_new_cmds=
8641  old_archive_from_expsyms_cmds=
8642  export_dynamic_flag_spec=
8643  whole_archive_flag_spec=
8644  thread_safe_flag_spec=
8645  hardcode_libdir_flag_spec=
8646  hardcode_libdir_flag_spec_ld=
8647  hardcode_libdir_separator=
8648  hardcode_direct=no
8649  hardcode_minus_L=no
8650  hardcode_shlibpath_var=unsupported
8651  link_all_deplibs=unknown
8652  hardcode_automatic=no
8653  module_cmds=
8654  module_expsym_cmds=
8655  always_export_symbols=no
8656  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8657  # include_expsyms should be a list of space-separated symbols to be *always*
8658  # included in the symbol list
8659  include_expsyms=
8660  # exclude_expsyms can be an extended regexp of symbols to exclude
8661  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8662  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8663  # as well as any symbol that contains `d'.
8664  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8665  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8666  # platforms (ab)use it in PIC code, but their linkers get confused if
8667  # the symbol is explicitly referenced.  Since portable code cannot
8668  # rely on this symbol name, it's probably fine to never include it in
8669  # preloaded symbol tables.
8670  extract_expsyms_cmds=
8671  # Just being paranoid about ensuring that cc_basename is set.
8672  for cc_temp in $compiler""; do
8673  case $cc_temp in
8674    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8675    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8676    \-*) ;;
8677    *) break;;
8678  esac
8679done
8680cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8681
8682  case $host_os in
8683  cygwin* | mingw* | pw32*)
8684    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8685    # When not using gcc, we currently assume that we are using
8686    # Microsoft Visual C++.
8687    if test "$GCC" != yes; then
8688      with_gnu_ld=no
8689    fi
8690    ;;
8691  interix*)
8692    # we just hope/assume this is gcc and not c89 (= MSVC++)
8693    with_gnu_ld=yes
8694    ;;
8695  openbsd*)
8696    with_gnu_ld=no
8697    ;;
8698  esac
8699
8700  ld_shlibs=yes
8701  if test "$with_gnu_ld" = yes; then
8702    # If archive_cmds runs LD, not CC, wlarc should be empty
8703    wlarc='${wl}'
8704
8705    # Set some defaults for GNU ld with shared library support. These
8706    # are reset later if shared libraries are not supported. Putting them
8707    # here allows them to be overridden if necessary.
8708    runpath_var=LD_RUN_PATH
8709    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8710    export_dynamic_flag_spec='${wl}--export-dynamic'
8711    # ancient GNU ld didn't support --whole-archive et. al.
8712    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8713        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8714      else
8715        whole_archive_flag_spec=
8716    fi
8717    supports_anon_versioning=no
8718    case `$LD -v 2>/dev/null` in
8719      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8720      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8721      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8722      *\ 2.11.*) ;; # other 2.11 versions
8723      *) supports_anon_versioning=yes ;;
8724    esac
8725
8726    # See if GNU ld supports shared libraries.
8727    case $host_os in
8728    aix3* | aix4* | aix5*)
8729      # On AIX/PPC, the GNU linker is very broken
8730      if test "$host_cpu" != ia64; then
8731        ld_shlibs=no
8732        cat <<EOF 1>&2
8733
8734*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8735*** to be unable to reliably create shared libraries on AIX.
8736*** Therefore, libtool is disabling shared libraries support.  If you
8737*** really care for shared libraries, you may want to modify your PATH
8738*** so that a non-GNU linker is found, and then restart.
8739
8740EOF
8741      fi
8742      ;;
8743
8744    amigaos*)
8745      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)'
8746      hardcode_libdir_flag_spec='-L$libdir'
8747      hardcode_minus_L=yes
8748
8749      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8750      # that the semantics of dynamic libraries on AmigaOS, at least up
8751      # to version 4, is to share data among multiple programs linked
8752      # with the same dynamic library.  Since this doesn't match the
8753      # behavior of shared libraries on other platforms, we can't use
8754      # them.
8755      ld_shlibs=no
8756      ;;
8757
8758    beos*)
8759      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8760        allow_undefined_flag=unsupported
8761        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8762        # support --undefined.  This deserves some investigation.  FIXME
8763        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764      else
8765        ld_shlibs=no
8766      fi
8767      ;;
8768
8769    cygwin* | mingw* | pw32*)
8770      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8771      # as there is no search path for DLLs.
8772      hardcode_libdir_flag_spec='-L$libdir'
8773      allow_undefined_flag=unsupported
8774      always_export_symbols=no
8775      enable_shared_with_static_runtimes=yes
8776      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8777
8778      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8779        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8780        # If the export-symbols file already is a .def file (1st line
8781        # is EXPORTS), use it as is; otherwise, prepend...
8782        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8783          cp $export_symbols $output_objdir/$soname.def;
8784        else
8785          echo EXPORTS > $output_objdir/$soname.def;
8786          cat $export_symbols >> $output_objdir/$soname.def;
8787        fi~
8788        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8789      else
8790        ld_shlibs=no
8791      fi
8792      ;;
8793
8794    interix3*)
8795      hardcode_direct=no
8796      hardcode_shlibpath_var=no
8797      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8798      export_dynamic_flag_spec='${wl}-E'
8799      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8800      # Instead, shared libraries are loaded at an image base (0x10000000 by
8801      # default) and relocated if they conflict, which is a slow very memory
8802      # consuming and fragmenting process.  To avoid this, we pick a random,
8803      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8804      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8805      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8806      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'
8807      ;;
8808
8809    linux*)
8810      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8811        tmp_addflag=
8812        case $cc_basename,$host_cpu in
8813        pgcc*)                          # Portland Group C compiler
8814          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'
8815          tmp_addflag=' $pic_flag'
8816          ;;
8817        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8818          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'
8819          tmp_addflag=' $pic_flag -Mnomain' ;;
8820        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8821          tmp_addflag=' -i_dynamic' ;;
8822        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8823          tmp_addflag=' -i_dynamic -nofor_main' ;;
8824        ifc* | ifort*)                  # Intel Fortran compiler
8825          tmp_addflag=' -nofor_main' ;;
8826        esac
8827        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828
8829        if test $supports_anon_versioning = yes; then
8830          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8831  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8832  $echo "local: *; };" >> $output_objdir/$libname.ver~
8833          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8834        fi
8835      else
8836        ld_shlibs=no
8837      fi
8838      ;;
8839
8840    netbsd*)
8841      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8842        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8843        wlarc=
8844      else
8845        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8847      fi
8848      ;;
8849
8850    solaris*)
8851      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8852        ld_shlibs=no
8853        cat <<EOF 1>&2
8854
8855*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8856*** create shared libraries on Solaris systems.  Therefore, libtool
8857*** is disabling shared libraries support.  We urge you to upgrade GNU
8858*** binutils to release 2.9.1 or newer.  Another option is to modify
8859*** your PATH or compiler configuration so that the native linker is
8860*** used, and then restart.
8861
8862EOF
8863      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8864        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8866      else
8867        ld_shlibs=no
8868      fi
8869      ;;
8870
8871    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8872      case `$LD -v 2>&1` in
8873        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8874        ld_shlibs=no
8875        cat <<_LT_EOF 1>&2
8876
8877*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8878*** reliably create shared libraries on SCO systems.  Therefore, libtool
8879*** is disabling shared libraries support.  We urge you to upgrade GNU
8880*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8881*** your PATH or compiler configuration so that the native linker is
8882*** used, and then restart.
8883
8884_LT_EOF
8885        ;;
8886        *)
8887          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8888            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8889            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8890            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8891          else
8892            ld_shlibs=no
8893          fi
8894        ;;
8895      esac
8896      ;;
8897
8898    sunos4*)
8899      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8900      wlarc=
8901      hardcode_direct=yes
8902      hardcode_shlibpath_var=no
8903      ;;
8904
8905    *)
8906      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8907        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8909      else
8910        ld_shlibs=no
8911      fi
8912      ;;
8913    esac
8914
8915    if test "$ld_shlibs" = no; then
8916      runpath_var=
8917      hardcode_libdir_flag_spec=
8918      export_dynamic_flag_spec=
8919      whole_archive_flag_spec=
8920    fi
8921  else
8922    # PORTME fill in a description of your system's linker (not GNU ld)
8923    case $host_os in
8924    aix3*)
8925      allow_undefined_flag=unsupported
8926      always_export_symbols=yes
8927      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'
8928      # Note: this linker hardcodes the directories in LIBPATH if there
8929      # are no directories specified by -L.
8930      hardcode_minus_L=yes
8931      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8932        # Neither direct hardcoding nor static linking is supported with a
8933        # broken collect2.
8934        hardcode_direct=unsupported
8935      fi
8936      ;;
8937
8938    aix4* | aix5*)
8939      if test "$host_cpu" = ia64; then
8940        # On IA64, the linker does run time linking by default, so we don't
8941        # have to do anything special.
8942        aix_use_runtimelinking=no
8943        exp_sym_flag='-Bexport'
8944        no_entry_flag=""
8945      else
8946        # If we're using GNU nm, then we don't want the "-C" option.
8947        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8948        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8949          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'
8950        else
8951          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'
8952        fi
8953        aix_use_runtimelinking=no
8954
8955        # Test if we are trying to use run time linking or normal
8956        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8957        # need to do runtime linking.
8958        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8959          for ld_flag in $LDFLAGS; do
8960          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8961            aix_use_runtimelinking=yes
8962            break
8963          fi
8964          done
8965          ;;
8966        esac
8967
8968        exp_sym_flag='-bexport'
8969        no_entry_flag='-bnoentry'
8970      fi
8971
8972      # When large executables or shared objects are built, AIX ld can
8973      # have problems creating the table of contents.  If linking a library
8974      # or program results in "error TOC overflow" add -mminimal-toc to
8975      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8976      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8977
8978      archive_cmds=''
8979      hardcode_direct=yes
8980      hardcode_libdir_separator=':'
8981      link_all_deplibs=yes
8982
8983      if test "$GCC" = yes; then
8984        case $host_os in aix4.[012]|aix4.[012].*)
8985        # We only want to do this on AIX 4.2 and lower, the check
8986        # below for broken collect2 doesn't work under 4.3+
8987          collect2name=`${CC} -print-prog-name=collect2`
8988          if test -f "$collect2name" && \
8989           strings "$collect2name" | grep resolve_lib_name >/dev/null
8990          then
8991          # We have reworked collect2
8992          hardcode_direct=yes
8993          else
8994          # We have old collect2
8995          hardcode_direct=unsupported
8996          # It fails to find uninstalled libraries when the uninstalled
8997          # path is not listed in the libpath.  Setting hardcode_minus_L
8998          # to unsupported forces relinking
8999          hardcode_minus_L=yes
9000          hardcode_libdir_flag_spec='-L$libdir'
9001          hardcode_libdir_separator=
9002          fi
9003          ;;
9004        esac
9005        shared_flag='-shared'
9006        if test "$aix_use_runtimelinking" = yes; then
9007          shared_flag="$shared_flag "'${wl}-G'
9008        fi
9009      else
9010        # not using gcc
9011        if test "$host_cpu" = ia64; then
9012        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9013        # chokes on -Wl,-G. The following line is correct:
9014          shared_flag='-G'
9015        else
9016          if test "$aix_use_runtimelinking" = yes; then
9017            shared_flag='${wl}-G'
9018          else
9019            shared_flag='${wl}-bM:SRE'
9020          fi
9021        fi
9022      fi
9023
9024      # It seems that -bexpall does not export symbols beginning with
9025      # underscore (_), so it is better to generate a list of symbols to export.
9026      always_export_symbols=yes
9027      if test "$aix_use_runtimelinking" = yes; then
9028        # Warning - without using the other runtime loading flags (-brtl),
9029        # -berok will link without error, but may produce a broken library.
9030        allow_undefined_flag='-berok'
9031       # Determine the default libpath from the value encoded in an empty executable.
9032       cat >conftest.$ac_ext <<_ACEOF
9033/* confdefs.h.  */
9034_ACEOF
9035cat confdefs.h >>conftest.$ac_ext
9036cat >>conftest.$ac_ext <<_ACEOF
9037/* end confdefs.h.  */
9038
9039int
9040main ()
9041{
9042
9043  ;
9044  return 0;
9045}
9046_ACEOF
9047rm -f conftest.$ac_objext conftest$ac_exeext
9048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9049  (eval $ac_link) 2>conftest.er1
9050  ac_status=$?
9051  grep -v '^ *+' conftest.er1 >conftest.err
9052  rm -f conftest.er1
9053  cat conftest.err >&5
9054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055  (exit $ac_status); } &&
9056         { ac_try='test -z "$ac_c_werror_flag"
9057                         || test ! -s conftest.err'
9058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059  (eval $ac_try) 2>&5
9060  ac_status=$?
9061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062  (exit $ac_status); }; } &&
9063         { ac_try='test -s conftest$ac_exeext'
9064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065  (eval $ac_try) 2>&5
9066  ac_status=$?
9067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068  (exit $ac_status); }; }; then
9069
9070aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9071}'`
9072# Check for a 64-bit object if we didn't find anything.
9073if 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; }
9074}'`; fi
9075else
9076  echo "$as_me: failed program was:" >&5
9077sed 's/^/| /' conftest.$ac_ext >&5
9078
9079fi
9080rm -f conftest.err conftest.$ac_objext \
9081      conftest$ac_exeext conftest.$ac_ext
9082if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9083
9084       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9085        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"
9086       else
9087        if test "$host_cpu" = ia64; then
9088          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9089          allow_undefined_flag="-z nodefs"
9090          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"
9091        else
9092         # Determine the default libpath from the value encoded in an empty executable.
9093         cat >conftest.$ac_ext <<_ACEOF
9094/* confdefs.h.  */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h.  */
9099
9100int
9101main ()
9102{
9103
9104  ;
9105  return 0;
9106}
9107_ACEOF
9108rm -f conftest.$ac_objext conftest$ac_exeext
9109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110  (eval $ac_link) 2>conftest.er1
9111  ac_status=$?
9112  grep -v '^ *+' conftest.er1 >conftest.err
9113  rm -f conftest.er1
9114  cat conftest.err >&5
9115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116  (exit $ac_status); } &&
9117         { ac_try='test -z "$ac_c_werror_flag"
9118                         || test ! -s conftest.err'
9119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120  (eval $ac_try) 2>&5
9121  ac_status=$?
9122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123  (exit $ac_status); }; } &&
9124         { ac_try='test -s conftest$ac_exeext'
9125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126  (eval $ac_try) 2>&5
9127  ac_status=$?
9128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129  (exit $ac_status); }; }; then
9130
9131aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9132}'`
9133# Check for a 64-bit object if we didn't find anything.
9134if 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; }
9135}'`; fi
9136else
9137  echo "$as_me: failed program was:" >&5
9138sed 's/^/| /' conftest.$ac_ext >&5
9139
9140fi
9141rm -f conftest.err conftest.$ac_objext \
9142      conftest$ac_exeext conftest.$ac_ext
9143if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9144
9145         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9146          # Warning - without using the other run time loading flags,
9147          # -berok will link without error, but may produce a broken library.
9148          no_undefined_flag=' ${wl}-bernotok'
9149          allow_undefined_flag=' ${wl}-berok'
9150          # Exported symbols can be pulled into shared objects from archives
9151          whole_archive_flag_spec='$convenience'
9152          archive_cmds_need_lc=yes
9153          # This is similar to how AIX traditionally builds its shared libraries.
9154          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'
9155        fi
9156      fi
9157      ;;
9158
9159    amigaos*)
9160      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)'
9161      hardcode_libdir_flag_spec='-L$libdir'
9162      hardcode_minus_L=yes
9163      # see comment about different semantics on the GNU ld section
9164      ld_shlibs=no
9165      ;;
9166
9167    bsdi[45]*)
9168      export_dynamic_flag_spec=-rdynamic
9169      ;;
9170
9171    cygwin* | mingw* | pw32*)
9172      # When not using gcc, we currently assume that we are using
9173      # Microsoft Visual C++.
9174      # hardcode_libdir_flag_spec is actually meaningless, as there is
9175      # no search path for DLLs.
9176      hardcode_libdir_flag_spec=' '
9177      allow_undefined_flag=unsupported
9178      # Tell ltmain to make .lib files, not .a files.
9179      libext=lib
9180      # Tell ltmain to make .dll files, not .so files.
9181      shrext_cmds=".dll"
9182      # FIXME: Setting linknames here is a bad hack.
9183      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9184      # The linker will automatically build a .lib file if we build a DLL.
9185      old_archive_From_new_cmds='true'
9186      # FIXME: Should let the user specify the lib program.
9187      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9188      fix_srcfile_path='`cygpath -w "$srcfile"`'
9189      enable_shared_with_static_runtimes=yes
9190      ;;
9191
9192    darwin* | rhapsody*)
9193      case $host_os in
9194        rhapsody* | darwin1.[012])
9195         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9196         ;;
9197       *) # Darwin 1.3 on
9198         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9199           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9200         else
9201           case ${MACOSX_DEPLOYMENT_TARGET} in
9202             10.[012])
9203               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9204               ;;
9205             10.*)
9206               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9207               ;;
9208           esac
9209         fi
9210         ;;
9211      esac
9212      archive_cmds_need_lc=no
9213      hardcode_direct=no
9214      hardcode_automatic=yes
9215      hardcode_shlibpath_var=unsupported
9216      whole_archive_flag_spec=''
9217      link_all_deplibs=yes
9218    if test "$GCC" = yes ; then
9219        output_verbose_link_cmd='echo'
9220        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9221      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9222      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9223      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}'
9224      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}'
9225    else
9226      case $cc_basename in
9227        xlc*)
9228         output_verbose_link_cmd='echo'
9229         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9230         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9231          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9232         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}'
9233          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}'
9234          ;;
9235       *)
9236         ld_shlibs=no
9237          ;;
9238      esac
9239    fi
9240      ;;
9241
9242    dgux*)
9243      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244      hardcode_libdir_flag_spec='-L$libdir'
9245      hardcode_shlibpath_var=no
9246      ;;
9247
9248    freebsd1*)
9249      ld_shlibs=no
9250      ;;
9251
9252    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9253    # support.  Future versions do this automatically, but an explicit c++rt0.o
9254    # does not break anything, and helps significantly (at the cost of a little
9255    # extra space).
9256    freebsd2.2*)
9257      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9258      hardcode_libdir_flag_spec='-R$libdir'
9259      hardcode_direct=yes
9260      hardcode_shlibpath_var=no
9261      ;;
9262
9263    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9264    freebsd2*)
9265      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9266      hardcode_direct=yes
9267      hardcode_minus_L=yes
9268      hardcode_shlibpath_var=no
9269      ;;
9270
9271    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9272    freebsd* | kfreebsd*-gnu | dragonfly*)
9273      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9274      hardcode_libdir_flag_spec='-R$libdir'
9275      hardcode_direct=yes
9276      hardcode_shlibpath_var=no
9277      ;;
9278
9279    hpux9*)
9280      if test "$GCC" = yes; then
9281        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'
9282      else
9283        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'
9284      fi
9285      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9286      hardcode_libdir_separator=:
9287      hardcode_direct=yes
9288
9289      # hardcode_minus_L: Not really in the search PATH,
9290      # but as the default location of the library.
9291      hardcode_minus_L=yes
9292      export_dynamic_flag_spec='${wl}-E'
9293      ;;
9294
9295    hpux10*)
9296      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9297        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9298      else
9299        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9300      fi
9301      if test "$with_gnu_ld" = no; then
9302        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9303        hardcode_libdir_separator=:
9304
9305        hardcode_direct=yes
9306        export_dynamic_flag_spec='${wl}-E'
9307
9308        # hardcode_minus_L: Not really in the search PATH,
9309        # but as the default location of the library.
9310        hardcode_minus_L=yes
9311      fi
9312      ;;
9313
9314    hpux11*)
9315      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9316        case $host_cpu in
9317        hppa*64*)
9318          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9319          ;;
9320        ia64*)
9321          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9322          ;;
9323        *)
9324          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9325          ;;
9326        esac
9327      else
9328        case $host_cpu in
9329        hppa*64*)
9330          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9331          ;;
9332        ia64*)
9333          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9334          ;;
9335        *)
9336          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9337          ;;
9338        esac
9339      fi
9340      if test "$with_gnu_ld" = no; then
9341        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9342        hardcode_libdir_separator=:
9343
9344        case $host_cpu in
9345        hppa*64*|ia64*)
9346          hardcode_libdir_flag_spec_ld='+b $libdir'
9347          hardcode_direct=no
9348          hardcode_shlibpath_var=no
9349          ;;
9350        *)
9351          hardcode_direct=yes
9352          export_dynamic_flag_spec='${wl}-E'
9353
9354          # hardcode_minus_L: Not really in the search PATH,
9355          # but as the default location of the library.
9356          hardcode_minus_L=yes
9357          ;;
9358        esac
9359      fi
9360      ;;
9361
9362    irix5* | irix6* | nonstopux*)
9363      if test "$GCC" = yes; then
9364        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'
9365      else
9366        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'
9367        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9368      fi
9369      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9370      hardcode_libdir_separator=:
9371      link_all_deplibs=yes
9372      ;;
9373
9374    netbsd*)
9375      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9376        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9377      else
9378        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9379      fi
9380      hardcode_libdir_flag_spec='-R$libdir'
9381      hardcode_direct=yes
9382      hardcode_shlibpath_var=no
9383      ;;
9384
9385    newsos6)
9386      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387      hardcode_direct=yes
9388      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389      hardcode_libdir_separator=:
9390      hardcode_shlibpath_var=no
9391      ;;
9392
9393    openbsd*)
9394      hardcode_direct=yes
9395      hardcode_shlibpath_var=no
9396      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9397        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9398        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9399        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9400        export_dynamic_flag_spec='${wl}-E'
9401      else
9402       case $host_os in
9403         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9404           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9405           hardcode_libdir_flag_spec='-R$libdir'
9406           ;;
9407         *)
9408           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9409           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9410           ;;
9411       esac
9412      fi
9413      ;;
9414
9415    os2*)
9416      hardcode_libdir_flag_spec='-L$libdir'
9417      hardcode_minus_L=yes
9418      allow_undefined_flag=unsupported
9419      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'
9420      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9421      ;;
9422
9423    osf3*)
9424      if test "$GCC" = yes; then
9425        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9426        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'
9427      else
9428        allow_undefined_flag=' -expect_unresolved \*'
9429        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'
9430      fi
9431      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9432      hardcode_libdir_separator=:
9433      ;;
9434
9435    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9436      if test "$GCC" = yes; then
9437        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9438        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'
9439        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9440      else
9441        allow_undefined_flag=' -expect_unresolved \*'
9442        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'
9443        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9444        $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'
9445
9446        # Both c and cxx compiler support -rpath directly
9447        hardcode_libdir_flag_spec='-rpath $libdir'
9448      fi
9449      hardcode_libdir_separator=:
9450      ;;
9451
9452    solaris*)
9453      no_undefined_flag=' -z text'
9454      if test "$GCC" = yes; then
9455        wlarc='${wl}'
9456        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9457        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9458          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9459      else
9460        wlarc=''
9461        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9463        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9464      fi
9465      hardcode_libdir_flag_spec='-R$libdir'
9466      hardcode_shlibpath_var=no
9467      case $host_os in
9468      solaris2.[0-5] | solaris2.[0-5].*) ;;
9469      *)
9470        # The compiler driver will combine linker options so we
9471        # cannot just pass the convience library names through
9472        # without $wl, iff we do not link with $LD.
9473        # Luckily, gcc supports the same syntax we need for Sun Studio.
9474        # Supported since Solaris 2.6 (maybe 2.5.1?)
9475        case $wlarc in
9476        '')
9477          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9478        *)
9479          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' ;;
9480        esac ;;
9481      esac
9482      link_all_deplibs=yes
9483      ;;
9484
9485    sunos4*)
9486      if test "x$host_vendor" = xsequent; then
9487        # Use $CC to link under sequent, because it throws in some extra .o
9488        # files that make .init and .fini sections work.
9489        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9490      else
9491        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9492      fi
9493      hardcode_libdir_flag_spec='-L$libdir'
9494      hardcode_direct=yes
9495      hardcode_minus_L=yes
9496      hardcode_shlibpath_var=no
9497      ;;
9498
9499    sysv4)
9500      case $host_vendor in
9501        sni)
9502          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503          hardcode_direct=yes # is this really true???
9504        ;;
9505        siemens)
9506          ## LD is ld it makes a PLAMLIB
9507          ## CC just makes a GrossModule.
9508          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9509          reload_cmds='$CC -r -o $output$reload_objs'
9510          hardcode_direct=no
9511        ;;
9512        motorola)
9513          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9515        ;;
9516      esac
9517      runpath_var='LD_RUN_PATH'
9518      hardcode_shlibpath_var=no
9519      ;;
9520
9521    sysv4.3*)
9522      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523      hardcode_shlibpath_var=no
9524      export_dynamic_flag_spec='-Bexport'
9525      ;;
9526
9527    sysv4*MP*)
9528      if test -d /usr/nec; then
9529        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530        hardcode_shlibpath_var=no
9531        runpath_var=LD_RUN_PATH
9532        hardcode_runpath_var=yes
9533        ld_shlibs=yes
9534      fi
9535      ;;
9536
9537    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9538      no_undefined_flag='${wl}-z,text'
9539      archive_cmds_need_lc=no
9540      hardcode_shlibpath_var=no
9541      runpath_var='LD_RUN_PATH'
9542
9543      if test "$GCC" = yes; then
9544        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9545        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9546      else
9547        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9548        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9549      fi
9550      ;;
9551
9552    sysv5* | sco3.2v5* | sco5v6*)
9553      # Note: We can NOT use -z defs as we might desire, because we do not
9554      # link with -lc, and that would cause any symbols used from libc to
9555      # always be unresolved, which means just about no library would
9556      # ever link correctly.  If we're not using GNU ld we use -z text
9557      # though, which does catch some bad symbols but isn't as heavy-handed
9558      # as -z defs.
9559      no_undefined_flag='${wl}-z,text'
9560      allow_undefined_flag='${wl}-z,nodefs'
9561      archive_cmds_need_lc=no
9562      hardcode_shlibpath_var=no
9563      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9564      hardcode_libdir_separator=':'
9565      link_all_deplibs=yes
9566      export_dynamic_flag_spec='${wl}-Bexport'
9567      runpath_var='LD_RUN_PATH'
9568
9569      if test "$GCC" = yes; then
9570        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9571        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9572      else
9573        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9574        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9575      fi
9576      ;;
9577
9578    uts4*)
9579      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580      hardcode_libdir_flag_spec='-L$libdir'
9581      hardcode_shlibpath_var=no
9582      ;;
9583
9584    *)
9585      ld_shlibs=no
9586      ;;
9587    esac
9588  fi
9589
9590echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9591echo "${ECHO_T}$ld_shlibs" >&6
9592test "$ld_shlibs" = no && can_build_shared=no
9593
9594#
9595# Do we need to explicitly link libc?
9596#
9597case "x$archive_cmds_need_lc" in
9598x|xyes)
9599  # Assume -lc should be added
9600  archive_cmds_need_lc=yes
9601
9602  if test "$enable_shared" = yes && test "$GCC" = yes; then
9603    case $archive_cmds in
9604    *'~'*)
9605      # FIXME: we may have to deal with multi-command sequences.
9606      ;;
9607    '$CC '*)
9608      # Test whether the compiler implicitly links with -lc since on some
9609      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9610      # to ld, don't add -lc before -lgcc.
9611      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9612echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9613      $rm conftest*
9614      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9615
9616      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9617  (eval $ac_compile) 2>&5
9618  ac_status=$?
9619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620  (exit $ac_status); } 2>conftest.err; then
9621        soname=conftest
9622        lib=conftest
9623        libobjs=conftest.$ac_objext
9624        deplibs=
9625        wl=$lt_prog_compiler_wl
9626        pic_flag=$lt_prog_compiler_pic
9627        compiler_flags=-v
9628        linker_flags=-v
9629        verstring=
9630        output_objdir=.
9631        libname=conftest
9632        lt_save_allow_undefined_flag=$allow_undefined_flag
9633        allow_undefined_flag=
9634        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9635  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9636  ac_status=$?
9637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638  (exit $ac_status); }
9639        then
9640          archive_cmds_need_lc=no
9641        else
9642          archive_cmds_need_lc=yes
9643        fi
9644        allow_undefined_flag=$lt_save_allow_undefined_flag
9645      else
9646        cat conftest.err 1>&5
9647      fi
9648      $rm conftest*
9649      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9650echo "${ECHO_T}$archive_cmds_need_lc" >&6
9651      ;;
9652    esac
9653  fi
9654  ;;
9655esac
9656
9657echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9658echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9659library_names_spec=
9660libname_spec='lib$name'
9661soname_spec=
9662shrext_cmds=".so"
9663postinstall_cmds=
9664postuninstall_cmds=
9665finish_cmds=
9666finish_eval=
9667shlibpath_var=
9668shlibpath_overrides_runpath=unknown
9669version_type=none
9670dynamic_linker="$host_os ld.so"
9671sys_lib_dlsearch_path_spec="/lib /usr/lib"
9672if test "$GCC" = yes; then
9673  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9674  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9675    # if the path contains ";" then we assume it to be the separator
9676    # otherwise default to the standard path separator (i.e. ":") - it is
9677    # assumed that no part of a normal pathname contains ";" but that should
9678    # okay in the real world where ";" in dirpaths is itself problematic.
9679    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9680  else
9681    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9682  fi
9683else
9684  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9685fi
9686need_lib_prefix=unknown
9687hardcode_into_libs=no
9688
9689# when you set need_version to no, make sure it does not cause -set_version
9690# flags to be left without arguments
9691need_version=unknown
9692
9693case $host_os in
9694aix3*)
9695  version_type=linux
9696  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9697  shlibpath_var=LIBPATH
9698
9699  # AIX 3 has no versioning support, so we append a major version to the name.
9700  soname_spec='${libname}${release}${shared_ext}$major'
9701  ;;
9702
9703aix4* | aix5*)
9704  version_type=linux
9705  need_lib_prefix=no
9706  need_version=no
9707  hardcode_into_libs=yes
9708  if test "$host_cpu" = ia64; then
9709    # AIX 5 supports IA64
9710    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9711    shlibpath_var=LD_LIBRARY_PATH
9712  else
9713    # With GCC up to 2.95.x, collect2 would create an import file
9714    # for dependence libraries.  The import file would start with
9715    # the line `#! .'.  This would cause the generated library to
9716    # depend on `.', always an invalid library.  This was fixed in
9717    # development snapshots of GCC prior to 3.0.
9718    case $host_os in
9719      aix4 | aix4.[01] | aix4.[01].*)
9720      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9721           echo ' yes '
9722           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9723        :
9724      else
9725        can_build_shared=no
9726      fi
9727      ;;
9728    esac
9729    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9730    # soname into executable. Probably we can add versioning support to
9731    # collect2, so additional links can be useful in future.
9732    if test "$aix_use_runtimelinking" = yes; then
9733      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9734      # instead of lib<name>.a to let people know that these are not
9735      # typical AIX shared libraries.
9736      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737    else
9738      # We preserve .a as extension for shared libraries through AIX4.2
9739      # and later when we are not doing run time linking.
9740      library_names_spec='${libname}${release}.a $libname.a'
9741      soname_spec='${libname}${release}${shared_ext}$major'
9742    fi
9743    shlibpath_var=LIBPATH
9744  fi
9745  ;;
9746
9747amigaos*)
9748  library_names_spec='$libname.ixlibrary $libname.a'
9749  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9750  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'
9751  ;;
9752
9753beos*)
9754  library_names_spec='${libname}${shared_ext}'
9755  dynamic_linker="$host_os ld.so"
9756  shlibpath_var=LIBRARY_PATH
9757  ;;
9758
9759bsdi[45]*)
9760  version_type=linux
9761  need_version=no
9762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763  soname_spec='${libname}${release}${shared_ext}$major'
9764  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9765  shlibpath_var=LD_LIBRARY_PATH
9766  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9767  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9768  # the default ld.so.conf also contains /usr/contrib/lib and
9769  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9770  # libtool to hard-code these into programs
9771  ;;
9772
9773cygwin* | mingw* | pw32*)
9774  version_type=windows
9775  shrext_cmds=".dll"
9776  need_version=no
9777  need_lib_prefix=no
9778
9779  case $GCC,$host_os in
9780  yes,cygwin* | yes,mingw* | yes,pw32*)
9781    library_names_spec='$libname.dll.a'
9782    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9783    postinstall_cmds='base_file=`basename \${file}`~
9784      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9785      dldir=$destdir/`dirname \$dlpath`~
9786      test -d \$dldir || mkdir -p \$dldir~
9787      $install_prog $dir/$dlname \$dldir/$dlname~
9788      chmod a+x \$dldir/$dlname'
9789    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9790      dlpath=$dir/\$dldll~
9791       $rm \$dlpath'
9792    shlibpath_overrides_runpath=yes
9793
9794    case $host_os in
9795    cygwin*)
9796      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9797      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9798      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9799      ;;
9800    mingw*)
9801      # MinGW DLLs use traditional 'lib' prefix
9802      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9803      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9804      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9805        # It is most probably a Windows format PATH printed by
9806        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9807        # path with ; separators, and with drive letters. We can handle the
9808        # drive letters (cygwin fileutils understands them), so leave them,
9809        # especially as we might pass files found there to a mingw objdump,
9810        # which wouldn't understand a cygwinified path. Ahh.
9811        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9812      else
9813        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9814      fi
9815      ;;
9816    pw32*)
9817      # pw32 DLLs use 'pw' prefix rather than 'lib'
9818      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9819      ;;
9820    esac
9821    ;;
9822
9823  *)
9824    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9825    ;;
9826  esac
9827  dynamic_linker='Win32 ld.exe'
9828  # FIXME: first we should search . and the directory the executable is in
9829  shlibpath_var=PATH
9830  ;;
9831
9832darwin* | rhapsody*)
9833  dynamic_linker="$host_os dyld"
9834  version_type=darwin
9835  need_lib_prefix=no
9836  need_version=no
9837  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9838  soname_spec='${libname}${release}${major}$shared_ext'
9839  shlibpath_overrides_runpath=yes
9840  shlibpath_var=DYLD_LIBRARY_PATH
9841  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9842  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9843  if test "$GCC" = yes; then
9844    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"`
9845  else
9846    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9847  fi
9848  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9849  ;;
9850
9851dgux*)
9852  version_type=linux
9853  need_lib_prefix=no
9854  need_version=no
9855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9856  soname_spec='${libname}${release}${shared_ext}$major'
9857  shlibpath_var=LD_LIBRARY_PATH
9858  ;;
9859
9860freebsd1*)
9861  dynamic_linker=no
9862  ;;
9863
9864kfreebsd*-gnu)
9865  version_type=linux
9866  need_lib_prefix=no
9867  need_version=no
9868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9869  soname_spec='${libname}${release}${shared_ext}$major'
9870  shlibpath_var=LD_LIBRARY_PATH
9871  shlibpath_overrides_runpath=no
9872  hardcode_into_libs=yes
9873  dynamic_linker='GNU ld.so'
9874  ;;
9875
9876freebsd* | dragonfly*)
9877  # DragonFly does not have aout.  When/if they implement a new
9878  # versioning mechanism, adjust this.
9879  if test -x /usr/bin/objformat; then
9880    objformat=`/usr/bin/objformat`
9881  else
9882    case $host_os in
9883    freebsd[123]*) objformat=aout ;;
9884    *) objformat=elf ;;
9885    esac
9886  fi
9887  version_type=freebsd-$objformat
9888  case $version_type in
9889    freebsd-elf*)
9890      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9891      need_version=no
9892      need_lib_prefix=no
9893      ;;
9894    freebsd-*)
9895      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9896      need_version=yes
9897      ;;
9898  esac
9899  shlibpath_var=LD_LIBRARY_PATH
9900  case $host_os in
9901  freebsd2*)
9902    shlibpath_overrides_runpath=yes
9903    ;;
9904  freebsd3.[01]* | freebsdelf3.[01]*)
9905    shlibpath_overrides_runpath=yes
9906    hardcode_into_libs=yes
9907    ;;
9908  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9909  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9910    shlibpath_overrides_runpath=no
9911    hardcode_into_libs=yes
9912    ;;
9913  freebsd*) # from 4.6 on
9914    shlibpath_overrides_runpath=yes
9915    hardcode_into_libs=yes
9916    ;;
9917  esac
9918  ;;
9919
9920gnu*)
9921  version_type=linux
9922  need_lib_prefix=no
9923  need_version=no
9924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9925  soname_spec='${libname}${release}${shared_ext}$major'
9926  shlibpath_var=LD_LIBRARY_PATH
9927  hardcode_into_libs=yes
9928  ;;
9929
9930hpux9* | hpux10* | hpux11*)
9931  # Give a soname corresponding to the major version so that dld.sl refuses to
9932  # link against other versions.
9933  version_type=sunos
9934  need_lib_prefix=no
9935  need_version=no
9936  case $host_cpu in
9937  ia64*)
9938    shrext_cmds='.so'
9939    hardcode_into_libs=yes
9940    dynamic_linker="$host_os dld.so"
9941    shlibpath_var=LD_LIBRARY_PATH
9942    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9943    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944    soname_spec='${libname}${release}${shared_ext}$major'
9945    if test "X$HPUX_IA64_MODE" = X32; then
9946      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9947    else
9948      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9949    fi
9950    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9951    ;;
9952   hppa*64*)
9953     shrext_cmds='.sl'
9954     hardcode_into_libs=yes
9955     dynamic_linker="$host_os dld.sl"
9956     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9957     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9958     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959     soname_spec='${libname}${release}${shared_ext}$major'
9960     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9961     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9962     ;;
9963   *)
9964    shrext_cmds='.sl'
9965    dynamic_linker="$host_os dld.sl"
9966    shlibpath_var=SHLIB_PATH
9967    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9968    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969    soname_spec='${libname}${release}${shared_ext}$major'
9970    ;;
9971  esac
9972  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9973  postinstall_cmds='chmod 555 $lib'
9974  ;;
9975
9976interix3*)
9977  version_type=linux
9978  need_lib_prefix=no
9979  need_version=no
9980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9981  soname_spec='${libname}${release}${shared_ext}$major'
9982  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9983  shlibpath_var=LD_LIBRARY_PATH
9984  shlibpath_overrides_runpath=no
9985  hardcode_into_libs=yes
9986  ;;
9987
9988irix5* | irix6* | nonstopux*)
9989  case $host_os in
9990    nonstopux*) version_type=nonstopux ;;
9991    *)
9992        if test "$lt_cv_prog_gnu_ld" = yes; then
9993                version_type=linux
9994        else
9995                version_type=irix
9996        fi ;;
9997  esac
9998  need_lib_prefix=no
9999  need_version=no
10000  soname_spec='${libname}${release}${shared_ext}$major'
10001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10002  case $host_os in
10003  irix5* | nonstopux*)
10004    libsuff= shlibsuff=
10005    ;;
10006  *)
10007    case $LD in # libtool.m4 will add one of these switches to LD
10008    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10009      libsuff= shlibsuff= libmagic=32-bit;;
10010    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10011      libsuff=32 shlibsuff=N32 libmagic=N32;;
10012    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10013      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10014    *) libsuff= shlibsuff= libmagic=never-match;;
10015    esac
10016    ;;
10017  esac
10018  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10019  shlibpath_overrides_runpath=no
10020  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10021  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10022  hardcode_into_libs=yes
10023  ;;
10024
10025# No shared lib support for Linux oldld, aout, or coff.
10026linux*oldld* | linux*aout* | linux*coff*)
10027  dynamic_linker=no
10028  ;;
10029
10030# This must be Linux ELF.
10031linux*)
10032  version_type=linux
10033  need_lib_prefix=no
10034  need_version=no
10035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036  soname_spec='${libname}${release}${shared_ext}$major'
10037  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10038  shlibpath_var=LD_LIBRARY_PATH
10039  shlibpath_overrides_runpath=no
10040  # This implies no fast_install, which is unacceptable.
10041  # Some rework will be needed to allow for fast_install
10042  # before this can be enabled.
10043  hardcode_into_libs=yes
10044
10045  # Append ld.so.conf contents to the search path
10046  if test -f /etc/ld.so.conf; then
10047    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' ' '`
10048    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10049  fi
10050
10051  # We used to test for /lib/ld.so.1 and disable shared libraries on
10052  # powerpc, because MkLinux only supported shared libraries with the
10053  # GNU dynamic linker.  Since this was broken with cross compilers,
10054  # most powerpc-linux boxes support dynamic linking these days and
10055  # people can always --disable-shared, the test was removed, and we
10056  # assume the GNU/Linux dynamic linker is in use.
10057  dynamic_linker='GNU/Linux ld.so'
10058  ;;
10059
10060knetbsd*-gnu)
10061  version_type=linux
10062  need_lib_prefix=no
10063  need_version=no
10064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10065  soname_spec='${libname}${release}${shared_ext}$major'
10066  shlibpath_var=LD_LIBRARY_PATH
10067  shlibpath_overrides_runpath=no
10068  hardcode_into_libs=yes
10069  dynamic_linker='GNU ld.so'
10070  ;;
10071
10072netbsd*)
10073  version_type=sunos
10074  need_lib_prefix=no
10075  need_version=no
10076  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10077    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10078    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10079    dynamic_linker='NetBSD (a.out) ld.so'
10080  else
10081    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10082    soname_spec='${libname}${release}${shared_ext}$major'
10083    dynamic_linker='NetBSD ld.elf_so'
10084  fi
10085  shlibpath_var=LD_LIBRARY_PATH
10086  shlibpath_overrides_runpath=yes
10087  hardcode_into_libs=yes
10088  ;;
10089
10090newsos6)
10091  version_type=linux
10092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093  shlibpath_var=LD_LIBRARY_PATH
10094  shlibpath_overrides_runpath=yes
10095  ;;
10096
10097nto-qnx*)
10098  version_type=linux
10099  need_lib_prefix=no
10100  need_version=no
10101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102  soname_spec='${libname}${release}${shared_ext}$major'
10103  shlibpath_var=LD_LIBRARY_PATH
10104  shlibpath_overrides_runpath=yes
10105  ;;
10106
10107openbsd*)
10108  version_type=sunos
10109  sys_lib_dlsearch_path_spec="/usr/lib"
10110  need_lib_prefix=no
10111  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10112  case $host_os in
10113    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10114    *)                         need_version=no  ;;
10115  esac
10116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10117  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10118  shlibpath_var=LD_LIBRARY_PATH
10119  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10120    case $host_os in
10121      openbsd2.[89] | openbsd2.[89].*)
10122        shlibpath_overrides_runpath=no
10123        ;;
10124      *)
10125        shlibpath_overrides_runpath=yes
10126        ;;
10127      esac
10128  else
10129    shlibpath_overrides_runpath=yes
10130  fi
10131  ;;
10132
10133os2*)
10134  libname_spec='$name'
10135  shrext_cmds=".dll"
10136  need_lib_prefix=no
10137  library_names_spec='$libname${shared_ext} $libname.a'
10138  dynamic_linker='OS/2 ld.exe'
10139  shlibpath_var=LIBPATH
10140  ;;
10141
10142osf3* | osf4* | osf5*)
10143  version_type=osf
10144  need_lib_prefix=no
10145  need_version=no
10146  soname_spec='${libname}${release}${shared_ext}$major'
10147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148  shlibpath_var=LD_LIBRARY_PATH
10149  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10150  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10151  ;;
10152
10153solaris*)
10154  version_type=linux
10155  need_lib_prefix=no
10156  need_version=no
10157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158  soname_spec='${libname}${release}${shared_ext}$major'
10159  shlibpath_var=LD_LIBRARY_PATH
10160  shlibpath_overrides_runpath=yes
10161  hardcode_into_libs=yes
10162  # ldd complains unless libraries are executable
10163  postinstall_cmds='chmod +x $lib'
10164  ;;
10165
10166sunos4*)
10167  version_type=sunos
10168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10169  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10170  shlibpath_var=LD_LIBRARY_PATH
10171  shlibpath_overrides_runpath=yes
10172  if test "$with_gnu_ld" = yes; then
10173    need_lib_prefix=no
10174  fi
10175  need_version=yes
10176  ;;
10177
10178sysv4 | sysv4.3*)
10179  version_type=linux
10180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181  soname_spec='${libname}${release}${shared_ext}$major'
10182  shlibpath_var=LD_LIBRARY_PATH
10183  case $host_vendor in
10184    sni)
10185      shlibpath_overrides_runpath=no
10186      need_lib_prefix=no
10187      export_dynamic_flag_spec='${wl}-Blargedynsym'
10188      runpath_var=LD_RUN_PATH
10189      ;;
10190    siemens)
10191      need_lib_prefix=no
10192      ;;
10193    motorola)
10194      need_lib_prefix=no
10195      need_version=no
10196      shlibpath_overrides_runpath=no
10197      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10198      ;;
10199  esac
10200  ;;
10201
10202sysv4*MP*)
10203  if test -d /usr/nec ;then
10204    version_type=linux
10205    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10206    soname_spec='$libname${shared_ext}.$major'
10207    shlibpath_var=LD_LIBRARY_PATH
10208  fi
10209  ;;
10210
10211sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10212  version_type=freebsd-elf
10213  need_lib_prefix=no
10214  need_version=no
10215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10216  soname_spec='${libname}${release}${shared_ext}$major'
10217  shlibpath_var=LD_LIBRARY_PATH
10218  hardcode_into_libs=yes
10219  if test "$with_gnu_ld" = yes; then
10220    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10221    shlibpath_overrides_runpath=no
10222  else
10223    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10224    shlibpath_overrides_runpath=yes
10225    case $host_os in
10226      sco3.2v5*)
10227        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10228        ;;
10229    esac
10230  fi
10231  sys_lib_dlsearch_path_spec='/usr/lib'
10232  ;;
10233
10234uts4*)
10235  version_type=linux
10236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237  soname_spec='${libname}${release}${shared_ext}$major'
10238  shlibpath_var=LD_LIBRARY_PATH
10239  ;;
10240
10241*)
10242  dynamic_linker=no
10243  ;;
10244esac
10245echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10246echo "${ECHO_T}$dynamic_linker" >&6
10247test "$dynamic_linker" = no && can_build_shared=no
10248
10249variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10250if test "$GCC" = yes; then
10251  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10252fi
10253
10254echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10255echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10256hardcode_action=
10257if test -n "$hardcode_libdir_flag_spec" || \
10258   test -n "$runpath_var" || \
10259   test "X$hardcode_automatic" = "Xyes" ; then
10260
10261  # We can hardcode non-existant directories.
10262  if test "$hardcode_direct" != no &&
10263     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10264     # have to relink, otherwise we might link with an installed library
10265     # when we should be linking with a yet-to-be-installed one
10266     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10267     test "$hardcode_minus_L" != no; then
10268    # Linking always hardcodes the temporary library directory.
10269    hardcode_action=relink
10270  else
10271    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10272    hardcode_action=immediate
10273  fi
10274else
10275  # We cannot hardcode anything, or else we can only hardcode existing
10276  # directories.
10277  hardcode_action=unsupported
10278fi
10279echo "$as_me:$LINENO: result: $hardcode_action" >&5
10280echo "${ECHO_T}$hardcode_action" >&6
10281
10282if test "$hardcode_action" = relink; then
10283  # Fast installation is not supported
10284  enable_fast_install=no
10285elif test "$shlibpath_overrides_runpath" = yes ||
10286     test "$enable_shared" = no; then
10287  # Fast installation is not necessary
10288  enable_fast_install=needless
10289fi
10290
10291striplib=
10292old_striplib=
10293echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10294echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10295if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10296  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10297  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10298  echo "$as_me:$LINENO: result: yes" >&5
10299echo "${ECHO_T}yes" >&6
10300else
10301# FIXME - insert some real tests, host_os isn't really good enough
10302  case $host_os in
10303   darwin*)
10304       if test -n "$STRIP" ; then
10305         striplib="$STRIP -x"
10306         echo "$as_me:$LINENO: result: yes" >&5
10307echo "${ECHO_T}yes" >&6
10308       else
10309  echo "$as_me:$LINENO: result: no" >&5
10310echo "${ECHO_T}no" >&6
10311fi
10312       ;;
10313   *)
10314  echo "$as_me:$LINENO: result: no" >&5
10315echo "${ECHO_T}no" >&6
10316    ;;
10317  esac
10318fi
10319
10320if test "x$enable_dlopen" != xyes; then
10321  enable_dlopen=unknown
10322  enable_dlopen_self=unknown
10323  enable_dlopen_self_static=unknown
10324else
10325  lt_cv_dlopen=no
10326  lt_cv_dlopen_libs=
10327
10328  case $host_os in
10329  beos*)
10330    lt_cv_dlopen="load_add_on"
10331    lt_cv_dlopen_libs=
10332    lt_cv_dlopen_self=yes
10333    ;;
10334
10335  mingw* | pw32*)
10336    lt_cv_dlopen="LoadLibrary"
10337    lt_cv_dlopen_libs=
10338   ;;
10339
10340  cygwin*)
10341    lt_cv_dlopen="dlopen"
10342    lt_cv_dlopen_libs=
10343   ;;
10344
10345  darwin*)
10346  # if libdl is installed we need to link against it
10347    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10348echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10349if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10350  echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
10352  ac_check_lib_save_LIBS=$LIBS
10353LIBS="-ldl  $LIBS"
10354cat >conftest.$ac_ext <<_ACEOF
10355/* confdefs.h.  */
10356_ACEOF
10357cat confdefs.h >>conftest.$ac_ext
10358cat >>conftest.$ac_ext <<_ACEOF
10359/* end confdefs.h.  */
10360
10361/* Override any gcc2 internal prototype to avoid an error.  */
10362#ifdef __cplusplus
10363extern "C"
10364#endif
10365/* We use char because int might match the return type of a gcc2
10366   builtin and then its argument prototype would still apply.  */
10367char dlopen ();
10368int
10369main ()
10370{
10371dlopen ();
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376rm -f conftest.$ac_objext conftest$ac_exeext
10377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10378  (eval $ac_link) 2>conftest.er1
10379  ac_status=$?
10380  grep -v '^ *+' conftest.er1 >conftest.err
10381  rm -f conftest.er1
10382  cat conftest.err >&5
10383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384  (exit $ac_status); } &&
10385         { ac_try='test -z "$ac_c_werror_flag"
10386                         || test ! -s conftest.err'
10387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388  (eval $ac_try) 2>&5
10389  ac_status=$?
10390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391  (exit $ac_status); }; } &&
10392         { ac_try='test -s conftest$ac_exeext'
10393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394  (eval $ac_try) 2>&5
10395  ac_status=$?
10396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397  (exit $ac_status); }; }; then
10398  ac_cv_lib_dl_dlopen=yes
10399else
10400  echo "$as_me: failed program was:" >&5
10401sed 's/^/| /' conftest.$ac_ext >&5
10402
10403ac_cv_lib_dl_dlopen=no
10404fi
10405rm -f conftest.err conftest.$ac_objext \
10406      conftest$ac_exeext conftest.$ac_ext
10407LIBS=$ac_check_lib_save_LIBS
10408fi
10409echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10410echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10411if test $ac_cv_lib_dl_dlopen = yes; then
10412  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10413else
10414
10415    lt_cv_dlopen="dyld"
10416    lt_cv_dlopen_libs=
10417    lt_cv_dlopen_self=yes
10418
10419fi
10420
10421   ;;
10422
10423  *)
10424    echo "$as_me:$LINENO: checking for shl_load" >&5
10425echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10426if test "${ac_cv_func_shl_load+set}" = set; then
10427  echo $ECHO_N "(cached) $ECHO_C" >&6
10428else
10429  cat >conftest.$ac_ext <<_ACEOF
10430/* confdefs.h.  */
10431_ACEOF
10432cat confdefs.h >>conftest.$ac_ext
10433cat >>conftest.$ac_ext <<_ACEOF
10434/* end confdefs.h.  */
10435/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10436   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10437#define shl_load innocuous_shl_load
10438
10439/* System header to define __stub macros and hopefully few prototypes,
10440    which can conflict with char shl_load (); below.
10441    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10442    <limits.h> exists even on freestanding compilers.  */
10443
10444#ifdef __STDC__
10445# include <limits.h>
10446#else
10447# include <assert.h>
10448#endif
10449
10450#undef shl_load
10451
10452/* Override any gcc2 internal prototype to avoid an error.  */
10453#ifdef __cplusplus
10454extern "C"
10455{
10456#endif
10457/* We use char because int might match the return type of a gcc2
10458   builtin and then its argument prototype would still apply.  */
10459char shl_load ();
10460/* The GNU C library defines this for functions which it implements
10461    to always fail with ENOSYS.  Some functions are actually named
10462    something starting with __ and the normal name is an alias.  */
10463#if defined (__stub_shl_load) || defined (__stub___shl_load)
10464choke me
10465#else
10466char (*f) () = shl_load;
10467#endif
10468#ifdef __cplusplus
10469}
10470#endif
10471
10472int
10473main ()
10474{
10475return f != shl_load;
10476  ;
10477  return 0;
10478}
10479_ACEOF
10480rm -f conftest.$ac_objext conftest$ac_exeext
10481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482  (eval $ac_link) 2>conftest.er1
10483  ac_status=$?
10484  grep -v '^ *+' conftest.er1 >conftest.err
10485  rm -f conftest.er1
10486  cat conftest.err >&5
10487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488  (exit $ac_status); } &&
10489         { ac_try='test -z "$ac_c_werror_flag"
10490                         || test ! -s conftest.err'
10491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492  (eval $ac_try) 2>&5
10493  ac_status=$?
10494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495  (exit $ac_status); }; } &&
10496         { ac_try='test -s conftest$ac_exeext'
10497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498  (eval $ac_try) 2>&5
10499  ac_status=$?
10500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501  (exit $ac_status); }; }; then
10502  ac_cv_func_shl_load=yes
10503else
10504  echo "$as_me: failed program was:" >&5
10505sed 's/^/| /' conftest.$ac_ext >&5
10506
10507ac_cv_func_shl_load=no
10508fi
10509rm -f conftest.err conftest.$ac_objext \
10510      conftest$ac_exeext conftest.$ac_ext
10511fi
10512echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10513echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10514if test $ac_cv_func_shl_load = yes; then
10515  lt_cv_dlopen="shl_load"
10516else
10517  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10518echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10519if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10520  echo $ECHO_N "(cached) $ECHO_C" >&6
10521else
10522  ac_check_lib_save_LIBS=$LIBS
10523LIBS="-ldld  $LIBS"
10524cat >conftest.$ac_ext <<_ACEOF
10525/* confdefs.h.  */
10526_ACEOF
10527cat confdefs.h >>conftest.$ac_ext
10528cat >>conftest.$ac_ext <<_ACEOF
10529/* end confdefs.h.  */
10530
10531/* Override any gcc2 internal prototype to avoid an error.  */
10532#ifdef __cplusplus
10533extern "C"
10534#endif
10535/* We use char because int might match the return type of a gcc2
10536   builtin and then its argument prototype would still apply.  */
10537char shl_load ();
10538int
10539main ()
10540{
10541shl_load ();
10542  ;
10543  return 0;
10544}
10545_ACEOF
10546rm -f conftest.$ac_objext conftest$ac_exeext
10547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10548  (eval $ac_link) 2>conftest.er1
10549  ac_status=$?
10550  grep -v '^ *+' conftest.er1 >conftest.err
10551  rm -f conftest.er1
10552  cat conftest.err >&5
10553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554  (exit $ac_status); } &&
10555         { ac_try='test -z "$ac_c_werror_flag"
10556                         || test ! -s conftest.err'
10557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558  (eval $ac_try) 2>&5
10559  ac_status=$?
10560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561  (exit $ac_status); }; } &&
10562         { ac_try='test -s conftest$ac_exeext'
10563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564  (eval $ac_try) 2>&5
10565  ac_status=$?
10566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567  (exit $ac_status); }; }; then
10568  ac_cv_lib_dld_shl_load=yes
10569else
10570  echo "$as_me: failed program was:" >&5
10571sed 's/^/| /' conftest.$ac_ext >&5
10572
10573ac_cv_lib_dld_shl_load=no
10574fi
10575rm -f conftest.err conftest.$ac_objext \
10576      conftest$ac_exeext conftest.$ac_ext
10577LIBS=$ac_check_lib_save_LIBS
10578fi
10579echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10580echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10581if test $ac_cv_lib_dld_shl_load = yes; then
10582  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10583else
10584  echo "$as_me:$LINENO: checking for dlopen" >&5
10585echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10586if test "${ac_cv_func_dlopen+set}" = set; then
10587  echo $ECHO_N "(cached) $ECHO_C" >&6
10588else
10589  cat >conftest.$ac_ext <<_ACEOF
10590/* confdefs.h.  */
10591_ACEOF
10592cat confdefs.h >>conftest.$ac_ext
10593cat >>conftest.$ac_ext <<_ACEOF
10594/* end confdefs.h.  */
10595/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10596   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10597#define dlopen innocuous_dlopen
10598
10599/* System header to define __stub macros and hopefully few prototypes,
10600    which can conflict with char dlopen (); below.
10601    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10602    <limits.h> exists even on freestanding compilers.  */
10603
10604#ifdef __STDC__
10605# include <limits.h>
10606#else
10607# include <assert.h>
10608#endif
10609
10610#undef dlopen
10611
10612/* Override any gcc2 internal prototype to avoid an error.  */
10613#ifdef __cplusplus
10614extern "C"
10615{
10616#endif
10617/* We use char because int might match the return type of a gcc2
10618   builtin and then its argument prototype would still apply.  */
10619char dlopen ();
10620/* The GNU C library defines this for functions which it implements
10621    to always fail with ENOSYS.  Some functions are actually named
10622    something starting with __ and the normal name is an alias.  */
10623#if defined (__stub_dlopen) || defined (__stub___dlopen)
10624choke me
10625#else
10626char (*f) () = dlopen;
10627#endif
10628#ifdef __cplusplus
10629}
10630#endif
10631
10632int
10633main ()
10634{
10635return f != dlopen;
10636  ;
10637  return 0;
10638}
10639_ACEOF
10640rm -f conftest.$ac_objext conftest$ac_exeext
10641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642  (eval $ac_link) 2>conftest.er1
10643  ac_status=$?
10644  grep -v '^ *+' conftest.er1 >conftest.err
10645  rm -f conftest.er1
10646  cat conftest.err >&5
10647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648  (exit $ac_status); } &&
10649         { ac_try='test -z "$ac_c_werror_flag"
10650                         || test ! -s conftest.err'
10651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652  (eval $ac_try) 2>&5
10653  ac_status=$?
10654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655  (exit $ac_status); }; } &&
10656         { ac_try='test -s conftest$ac_exeext'
10657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658  (eval $ac_try) 2>&5
10659  ac_status=$?
10660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661  (exit $ac_status); }; }; then
10662  ac_cv_func_dlopen=yes
10663else
10664  echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667ac_cv_func_dlopen=no
10668fi
10669rm -f conftest.err conftest.$ac_objext \
10670      conftest$ac_exeext conftest.$ac_ext
10671fi
10672echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10673echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10674if test $ac_cv_func_dlopen = yes; then
10675  lt_cv_dlopen="dlopen"
10676else
10677  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10678echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10679if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10680  echo $ECHO_N "(cached) $ECHO_C" >&6
10681else
10682  ac_check_lib_save_LIBS=$LIBS
10683LIBS="-ldl  $LIBS"
10684cat >conftest.$ac_ext <<_ACEOF
10685/* confdefs.h.  */
10686_ACEOF
10687cat confdefs.h >>conftest.$ac_ext
10688cat >>conftest.$ac_ext <<_ACEOF
10689/* end confdefs.h.  */
10690
10691/* Override any gcc2 internal prototype to avoid an error.  */
10692#ifdef __cplusplus
10693extern "C"
10694#endif
10695/* We use char because int might match the return type of a gcc2
10696   builtin and then its argument prototype would still apply.  */
10697char dlopen ();
10698int
10699main ()
10700{
10701dlopen ();
10702  ;
10703  return 0;
10704}
10705_ACEOF
10706rm -f conftest.$ac_objext conftest$ac_exeext
10707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708  (eval $ac_link) 2>conftest.er1
10709  ac_status=$?
10710  grep -v '^ *+' conftest.er1 >conftest.err
10711  rm -f conftest.er1
10712  cat conftest.err >&5
10713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714  (exit $ac_status); } &&
10715         { ac_try='test -z "$ac_c_werror_flag"
10716                         || test ! -s conftest.err'
10717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718  (eval $ac_try) 2>&5
10719  ac_status=$?
10720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721  (exit $ac_status); }; } &&
10722         { ac_try='test -s conftest$ac_exeext'
10723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724  (eval $ac_try) 2>&5
10725  ac_status=$?
10726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727  (exit $ac_status); }; }; then
10728  ac_cv_lib_dl_dlopen=yes
10729else
10730  echo "$as_me: failed program was:" >&5
10731sed 's/^/| /' conftest.$ac_ext >&5
10732
10733ac_cv_lib_dl_dlopen=no
10734fi
10735rm -f conftest.err conftest.$ac_objext \
10736      conftest$ac_exeext conftest.$ac_ext
10737LIBS=$ac_check_lib_save_LIBS
10738fi
10739echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10740echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10741if test $ac_cv_lib_dl_dlopen = yes; then
10742  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10743else
10744  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10745</