source: stable/1.16/configure @ 2208

Last change on this file since 2208 was 2208, checked in by tkr, 4 years ago

temporarily committing release candidate

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