source: stable/1.3/configure @ 1581

Last change on this file since 1581 was 1581, checked in by pbonami, 10 years ago

restoring stable/1.3

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