source: trunk/configure @ 2361

Last change on this file since 2361 was 2361, checked in by tkr, 6 months ago

Re-running the autotools

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