source: stable/2.5/configure

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

restoring Cbc/stable/2.5

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