source: stable/2.10/configure @ 2894

Last change on this file since 2894 was 2894, checked in by stefan, 19 months ago

temporarily committing release candidate

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