source: stable/2.5/Cbc/configure @ 1510

Last change on this file since 1510 was 1479, checked in by lou, 9 years ago

restoring Cbc/stable/2.5

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