source: stable/BSPsplit/configure @ 1190

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

use BSPsplit to test build of Cbc with userspecified location of depending coin packages

  • Property svn:executable set to *
File size: 790.7 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Cbc 2.3stable.
5#
6# Report bugs to <coin-cbc@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Common Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Cbc'
432PACKAGE_TARNAME='cbc'
433PACKAGE_VERSION='2.3stable'
434PACKAGE_STRING='Cbc 2.3stable'
435PACKAGE_BUGREPORT='coin-cbc@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
480ac_subdirs_all="$ac_subdirs_all CoinUtils"
481ac_subdirs_all="$ac_subdirs_all Data/Netlib"
482ac_subdirs_all="$ac_subdirs_all Data/Sample"
483ac_subdirs_all="$ac_subdirs_all Data/miplib3"
484ac_subdirs_all="$ac_subdirs_all Clp"
485ac_subdirs_all="$ac_subdirs_all DyLP"
486ac_subdirs_all="$ac_subdirs_all Vol"
487ac_subdirs_all="$ac_subdirs_all Osi"
488ac_subdirs_all="$ac_subdirs_all Cgl"
489ac_subdirs_all="$ac_subdirs_all Cbc"
490ac_subdirs_all="$ac_subdirs_all SYMPHONY"
491ac_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 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 ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 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 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS subdirs COIN_SKIP_PROJECTS COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COINUTILSINSTDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE COIN_HAS_COINUTILS_PREINSTALLED_TRUE COIN_HAS_COINUTILS_PREINSTALLED_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR CLPINSTDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COIN_HAS_CLP_PREINSTALLED_TRUE COIN_HAS_CLP_PREINSTALLED_FALSE DYLPSRCDIR DYLPOBJDIR DYLPDOCDIR DYLPINSTDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE COIN_HAS_DYLP_PREINSTALLED_TRUE COIN_HAS_DYLP_PREINSTALLED_FALSE VOLSRCDIR VOLOBJDIR VOLDOCDIR VOLINSTDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE COIN_HAS_VOL_PREINSTALLED_TRUE COIN_HAS_VOL_PREINSTALLED_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR OSIINSTDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE COIN_HAS_OSI_PREINSTALLED_TRUE COIN_HAS_OSI_PREINSTALLED_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR CGLINSTDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COIN_HAS_CGL_PREINSTALLED_TRUE COIN_HAS_CGL_PREINSTALLED_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR CBCINSTDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE COIN_HAS_CBC_PREINSTALLED_TRUE COIN_HAS_CBC_PREINSTALLED_FALSE SYMPHONYSRCDIR SYMPHONYOBJDIR SYMPHONYDOCDIR SYMPHONYINSTDIR COIN_HAS_SYMPHONY_TRUE COIN_HAS_SYMPHONY_FALSE COIN_HAS_SYMPHONY_PREINSTALLED_TRUE COIN_HAS_SYMPHONY_PREINSTALLED_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
492ac_subst_files=''
493
494# Initialize some variables set by options.
495ac_init_help=
496ac_init_version=false
497# The variables have the same names as the options, with
498# dashes changed to underlines.
499cache_file=/dev/null
500exec_prefix=NONE
501no_create=
502no_recursion=
503prefix=NONE
504program_prefix=NONE
505program_suffix=NONE
506program_transform_name=s,x,x,
507silent=
508site=
509srcdir=
510verbose=
511x_includes=NONE
512x_libraries=NONE
513
514# Installation directory options.
515# These are left unexpanded so users can "make install exec_prefix=/foo"
516# and all the variables that are supposed to be based on exec_prefix
517# by default will actually change.
518# Use braces instead of parens because sh, perl, etc. also accept them.
519bindir='${exec_prefix}/bin'
520sbindir='${exec_prefix}/sbin'
521libexecdir='${exec_prefix}/libexec'
522datadir='${prefix}/share'
523sysconfdir='${prefix}/etc'
524sharedstatedir='${prefix}/com'
525localstatedir='${prefix}/var'
526libdir='${exec_prefix}/lib'
527includedir='${prefix}/include'
528oldincludedir='/usr/include'
529infodir='${prefix}/info'
530mandir='${prefix}/man'
531
532ac_prev=
533for ac_option
534do
535  # If the previous option needs an argument, assign it.
536  if test -n "$ac_prev"; then
537    eval "$ac_prev=\$ac_option"
538    ac_prev=
539    continue
540  fi
541
542  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
543
544  # Accept the important Cygnus configure options, so we can diagnose typos.
545
546  case $ac_option in
547
548  -bindir | --bindir | --bindi | --bind | --bin | --bi)
549    ac_prev=bindir ;;
550  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
551    bindir=$ac_optarg ;;
552
553  -build | --build | --buil | --bui | --bu)
554    ac_prev=build_alias ;;
555  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
556    build_alias=$ac_optarg ;;
557
558  -cache-file | --cache-file | --cache-fil | --cache-fi \
559  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
560    ac_prev=cache_file ;;
561  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
562  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
563    cache_file=$ac_optarg ;;
564
565  --config-cache | -C)
566    cache_file=config.cache ;;
567
568  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
569    ac_prev=datadir ;;
570  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
571  | --da=*)
572    datadir=$ac_optarg ;;
573
574  -disable-* | --disable-*)
575    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
576    # Reject names that are not valid shell variable names.
577    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
578      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
579   { (exit 1); exit 1; }; }
580    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
581    eval "enable_$ac_feature=no" ;;
582
583  -enable-* | --enable-*)
584    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
585    # Reject names that are not valid shell variable names.
586    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
588   { (exit 1); exit 1; }; }
589    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
590    case $ac_option in
591      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
592      *) ac_optarg=yes ;;
593    esac
594    eval "enable_$ac_feature='$ac_optarg'" ;;
595
596  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
597  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
598  | --exec | --exe | --ex)
599    ac_prev=exec_prefix ;;
600  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
601  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
602  | --exec=* | --exe=* | --ex=*)
603    exec_prefix=$ac_optarg ;;
604
605  -gas | --gas | --ga | --g)
606    # Obsolete; use --with-gas.
607    with_gas=yes ;;
608
609  -help | --help | --hel | --he | -h)
610    ac_init_help=long ;;
611  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
612    ac_init_help=recursive ;;
613  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
614    ac_init_help=short ;;
615
616  -host | --host | --hos | --ho)
617    ac_prev=host_alias ;;
618  -host=* | --host=* | --hos=* | --ho=*)
619    host_alias=$ac_optarg ;;
620
621  -includedir | --includedir | --includedi | --included | --include \
622  | --includ | --inclu | --incl | --inc)
623    ac_prev=includedir ;;
624  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
625  | --includ=* | --inclu=* | --incl=* | --inc=*)
626    includedir=$ac_optarg ;;
627
628  -infodir | --infodir | --infodi | --infod | --info | --inf)
629    ac_prev=infodir ;;
630  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
631    infodir=$ac_optarg ;;
632
633  -libdir | --libdir | --libdi | --libd)
634    ac_prev=libdir ;;
635  -libdir=* | --libdir=* | --libdi=* | --libd=*)
636    libdir=$ac_optarg ;;
637
638  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
639  | --libexe | --libex | --libe)
640    ac_prev=libexecdir ;;
641  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
642  | --libexe=* | --libex=* | --libe=*)
643    libexecdir=$ac_optarg ;;
644
645  -localstatedir | --localstatedir | --localstatedi | --localstated \
646  | --localstate | --localstat | --localsta | --localst \
647  | --locals | --local | --loca | --loc | --lo)
648    ac_prev=localstatedir ;;
649  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
650  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
651  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
652    localstatedir=$ac_optarg ;;
653
654  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
655    ac_prev=mandir ;;
656  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
657    mandir=$ac_optarg ;;
658
659  -nfp | --nfp | --nf)
660    # Obsolete; use --without-fp.
661    with_fp=no ;;
662
663  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
664  | --no-cr | --no-c | -n)
665    no_create=yes ;;
666
667  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
668  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
669    no_recursion=yes ;;
670
671  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
672  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
673  | --oldin | --oldi | --old | --ol | --o)
674    ac_prev=oldincludedir ;;
675  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
676  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
677  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
678    oldincludedir=$ac_optarg ;;
679
680  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
681    ac_prev=prefix ;;
682  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
683    prefix=$ac_optarg ;;
684
685  -program-prefix | --program-prefix | --program-prefi | --program-pref \
686  | --program-pre | --program-pr | --program-p)
687    ac_prev=program_prefix ;;
688  -program-prefix=* | --program-prefix=* | --program-prefi=* \
689  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
690    program_prefix=$ac_optarg ;;
691
692  -program-suffix | --program-suffix | --program-suffi | --program-suff \
693  | --program-suf | --program-su | --program-s)
694    ac_prev=program_suffix ;;
695  -program-suffix=* | --program-suffix=* | --program-suffi=* \
696  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
697    program_suffix=$ac_optarg ;;
698
699  -program-transform-name | --program-transform-name \
700  | --program-transform-nam | --program-transform-na \
701  | --program-transform-n | --program-transform- \
702  | --program-transform | --program-transfor \
703  | --program-transfo | --program-transf \
704  | --program-trans | --program-tran \
705  | --progr-tra | --program-tr | --program-t)
706    ac_prev=program_transform_name ;;
707  -program-transform-name=* | --program-transform-name=* \
708  | --program-transform-nam=* | --program-transform-na=* \
709  | --program-transform-n=* | --program-transform-=* \
710  | --program-transform=* | --program-transfor=* \
711  | --program-transfo=* | --program-transf=* \
712  | --program-trans=* | --program-tran=* \
713  | --progr-tra=* | --program-tr=* | --program-t=*)
714    program_transform_name=$ac_optarg ;;
715
716  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
717  | -silent | --silent | --silen | --sile | --sil)
718    silent=yes ;;
719
720  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
721    ac_prev=sbindir ;;
722  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
723  | --sbi=* | --sb=*)
724    sbindir=$ac_optarg ;;
725
726  -sharedstatedir | --sharedstatedir | --sharedstatedi \
727  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
728  | --sharedst | --shareds | --shared | --share | --shar \
729  | --sha | --sh)
730    ac_prev=sharedstatedir ;;
731  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
732  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
733  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
734  | --sha=* | --sh=*)
735    sharedstatedir=$ac_optarg ;;
736
737  -site | --site | --sit)
738    ac_prev=site ;;
739  -site=* | --site=* | --sit=*)
740    site=$ac_optarg ;;
741
742  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
743    ac_prev=srcdir ;;
744  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
745    srcdir=$ac_optarg ;;
746
747  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
748  | --syscon | --sysco | --sysc | --sys | --sy)
749    ac_prev=sysconfdir ;;
750  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
751  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
752    sysconfdir=$ac_optarg ;;
753
754  -target | --target | --targe | --targ | --tar | --ta | --t)
755    ac_prev=target_alias ;;
756  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
757    target_alias=$ac_optarg ;;
758
759  -v | -verbose | --verbose | --verbos | --verbo | --verb)
760    verbose=yes ;;
761
762  -version | --version | --versio | --versi | --vers | -V)
763    ac_init_version=: ;;
764
765  -with-* | --with-*)
766    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
767    # Reject names that are not valid shell variable names.
768    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
769      { echo "$as_me: error: invalid package name: $ac_package" >&2
770   { (exit 1); exit 1; }; }
771    ac_package=`echo $ac_package| sed 's/-/_/g'`
772    case $ac_option in
773      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
774      *) ac_optarg=yes ;;
775    esac
776    eval "with_$ac_package='$ac_optarg'" ;;
777
778  -without-* | --without-*)
779    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
780    # Reject names that are not valid shell variable names.
781    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
782      { echo "$as_me: error: invalid package name: $ac_package" >&2
783   { (exit 1); exit 1; }; }
784    ac_package=`echo $ac_package | sed 's/-/_/g'`
785    eval "with_$ac_package=no" ;;
786
787  --x)
788    # Obsolete; use --with-x.
789    with_x=yes ;;
790
791  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
792  | --x-incl | --x-inc | --x-in | --x-i)
793    ac_prev=x_includes ;;
794  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
795  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
796    x_includes=$ac_optarg ;;
797
798  -x-libraries | --x-libraries | --x-librarie | --x-librari \
799  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
800    ac_prev=x_libraries ;;
801  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
802  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
803    x_libraries=$ac_optarg ;;
804
805  -*) { echo "$as_me: error: unrecognized option: $ac_option
806Try \`$0 --help' for more information." >&2
807   { (exit 1); exit 1; }; }
808    ;;
809
810  *=*)
811    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
812    # Reject names that are not valid shell variable names.
813    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
814      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
815   { (exit 1); exit 1; }; }
816    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
817    eval "$ac_envvar='$ac_optarg'"
818    export $ac_envvar ;;
819
820  *)
821    # FIXME: should be removed in autoconf 3.0.
822    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
823    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
824      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
825    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
826    ;;
827
828  esac
829done
830
831if test -n "$ac_prev"; then
832  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
833  { echo "$as_me: error: missing argument to $ac_option" >&2
834   { (exit 1); exit 1; }; }
835fi
836
837# Be sure to have absolute paths.
838for ac_var in exec_prefix prefix
839do
840  eval ac_val=$`echo $ac_var`
841  case $ac_val in
842    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
843    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844   { (exit 1); exit 1; }; };;
845  esac
846done
847
848# Be sure to have absolute paths.
849for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
850              localstatedir libdir includedir oldincludedir infodir mandir
851do
852  eval ac_val=$`echo $ac_var`
853  case $ac_val in
854    [\\/$]* | ?:[\\/]* ) ;;
855    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
856   { (exit 1); exit 1; }; };;
857  esac
858done
859
860# There might be people who depend on the old broken behavior: `$host'
861# used to hold the argument of --host etc.
862# FIXME: To remove some day.
863build=$build_alias
864host=$host_alias
865target=$target_alias
866
867# FIXME: To remove some day.
868if test "x$host_alias" != x; then
869  if test "x$build_alias" = x; then
870    cross_compiling=maybe
871    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
872    If a cross compiler is detected then cross compile mode will be used." >&2
873  elif test "x$build_alias" != "x$host_alias"; then
874    cross_compiling=yes
875  fi
876fi
877
878ac_tool_prefix=
879test -n "$host_alias" && ac_tool_prefix=$host_alias-
880
881test "$silent" = yes && exec 6>/dev/null
882
883
884# Find the source files, if location was not specified.
885if test -z "$srcdir"; then
886  ac_srcdir_defaulted=yes
887  # Try the directory containing this script, then its parent.
888  ac_confdir=`(dirname "$0") 2>/dev/null ||
889$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
890         X"$0" : 'X\(//\)[^/]' \| \
891         X"$0" : 'X\(//\)$' \| \
892         X"$0" : 'X\(/\)' \| \
893         .     : '\(.\)' 2>/dev/null ||
894echo X"$0" |
895    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
896          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
897          /^X\(\/\/\)$/{ s//\1/; q; }
898          /^X\(\/\).*/{ s//\1/; q; }
899          s/.*/./; q'`
900  srcdir=$ac_confdir
901  if test ! -r $srcdir/$ac_unique_file; then
902    srcdir=..
903  fi
904else
905  ac_srcdir_defaulted=no
906fi
907if test ! -r $srcdir/$ac_unique_file; then
908  if test "$ac_srcdir_defaulted" = yes; then
909    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
910   { (exit 1); exit 1; }; }
911  else
912    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
913   { (exit 1); exit 1; }; }
914  fi
915fi
916(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
917  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
918   { (exit 1); exit 1; }; }
919srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
920ac_env_build_alias_set=${build_alias+set}
921ac_env_build_alias_value=$build_alias
922ac_cv_env_build_alias_set=${build_alias+set}
923ac_cv_env_build_alias_value=$build_alias
924ac_env_host_alias_set=${host_alias+set}
925ac_env_host_alias_value=$host_alias
926ac_cv_env_host_alias_set=${host_alias+set}
927ac_cv_env_host_alias_value=$host_alias
928ac_env_target_alias_set=${target_alias+set}
929ac_env_target_alias_value=$target_alias
930ac_cv_env_target_alias_set=${target_alias+set}
931ac_cv_env_target_alias_value=$target_alias
932ac_env_CDEFS_set=${CDEFS+set}
933ac_env_CDEFS_value=$CDEFS
934ac_cv_env_CDEFS_set=${CDEFS+set}
935ac_cv_env_CDEFS_value=$CDEFS
936ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
937ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
938ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
939ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
940ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
941ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
942ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
943ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
944ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
945ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
946ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
947ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
948ac_env_CC_set=${CC+set}
949ac_env_CC_value=$CC
950ac_cv_env_CC_set=${CC+set}
951ac_cv_env_CC_value=$CC
952ac_env_CFLAGS_set=${CFLAGS+set}
953ac_env_CFLAGS_value=$CFLAGS
954ac_cv_env_CFLAGS_set=${CFLAGS+set}
955ac_cv_env_CFLAGS_value=$CFLAGS
956ac_env_LDFLAGS_set=${LDFLAGS+set}
957ac_env_LDFLAGS_value=$LDFLAGS
958ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
959ac_cv_env_LDFLAGS_value=$LDFLAGS
960ac_env_CPPFLAGS_set=${CPPFLAGS+set}
961ac_env_CPPFLAGS_value=$CPPFLAGS
962ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
963ac_cv_env_CPPFLAGS_value=$CPPFLAGS
964ac_env_MPICC_set=${MPICC+set}
965ac_env_MPICC_value=$MPICC
966ac_cv_env_MPICC_set=${MPICC+set}
967ac_cv_env_MPICC_value=$MPICC
968ac_env_CXXDEFS_set=${CXXDEFS+set}
969ac_env_CXXDEFS_value=$CXXDEFS
970ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
971ac_cv_env_CXXDEFS_value=$CXXDEFS
972ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
973ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
974ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
975ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
976ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
977ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
978ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
979ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
980ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
981ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
982ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
983ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_MPICXX_set=${MPICXX+set}
993ac_env_MPICXX_value=$MPICXX
994ac_cv_env_MPICXX_set=${MPICXX+set}
995ac_cv_env_MPICXX_value=$MPICXX
996ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
997ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
998ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
999ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1000ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1001ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1002ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1003ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1004ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1005ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1006ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1007ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1008ac_env_F77_set=${F77+set}
1009ac_env_F77_value=$F77
1010ac_cv_env_F77_set=${F77+set}
1011ac_cv_env_F77_value=$F77
1012ac_env_FFLAGS_set=${FFLAGS+set}
1013ac_env_FFLAGS_value=$FFLAGS
1014ac_cv_env_FFLAGS_set=${FFLAGS+set}
1015ac_cv_env_FFLAGS_value=$FFLAGS
1016ac_env_MPIF77_set=${MPIF77+set}
1017ac_env_MPIF77_value=$MPIF77
1018ac_cv_env_MPIF77_set=${MPIF77+set}
1019ac_cv_env_MPIF77_value=$MPIF77
1020ac_env_CPP_set=${CPP+set}
1021ac_env_CPP_value=$CPP
1022ac_cv_env_CPP_set=${CPP+set}
1023ac_cv_env_CPP_value=$CPP
1024ac_env_CXXCPP_set=${CXXCPP+set}
1025ac_env_CXXCPP_value=$CXXCPP
1026ac_cv_env_CXXCPP_set=${CXXCPP+set}
1027ac_cv_env_CXXCPP_value=$CXXCPP
1028ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1029ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1030ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1031ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1032
1033#
1034# Report the --help message.
1035#
1036if test "$ac_init_help" = "long"; then
1037  # Omit some internal or obsolete options to make the list less imposing.
1038  # This message is too long to be a string in the A/UX 3.1 sh.
1039  cat <<_ACEOF
1040\`configure' configures Cbc 2.3stable to adapt to many kinds of systems.
1041
1042Usage: $0 [OPTION]... [VAR=VALUE]...
1043
1044To assign environment variables (e.g., CC, CFLAGS...), specify them as
1045VAR=VALUE.  See below for descriptions of some of the useful variables.
1046
1047Defaults for the options are specified in brackets.
1048
1049Configuration:
1050  -h, --help              display this help and exit
1051      --help=short        display options specific to this package
1052      --help=recursive    display the short help of all the included packages
1053  -V, --version           display version information and exit
1054  -q, --quiet, --silent   do not print \`checking...' messages
1055      --cache-file=FILE   cache test results in FILE [disabled]
1056  -C, --config-cache      alias for \`--cache-file=config.cache'
1057  -n, --no-create         do not create output files
1058      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1059
1060_ACEOF
1061
1062  cat <<_ACEOF
1063Installation directories:
1064  --prefix=PREFIX         install architecture-independent files in PREFIX
1065                          [$ac_default_prefix]
1066  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1067                          [PREFIX]
1068
1069By default, \`make install' will install all the files in
1070\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1071an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1072for instance \`--prefix=\$HOME'.
1073
1074For better control, use the options below.
1075
1076Fine tuning of the installation directories:
1077  --bindir=DIR           user executables [EPREFIX/bin]
1078  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1079  --libexecdir=DIR       program executables [EPREFIX/libexec]
1080  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1081  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1082  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1083  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1084  --libdir=DIR           object code libraries [EPREFIX/lib]
1085  --includedir=DIR       C header files [PREFIX/include]
1086  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1087  --infodir=DIR          info documentation [PREFIX/info]
1088  --mandir=DIR           man documentation [PREFIX/man]
1089_ACEOF
1090
1091  cat <<\_ACEOF
1092
1093Program names:
1094  --program-prefix=PREFIX            prepend PREFIX to installed program names
1095  --program-suffix=SUFFIX            append SUFFIX to installed program names
1096  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1097
1098System types:
1099  --build=BUILD     configure for building on BUILD [guessed]
1100  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1101_ACEOF
1102fi
1103
1104if test -n "$ac_init_help"; then
1105  case $ac_init_help in
1106     short | recursive ) echo "Configuration of Cbc 2.3stable:";;
1107   esac
1108  cat <<\_ACEOF
1109
1110Optional Features:
1111  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1112  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1113  --enable-debug          compile all projects with debug options tests
1114  --enable-doscompile     Under Cygwin, compile so that executables run under
1115                          DOS. Set to mingw to use gcc/g++/ld with
1116                          -mno-cygwin. Set to msvc to use cl/link (or
1117                          icl/link). Default when mentioned: mingw. Default
1118                          when not mentioned: disabled.
1119  --enable-static[=PKGS]
1120                          build static libraries [default=no]
1121  --disable-dependency-tracking  speeds up one-time build
1122  --enable-dependency-tracking   do not reject slow dependency extractors
1123  --enable-maintainer-mode  enable make rules and dependencies not useful
1124                          (and sometimes confusing) to the casual installer
1125  --enable-shared[=PKGS]
1126                          build shared libraries [default=yes]
1127  --enable-fast-install[=PKGS]
1128                          optimize for fast installation [default=yes]
1129  --disable-libtool-lock  avoid locking (might break parallel builds)
1130
1131Optional Packages:
1132  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1133  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1134  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1135  --with-pic              try to use only PIC/non-PIC objects [default=use
1136                          both]
1137  --with-tags[=TAGS]
1138                          include additional configurations [automatic]
1139  --with-coinutils-instdir
1140                          prefix of installation directory for precompiled
1141                          CoinUtils package
1142  --with-coinutils-srcdir source directory for CoinUtils package
1143  --with-coinutils-objdir object directory for CoinUtils package (if different
1144                          from source directory in VPATH compilation)
1145  --with-coin-instdir     prefix of installation directory for precompiled
1146                          COIN packages
1147  --with-clp-instdir prefix of installation directory for precompiled Clp
1148                          package
1149  --with-clp-srcdir source directory for Clp package
1150  --with-clp-objdir object directory for Clp package (if different from source
1151                          directory in VPATH compilation)
1152  --with-dylp-instdir prefix of installation directory for precompiled DyLP
1153                          package
1154  --with-dylp-srcdir source directory for DyLP package
1155  --with-dylp-objdir object directory for DyLP package (if different from
1156                          source 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-osi-instdir prefix of installation directory for precompiled Osi
1163                          package
1164  --with-osi-srcdir source directory for Osi package
1165  --with-osi-objdir object directory for Osi package (if different from source
1166                          directory in VPATH compilation)
1167  --with-cgl-instdir prefix of installation directory for precompiled Cgl
1168                          package
1169  --with-cgl-srcdir source directory for Cgl package
1170  --with-cgl-objdir object directory for Cgl package (if different from source
1171                          directory in VPATH compilation)
1172  --with-cbc-instdir prefix of installation directory for precompiled Cbc
1173                          package
1174  --with-cbc-srcdir source directory for Cbc package
1175  --with-cbc-objdir object directory for Cbc package (if different from source
1176                          directory in VPATH compilation)
1177  --with-symphony-instdir prefix of installation directory for precompiled
1178                          SYMPHONY package
1179  --with-symphony-srcdir source directory for SYMPHONY package
1180  --with-symphony-objdir object directory for SYMPHONY package (if different
1181                          from source directory in VPATH compilation)
1182
1183Some influential environment variables:
1184  CDEFS       Additional -D flags to be used when compiling C code.
1185  ADD_CFLAGS  Additional C compiler options
1186  DBG_CFLAGS  Debug C compiler options
1187  OPT_CFLAGS  Optimize C compiler options
1188  CC          C compiler command
1189  CFLAGS      C compiler flags
1190  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1191              nonstandard directory <lib dir>
1192  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1193              headers in a nonstandard directory <include dir>
1194  MPICC       C MPI Compiler
1195  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1196  ADD_CXXFLAGS
1197              Additional C++ compiler options
1198  DBG_CXXFLAGS
1199              Debug C++ compiler options
1200  OPT_CXXFLAGS
1201              Optimize C++ compiler options
1202  CXX         C++ compiler command
1203  CXXFLAGS    C++ compiler flags
1204  MPICXX      C++ MPI Compiler
1205  ADD_FFLAGS  Additional Fortran compiler options
1206  DBG_FFLAGS  Debug Fortran compiler options
1207  OPT_FFLAGS  Optimize Fortran compiler options
1208  F77         Fortran 77 compiler command
1209  FFLAGS      Fortran 77 compiler flags
1210  MPIF77      Fortran MPI Compiler
1211  CPP         C preprocessor
1212  CXXCPP      C++ preprocessor
1213  COIN_SKIP_PROJECTS
1214              Set to the subdirectories of projects that should be skipped in
1215              the configuration
1216
1217Use these variables to override the choices made by `configure' or to help
1218it to find libraries and programs with nonstandard names/locations.
1219
1220Report bugs to <coin-cbc@lists.coin-or.org>.
1221_ACEOF
1222fi
1223
1224if test "$ac_init_help" = "recursive"; then
1225  # If there are subdirs, report their specific --help.
1226  ac_popdir=`pwd`
1227  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1228    test -d $ac_dir || continue
1229    ac_builddir=.
1230
1231if test "$ac_dir" != .; then
1232  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1233  # A "../" for each directory in $ac_dir_suffix.
1234  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1235else
1236  ac_dir_suffix= ac_top_builddir=
1237fi
1238
1239case $srcdir in
1240  .)  # No --srcdir option.  We are building in place.
1241    ac_srcdir=.
1242    if test -z "$ac_top_builddir"; then
1243       ac_top_srcdir=.
1244    else
1245       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1246    fi ;;
1247  [\\/]* | ?:[\\/]* )  # Absolute path.
1248    ac_srcdir=$srcdir$ac_dir_suffix;
1249    ac_top_srcdir=$srcdir ;;
1250  *) # Relative path.
1251    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1252    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1253esac
1254
1255# Do not use `cd foo && pwd` to compute absolute paths, because
1256# the directories may not exist.
1257case `pwd` in
1258.) ac_abs_builddir="$ac_dir";;
1259*)
1260  case "$ac_dir" in
1261  .) ac_abs_builddir=`pwd`;;
1262  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1263  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1264  esac;;
1265esac
1266case $ac_abs_builddir in
1267.) ac_abs_top_builddir=${ac_top_builddir}.;;
1268*)
1269  case ${ac_top_builddir}. in
1270  .) ac_abs_top_builddir=$ac_abs_builddir;;
1271  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1272  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1273  esac;;
1274esac
1275case $ac_abs_builddir in
1276.) ac_abs_srcdir=$ac_srcdir;;
1277*)
1278  case $ac_srcdir in
1279  .) ac_abs_srcdir=$ac_abs_builddir;;
1280  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1281  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1282  esac;;
1283esac
1284case $ac_abs_builddir in
1285.) ac_abs_top_srcdir=$ac_top_srcdir;;
1286*)
1287  case $ac_top_srcdir in
1288  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1289  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1290  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1291  esac;;
1292esac
1293
1294    cd $ac_dir
1295    # Check for guested configure; otherwise get Cygnus style configure.
1296    if test -f $ac_srcdir/configure.gnu; then
1297      echo
1298      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1299    elif test -f $ac_srcdir/configure; then
1300      echo
1301      $SHELL $ac_srcdir/configure  --help=recursive
1302    elif test -f $ac_srcdir/configure.ac ||
1303           test -f $ac_srcdir/configure.in; then
1304      echo
1305      $ac_configure --help
1306    else
1307      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1308    fi
1309    cd $ac_popdir
1310  done
1311fi
1312
1313test -n "$ac_init_help" && exit 0
1314if $ac_init_version; then
1315  cat <<\_ACEOF
1316Cbc configure 2.3stable
1317generated by GNU Autoconf 2.59
1318
1319Copyright (C) 2003 Free Software Foundation, Inc.
1320This configure script is free software; the Free Software Foundation
1321gives unlimited permission to copy, distribute and modify it.
1322
1323
1324Copyright 2006 International Business Machines and others.
1325All Rights Reserved.
1326This file is part of the open source package Coin which is distributed
1327under the Common Public License.
1328_ACEOF
1329  exit 0
1330fi
1331exec 5>config.log
1332cat >&5 <<_ACEOF
1333This file contains any messages produced by compilers while
1334running configure, to aid debugging if configure makes a mistake.
1335
1336It was created by Cbc $as_me 2.3stable, which was
1337generated by GNU Autoconf 2.59.  Invocation command line was
1338
1339  $ $0 $@
1340
1341_ACEOF
1342{
1343cat <<_ASUNAME
1344## --------- ##
1345## Platform. ##
1346## --------- ##
1347
1348hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1349uname -m = `(uname -m) 2>/dev/null || echo unknown`
1350uname -r = `(uname -r) 2>/dev/null || echo unknown`
1351uname -s = `(uname -s) 2>/dev/null || echo unknown`
1352uname -v = `(uname -v) 2>/dev/null || echo unknown`
1353
1354/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1355/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1356
1357/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1358/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1359/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1360hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1361/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1362/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1363/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1364
1365_ASUNAME
1366
1367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368for as_dir in $PATH
1369do
1370  IFS=$as_save_IFS
1371  test -z "$as_dir" && as_dir=.
1372  echo "PATH: $as_dir"
1373done
1374
1375} >&5
1376
1377cat >&5 <<_ACEOF
1378
1379
1380## ----------- ##
1381## Core tests. ##
1382## ----------- ##
1383
1384_ACEOF
1385
1386
1387# Keep a trace of the command line.
1388# Strip out --no-create and --no-recursion so they do not pile up.
1389# Strip out --silent because we don't want to record it for future runs.
1390# Also quote any args containing shell meta-characters.
1391# Make two passes to allow for proper duplicate-argument suppression.
1392ac_configure_args=
1393ac_configure_args0=
1394ac_configure_args1=
1395ac_sep=
1396ac_must_keep_next=false
1397for ac_pass in 1 2
1398do
1399  for ac_arg
1400  do
1401    case $ac_arg in
1402    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1403    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1404    | -silent | --silent | --silen | --sile | --sil)
1405      continue ;;
1406    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1407      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1408    esac
1409    case $ac_pass in
1410    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1411    2)
1412      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1413      if test $ac_must_keep_next = true; then
1414        ac_must_keep_next=false # Got value, back to normal.
1415      else
1416        case $ac_arg in
1417          *=* | --config-cache | -C | -disable-* | --disable-* \
1418          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1419          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1420          | -with-* | --with-* | -without-* | --without-* | --x)
1421            case "$ac_configure_args0 " in
1422              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1423            esac
1424            ;;
1425          -* ) ac_must_keep_next=true ;;
1426        esac
1427      fi
1428      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1429      # Get rid of the leading space.
1430      ac_sep=" "
1431      ;;
1432    esac
1433  done
1434done
1435$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1436$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1437
1438# When interrupted or exit'd, cleanup temporary files, and complete
1439# config.log.  We remove comments because anyway the quotes in there
1440# would cause problems or look ugly.
1441# WARNING: Be sure not to use single quotes in there, as some shells,
1442# such as our DU 5.0 friend, will then `close' the trap.
1443trap 'exit_status=$?
1444  # Save into config.log some information that might help in debugging.
1445  {
1446    echo
1447
1448    cat <<\_ASBOX
1449## ---------------- ##
1450## Cache variables. ##
1451## ---------------- ##
1452_ASBOX
1453    echo
1454    # The following way of writing the cache mishandles newlines in values,
1455{
1456  (set) 2>&1 |
1457    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1458    *ac_space=\ *)
1459      sed -n \
1460        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1461          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1462      ;;
1463    *)
1464      sed -n \
1465        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1466      ;;
1467    esac;
1468}
1469    echo
1470
1471    cat <<\_ASBOX
1472## ----------------- ##
1473## Output variables. ##
1474## ----------------- ##
1475_ASBOX
1476    echo
1477    for ac_var in $ac_subst_vars
1478    do
1479      eval ac_val=$`echo $ac_var`
1480      echo "$ac_var='"'"'$ac_val'"'"'"
1481    done | sort
1482    echo
1483
1484    if test -n "$ac_subst_files"; then
1485      cat <<\_ASBOX
1486## ------------- ##
1487## Output files. ##
1488## ------------- ##
1489_ASBOX
1490      echo
1491      for ac_var in $ac_subst_files
1492      do
1493        eval ac_val=$`echo $ac_var`
1494        echo "$ac_var='"'"'$ac_val'"'"'"
1495      done | sort
1496      echo
1497    fi
1498
1499    if test -s confdefs.h; then
1500      cat <<\_ASBOX
1501## ----------- ##
1502## confdefs.h. ##
1503## ----------- ##
1504_ASBOX
1505      echo
1506      sed "/^$/d" confdefs.h | sort
1507      echo
1508    fi
1509    test "$ac_signal" != 0 &&
1510      echo "$as_me: caught signal $ac_signal"
1511    echo "$as_me: exit $exit_status"
1512  } >&5
1513  rm -f core *.core &&
1514  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1515    exit $exit_status
1516     ' 0
1517for ac_signal in 1 2 13 15; do
1518  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1519done
1520ac_signal=0
1521
1522# confdefs.h avoids OS command line length limits that DEFS can exceed.
1523rm -rf conftest* confdefs.h
1524# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1525echo >confdefs.h
1526
1527# Predefined preprocessor variables.
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_NAME "$PACKAGE_NAME"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_VERSION "$PACKAGE_VERSION"
1541_ACEOF
1542
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_STRING "$PACKAGE_STRING"
1546_ACEOF
1547
1548
1549cat >>confdefs.h <<_ACEOF
1550#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1551_ACEOF
1552
1553
1554# Let the site file select an alternate cache file if it wants to.
1555# Prefer explicitly selected file to automatically selected ones.
1556if test -z "$CONFIG_SITE"; then
1557  if test "x$prefix" != xNONE; then
1558    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1559  else
1560    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1561  fi
1562fi
1563for ac_site_file in $CONFIG_SITE; do
1564  if test -r "$ac_site_file"; then
1565    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1566echo "$as_me: loading site script $ac_site_file" >&6;}
1567    sed 's/^/| /' "$ac_site_file" >&5
1568    . "$ac_site_file"
1569  fi
1570done
1571
1572if test -r "$cache_file"; then
1573  # Some versions of bash will fail to source /dev/null (special
1574  # files actually), so we avoid doing that.
1575  if test -f "$cache_file"; then
1576    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1577echo "$as_me: loading cache $cache_file" >&6;}
1578    case $cache_file in
1579      [\\/]* | ?:[\\/]* ) . $cache_file;;
1580      *)                      . ./$cache_file;;
1581    esac
1582  fi
1583else
1584  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1585echo "$as_me: creating cache $cache_file" >&6;}
1586  >$cache_file
1587fi
1588
1589# Check that the precious variables saved in the cache have kept the same
1590# value.
1591ac_cache_corrupted=false
1592for ac_var in `(set) 2>&1 |
1593               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1594  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1595  eval ac_new_set=\$ac_env_${ac_var}_set
1596  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1597  eval ac_new_val="\$ac_env_${ac_var}_value"
1598  case $ac_old_set,$ac_new_set in
1599    set,)
1600      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1601echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1602      ac_cache_corrupted=: ;;
1603    ,set)
1604      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1605echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1606      ac_cache_corrupted=: ;;
1607    ,);;
1608    *)
1609      if test "x$ac_old_val" != "x$ac_new_val"; then
1610        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1611echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1612        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1613echo "$as_me:   former value:  $ac_old_val" >&2;}
1614        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1615echo "$as_me:   current value: $ac_new_val" >&2;}
1616        ac_cache_corrupted=:
1617      fi;;
1618  esac
1619  # Pass precious variables to config.status.
1620  if test "$ac_new_set" = set; then
1621    case $ac_new_val in
1622    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1623      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1624    *) ac_arg=$ac_var=$ac_new_val ;;
1625    esac
1626    case " $ac_configure_args " in
1627      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1628      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1629    esac
1630  fi
1631done
1632if $ac_cache_corrupted; then
1633  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1634echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1635  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1636echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1637   { (exit 1); exit 1; }; }
1638fi
1639
1640ac_ext=c
1641ac_cpp='$CPP $CPPFLAGS'
1642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1644ac_compiler_gnu=$ac_cv_c_compiler_gnu
1645
1646
1647
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# List one file in the package so that the configure script can test
1678# whether the package is actually there
1679
1680
1681# Where should everything be installed by default?  Here, we want it
1682# to be installed directly in 'bin', 'lib', 'include' subdirectories
1683# of the directory where configure is run.  The default would be
1684# /usr/local.
1685
1686
1687#############################################################################
1688#  Do the tests necessary to configure compilers and initialise autotools   #
1689#############################################################################
1690
1691ac_aux_dir=
1692for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1693  if test -f $ac_dir/install-sh; then
1694    ac_aux_dir=$ac_dir
1695    ac_install_sh="$ac_aux_dir/install-sh -c"
1696    break
1697  elif test -f $ac_dir/install.sh; then
1698    ac_aux_dir=$ac_dir
1699    ac_install_sh="$ac_aux_dir/install.sh -c"
1700    break
1701  elif test -f $ac_dir/shtool; then
1702    ac_aux_dir=$ac_dir
1703    ac_install_sh="$ac_aux_dir/shtool install -c"
1704    break
1705  fi
1706done
1707if test -z "$ac_aux_dir"; then
1708  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1709echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1710   { (exit 1); exit 1; }; }
1711fi
1712ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1713ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1714ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1715
1716# Make sure we can run config.sub.
1717$ac_config_sub sun4 >/dev/null 2>&1 ||
1718  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1719echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1720   { (exit 1); exit 1; }; }
1721
1722echo "$as_me:$LINENO: checking build system type" >&5
1723echo $ECHO_N "checking build system type... $ECHO_C" >&6
1724if test "${ac_cv_build+set}" = set; then
1725  echo $ECHO_N "(cached) $ECHO_C" >&6
1726else
1727  ac_cv_build_alias=$build_alias
1728test -z "$ac_cv_build_alias" &&
1729  ac_cv_build_alias=`$ac_config_guess`
1730test -z "$ac_cv_build_alias" &&
1731  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1732echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1733   { (exit 1); exit 1; }; }
1734ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1735  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1736echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1737   { (exit 1); exit 1; }; }
1738
1739fi
1740echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1741echo "${ECHO_T}$ac_cv_build" >&6
1742build=$ac_cv_build
1743build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1744build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1745build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746
1747
1748
1749# Check if user wants to produce debugging code
1750
1751echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1752echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1753
1754# Check whether --enable-debug or --disable-debug was given.
1755if test "${enable_debug+set}" = set; then
1756  enableval="$enable_debug"
1757  case "${enableval}" in
1758   yes) coin_debug_compile=true
1759        if test "${enable_shared+set}" = set; then :; else
1760          enable_shared=no
1761        fi
1762        ;;
1763   no)  coin_debug_compile=false
1764        ;;
1765   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1766echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1767   { (exit 1); exit 1; }; }
1768        ;;
1769esac
1770else
1771  coin_debug_compile=false
1772fi;
1773
1774 # m4_ifvaln([],
1775
1776if test $coin_debug_compile = true; then
1777  echo "$as_me:$LINENO: result: yes" >&5
1778echo "${ECHO_T}yes" >&6
1779else
1780  echo "$as_me:$LINENO: result: no" >&5
1781echo "${ECHO_T}no" >&6
1782fi
1783
1784 # m4_ifvaln([],
1785
1786
1787
1788# Get the name of the C compiler and appropriate compiler options
1789case $build in
1790  *-mingw*)
1791    if test "${LD+set}" = set; then :; else
1792      LD=link
1793    fi
1794    ;;
1795 esac
1796 case $enable_doscompile in
1797   msvc)
1798     if test "x${LD+set}" = xset; then :; else
1799       LD=link
1800     fi
1801     ;;
1802 esac
1803
1804
1805 # Check whether --enable-doscompile or --disable-doscompile was given.
1806if test "${enable_doscompile+set}" = set; then
1807  enableval="$enable_doscompile"
1808  if test "$enable_doscompile" != no; then
1809     case $build in
1810       *-cygwin* | *-mingw*) ;;
1811       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1812echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1813   { (exit 1); exit 1; }; } ;;
1814     esac
1815   fi
1816else
1817  enable_doscompile=no
1818fi;
1819 case "$enable_doscompile" in
1820   mingw)
1821     case $build in
1822       *-mingw*) enable_doscompile=no ;;
1823     esac
1824     ;;
1825   msvc|no) ;;
1826   yes) enable_doscompile=mingw ;;
1827   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1828                    Try configure --help=recursive." >&5
1829echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1830                    Try configure --help=recursive." >&2;}
1831   { (exit 1); exit 1; }; }
1832      ;;
1833  esac
1834  if test "$enable_doscompile" != no ; then
1835    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1836echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1837  fi
1838
1839
1840
1841
1842ac_ext=c
1843ac_cpp='$CPP $CPPFLAGS'
1844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1846ac_compiler_gnu=$ac_cv_c_compiler_gnu
1847
1848
1849# For consistency, we set the C compiler to the same value of the C++
1850# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1851if test x"$CXX" != x; then
1852  case "$CXX" in
1853    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1854      if test x"$CC" = x; then
1855        CC="$CXX"
1856        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1857echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1858      fi
1859      ;;
1860  esac
1861fi
1862
1863
1864
1865
1866
1867
1868coin_has_cc=yes
1869
1870save_cflags="$CFLAGS"
1871
1872# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1873# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1874# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1875# compiler. In this case, put cc after gcc.
1876
1877case $build in
1878  *-cygwin* | *-mingw*)
1879             if test "$enable_doscompile" = msvc ; then
1880               comps="icl cl"
1881             else
1882               comps="gcc cl"
1883             fi ;;
1884  *-*-solaris*)
1885             # Extract the first word of "cc", so it can be a program name with args.
1886set dummy cc; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$sol_cc_compiler"; then
1893  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1894else
1895  ac_prog_rejected=no
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899  IFS=$as_save_IFS
1900  test -z "$as_dir" && as_dir=.
1901  for ac_exec_ext in '' $ac_executable_extensions; do
1902  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1904       ac_prog_rejected=yes
1905       continue
1906     fi
1907    ac_cv_prog_sol_cc_compiler="cc"
1908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909    break 2
1910  fi
1911done
1912done
1913
1914if test $ac_prog_rejected = yes; then
1915  # We found a bogon in the path, so make sure we never use it.
1916  set dummy $ac_cv_prog_sol_cc_compiler
1917  shift
1918  if test $# != 0; then
1919    # We chose a different compiler from the bogus one.
1920    # However, it has the same basename, so the bogon will be chosen
1921    # first if we set sol_cc_compiler to just the basename; use the full file name.
1922    shift
1923    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1924  fi
1925fi
1926fi
1927fi
1928sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1929if test -n "$sol_cc_compiler"; then
1930  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1931echo "${ECHO_T}$sol_cc_compiler" >&6
1932else
1933  echo "$as_me:$LINENO: result: no" >&5
1934echo "${ECHO_T}no" >&6
1935fi
1936
1937             if test "$sol_cc_compiler" = "cc" ; then
1938               comps="cc xlc gcc pgcc icc"
1939             else
1940               comps="xlc gcc pgcc icc cc"
1941             fi
1942             ;;
1943  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1944  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1945esac
1946
1947# We delete the cached value, since the test might not have been
1948# performed with our choice of compilers earlier
1949$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1950# AC_MSG_NOTICE([C compiler candidates: $comps])
1951ac_ext=c
1952ac_cpp='$CPP $CPPFLAGS'
1953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956if test -n "$ac_tool_prefix"; then
1957  for ac_prog in $comps
1958  do
1959    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1961echo "$as_me:$LINENO: checking for $ac_word" >&5
1962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963if test "${ac_cv_prog_CC+set}" = set; then
1964  echo $ECHO_N "(cached) $ECHO_C" >&6
1965else
1966  if test -n "$CC"; then
1967  ac_cv_prog_CC="$CC" # Let the user override the test.
1968else
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972  IFS=$as_save_IFS
1973  test -z "$as_dir" && as_dir=.
1974  for ac_exec_ext in '' $ac_executable_extensions; do
1975  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978    break 2
1979  fi
1980done
1981done
1982
1983fi
1984fi
1985CC=$ac_cv_prog_CC
1986if test -n "$CC"; then
1987  echo "$as_me:$LINENO: result: $CC" >&5
1988echo "${ECHO_T}$CC" >&6
1989else
1990  echo "$as_me:$LINENO: result: no" >&5
1991echo "${ECHO_T}no" >&6
1992fi
1993
1994    test -n "$CC" && break
1995  done
1996fi
1997if test -z "$CC"; then
1998  ac_ct_CC=$CC
1999  for ac_prog in $comps
2000do
2001  # Extract the first word of "$ac_prog", so it can be a program name with args.
2002set dummy $ac_prog; ac_word=$2
2003echo "$as_me:$LINENO: checking for $ac_word" >&5
2004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2006  echo $ECHO_N "(cached) $ECHO_C" >&6
2007else
2008  if test -n "$ac_ct_CC"; then
2009  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2010else
2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012for as_dir in $PATH
2013do
2014  IFS=$as_save_IFS
2015  test -z "$as_dir" && as_dir=.
2016  for ac_exec_ext in '' $ac_executable_extensions; do
2017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018    ac_cv_prog_ac_ct_CC="$ac_prog"
2019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020    break 2
2021  fi
2022done
2023done
2024
2025fi
2026fi
2027ac_ct_CC=$ac_cv_prog_ac_ct_CC
2028if test -n "$ac_ct_CC"; then
2029  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2030echo "${ECHO_T}$ac_ct_CC" >&6
2031else
2032  echo "$as_me:$LINENO: result: no" >&5
2033echo "${ECHO_T}no" >&6
2034fi
2035
2036  test -n "$ac_ct_CC" && break
2037done
2038
2039  CC=$ac_ct_CC
2040fi
2041
2042
2043test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2044See \`config.log' for more details." >&5
2045echo "$as_me: error: no acceptable C compiler found in \$PATH
2046See \`config.log' for more details." >&2;}
2047   { (exit 1); exit 1; }; }
2048
2049# Provide some information about the compiler.
2050echo "$as_me:$LINENO:" \
2051     "checking for C compiler version" >&5
2052ac_compiler=`set X $ac_compile; echo $2`
2053{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2054  (eval $ac_compiler --version </dev/null >&5) 2>&5
2055  ac_status=$?
2056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057  (exit $ac_status); }
2058{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2059  (eval $ac_compiler -v </dev/null >&5) 2>&5
2060  ac_status=$?
2061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062  (exit $ac_status); }
2063{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2064  (eval $ac_compiler -V </dev/null >&5) 2>&5
2065  ac_status=$?
2066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067  (exit $ac_status); }
2068
2069cat >conftest.$ac_ext <<_ACEOF
2070/* confdefs.h.  */
2071_ACEOF
2072cat confdefs.h >>conftest.$ac_ext
2073cat >>conftest.$ac_ext <<_ACEOF
2074/* end confdefs.h.  */
2075
2076int
2077main ()
2078{
2079
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084ac_clean_files_save=$ac_clean_files
2085ac_clean_files="$ac_clean_files a.out a.exe b.out"
2086# Try to create an executable without -o first, disregard a.out.
2087# It will help us diagnose broken compilers, and finding out an intuition
2088# of exeext.
2089echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2090echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2091ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2092if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2093  (eval $ac_link_default) 2>&5
2094  ac_status=$?
2095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096  (exit $ac_status); }; then
2097  # Find the output, starting from the most likely.  This scheme is
2098# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2099# resort.
2100
2101# Be careful to initialize this variable, since it used to be cached.
2102# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2103ac_cv_exeext=
2104# b.out is created by i960 compilers.
2105for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2106do
2107  test -f "$ac_file" || continue
2108  case $ac_file in
2109    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2110        ;;
2111    conftest.$ac_ext )
2112        # This is the source file.
2113        ;;
2114    [ab].out )
2115        # We found the default executable, but exeext='' is most
2116        # certainly right.
2117        break;;
2118    *.* )
2119        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120        # FIXME: I believe we export ac_cv_exeext for Libtool,
2121        # but it would be cool to find out if it's true.  Does anybody
2122        # maintain Libtool? --akim.
2123        export ac_cv_exeext
2124        break;;
2125    * )
2126        break;;
2127  esac
2128done
2129else
2130  echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
2133{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2134See \`config.log' for more details." >&5
2135echo "$as_me: error: C compiler cannot create executables
2136See \`config.log' for more details." >&2;}
2137   { (exit 77); exit 77; }; }
2138fi
2139
2140ac_exeext=$ac_cv_exeext
2141echo "$as_me:$LINENO: result: $ac_file" >&5
2142echo "${ECHO_T}$ac_file" >&6
2143
2144# Check the compiler produces executables we can run.  If not, either
2145# the compiler is broken, or we cross compile.
2146echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2147echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2148# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2149# If not cross compiling, check that we can run a simple program.
2150if test "$cross_compiling" != yes; then
2151  if { ac_try='./$ac_file'
2152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153  (eval $ac_try) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); }; }; then
2157    cross_compiling=no
2158  else
2159    if test "$cross_compiling" = maybe; then
2160        cross_compiling=yes
2161    else
2162        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2163If you meant to cross compile, use \`--host'.
2164See \`config.log' for more details." >&5
2165echo "$as_me: error: cannot run C compiled programs.
2166If you meant to cross compile, use \`--host'.
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169    fi
2170  fi
2171fi
2172echo "$as_me:$LINENO: result: yes" >&5
2173echo "${ECHO_T}yes" >&6
2174
2175rm -f a.out a.exe conftest$ac_cv_exeext b.out
2176ac_clean_files=$ac_clean_files_save
2177# Check the compiler produces executables we can run.  If not, either
2178# the compiler is broken, or we cross compile.
2179echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2180echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2181echo "$as_me:$LINENO: result: $cross_compiling" >&5
2182echo "${ECHO_T}$cross_compiling" >&6
2183
2184echo "$as_me:$LINENO: checking for suffix of executables" >&5
2185echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2187  (eval $ac_link) 2>&5
2188  ac_status=$?
2189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190  (exit $ac_status); }; then
2191  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2192# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2193# work properly (i.e., refer to `conftest.exe'), while it won't with
2194# `rm'.
2195for ac_file in conftest.exe conftest conftest.*; do
2196  test -f "$ac_file" || continue
2197  case $ac_file in
2198    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2199    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200          export ac_cv_exeext
2201          break;;
2202    * ) break;;
2203  esac
2204done
2205else
2206  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2207See \`config.log' for more details." >&5
2208echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2209See \`config.log' for more details." >&2;}
2210   { (exit 1); exit 1; }; }
2211fi
2212
2213rm -f conftest$ac_cv_exeext
2214echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2215echo "${ECHO_T}$ac_cv_exeext" >&6
2216
2217rm -f conftest.$ac_ext
2218EXEEXT=$ac_cv_exeext
2219ac_exeext=$EXEEXT
2220echo "$as_me:$LINENO: checking for suffix of object files" >&5
2221echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2222if test "${ac_cv_objext+set}" = set; then
2223  echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225  cat >conftest.$ac_ext <<_ACEOF
2226/* confdefs.h.  */
2227_ACEOF
2228cat confdefs.h >>conftest.$ac_ext
2229cat >>conftest.$ac_ext <<_ACEOF
2230/* end confdefs.h.  */
2231
2232int
2233main ()
2234{
2235
2236  ;
2237  return 0;
2238}
2239_ACEOF
2240rm -f conftest.o conftest.obj
2241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242  (eval $ac_compile) 2>&5
2243  ac_status=$?
2244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245  (exit $ac_status); }; then
2246  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2247  case $ac_file in
2248    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2249    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2250       break;;
2251  esac
2252done
2253else
2254  echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2258See \`config.log' for more details." >&5
2259echo "$as_me: error: cannot compute suffix of object files: cannot compile
2260See \`config.log' for more details." >&2;}
2261   { (exit 1); exit 1; }; }
2262fi
2263
2264rm -f conftest.$ac_cv_objext conftest.$ac_ext
2265fi
2266echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2267echo "${ECHO_T}$ac_cv_objext" >&6
2268OBJEXT=$ac_cv_objext
2269ac_objext=$OBJEXT
2270echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2271echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2272if test "${ac_cv_c_compiler_gnu+set}" = set; then
2273  echo $ECHO_N "(cached) $ECHO_C" >&6
2274else
2275  cat >conftest.$ac_ext <<_ACEOF
2276/* confdefs.h.  */
2277_ACEOF
2278cat confdefs.h >>conftest.$ac_ext
2279cat >>conftest.$ac_ext <<_ACEOF
2280/* end confdefs.h.  */
2281
2282int
2283main ()
2284{
2285#ifndef __GNUC__
2286       choke me
2287#endif
2288
2289  ;
2290  return 0;
2291}
2292_ACEOF
2293rm -f conftest.$ac_objext
2294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295  (eval $ac_compile) 2>conftest.er1
2296  ac_status=$?
2297  grep -v '^ *+' conftest.er1 >conftest.err
2298  rm -f conftest.er1
2299  cat conftest.err >&5
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); } &&
2302         { ac_try='test -z "$ac_c_werror_flag"
2303                         || test ! -s conftest.err'
2304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305  (eval $ac_try) 2>&5
2306  ac_status=$?
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); }; } &&
2309         { ac_try='test -s conftest.$ac_objext'
2310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311  (eval $ac_try) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; }; then
2315  ac_compiler_gnu=yes
2316else
2317  echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320ac_compiler_gnu=no
2321fi
2322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323ac_cv_c_compiler_gnu=$ac_compiler_gnu
2324
2325fi
2326echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2327echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2328GCC=`test $ac_compiler_gnu = yes && echo yes`
2329ac_test_CFLAGS=${CFLAGS+set}
2330ac_save_CFLAGS=$CFLAGS
2331CFLAGS="-g"
2332echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2333echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2334if test "${ac_cv_prog_cc_g+set}" = set; then
2335  echo $ECHO_N "(cached) $ECHO_C" >&6
2336else
2337  cat >conftest.$ac_ext <<_ACEOF
2338/* confdefs.h.  */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h.  */
2343
2344int
2345main ()
2346{
2347
2348  ;
2349  return 0;
2350}
2351_ACEOF
2352rm -f conftest.$ac_objext
2353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354  (eval $ac_compile) 2>conftest.er1
2355  ac_status=$?
2356  grep -v '^ *+' conftest.er1 >conftest.err
2357  rm -f conftest.er1
2358  cat conftest.err >&5
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); } &&
2361         { ac_try='test -z "$ac_c_werror_flag"
2362                         || test ! -s conftest.err'
2363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364  (eval $ac_try) 2>&5
2365  ac_status=$?
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); }; } &&
2368         { ac_try='test -s conftest.$ac_objext'
2369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370  (eval $ac_try) 2>&5
2371  ac_status=$?
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); }; }; then
2374  ac_cv_prog_cc_g=yes
2375else
2376  echo "$as_me: failed program was:" >&5
2377sed 's/^/| /' conftest.$ac_ext >&5
2378
2379ac_cv_prog_cc_g=no
2380fi
2381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382fi
2383echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2384echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2385if test "$ac_test_CFLAGS" = set; then
2386  CFLAGS=$ac_save_CFLAGS
2387elif test $ac_cv_prog_cc_g = yes; then
2388  if test "$GCC" = yes; then
2389    CFLAGS="-g -O2"
2390  else
2391    CFLAGS="-g"
2392  fi
2393else
2394  if test "$GCC" = yes; then
2395    CFLAGS="-O2"
2396  else
2397    CFLAGS=
2398  fi
2399fi
2400echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2401echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2402if test "${ac_cv_prog_cc_stdc+set}" = set; then
2403  echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405  ac_cv_prog_cc_stdc=no
2406ac_save_CC=$CC
2407cat >conftest.$ac_ext <<_ACEOF
2408/* confdefs.h.  */
2409_ACEOF
2410cat confdefs.h >>conftest.$ac_ext
2411cat >>conftest.$ac_ext <<_ACEOF
2412/* end confdefs.h.  */
2413#include <stdarg.h>
2414#include <stdio.h>
2415#include <sys/types.h>
2416#include <sys/stat.h>
2417/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2418struct buf { int x; };
2419FILE * (*rcsopen) (struct buf *, struct stat *, int);
2420static char *e (p, i)
2421     char **p;
2422     int i;
2423{
2424  return p[i];
2425}
2426static char *f (char * (*g) (char **, int), char **p, ...)
2427{
2428  char *s;
2429  va_list v;
2430  va_start (v,p);
2431  s = g (p, va_arg (v,int));
2432  va_end (v);
2433  return s;
2434}
2435
2436/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2437   function prototypes and stuff, but not '\xHH' hex character constants.
2438   These don't provoke an error unfortunately, instead are silently treated
2439   as 'x'.  The following induces an error, until -std1 is added to get
2440   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2441   array size at least.  It's necessary to write '\x00'==0 to get something
2442   that's true only with -std1.  */
2443int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2444
2445int test (int i, double x);
2446struct s1 {int (*f) (int a);};
2447struct s2 {int (*f) (double a);};
2448int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2449int argc;
2450char **argv;
2451int
2452main ()
2453{
2454return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2455  ;
2456  return 0;
2457}
2458_ACEOF
2459# Don't try gcc -ansi; that turns off useful extensions and
2460# breaks some systems' header files.
2461# AIX                   -qlanglvl=ansi
2462# Ultrix and OSF/1      -std1
2463# HP-UX 10.20 and later -Ae
2464# HP-UX older versions  -Aa -D_HPUX_SOURCE
2465# SVR4                  -Xc -D__EXTENSIONS__
2466for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2467do
2468  CC="$ac_save_CC $ac_arg"
2469  rm -f conftest.$ac_objext
2470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471  (eval $ac_compile) 2>conftest.er1
2472  ac_status=$?
2473  grep -v '^ *+' conftest.er1 >conftest.err
2474  rm -f conftest.er1
2475  cat conftest.err >&5
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); } &&
2478         { ac_try='test -z "$ac_c_werror_flag"
2479                         || test ! -s conftest.err'
2480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481  (eval $ac_try) 2>&5
2482  ac_status=$?
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); }; } &&
2485         { ac_try='test -s conftest.$ac_objext'
2486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487  (eval $ac_try) 2>&5
2488  ac_status=$?
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); }; }; then
2491  ac_cv_prog_cc_stdc=$ac_arg
2492break
2493else
2494  echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497fi
2498rm -f conftest.err conftest.$ac_objext
2499done
2500rm -f conftest.$ac_ext conftest.$ac_objext
2501CC=$ac_save_CC
2502
2503fi
2504
2505case "x$ac_cv_prog_cc_stdc" in
2506  x|xno)
2507    echo "$as_me:$LINENO: result: none needed" >&5
2508echo "${ECHO_T}none needed" >&6 ;;
2509  *)
2510    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2511echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2512    CC="$CC $ac_cv_prog_cc_stdc" ;;
2513esac
2514
2515# Some people use a C++ compiler to compile C.  Since we use `exit',
2516# in C++ we need to declare it.  In case someone uses the same compiler
2517# for both compiling C and C++ we need to have the C++ compiler decide
2518# the declaration of exit, since it's the most demanding environment.
2519cat >conftest.$ac_ext <<_ACEOF
2520#ifndef __cplusplus
2521  choke me
2522#endif
2523_ACEOF
2524rm -f conftest.$ac_objext
2525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526  (eval $ac_compile) 2>conftest.er1
2527  ac_status=$?
2528  grep -v '^ *+' conftest.er1 >conftest.err
2529  rm -f conftest.er1
2530  cat conftest.err >&5
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); } &&
2533         { ac_try='test -z "$ac_c_werror_flag"
2534                         || test ! -s conftest.err'
2535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536  (eval $ac_try) 2>&5
2537  ac_status=$?
2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539  (exit $ac_status); }; } &&
2540         { ac_try='test -s conftest.$ac_objext'
2541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542  (eval $ac_try) 2>&5
2543  ac_status=$?
2544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545  (exit $ac_status); }; }; then
2546  for ac_declaration in \
2547   '' \
2548   'extern "C" void std::exit (int) throw (); using std::exit;' \
2549   'extern "C" void std::exit (int); using std::exit;' \
2550   'extern "C" void exit (int) throw ();' \
2551   'extern "C" void exit (int);' \
2552   'void exit (int);'
2553do
2554  cat >conftest.$ac_ext <<_ACEOF
2555/* confdefs.h.  */
2556_ACEOF
2557cat confdefs.h >>conftest.$ac_ext
2558cat >>conftest.$ac_ext <<_ACEOF
2559/* end confdefs.h.  */
2560$ac_declaration
2561#include <stdlib.h>
2562int
2563main ()
2564{
2565exit (42);
2566  ;
2567  return 0;
2568}
2569_ACEOF
2570rm -f conftest.$ac_objext
2571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572  (eval $ac_compile) 2>conftest.er1
2573  ac_status=$?
2574  grep -v '^ *+' conftest.er1 >conftest.err
2575  rm -f conftest.er1
2576  cat conftest.err >&5
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); } &&
2579         { ac_try='test -z "$ac_c_werror_flag"
2580                         || test ! -s conftest.err'
2581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582  (eval $ac_try) 2>&5
2583  ac_status=$?
2584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585  (exit $ac_status); }; } &&
2586         { ac_try='test -s conftest.$ac_objext'
2587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588  (eval $ac_try) 2>&5
2589  ac_status=$?
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); }; }; then
2592  :
2593else
2594  echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597continue
2598fi
2599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2600  cat >conftest.$ac_ext <<_ACEOF
2601/* confdefs.h.  */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h.  */
2606$ac_declaration
2607int
2608main ()
2609{
2610exit (42);
2611  ;
2612  return 0;
2613}
2614_ACEOF
2615rm -f conftest.$ac_objext
2616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617  (eval $ac_compile) 2>conftest.er1
2618  ac_status=$?
2619  grep -v '^ *+' conftest.er1 >conftest.err
2620  rm -f conftest.er1
2621  cat conftest.err >&5
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); } &&
2624         { ac_try='test -z "$ac_c_werror_flag"
2625                         || test ! -s conftest.err'
2626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627  (eval $ac_try) 2>&5
2628  ac_status=$?
2629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630  (exit $ac_status); }; } &&
2631         { ac_try='test -s conftest.$ac_objext'
2632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633  (eval $ac_try) 2>&5
2634  ac_status=$?
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); }; }; then
2637  break
2638else
2639  echo "$as_me: failed program was:" >&5
2640sed 's/^/| /' conftest.$ac_ext >&5
2641
2642fi
2643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644done
2645rm -f conftest*
2646if test -n "$ac_declaration"; then
2647  echo '#ifdef __cplusplus' >>confdefs.h
2648  echo $ac_declaration      >>confdefs.h
2649  echo '#endif'             >>confdefs.h
2650fi
2651
2652else
2653  echo "$as_me: failed program was:" >&5
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
2656fi
2657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658ac_ext=c
2659ac_cpp='$CPP $CPPFLAGS'
2660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663
2664if test -z "$CC" ; then
2665  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2666echo "$as_me: error: Failed to find a C compiler!" >&2;}
2667   { (exit 1); exit 1; }; }
2668fi
2669# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2670case "$CC" in
2671  cl* | */cl* | CL* | */CL* )
2672    if test "$ac_cv_prog_cc_g" = yes ; then
2673      ac_cv_prog_cc_g=no
2674      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2675echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2676    fi ;;
2677esac
2678CFLAGS="$save_cflags"
2679
2680# Check if a project specific CFLAGS variable has been set
2681if test x$COIN_PRJCT != x; then
2682  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2683  if test x$coin_tmp = xset; then
2684    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2685  fi
2686fi
2687
2688if test x"$CFLAGS" = x; then
2689
2690  coin_add_cflags=
2691  coin_opt_cflags=
2692  coin_dbg_cflags=
2693  coin_warn_cflags=
2694
2695  if test "$GCC" = "yes"; then
2696    case "$CC" in
2697      icc* | */icc*)
2698        ;;
2699      *)
2700        coin_opt_cflags="-O3 -fomit-frame-pointer"
2701        coin_add_cflags="-pipe"
2702        coin_dbg_cflags="-g"
2703        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2704        case $build in
2705          *-darwin*)
2706            ;;
2707          *)
2708            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2709            ;;
2710        esac
2711        case $enable_doscompile in
2712          mingw)
2713            CFLAGS="-mno-cygwin"
2714            cat >conftest.$ac_ext <<_ACEOF
2715/* confdefs.h.  */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h.  */
2720
2721int
2722main ()
2723{
2724int i=0; i++;
2725  ;
2726  return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext conftest$ac_exeext
2730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2731  (eval $ac_link) 2>conftest.er1
2732  ac_status=$?
2733  grep -v '^ *+' conftest.er1 >conftest.err
2734  rm -f conftest.er1
2735  cat conftest.err >&5
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); } &&
2738         { ac_try='test -z "$ac_c_werror_flag"
2739                         || test ! -s conftest.err'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; } &&
2745         { ac_try='test -s conftest$ac_exeext'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; }; then
2751  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2752else
2753  echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756fi
2757rm -f conftest.err conftest.$ac_objext \
2758      conftest$ac_exeext conftest.$ac_ext
2759            CFLAGS=
2760          ;;
2761        esac
2762    esac
2763  fi
2764  if test -z "$coin_opt_cflags"; then
2765    case $build in
2766      *-cygwin* | *-mingw*)
2767        case "$CC" in
2768          cl* | */cl* | CL* | */CL*)
2769            coin_opt_cflags='-MT -O2'
2770            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2771            coin_dbg_cflags='-MTd'
2772            ;;
2773          icl* | */icl* | ICL* | */ICL*)
2774            coin_opt_cflags='-MT -Ox'
2775            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2776            coin_dbg_cflags='-MTd -debug'
2777            ;;
2778        esac
2779        ;;
2780      *-linux-*)
2781        case "$CC" in
2782          icc* | */icc*)
2783            coin_opt_cflags="-O3 -ip -mp1"
2784            coin_add_cflags=""
2785            coin_dbg_cflags="-g"
2786            # Check if -i_dynamic is necessary (for new glibc library)
2787            CFLAGS=
2788            cat >conftest.$ac_ext <<_ACEOF
2789/* confdefs.h.  */
2790_ACEOF
2791cat confdefs.h >>conftest.$ac_ext
2792cat >>conftest.$ac_ext <<_ACEOF
2793/* end confdefs.h.  */
2794
2795int
2796main ()
2797{
2798int i=0; i++;
2799  ;
2800  return 0;
2801}
2802_ACEOF
2803rm -f conftest.$ac_objext conftest$ac_exeext
2804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2805  (eval $ac_link) 2>conftest.er1
2806  ac_status=$?
2807  grep -v '^ *+' conftest.er1 >conftest.err
2808  rm -f conftest.er1
2809  cat conftest.err >&5
2810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811  (exit $ac_status); } &&
2812         { ac_try='test -z "$ac_c_werror_flag"
2813                         || test ! -s conftest.err'
2814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815  (eval $ac_try) 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }; } &&
2819         { ac_try='test -s conftest$ac_exeext'
2820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821  (eval $ac_try) 2>&5
2822  ac_status=$?
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); }; }; then
2825  :
2826else
2827  echo "$as_me: failed program was:" >&5
2828sed 's/^/| /' conftest.$ac_ext >&5
2829
2830coin_add_cflags="-i_dynamic $coin_add_cflags"
2831fi
2832rm -f conftest.err conftest.$ac_objext \
2833      conftest$ac_exeext conftest.$ac_ext
2834            ;;
2835          pgcc* | */pgcc*)
2836            coin_opt_cflags="-fast"
2837            coin_add_cflags="-Kieee -pc 64"
2838            coin_dbg_cflags="-g"
2839            ;;
2840        esac
2841        ;;
2842      *-ibm-*)
2843        case "$CC" in
2844          xlc* | */xlc* | mpxlc* | */mpxlc*)
2845            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2846            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2847            coin_dbg_cflags="-g"
2848          ;;
2849        esac
2850        ;;
2851      *-hp-*)
2852        coin_opt_cflags="-O"
2853        coin_add_cflags="-Ae"
2854        coin_dbg_cflags="-g"
2855        ;;
2856      *-*-solaris*)
2857        coin_opt_cflags="-xO4"
2858        coin_dbg_cflags="-g"
2859        ;;
2860      *-sgi-*)
2861        coin_opt_cflags="-O -OPT:Olimit=0"
2862        coin_dbg_cflags="-g"
2863        ;;
2864    esac
2865  fi
2866
2867  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2868    coin_dbg_cflags="-g"
2869  fi
2870
2871  if test -z "$coin_opt_cflags"; then
2872    # Try if -O option works if nothing else is set
2873    CFLAGS="-O"
2874    cat >conftest.$ac_ext <<_ACEOF
2875/* confdefs.h.  */
2876_ACEOF
2877cat confdefs.h >>conftest.$ac_ext
2878cat >>conftest.$ac_ext <<_ACEOF
2879/* end confdefs.h.  */
2880
2881int
2882main ()
2883{
2884int i=0; i++;
2885  ;
2886  return 0;
2887}
2888_ACEOF
2889rm -f conftest.$ac_objext conftest$ac_exeext
2890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2891  (eval $ac_link) 2>conftest.er1
2892  ac_status=$?
2893  grep -v '^ *+' conftest.er1 >conftest.err
2894  rm -f conftest.er1
2895  cat conftest.err >&5
2896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897  (exit $ac_status); } &&
2898         { ac_try='test -z "$ac_c_werror_flag"
2899                         || test ! -s conftest.err'
2900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901  (eval $ac_try) 2>&5
2902  ac_status=$?
2903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); }; } &&
2905         { ac_try='test -s conftest$ac_exeext'
2906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907  (eval $ac_try) 2>&5
2908  ac_status=$?
2909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910  (exit $ac_status); }; }; then
2911  coin_opt_cflags="-O"
2912else
2913  echo "$as_me: failed program was:" >&5
2914sed 's/^/| /' conftest.$ac_ext >&5
2915
2916fi
2917rm -f conftest.err conftest.$ac_objext \
2918      conftest$ac_exeext conftest.$ac_ext
2919  fi
2920
2921  # if PM doesn't want the warning messages, take them out
2922  if test x"$coin_skip_warn_cflags" = xyes; then
2923    coin_warn_cflags=
2924  fi
2925
2926  if test x${DBG_CFLAGS+set} != xset; then
2927    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2928  fi
2929  if test x${OPT_CFLAGS+set} != xset; then
2930    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2931  fi
2932
2933  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2934  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2935
2936  if test "$coin_debug_compile" = "true"; then
2937    CFLAGS="$DBG_CFLAGS"
2938  else
2939    CFLAGS="$OPT_CFLAGS"
2940  fi
2941else
2942  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2943  if test x${DBG_CFLAGS+set} != xset; then
2944    DBG_CFLAGS="$CFLAGS"
2945  fi
2946  if test x${OPT_CFLAGS+set} != xset; then
2947    OPT_CFLAGS="$CFLAGS"
2948  fi
2949fi
2950
2951# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2952
2953case "$CFLAGS" in
2954  *-mno-cygwin*)
2955    if test x${CPPFLAGS+set} != xset ; then
2956      CPPFLAGS="-mno-cygwin"
2957    else
2958      case "$CPPFLAGS" in
2959        *-mno-cygwin*)
2960          ;;
2961        *)
2962          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2963          ;;
2964      esac
2965    fi ;;
2966esac
2967
2968# Try if CFLAGS works
2969save_CFLAGS="$CFLAGS"
2970cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h.  */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h.  */
2976
2977int
2978main ()
2979{
2980int i=0; i++;
2981  ;
2982  return 0;
2983}
2984_ACEOF
2985rm -f conftest.$ac_objext conftest$ac_exeext
2986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2987  (eval $ac_link) 2>conftest.er1
2988  ac_status=$?
2989  grep -v '^ *+' conftest.er1 >conftest.err
2990  rm -f conftest.er1
2991  cat conftest.err >&5
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); } &&
2994         { ac_try='test -z "$ac_c_werror_flag"
2995                         || test ! -s conftest.err'
2996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997  (eval $ac_try) 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; } &&
3001         { ac_try='test -s conftest$ac_exeext'
3002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003  (eval $ac_try) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }; }; then
3007  :
3008else
3009  echo "$as_me: failed program was:" >&5
3010sed 's/^/| /' conftest.$ac_ext >&5
3011
3012CFLAGS=
3013fi
3014rm -f conftest.err conftest.$ac_objext \
3015      conftest$ac_exeext conftest.$ac_ext
3016if test -z "$CFLAGS"; then
3017  { 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
3018echo "$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;}
3019  CFLAGS='-O'
3020  cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h.  */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h.  */
3026
3027int
3028main ()
3029{
3030int i=0; i++;
3031  ;
3032  return 0;
3033}
3034_ACEOF
3035rm -f conftest.$ac_objext conftest$ac_exeext
3036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3037  (eval $ac_link) 2>conftest.er1
3038  ac_status=$?
3039  grep -v '^ *+' conftest.er1 >conftest.err
3040  rm -f conftest.er1
3041  cat conftest.err >&5
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); } &&
3044         { ac_try='test -z "$ac_c_werror_flag"
3045                         || test ! -s conftest.err'
3046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047  (eval $ac_try) 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }; } &&
3051         { ac_try='test -s conftest$ac_exeext'
3052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053  (eval $ac_try) 2>&5
3054  ac_status=$?
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); }; }; then
3057  :
3058else
3059  echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062CFLAGS=
3063fi
3064rm -f conftest.err conftest.$ac_objext \
3065      conftest$ac_exeext conftest.$ac_ext
3066  if test -z "$CFLAGS"; then
3067    { 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
3068echo "$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;}
3069  fi
3070fi
3071
3072{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3073echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3074
3075
3076if test x"$MPICC" = x; then :; else
3077  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3078echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3079  CC="$MPICC"
3080fi
3081
3082# Correct ADDLIBS initialization if we are using the MS compiler
3083case "$CC" in
3084  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3085    ADDLIBS=
3086    case $build in
3087  *-mingw*)
3088    if test "${LD+set}" = set; then :; else
3089      LD=link
3090    fi
3091    ;;
3092 esac
3093 case $enable_doscompile in
3094   msvc)
3095     if test "x${LD+set}" = xset; then :; else
3096       LD=link
3097     fi
3098     ;;
3099 esac
3100
3101    ;;
3102esac
3103
3104ac_ext=c
3105ac_cpp='$CPP $CPPFLAGS'
3106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109
3110
3111
3112# Get the name of the C++ compiler and appropriate compiler options
3113
3114 #Let's try if that overcomes configuration problem with VC++ 6.0
3115
3116ac_ext=cc
3117ac_cpp='$CXXCPP $CPPFLAGS'
3118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3121
3122
3123
3124
3125
3126
3127
3128coin_has_cxx=yes
3129
3130save_cxxflags="$CXXFLAGS"
3131# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3132case $build in
3133  *-cygwin* | *-mingw*)
3134             if test "$enable_doscompile" = msvc ; then
3135               comps="icl cl"
3136             else
3137               comps="g++ cl"
3138             fi ;;
3139  *-*-solaris*)
3140             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3141  *-darwin*) comps="g++ c++ CC" ;;
3142          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3143esac
3144
3145# We delete the cached value, since the test might not have been
3146# performed with our choice of compilers earlier
3147$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3148# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3149ac_ext=cc
3150ac_cpp='$CXXCPP $CPPFLAGS'
3151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3154if test -n "$ac_tool_prefix"; then
3155  for ac_prog in $CCC $comps
3156  do
3157    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3158set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3159echo "$as_me:$LINENO: checking for $ac_word" >&5
3160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3161if test "${ac_cv_prog_CXX+set}" = set; then
3162  echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164  if test -n "$CXX"; then
3165  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3166else
3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH
3169do
3170  IFS=$as_save_IFS
3171  test -z "$as_dir" && as_dir=.
3172  for ac_exec_ext in '' $ac_executable_extensions; do
3173  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176    break 2
3177  fi
3178done
3179done
3180
3181fi
3182fi
3183CXX=$ac_cv_prog_CXX
3184if test -n "$CXX"; then
3185  echo "$as_me:$LINENO: result: $CXX" >&5
3186echo "${ECHO_T}$CXX" >&6
3187else
3188  echo "$as_me:$LINENO: result: no" >&5
3189echo "${ECHO_T}no" >&6
3190fi
3191
3192    test -n "$CXX" && break
3193  done
3194fi
3195if test -z "$CXX"; then
3196  ac_ct_CXX=$CXX
3197  for ac_prog in $CCC $comps
3198do
3199  # Extract the first word of "$ac_prog", so it can be a program name with args.
3200set dummy $ac_prog; ac_word=$2
3201echo "$as_me:$LINENO: checking for $ac_word" >&5
3202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3204  echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206  if test -n "$ac_ct_CXX"; then
3207  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212  IFS=$as_save_IFS
3213  test -z "$as_dir" && as_dir=.
3214  for ac_exec_ext in '' $ac_executable_extensions; do
3215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216    ac_cv_prog_ac_ct_CXX="$ac_prog"
3217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218    break 2
3219  fi
3220done
3221done
3222
3223fi
3224fi
3225ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3226if test -n "$ac_ct_CXX"; then
3227  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3228echo "${ECHO_T}$ac_ct_CXX" >&6
3229else
3230  echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
3232fi
3233
3234  test -n "$ac_ct_CXX" && break
3235done
3236test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3237
3238  CXX=$ac_ct_CXX
3239fi
3240
3241
3242# Provide some information about the compiler.
3243echo "$as_me:$LINENO:" \
3244     "checking for C++ compiler version" >&5
3245ac_compiler=`set X $ac_compile; echo $2`
3246{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3247  (eval $ac_compiler --version </dev/null >&5) 2>&5
3248  ac_status=$?
3249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250  (exit $ac_status); }
3251{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3252  (eval $ac_compiler -v </dev/null >&5) 2>&5
3253  ac_status=$?
3254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255  (exit $ac_status); }
3256{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3257  (eval $ac_compiler -V </dev/null >&5) 2>&5
3258  ac_status=$?
3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260  (exit $ac_status); }
3261
3262echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3263echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3264if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3265  echo $ECHO_N "(cached) $ECHO_C" >&6
3266else
3267  cat >conftest.$ac_ext <<_ACEOF
3268/* confdefs.h.  */
3269_ACEOF
3270cat confdefs.h >>conftest.$ac_ext
3271cat >>conftest.$ac_ext <<_ACEOF
3272/* end confdefs.h.  */
3273
3274int
3275main ()
3276{
3277#ifndef __GNUC__
3278       choke me
3279#endif
3280
3281  ;
3282  return 0;
3283}
3284_ACEOF
3285rm -f conftest.$ac_objext
3286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3287  (eval $ac_compile) 2>conftest.er1
3288  ac_status=$?
3289  grep -v '^ *+' conftest.er1 >conftest.err
3290  rm -f conftest.er1
3291  cat conftest.err >&5
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); } &&
3294         { ac_try='test -z "$ac_cxx_werror_flag"
3295                         || test ! -s conftest.err'
3296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297  (eval $ac_try) 2>&5
3298  ac_status=$?
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); }; } &&
3301         { ac_try='test -s conftest.$ac_objext'
3302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303  (eval $ac_try) 2>&5
3304  ac_status=$?
3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306  (exit $ac_status); }; }; then
3307  ac_compiler_gnu=yes
3308else
3309  echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312ac_compiler_gnu=no
3313fi
3314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3315ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3316
3317fi
3318echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3319echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3320GXX=`test $ac_compiler_gnu = yes && echo yes`
3321ac_test_CXXFLAGS=${CXXFLAGS+set}
3322ac_save_CXXFLAGS=$CXXFLAGS
3323CXXFLAGS="-g"
3324echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3325echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3326if test "${ac_cv_prog_cxx_g+set}" = set; then
3327  echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329  cat >conftest.$ac_ext <<_ACEOF
3330/* confdefs.h.  */
3331_ACEOF
3332cat confdefs.h >>conftest.$ac_ext
3333cat >>conftest.$ac_ext <<_ACEOF
3334/* end confdefs.h.  */
3335
3336int
3337main ()
3338{
3339
3340  ;
3341  return 0;
3342}
3343_ACEOF
3344rm -f conftest.$ac_objext
3345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346  (eval $ac_compile) 2>conftest.er1
3347  ac_status=$?
3348  grep -v '^ *+' conftest.er1 >conftest.err
3349  rm -f conftest.er1
3350  cat conftest.err >&5
3351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352  (exit $ac_status); } &&
3353         { ac_try='test -z "$ac_cxx_werror_flag"
3354                         || test ! -s conftest.err'
3355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356  (eval $ac_try) 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }; } &&
3360         { ac_try='test -s conftest.$ac_objext'
3361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362  (eval $ac_try) 2>&5
3363  ac_status=$?
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); }; }; then
3366  ac_cv_prog_cxx_g=yes
3367else
3368  echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
3370
3371ac_cv_prog_cxx_g=no
3372fi
3373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3374fi
3375echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3376echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3377if test "$ac_test_CXXFLAGS" = set; then
3378  CXXFLAGS=$ac_save_CXXFLAGS
3379elif test $ac_cv_prog_cxx_g = yes; then
3380  if test "$GXX" = yes; then
3381    CXXFLAGS="-g -O2"
3382  else
3383    CXXFLAGS="-g"
3384  fi
3385else
3386  if test "$GXX" = yes; then
3387    CXXFLAGS="-O2"
3388  else
3389    CXXFLAGS=
3390  fi
3391fi
3392for ac_declaration in \
3393   '' \
3394   'extern "C" void std::exit (int) throw (); using std::exit;' \
3395   'extern "C" void std::exit (int); using std::exit;' \
3396   'extern "C" void exit (int) throw ();' \
3397   'extern "C" void exit (int);' \
3398   'void exit (int);'
3399do
3400  cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h.  */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h.  */
3406$ac_declaration
3407#include <stdlib.h>
3408int
3409main ()
3410{
3411exit (42);
3412  ;
3413  return 0;
3414}
3415_ACEOF
3416rm -f conftest.$ac_objext
3417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418  (eval $ac_compile) 2>conftest.er1
3419  ac_status=$?
3420  grep -v '^ *+' conftest.er1 >conftest.err
3421  rm -f conftest.er1
3422  cat conftest.err >&5
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); } &&
3425         { ac_try='test -z "$ac_cxx_werror_flag"
3426                         || test ! -s conftest.err'
3427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428  (eval $ac_try) 2>&5
3429  ac_status=$?
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }; } &&
3432         { ac_try='test -s conftest.$ac_objext'
3433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434  (eval $ac_try) 2>&5
3435  ac_status=$?
3436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437  (exit $ac_status); }; }; then
3438  :
3439else
3440  echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443continue
3444fi
3445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3446  cat >conftest.$ac_ext <<_ACEOF
3447/* confdefs.h.  */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h.  */
3452$ac_declaration
3453int
3454main ()
3455{
3456exit (42);
3457  ;
3458  return 0;
3459}
3460_ACEOF
3461rm -f conftest.$ac_objext
3462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463  (eval $ac_compile) 2>conftest.er1
3464  ac_status=$?
3465  grep -v '^ *+' conftest.er1 >conftest.err
3466  rm -f conftest.er1
3467  cat conftest.err >&5
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); } &&
3470         { ac_try='test -z "$ac_cxx_werror_flag"
3471                         || test ! -s conftest.err'
3472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473  (eval $ac_try) 2>&5
3474  ac_status=$?
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); }; } &&
3477         { ac_try='test -s conftest.$ac_objext'
3478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479  (eval $ac_try) 2>&5
3480  ac_status=$?
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); }; }; then
3483  break
3484else
3485  echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488fi
3489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3490done
3491rm -f conftest*
3492if test -n "$ac_declaration"; then
3493  echo '#ifdef __cplusplus' >>confdefs.h
3494  echo $ac_declaration      >>confdefs.h
3495  echo '#endif'             >>confdefs.h
3496fi
3497
3498ac_ext=cc
3499ac_cpp='$CXXCPP $CPPFLAGS'
3500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3503
3504
3505#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3506#thus, we test here whether $CXX is actually working
3507ac_ext=cc
3508ac_cpp='$CXXCPP $CPPFLAGS'
3509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3512
3513echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3514echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3515cat >conftest.$ac_ext <<_ACEOF
3516/* confdefs.h.  */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h.  */
3521
3522int
3523main ()
3524{
3525int i=0;
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530rm -f conftest.$ac_objext
3531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532  (eval $ac_compile) 2>conftest.er1
3533  ac_status=$?
3534  grep -v '^ *+' conftest.er1 >conftest.err
3535  rm -f conftest.er1
3536  cat conftest.err >&5
3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); } &&
3539         { ac_try='test -z "$ac_cxx_werror_flag"
3540                         || test ! -s conftest.err'
3541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542  (eval $ac_try) 2>&5
3543  ac_status=$?
3544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545  (exit $ac_status); }; } &&
3546         { ac_try='test -s conftest.$ac_objext'
3547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548  (eval $ac_try) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }; }; then
3552  echo "$as_me:$LINENO: result: yes" >&5
3553echo "${ECHO_T}yes" >&6
3554else
3555  echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558echo "$as_me:$LINENO: result: no" >&5
3559echo "${ECHO_T}no" >&6
3560   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3561echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3562   { (exit 1); exit 1; }; }
3563
3564fi
3565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566ac_ext=cc
3567ac_cpp='$CXXCPP $CPPFLAGS'
3568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3571
3572
3573# It seems that we need to cleanup something here for the Windows
3574case "$CXX" in
3575  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3576    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3577    mv confdefs.hh confdefs.h
3578    ;;
3579esac
3580
3581# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3582case "$CXX" in
3583  cl* | */cl* | CL* | */CL* )
3584    if test "$ac_cv_prog_cxx_g" = yes ; then
3585      ac_cv_prog_cxx_g=no
3586      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3587echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3588    fi ;;
3589esac
3590CXXFLAGS="$save_cxxflags"
3591
3592# Check if a project specific CXXFLAGS variable has been set
3593if test x$COIN_PRJCT != x; then
3594  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3595  if test x$coin_tmp = xset; then
3596    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3597  fi
3598fi
3599
3600if test x"$CXXFLAGS" = x; then
3601
3602# ToDo decide whether we want -DNDEBUG for optimization
3603  coin_add_cxxflags=
3604  coin_opt_cxxflags=
3605  coin_dbg_cxxflags=
3606  coin_warn_cxxflags=
3607
3608  if test "$GXX" = "yes"; then
3609    case "$CXX" in
3610      icpc* | */icpc*)
3611        ;;
3612      *)
3613# ToDo decide about unroll-loops
3614        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3615        coin_add_cxxflags="-pipe"
3616        coin_dbg_cxxflags="-g"
3617        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3618        case $build in
3619          *-darwin*)
3620            ;;
3621          *)
3622            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3623            ;;
3624        esac
3625
3626        case $enable_doscompile in
3627          mingw)
3628            CXXFLAGS="-mno-cygwin"
3629            cat >conftest.$ac_ext <<_ACEOF
3630/* confdefs.h.  */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h.  */
3635
3636int
3637main ()
3638{
3639int i=0; i++;
3640  ;
3641  return 0;
3642}
3643_ACEOF
3644rm -f conftest.$ac_objext conftest$ac_exeext
3645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3646  (eval $ac_link) 2>conftest.er1
3647  ac_status=$?
3648  grep -v '^ *+' conftest.er1 >conftest.err
3649  rm -f conftest.er1
3650  cat conftest.err >&5
3651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652  (exit $ac_status); } &&
3653         { ac_try='test -z "$ac_cxx_werror_flag"
3654                         || test ! -s conftest.err'
3655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656  (eval $ac_try) 2>&5
3657  ac_status=$?
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); }; } &&
3660         { ac_try='test -s conftest$ac_exeext'
3661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662  (eval $ac_try) 2>&5
3663  ac_status=$?
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); }; }; then
3666  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3667else
3668  echo "$as_me: failed program was:" >&5
3669sed 's/^/| /' conftest.$ac_ext >&5
3670
3671fi
3672rm -f conftest.err conftest.$ac_objext \
3673      conftest$ac_exeext conftest.$ac_ext
3674            CXXFLAGS=
3675          ;;
3676        esac
3677    esac
3678  fi
3679
3680# Note that we do not need to cover GCC in the following tests.
3681
3682  if test -z "$coin_opt_cxxflags"; then
3683    case $build in
3684      *-cygwin* | *-mingw*)
3685        case "$CXX" in
3686          cl* | */cl* | CL* | */CL*)
3687            # The MT and MTd options are mutually exclusive
3688            coin_opt_cxxflags='-MT -O2'
3689            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3690            coin_dbg_cxxflags='-MTd'
3691            ;;
3692          icl* | */icl* | ICL* | */ICL*)
3693            # The MT and MTd options are mutually exclusive
3694            coin_opt_cxxflags='-MT -Ox'
3695            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3696            coin_dbg_cxxflags='-MTd -debug'
3697            ;;
3698        esac
3699        ;;
3700      *-linux-*)
3701        case "$CXX" in
3702          icpc* | */icpc*)
3703            coin_opt_cxxflags="-O3 -ip -mp1"
3704            coin_add_cxxflags=""
3705            coin_dbg_cxxflags="-g"
3706            # Check if -i_dynamic is necessary (for new glibc library)
3707            CXXFLAGS=
3708            cat >conftest.$ac_ext <<_ACEOF
3709/* confdefs.h.  */
3710_ACEOF
3711cat confdefs.h >>conftest.$ac_ext
3712cat >>conftest.$ac_ext <<_ACEOF
3713/* end confdefs.h.  */
3714
3715int
3716main ()
3717{
3718int i=0; i++;
3719  ;
3720  return 0;
3721}
3722_ACEOF
3723rm -f conftest.$ac_objext conftest$ac_exeext
3724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725  (eval $ac_link) 2>conftest.er1
3726  ac_status=$?
3727  grep -v '^ *+' conftest.er1 >conftest.err
3728  rm -f conftest.er1
3729  cat conftest.err >&5
3730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731  (exit $ac_status); } &&
3732         { ac_try='test -z "$ac_cxx_werror_flag"
3733                         || test ! -s conftest.err'
3734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735  (eval $ac_try) 2>&5
3736  ac_status=$?
3737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738  (exit $ac_status); }; } &&
3739         { ac_try='test -s conftest$ac_exeext'
3740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741  (eval $ac_try) 2>&5
3742  ac_status=$?
3743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744  (exit $ac_status); }; }; then
3745  :
3746else
3747  echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3751fi
3752rm -f conftest.err conftest.$ac_objext \
3753      conftest$ac_exeext conftest.$ac_ext
3754            ;;
3755          pgCC* | */pgCC*)
3756            coin_opt_cxxflags="-fast"
3757            coin_add_cxxflags="-Kieee -pc 64"
3758            coin_dbg_cxxflags="-g"
3759            ;;
3760        esac
3761        ;;
3762      *-ibm-*)
3763        case "$CXX" in
3764          xlC* | */xlC* | mpxlC* | */mpxlC*)
3765            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3766            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3767            coin_dbg_cxxflags="-g"
3768            ;;
3769        esac
3770        ;;
3771      *-hp-*)
3772        case "$CXX" in
3773          aCC* | */aCC* )
3774            coin_opt_cxxflags="-O"
3775            coin_add_cxxflags="-AA"
3776            coin_dbg_cxxflags="-g"
3777            ;;
3778        esac
3779        ;;
3780      *-*-solaris*)
3781          coin_opt_cxxflags="-O4"
3782          coin_dbg_cxxflags="-g"
3783        ;;
3784    esac
3785  fi
3786
3787# Generic flag settings. If these don't work, add a case above.
3788
3789  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3790    coin_dbg_cxxflags="-g"
3791  fi
3792
3793  if test -z "$coin_opt_cxxflags"; then
3794    # Try if -O option works if nothing else is set
3795    CXXFLAGS=-O
3796    cat >conftest.$ac_ext <<_ACEOF
3797/* confdefs.h.  */
3798_ACEOF
3799cat confdefs.h >>conftest.$ac_ext
3800cat >>conftest.$ac_ext <<_ACEOF
3801/* end confdefs.h.  */
3802
3803int
3804main ()
3805{
3806int i=0; i++;
3807  ;
3808  return 0;
3809}
3810_ACEOF
3811rm -f conftest.$ac_objext conftest$ac_exeext
3812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3813  (eval $ac_link) 2>conftest.er1
3814  ac_status=$?
3815  grep -v '^ *+' conftest.er1 >conftest.err
3816  rm -f conftest.er1
3817  cat conftest.err >&5
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); } &&
3820         { ac_try='test -z "$ac_cxx_werror_flag"
3821                         || test ! -s conftest.err'
3822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823  (eval $ac_try) 2>&5
3824  ac_status=$?
3825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826  (exit $ac_status); }; } &&
3827         { ac_try='test -s conftest$ac_exeext'
3828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829  (eval $ac_try) 2>&5
3830  ac_status=$?
3831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832  (exit $ac_status); }; }; then
3833  coin_opt_cxxflags="-O"
3834else
3835  echo "$as_me: failed program was:" >&5
3836sed 's/^/| /' conftest.$ac_ext >&5
3837
3838fi
3839rm -f conftest.err conftest.$ac_objext \
3840      conftest$ac_exeext conftest.$ac_ext
3841  fi
3842
3843  # if PM doesn't want the warning messages, take them out
3844  if test x"$coin_skip_warn_cxxflags" = xyes; then
3845    coin_warn_cxxflags=
3846  fi
3847
3848# Do final setup of flags based on values determined above.
3849
3850  if test x${DBG_CXXFLAGS+set} != xset; then
3851    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3852  fi
3853  if test x${OPT_CXXFLAGS+set} != xset; then
3854    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3855  fi
3856
3857  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3858  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3859
3860  if test "$coin_debug_compile" = "true"; then
3861    CXXFLAGS="$DBG_CXXFLAGS"
3862  else
3863    CXXFLAGS="$OPT_CXXFLAGS"
3864  fi
3865
3866# Handle the case where CXXFLAGS was set externally.
3867else
3868  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3869  if test x${DBG_CXXFLAGS+set} != xset; then
3870    DBG_CXXFLAGS="$CXXFLAGS"
3871  fi
3872  if test x${OPT_CXXFLAGS+set} != xset; then
3873    OPT_CXXFLAGS="$CXXFLAGS"
3874  fi
3875fi
3876
3877# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3878
3879case "$CXXFLAGS" in
3880  *-mno-cygwin*)
3881    if test x${CPPFLAGS+set} != xset ; then
3882      CPPFLAGS="-mno-cygwin"
3883    else
3884      case "$CPPFLAGS" in
3885        *-mno-cygwin*)
3886          ;;
3887        *)
3888          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3889          ;;
3890      esac
3891    fi ;;
3892esac
3893
3894# Try if CXXFLAGS works
3895save_CXXFLAGS="$CXXFLAGS"
3896cat >conftest.$ac_ext <<_ACEOF
3897/* confdefs.h.  */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
3901/* end confdefs.h.  */
3902
3903int
3904main ()
3905{
3906int i=0; i++;
3907  ;
3908  return 0;
3909}
3910_ACEOF
3911rm -f conftest.$ac_objext conftest$ac_exeext
3912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3913  (eval $ac_link) 2>conftest.er1
3914  ac_status=$?
3915  grep -v '^ *+' conftest.er1 >conftest.err
3916  rm -f conftest.er1
3917  cat conftest.err >&5
3918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919  (exit $ac_status); } &&
3920         { ac_try='test -z "$ac_cxx_werror_flag"
3921                         || test ! -s conftest.err'
3922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923  (eval $ac_try) 2>&5
3924  ac_status=$?
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); }; } &&
3927         { ac_try='test -s conftest$ac_exeext'
3928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929  (eval $ac_try) 2>&5
3930  ac_status=$?
3931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932  (exit $ac_status); }; }; then
3933  :
3934else
3935  echo "$as_me: failed program was:" >&5
3936sed 's/^/| /' conftest.$ac_ext >&5
3937
3938CXXFLAGS=
3939fi
3940rm -f conftest.err conftest.$ac_objext \
3941      conftest$ac_exeext conftest.$ac_ext
3942if test -z "$CXXFLAGS"; then
3943  { 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
3944echo "$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;}
3945  CXXFLAGS='-O'
3946  cat >conftest.$ac_ext <<_ACEOF
3947/* confdefs.h.  */
3948_ACEOF
3949cat confdefs.h >>conftest.$ac_ext
3950cat >>conftest.$ac_ext <<_ACEOF
3951/* end confdefs.h.  */
3952
3953int
3954main ()
3955{
3956int i=0; i++;
3957  ;
3958  return 0;
3959}
3960_ACEOF
3961rm -f conftest.$ac_objext conftest$ac_exeext
3962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3963  (eval $ac_link) 2>conftest.er1
3964  ac_status=$?
3965  grep -v '^ *+' conftest.er1 >conftest.err
3966  rm -f conftest.er1
3967  cat conftest.err >&5
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); } &&
3970         { ac_try='test -z "$ac_cxx_werror_flag"
3971                         || test ! -s conftest.err'
3972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973  (eval $ac_try) 2>&5
3974  ac_status=$?
3975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976  (exit $ac_status); }; } &&
3977         { ac_try='test -s conftest$ac_exeext'
3978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979  (eval $ac_try) 2>&5
3980  ac_status=$?
3981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982  (exit $ac_status); }; }; then
3983  :
3984else
3985  echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988CXXFLAGS=
3989fi
3990rm -f conftest.err conftest.$ac_objext \
3991      conftest$ac_exeext conftest.$ac_ext
3992  if test -z "$CXXFLAGS"; then
3993    { 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
3994echo "$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;}
3995  fi
3996fi
3997
3998{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3999echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4000
4001
4002if test x"$MPICXX" = x; then :; else
4003  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4004echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4005  CXX="$MPICXX"
4006fi
4007
4008case "$CXX" in
4009  cl* | */cl* | CL* | */CL* )
4010    case $build in
4011  *-mingw*)
4012    if test "${LD+set}" = set; then :; else
4013      LD=link
4014    fi
4015    ;;
4016 esac
4017 case $enable_doscompile in
4018   msvc)
4019     if test "x${LD+set}" = xset; then :; else
4020       LD=link
4021     fi
4022     ;;
4023 esac
4024
4025    ;;
4026esac
4027
4028ac_ext=c
4029ac_cpp='$CPP $CPPFLAGS'
4030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033
4034
4035
4036# Get the name of the Fortran compiler and appropriate compiler options
4037case $build in
4038  *-cygwin* | *-mingw*)
4039     if test "$enable_doscompile" = msvc ; then
4040       coin_f77_comps="ifort fl32 compile_f2c"
4041     else
4042       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
4043     fi ;;
4044  *-*-solaris*)
4045     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4046  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
4047 esac
4048
4049
4050
4051
4052
4053
4054ac_ext=f
4055ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4056ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4058
4059
4060
4061
4062
4063
4064coin_has_f77=yes
4065
4066save_fflags="$FFLAGS"
4067
4068# We delete the cached value, since the test might not have been
4069# performed with our choice of compilers earlier
4070$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4071
4072# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4073# coin_f77_comps to see if there's a program that matches one of the names.
4074# If there's no such program, F77 = unavailable. If we match the name,
4075# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4076# compiler.
4077# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4078
4079
4080{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4081echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4082for ac_prog in $coin_f77_comps
4083do
4084  # Extract the first word of "$ac_prog", so it can be a program name with args.
4085set dummy $ac_prog; ac_word=$2
4086echo "$as_me:$LINENO: checking for $ac_word" >&5
4087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088if test "${ac_cv_prog_F77+set}" = set; then
4089  echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091  if test -n "$F77"; then
4092  ac_cv_prog_F77="$F77" # Let the user override the test.
4093else
4094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095for as_dir in $PATH
4096do
4097  IFS=$as_save_IFS
4098  test -z "$as_dir" && as_dir=.
4099  for ac_exec_ext in '' $ac_executable_extensions; do
4100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101    ac_cv_prog_F77="$ac_prog"
4102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103    break 2
4104  fi
4105done
4106done
4107
4108fi
4109fi
4110F77=$ac_cv_prog_F77
4111if test -n "$F77"; then
4112  echo "$as_me:$LINENO: result: $F77" >&5
4113echo "${ECHO_T}$F77" >&6
4114else
4115  echo "$as_me:$LINENO: result: no" >&5
4116echo "${ECHO_T}no" >&6
4117fi
4118
4119  test -n "$F77" && break
4120done
4121test -n "$F77" || F77="unavailable"
4122
4123
4124if test "$F77" != "unavailable" ; then
4125  ac_ext=f
4126ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4127ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4129if test -n "$ac_tool_prefix"; then
4130  for ac_prog in $coin_f77_comps
4131  do
4132    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4133set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4134echo "$as_me:$LINENO: checking for $ac_word" >&5
4135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4136if test "${ac_cv_prog_F77+set}" = set; then
4137  echo $ECHO_N "(cached) $ECHO_C" >&6
4138else
4139  if test -n "$F77"; then
4140  ac_cv_prog_F77="$F77" # Let the user override the test.
4141else
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH
4144do
4145  IFS=$as_save_IFS
4146  test -z "$as_dir" && as_dir=.
4147  for ac_exec_ext in '' $ac_executable_extensions; do
4148  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4149    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151    break 2
4152  fi
4153done
4154done
4155
4156fi
4157fi
4158F77=$ac_cv_prog_F77
4159if test -n "$F77"; then
4160  echo "$as_me:$LINENO: result: $F77" >&5
4161echo "${ECHO_T}$F77" >&6
4162else
4163  echo "$as_me:$LINENO: result: no" >&5
4164echo "${ECHO_T}no" >&6
4165fi
4166
4167    test -n "$F77" && break
4168  done
4169fi
4170if test -z "$F77"; then
4171  ac_ct_F77=$F77
4172  for ac_prog in $coin_f77_comps
4173do
4174  # Extract the first word of "$ac_prog", so it can be a program name with args.
4175set dummy $ac_prog; ac_word=$2
4176echo "$as_me:$LINENO: checking for $ac_word" >&5
4177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4179  echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181  if test -n "$ac_ct_F77"; then
4182  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4183else
4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187  IFS=$as_save_IFS
4188  test -z "$as_dir" && as_dir=.
4189  for ac_exec_ext in '' $ac_executable_extensions; do
4190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191    ac_cv_prog_ac_ct_F77="$ac_prog"
4192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193    break 2
4194  fi
4195done
4196done
4197
4198fi
4199fi
4200ac_ct_F77=$ac_cv_prog_ac_ct_F77
4201if test -n "$ac_ct_F77"; then
4202  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4203echo "${ECHO_T}$ac_ct_F77" >&6
4204else
4205  echo "$as_me:$LINENO: result: no" >&5
4206echo "${ECHO_T}no" >&6
4207fi
4208
4209  test -n "$ac_ct_F77" && break
4210done
4211
4212  F77=$ac_ct_F77
4213fi
4214
4215
4216# Provide some information about the compiler.
4217echo "$as_me:4217:" \
4218     "checking for Fortran 77 compiler version" >&5
4219ac_compiler=`set X $ac_compile; echo $2`
4220{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4221  (eval $ac_compiler --version </dev/null >&5) 2>&5
4222  ac_status=$?
4223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224  (exit $ac_status); }
4225{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4226  (eval $ac_compiler -v </dev/null >&5) 2>&5
4227  ac_status=$?
4228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229  (exit $ac_status); }
4230{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4231  (eval $ac_compiler -V </dev/null >&5) 2>&5
4232  ac_status=$?
4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234  (exit $ac_status); }
4235rm -f a.out
4236
4237# If we don't use `.F' as extension, the preprocessor is not run on the
4238# input file.  (Note that this only needs to work for GNU compilers.)
4239ac_save_ext=$ac_ext
4240ac_ext=F
4241echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4242echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4243if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4244  echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246  cat >conftest.$ac_ext <<_ACEOF
4247      program main
4248#ifndef __GNUC__
4249       choke me
4250#endif
4251
4252      end
4253_ACEOF
4254rm -f conftest.$ac_objext
4255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256  (eval $ac_compile) 2>conftest.er1
4257  ac_status=$?
4258  grep -v '^ *+' conftest.er1 >conftest.err
4259  rm -f conftest.er1
4260  cat conftest.err >&5
4261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262  (exit $ac_status); } &&
4263         { ac_try='test -z "$ac_f77_werror_flag"
4264                         || test ! -s conftest.err'
4265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266  (eval $ac_try) 2>&5
4267  ac_status=$?
4268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269  (exit $ac_status); }; } &&
4270         { ac_try='test -s conftest.$ac_objext'
4271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272  (eval $ac_try) 2>&5
4273  ac_status=$?
4274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275  (exit $ac_status); }; }; then
4276  ac_compiler_gnu=yes
4277else
4278  echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281ac_compiler_gnu=no
4282fi
4283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4284ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4285
4286fi
4287echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4288echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4289ac_ext=$ac_save_ext
4290ac_test_FFLAGS=${FFLAGS+set}
4291ac_save_FFLAGS=$FFLAGS
4292FFLAGS=
4293echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4294echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4295if test "${ac_cv_prog_f77_g+set}" = set; then
4296  echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298  FFLAGS=-g
4299cat >conftest.$ac_ext <<_ACEOF
4300      program main
4301
4302      end
4303_ACEOF
4304rm -f conftest.$ac_objext
4305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306  (eval $ac_compile) 2>conftest.er1
4307  ac_status=$?
4308  grep -v '^ *+' conftest.er1 >conftest.err
4309  rm -f conftest.er1
4310  cat conftest.err >&5
4311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312  (exit $ac_status); } &&
4313         { ac_try='test -z "$ac_f77_werror_flag"
4314                         || test ! -s conftest.err'
4315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316  (eval $ac_try) 2>&5
4317  ac_status=$?
4318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319  (exit $ac_status); }; } &&
4320         { ac_try='test -s conftest.$ac_objext'
4321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322  (eval $ac_try) 2>&5
4323  ac_status=$?
4324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325  (exit $ac_status); }; }; then
4326  ac_cv_prog_f77_g=yes
4327else
4328  echo "$as_me: failed program was:" >&5
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
4331ac_cv_prog_f77_g=no
4332fi
4333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334
4335fi
4336echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4337echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4338if test "$ac_test_FFLAGS" = set; then
4339  FFLAGS=$ac_save_FFLAGS
4340elif test $ac_cv_prog_f77_g = yes; then
4341  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4342    FFLAGS="-g -O2"
4343  else
4344    FFLAGS="-g"
4345  fi
4346else
4347  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4348    FFLAGS="-O2"
4349  else
4350    FFLAGS=
4351  fi
4352fi
4353
4354G77=`test $ac_compiler_gnu = yes && echo yes`
4355ac_ext=f
4356ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4357ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4359
4360else
4361  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4362echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4363fi
4364
4365FFLAGS="$save_fflags"
4366
4367# Check if a project specific FFLAGS variable has been set
4368if test x$COIN_PRJCT != x; then
4369  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4370  if test x$coin_tmp = xset; then
4371    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4372  fi
4373fi
4374
4375if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4376
4377  coin_add_fflags=
4378  coin_opt_fflags=
4379  coin_dbg_fflags=
4380  coin_warn_fflags=
4381
4382  if test "$G77" = "yes"; then
4383    coin_opt_fflags="-O3 -fomit-frame-pointer"
4384    coin_add_fflags="-pipe"
4385    coin_dbg_fflags="-g"
4386    case $enable_doscompile in
4387      mingw)
4388        FFLAGS="-mno-cygwin"
4389        cat >conftest.$ac_ext <<_ACEOF
4390      program main
4391      write(*,*) 'Hello world'
4392      end
4393_ACEOF
4394rm -f conftest.$ac_objext conftest$ac_exeext
4395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4396  (eval $ac_link) 2>conftest.er1
4397  ac_status=$?
4398  grep -v '^ *+' conftest.er1 >conftest.err
4399  rm -f conftest.er1
4400  cat conftest.err >&5
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); } &&
4403         { ac_try='test -z "$ac_f77_werror_flag"
4404                         || test ! -s conftest.err'
4405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406  (eval $ac_try) 2>&5
4407  ac_status=$?
4408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409  (exit $ac_status); }; } &&
4410         { ac_try='test -s conftest$ac_exeext'
4411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412  (eval $ac_try) 2>&5
4413  ac_status=$?
4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415  (exit $ac_status); }; }; then
4416  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4417else
4418  echo "$as_me: failed program was:" >&5
4419sed 's/^/| /' conftest.$ac_ext >&5
4420
4421fi
4422rm -f conftest.err conftest.$ac_objext \
4423      conftest$ac_exeext conftest.$ac_ext
4424        FFLAGS=
4425      ;;
4426    esac
4427  else
4428    case $build in
4429      *-cygwin* | *-mingw*)
4430        case $F77 in
4431          ifort* | */ifort* | IFORT* | */IFORT* )
4432            coin_opt_fflags='-MT -O3'
4433            coin_add_fflags='-fpp -nologo'
4434            coin_dbg_fflags='-MTd -debug'
4435          ;;
4436          compile_f2c*)
4437            coin_opt_fflags='-MT -O2'
4438            coin_add_fflags='-nologo -wd4996'
4439            coin_dbg_fflags='-MTd'
4440          ;;
4441        esac
4442        ;;
4443      *-linux-*)
4444        case $F77 in
4445          ifc* | */ifc* | ifort* | */ifort*)
4446            coin_opt_fflags="-O3 -ip"
4447            coin_add_fflags="-cm -w90 -w95"
4448            coin_dbg_fflags="-g -CA -CB -CS"
4449            # Check if -i_dynamic is necessary (for new glibc library)
4450            FFLAGS=
4451            cat >conftest.$ac_ext <<_ACEOF
4452      program main
4453      write(*,*) 'Hello world'
4454      end
4455_ACEOF
4456rm -f conftest.$ac_objext conftest$ac_exeext
4457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458  (eval $ac_link) 2>conftest.er1
4459  ac_status=$?
4460  grep -v '^ *+' conftest.er1 >conftest.err
4461  rm -f conftest.er1
4462  cat conftest.err >&5
4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464  (exit $ac_status); } &&
4465         { ac_try='test -z "$ac_f77_werror_flag"
4466                         || test ! -s conftest.err'
4467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468  (eval $ac_try) 2>&5
4469  ac_status=$?
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); }; } &&
4472         { ac_try='test -s conftest$ac_exeext'
4473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474  (eval $ac_try) 2>&5
4475  ac_status=$?
4476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477  (exit $ac_status); }; }; then
4478  :
4479else
4480  echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483coin_add_fflags="-i_dynamic $coin_add_fflags"
4484fi
4485rm -f conftest.err conftest.$ac_objext \
4486      conftest$ac_exeext conftest.$ac_ext
4487            ;;
4488          pgf77* | */pgf77* | pgf90* | */pgf90*)
4489            coin_opt_fflags="-fast"
4490            coin_add_fflags="-Kieee -pc 64"
4491            coin_dbg_fflags="-g"
4492          ;;
4493        esac
4494        ;;
4495      *-ibm-*)
4496        case "$F77" in
4497          xlf* | */xlf* | mpxlf* | */mpxlf* )
4498            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4499            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4500            coin_dbg_fflags="-g -C"
4501            ;;
4502        esac
4503        ;;
4504      *-hp-*)
4505        coin_opt_fflags="+O3"
4506        coin_add_fflags="+U77"
4507        coin_dbg_fflags="-C -g"
4508        ;;
4509      *-*-solaris*)
4510        coin_opt_fflags="-O4"
4511        coin_dbg_fflags="-g"
4512        ;;
4513      *-sgi-*)
4514        coin_opt_fflags="-O5 -OPT:Olimit=0"
4515        coin_dbg_fflags="-g"
4516        ;;
4517    esac
4518  fi
4519
4520  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4521    coin_dbg_fflags="-g"
4522  fi
4523
4524  if test -z "$coin_opt_fflags"; then
4525    # Try if -O option works if nothing else is set
4526    FFLAGS=-O
4527    cat >conftest.$ac_ext <<_ACEOF
4528      program main
4529      integer i
4530      end
4531_ACEOF
4532rm -f conftest.$ac_objext conftest$ac_exeext
4533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4534  (eval $ac_link) 2>conftest.er1
4535  ac_status=$?
4536  grep -v '^ *+' conftest.er1 >conftest.err
4537  rm -f conftest.er1
4538  cat conftest.err >&5
4539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540  (exit $ac_status); } &&
4541         { ac_try='test -z "$ac_f77_werror_flag"
4542                         || test ! -s conftest.err'
4543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544  (eval $ac_try) 2>&5
4545  ac_status=$?
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); }; } &&
4548         { ac_try='test -s conftest$ac_exeext'
4549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550  (eval $ac_try) 2>&5
4551  ac_status=$?
4552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553  (exit $ac_status); }; }; then
4554  coin_opt_fflags="-O"
4555else
4556  echo "$as_me: failed program was:" >&5
4557sed 's/^/| /' conftest.$ac_ext >&5
4558
4559fi
4560rm -f conftest.err conftest.$ac_objext \
4561      conftest$ac_exeext conftest.$ac_ext
4562  fi
4563
4564  # if PM doesn't want the warning messages, take them out
4565  if test x"$coin_skip_warn_fflags" = xyes; then
4566    coin_warn_fflags=
4567  fi
4568
4569  if test x${DBG_FFLAGS+set} != xset; then
4570    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4571  fi
4572  if test x${OPT_FFLAGS+set} != xset; then
4573    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4574  fi
4575
4576  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4577  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4578
4579  if test "$coin_debug_compile" = "true"; then
4580    FFLAGS="$DBG_FFLAGS"
4581  else
4582    FFLAGS="$OPT_FFLAGS"
4583  fi
4584else
4585  FFLAGS="$FFLAGS $ADD_FFLAGS"
4586  if test x${DBG_FFLAGS+set} != xset; then
4587    DBG_FFLAGS="$FFLAGS"
4588  fi
4589  if test x${OPT_FFLAGS+set} != xset; then
4590    OPT_FFLAGS="$FFLAGS"
4591  fi
4592fi
4593
4594# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4595case "$FFLAGS" in
4596  *-mno-cygwin*)
4597    if test x${CPPFLAGS+set} != xset ; then
4598      CPPFLAGS="-mno-cygwin"
4599    else
4600      case "$CPPFLAGS" in
4601        *-mno-cygwin*)
4602          ;;
4603        *)
4604          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4605          ;;
4606      esac
4607    fi ;;
4608esac
4609
4610# Try if FFLAGS works
4611if test "$F77" != "unavailable" ; then
4612  cat >conftest.$ac_ext <<_ACEOF
4613      program main
4614      integer i
4615      end
4616_ACEOF
4617rm -f conftest.$ac_objext conftest$ac_exeext
4618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619  (eval $ac_link) 2>conftest.er1
4620  ac_status=$?
4621  grep -v '^ *+' conftest.er1 >conftest.err
4622  rm -f conftest.er1
4623  cat conftest.err >&5
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); } &&
4626         { ac_try='test -z "$ac_f77_werror_flag"
4627                         || test ! -s conftest.err'
4628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629  (eval $ac_try) 2>&5
4630  ac_status=$?
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); }; } &&
4633         { ac_try='test -s conftest$ac_exeext'
4634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635  (eval $ac_try) 2>&5
4636  ac_status=$?
4637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638  (exit $ac_status); }; }; then
4639  :
4640else
4641  echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644FFLAGS=
4645fi
4646rm -f conftest.err conftest.$ac_objext \
4647      conftest$ac_exeext conftest.$ac_ext
4648  if test -z "$FFLAGS"; then
4649    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4650echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4651    FFLAGS='-O'
4652    cat >conftest.$ac_ext <<_ACEOF
4653      program main
4654      integer i
4655      end
4656_ACEOF
4657rm -f conftest.$ac_objext conftest$ac_exeext
4658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659  (eval $ac_link) 2>conftest.er1
4660  ac_status=$?
4661  grep -v '^ *+' conftest.er1 >conftest.err
4662  rm -f conftest.er1
4663  cat conftest.err >&5
4664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665  (exit $ac_status); } &&
4666         { ac_try='test -z "$ac_f77_werror_flag"
4667                         || test ! -s conftest.err'
4668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669  (eval $ac_try) 2>&5
4670  ac_status=$?
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }; } &&
4673         { ac_try='test -s conftest$ac_exeext'
4674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675  (eval $ac_try) 2>&5
4676  ac_status=$?
4677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678  (exit $ac_status); }; }; then
4679  :
4680else
4681  echo "$as_me: failed program was:" >&5
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
4684FFLAGS=
4685fi
4686rm -f conftest.err conftest.$ac_objext \
4687      conftest$ac_exeext conftest.$ac_ext
4688    if test -z "$FFLAGS"; then
4689      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4690echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4691    fi
4692  fi
4693fi
4694
4695{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4696echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4697
4698
4699if test x"$MPIF77" = x; then :; else
4700  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4701echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4702  F77="$MPIF77"
4703fi
4704
4705case "$F77" in
4706  ifort* | */ifort* | IFORT* | */IFORT*)
4707    case $build in
4708  *-mingw*)
4709    if test "${LD+set}" = set; then :; else
4710      LD=link
4711    fi
4712    ;;
4713 esac
4714 case $enable_doscompile in
4715   msvc)
4716     if test "x${LD+set}" = xset; then :; else
4717       LD=link
4718     fi
4719     ;;
4720 esac
4721
4722    ;;
4723esac
4724
4725ac_ext=c
4726ac_cpp='$CPP $CPPFLAGS'
4727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730
4731
4732
4733# Initialize automake and libtool
4734# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4735{
4736
4737
4738
4739# START
4740
4741# Test if force_shared has been set
4742if test "x" = xforce_shared; then
4743  if test x$enable_shared = xno; then
4744    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4745echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4746   { (exit 1); exit 1; }; }
4747  fi
4748  enable_shared=yes;
4749else
4750  # On Cygwin and AIX, building DLLs doesn't work
4751  case $build in
4752    *-cygwin*)
4753      coin_disable_shared=yes
4754      platform=Cygwin
4755    ;;
4756    *-aix*)
4757      coin_disable_shared=yes
4758      platform=AIX
4759    ;;
4760    *-mingw*)
4761      coin_disable_shared=yes
4762      platform="Msys"
4763#      case "$CXX" in
4764#        cl*)
4765#          coin_disable_shared=yes
4766#          platform="Msys with cl"
4767#      ;;
4768#      esac
4769    ;;
4770  esac
4771fi
4772if test x"$coin_disable_shared" = xyes; then
4773  if test x"$enable_shared" = xyes; then
4774    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4775echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4776  fi
4777  enable_shared=no
4778fi
4779# By default, we only want the shared objects to be compiled
4780# Check whether --enable-static or --disable-static was given.
4781if test "${enable_static+set}" = set; then
4782  enableval="$enable_static"
4783  p=${PACKAGE-default}
4784    case $enableval in
4785    yes) enable_static=yes ;;
4786    no) enable_static=no ;;
4787    *)
4788     enable_static=no
4789      # Look at the argument we got.  We use all the common list separators.
4790      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4791      for pkg in $enableval; do
4792        IFS="$lt_save_ifs"
4793        if test "X$pkg" = "X$p"; then
4794          enable_static=yes
4795        fi
4796      done
4797      IFS="$lt_save_ifs"
4798      ;;
4799    esac
4800else
4801  enable_static=no
4802fi;
4803
4804
4805
4806
4807# Initialize automake
4808echo "$as_me:$LINENO: checking for egrep" >&5
4809echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4810if test "${ac_cv_prog_egrep+set}" = set; then
4811  echo $ECHO_N "(cached) $ECHO_C" >&6
4812else
4813  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4814    then ac_cv_prog_egrep='grep -E'
4815    else ac_cv_prog_egrep='egrep'
4816    fi
4817fi
4818echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4819echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4820 EGREP=$ac_cv_prog_egrep
4821
4822
4823am__api_version="1.9"
4824# Find a good install program.  We prefer a C program (faster),
4825# so one script is as good as another.  But avoid the broken or
4826# incompatible versions:
4827# SysV /etc/install, /usr/sbin/install
4828# SunOS /usr/etc/install
4829# IRIX /sbin/install
4830# AIX /bin/install
4831# AmigaOS /C/install, which installs bootblocks on floppy discs
4832# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4833# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4834# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4835# OS/2's system install, which has a completely different semantic
4836# ./install, which can be erroneously created by make from ./install.sh.
4837echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4838echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4839if test -z "$INSTALL"; then
4840if test "${ac_cv_path_install+set}" = set; then
4841  echo $ECHO_N "(cached) $ECHO_C" >&6
4842else
4843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH
4845do
4846  IFS=$as_save_IFS
4847  test -z "$as_dir" && as_dir=.
4848  # Account for people who put trailing slashes in PATH elements.
4849case $as_dir/ in
4850  ./ | .// | /cC/* | \
4851  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4852  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4853  /usr/ucb/* ) ;;
4854  *)
4855    # OSF1 and SCO ODT 3.0 have their own names for install.
4856    # Don't use installbsd from OSF since it installs stuff as root
4857    # by default.
4858    for ac_prog in ginstall scoinst install; do
4859      for ac_exec_ext in '' $ac_executable_extensions; do
4860        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4861          if test $ac_prog = install &&
4862            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4863            # AIX install.  It has an incompatible calling convention.
4864            :
4865          elif test $ac_prog = install &&
4866            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4867            # program-specific install script used by HP pwplus--don't use.
4868            :
4869          else
4870            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4871            break 3
4872          fi
4873        fi
4874      done
4875    done
4876    ;;
4877esac
4878done
4879
4880
4881fi
4882  if test "${ac_cv_path_install+set}" = set; then
4883    INSTALL=$ac_cv_path_install
4884  else
4885    # As a last resort, use the slow shell script.  We don't cache a
4886    # path for INSTALL within a source directory, because that will
4887    # break other packages using the cache if that directory is
4888    # removed, or if the path is relative.
4889    INSTALL=$ac_install_sh
4890  fi
4891fi
4892echo "$as_me:$LINENO: result: $INSTALL" >&5
4893echo "${ECHO_T}$INSTALL" >&6
4894
4895# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4896# It thinks the first close brace ends the variable substitution.
4897test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4898
4899test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4900
4901test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4902
4903echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4904echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4905# Just in case
4906sleep 1
4907echo timestamp > conftest.file
4908# Do `set' in a subshell so we don't clobber the current shell's
4909# arguments.  Must try -L first in case configure is actually a
4910# symlink; some systems play weird games with the mod time of symlinks
4911# (eg FreeBSD returns the mod time of the symlink's containing
4912# directory).
4913if (
4914   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4915   if test "$*" = "X"; then
4916      # -L didn't work.
4917      set X `ls -t $srcdir/configure conftest.file`
4918   fi
4919   rm -f conftest.file
4920   if test "$*" != "X $srcdir/configure conftest.file" \
4921      && test "$*" != "X conftest.file $srcdir/configure"; then
4922
4923      # If neither matched, then we have a broken ls.  This can happen
4924      # if, for instance, CONFIG_SHELL is bash and it inherits a
4925      # broken ls alias from the environment.  This has actually
4926      # happened.  Such a system could not be considered "sane".
4927      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4928alias in your environment" >&5
4929echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4930alias in your environment" >&2;}
4931   { (exit 1); exit 1; }; }
4932   fi
4933
4934   test "$2" = conftest.file
4935   )
4936then
4937   # Ok.
4938   :
4939else
4940   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4941Check your system clock" >&5
4942echo "$as_me: error: newly created file is older than distributed files!
4943Check your system clock" >&2;}
4944   { (exit 1); exit 1; }; }
4945fi
4946echo "$as_me:$LINENO: result: yes" >&5
4947echo "${ECHO_T}yes" >&6
4948test "$program_prefix" != NONE &&
4949  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4950# Use a double $ so make ignores it.
4951test "$program_suffix" != NONE &&
4952  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4953# Double any \ or $.  echo might interpret backslashes.
4954# By default was `s,x,x', remove it if useless.
4955cat <<\_ACEOF >conftest.sed
4956s/[\\$]/&&/g;s/;s,x,x,$//
4957_ACEOF
4958program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4959rm conftest.sed
4960
4961# expand $ac_aux_dir to an absolute path
4962am_aux_dir=`cd $ac_aux_dir && pwd`
4963
4964test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4965# Use eval to expand $SHELL
4966if eval "$MISSING --run true"; then
4967  am_missing_run="$MISSING --run "
4968else
4969  am_missing_run=
4970  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4971echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4972fi
4973
4974if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4975  # We used to keeping the `.' as first argument, in order to
4976  # allow $(mkdir_p) to be used without argument.  As in
4977  #   $(mkdir_p) $(somedir)
4978  # where $(somedir) is conditionally defined.  However this is wrong
4979  # for two reasons:
4980  #  1. if the package is installed by a user who cannot write `.'
4981  #     make install will fail,
4982  #  2. the above comment should most certainly read
4983  #     $(mkdir_p) $(DESTDIR)$(somedir)
4984  #     so it does not work when $(somedir) is undefined and
4985  #     $(DESTDIR) is not.
4986  #  To support the latter case, we have to write
4987  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4988  #  so the `.' trick is pointless.
4989  mkdir_p='mkdir -p --'
4990else
4991  # On NextStep and OpenStep, the `mkdir' command does not
4992  # recognize any option.  It will interpret all options as
4993  # directories to create, and then abort because `.' already
4994  # exists.
4995  for d in ./-p ./--version;
4996  do
4997    test -d $d && rmdir $d
4998  done
4999  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5000  if test -f "$ac_aux_dir/mkinstalldirs"; then
5001    mkdir_p='$(mkinstalldirs)'
5002  else
5003    mkdir_p='$(install_sh) -d'
5004  fi
5005fi
5006
5007for ac_prog in gawk mawk nawk awk
5008do
5009  # Extract the first word of "$ac_prog", so it can be a program name with args.
5010set dummy $ac_prog; ac_word=$2
5011echo "$as_me:$LINENO: checking for $ac_word" >&5
5012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013if test "${ac_cv_prog_AWK+set}" = set; then
5014  echo $ECHO_N "(cached) $ECHO_C" >&6
5015else
5016  if test -n "$AWK"; then
5017  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022  IFS=$as_save_IFS
5023  test -z "$as_dir" && as_dir=.
5024  for ac_exec_ext in '' $ac_executable_extensions; do
5025  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026    ac_cv_prog_AWK="$ac_prog"
5027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028    break 2
5029  fi
5030done
5031done
5032
5033fi
5034fi
5035AWK=$ac_cv_prog_AWK
5036if test -n "$AWK"; then
5037  echo "$as_me:$LINENO: result: $AWK" >&5
5038echo "${ECHO_T}$AWK" >&6
5039else
5040  echo "$as_me:$LINENO: result: no" >&5
5041echo "${ECHO_T}no" >&6
5042fi
5043
5044  test -n "$AWK" && break
5045done
5046
5047echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5048echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5049set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5050if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5051  echo $ECHO_N "(cached) $ECHO_C" >&6
5052else
5053  cat >conftest.make <<\_ACEOF
5054all:
5055        @echo 'ac_maketemp="$(MAKE)"'
5056_ACEOF
5057# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5058eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5059if test -n "$ac_maketemp"; then
5060  eval ac_cv_prog_make_${ac_make}_set=yes
5061else
5062  eval ac_cv_prog_make_${ac_make}_set=no
5063fi
5064rm -f conftest.make
5065fi
5066if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5067  echo "$as_me:$LINENO: result: yes" >&5
5068echo "${ECHO_T}yes" >&6
5069  SET_MAKE=
5070else
5071  echo "$as_me:$LINENO: result: no" >&5
5072echo "${ECHO_T}no" >&6
5073  SET_MAKE="MAKE=${MAKE-make}"
5074fi
5075
5076rm -rf .tst 2>/dev/null
5077mkdir .tst 2>/dev/null
5078if test -d .tst; then
5079  am__leading_dot=.
5080else
5081  am__leading_dot=_
5082fi
5083rmdir .tst 2>/dev/null
5084
5085DEPDIR="${am__leading_dot}deps"
5086
5087          ac_config_commands="$ac_config_commands depfiles"
5088
5089
5090am_make=${MAKE-make}
5091cat > confinc << 'END'
5092am__doit:
5093        @echo done
5094.PHONY: am__doit
5095END
5096# If we don't find an include directive, just comment out the code.
5097echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5098echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5099am__include="#"
5100am__quote=
5101_am_result=none
5102# First try GNU make style include.
5103echo "include confinc" > confmf
5104# We grep out `Entering directory' and `Leaving directory'
5105# messages which can occur if `w' ends up in MAKEFLAGS.
5106# In particular we don't look at `^make:' because GNU make might
5107# be invoked under some other name (usually "gmake"), in which
5108# case it prints its new name instead of `make'.
5109if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5110   am__include=include
5111   am__quote=
5112   _am_result=GNU
5113fi
5114# Now try BSD make style include.
5115if test "$am__include" = "#"; then
5116   echo '.include "confinc"' > confmf
5117   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5118      am__include=.include
5119      am__quote="\""
5120      _am_result=BSD
5121   fi
5122fi
5123
5124
5125echo "$as_me:$LINENO: result: $_am_result" >&5
5126echo "${ECHO_T}$_am_result" >&6
5127rm -f confinc confmf
5128
5129# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5130if test "${enable_dependency_tracking+set}" = set; then
5131  enableval="$enable_dependency_tracking"
5132
5133fi;
5134if test "x$enable_dependency_tracking" != xno; then
5135  am_depcomp="$ac_aux_dir/depcomp"
5136  AMDEPBACKSLASH='\'
5137fi
5138
5139
5140if test "x$enable_dependency_tracking" != xno; then
5141  AMDEP_TRUE=
5142  AMDEP_FALSE='#'
5143else
5144  AMDEP_TRUE='#'
5145  AMDEP_FALSE=
5146fi
5147
5148
5149
5150
5151
5152# AC_MSG_NOTICE([Beginning automake initialisation.])
5153# Stuff for automake
5154# test to see if srcdir already configured
5155if test "`cd $srcdir && pwd`" != "`pwd`" &&
5156   test -f $srcdir/config.status; then
5157  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5158echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5159   { (exit 1); exit 1; }; }
5160fi
5161
5162# test whether we have cygpath
5163if test -z "$CYGPATH_W"; then
5164  if (cygpath --version) >/dev/null 2>/dev/null; then
5165    CYGPATH_W='cygpath -w'
5166  else
5167    CYGPATH_W=echo
5168  fi
5169fi
5170
5171
5172# Define the identity of the package.
5173 PACKAGE='cbc'
5174 VERSION='2.3stable'
5175
5176
5177cat >>confdefs.h <<_ACEOF
5178#define PACKAGE "$PACKAGE"
5179_ACEOF
5180
5181
5182cat >>confdefs.h <<_ACEOF
5183#define VERSION "$VERSION"
5184_ACEOF
5185
5186# Some tools Automake needs.
5187
5188ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5189
5190
5191AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5192
5193
5194AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5195
5196
5197AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5198
5199
5200MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5201
5202install_sh=${install_sh-"$am_aux_dir/install-sh"}
5203
5204# Installed binaries are usually stripped using `strip' when the user
5205# run `make install-strip'.  However `strip' might not be the right
5206# tool to use in cross-compilation environments, therefore Automake
5207# will honor the `STRIP' environment variable to overrule this program.
5208if test "$cross_compiling" != no; then
5209  if test -n "$ac_tool_prefix"; then
5210  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5211set dummy ${ac_tool_prefix}strip; ac_word=$2
5212echo "$as_me:$LINENO: checking for $ac_word" >&5
5213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5214if test "${ac_cv_prog_STRIP+set}" = set; then
5215  echo $ECHO_N "(cached) $ECHO_C" >&6
5216else
5217  if test -n "$STRIP"; then
5218  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5219else
5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223  IFS=$as_save_IFS
5224  test -z "$as_dir" && as_dir=.
5225  for ac_exec_ext in '' $ac_executable_extensions; do
5226  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229    break 2
5230  fi
5231done
5232done
5233
5234fi
5235fi
5236STRIP=$ac_cv_prog_STRIP
5237if test -n "$STRIP"; then
5238  echo "$as_me:$LINENO: result: $STRIP" >&5
5239echo "${ECHO_T}$STRIP" >&6
5240else
5241  echo "$as_me:$LINENO: result: no" >&5
5242echo "${ECHO_T}no" >&6
5243fi
5244
5245fi
5246if test -z "$ac_cv_prog_STRIP"; then
5247  ac_ct_STRIP=$STRIP
5248  # Extract the first word of "strip", so it can be a program name with args.
5249set dummy strip; ac_word=$2
5250echo "$as_me:$LINENO: checking for $ac_word" >&5
5251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5252if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5253  echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255  if test -n "$ac_ct_STRIP"; then
5256  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5257else
5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261  IFS=$as_save_IFS
5262  test -z "$as_dir" && as_dir=.
5263  for ac_exec_ext in '' $ac_executable_extensions; do
5264  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265    ac_cv_prog_ac_ct_STRIP="strip"
5266    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267    break 2
5268  fi
5269done
5270done
5271
5272  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5273fi
5274fi
5275ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5276if test -n "$ac_ct_STRIP"; then
5277  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5278echo "${ECHO_T}$ac_ct_STRIP" >&6
5279else
5280  echo "$as_me:$LINENO: result: no" >&5
5281echo "${ECHO_T}no" >&6
5282fi
5283
5284  STRIP=$ac_ct_STRIP
5285else
5286  STRIP="$ac_cv_prog_STRIP"
5287fi
5288
5289fi
5290INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5291
5292# We need awk for the "check" target.  The system "awk" is bad on
5293# some platforms.
5294# Always define AMTAR for backward compatibility.
5295
5296AMTAR=${AMTAR-"${am_missing_run}tar"}
5297
5298am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5299
5300
5301
5302
5303depcc="$CC"   am_compiler_list=
5304
5305echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5306echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5307if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5308  echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5311  # We make a subdir and do the tests there.  Otherwise we can end up
5312  # making bogus files that we don't know about and never remove.  For
5313  # instance it was reported that on HP-UX the gcc test will end up
5314  # making a dummy file named `D' -- because `-MD' means `put the output
5315  # in D'.
5316  mkdir conftest.dir
5317  # Copy depcomp to subdir because otherwise we won't find it if we're
5318  # using a relative directory.
5319  cp "$am_depcomp" conftest.dir
5320  cd conftest.dir
5321  # We will build objects and dependencies in a subdirectory because
5322  # it helps to detect inapplicable dependency modes.  For instance
5323  # both Tru64's cc and ICC support -MD to output dependencies as a
5324  # side effect of compilation, but ICC will put the dependencies in
5325  # the current directory while Tru64 will put them in the object
5326  # directory.
5327  mkdir sub
5328
5329  am_cv_CC_dependencies_compiler_type=none
5330  if test "$am_compiler_list" = ""; then
5331     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5332  fi
5333  for depmode in $am_compiler_list; do
5334    # Setup a source with many dependencies, because some compilers
5335    # like to wrap large dependency lists on column 80 (with \), and
5336    # we should not choose a depcomp mode which is confused by this.
5337    #
5338    # We need to recreate these files for each test, as the compiler may
5339    # overwrite some of them when testing with obscure command lines.
5340    # This happens at least with the AIX C compiler.
5341    : > sub/conftest.c
5342    for i in 1 2 3 4 5 6; do
5343      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5344      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5345      # Solaris 8's {/usr,}/bin/sh.
5346      touch sub/conftst$i.h
5347    done
5348    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5349
5350    case $depmode in
5351    nosideeffect)
5352      # after this tag, mechanisms are not by side-effect, so they'll
5353      # only be used when explicitly requested
5354      if test "x$enable_dependency_tracking" = xyes; then
5355        continue
5356      else
5357        break
5358      fi
5359      ;;
5360    none) break ;;
5361    esac
5362    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5363    # mode.  It turns out that the SunPro C++ compiler does not properly
5364    # handle `-M -o', and we need to detect this.
5365    if depmode=$depmode \
5366       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5367       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5368       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5369         >/dev/null 2>conftest.err &&
5370       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5371       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5372       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5373      # icc doesn't choke on unknown options, it will just issue warnings
5374      # or remarks (even with -Werror).  So we grep stderr for any message
5375      # that says an option was ignored or not supported.
5376      # When given -MP, icc 7.0 and 7.1 complain thusly:
5377      #   icc: Command line warning: ignoring option '-M'; no argument required
5378      # The diagnosis changed in icc 8.0:
5379      #   icc: Command line remark: option '-MP' not supported
5380      if (grep 'ignoring option' conftest.err ||
5381          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5382        am_cv_CC_dependencies_compiler_type=$depmode
5383        break
5384      fi
5385    fi
5386  done
5387
5388  cd ..
5389  rm -rf conftest.dir
5390else
5391  am_cv_CC_dependencies_compiler_type=none
5392fi
5393
5394fi
5395echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5396echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5397CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5398
5399
5400
5401if
5402  test "x$enable_dependency_tracking" != xno \
5403  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5404  am__fastdepCC_TRUE=
5405  am__fastdepCC_FALSE='#'
5406else
5407  am__fastdepCC_TRUE='#'
5408  am__fastdepCC_FALSE=
5409fi
5410
5411
5412depcc="$CXX"  am_compiler_list=
5413
5414echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5415echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5416if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5417  echo $ECHO_N "(cached) $ECHO_C" >&6
5418else
5419  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5420  # We make a subdir and do the tests there.  Otherwise we can end up
5421  # making bogus files that we don't know about and never remove.  For
5422  # instance it was reported that on HP-UX the gcc test will end up
5423  # making a dummy file named `D' -- because `-MD' means `put the output
5424  # in D'.
5425  mkdir conftest.dir
5426  # Copy depcomp to subdir because otherwise we won't find it if we're
5427  # using a relative directory.
5428  cp "$am_depcomp" conftest.dir
5429  cd conftest.dir
5430  # We will build objects and dependencies in a subdirectory because
5431  # it helps to detect inapplicable dependency modes.  For instance
5432  # both Tru64's cc and ICC support -MD to output dependencies as a
5433  # side effect of compilation, but ICC will put the dependencies in
5434  # the current directory while Tru64 will put them in the object
5435  # directory.
5436  mkdir sub
5437
5438  am_cv_CXX_dependencies_compiler_type=none
5439  if test "$am_compiler_list" = ""; then
5440     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5441  fi
5442  for depmode in $am_compiler_list; do
5443    # Setup a source with many dependencies, because some compilers
5444    # like to wrap large dependency lists on column 80 (with \), and
5445    # we should not choose a depcomp mode which is confused by this.
5446    #
5447    # We need to recreate these files for each test, as the compiler may
5448    # overwrite some of them when testing with obscure command lines.
5449    # This happens at least with the AIX C compiler.
5450    : > sub/conftest.c
5451    for i in 1 2 3 4 5 6; do
5452      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5453      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5454      # Solaris 8's {/usr,}/bin/sh.
5455      touch sub/conftst$i.h
5456    done
5457    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5458
5459    case $depmode in
5460    nosideeffect)
5461      # after this tag, mechanisms are not by side-effect, so they'll
5462      # only be used when explicitly requested
5463      if test "x$enable_dependency_tracking" = xyes; then
5464        continue
5465      else
5466        break
5467      fi
5468      ;;
5469    none) break ;;
5470    esac
5471    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5472    # mode.  It turns out that the SunPro C++ compiler does not properly
5473    # handle `-M -o', and we need to detect this.
5474    if depmode=$depmode \
5475       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5476       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5477       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5478         >/dev/null 2>conftest.err &&
5479       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5480       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5481       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5482      # icc doesn't choke on unknown options, it will just issue warnings
5483      # or remarks (even with -Werror).  So we grep stderr for any message
5484      # that says an option was ignored or not supported.
5485      # When given -MP, icc 7.0 and 7.1 complain thusly:
5486      #   icc: Command line warning: ignoring option '-M'; no argument required
5487      # The diagnosis changed in icc 8.0:
5488      #   icc: Command line remark: option '-MP' not supported
5489      if (grep 'ignoring option' conftest.err ||
5490          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5491        am_cv_CXX_dependencies_compiler_type=$depmode
5492        break
5493      fi
5494    fi
5495  done
5496
5497  cd ..
5498  rm -rf conftest.dir
5499else
5500  am_cv_CXX_dependencies_compiler_type=none
5501fi
5502
5503fi
5504echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5505echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5506CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5507
5508
5509
5510if
5511  test "x$enable_dependency_tracking" != xno \
5512  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5513  am__fastdepCXX_TRUE=
5514  am__fastdepCXX_FALSE='#'
5515else
5516  am__fastdepCXX_TRUE='#'
5517  am__fastdepCXX_FALSE=
5518fi
5519
5520
5521
5522echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5523echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5524    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5525if test "${enable_maintainer_mode+set}" = set; then
5526  enableval="$enable_maintainer_mode"
5527  USE_MAINTAINER_MODE=$enableval
5528else
5529  USE_MAINTAINER_MODE=no
5530fi;
5531  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5532echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5533
5534
5535if test $USE_MAINTAINER_MODE = yes; then
5536  MAINTAINER_MODE_TRUE=
5537  MAINTAINER_MODE_FALSE='#'
5538else
5539  MAINTAINER_MODE_TRUE='#'
5540  MAINTAINER_MODE_FALSE=
5541fi
5542
5543  MAINT=$MAINTAINER_MODE_TRUE
5544
5545
5546
5547coin_have_externals=no
5548if test "$enable_maintainer_mode" = yes; then
5549
5550  # If maintainer mode is chosen, we make sure that the correct versions
5551  # of the tools are used, and that we know where libtool.m4 is (to
5552  # recreate acinclude.m4)
5553
5554
5555  LIBTOOLM4=
5556  # Normally, $HOME
5557  AUTOTOOLS_DFLT=$HOME
5558
5559  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5560echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5561if test "${ac_cv_use_correct_autotools+set}" = set; then
5562  echo $ECHO_N "(cached) $ECHO_C" >&6
5563else
5564  ac_cv_use_correct_autotools=check
5565fi
5566echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5567echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5568
5569  if test $ac_cv_use_correct_autotools = check; then
5570    ac_cv_use_correct_autotools=yes
5571    # Check if we have autoconf
5572    # Extract the first word of "autoconf", so it can be a program name with args.
5573set dummy autoconf; ac_word=$2
5574echo "$as_me:$LINENO: checking for $ac_word" >&5
5575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5576if test "${ac_cv_prog_have_autoconf+set}" = set; then
5577  echo $ECHO_N "(cached) $ECHO_C" >&6
5578else
5579  if test -n "$have_autoconf"; then
5580  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5581else
5582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583for as_dir in $PATH
5584do
5585  IFS=$as_save_IFS
5586  test -z "$as_dir" && as_dir=.
5587  for ac_exec_ext in '' $ac_executable_extensions; do
5588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589    ac_cv_prog_have_autoconf="yes"
5590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591    break 2
5592  fi
5593done
5594done
5595
5596  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5597fi
5598fi
5599have_autoconf=$ac_cv_prog_have_autoconf
5600if test -n "$have_autoconf"; then
5601  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5602echo "${ECHO_T}$have_autoconf" >&6
5603else
5604  echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606fi
5607
5608    if test $have_autoconf = no; then
5609      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5610echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5611   { (exit 1); exit 1; }; }
5612    fi
5613
5614    # Check whether autoconf is the correct version
5615    correct_version='2.59'
5616    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5617    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5618echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5619    autoconf --version > confauto.out 2>&1
5620    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5621      echo "$as_me:$LINENO: result: yes" >&5
5622echo "${ECHO_T}yes" >&6
5623    else
5624      rm -f confauto.out
5625      echo "$as_me:$LINENO: result: no" >&5
5626echo "${ECHO_T}no" >&6
5627      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5628echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5629   { (exit 1); exit 1; }; }
5630    fi
5631    rm -f confauto.out
5632
5633    # Check if the executable autoconf is picked up from the correct location
5634    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5635echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5636    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5637    autoconf_dir=`cd $autoconf_dir; pwd`
5638    if test x$AUTOTOOLS_DIR = x; then
5639      want_dir=$AUTOTOOLS_DFLT/bin
5640    else
5641      want_dir=$AUTOTOOLS_DIR/bin
5642    fi
5643    if test $autoconf_dir = `cd $want_dir; pwd`; then
5644      echo "$as_me:$LINENO: result: yes" >&5
5645echo "${ECHO_T}yes" >&6
5646    else
5647      rm -f confauto.out
5648      echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
5650      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5651echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5652   { (exit 1); exit 1; }; }
5653    fi
5654
5655    # Check if we have automake
5656    # Extract the first word of "automake", so it can be a program name with args.
5657set dummy automake; ac_word=$2
5658echo "$as_me:$LINENO: checking for $ac_word" >&5
5659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5660if test "${ac_cv_prog_have_automake+set}" = set; then
5661  echo $ECHO_N "(cached) $ECHO_C" >&6
5662else
5663  if test -n "$have_automake"; then
5664  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5665else
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669  IFS=$as_save_IFS
5670  test -z "$as_dir" && as_dir=.
5671  for ac_exec_ext in '' $ac_executable_extensions; do
5672  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673    ac_cv_prog_have_automake="yes"
5674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675    break 2
5676  fi
5677done
5678done
5679
5680  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5681fi
5682fi
5683have_automake=$ac_cv_prog_have_automake
5684if test -n "$have_automake"; then
5685  echo "$as_me:$LINENO: result: $have_automake" >&5
5686echo "${ECHO_T}$have_automake" >&6
5687else
5688  echo "$as_me:$LINENO: result: no" >&5
5689echo "${ECHO_T}no" >&6
5690fi
5691
5692    if test $have_automake = no; then
5693      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5694echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5695   { (exit 1); exit 1; }; }
5696    fi
5697
5698    # Check whether automake is the correct version
5699    correct_version='1.9.6'
5700    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5701    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5702echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5703    automake --version > confauto.out 2>&1
5704    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5705      echo "$as_me:$LINENO: result: yes" >&5
5706echo "${ECHO_T}yes" >&6
5707    else
5708      rm -f confauto.out
5709      echo "$as_me:$LINENO: result: no" >&5
5710echo "${ECHO_T}no" >&6
5711      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5712echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5713   { (exit 1); exit 1; }; }
5714    fi
5715    rm -f confauto.out
5716
5717    # Check if the executable automake is picked up from the correct location
5718    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5719echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5720    automake_dir=`which automake | sed -e 's=/automake=='`
5721    automake_dir=`cd $automake_dir; pwd`
5722    if test x$AUTOTOOLS_DIR = x; then
5723      want_dir=$AUTOTOOLS_DFLT/bin
5724    else
5725      want_dir=$AUTOTOOLS_DIR/bin
5726    fi
5727    if test $automake_dir = `cd $want_dir; pwd`; then
5728      echo "$as_me:$LINENO: result: yes" >&5
5729echo "${ECHO_T}yes" >&6
5730    else
5731      rm -f confauto.out
5732      echo "$as_me:$LINENO: result: no" >&5
5733echo "${ECHO_T}no" >&6
5734      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5735echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5736   { (exit 1); exit 1; }; }
5737    fi
5738
5739    # Check if this is the correct version of libtool (with escaped dots)
5740    if test x$AUTOTOOLS_DIR = x; then
5741      want_dir=$AUTOTOOLS_DFLT/share
5742    else
5743      want_dir=$AUTOTOOLS_DIR/share
5744    fi
5745    correct_version='1.5.22'
5746    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5747    if test -r $want_dir/libtool/ltmain.sh; then
5748  have_ltmain=yes
5749  :
5750else
5751  have_ltmain=no
5752  :
5753fi
5754
5755    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5756echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5757    if test $have_ltmain = yes; then
5758    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5759        echo "$as_me:$LINENO: result: yes" >&5
5760echo "${ECHO_T}yes" >&6
5761      else
5762        echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
5764        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5765echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5766   { (exit 1); exit 1; }; }
5767      fi
5768    else
5769      echo "$as_me:$LINENO: result: no" >&5
5770echo "${ECHO_T}no" >&6
5771      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5772echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5773   { (exit 1); exit 1; }; }
5774    fi
5775  fi
5776
5777  # Check if we can find the libtool file
5778  if test x$AUTOTOOLS_DIR = x; then
5779    want_dir=$AUTOTOOLS_DFLT/share
5780  else
5781    want_dir=$AUTOTOOLS_DIR/share
5782  fi
5783  if test -r $want_dir/aclocal/libtool.m4; then
5784  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5785  :
5786else
5787  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5788echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5789   { (exit 1); exit 1; }; }
5790  :
5791fi
5792
5793
5794  # Check if we have an Externals file
5795  if test -r $srcdir/Externals; then
5796    coin_have_externals=yes
5797  fi
5798  # Check if subversion is installed and understands https
5799  # Extract the first word of "svn", so it can be a program name with args.
5800set dummy svn; ac_word=$2
5801echo "$as_me:$LINENO: checking for $ac_word" >&5
5802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5803if test "${ac_cv_prog_have_svn+set}" = set; then
5804  echo $ECHO_N "(cached) $ECHO_C" >&6
5805else
5806  if test -n "$have_svn"; then
5807  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5808else
5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812  IFS=$as_save_IFS
5813  test -z "$as_dir" && as_dir=.
5814  for ac_exec_ext in '' $ac_executable_extensions; do
5815  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816    ac_cv_prog_have_svn="yes"
5817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818    break 2
5819  fi
5820done
5821done
5822
5823  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5824fi
5825fi
5826have_svn=$ac_cv_prog_have_svn
5827if test -n "$have_svn"; then
5828  echo "$as_me:$LINENO: result: $have_svn" >&5
5829echo "${ECHO_T}$have_svn" >&6
5830else
5831  echo "$as_me:$LINENO: result: no" >&5
5832echo "${ECHO_T}no" >&6
5833fi
5834
5835  if test x$have_svn = xyes; then
5836    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5837echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5838if test "${ac_cv_svn_understands_https+set}" = set; then
5839  echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841  svn --version > confauto.out 2>&1
5842                    if $EGREP https confauto.out >/dev/null 2>&1; then
5843                      ac_cv_svn_understands_https=yes
5844                    else
5845                      ac_cv_svn_understands_https=no
5846                      have_svn=no
5847                      ac_cv_prog_have_svn=no
5848                    fi
5849                    rm -f confauto.out
5850fi
5851echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5852echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5853  fi
5854
5855  # Find the location of the BuildTools directory
5856  BUILDTOOLSDIR=
5857  if test -r $srcdir/BuildTools/coin.m4; then
5858    BUILDTOOLSDIR=$srcdir/BuildTools
5859  else
5860    if test -r $srcdir/../BuildTools/coin.m4; then
5861      BUILDTOOLSDIR=$srcdir/../BuildTools
5862    else
5863      if test -r $srcdir/../../BuildTools/coin.m4; then
5864        BUILDTOOLSDIR=$srcdir/../../BuildTools
5865      else
5866        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5867echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5868   { (exit 1); exit 1; }; }
5869      fi
5870    fi
5871  fi
5872
5873
5874  # The following variable is set to the name of the directory where
5875  # the autotool scripts are located
5876
5877  AUX_DIR=$ac_aux_dir
5878fi
5879
5880# helpful variable for the base directory of this package
5881abs_source_dir=`cd $srcdir; pwd`
5882
5883
5884# Stuff for example Makefiles
5885if test x$prefix = xNONE; then
5886  full_prefix=$ac_default_prefix
5887else
5888  full_prefix=$prefix
5889fi
5890full_prefix=`cd $full_prefix ; pwd`
5891
5892abs_lib_dir=$full_prefix/lib
5893
5894abs_include_dir=$full_prefix/include
5895
5896abs_bin_dir=$full_prefix/bin
5897
5898
5899
5900if test $coin_have_externals = yes && test x$have_svn = xyes; then
5901  HAVE_EXTERNALS_TRUE=
5902  HAVE_EXTERNALS_FALSE='#'
5903else
5904  HAVE_EXTERNALS_TRUE='#'
5905  HAVE_EXTERNALS_FALSE=
5906fi
5907
5908
5909# AC_MSG_NOTICE([End automake initialisation.])
5910
5911
5912
5913LIBTOOL=
5914if test -r ../libtool; then
5915  coin_config_dir=..
5916  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5917fi
5918if test "x$LIBTOOL" = x; then
5919  if test -r ../../libtool; then
5920    coin_config_dir=../..
5921    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5922  fi
5923fi
5924
5925if test "x$LIBTOOL" = x; then
5926# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5927  # Stuff for libtool
5928  # Check whether --enable-shared or --disable-shared was given.
5929if test "${enable_shared+set}" = set; then
5930  enableval="$enable_shared"
5931  p=${PACKAGE-default}
5932    case $enableval in
5933    yes) enable_shared=yes ;;
5934    no) enable_shared=no ;;
5935    *)
5936      enable_shared=no
5937      # Look at the argument we got.  We use all the common list separators.
5938      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5939      for pkg in $enableval; do
5940        IFS="$lt_save_ifs"
5941        if test "X$pkg" = "X$p"; then
5942          enable_shared=yes
5943        fi
5944      done
5945      IFS="$lt_save_ifs"
5946      ;;
5947    esac
5948else
5949  enable_shared=yes
5950fi;
5951
5952# Check whether --enable-fast-install or --disable-fast-install was given.
5953if test "${enable_fast_install+set}" = set; then
5954  enableval="$enable_fast_install"
5955  p=${PACKAGE-default}
5956    case $enableval in
5957    yes) enable_fast_install=yes ;;
5958    no) enable_fast_install=no ;;
5959    *)
5960      enable_fast_install=no
5961      # Look at the argument we got.  We use all the common list separators.
5962      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5963      for pkg in $enableval; do
5964        IFS="$lt_save_ifs"
5965        if test "X$pkg" = "X$p"; then
5966          enable_fast_install=yes
5967        fi
5968      done
5969      IFS="$lt_save_ifs"
5970      ;;
5971    esac
5972else
5973  enable_fast_install=yes
5974fi;
5975
5976echo "$as_me:$LINENO: checking host system type" >&5
5977echo $ECHO_N "checking host system type... $ECHO_C" >&6
5978if test "${ac_cv_host+set}" = set; then
5979  echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981  ac_cv_host_alias=$host_alias
5982test -z "$ac_cv_host_alias" &&
5983  ac_cv_host_alias=$ac_cv_build_alias
5984ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5985  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5986echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5987   { (exit 1); exit 1; }; }
5988
5989fi
5990echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5991echo "${ECHO_T}$ac_cv_host" >&6
5992host=$ac_cv_host
5993host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5994host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5995host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5996
5997
5998echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5999echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6000if test "${lt_cv_path_SED+set}" = set; then
6001  echo $ECHO_N "(cached) $ECHO_C" >&6
6002else
6003  # Loop through the user's path and test for sed and gsed.
6004# Then use that list of sed's as ones to test for truncation.
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008  IFS=$as_save_IFS
6009  test -z "$as_dir" && as_dir=.
6010  for lt_ac_prog in sed gsed; do
6011    for ac_exec_ext in '' $ac_executable_extensions; do
6012      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6013        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6014      fi
6015    done
6016  done
6017done
6018lt_ac_max=0
6019lt_ac_count=0
6020# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6021# along with /bin/sed that truncates output.
6022for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6023  test ! -f $lt_ac_sed && continue
6024  cat /dev/null > conftest.in
6025  lt_ac_count=0
6026  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6027  # Check for GNU sed and select it if it is found.
6028  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6029    lt_cv_path_SED=$lt_ac_sed
6030    break
6031  fi
6032  while true; do
6033    cat conftest.in conftest.in >conftest.tmp
6034    mv conftest.tmp conftest.in
6035    cp conftest.in conftest.nl
6036    echo >>conftest.nl
6037    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6038    cmp -s conftest.out conftest.nl || break
6039    # 10000 chars as input seems more than enough
6040    test $lt_ac_count -gt 10 && break
6041    lt_ac_count=`expr $lt_ac_count + 1`
6042    if test $lt_ac_count -gt $lt_ac_max; then
6043      lt_ac_max=$lt_ac_count
6044      lt_cv_path_SED=$lt_ac_sed
6045    fi
6046  done
6047done
6048
6049fi
6050
6051SED=$lt_cv_path_SED
6052echo "$as_me:$LINENO: result: $SED" >&5
6053echo "${ECHO_T}$SED" >&6
6054
6055
6056# Check whether --with-gnu-ld or --without-gnu-ld was given.
6057if test "${with_gnu_ld+set}" = set; then
6058  withval="$with_gnu_ld"
6059  test "$withval" = no || with_gnu_ld=yes
6060else
6061  with_gnu_ld=no
6062fi;
6063ac_prog=ld
6064if test "$GCC" = yes; then
6065  # Check if gcc -print-prog-name=ld gives a path.
6066  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6067echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6068  case $host in
6069  *-*-mingw*)
6070    # gcc leaves a trailing carriage return which upsets mingw
6071    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6072  *)
6073    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6074  esac
6075  case $ac_prog in
6076    # Accept absolute paths.
6077    [\\/]* | ?:[\\/]*)
6078      re_direlt='/[^/][^/]*/\.\./'
6079      # Canonicalize the pathname of ld
6080      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6081      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6082        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6083      done
6084      test -z "$LD" && LD="$ac_prog"
6085      ;;
6086  "")
6087    # If it fails, then pretend we aren't using GCC.
6088    ac_prog=ld
6089    ;;
6090  *)
6091    # If it is relative, then search for the first ld in PATH.
6092    with_gnu_ld=unknown
6093    ;;
6094  esac
6095elif test "$with_gnu_ld" = yes; then
6096  echo "$as_me:$LINENO: checking for GNU ld" >&5
6097echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6098else
6099  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6100echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6101fi
6102if test "${lt_cv_path_LD+set}" = set; then
6103  echo $ECHO_N "(cached) $ECHO_C" >&6
6104else
6105  if test -z "$LD"; then
6106  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6107  for ac_dir in $PATH; do
6108    IFS="$lt_save_ifs"
6109    test -z "$ac_dir" && ac_dir=.
6110    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6111      lt_cv_path_LD="$ac_dir/$ac_prog"
6112      # Check to see if the program is GNU ld.  I'd rather use --version,
6113      # but apparently some variants of GNU ld only accept -v.
6114      # Break only if it was the GNU/non-GNU ld that we prefer.
6115      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6116      *GNU* | *'with BFD'*)
6117        test "$with_gnu_ld" != no && break
6118        ;;
6119      *)
6120        test "$with_gnu_ld" != yes && break
6121        ;;
6122      esac
6123    fi
6124  done
6125  IFS="$lt_save_ifs"
6126else
6127  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6128fi
6129fi
6130
6131LD="$lt_cv_path_LD"
6132if test -n "$LD"; then
6133  echo "$as_me:$LINENO: result: $LD" >&5
6134echo "${ECHO_T}$LD" >&6
6135else
6136  echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6
6138fi
6139test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6140echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6141   { (exit 1); exit 1; }; }
6142echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6143echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6144if test "${lt_cv_prog_gnu_ld+set}" = set; then
6145  echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6148case `$LD -v 2>&1 </dev/null` in
6149*GNU* | *'with BFD'*)
6150  lt_cv_prog_gnu_ld=yes
6151  ;;
6152*)
6153  lt_cv_prog_gnu_ld=no
6154  ;;
6155esac
6156fi
6157echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6158echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6159with_gnu_ld=$lt_cv_prog_gnu_ld
6160
6161
6162echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6163echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6164if test "${lt_cv_ld_reload_flag+set}" = set; then
6165  echo $ECHO_N "(cached) $ECHO_C" >&6
6166else
6167  lt_cv_ld_reload_flag='-r'
6168fi
6169echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6170echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6171reload_flag=$lt_cv_ld_reload_flag
6172case $reload_flag in
6173"" | " "*) ;;
6174*) reload_flag=" $reload_flag" ;;
6175esac
6176reload_cmds='$LD$reload_flag -o $output$reload_objs'
6177case $host_os in
6178  darwin*)
6179    if test "$GCC" = yes; then
6180      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6181    else
6182      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6183    fi
6184    ;;
6185esac
6186
6187echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6188echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6189if test "${lt_cv_path_NM+set}" = set; then
6190  echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192  if test -n "$NM"; then
6193  # Let the user override the test.
6194  lt_cv_path_NM="$NM"
6195else
6196  lt_nm_to_check="${ac_tool_prefix}nm"
6197  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6198    lt_nm_to_check="$lt_nm_to_check nm"
6199  fi
6200  for lt_tmp_nm in $lt_nm_to_check; do
6201    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6202    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6203      IFS="$lt_save_ifs"
6204      test -z "$ac_dir" && ac_dir=.
6205      tmp_nm="$ac_dir/$lt_tmp_nm"
6206      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6207        # Check to see if the nm accepts a BSD-compat flag.
6208        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6209        #   nm: unknown option "B" ignored
6210        # Tru64's nm complains that /dev/null is an invalid object file
6211        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6212        */dev/null* | *'Invalid file or object type'*)
6213          lt_cv_path_NM="$tmp_nm -B"
6214          break
6215          ;;
6216        *)
6217          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6218          */dev/null*)
6219            lt_cv_path_NM="$tmp_nm -p"
6220            break
6221            ;;
6222          *)
6223            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6224            continue # so that we can try to find one that supports BSD flags
6225            ;;
6226          esac
6227          ;;
6228        esac
6229      fi
6230    done
6231    IFS="$lt_save_ifs"
6232  done
6233  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6234fi
6235fi
6236echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6237echo "${ECHO_T}$lt_cv_path_NM" >&6
6238NM="$lt_cv_path_NM"
6239
6240echo "$as_me:$LINENO: checking whether ln -s works" >&5
6241echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6242LN_S=$as_ln_s
6243if test "$LN_S" = "ln -s"; then
6244  echo "$as_me:$LINENO: result: yes" >&5
6245echo "${ECHO_T}yes" >&6
6246else
6247  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6248echo "${ECHO_T}no, using $LN_S" >&6
6249fi
6250
6251echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6252echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6253if test "${lt_cv_deplibs_check_method+set}" = set; then
6254  echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256  lt_cv_file_magic_cmd='$MAGIC_CMD'
6257lt_cv_file_magic_test_file=
6258lt_cv_deplibs_check_method='unknown'
6259# Need to set the preceding variable on all platforms that support
6260# interlibrary dependencies.
6261# 'none' -- dependencies not supported.
6262# `unknown' -- same as none, but documents that we really don't know.
6263# 'pass_all' -- all dependencies passed with no checks.
6264# 'test_compile' -- check by making test program.
6265# 'file_magic [[regex]]' -- check by looking for files in library path
6266# which responds to the $file_magic_cmd with a given extended regex.
6267# If you have `file' or equivalent on your system and you're not sure
6268# whether `pass_all' will *always* work, you probably want this one.
6269
6270case $host_os in
6271aix4* | aix5*)
6272  lt_cv_deplibs_check_method=pass_all
6273  ;;
6274
6275beos*)
6276  lt_cv_deplibs_check_method=pass_all
6277  ;;
6278
6279bsdi[45]*)
6280  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6281  lt_cv_file_magic_cmd='/usr/bin/file -L'
6282  lt_cv_file_magic_test_file=/shlib/libc.so
6283  ;;
6284
6285cygwin*)
6286  # func_win32_libid is a shell function defined in ltmain.sh
6287  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6288  lt_cv_file_magic_cmd='func_win32_libid'
6289  ;;
6290
6291mingw* | pw32*)
6292  # Base MSYS/MinGW do not provide the 'file' command needed by
6293  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6294  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6295  lt_cv_file_magic_cmd='$OBJDUMP -f'
6296  ;;
6297
6298darwin* | rhapsody*)
6299  lt_cv_deplibs_check_method=pass_all
6300  ;;
6301
6302freebsd* | kfreebsd*-gnu | dragonfly*)
6303  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6304    case $host_cpu in
6305    i*86 )
6306      # Not sure whether the presence of OpenBSD here was a mistake.
6307      # Let's accept both of them until this is cleared up.
6308      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6309      lt_cv_file_magic_cmd=/usr/bin/file
6310      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6311      ;;
6312    esac
6313  else
6314    lt_cv_deplibs_check_method=pass_all
6315  fi
6316  ;;
6317
6318gnu*)
6319  lt_cv_deplibs_check_method=pass_all
6320  ;;
6321
6322hpux10.20* | hpux11*)
6323  lt_cv_file_magic_cmd=/usr/bin/file
6324  case $host_cpu in
6325  ia64*)
6326    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6327    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6328    ;;
6329  hppa*64*)
6330    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]'
6331    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6332    ;;
6333  *)
6334    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6335    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6336    ;;
6337  esac
6338  ;;
6339
6340interix3*)
6341  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6342  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6343  ;;
6344
6345irix5* | irix6* | nonstopux*)
6346  case $LD in
6347  *-32|*"-32 ") libmagic=32-bit;;
6348  *-n32|*"-n32 ") libmagic=N32;;
6349  *-64|*"-64 ") libmagic=64-bit;;
6350  *) libmagic=never-match;;
6351  esac
6352  lt_cv_deplibs_check_method=pass_all
6353  ;;
6354
6355# This must be Linux ELF.
6356linux*)
6357  lt_cv_deplibs_check_method=pass_all
6358  ;;
6359
6360netbsd*)
6361  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6362    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6363  else
6364    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6365  fi
6366  ;;
6367
6368newos6*)
6369  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6370  lt_cv_file_magic_cmd=/usr/bin/file
6371  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6372  ;;
6373
6374nto-qnx*)
6375  lt_cv_deplibs_check_method=unknown
6376  ;;
6377
6378openbsd*)
6379  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6380    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6381  else
6382    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6383  fi
6384  ;;
6385
6386osf3* | osf4* | osf5*)
6387  lt_cv_deplibs_check_method=pass_all
6388  ;;
6389
6390solaris*)
6391  lt_cv_deplibs_check_method=pass_all
6392  ;;
6393
6394sysv4 | sysv4.3*)
6395  case $host_vendor in
6396  motorola)
6397    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]'
6398    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6399    ;;
6400  ncr)
6401    lt_cv_deplibs_check_method=pass_all
6402    ;;
6403  sequent)
6404    lt_cv_file_magic_cmd='/bin/file'
6405    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6406    ;;
6407  sni)
6408    lt_cv_file_magic_cmd='/bin/file'
6409    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6410    lt_cv_file_magic_test_file=/lib/libc.so
6411    ;;
6412  siemens)
6413    lt_cv_deplibs_check_method=pass_all
6414    ;;
6415  pc)
6416    lt_cv_deplibs_check_method=pass_all
6417    ;;
6418  esac
6419  ;;
6420
6421sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6422  lt_cv_deplibs_check_method=pass_all
6423  ;;
6424esac
6425
6426fi
6427echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6428echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6429file_magic_cmd=$lt_cv_file_magic_cmd
6430deplibs_check_method=$lt_cv_deplibs_check_method
6431test -z "$deplibs_check_method" && deplibs_check_method=unknown
6432
6433
6434
6435
6436# If no C compiler was specified, use CC.
6437LTCC=${LTCC-"$CC"}
6438
6439# If no C compiler flags were specified, use CFLAGS.
6440LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6441
6442# Allow CC to be a program name with arguments.
6443compiler=$CC
6444
6445# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6446if test "${enable_libtool_lock+set}" = set; then
6447  enableval="$enable_libtool_lock"
6448
6449fi;
6450test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6451
6452# Some flags need to be propagated to the compiler or linker for good
6453# libtool support.
6454case $host in
6455ia64-*-hpux*)
6456  # Find out which ABI we are using.
6457  echo 'int i;' > conftest.$ac_ext
6458  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459  (eval $ac_compile) 2>&5
6460  ac_status=$?
6461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462  (exit $ac_status); }; then
6463    case `/usr/bin/file conftest.$ac_objext` in
6464    *ELF-32*)
6465      HPUX_IA64_MODE="32"
6466      ;;
6467    *ELF-64*)
6468      HPUX_IA64_MODE="64"
6469      ;;
6470    esac
6471  fi
6472  rm -rf conftest*
6473  ;;
6474*-*-irix6*)
6475  # Find out which ABI we are using.
6476  echo '#line 6476 "configure"' > conftest.$ac_ext
6477  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6478  (eval $ac_compile) 2>&5
6479  ac_status=$?
6480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481  (exit $ac_status); }; then
6482   if test "$lt_cv_prog_gnu_ld" = yes; then
6483    case `/usr/bin/file conftest.$ac_objext` in
6484    *32-bit*)
6485      LD="${LD-ld} -melf32bsmip"
6486      ;;
6487    *N32*)
6488      LD="${LD-ld} -melf32bmipn32"
6489      ;;
6490    *64-bit*)
6491      LD="${LD-ld} -melf64bmip"
6492      ;;
6493    esac
6494   else
6495    case `/usr/bin/file conftest.$ac_objext` in
6496    *32-bit*)
6497      LD="${LD-ld} -32"
6498      ;;
6499    *N32*)
6500      LD="${LD-ld} -n32"
6501      ;;
6502    *64-bit*)
6503      LD="${LD-ld} -64"
6504      ;;
6505    esac
6506   fi
6507  fi
6508  rm -rf conftest*
6509  ;;
6510
6511x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6512  # Find out which ABI we are using.
6513  echo 'int i;' > conftest.$ac_ext
6514  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6515  (eval $ac_compile) 2>&5
6516  ac_status=$?
6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518  (exit $ac_status); }; then
6519    case `/usr/bin/file conftest.o` in
6520    *32-bit*)
6521      case $host in
6522        x86_64-*linux*)
6523          LD="${LD-ld} -m elf_i386"
6524          ;;
6525        ppc64-*linux*|powerpc64-*linux*)
6526          LD="${LD-ld} -m elf32ppclinux"
6527          ;;
6528        s390x-*linux*)
6529          LD="${LD-ld} -m elf_s390"
6530          ;;
6531        sparc64-*linux*)
6532          LD="${LD-ld} -m elf32_sparc"
6533          ;;
6534      esac
6535      ;;
6536    *64-bit*)
6537      case $host in
6538        x86_64-*linux*)
6539          LD="${LD-ld} -m elf_x86_64"
6540          ;;
6541        ppc*-*linux*|powerpc*-*linux*)
6542          LD="${LD-ld} -m elf64ppc"
6543          ;;
6544        s390*-*linux*)
6545          LD="${LD-ld} -m elf64_s390"
6546          ;;
6547        sparc*-*linux*)
6548          LD="${LD-ld} -m elf64_sparc"
6549          ;;
6550      esac
6551      ;;
6552    esac
6553  fi
6554  rm -rf conftest*
6555  ;;
6556
6557*-*-sco3.2v5*)
6558  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6559  SAVE_CFLAGS="$CFLAGS"
6560  CFLAGS="$CFLAGS -belf"
6561  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6562echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6563if test "${lt_cv_cc_needs_belf+set}" = set; then
6564  echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566  ac_ext=c
6567ac_cpp='$CPP $CPPFLAGS'
6568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571
6572     cat >conftest.$ac_ext <<_ACEOF
6573/* confdefs.h.  */
6574_ACEOF
6575cat confdefs.h >>conftest.$ac_ext
6576cat >>conftest.$ac_ext <<_ACEOF
6577/* end confdefs.h.  */
6578
6579int
6580main ()
6581{
6582
6583  ;
6584  return 0;
6585}
6586_ACEOF
6587rm -f conftest.$ac_objext conftest$ac_exeext
6588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589  (eval $ac_link) 2>conftest.er1
6590  ac_status=$?
6591  grep -v '^ *+' conftest.er1 >conftest.err
6592  rm -f conftest.er1
6593  cat conftest.err >&5
6594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595  (exit $ac_status); } &&
6596         { ac_try='test -z "$ac_c_werror_flag"
6597                         || test ! -s conftest.err'
6598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599  (eval $ac_try) 2>&5
6600  ac_status=$?
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); }; } &&
6603         { ac_try='test -s conftest$ac_exeext'
6604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605  (eval $ac_try) 2>&5
6606  ac_status=$?
6607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); }; }; then
6609  lt_cv_cc_needs_belf=yes
6610else
6611  echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
6613
6614lt_cv_cc_needs_belf=no
6615fi
6616rm -f conftest.err conftest.$ac_objext \
6617      conftest$ac_exeext conftest.$ac_ext
6618     ac_ext=c
6619ac_cpp='$CPP $CPPFLAGS'
6620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622ac_compiler_gnu=$ac_cv_c_compiler_gnu
6623
6624fi
6625echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6626echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6627  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6628    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6629    CFLAGS="$SAVE_CFLAGS"
6630  fi
6631  ;;
6632sparc*-*solaris*)
6633  # Find out which ABI we are using.
6634  echo 'int i;' > conftest.$ac_ext
6635  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636  (eval $ac_compile) 2>&5
6637  ac_status=$?
6638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639  (exit $ac_status); }; then
6640    case `/usr/bin/file conftest.o` in
6641    *64-bit*)
6642      case $lt_cv_prog_gnu_ld in
6643      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6644      *)    LD="${LD-ld} -64" ;;
6645      esac
6646      ;;
6647    esac
6648  fi
6649  rm -rf conftest*
6650  ;;
6651
6652
6653esac
6654
6655need_locks="$enable_libtool_lock"
6656
6657
6658ac_ext=c
6659ac_cpp='$CPP $CPPFLAGS'
6660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662ac_compiler_gnu=$ac_cv_c_compiler_gnu
6663echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6664echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6665# On Suns, sometimes $CPP names a directory.
6666if test -n "$CPP" && test -d "$CPP"; then
6667  CPP=
6668fi
6669if test -z "$CPP"; then
6670  if test "${ac_cv_prog_CPP+set}" = set; then
6671  echo $ECHO_N "(cached) $ECHO_C" >&6
6672else
6673      # Double quotes because CPP needs to be expanded
6674    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6675    do
6676      ac_preproc_ok=false
6677for ac_c_preproc_warn_flag in '' yes
6678do
6679  # Use a header file that comes with gcc, so configuring glibc
6680  # with a fresh cross-compiler works.
6681  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6682  # <limits.h> exists even on freestanding compilers.
6683  # On the NeXT, cc -E runs the code through the compiler's parser,
6684  # not just through cpp. "Syntax error" is here to catch this case.
6685  cat >conftest.$ac_ext <<_ACEOF
6686/* confdefs.h.  */
6687_ACEOF
6688cat confdefs.h >>conftest.$ac_ext
6689cat >>conftest.$ac_ext <<_ACEOF
6690/* end confdefs.h.  */
6691#ifdef __STDC__
6692# include <limits.h>
6693#else
6694# include <assert.h>
6695#endif
6696                     Syntax error
6697_ACEOF
6698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6699  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6700  ac_status=$?
6701  grep -v '^ *+' conftest.er1 >conftest.err
6702  rm -f conftest.er1
6703  cat conftest.err >&5
6704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705  (exit $ac_status); } >/dev/null; then
6706  if test -s conftest.err; then
6707    ac_cpp_err=$ac_c_preproc_warn_flag
6708    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6709  else
6710    ac_cpp_err=
6711  fi
6712else
6713  ac_cpp_err=yes
6714fi
6715if test -z "$ac_cpp_err"; then
6716  :
6717else
6718  echo "$as_me: failed program was:" >&5
6719sed 's/^/| /' conftest.$ac_ext >&5
6720
6721  # Broken: fails on valid input.
6722continue
6723fi
6724rm -f conftest.err conftest.$ac_ext
6725
6726  # OK, works on sane cases.  Now check whether non-existent headers
6727  # can be detected and how.
6728  cat >conftest.$ac_ext <<_ACEOF
6729/* confdefs.h.  */
6730_ACEOF
6731cat confdefs.h >>conftest.$ac_ext
6732cat >>conftest.$ac_ext <<_ACEOF
6733/* end confdefs.h.  */
6734#include <ac_nonexistent.h>
6735_ACEOF
6736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6737  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6738  ac_status=$?
6739  grep -v '^ *+' conftest.er1 >conftest.err
6740  rm -f conftest.er1
6741  cat conftest.err >&5
6742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743  (exit $ac_status); } >/dev/null; then
6744  if test -s conftest.err; then
6745    ac_cpp_err=$ac_c_preproc_warn_flag
6746    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6747  else
6748    ac_cpp_err=
6749  fi
6750else
6751  ac_cpp_err=yes
6752fi
6753if test -z "$ac_cpp_err"; then
6754  # Broken: success on invalid input.
6755continue
6756else
6757  echo "$as_me: failed program was:" >&5
6758sed 's/^/| /' conftest.$ac_ext >&5
6759
6760  # Passes both tests.
6761ac_preproc_ok=:
6762break
6763fi
6764rm -f conftest.err conftest.$ac_ext
6765
6766done
6767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6768rm -f conftest.err conftest.$ac_ext
6769if $ac_preproc_ok; then
6770  break
6771fi
6772
6773    done
6774    ac_cv_prog_CPP=$CPP
6775
6776fi
6777  CPP=$ac_cv_prog_CPP
6778else
6779  ac_cv_prog_CPP=$CPP
6780fi
6781echo "$as_me:$LINENO: result: $CPP" >&5
6782echo "${ECHO_T}$CPP" >&6
6783ac_preproc_ok=false
6784for ac_c_preproc_warn_flag in '' yes
6785do
6786  # Use a header file that comes with gcc, so configuring glibc
6787  # with a fresh cross-compiler works.
6788  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6789  # <limits.h> exists even on freestanding compilers.
6790  # On the NeXT, cc -E runs the code through the compiler's parser,
6791  # not just through cpp. "Syntax error" is here to catch this case.
6792  cat >conftest.$ac_ext <<_ACEOF
6793/* confdefs.h.  */
6794_ACEOF
6795cat confdefs.h >>conftest.$ac_ext
6796cat >>conftest.$ac_ext <<_ACEOF
6797/* end confdefs.h.  */
6798#ifdef __STDC__
6799# include <limits.h>
6800#else
6801# include <assert.h>
6802#endif
6803                     Syntax error
6804_ACEOF
6805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6806  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6807  ac_status=$?
6808  grep -v '^ *+' conftest.er1 >conftest.err
6809  rm -f conftest.er1
6810  cat conftest.err >&5
6811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812  (exit $ac_status); } >/dev/null; then
6813  if test -s conftest.err; then
6814    ac_cpp_err=$ac_c_preproc_warn_flag
6815    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6816  else
6817    ac_cpp_err=
6818  fi
6819else
6820  ac_cpp_err=yes
6821fi
6822if test -z "$ac_cpp_err"; then
6823  :
6824else
6825  echo "$as_me: failed program was:" >&5
6826sed 's/^/| /' conftest.$ac_ext >&5
6827
6828  # Broken: fails on valid input.
6829continue
6830fi
6831rm -f conftest.err conftest.$ac_ext
6832
6833  # OK, works on sane cases.  Now check whether non-existent headers
6834  # can be detected and how.
6835  cat >conftest.$ac_ext <<_ACEOF
6836/* confdefs.h.  */
6837_ACEOF
6838cat confdefs.h >>conftest.$ac_ext
6839cat >>conftest.$ac_ext <<_ACEOF
6840/* end confdefs.h.  */
6841#include <ac_nonexistent.h>
6842_ACEOF
6843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6844  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6845  ac_status=$?
6846  grep -v '^ *+' conftest.er1 >conftest.err
6847  rm -f conftest.er1
6848  cat conftest.err >&5
6849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850  (exit $ac_status); } >/dev/null; then
6851  if test -s conftest.err; then
6852    ac_cpp_err=$ac_c_preproc_warn_flag
6853    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6854  else
6855    ac_cpp_err=
6856  fi
6857else
6858  ac_cpp_err=yes
6859fi
6860if test -z "$ac_cpp_err"; then
6861  # Broken: success on invalid input.
6862continue
6863else
6864  echo "$as_me: failed program was:" >&5
6865sed 's/^/| /' conftest.$ac_ext >&5
6866
6867  # Passes both tests.
6868ac_preproc_ok=:
6869break
6870fi
6871rm -f conftest.err conftest.$ac_ext
6872
6873done
6874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6875rm -f conftest.err conftest.$ac_ext
6876if $ac_preproc_ok; then
6877  :
6878else
6879  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6880See \`config.log' for more details." >&5
6881echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6882See \`config.log' for more details." >&2;}
6883   { (exit 1); exit 1; }; }
6884fi
6885
6886ac_ext=c
6887ac_cpp='$CPP $CPPFLAGS'
6888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6890ac_compiler_gnu=$ac_cv_c_compiler_gnu
6891
6892
6893echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6894echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6895if test "${ac_cv_header_stdc+set}" = set; then
6896  echo $ECHO_N "(cached) $ECHO_C" >&6
6897else
6898  cat >conftest.$ac_ext <<_ACEOF
6899/* confdefs.h.  */
6900_ACEOF
6901cat confdefs.h >>conftest.$ac_ext
6902cat >>conftest.$ac_ext <<_ACEOF
6903/* end confdefs.h.  */
6904#include <stdlib.h>
6905#include <stdarg.h>
6906#include <string.h>
6907#include <float.h>
6908
6909int
6910main ()
6911{
6912
6913  ;
6914  return 0;
6915}
6916_ACEOF
6917rm -f conftest.$ac_objext
6918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919  (eval $ac_compile) 2>conftest.er1
6920  ac_status=$?
6921  grep -v '^ *+' conftest.er1 >conftest.err
6922  rm -f conftest.er1
6923  cat conftest.err >&5
6924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925  (exit $ac_status); } &&
6926         { ac_try='test -z "$ac_c_werror_flag"
6927                         || test ! -s conftest.err'
6928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929  (eval $ac_try) 2>&5
6930  ac_status=$?
6931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932  (exit $ac_status); }; } &&
6933         { ac_try='test -s conftest.$ac_objext'
6934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935  (eval $ac_try) 2>&5
6936  ac_status=$?
6937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938  (exit $ac_status); }; }; then
6939  ac_cv_header_stdc=yes
6940else
6941  echo "$as_me: failed program was:" >&5
6942sed 's/^/| /' conftest.$ac_ext >&5
6943
6944ac_cv_header_stdc=no
6945fi
6946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947
6948if test $ac_cv_header_stdc = yes; then
6949  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6950  cat >conftest.$ac_ext <<_ACEOF
6951/* confdefs.h.  */
6952_ACEOF
6953cat confdefs.h >>conftest.$ac_ext
6954cat >>conftest.$ac_ext <<_ACEOF
6955/* end confdefs.h.  */
6956#include <string.h>
6957
6958_ACEOF
6959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6960  $EGREP "memchr" >/dev/null 2>&1; then
6961  :
6962else
6963  ac_cv_header_stdc=no
6964fi
6965rm -f conftest*
6966
6967fi
6968
6969if test $ac_cv_header_stdc = yes; then
6970  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6971  cat >conftest.$ac_ext <<_ACEOF
6972/* confdefs.h.  */
6973_ACEOF
6974cat confdefs.h >>conftest.$ac_ext
6975cat >>conftest.$ac_ext <<_ACEOF
6976/* end confdefs.h.  */
6977#include <stdlib.h>
6978
6979_ACEOF
6980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6981  $EGREP "free" >/dev/null 2>&1; then
6982  :
6983else
6984  ac_cv_header_stdc=no
6985fi
6986rm -f conftest*
6987
6988fi
6989
6990if test $ac_cv_header_stdc = yes; then
6991  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6992  if test "$cross_compiling" = yes; then
6993  :
6994else
6995  cat >conftest.$ac_ext <<_ACEOF
6996/* confdefs.h.  */
6997_ACEOF
6998cat confdefs.h >>conftest.$ac_ext
6999cat >>conftest.$ac_ext <<_ACEOF
7000/* end confdefs.h.  */
7001#include <ctype.h>
7002#if ((' ' & 0x0FF) == 0x020)
7003# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7004# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7005#else
7006# define ISLOWER(c) \
7007                   (('a' <= (c) && (c) <= 'i') \
7008                     || ('j' <= (c) && (c) <= 'r') \
7009                     || ('s' <= (c) && (c) <= 'z'))
7010# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7011#endif
7012
7013#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7014int
7015main ()
7016{
7017  int i;
7018  for (i = 0; i < 256; i++)
7019    if (XOR (islower (i), ISLOWER (i))
7020        || toupper (i) != TOUPPER (i))
7021      exit(2);
7022  exit (0);
7023}
7024_ACEOF
7025rm -f conftest$ac_exeext
7026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027  (eval $ac_link) 2>&5
7028  ac_status=$?
7029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032  (eval $ac_try) 2>&5
7033  ac_status=$?
7034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035  (exit $ac_status); }; }; then
7036  :
7037else
7038  echo "$as_me: program exited with status $ac_status" >&5
7039echo "$as_me: failed program was:" >&5
7040sed 's/^/| /' conftest.$ac_ext >&5
7041
7042( exit $ac_status )
7043ac_cv_header_stdc=no
7044fi
7045rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7046fi
7047fi
7048fi
7049echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7050echo "${ECHO_T}$ac_cv_header_stdc" >&6
7051if test $ac_cv_header_stdc = yes; then
7052
7053cat >>confdefs.h <<\_ACEOF
7054#define STDC_HEADERS 1
7055_ACEOF
7056
7057fi
7058
7059# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7070                  inttypes.h stdint.h unistd.h
7071do
7072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7073echo "$as_me:$LINENO: checking for $ac_header" >&5
7074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7075if eval "test \"\${$as_ac_Header+set}\" = set"; then
7076  echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078  cat >conftest.$ac_ext <<_ACEOF
7079/* confdefs.h.  */
7080_ACEOF
7081cat confdefs.h >>conftest.$ac_ext
7082cat >>conftest.$ac_ext <<_ACEOF
7083/* end confdefs.h.  */
7084$ac_includes_default
7085
7086#include <$ac_header>
7087_ACEOF
7088rm -f conftest.$ac_objext
7089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7090  (eval $ac_compile) 2>conftest.er1
7091  ac_status=$?
7092  grep -v '^ *+' conftest.er1 >conftest.err
7093  rm -f conftest.er1
7094  cat conftest.err >&5
7095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096  (exit $ac_status); } &&
7097         { ac_try='test -z "$ac_c_werror_flag"
7098                         || test ! -s conftest.err'
7099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100  (eval $ac_try) 2>&5
7101  ac_status=$?
7102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103  (exit $ac_status); }; } &&
7104         { ac_try='test -s conftest.$ac_objext'
7105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106  (eval $ac_try) 2>&5
7107  ac_status=$?
7108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109  (exit $ac_status); }; }; then
7110  eval "$as_ac_Header=yes"
7111else
7112  echo "$as_me: failed program was:" >&5
7113sed 's/^/| /' conftest.$ac_ext >&5
7114
7115eval "$as_ac_Header=no"
7116fi
7117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7118fi
7119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7121if test `eval echo '${'$as_ac_Header'}'` = yes; then
7122  cat >>confdefs.h <<_ACEOF
7123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7124_ACEOF
7125
7126fi
7127
7128done
7129
7130
7131
7132for ac_header in dlfcn.h
7133do
7134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7135if eval "test \"\${$as_ac_Header+set}\" = set"; then
7136  echo "$as_me:$LINENO: checking for $ac_header" >&5
7137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7138if eval "test \"\${$as_ac_Header+set}\" = set"; then
7139  echo $ECHO_N "(cached) $ECHO_C" >&6
7140fi
7141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7143else
7144  # Is the header compilable?
7145echo "$as_me:$LINENO: checking $ac_header usability" >&5
7146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7147cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h.  */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h.  */
7153$ac_includes_default
7154#include <$ac_header>
7155_ACEOF
7156rm -f conftest.$ac_objext
7157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158  (eval $ac_compile) 2>conftest.er1
7159  ac_status=$?
7160  grep -v '^ *+' conftest.er1 >conftest.err
7161  rm -f conftest.er1
7162  cat conftest.err >&5
7163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164  (exit $ac_status); } &&
7165         { ac_try='test -z "$ac_c_werror_flag"
7166                         || test ! -s conftest.err'
7167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168  (eval $ac_try) 2>&5
7169  ac_status=$?
7170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171  (exit $ac_status); }; } &&
7172         { ac_try='test -s conftest.$ac_objext'
7173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174  (eval $ac_try) 2>&5
7175  ac_status=$?
7176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177  (exit $ac_status); }; }; then
7178  ac_header_compiler=yes
7179else
7180  echo "$as_me: failed program was:" >&5
7181sed 's/^/| /' conftest.$ac_ext >&5
7182
7183ac_header_compiler=no
7184fi
7185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7187echo "${ECHO_T}$ac_header_compiler" >&6
7188
7189# Is the header present?
7190echo "$as_me:$LINENO: checking $ac_header presence" >&5
7191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7192cat >conftest.$ac_ext <<_ACEOF
7193/* confdefs.h.  */
7194_ACEOF
7195cat confdefs.h >>conftest.$ac_ext
7196cat >>conftest.$ac_ext <<_ACEOF
7197/* end confdefs.h.  */
7198#include <$ac_header>
7199_ACEOF
7200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7201  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7202  ac_status=$?
7203  grep -v '^ *+' conftest.er1 >conftest.err
7204  rm -f conftest.er1
7205  cat conftest.err >&5
7206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207  (exit $ac_status); } >/dev/null; then
7208  if test -s conftest.err; then
7209    ac_cpp_err=$ac_c_preproc_warn_flag
7210    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7211  else
7212    ac_cpp_err=
7213  fi
7214else
7215  ac_cpp_err=yes
7216fi
7217if test -z "$ac_cpp_err"; then
7218  ac_header_preproc=yes
7219else
7220  echo "$as_me: failed program was:" >&5
7221sed 's/^/| /' conftest.$ac_ext >&5
7222
7223  ac_header_preproc=no
7224fi
7225rm -f conftest.err conftest.$ac_ext
7226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7227echo "${ECHO_T}$ac_header_preproc" >&6
7228
7229# So?  What about this header?
7230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7231  yes:no: )
7232    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7234    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7236    ac_header_preproc=yes
7237    ;;
7238  no:yes:* )
7239    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7241    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7242echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7243    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7245    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7246echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7247    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7249    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7251    (
7252      cat <<\_ASBOX
7253## ----------------------------------------- ##
7254## Report this to coin-cbc@lists.coin-or.org ##
7255## ----------------------------------------- ##
7256_ASBOX
7257    ) |
7258      sed "s/^/$as_me: WARNING:     /" >&2
7259    ;;
7260esac
7261echo "$as_me:$LINENO: checking for $ac_header" >&5
7262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7263if eval "test \"\${$as_ac_Header+set}\" = set"; then
7264  echo $ECHO_N "(cached) $ECHO_C" >&6
7265else
7266  eval "$as_ac_Header=\$ac_header_preproc"
7267fi
7268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7270
7271fi
7272if test `eval echo '${'$as_ac_Header'}'` = yes; then
7273  cat >>confdefs.h <<_ACEOF
7274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7275_ACEOF
7276
7277fi
7278
7279done
7280
7281
7282
7283if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7284    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7285    (test "X$CXX" != "Xg++"))) ; then
7286  ac_ext=cc
7287ac_cpp='$CXXCPP $CPPFLAGS'
7288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7291echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7292echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7293if test -z "$CXXCPP"; then
7294  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7295  echo $ECHO_N "(cached) $ECHO_C" >&6
7296else
7297      # Double quotes because CXXCPP needs to be expanded
7298    for CXXCPP in "$CXX -E" "/lib/cpp"
7299    do
7300      ac_preproc_ok=false
7301for ac_cxx_preproc_warn_flag in '' yes
7302do
7303  # Use a header file that comes with gcc, so configuring glibc
7304  # with a fresh cross-compiler works.
7305  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7306  # <limits.h> exists even on freestanding compilers.
7307  # On the NeXT, cc -E runs the code through the compiler's parser,
7308  # not just through cpp. "Syntax error" is here to catch this case.
7309  cat >conftest.$ac_ext <<_ACEOF
7310/* confdefs.h.  */
7311_ACEOF
7312cat confdefs.h >>conftest.$ac_ext
7313cat >>conftest.$ac_ext <<_ACEOF
7314/* end confdefs.h.  */
7315#ifdef __STDC__
7316# include <limits.h>
7317#else
7318# include <assert.h>
7319#endif
7320                     Syntax error
7321_ACEOF
7322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7323  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7324  ac_status=$?
7325  grep -v '^ *+' conftest.er1 >conftest.err
7326  rm -f conftest.er1
7327  cat conftest.err >&5
7328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329  (exit $ac_status); } >/dev/null; then
7330  if test -s conftest.err; then
7331    ac_cpp_err=$ac_cxx_preproc_warn_flag
7332    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7333  else
7334    ac_cpp_err=
7335  fi
7336else
7337  ac_cpp_err=yes
7338fi
7339if test -z "$ac_cpp_err"; then
7340  :
7341else
7342  echo "$as_me: failed program was:" >&5
7343sed 's/^/| /' conftest.$ac_ext >&5
7344
7345  # Broken: fails on valid input.
7346continue
7347fi
7348rm -f conftest.err conftest.$ac_ext
7349
7350  # OK, works on sane cases.  Now check whether non-existent headers
7351  # can be detected and how.
7352  cat >conftest.$ac_ext <<_ACEOF
7353/* confdefs.h.  */
7354_ACEOF
7355cat confdefs.h >>conftest.$ac_ext
7356cat >>conftest.$ac_ext <<_ACEOF
7357/* end confdefs.h.  */
7358#include <ac_nonexistent.h>
7359_ACEOF
7360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7361  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7362  ac_status=$?
7363  grep -v '^ *+' conftest.er1 >conftest.err
7364  rm -f conftest.er1
7365  cat conftest.err >&5
7366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367  (exit $ac_status); } >/dev/null; then
7368  if test -s conftest.err; then
7369    ac_cpp_err=$ac_cxx_preproc_warn_flag
7370    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7371  else
7372    ac_cpp_err=
7373  fi
7374else
7375  ac_cpp_err=yes
7376fi
7377if test -z "$ac_cpp_err"; then
7378  # Broken: success on invalid input.
7379continue
7380else
7381  echo "$as_me: failed program was:" >&5
7382sed 's/^/| /' conftest.$ac_ext >&5
7383
7384  # Passes both tests.
7385ac_preproc_ok=:
7386break
7387fi
7388rm -f conftest.err conftest.$ac_ext
7389
7390done
7391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7392rm -f conftest.err conftest.$ac_ext
7393if $ac_preproc_ok; then
7394  break
7395fi
7396
7397    done
7398    ac_cv_prog_CXXCPP=$CXXCPP
7399
7400fi
7401  CXXCPP=$ac_cv_prog_CXXCPP
7402else
7403  ac_cv_prog_CXXCPP=$CXXCPP
7404fi
7405echo "$as_me:$LINENO: result: $CXXCPP" >&5
7406echo "${ECHO_T}$CXXCPP" >&6
7407ac_preproc_ok=false
7408for ac_cxx_preproc_warn_flag in '' yes
7409do
7410  # Use a header file that comes with gcc, so configuring glibc
7411  # with a fresh cross-compiler works.
7412  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7413  # <limits.h> exists even on freestanding compilers.
7414  # On the NeXT, cc -E runs the code through the compiler's parser,
7415  # not just through cpp. "Syntax error" is here to catch this case.
7416  cat >conftest.$ac_ext <<_ACEOF
7417/* confdefs.h.  */
7418_ACEOF
7419cat confdefs.h >>conftest.$ac_ext
7420cat >>conftest.$ac_ext <<_ACEOF
7421/* end confdefs.h.  */
7422#ifdef __STDC__
7423# include <limits.h>
7424#else
7425# include <assert.h>
7426#endif
7427                     Syntax error
7428_ACEOF
7429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7430  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7431  ac_status=$?
7432  grep -v '^ *+' conftest.er1 >conftest.err
7433  rm -f conftest.er1
7434  cat conftest.err >&5
7435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436  (exit $ac_status); } >/dev/null; then
7437  if test -s conftest.err; then
7438    ac_cpp_err=$ac_cxx_preproc_warn_flag
7439    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7440  else
7441    ac_cpp_err=
7442  fi
7443else
7444  ac_cpp_err=yes
7445fi
7446if test -z "$ac_cpp_err"; then
7447  :
7448else
7449  echo "$as_me: failed program was:" >&5
7450sed 's/^/| /' conftest.$ac_ext >&5
7451
7452  # Broken: fails on valid input.
7453continue
7454fi
7455rm -f conftest.err conftest.$ac_ext
7456
7457  # OK, works on sane cases.  Now check whether non-existent headers
7458  # can be detected and how.
7459  cat >conftest.$ac_ext <<_ACEOF
7460/* confdefs.h.  */
7461_ACEOF
7462cat confdefs.h >>conftest.$ac_ext
7463cat >>conftest.$ac_ext <<_ACEOF
7464/* end confdefs.h.  */
7465#include <ac_nonexistent.h>
7466_ACEOF
7467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7468  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7469  ac_status=$?
7470  grep -v '^ *+' conftest.er1 >conftest.err
7471  rm -f conftest.er1
7472  cat conftest.err >&5
7473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474  (exit $ac_status); } >/dev/null; then
7475  if test -s conftest.err; then
7476    ac_cpp_err=$ac_cxx_preproc_warn_flag
7477    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7478  else
7479    ac_cpp_err=
7480  fi
7481else
7482  ac_cpp_err=yes
7483fi
7484if test -z "$ac_cpp_err"; then
7485  # Broken: success on invalid input.
7486continue
7487else
7488  echo "$as_me: failed program was:" >&5
7489sed 's/^/| /' conftest.$ac_ext >&5
7490
7491  # Passes both tests.
7492ac_preproc_ok=:
7493break
7494fi
7495rm -f conftest.err conftest.$ac_ext
7496
7497done
7498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7499rm -f conftest.err conftest.$ac_ext
7500if $ac_preproc_ok; then
7501  :
7502else
7503  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7504See \`config.log' for more details." >&5
7505echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7506See \`config.log' for more details." >&2;}
7507   { (exit 1); exit 1; }; }
7508fi
7509
7510ac_ext=cc
7511ac_cpp='$CXXCPP $CPPFLAGS'
7512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7515
7516fi
7517
7518
7519# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7520
7521# find the maximum length of command line arguments
7522echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7523echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7524if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7525  echo $ECHO_N "(cached) $ECHO_C" >&6
7526else
7527    i=0
7528  teststring="ABCD"
7529
7530  case $build_os in
7531  msdosdjgpp*)
7532    # On DJGPP, this test can blow up pretty badly due to problems in libc
7533    # (any single argument exceeding 2000 bytes causes a buffer overrun
7534    # during glob expansion).  Even if it were fixed, the result of this
7535    # check would be larger than it should be.
7536    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7537    ;;
7538
7539  gnu*)
7540    # Under GNU Hurd, this test is not required because there is
7541    # no limit to the length of command line arguments.
7542    # Libtool will interpret -1 as no limit whatsoever
7543    lt_cv_sys_max_cmd_len=-1;
7544    ;;
7545
7546  cygwin* | mingw*)
7547    # On Win9x/ME, this test blows up -- it succeeds, but takes
7548    # about 5 minutes as the teststring grows exponentially.
7549    # Worse, since 9x/ME are not pre-emptively multitasking,
7550    # you end up with a "frozen" computer, even though with patience
7551    # the test eventually succeeds (with a max line length of 256k).
7552    # Instead, let's just punt: use the minimum linelength reported by
7553    # all of the supported platforms: 8192 (on NT/2K/XP).
7554    lt_cv_sys_max_cmd_len=8192;
7555    ;;
7556
7557  amigaos*)
7558    # On AmigaOS with pdksh, this test takes hours, literally.
7559    # So we just punt and use a minimum line length of 8192.
7560    lt_cv_sys_max_cmd_len=8192;
7561    ;;
7562
7563  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7564    # This has been around since 386BSD, at least.  Likely further.
7565    if test -x /sbin/sysctl; then
7566      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7567    elif test -x /usr/sbin/sysctl; then
7568      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7569    else
7570      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7571    fi
7572    # And add a safety zone
7573    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7574    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7575    ;;
7576
7577  interix*)
7578    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7579    lt_cv_sys_max_cmd_len=196608
7580    ;;
7581
7582  osf*)
7583    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7584    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7585    # nice to cause kernel panics so lets avoid the loop below.
7586    # First set a reasonable default.
7587    lt_cv_sys_max_cmd_len=16384
7588    #
7589    if test -x /sbin/sysconfig; then
7590      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7591        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7592      esac
7593    fi
7594    ;;
7595  sco3.2v5*)
7596    lt_cv_sys_max_cmd_len=102400
7597    ;;
7598  sysv5* | sco5v6* | sysv4.2uw2*)
7599    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7600    if test -n "$kargmax"; then
7601      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7602    else
7603      lt_cv_sys_max_cmd_len=32768
7604    fi
7605    ;;
7606  *)
7607    # If test is not a shell built-in, we'll probably end up computing a
7608    # maximum length that is only half of the actual maximum length, but
7609    # we can't tell.
7610    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7611    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7612               = "XX$teststring") >/dev/null 2>&1 &&
7613            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7614            lt_cv_sys_max_cmd_len=$new_result &&
7615            test $i != 17 # 1/2 MB should be enough
7616    do
7617      i=`expr $i + 1`
7618      teststring=$teststring$teststring
7619    done
7620    teststring=
7621    # Add a significant safety factor because C++ compilers can tack on massive
7622    # amounts of additional arguments before passing them to the linker.
7623    # It appears as though 1/2 is a usable value.
7624    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7625    ;;
7626  esac
7627
7628fi
7629
7630if test -n $lt_cv_sys_max_cmd_len ; then
7631  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7632echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7633else
7634  echo "$as_me:$LINENO: result: none" >&5
7635echo "${ECHO_T}none" >&6
7636fi
7637
7638
7639
7640
7641# Check for command to grab the raw symbol name followed by C symbol from nm.
7642echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7643echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7644if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7645  echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647
7648# These are sane defaults that work on at least a few old systems.
7649# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7650
7651# Character class describing NM global symbol codes.
7652symcode='[BCDEGRST]'
7653
7654# Regexp to match symbols that can be accessed directly from C.
7655sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7656
7657# Transform an extracted symbol line into a proper C declaration
7658lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7659
7660# Transform an extracted symbol line into symbol name and symbol address
7661lt_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'"
7662
7663# Define system-specific variables.
7664case $host_os in
7665aix*)
7666  symcode='[BCDT]'
7667  ;;
7668cygwin* | mingw* | pw32*)
7669  symcode='[ABCDGISTW]'
7670  ;;
7671hpux*) # Its linker distinguishes data from code symbols
7672  if test "$host_cpu" = ia64; then
7673    symcode='[ABCDEGRST]'
7674  fi
7675  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7676  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'"
7677  ;;
7678linux*)
7679  if test "$host_cpu" = ia64; then
7680    symcode='[ABCDGIRSTW]'
7681    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7682    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'"
7683  fi
7684  ;;
7685irix* | nonstopux*)
7686  symcode='[BCDEGRST]'
7687  ;;
7688osf*)
7689  symcode='[BCDEGQRST]'
7690  ;;
7691solaris*)
7692  symcode='[BDRT]'
7693  ;;
7694sco3.2v5*)
7695  symcode='[DT]'
7696  ;;
7697sysv4.2uw2*)
7698  symcode='[DT]'
7699  ;;
7700sysv5* | sco5v6* | unixware* | OpenUNIX*)
7701  symcode='[ABDT]'
7702  ;;
7703sysv4)
7704  symcode='[DFNSTU]'
7705  ;;
7706esac
7707
7708# Handle CRLF in mingw tool chain
7709opt_cr=
7710case $build_os in
7711mingw*)
7712  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7713  ;;
7714esac
7715
7716# If we're using GNU nm, then use its standard symbol codes.
7717case `$NM -V 2>&1` in
7718*GNU* | *'with BFD'*)
7719  symcode='[ABCDGIRSTW]' ;;
7720esac
7721
7722# Try without a prefix undercore, then with it.
7723for ac_symprfx in "" "_"; do
7724
7725  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7726  symxfrm="\\1 $ac_symprfx\\2 \\2"
7727
7728  # Write the raw and C identifiers.
7729  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7730
7731  # Check to see that the pipe works correctly.
7732  pipe_works=no
7733
7734  rm -f conftest*
7735  cat > conftest.$ac_ext <<EOF
7736#ifdef __cplusplus
7737extern "C" {
7738#endif
7739char nm_test_var;
7740void nm_test_func(){}
7741#ifdef __cplusplus
7742}
7743#endif
7744int main(){nm_test_var='a';nm_test_func();return(0);}
7745EOF
7746
7747  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7748  (eval $ac_compile) 2>&5
7749  ac_status=$?
7750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751  (exit $ac_status); }; then
7752    # Now try to grab the symbols.
7753    nlist=conftest.nm
7754    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7755  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7756  ac_status=$?
7757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758  (exit $ac_status); } && test -s "$nlist"; then
7759      # Try sorting and uniquifying the output.
7760      if sort "$nlist" | uniq > "$nlist"T; then
7761        mv -f "$nlist"T "$nlist"
7762      else
7763        rm -f "$nlist"T
7764      fi
7765
7766      # Make sure that we snagged all the symbols we need.
7767      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7768        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7769          cat <<EOF > conftest.$ac_ext
7770#ifdef __cplusplus
7771extern "C" {
7772#endif
7773
7774EOF
7775          # Now generate the symbol file.
7776          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7777
7778          cat <<EOF >> conftest.$ac_ext
7779#if defined (__STDC__) && __STDC__
7780# define lt_ptr_t void *
7781#else
7782# define lt_ptr_t char *
7783# define const
7784#endif
7785
7786/* The mapping between symbol names and symbols. */
7787const struct {
7788  const char *name;
7789  lt_ptr_t address;
7790}
7791lt_preloaded_symbols[] =
7792{
7793EOF
7794          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7795          cat <<\EOF >> conftest.$ac_ext
7796  {0, (lt_ptr_t) 0}
7797};
7798
7799#ifdef __cplusplus
7800}
7801#endif
7802EOF
7803          # Now try linking the two files.
7804          mv conftest.$ac_objext conftstm.$ac_objext
7805          lt_save_LIBS="$LIBS"
7806          lt_save_CFLAGS="$CFLAGS"
7807          LIBS="conftstm.$ac_objext"
7808          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7809          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810  (eval $ac_link) 2>&5
7811  ac_status=$?
7812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7814            pipe_works=yes
7815          fi
7816          LIBS="$lt_save_LIBS"
7817          CFLAGS="$lt_save_CFLAGS"
7818        else
7819          echo "cannot find nm_test_func in $nlist" >&5
7820        fi
7821      else
7822        echo "cannot find nm_test_var in $nlist" >&5
7823      fi
7824    else
7825      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7826    fi
7827  else
7828    echo "$progname: failed program was:" >&5
7829    cat conftest.$ac_ext >&5
7830  fi
7831  rm -f conftest* conftst*
7832
7833  # Do not use the global_symbol_pipe unless it works.
7834  if test "$pipe_works" = yes; then
7835    break
7836  else
7837    lt_cv_sys_global_symbol_pipe=
7838  fi
7839done
7840
7841fi
7842
7843if test -z "$lt_cv_sys_global_symbol_pipe"; then
7844  lt_cv_sys_global_symbol_to_cdecl=
7845fi
7846if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7847  echo "$as_me:$LINENO: result: failed" >&5
7848echo "${ECHO_T}failed" >&6
7849else
7850  echo "$as_me:$LINENO: result: ok" >&5
7851echo "${ECHO_T}ok" >&6
7852fi
7853
7854echo "$as_me:$LINENO: checking for objdir" >&5
7855echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7856if test "${lt_cv_objdir+set}" = set; then
7857  echo $ECHO_N "(cached) $ECHO_C" >&6
7858else
7859  rm -f .libs 2>/dev/null
7860mkdir .libs 2>/dev/null
7861if test -d .libs; then
7862  lt_cv_objdir=.libs
7863else
7864  # MS-DOS does not allow filenames that begin with a dot.
7865  lt_cv_objdir=_libs
7866fi
7867rmdir .libs 2>/dev/null
7868fi
7869echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7870echo "${ECHO_T}$lt_cv_objdir" >&6
7871objdir=$lt_cv_objdir
7872
7873
7874
7875
7876
7877case $host_os in
7878aix3*)
7879  # AIX sometimes has problems with the GCC collect2 program.  For some
7880  # reason, if we set the COLLECT_NAMES environment variable, the problems
7881  # vanish in a puff of smoke.
7882  if test "X${COLLECT_NAMES+set}" != Xset; then
7883    COLLECT_NAMES=
7884    export COLLECT_NAMES
7885  fi
7886  ;;
7887esac
7888
7889# Sed substitution that helps us do robust quoting.  It backslashifies
7890# metacharacters that are still active within double-quoted strings.
7891Xsed='sed -e 1s/^X//'
7892sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7893
7894# Same as above, but do not quote variable references.
7895double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7896
7897# Sed substitution to delay expansion of an escaped shell variable in a
7898# double_quote_subst'ed string.
7899delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7900
7901# Sed substitution to avoid accidental globbing in evaled expressions
7902no_glob_subst='s/\*/\\\*/g'
7903
7904# Constants:
7905rm="rm -f"
7906
7907# Global variables:
7908default_ofile=libtool
7909can_build_shared=yes
7910
7911# All known linkers require a `.a' archive for static linking (except MSVC,
7912# which needs '.lib').
7913libext=a
7914ltmain="$ac_aux_dir/ltmain.sh"
7915ofile="$default_ofile"
7916with_gnu_ld="$lt_cv_prog_gnu_ld"
7917
7918if test -n "$ac_tool_prefix"; then
7919  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7920set dummy ${ac_tool_prefix}ar; ac_word=$2
7921echo "$as_me:$LINENO: checking for $ac_word" >&5
7922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7923if test "${ac_cv_prog_AR+set}" = set; then
7924  echo $ECHO_N "(cached) $ECHO_C" >&6
7925else
7926  if test -n "$AR"; then
7927  ac_cv_prog_AR="$AR" # Let the user override the test.
7928else
7929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930for as_dir in $PATH
7931do
7932  IFS=$as_save_IFS
7933  test -z "$as_dir" && as_dir=.
7934  for ac_exec_ext in '' $ac_executable_extensions; do
7935  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936    ac_cv_prog_AR="${ac_tool_prefix}ar"
7937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938    break 2
7939  fi
7940done
7941done
7942
7943fi
7944fi
7945AR=$ac_cv_prog_AR
7946if test -n "$AR"; then
7947  echo "$as_me:$LINENO: result: $AR" >&5
7948echo "${ECHO_T}$AR" >&6
7949else
7950  echo "$as_me:$LINENO: result: no" >&5
7951echo "${ECHO_T}no" >&6
7952fi
7953
7954fi
7955if test -z "$ac_cv_prog_AR"; then
7956  ac_ct_AR=$AR
7957  # Extract the first word of "ar", so it can be a program name with args.
7958set dummy ar; ac_word=$2
7959echo "$as_me:$LINENO: checking for $ac_word" >&5
7960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7961if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7962  echo $ECHO_N "(cached) $ECHO_C" >&6
7963else
7964  if test -n "$ac_ct_AR"; then
7965  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7966else
7967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968for as_dir in $PATH
7969do
7970  IFS=$as_save_IFS
7971  test -z "$as_dir" && as_dir=.
7972  for ac_exec_ext in '' $ac_executable_extensions; do
7973  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7974    ac_cv_prog_ac_ct_AR="ar"
7975    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7976    break 2
7977  fi
7978done
7979done
7980
7981  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7982fi
7983fi
7984ac_ct_AR=$ac_cv_prog_ac_ct_AR
7985if test -n "$ac_ct_AR"; then
7986  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7987echo "${ECHO_T}$ac_ct_AR" >&6
7988else
7989  echo "$as_me:$LINENO: result: no" >&5
7990echo "${ECHO_T}no" >&6
7991fi
7992
7993  AR=$ac_ct_AR
7994else
7995  AR="$ac_cv_prog_AR"
7996fi
7997
7998if test -n "$ac_tool_prefix"; then
7999  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8001echo "$as_me:$LINENO: checking for $ac_word" >&5
8002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8003if test "${ac_cv_prog_RANLIB+set}" = set; then
8004  echo $ECHO_N "(cached) $ECHO_C" >&6
8005else
8006  if test -n "$RANLIB"; then
8007  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8008else
8009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010for as_dir in $PATH
8011do
8012  IFS=$as_save_IFS
8013  test -z "$as_dir" && as_dir=.
8014  for ac_exec_ext in '' $ac_executable_extensions; do
8015  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8018    break 2
8019  fi
8020done
8021done
8022
8023fi
8024fi
8025RANLIB=$ac_cv_prog_RANLIB
8026if test -n "$RANLIB"; then
8027  echo "$as_me:$LINENO: result: $RANLIB" >&5
8028echo "${ECHO_T}$RANLIB" >&6
8029else
8030  echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
8032fi
8033
8034fi
8035if test -z "$ac_cv_prog_RANLIB"; then
8036  ac_ct_RANLIB=$RANLIB
8037  # Extract the first word of "ranlib", so it can be a program name with args.
8038set dummy ranlib; ac_word=$2
8039echo "$as_me:$LINENO: checking for $ac_word" >&5
8040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8041if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8042  echo $ECHO_N "(cached) $ECHO_C" >&6
8043else
8044  if test -n "$ac_ct_RANLIB"; then
8045  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8046else
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050  IFS=$as_save_IFS
8051  test -z "$as_dir" && as_dir=.
8052  for ac_exec_ext in '' $ac_executable_extensions; do
8053  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8054    ac_cv_prog_ac_ct_RANLIB="ranlib"
8055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056    break 2
8057  fi
8058done
8059done
8060
8061  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8062fi
8063fi
8064ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8065if test -n "$ac_ct_RANLIB"; then
8066  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8067echo "${ECHO_T}$ac_ct_RANLIB" >&6
8068else
8069  echo "$as_me:$LINENO: result: no" >&5
8070echo "${ECHO_T}no" >&6
8071fi
8072
8073  RANLIB=$ac_ct_RANLIB
8074else
8075  RANLIB="$ac_cv_prog_RANLIB"
8076fi
8077
8078if test -n "$ac_tool_prefix"; then
8079  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8080set dummy ${ac_tool_prefix}strip; ac_word=$2
8081echo "$as_me:$LINENO: checking for $ac_word" >&5
8082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8083if test "${ac_cv_prog_STRIP+set}" = set; then
8084  echo $ECHO_N "(cached) $ECHO_C" >&6
8085else
8086  if test -n "$STRIP"; then
8087  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8088else
8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092  IFS=$as_save_IFS
8093  test -z "$as_dir" && as_dir=.
8094  for ac_exec_ext in '' $ac_executable_extensions; do
8095  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098    break 2
8099  fi
8100done
8101done
8102
8103fi
8104fi
8105STRIP=$ac_cv_prog_STRIP
8106if test -n "$STRIP"; then
8107  echo "$as_me:$LINENO: result: $STRIP" >&5
8108echo "${ECHO_T}$STRIP" >&6
8109else
8110  echo "$as_me:$LINENO: result: no" >&5
8111echo "${ECHO_T}no" >&6
8112fi
8113
8114fi
8115if test -z "$ac_cv_prog_STRIP"; then
8116  ac_ct_STRIP=$STRIP
8117  # Extract the first word of "strip", so it can be a program name with args.
8118set dummy strip; ac_word=$2
8119echo "$as_me:$LINENO: checking for $ac_word" >&5
8120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8121if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8122  echo $ECHO_N "(cached) $ECHO_C" >&6
8123else
8124  if test -n "$ac_ct_STRIP"; then
8125  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8126else
8127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128for as_dir in $PATH
8129do
8130  IFS=$as_save_IFS
8131  test -z "$as_dir" && as_dir=.
8132  for ac_exec_ext in '' $ac_executable_extensions; do
8133  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134    ac_cv_prog_ac_ct_STRIP="strip"
8135    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8136    break 2
8137  fi
8138done
8139done
8140
8141  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8142fi
8143fi
8144ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8145if test -n "$ac_ct_STRIP"; then
8146  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8147echo "${ECHO_T}$ac_ct_STRIP" >&6
8148else
8149  echo "$as_me:$LINENO: result: no" >&5
8150echo "${ECHO_T}no" >&6
8151fi
8152
8153  STRIP=$ac_ct_STRIP
8154else
8155  STRIP="$ac_cv_prog_STRIP"
8156fi
8157
8158
8159old_CC="$CC"
8160old_CFLAGS="$CFLAGS"
8161
8162# Set sane defaults for various variables
8163test -z "$AR" && AR=ar
8164test -z "$AR_FLAGS" && AR_FLAGS=cru
8165test -z "$AS" && AS=as
8166test -z "$CC" && CC=cc
8167test -z "$LTCC" && LTCC=$CC
8168test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8169test -z "$DLLTOOL" && DLLTOOL=dlltool
8170test -z "$LD" && LD=ld
8171test -z "$LN_S" && LN_S="ln -s"
8172test -z "$MAGIC_CMD" && MAGIC_CMD=file
8173test -z "$NM" && NM=nm
8174test -z "$SED" && SED=sed
8175test -z "$OBJDUMP" && OBJDUMP=objdump
8176test -z "$RANLIB" && RANLIB=:
8177test -z "$STRIP" && STRIP=:
8178test -z "$ac_objext" && ac_objext=o
8179
8180# Determine commands to create old-style static archives.
8181old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8182old_postinstall_cmds='chmod 644 $oldlib'
8183old_postuninstall_cmds=
8184
8185if test -n "$RANLIB"; then
8186  case $host_os in
8187  openbsd*)
8188    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8189    ;;
8190  *)
8191    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8192    ;;
8193  esac
8194  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8195fi
8196
8197for cc_temp in $compiler""; do
8198  case $cc_temp in
8199    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8200    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8201    \-*) ;;
8202    *) break;;
8203  esac
8204done
8205cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8206
8207
8208# Only perform the check for file, if the check method requires it
8209case $deplibs_check_method in
8210file_magic*)
8211  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8212    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8213echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8214if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8215  echo $ECHO_N "(cached) $ECHO_C" >&6
8216else
8217  case $MAGIC_CMD in
8218[\\/*] |  ?:[\\/]*)
8219  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8220  ;;
8221*)
8222  lt_save_MAGIC_CMD="$MAGIC_CMD"
8223  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8224  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8225  for ac_dir in $ac_dummy; do
8226    IFS="$lt_save_ifs"
8227    test -z "$ac_dir" && ac_dir=.
8228    if test -f $ac_dir/${ac_tool_prefix}file; then
8229      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8230      if test -n "$file_magic_test_file"; then
8231        case $deplibs_check_method in
8232        "file_magic "*)
8233          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8234          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8235          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8236            $EGREP "$file_magic_regex" > /dev/null; then
8237            :
8238          else
8239            cat <<EOF 1>&2
8240
8241*** Warning: the command libtool uses to detect shared libraries,
8242*** $file_magic_cmd, produces output that libtool cannot recognize.
8243*** The result is that libtool may fail to recognize shared libraries
8244*** as such.  This will affect the creation of libtool libraries that
8245*** depend on shared libraries, but programs linked with such libtool
8246*** libraries will work regardless of this problem.  Nevertheless, you
8247*** may want to report the problem to your system manager and/or to
8248*** bug-libtool@gnu.org
8249
8250EOF
8251          fi ;;
8252        esac
8253      fi
8254      break
8255    fi
8256  done
8257  IFS="$lt_save_ifs"
8258  MAGIC_CMD="$lt_save_MAGIC_CMD"
8259  ;;
8260esac
8261fi
8262
8263MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8264if test -n "$MAGIC_CMD"; then
8265  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8266echo "${ECHO_T}$MAGIC_CMD" >&6
8267else
8268  echo "$as_me:$LINENO: result: no" >&5
8269echo "${ECHO_T}no" >&6
8270fi
8271
8272if test -z "$lt_cv_path_MAGIC_CMD"; then
8273  if test -n "$ac_tool_prefix"; then
8274    echo "$as_me:$LINENO: checking for file" >&5
8275echo $ECHO_N "checking for file... $ECHO_C" >&6
8276if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8277  echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279  case $MAGIC_CMD in
8280[\\/*] |  ?:[\\/]*)
8281  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8282  ;;
8283*)
8284  lt_save_MAGIC_CMD="$MAGIC_CMD"
8285  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8286  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8287  for ac_dir in $ac_dummy; do
8288    IFS="$lt_save_ifs"
8289    test -z "$ac_dir" && ac_dir=.
8290    if test -f $ac_dir/file; then
8291      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8292      if test -n "$file_magic_test_file"; then
8293        case $deplibs_check_method in
8294        "file_magic "*)
8295          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8296          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8297          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8298            $EGREP "$file_magic_regex" > /dev/null; then
8299            :
8300          else
8301            cat <<EOF 1>&2
8302
8303*** Warning: the command libtool uses to detect shared libraries,
8304*** $file_magic_cmd, produces output that libtool cannot recognize.
8305*** The result is that libtool may fail to recognize shared libraries
8306*** as such.  This will affect the creation of libtool libraries that
8307*** depend on shared libraries, but programs linked with such libtool
8308*** libraries will work regardless of this problem.  Nevertheless, you
8309*** may want to report the problem to your system manager and/or to
8310*** bug-libtool@gnu.org
8311
8312EOF
8313          fi ;;
8314        esac
8315      fi
8316      break
8317    fi
8318  done
8319  IFS="$lt_save_ifs"
8320  MAGIC_CMD="$lt_save_MAGIC_CMD"
8321  ;;
8322esac
8323fi
8324
8325MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8326if test -n "$MAGIC_CMD"; then
8327  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8328echo "${ECHO_T}$MAGIC_CMD" >&6
8329else
8330  echo "$as_me:$LINENO: result: no" >&5
8331echo "${ECHO_T}no" >&6
8332fi
8333
8334  else
8335    MAGIC_CMD=:
8336  fi
8337fi
8338
8339  fi
8340  ;;
8341esac
8342
8343enable_dlopen=no
8344enable_win32_dll=no
8345
8346# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8347if test "${enable_libtool_lock+set}" = set; then
8348  enableval="$enable_libtool_lock"
8349
8350fi;
8351test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8352
8353
8354# Check whether --with-pic or --without-pic was given.
8355if test "${with_pic+set}" = set; then
8356  withval="$with_pic"
8357  pic_mode="$withval"
8358else
8359  pic_mode=default
8360fi;
8361test -z "$pic_mode" && pic_mode=default
8362
8363# Use C for the default configuration in the libtool script
8364tagname=
8365lt_save_CC="$CC"
8366ac_ext=c
8367ac_cpp='$CPP $CPPFLAGS'
8368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8370ac_compiler_gnu=$ac_cv_c_compiler_gnu
8371
8372
8373# Source file extension for C test sources.
8374ac_ext=c
8375
8376# Object file extension for compiled C test sources.
8377objext=o
8378objext=$objext
8379
8380# Code to be used in simple compile tests
8381lt_simple_compile_test_code="int some_variable = 0;\n"
8382
8383# Code to be used in simple link tests
8384lt_simple_link_test_code='int main(){return(0);}\n'
8385
8386
8387# If no C compiler was specified, use CC.
8388LTCC=${LTCC-"$CC"}
8389
8390# If no C compiler flags were specified, use CFLAGS.
8391LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8392
8393# Allow CC to be a program name with arguments.
8394compiler=$CC
8395
8396
8397# save warnings/boilerplate of simple test code
8398ac_outfile=conftest.$ac_objext
8399printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8400eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8401_lt_compiler_boilerplate=`cat conftest.err`
8402$rm conftest*
8403
8404ac_outfile=conftest.$ac_objext
8405printf "$lt_simple_link_test_code" >conftest.$ac_ext
8406eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8407_lt_linker_boilerplate=`cat conftest.err`
8408$rm conftest*
8409
8410
8411## CAVEAT EMPTOR:
8412## There is no encapsulation within the following macros, do not change
8413## the running order or otherwise move them around unless you know exactly
8414## what you are doing...
8415
8416lt_prog_compiler_no_builtin_flag=
8417
8418if test "$GCC" = yes; then
8419  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8420
8421
8422echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8423echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8424if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8425  echo $ECHO_N "(cached) $ECHO_C" >&6
8426else
8427  lt_cv_prog_compiler_rtti_exceptions=no
8428  ac_outfile=conftest.$ac_objext
8429   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8430   lt_compiler_flag="-fno-rtti -fno-exceptions"
8431   # Insert the option either (1) after the last *FLAGS variable, or
8432   # (2) before a word containing "conftest.", or (3) at the end.
8433   # Note that $ac_compile itself does not contain backslashes and begins
8434   # with a dollar sign (not a hyphen), so the echo should work correctly.
8435   # The option is referenced via a variable to avoid confusing sed.
8436   lt_compile=`echo "$ac_compile" | $SED \
8437   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8438   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8439   -e 's:$: $lt_compiler_flag:'`
8440   (eval echo "\"\$as_me:8440: $lt_compile\"" >&5)
8441   (eval "$lt_compile" 2>conftest.err)
8442   ac_status=$?
8443   cat conftest.err >&5
8444   echo "$as_me:8444: \$? = $ac_status" >&5
8445   if (exit $ac_status) && test -s "$ac_outfile"; then
8446     # The compiler can only warn and ignore the option if not recognized
8447     # So say no if there are warnings other than the usual output.
8448     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8449     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8450     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8451       lt_cv_prog_compiler_rtti_exceptions=yes
8452     fi
8453   fi
8454   $rm conftest*
8455
8456fi
8457echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8458echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8459
8460if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8461    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8462else
8463    :
8464fi
8465
8466fi
8467
8468lt_prog_compiler_wl=
8469lt_prog_compiler_pic=
8470lt_prog_compiler_static=
8471
8472echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8473echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8474
8475  if test "$GCC" = yes; then
8476    lt_prog_compiler_wl='-Wl,'
8477    lt_prog_compiler_static='-static'
8478
8479    case $host_os in
8480      aix*)
8481      # All AIX code is PIC.
8482      if test "$host_cpu" = ia64; then
8483        # AIX 5 now supports IA64 processor
8484        lt_prog_compiler_static='-Bstatic'
8485      fi
8486      ;;
8487
8488    amigaos*)
8489      # FIXME: we need at least 68020 code to build shared libraries, but
8490      # adding the `-m68020' flag to GCC prevents building anything better,
8491      # like `-m68040'.
8492      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8493      ;;
8494
8495    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8496      # PIC is the default for these OSes.
8497      ;;
8498
8499    mingw* | pw32* | os2*)
8500      # This hack is so that the source file can tell whether it is being
8501      # built for inclusion in a dll (and should export symbols for example).
8502      lt_prog_compiler_pic='-DDLL_EXPORT'
8503      ;;
8504
8505    darwin* | rhapsody*)
8506      # PIC is the default on this platform
8507      # Common symbols not allowed in MH_DYLIB files
8508      lt_prog_compiler_pic='-fno-common'
8509      ;;
8510
8511    interix3*)
8512      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8513      # Instead, we relocate shared libraries at runtime.
8514      ;;
8515
8516    msdosdjgpp*)
8517      # Just because we use GCC doesn't mean we suddenly get shared libraries
8518      # on systems that don't support them.
8519      lt_prog_compiler_can_build_shared=no
8520      enable_shared=no
8521      ;;
8522
8523    sysv4*MP*)
8524      if test -d /usr/nec; then
8525        lt_prog_compiler_pic=-Kconform_pic
8526      fi
8527      ;;
8528
8529    hpux*)
8530      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8531      # not for PA HP-UX.
8532      case $host_cpu in
8533      hppa*64*|ia64*)
8534        # +Z the default
8535        ;;
8536      *)
8537        lt_prog_compiler_pic='-fPIC'
8538        ;;
8539      esac
8540      ;;
8541
8542    *)
8543      lt_prog_compiler_pic='-fPIC'
8544      ;;
8545    esac
8546  else
8547    # PORTME Check for flag to pass linker flags through the system compiler.
8548    case $host_os in
8549    aix*)
8550      lt_prog_compiler_wl='-Wl,'
8551      if test "$host_cpu" = ia64; then
8552        # AIX 5 now supports IA64 processor
8553        lt_prog_compiler_static='-Bstatic'
8554      else
8555        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8556      fi
8557      ;;
8558      darwin*)
8559        # PIC is the default on this platform
8560        # Common symbols not allowed in MH_DYLIB files
8561       case $cc_basename in
8562         xlc*)
8563         lt_prog_compiler_pic='-qnocommon'
8564         lt_prog_compiler_wl='-Wl,'
8565         ;;
8566       esac
8567       ;;
8568
8569    mingw* | pw32* | os2*)
8570      # This hack is so that the source file can tell whether it is being
8571      # built for inclusion in a dll (and should export symbols for example).
8572      lt_prog_compiler_pic='-DDLL_EXPORT'
8573      ;;
8574
8575    hpux9* | hpux10* | hpux11*)
8576      lt_prog_compiler_wl='-Wl,'
8577      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8578      # not for PA HP-UX.
8579      case $host_cpu in
8580      hppa*64*|ia64*)
8581        # +Z the default
8582        ;;
8583      *)
8584        lt_prog_compiler_pic='+Z'
8585        ;;
8586      esac
8587      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8588      lt_prog_compiler_static='${wl}-a ${wl}archive'
8589      ;;
8590
8591    irix5* | irix6* | nonstopux*)
8592      lt_prog_compiler_wl='-Wl,'
8593      # PIC (with -KPIC) is the default.
8594      lt_prog_compiler_static='-non_shared'
8595      ;;
8596
8597    newsos6)
8598      lt_prog_compiler_pic='-KPIC'
8599      lt_prog_compiler_static='-Bstatic'
8600      ;;
8601
8602    linux*)
8603      case $cc_basename in
8604      icc* | ecc*)
8605        lt_prog_compiler_wl='-Wl,'
8606        lt_prog_compiler_pic='-KPIC'
8607        lt_prog_compiler_static='-static'
8608        ;;
8609      pgcc* | pgf77* | pgf90* | pgf95*)
8610        # Portland Group compilers (*not* the Pentium gcc compiler,
8611        # which looks to be a dead project)
8612        lt_prog_compiler_wl='-Wl,'
8613        lt_prog_compiler_pic='-fpic'
8614        lt_prog_compiler_static='-Bstatic'
8615        ;;
8616      ccc*)
8617        lt_prog_compiler_wl='-Wl,'
8618        # All Alpha code is PIC.
8619        lt_prog_compiler_static='-non_shared'
8620        ;;
8621      esac
8622      ;;
8623
8624    osf3* | osf4* | osf5*)
8625      lt_prog_compiler_wl='-Wl,'
8626      # All OSF/1 code is PIC.
8627      lt_prog_compiler_static='-non_shared'
8628      ;;
8629
8630    solaris*)
8631      lt_prog_compiler_pic='-KPIC'
8632      lt_prog_compiler_static='-Bstatic'
8633      case $cc_basename in
8634      f77* | f90* | f95*)
8635        lt_prog_compiler_wl='-Qoption ld ';;
8636      *)
8637        lt_prog_compiler_wl='-Wl,';;
8638      esac
8639      ;;
8640
8641    sunos4*)
8642      lt_prog_compiler_wl='-Qoption ld '
8643      lt_prog_compiler_pic='-PIC'
8644      lt_prog_compiler_static='-Bstatic'
8645      ;;
8646
8647    sysv4 | sysv4.2uw2* | sysv4.3*)
8648      lt_prog_compiler_wl='-Wl,'
8649      lt_prog_compiler_pic='-KPIC'
8650      lt_prog_compiler_static='-Bstatic'
8651      ;;
8652
8653    sysv4*MP*)
8654      if test -d /usr/nec ;then
8655        lt_prog_compiler_pic='-Kconform_pic'
8656        lt_prog_compiler_static='-Bstatic'
8657      fi
8658      ;;
8659
8660    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8661      lt_prog_compiler_wl='-Wl,'
8662      lt_prog_compiler_pic='-KPIC'
8663      lt_prog_compiler_static='-Bstatic'
8664      ;;
8665
8666    unicos*)
8667      lt_prog_compiler_wl='-Wl,'
8668      lt_prog_compiler_can_build_shared=no
8669      ;;
8670
8671    uts4*)
8672      lt_prog_compiler_pic='-pic'
8673      lt_prog_compiler_static='-Bstatic'
8674      ;;
8675
8676    *)
8677      lt_prog_compiler_can_build_shared=no
8678      ;;
8679    esac
8680  fi
8681
8682echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8683echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8684
8685#
8686# Check to make sure the PIC flag actually works.
8687#
8688if test -n "$lt_prog_compiler_pic"; then
8689
8690echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8691echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8692if test "${lt_prog_compiler_pic_works+set}" = set; then
8693  echo $ECHO_N "(cached) $ECHO_C" >&6
8694else
8695  lt_prog_compiler_pic_works=no
8696  ac_outfile=conftest.$ac_objext
8697   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8698   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8699   # Insert the option either (1) after the last *FLAGS variable, or
8700   # (2) before a word containing "conftest.", or (3) at the end.
8701   # Note that $ac_compile itself does not contain backslashes and begins
8702   # with a dollar sign (not a hyphen), so the echo should work correctly.
8703   # The option is referenced via a variable to avoid confusing sed.
8704   lt_compile=`echo "$ac_compile" | $SED \
8705   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8706   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8707   -e 's:$: $lt_compiler_flag:'`
8708   (eval echo "\"\$as_me:8708: $lt_compile\"" >&5)
8709   (eval "$lt_compile" 2>conftest.err)
8710   ac_status=$?
8711   cat conftest.err >&5
8712   echo "$as_me:8712: \$? = $ac_status" >&5
8713   if (exit $ac_status) && test -s "$ac_outfile"; then
8714     # The compiler can only warn and ignore the option if not recognized
8715     # So say no if there are warnings other than the usual output.
8716     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8717     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8718     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8719       lt_prog_compiler_pic_works=yes
8720     fi
8721   fi
8722   $rm conftest*
8723
8724fi
8725echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8726echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8727
8728if test x"$lt_prog_compiler_pic_works" = xyes; then
8729    case $lt_prog_compiler_pic in
8730     "" | " "*) ;;
8731     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8732     esac
8733else
8734    lt_prog_compiler_pic=
8735     lt_prog_compiler_can_build_shared=no
8736fi
8737
8738fi
8739case $host_os in
8740  # For platforms which do not support PIC, -DPIC is meaningless:
8741  *djgpp*)
8742    lt_prog_compiler_pic=
8743    ;;
8744  *)
8745    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8746    ;;
8747esac
8748
8749#
8750# Check to make sure the static flag actually works.
8751#
8752wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8753echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8754echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8755if test "${lt_prog_compiler_static_works+set}" = set; then
8756  echo $ECHO_N "(cached) $ECHO_C" >&6
8757else
8758  lt_prog_compiler_static_works=no
8759   save_LDFLAGS="$LDFLAGS"
8760   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8761   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8762   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8763     # The linker can only warn and ignore the option if not recognized
8764     # So say no if there are warnings
8765     if test -s conftest.err; then
8766       # Append any errors to the config.log.
8767       cat conftest.err 1>&5
8768       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8769       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8770       if diff conftest.exp conftest.er2 >/dev/null; then
8771         lt_prog_compiler_static_works=yes
8772       fi
8773     else
8774       lt_prog_compiler_static_works=yes
8775     fi
8776   fi
8777   $rm conftest*
8778   LDFLAGS="$save_LDFLAGS"
8779
8780fi
8781echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8782echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8783
8784if test x"$lt_prog_compiler_static_works" = xyes; then
8785    :
8786else
8787    lt_prog_compiler_static=
8788fi
8789
8790
8791echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8792echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8793if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8794  echo $ECHO_N "(cached) $ECHO_C" >&6
8795else
8796  lt_cv_prog_compiler_c_o=no
8797   $rm -r conftest 2>/dev/null
8798   mkdir conftest
8799   cd conftest
8800   mkdir out
8801   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8802
8803   lt_compiler_flag="-o out/conftest2.$ac_objext"
8804   # Insert the option either (1) after the last *FLAGS variable, or
8805   # (2) before a word containing "conftest.", or (3) at the end.
8806   # Note that $ac_compile itself does not contain backslashes and begins
8807   # with a dollar sign (not a hyphen), so the echo should work correctly.
8808   lt_compile=`echo "$ac_compile" | $SED \
8809   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8810   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8811   -e 's:$: $lt_compiler_flag:'`
8812   (eval echo "\"\$as_me:8812: $lt_compile\"" >&5)
8813   (eval "$lt_compile" 2>out/conftest.err)
8814   ac_status=$?
8815   cat out/conftest.err >&5
8816   echo "$as_me:8816: \$? = $ac_status" >&5
8817   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8818   then
8819     # The compiler can only warn and ignore the option if not recognized
8820     # So say no if there are warnings
8821     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8822     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8823     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8824       lt_cv_prog_compiler_c_o=yes
8825     fi
8826   fi
8827   chmod u+w . 2>&5
8828   $rm conftest*
8829   # SGI C++ compiler will create directory out/ii_files/ for
8830   # template instantiation
8831   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8832   $rm out/* && rmdir out
8833   cd ..
8834   rmdir conftest
8835   $rm conftest*
8836
8837fi
8838echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8839echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8840
8841
8842hard_links="nottested"
8843if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8844  # do not overwrite the value of need_locks provided by the user
8845  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8846echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8847  hard_links=yes
8848  $rm conftest*
8849  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8850  touch conftest.a
8851  ln conftest.a conftest.b 2>&5 || hard_links=no
8852  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8853  echo "$as_me:$LINENO: result: $hard_links" >&5
8854echo "${ECHO_T}$hard_links" >&6
8855  if test "$hard_links" = no; then
8856    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8857echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8858    need_locks=warn
8859  fi
8860else
8861  need_locks=no
8862fi
8863
8864echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8865echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8866
8867  runpath_var=
8868  allow_undefined_flag=
8869  enable_shared_with_static_runtimes=no
8870  archive_cmds=
8871  archive_expsym_cmds=
8872  old_archive_From_new_cmds=
8873  old_archive_from_expsyms_cmds=
8874  export_dynamic_flag_spec=
8875  whole_archive_flag_spec=
8876  thread_safe_flag_spec=
8877  hardcode_libdir_flag_spec=
8878  hardcode_libdir_flag_spec_ld=
8879  hardcode_libdir_separator=
8880  hardcode_direct=no
8881  hardcode_minus_L=no
8882  hardcode_shlibpath_var=unsupported
8883  link_all_deplibs=unknown
8884  hardcode_automatic=no
8885  module_cmds=
8886  module_expsym_cmds=
8887  always_export_symbols=no
8888  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8889  # include_expsyms should be a list of space-separated symbols to be *always*
8890  # included in the symbol list
8891  include_expsyms=
8892  # exclude_expsyms can be an extended regexp of symbols to exclude
8893  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8894  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8895  # as well as any symbol that contains `d'.
8896  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8897  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8898  # platforms (ab)use it in PIC code, but their linkers get confused if
8899  # the symbol is explicitly referenced.  Since portable code cannot
8900  # rely on this symbol name, it's probably fine to never include it in
8901  # preloaded symbol tables.
8902  extract_expsyms_cmds=
8903  # Just being paranoid about ensuring that cc_basename is set.
8904  for cc_temp in $compiler""; do
8905  case $cc_temp in
8906    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8907    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8908    \-*) ;;
8909    *) break;;
8910  esac
8911done
8912cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8913
8914  case $host_os in
8915  cygwin* | mingw* | pw32*)
8916    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8917    # When not using gcc, we currently assume that we are using
8918    # Microsoft Visual C++.
8919    if test "$GCC" != yes; then
8920      with_gnu_ld=no
8921    fi
8922    ;;
8923  interix*)
8924    # we just hope/assume this is gcc and not c89 (= MSVC++)
8925    with_gnu_ld=yes
8926    ;;
8927  openbsd*)
8928    with_gnu_ld=no
8929    ;;
8930  esac
8931
8932  ld_shlibs=yes
8933  if test "$with_gnu_ld" = yes; then
8934    # If archive_cmds runs LD, not CC, wlarc should be empty
8935    wlarc='${wl}'
8936
8937    # Set some defaults for GNU ld with shared library support. These
8938    # are reset later if shared libraries are not supported. Putting them
8939    # here allows them to be overridden if necessary.
8940    runpath_var=LD_RUN_PATH
8941    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8942    export_dynamic_flag_spec='${wl}--export-dynamic'
8943    # ancient GNU ld didn't support --whole-archive et. al.
8944    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8945        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8946      else
8947        whole_archive_flag_spec=
8948    fi
8949    supports_anon_versioning=no
8950    case `$LD -v 2>/dev/null` in
8951      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8952      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8953      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8954      *\ 2.11.*) ;; # other 2.11 versions
8955      *) supports_anon_versioning=yes ;;
8956    esac
8957
8958    # See if GNU ld supports shared libraries.
8959    case $host_os in
8960    aix3* | aix4* | aix5*)
8961      # On AIX/PPC, the GNU linker is very broken
8962      if test "$host_cpu" != ia64; then
8963        ld_shlibs=no
8964        cat <<EOF 1>&2
8965
8966*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8967*** to be unable to reliably create shared libraries on AIX.
8968*** Therefore, libtool is disabling shared libraries support.  If you
8969*** really care for shared libraries, you may want to modify your PATH
8970*** so that a non-GNU linker is found, and then restart.
8971
8972EOF
8973      fi
8974      ;;
8975
8976    amigaos*)
8977      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)'
8978      hardcode_libdir_flag_spec='-L$libdir'
8979      hardcode_minus_L=yes
8980
8981      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8982      # that the semantics of dynamic libraries on AmigaOS, at least up
8983      # to version 4, is to share data among multiple programs linked
8984      # with the same dynamic library.  Since this doesn't match the
8985      # behavior of shared libraries on other platforms, we can't use
8986      # them.
8987      ld_shlibs=no
8988      ;;
8989
8990    beos*)
8991      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8992        allow_undefined_flag=unsupported
8993        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8994        # support --undefined.  This deserves some investigation.  FIXME
8995        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8996      else
8997        ld_shlibs=no
8998      fi
8999      ;;
9000
9001    cygwin* | mingw* | pw32*)
9002      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9003      # as there is no search path for DLLs.
9004      hardcode_libdir_flag_spec='-L$libdir'
9005      allow_undefined_flag=unsupported
9006      always_export_symbols=no
9007      enable_shared_with_static_runtimes=yes
9008      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9009
9010      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9011        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9012        # If the export-symbols file already is a .def file (1st line
9013        # is EXPORTS), use it as is; otherwise, prepend...
9014        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9015          cp $export_symbols $output_objdir/$soname.def;
9016        else
9017          echo EXPORTS > $output_objdir/$soname.def;
9018          cat $export_symbols >> $output_objdir/$soname.def;
9019        fi~
9020        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9021      else
9022        ld_shlibs=no
9023      fi
9024      ;;
9025
9026    interix3*)
9027      hardcode_direct=no
9028      hardcode_shlibpath_var=no
9029      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9030      export_dynamic_flag_spec='${wl}-E'
9031      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9032      # Instead, shared libraries are loaded at an image base (0x10000000 by
9033      # default) and relocated if they conflict, which is a slow very memory
9034      # consuming and fragmenting process.  To avoid this, we pick a random,
9035      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9036      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9037      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9038      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'
9039      ;;
9040
9041    linux*)
9042      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9043        tmp_addflag=
9044        case $cc_basename,$host_cpu in
9045        pgcc*)                          # Portland Group C compiler
9046          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'
9047          tmp_addflag=' $pic_flag'
9048          ;;
9049        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9050          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'
9051          tmp_addflag=' $pic_flag -Mnomain' ;;
9052        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9053          tmp_addflag=' -i_dynamic' ;;
9054        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9055          tmp_addflag=' -i_dynamic -nofor_main' ;;
9056        ifc* | ifort*)                  # Intel Fortran compiler
9057          tmp_addflag=' -nofor_main' ;;
9058        esac
9059        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060
9061        if test $supports_anon_versioning = yes; then
9062          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9063  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9064  $echo "local: *; };" >> $output_objdir/$libname.ver~
9065          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9066        fi
9067      else
9068        ld_shlibs=no
9069      fi
9070      ;;
9071
9072    netbsd*)
9073      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9074        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9075        wlarc=
9076      else
9077        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9078        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9079      fi
9080      ;;
9081
9082    solaris*)
9083      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9084        ld_shlibs=no
9085        cat <<EOF 1>&2
9086
9087*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9088*** create shared libraries on Solaris systems.  Therefore, libtool
9089*** is disabling shared libraries support.  We urge you to upgrade GNU
9090*** binutils to release 2.9.1 or newer.  Another option is to modify
9091*** your PATH or compiler configuration so that the native linker is
9092*** used, and then restart.
9093
9094EOF
9095      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9096        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9097        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9098      else
9099        ld_shlibs=no
9100      fi
9101      ;;
9102
9103    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9104      case `$LD -v 2>&1` in
9105        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9106        ld_shlibs=no
9107        cat <<_LT_EOF 1>&2
9108
9109*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9110*** reliably create shared libraries on SCO systems.  Therefore, libtool
9111*** is disabling shared libraries support.  We urge you to upgrade GNU
9112*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9113*** your PATH or compiler configuration so that the native linker is
9114*** used, and then restart.
9115
9116_LT_EOF
9117        ;;
9118        *)
9119          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9120            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9121            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9122            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9123          else
9124            ld_shlibs=no
9125          fi
9126        ;;
9127      esac
9128      ;;
9129
9130    sunos4*)
9131      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9132      wlarc=
9133      hardcode_direct=yes
9134      hardcode_shlibpath_var=no
9135      ;;
9136
9137    *)
9138      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9139        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9141      else
9142        ld_shlibs=no
9143      fi
9144      ;;
9145    esac
9146
9147    if test "$ld_shlibs" = no; then
9148      runpath_var=
9149      hardcode_libdir_flag_spec=
9150      export_dynamic_flag_spec=
9151      whole_archive_flag_spec=
9152    fi
9153  else
9154    # PORTME fill in a description of your system's linker (not GNU ld)
9155    case $host_os in
9156    aix3*)
9157      allow_undefined_flag=unsupported
9158      always_export_symbols=yes
9159      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'
9160      # Note: this linker hardcodes the directories in LIBPATH if there
9161      # are no directories specified by -L.
9162      hardcode_minus_L=yes
9163      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9164        # Neither direct hardcoding nor static linking is supported with a
9165        # broken collect2.
9166        hardcode_direct=unsupported
9167      fi
9168      ;;
9169
9170    aix4* | aix5*)
9171      if test "$host_cpu" = ia64; then
9172        # On IA64, the linker does run time linking by default, so we don't
9173        # have to do anything special.
9174        aix_use_runtimelinking=no
9175        exp_sym_flag='-Bexport'
9176        no_entry_flag=""
9177      else
9178        # If we're using GNU nm, then we don't want the "-C" option.
9179        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9180        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9181          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'
9182        else
9183          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'
9184        fi
9185        aix_use_runtimelinking=no
9186
9187        # Test if we are trying to use run time linking or normal
9188        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9189        # need to do runtime linking.
9190        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9191          for ld_flag in $LDFLAGS; do
9192          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9193            aix_use_runtimelinking=yes
9194            break
9195          fi
9196          done
9197          ;;
9198        esac
9199
9200        exp_sym_flag='-bexport'
9201        no_entry_flag='-bnoentry'
9202      fi
9203
9204      # When large executables or shared objects are built, AIX ld can
9205      # have problems creating the table of contents.  If linking a library
9206      # or program results in "error TOC overflow" add -mminimal-toc to
9207      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9208      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9209
9210      archive_cmds=''
9211      hardcode_direct=yes
9212      hardcode_libdir_separator=':'
9213      link_all_deplibs=yes
9214
9215      if test "$GCC" = yes; then
9216        case $host_os in aix4.[012]|aix4.[012].*)
9217        # We only want to do this on AIX 4.2 and lower, the check
9218        # below for broken collect2 doesn't work under 4.3+
9219          collect2name=`${CC} -print-prog-name=collect2`
9220          if test -f "$collect2name" && \
9221           strings "$collect2name" | grep resolve_lib_name >/dev/null
9222          then
9223          # We have reworked collect2
9224          hardcode_direct=yes
9225          else
9226          # We have old collect2
9227          hardcode_direct=unsupported
9228          # It fails to find uninstalled libraries when the uninstalled
9229          # path is not listed in the libpath.  Setting hardcode_minus_L
9230          # to unsupported forces relinking
9231          hardcode_minus_L=yes
9232          hardcode_libdir_flag_spec='-L$libdir'
9233          hardcode_libdir_separator=
9234          fi
9235          ;;
9236        esac
9237        shared_flag='-shared'
9238        if test "$aix_use_runtimelinking" = yes; then
9239          shared_flag="$shared_flag "'${wl}-G'
9240        fi
9241      else
9242        # not using gcc
9243        if test "$host_cpu" = ia64; then
9244        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9245        # chokes on -Wl,-G. The following line is correct:
9246          shared_flag='-G'
9247        else
9248          if test "$aix_use_runtimelinking" = yes; then
9249            shared_flag='${wl}-G'
9250          else
9251            shared_flag='${wl}-bM:SRE'
9252          fi
9253        fi
9254      fi
9255
9256      # It seems that -bexpall does not export symbols beginning with
9257      # underscore (_), so it is better to generate a list of symbols to export.
9258      always_export_symbols=yes
9259      if test "$aix_use_runtimelinking" = yes; then
9260        # Warning - without using the other runtime loading flags (-brtl),
9261        # -berok will link without error, but may produce a broken library.
9262        allow_undefined_flag='-berok'
9263       # Determine the default libpath from the value encoded in an empty executable.
9264       cat >conftest.$ac_ext <<_ACEOF
9265/* confdefs.h.  */
9266_ACEOF
9267cat confdefs.h >>conftest.$ac_ext
9268cat >>conftest.$ac_ext <<_ACEOF
9269/* end confdefs.h.  */
9270
9271int
9272main ()
9273{
9274
9275  ;
9276  return 0;
9277}
9278_ACEOF
9279rm -f conftest.$ac_objext conftest$ac_exeext
9280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281  (eval $ac_link) 2>conftest.er1
9282  ac_status=$?
9283  grep -v '^ *+' conftest.er1 >conftest.err
9284  rm -f conftest.er1
9285  cat conftest.err >&5
9286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287  (exit $ac_status); } &&
9288         { ac_try='test -z "$ac_c_werror_flag"
9289                         || test ! -s conftest.err'
9290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291  (eval $ac_try) 2>&5
9292  ac_status=$?
9293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294  (exit $ac_status); }; } &&
9295         { ac_try='test -s conftest$ac_exeext'
9296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297  (eval $ac_try) 2>&5
9298  ac_status=$?
9299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300  (exit $ac_status); }; }; then
9301
9302aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9303}'`
9304# Check for a 64-bit object if we didn't find anything.
9305if 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; }
9306}'`; fi
9307else
9308  echo "$as_me: failed program was:" >&5
9309sed 's/^/| /' conftest.$ac_ext >&5
9310
9311fi
9312rm -f conftest.err conftest.$ac_objext \
9313      conftest$ac_exeext conftest.$ac_ext
9314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9315
9316       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9317        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"
9318       else
9319        if test "$host_cpu" = ia64; then
9320          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9321          allow_undefined_flag="-z nodefs"
9322          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"
9323        else
9324         # Determine the default libpath from the value encoded in an empty executable.
9325         cat >conftest.$ac_ext <<_ACEOF
9326/* confdefs.h.  */
9327_ACEOF
9328cat confdefs.h >>conftest.$ac_ext
9329cat >>conftest.$ac_ext <<_ACEOF
9330/* end confdefs.h.  */
9331
9332int
9333main ()
9334{
9335
9336  ;
9337  return 0;
9338}
9339_ACEOF
9340rm -f conftest.$ac_objext conftest$ac_exeext
9341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9342  (eval $ac_link) 2>conftest.er1
9343  ac_status=$?
9344  grep -v '^ *+' conftest.er1 >conftest.err
9345  rm -f conftest.er1
9346  cat conftest.err >&5
9347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348  (exit $ac_status); } &&
9349         { ac_try='test -z "$ac_c_werror_flag"
9350                         || test ! -s conftest.err'
9351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352  (eval $ac_try) 2>&5
9353  ac_status=$?
9354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355  (exit $ac_status); }; } &&
9356         { ac_try='test -s conftest$ac_exeext'
9357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358  (eval $ac_try) 2>&5
9359  ac_status=$?
9360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361  (exit $ac_status); }; }; then
9362
9363aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9364}'`
9365# Check for a 64-bit object if we didn't find anything.
9366if 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; }
9367}'`; fi
9368else
9369  echo "$as_me: failed program was:" >&5
9370sed 's/^/| /' conftest.$ac_ext >&5
9371
9372fi
9373rm -f conftest.err conftest.$ac_objext \
9374      conftest$ac_exeext conftest.$ac_ext
9375if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9376
9377         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9378          # Warning - without using the other run time loading flags,
9379          # -berok will link without error, but may produce a broken library.
9380          no_undefined_flag=' ${wl}-bernotok'
9381          allow_undefined_flag=' ${wl}-berok'
9382          # Exported symbols can be pulled into shared objects from archives
9383          whole_archive_flag_spec='$convenience'
9384          archive_cmds_need_lc=yes
9385          # This is similar to how AIX traditionally builds its shared libraries.
9386          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'
9387        fi
9388      fi
9389      ;;
9390
9391    amigaos*)
9392      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)'
9393      hardcode_libdir_flag_spec='-L$libdir'
9394      hardcode_minus_L=yes
9395      # see comment about different semantics on the GNU ld section
9396      ld_shlibs=no
9397      ;;
9398
9399    bsdi[45]*)
9400      export_dynamic_flag_spec=-rdynamic
9401      ;;
9402
9403    cygwin* | mingw* | pw32*)
9404      # When not using gcc, we currently assume that we are using
9405      # Microsoft Visual C++.
9406      # hardcode_libdir_flag_spec is actually meaningless, as there is
9407      # no search path for DLLs.
9408      hardcode_libdir_flag_spec=' '
9409      allow_undefined_flag=unsupported
9410      # Tell ltmain to make .lib files, not .a files.
9411      libext=lib
9412      # Tell ltmain to make .dll files, not .so files.
9413      shrext_cmds=".dll"
9414      # FIXME: Setting linknames here is a bad hack.
9415      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9416      # The linker will automatically build a .lib file if we build a DLL.
9417      old_archive_From_new_cmds='true'
9418      # FIXME: Should let the user specify the lib program.
9419      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9420      fix_srcfile_path='`cygpath -w "$srcfile"`'
9421      enable_shared_with_static_runtimes=yes
9422      ;;
9423
9424    darwin* | rhapsody*)
9425      case $host_os in
9426        rhapsody* | darwin1.[012])
9427         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9428         ;;
9429       *) # Darwin 1.3 on
9430         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9431           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9432         else
9433           case ${MACOSX_DEPLOYMENT_TARGET} in
9434             10.[012])
9435               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9436               ;;
9437             10.*)
9438               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9439               ;;
9440           esac
9441         fi
9442         ;;
9443      esac
9444      archive_cmds_need_lc=no
9445      hardcode_direct=no
9446      hardcode_automatic=yes
9447      hardcode_shlibpath_var=unsupported
9448      whole_archive_flag_spec=''
9449      link_all_deplibs=yes
9450    if test "$GCC" = yes ; then
9451        output_verbose_link_cmd='echo'
9452        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9453      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9454      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9455      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}'
9456      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}'
9457    else
9458      case $cc_basename in
9459        xlc*)
9460         output_verbose_link_cmd='echo'
9461         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9462         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9463          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9464         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}'
9465          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}'
9466          ;;
9467       *)
9468         ld_shlibs=no
9469          ;;
9470      esac
9471    fi
9472      ;;
9473
9474    dgux*)
9475      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476      hardcode_libdir_flag_spec='-L$libdir'
9477      hardcode_shlibpath_var=no
9478      ;;
9479
9480    freebsd1*)
9481      ld_shlibs=no
9482      ;;
9483
9484    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9485    # support.  Future versions do this automatically, but an explicit c++rt0.o
9486    # does not break anything, and helps significantly (at the cost of a little
9487    # extra space).
9488    freebsd2.2*)
9489      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9490      hardcode_libdir_flag_spec='-R$libdir'
9491      hardcode_direct=yes
9492      hardcode_shlibpath_var=no
9493      ;;
9494
9495    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9496    freebsd2*)
9497      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9498      hardcode_direct=yes
9499      hardcode_minus_L=yes
9500      hardcode_shlibpath_var=no
9501      ;;
9502
9503    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9504    freebsd* | kfreebsd*-gnu | dragonfly*)
9505      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9506      hardcode_libdir_flag_spec='-R$libdir'
9507      hardcode_direct=yes
9508      hardcode_shlibpath_var=no
9509      ;;
9510
9511    hpux9*)
9512      if test "$GCC" = yes; then
9513        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'
9514      else
9515        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'
9516      fi
9517      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518      hardcode_libdir_separator=:
9519      hardcode_direct=yes
9520
9521      # hardcode_minus_L: Not really in the search PATH,
9522      # but as the default location of the library.
9523      hardcode_minus_L=yes
9524      export_dynamic_flag_spec='${wl}-E'
9525      ;;
9526
9527    hpux10*)
9528      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9529        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9530      else
9531        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9532      fi
9533      if test "$with_gnu_ld" = no; then
9534        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9535        hardcode_libdir_separator=:
9536
9537        hardcode_direct=yes
9538        export_dynamic_flag_spec='${wl}-E'
9539
9540        # hardcode_minus_L: Not really in the search PATH,
9541        # but as the default location of the library.
9542        hardcode_minus_L=yes
9543      fi
9544      ;;
9545
9546    hpux11*)
9547      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9548        case $host_cpu in
9549        hppa*64*)
9550          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9551          ;;
9552        ia64*)
9553          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9554          ;;
9555        *)
9556          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9557          ;;
9558        esac
9559      else
9560        case $host_cpu in
9561        hppa*64*)
9562          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9563          ;;
9564        ia64*)
9565          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9566          ;;
9567        *)
9568          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9569          ;;
9570        esac
9571      fi
9572      if test "$with_gnu_ld" = no; then
9573        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9574        hardcode_libdir_separator=:
9575
9576        case $host_cpu in
9577        hppa*64*|ia64*)
9578          hardcode_libdir_flag_spec_ld='+b $libdir'
9579          hardcode_direct=no
9580          hardcode_shlibpath_var=no
9581          ;;
9582        *)
9583          hardcode_direct=yes
9584          export_dynamic_flag_spec='${wl}-E'
9585
9586          # hardcode_minus_L: Not really in the search PATH,
9587          # but as the default location of the library.
9588          hardcode_minus_L=yes
9589          ;;
9590        esac
9591      fi
9592      ;;
9593
9594    irix5* | irix6* | nonstopux*)
9595      if test "$GCC" = yes; then
9596        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'
9597      else
9598        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'
9599        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9600      fi
9601      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9602      hardcode_libdir_separator=:
9603      link_all_deplibs=yes
9604      ;;
9605
9606    netbsd*)
9607      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9608        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9609      else
9610        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9611      fi
9612      hardcode_libdir_flag_spec='-R$libdir'
9613      hardcode_direct=yes
9614      hardcode_shlibpath_var=no
9615      ;;
9616
9617    newsos6)
9618      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619      hardcode_direct=yes
9620      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9621      hardcode_libdir_separator=:
9622      hardcode_shlibpath_var=no
9623      ;;
9624
9625    openbsd*)
9626      hardcode_direct=yes
9627      hardcode_shlibpath_var=no
9628      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9629        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9630        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9631        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9632        export_dynamic_flag_spec='${wl}-E'
9633      else
9634       case $host_os in
9635         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9636           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9637           hardcode_libdir_flag_spec='-R$libdir'
9638           ;;
9639         *)
9640           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9641           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9642           ;;
9643       esac
9644      fi
9645      ;;
9646
9647    os2*)
9648      hardcode_libdir_flag_spec='-L$libdir'
9649      hardcode_minus_L=yes
9650      allow_undefined_flag=unsupported
9651      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'
9652      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9653      ;;
9654
9655    osf3*)
9656      if test "$GCC" = yes; then
9657        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9658        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'
9659      else
9660        allow_undefined_flag=' -expect_unresolved \*'
9661        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'
9662      fi
9663      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9664      hardcode_libdir_separator=:
9665      ;;
9666
9667    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9668      if test "$GCC" = yes; then
9669        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9670        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'
9671        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9672      else
9673        allow_undefined_flag=' -expect_unresolved \*'
9674        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'
9675        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9676        $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'
9677
9678        # Both c and cxx compiler support -rpath directly
9679        hardcode_libdir_flag_spec='-rpath $libdir'
9680      fi
9681      hardcode_libdir_separator=:
9682      ;;
9683
9684    solaris*)
9685      no_undefined_flag=' -z text'
9686      if test "$GCC" = yes; then
9687        wlarc='${wl}'
9688        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9689        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9690          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9691      else
9692        wlarc=''
9693        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9695        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9696      fi
9697      hardcode_libdir_flag_spec='-R$libdir'
9698      hardcode_shlibpath_var=no
9699      case $host_os in
9700      solaris2.[0-5] | solaris2.[0-5].*) ;;
9701      *)
9702        # The compiler driver will combine linker options so we
9703        # cannot just pass the convience library names through
9704        # without $wl, iff we do not link with $LD.
9705        # Luckily, gcc supports the same syntax we need for Sun Studio.
9706        # Supported since Solaris 2.6 (maybe 2.5.1?)
9707        case $wlarc in
9708        '')
9709          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9710        *)
9711          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' ;;
9712        esac ;;
9713      esac
9714      link_all_deplibs=yes
9715      ;;
9716
9717    sunos4*)
9718      if test "x$host_vendor" = xsequent; then
9719        # Use $CC to link under sequent, because it throws in some extra .o
9720        # files that make .init and .fini sections work.
9721        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9722      else
9723        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9724      fi
9725      hardcode_libdir_flag_spec='-L$libdir'
9726      hardcode_direct=yes
9727      hardcode_minus_L=yes
9728      hardcode_shlibpath_var=no
9729      ;;
9730
9731    sysv4)
9732      case $host_vendor in
9733        sni)
9734          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735          hardcode_direct=yes # is this really true???
9736        ;;
9737        siemens)
9738          ## LD is ld it makes a PLAMLIB
9739          ## CC just makes a GrossModule.
9740          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9741          reload_cmds='$CC -r -o $output$reload_objs'
9742          hardcode_direct=no
9743        ;;
9744        motorola)
9745          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9747        ;;
9748      esac
9749      runpath_var='LD_RUN_PATH'
9750      hardcode_shlibpath_var=no
9751      ;;
9752
9753    sysv4.3*)
9754      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755      hardcode_shlibpath_var=no
9756      export_dynamic_flag_spec='-Bexport'
9757      ;;
9758
9759    sysv4*MP*)
9760      if test -d /usr/nec; then
9761        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762        hardcode_shlibpath_var=no
9763        runpath_var=LD_RUN_PATH
9764        hardcode_runpath_var=yes
9765        ld_shlibs=yes
9766      fi
9767      ;;
9768
9769    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9770      no_undefined_flag='${wl}-z,text'
9771      archive_cmds_need_lc=no
9772      hardcode_shlibpath_var=no
9773      runpath_var='LD_RUN_PATH'
9774
9775      if test "$GCC" = yes; then
9776        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9777        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9778      else
9779        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9780        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9781      fi
9782      ;;
9783
9784    sysv5* | sco3.2v5* | sco5v6*)
9785      # Note: We can NOT use -z defs as we might desire, because we do not
9786      # link with -lc, and that would cause any symbols used from libc to
9787      # always be unresolved, which means just about no library would
9788      # ever link correctly.  If we're not using GNU ld we use -z text
9789      # though, which does catch some bad symbols but isn't as heavy-handed
9790      # as -z defs.
9791      no_undefined_flag='${wl}-z,text'
9792      allow_undefined_flag='${wl}-z,nodefs'
9793      archive_cmds_need_lc=no
9794      hardcode_shlibpath_var=no
9795      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9796      hardcode_libdir_separator=':'
9797      link_all_deplibs=yes
9798      export_dynamic_flag_spec='${wl}-Bexport'
9799      runpath_var='LD_RUN_PATH'
9800
9801      if test "$GCC" = yes; then
9802        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9803        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9804      else
9805        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9806        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9807      fi
9808      ;;
9809
9810    uts4*)
9811      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812      hardcode_libdir_flag_spec='-L$libdir'
9813      hardcode_shlibpath_var=no
9814      ;;
9815
9816    *)
9817      ld_shlibs=no
9818      ;;
9819    esac
9820  fi
9821
9822echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9823echo "${ECHO_T}$ld_shlibs" >&6
9824test "$ld_shlibs" = no && can_build_shared=no
9825
9826#
9827# Do we need to explicitly link libc?
9828#
9829case "x$archive_cmds_need_lc" in
9830x|xyes)
9831  # Assume -lc should be added
9832  archive_cmds_need_lc=yes
9833
9834  if test "$enable_shared" = yes && test "$GCC" = yes; then
9835    case $archive_cmds in
9836    *'~'*)
9837      # FIXME: we may have to deal with multi-command sequences.
9838      ;;
9839    '$CC '*)
9840      # Test whether the compiler implicitly links with -lc since on some
9841      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9842      # to ld, don't add -lc before -lgcc.
9843      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9844echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9845      $rm conftest*
9846      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9847
9848      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9849  (eval $ac_compile) 2>&5
9850  ac_status=$?
9851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852  (exit $ac_status); } 2>conftest.err; then
9853        soname=conftest
9854        lib=conftest
9855        libobjs=conftest.$ac_objext
9856        deplibs=
9857        wl=$lt_prog_compiler_wl
9858        pic_flag=$lt_prog_compiler_pic
9859        compiler_flags=-v
9860        linker_flags=-v
9861        verstring=
9862        output_objdir=.
9863        libname=conftest
9864        lt_save_allow_undefined_flag=$allow_undefined_flag
9865        allow_undefined_flag=
9866        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9867  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9868  ac_status=$?
9869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870  (exit $ac_status); }
9871        then
9872          archive_cmds_need_lc=no
9873        else
9874          archive_cmds_need_lc=yes
9875        fi
9876        allow_undefined_flag=$lt_save_allow_undefined_flag
9877      else
9878        cat conftest.err 1>&5
9879      fi
9880      $rm conftest*
9881      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9882echo "${ECHO_T}$archive_cmds_need_lc" >&6
9883      ;;
9884    esac
9885  fi
9886  ;;
9887esac
9888
9889echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9890echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9891library_names_spec=
9892libname_spec='lib$name'
9893soname_spec=
9894shrext_cmds=".so"
9895postinstall_cmds=
9896postuninstall_cmds=
9897finish_cmds=
9898finish_eval=
9899shlibpath_var=
9900shlibpath_overrides_runpath=unknown
9901version_type=none
9902dynamic_linker="$host_os ld.so"
9903sys_lib_dlsearch_path_spec="/lib /usr/lib"
9904if test "$GCC" = yes; then
9905  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9906  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9907    # if the path contains ";" then we assume it to be the separator
9908    # otherwise default to the standard path separator (i.e. ":") - it is
9909    # assumed that no part of a normal pathname contains ";" but that should
9910    # okay in the real world where ";" in dirpaths is itself problematic.
9911    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9912  else
9913    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9914  fi
9915else
9916  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9917fi
9918need_lib_prefix=unknown
9919hardcode_into_libs=no
9920
9921# when you set need_version to no, make sure it does not cause -set_version
9922# flags to be left without arguments
9923need_version=unknown
9924
9925case $host_os in
9926aix3*)
9927  version_type=linux
9928  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9929  shlibpath_var=LIBPATH
9930
9931  # AIX 3 has no versioning support, so we append a major version to the name.
9932  soname_spec='${libname}${release}${shared_ext}$major'
9933  ;;
9934
9935aix4* | aix5*)
9936  version_type=linux
9937  need_lib_prefix=no
9938  need_version=no
9939  hardcode_into_libs=yes
9940  if test "$host_cpu" = ia64; then
9941    # AIX 5 supports IA64
9942    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9943    shlibpath_var=LD_LIBRARY_PATH
9944  else
9945    # With GCC up to 2.95.x, collect2 would create an import file
9946    # for dependence libraries.  The import file would start with
9947    # the line `#! .'.  This would cause the generated library to
9948    # depend on `.', always an invalid library.  This was fixed in
9949    # development snapshots of GCC prior to 3.0.
9950    case $host_os in
9951      aix4 | aix4.[01] | aix4.[01].*)
9952      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9953           echo ' yes '
9954           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9955        :
9956      else
9957        can_build_shared=no
9958      fi
9959      ;;
9960    esac
9961    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9962    # soname into executable. Probably we can add versioning support to
9963    # collect2, so additional links can be useful in future.
9964    if test "$aix_use_runtimelinking" = yes; then
9965      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9966      # instead of lib<name>.a to let people know that these are not
9967      # typical AIX shared libraries.
9968      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969    else
9970      # We preserve .a as extension for shared libraries through AIX4.2
9971      # and later when we are not doing run time linking.
9972      library_names_spec='${libname}${release}.a $libname.a'
9973      soname_spec='${libname}${release}${shared_ext}$major'
9974    fi
9975    shlibpath_var=LIBPATH
9976  fi
9977  ;;
9978
9979amigaos*)
9980  library_names_spec='$libname.ixlibrary $libname.a'
9981  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9982  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'
9983  ;;
9984
9985beos*)
9986  library_names_spec='${libname}${shared_ext}'
9987  dynamic_linker="$host_os ld.so"
9988  shlibpath_var=LIBRARY_PATH
9989  ;;
9990
9991bsdi[45]*)
9992  version_type=linux
9993  need_version=no
9994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995  soname_spec='${libname}${release}${shared_ext}$major'
9996  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9997  shlibpath_var=LD_LIBRARY_PATH
9998  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9999  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10000  # the default ld.so.conf also contains /usr/contrib/lib and
10001  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10002  # libtool to hard-code these into programs
10003  ;;
10004
10005cygwin* | mingw* | pw32*)
10006  version_type=windows
10007  shrext_cmds=".dll"
10008  need_version=no
10009  need_lib_prefix=no
10010
10011  case $GCC,$host_os in
10012  yes,cygwin* | yes,mingw* | yes,pw32*)
10013    library_names_spec='$libname.dll.a'
10014    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10015    postinstall_cmds='base_file=`basename \${file}`~
10016      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10017      dldir=$destdir/`dirname \$dlpath`~
10018      test -d \$dldir || mkdir -p \$dldir~
10019      $install_prog $dir/$dlname \$dldir/$dlname~
10020      chmod a+x \$dldir/$dlname'
10021    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10022      dlpath=$dir/\$dldll~
10023       $rm \$dlpath'
10024    shlibpath_overrides_runpath=yes
10025
10026    case $host_os in
10027    cygwin*)
10028      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10029      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10030      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10031      ;;
10032    mingw*)
10033      # MinGW DLLs use traditional 'lib' prefix
10034      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10035      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10036      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10037        # It is most probably a Windows format PATH printed by
10038        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10039        # path with ; separators, and with drive letters. We can handle the
10040        # drive letters (cygwin fileutils understands them), so leave them,
10041        # especially as we might pass files found there to a mingw objdump,
10042        # which wouldn't understand a cygwinified path. Ahh.
10043        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10044      else
10045        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10046      fi
10047      ;;
10048    pw32*)
10049      # pw32 DLLs use 'pw' prefix rather than 'lib'
10050      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10051      ;;
10052    esac
10053    ;;
10054
10055  *)
10056    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10057    ;;
10058  esac
10059  dynamic_linker='Win32 ld.exe'
10060  # FIXME: first we should search . and the directory the executable is in
10061  shlibpath_var=PATH
10062  ;;
10063
10064darwin* | rhapsody*)
10065  dynamic_linker="$host_os dyld"
10066  version_type=darwin
10067  need_lib_prefix=no
10068  need_version=no
10069  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10070  soname_spec='${libname}${release}${major}$shared_ext'
10071  shlibpath_overrides_runpath=yes
10072  shlibpath_var=DYLD_LIBRARY_PATH
10073  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10074  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10075  if test "$GCC" = yes; then
10076    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"`
10077  else
10078    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10079  fi
10080  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10081  ;;
10082
10083dgux*)
10084  version_type=linux
10085  need_lib_prefix=no
10086  need_version=no
10087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10088  soname_spec='${libname}${release}${shared_ext}$major'
10089  shlibpath_var=LD_LIBRARY_PATH
10090  ;;
10091
10092freebsd1*)
10093  dynamic_linker=no
10094  ;;
10095
10096kfreebsd*-gnu)
10097  version_type=linux
10098  need_lib_prefix=no
10099  need_version=no
10100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10101  soname_spec='${libname}${release}${shared_ext}$major'
10102  shlibpath_var=LD_LIBRARY_PATH
10103  shlibpath_overrides_runpath=no
10104  hardcode_into_libs=yes
10105  dynamic_linker='GNU ld.so'
10106  ;;
10107
10108freebsd* | dragonfly*)
10109  # DragonFly does not have aout.  When/if they implement a new
10110  # versioning mechanism, adjust this.
10111  if test -x /usr/bin/objformat; then
10112    objformat=`/usr/bin/objformat`
10113  else
10114    case $host_os in
10115    freebsd[123]*) objformat=aout ;;
10116    *) objformat=elf ;;
10117    esac
10118  fi
10119  version_type=freebsd-$objformat
10120  case $version_type in
10121    freebsd-elf*)
10122      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10123      need_version=no
10124      need_lib_prefix=no
10125      ;;
10126    freebsd-*)
10127      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10128      need_version=yes
10129      ;;
10130  esac
10131  shlibpath_var=LD_LIBRARY_PATH
10132  case $host_os in
10133  freebsd2*)
10134    shlibpath_overrides_runpath=yes
10135    ;;
10136  freebsd3.[01]* | freebsdelf3.[01]*)
10137    shlibpath_overrides_runpath=yes
10138    hardcode_into_libs=yes
10139    ;;
10140  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10141  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10142    shlibpath_overrides_runpath=no
10143    hardcode_into_libs=yes
10144    ;;
10145  freebsd*) # from 4.6 on
10146    shlibpath_overrides_runpath=yes
10147    hardcode_into_libs=yes
10148    ;;
10149  esac
10150  ;;
10151
10152gnu*)
10153  version_type=linux
10154  need_lib_prefix=no
10155  need_version=no
10156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10157  soname_spec='${libname}${release}${shared_ext}$major'
10158  shlibpath_var=LD_LIBRARY_PATH
10159  hardcode_into_libs=yes
10160  ;;
10161
10162hpux9* | hpux10* | hpux11*)
10163  # Give a soname corresponding to the major version so that dld.sl refuses to
10164  # link against other versions.
10165  version_type=sunos
10166  need_lib_prefix=no
10167  need_version=no
10168  case $host_cpu in
10169  ia64*)
10170    shrext_cmds='.so'
10171    hardcode_into_libs=yes
10172    dynamic_linker="$host_os dld.so"
10173    shlibpath_var=LD_LIBRARY_PATH
10174    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10175    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176    soname_spec='${libname}${release}${shared_ext}$major'
10177    if test "X$HPUX_IA64_MODE" = X32; then
10178      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10179    else
10180      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10181    fi
10182    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10183    ;;
10184   hppa*64*)
10185     shrext_cmds='.sl'
10186     hardcode_into_libs=yes
10187     dynamic_linker="$host_os dld.sl"
10188     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10189     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191     soname_spec='${libname}${release}${shared_ext}$major'
10192     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10193     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10194     ;;
10195   *)
10196    shrext_cmds='.sl'
10197    dynamic_linker="$host_os dld.sl"
10198    shlibpath_var=SHLIB_PATH
10199    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10200    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201    soname_spec='${libname}${release}${shared_ext}$major'
10202    ;;
10203  esac
10204  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10205  postinstall_cmds='chmod 555 $lib'
10206  ;;
10207
10208interix3*)
10209  version_type=linux
10210  need_lib_prefix=no
10211  need_version=no
10212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10213  soname_spec='${libname}${release}${shared_ext}$major'
10214  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10215  shlibpath_var=LD_LIBRARY_PATH
10216  shlibpath_overrides_runpath=no
10217  hardcode_into_libs=yes
10218  ;;
10219
10220irix5* | irix6* | nonstopux*)
10221  case $host_os in
10222    nonstopux*) version_type=nonstopux ;;
10223    *)
10224        if test "$lt_cv_prog_gnu_ld" = yes; then
10225                version_type=linux
10226        else
10227                version_type=irix
10228        fi ;;
10229  esac
10230  need_lib_prefix=no
10231  need_version=no
10232  soname_spec='${libname}${release}${shared_ext}$major'
10233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10234  case $host_os in
10235  irix5* | nonstopux*)
10236    libsuff= shlibsuff=
10237    ;;
10238  *)
10239    case $LD in # libtool.m4 will add one of these switches to LD
10240    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10241      libsuff= shlibsuff= libmagic=32-bit;;
10242    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10243      libsuff=32 shlibsuff=N32 libmagic=N32;;
10244    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10245      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10246    *) libsuff= shlibsuff= libmagic=never-match;;
10247    esac
10248    ;;
10249  esac
10250  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10251  shlibpath_overrides_runpath=no
10252  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10253  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10254  hardcode_into_libs=yes
10255  ;;
10256
10257# No shared lib support for Linux oldld, aout, or coff.
10258linux*oldld* | linux*aout* | linux*coff*)
10259  dynamic_linker=no
10260  ;;
10261
10262# This must be Linux ELF.
10263linux*)
10264  version_type=linux
10265  need_lib_prefix=no
10266  need_version=no
10267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268  soname_spec='${libname}${release}${shared_ext}$major'
10269  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10270  shlibpath_var=LD_LIBRARY_PATH
10271  shlibpath_overrides_runpath=no
10272  # This implies no fast_install, which is unacceptable.
10273  # Some rework will be needed to allow for fast_install
10274  # before this can be enabled.
10275  hardcode_into_libs=yes
10276
10277  # Append ld.so.conf contents to the search path
10278  if test -f /etc/ld.so.conf; then
10279    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' ' '`
10280    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10281  fi
10282
10283  # We used to test for /lib/ld.so.1 and disable shared libraries on
10284  # powerpc, because MkLinux only supported shared libraries with the
10285  # GNU dynamic linker.  Since this was broken with cross compilers,
10286  # most powerpc-linux boxes support dynamic linking these days and
10287  # people can always --disable-shared, the test was removed, and we
10288  # assume the GNU/Linux dynamic linker is in use.
10289  dynamic_linker='GNU/Linux ld.so'
10290  ;;
10291
10292knetbsd*-gnu)
10293  version_type=linux
10294  need_lib_prefix=no
10295  need_version=no
10296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10297  soname_spec='${libname}${release}${shared_ext}$major'
10298  shlibpath_var=LD_LIBRARY_PATH
10299  shlibpath_overrides_runpath=no
10300  hardcode_into_libs=yes
10301  dynamic_linker='GNU ld.so'
10302  ;;
10303
10304netbsd*)
10305  version_type=sunos
10306  need_lib_prefix=no
10307  need_version=no
10308  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10309    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10310    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10311    dynamic_linker='NetBSD (a.out) ld.so'
10312  else
10313    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10314    soname_spec='${libname}${release}${shared_ext}$major'
10315    dynamic_linker='NetBSD ld.elf_so'
10316  fi
10317  shlibpath_var=LD_LIBRARY_PATH
10318  shlibpath_overrides_runpath=yes
10319  hardcode_into_libs=yes
10320  ;;
10321
10322newsos6)
10323  version_type=linux
10324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325  shlibpath_var=LD_LIBRARY_PATH
10326  shlibpath_overrides_runpath=yes
10327  ;;
10328
10329nto-qnx*)
10330  version_type=linux
10331  need_lib_prefix=no
10332  need_version=no
10333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334  soname_spec='${libname}${release}${shared_ext}$major'
10335  shlibpath_var=LD_LIBRARY_PATH
10336  shlibpath_overrides_runpath=yes
10337  ;;
10338
10339openbsd*)
10340  version_type=sunos
10341  sys_lib_dlsearch_path_spec="/usr/lib"
10342  need_lib_prefix=no
10343  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10344  case $host_os in
10345    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10346    *)                         need_version=no  ;;
10347  esac
10348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10349  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10350  shlibpath_var=LD_LIBRARY_PATH
10351  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10352    case $host_os in
10353      openbsd2.[89] | openbsd2.[89].*)
10354        shlibpath_overrides_runpath=no
10355        ;;
10356      *)
10357        shlibpath_overrides_runpath=yes
10358        ;;
10359      esac
10360  else
10361    shlibpath_overrides_runpath=yes
10362  fi
10363  ;;
10364
10365os2*)
10366  libname_spec='$name'
10367  shrext_cmds=".dll"
10368  need_lib_prefix=no
10369  library_names_spec='$libname${shared_ext} $libname.a'
10370  dynamic_linker='OS/2 ld.exe'
10371  shlibpath_var=LIBPATH
10372  ;;
10373
10374osf3* | osf4* | osf5*)
10375  version_type=osf
10376  need_lib_prefix=no
10377  need_version=no
10378  soname_spec='${libname}${release}${shared_ext}$major'
10379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380  shlibpath_var=LD_LIBRARY_PATH
10381  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10382  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10383  ;;
10384
10385solaris*)
10386  version_type=linux
10387  need_lib_prefix=no
10388  need_version=no
10389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390  soname_spec='${libname}${release}${shared_ext}$major'
10391  shlibpath_var=LD_LIBRARY_PATH
10392  shlibpath_overrides_runpath=yes
10393  hardcode_into_libs=yes
10394  # ldd complains unless libraries are executable
10395  postinstall_cmds='chmod +x $lib'
10396  ;;
10397
10398sunos4*)
10399  version_type=sunos
10400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10401  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10402  shlibpath_var=LD_LIBRARY_PATH
10403  shlibpath_overrides_runpath=yes
10404  if test "$with_gnu_ld" = yes; then
10405    need_lib_prefix=no
10406  fi
10407  need_version=yes
10408  ;;
10409
10410sysv4 | sysv4.3*)
10411  version_type=linux
10412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413  soname_spec='${libname}${release}${shared_ext}$major'
10414  shlibpath_var=LD_LIBRARY_PATH
10415  case $host_vendor in
10416    sni)
10417      shlibpath_overrides_runpath=no
10418      need_lib_prefix=no
10419      export_dynamic_flag_spec='${wl}-Blargedynsym'
10420      runpath_var=LD_RUN_PATH
10421      ;;
10422    siemens)
10423      need_lib_prefix=no
10424      ;;
10425    motorola)
10426      need_lib_prefix=no
10427      need_version=no
10428      shlibpath_overrides_runpath=no
10429      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10430      ;;
10431  esac
10432  ;;
10433
10434sysv4*MP*)
10435  if test -d /usr/nec ;then
10436    version_type=linux
10437    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10438    soname_spec='$libname${shared_ext}.$major'
10439    shlibpath_var=LD_LIBRARY_PATH
10440  fi
10441  ;;
10442
10443sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10444  version_type=freebsd-elf
10445  need_lib_prefix=no
10446  need_version=no
10447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10448  soname_spec='${libname}${release}${shared_ext}$major'
10449  shlibpath_var=LD_LIBRARY_PATH
10450  hardcode_into_libs=yes
10451  if test "$with_gnu_ld" = yes; then
10452    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10453    shlibpath_overrides_runpath=no
10454  else
10455    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10456    shlibpath_overrides_runpath=yes
10457    case $host_os in
10458      sco3.2v5*)
10459        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10460        ;;
10461    esac
10462  fi
10463  sys_lib_dlsearch_path_spec='/usr/lib'
10464  ;;
10465
10466uts4*)
10467  version_type=linux
10468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469  soname_spec='${libname}${release}${shared_ext}$major'
10470  shlibpath_var=LD_LIBRARY_PATH
10471  ;;
10472
10473*)
10474  dynamic_linker=no
10475  ;;
10476esac
10477echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10478echo "${ECHO_T}$dynamic_linker" >&6
10479test "$dynamic_linker" = no && can_build_shared=no
10480
10481variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10482if test "$GCC" = yes; then
10483  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10484fi
10485
10486echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10487echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10488hardcode_action=
10489if test -n "$hardcode_libdir_flag_spec" || \
10490   test -n "$runpath_var" || \
10491   test "X$hardcode_automatic" = "Xyes" ; then
10492
10493  # We can hardcode non-existant directories.
10494  if test "$hardcode_direct" != no &&
10495     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10496     # have to relink, otherwise we might link with an installed library
10497     # when we should be linking with a yet-to-be-installed one
10498     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10499     test "$hardcode_minus_L" != no; then
10500    # Linking always hardcodes the temporary library directory.
10501    hardcode_action=relink
10502  else
10503    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10504    hardcode_action=immediate
10505  fi
10506else
10507  # We cannot hardcode anything, or else we can only hardcode existing
10508  # directories.
10509  hardcode_action=unsupported
10510fi
10511echo "$as_me:$LINENO: result: $hardcode_action" >&5
10512echo "${ECHO_T}$hardcode_action" >&6
10513
10514if test "$hardcode_action" = relink; then
10515  # Fast installation is not supported
10516  enable_fast_install=no
10517elif test "$shlibpath_overrides_runpath" = yes ||
10518     test "$enable_shared" = no; then
10519  # Fast installation is not necessary
10520  enable_fast_install=needless
10521fi
10522
10523striplib=
10524old_striplib=
10525echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10526echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10527if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10528  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10529  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10530  echo "$as_me:$LINENO: result: yes" >&5
10531echo "${ECHO_T}yes" >&6
10532else
10533# FIXME - insert some real tests, host_os isn't really good enough
10534  case $host_os in
10535   darwin*)
10536       if test -n "$STRIP" ; then
10537         striplib="$STRIP -x"
10538         echo "$as_me:$LINENO: result: yes" >&5
10539echo "${ECHO_T}yes" >&6
10540       else
10541  echo "$as_me:$LINENO: result: no" >&5
10542echo "${ECHO_T}no" >&6
10543fi
10544       ;;
10545   *)
10546  echo "$as_me:$LINENO: result: no" >&5
10547echo "${ECHO_T}no" >&6
10548    ;;
10549  esac
10550fi
10551
10552if test "x$enable_dlopen" != xyes; then
10553  enable_dlopen=unknown
10554  enable_dlopen_self=unknown
10555  enable_dlopen_self_static=unknown
10556else
10557  lt_cv_dlopen=no
10558  lt_cv_dlopen_libs=
10559
10560  case $host_os in
10561  beos*)
10562    lt_cv_dlopen="load_add_on"
10563    lt_cv_dlopen_libs=
10564    lt_cv_dlopen_self=yes
10565    ;;
10566
10567  mingw* | pw32*)
10568    lt_cv_dlopen="LoadLibrary"
10569    lt_cv_dlopen_libs=
10570   ;;
10571
10572  cygwin*)
10573    lt_cv_dlopen="dlopen"
10574    lt_cv_dlopen_libs=
10575   ;;
10576
10577  darwin*)
10578  # if libdl is installed we need to link against it
10579    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10580echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10581if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10582  echo $ECHO_N "(cached) $ECHO_C" >&6
10583else
10584  ac_check_lib_save_LIBS=$LIBS
10585LIBS="-ldl  $LIBS"
10586cat >conftest.$ac_ext <<_ACEOF
10587/* confdefs.h.  */
10588_ACEOF
10589cat confdefs.h >>conftest.$ac_ext
10590cat >>conftest.$ac_ext <<_ACEOF
10591/* end confdefs.h.  */
10592
10593/* Override any gcc2 internal prototype to avoid an error.  */
10594#ifdef __cplusplus
10595extern "C"
10596#endif
10597/* We use char because int might match the return type of a gcc2
10598   builtin and then its argument prototype would still apply.  */
10599char dlopen ();
10600int
10601main ()
10602{
10603dlopen ();
10604  ;
10605  return 0;
10606}
10607_ACEOF
10608rm -f conftest.$ac_objext conftest$ac_exeext
10609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610  (eval $ac_link) 2>conftest.er1
10611  ac_status=$?
10612  grep -v '^ *+' conftest.er1 >conftest.err
10613  rm -f conftest.er1
10614  cat conftest.err >&5
10615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); } &&
10617         { ac_try='test -z "$ac_c_werror_flag"
10618                         || test ! -s conftest.err'
10619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620  (eval $ac_try) 2>&5
10621  ac_status=$?
10622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623  (exit $ac_status); }; } &&
10624         { ac_try='test -s conftest$ac_exeext'
10625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626  (eval $ac_try) 2>&5
10627  ac_status=$?
10628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629  (exit $ac_status); }; }; then
10630  ac_cv_lib_dl_dlopen=yes
10631else
10632  echo "$as_me: failed program was:" >&5
10633sed 's/^/| /' conftest.$ac_ext >&5
10634
10635ac_cv_lib_dl_dlopen=no
10636fi
10637rm -f conftest.err conftest.$ac_objext \
10638      conftest$ac_exeext conftest.$ac_ext
10639LIBS=$ac_check_lib_save_LIBS
10640fi
10641echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10642echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10643if test $ac_cv_lib_dl_dlopen = yes; then
10644  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10645else
10646
10647    lt_cv_dlopen="dyld"
10648    lt_cv_dlopen_libs=
10649    lt_cv_dlopen_self=yes
10650
10651fi
10652
10653   ;;
10654
10655  *)
10656    echo "$as_me:$LINENO: checking for shl_load" >&5
10657echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10658if test "${ac_cv_func_shl_load+set}" = set; then
10659  echo $ECHO_N "(cached) $ECHO_C" >&6
10660else
10661  cat >conftest.$ac_ext <<_ACEOF
10662/* confdefs.h.  */
10663_ACEOF
10664cat confdefs.h >>conftest.$ac_ext
10665cat >>conftest.$ac_ext <<_ACEOF
10666/* end confdefs.h.  */
10667/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10668   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10669#define shl_load innocuous_shl_load
10670
10671/* System header to define __stub macros and hopefully few prototypes,
10672    which can conflict with char shl_load (); below.
10673    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10674    <limits.h> exists even on freestanding compilers.  */
10675
10676#ifdef __STDC__
10677# include <limits.h>
10678#else
10679# include <assert.h>
10680#endif
10681
10682#undef shl_load
10683
10684/* Override any gcc2 internal prototype to avoid an error.  */
10685#ifdef __cplusplus
10686extern "C"
10687{
10688#endif
10689/* We use char because int might match the return type of a gcc2
10690   builtin and then its argument prototype would still apply.  */
10691char shl_load ();
10692/* The GNU C library defines this for functions which it implements
10693    to always fail with ENOSYS.  Some functions are actually named
10694    something starting with __ and the normal name is an alias.  */
10695#if defined (__stub_shl_load) || defined (__stub___shl_load)
10696choke me
10697#else
10698char (*f) () = shl_load;
10699#endif
10700#ifdef __cplusplus
10701}
10702#endif
10703
10704int
10705main ()
10706{
10707return f != shl_load;
10708  ;
10709  return 0;
10710}
10711_ACEOF
10712rm -f conftest.$ac_objext conftest$ac_exeext
10713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10714  (eval $ac_link) 2>conftest.er1
10715  ac_status=$?
10716  grep -v '^ *+' conftest.er1 >conftest.err
10717  rm -f conftest.er1
10718  cat conftest.err >&5
10719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720  (exit $ac_status); } &&
10721         { ac_try='test -z "$ac_c_werror_flag"
10722                         || test ! -s conftest.err'
10723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724  (eval $ac_try) 2>&5
10725  ac_status=$?
10726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727  (exit $ac_status); }; } &&
10728         { ac_try='test -s conftest$ac_exeext'
10729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730  (eval $ac_try) 2>&5
10731  ac_status=$?
10732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733  (exit $ac_status); }; }; then
10734  ac_cv_func_shl_load=yes
10735else
10736  echo "$as_me: failed program was:" >&5
10737sed 's/^/| /' conftest.$ac_ext >&5
10738
10739ac_cv_func_shl_load=no
10740fi
10741rm -f conftest.err conftest.$ac_objext \<