source: stable/BSPsplit/Cbc/configure @ 1182

Last change on this file since 1182 was 1182, checked in by andreasw, 10 years ago

added --with-proj* configure options

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