source: stable/BSPsplit/Cbc/configure @ 1201

Last change on this file since 1201 was 1201, checked in by stefan, 11 years ago

have the build system pick up data/sample and data/miplib3 from user given locations

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