source: stable/1.15/configure @ 2014

Last change on this file since 2014 was 2014, checked in by tkr, 6 years ago

restoring Clp/stable/1.15

  • Property svn:executable set to *
File size: 769.8 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Clp 1.15.
5#
6# Report bugs to <coin-clp@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
433PACKAGE_VERSION='1.15'
434PACKAGE_STRING='Clp 1.15'
435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
481ac_subdirs_all="$ac_subdirs_all Data/Sample"
482ac_subdirs_all="$ac_subdirs_all Data/Netlib"
483ac_subdirs_all="$ac_subdirs_all CoinUtils"
484ac_subdirs_all="$ac_subdirs_all Osi"
485ac_subdirs_all="$ac_subdirs_all Clp"
486ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
487ac_subst_files=''
488
489# Initialize some variables set by options.
490ac_init_help=
491ac_init_version=false
492# The variables have the same names as the options, with
493# dashes changed to underlines.
494cache_file=/dev/null
495exec_prefix=NONE
496no_create=
497no_recursion=
498prefix=NONE
499program_prefix=NONE
500program_suffix=NONE
501program_transform_name=s,x,x,
502silent=
503site=
504srcdir=
505verbose=
506x_includes=NONE
507x_libraries=NONE
508
509# Installation directory options.
510# These are left unexpanded so users can "make install exec_prefix=/foo"
511# and all the variables that are supposed to be based on exec_prefix
512# by default will actually change.
513# Use braces instead of parens because sh, perl, etc. also accept them.
514bindir='${exec_prefix}/bin'
515sbindir='${exec_prefix}/sbin'
516libexecdir='${exec_prefix}/libexec'
517datadir='${prefix}/share'
518sysconfdir='${prefix}/etc'
519sharedstatedir='${prefix}/com'
520localstatedir='${prefix}/var'
521libdir='${exec_prefix}/lib'
522includedir='${prefix}/include'
523oldincludedir='/usr/include'
524infodir='${prefix}/info'
525mandir='${prefix}/man'
526
527ac_prev=
528for ac_option
529do
530  # If the previous option needs an argument, assign it.
531  if test -n "$ac_prev"; then
532    eval "$ac_prev=\$ac_option"
533    ac_prev=
534    continue
535  fi
536
537  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
538
539  # Accept the important Cygnus configure options, so we can diagnose typos.
540
541  case $ac_option in
542
543  -bindir | --bindir | --bindi | --bind | --bin | --bi)
544    ac_prev=bindir ;;
545  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
546    bindir=$ac_optarg ;;
547
548  -build | --build | --buil | --bui | --bu)
549    ac_prev=build_alias ;;
550  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
551    build_alias=$ac_optarg ;;
552
553  -cache-file | --cache-file | --cache-fil | --cache-fi \
554  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
555    ac_prev=cache_file ;;
556  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
557  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
558    cache_file=$ac_optarg ;;
559
560  --config-cache | -C)
561    cache_file=config.cache ;;
562
563  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
564    ac_prev=datadir ;;
565  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
566  | --da=*)
567    datadir=$ac_optarg ;;
568
569  -disable-* | --disable-*)
570    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
571    # Reject names that are not valid shell variable names.
572    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574   { (exit 1); exit 1; }; }
575    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576    eval "enable_$ac_feature=no" ;;
577
578  -enable-* | --enable-*)
579    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
580    # Reject names that are not valid shell variable names.
581    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
582      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
583   { (exit 1); exit 1; }; }
584    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
585    case $ac_option in
586      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587      *) ac_optarg=yes ;;
588    esac
589    eval "enable_$ac_feature='$ac_optarg'" ;;
590
591  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
592  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
593  | --exec | --exe | --ex)
594    ac_prev=exec_prefix ;;
595  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
596  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
597  | --exec=* | --exe=* | --ex=*)
598    exec_prefix=$ac_optarg ;;
599
600  -gas | --gas | --ga | --g)
601    # Obsolete; use --with-gas.
602    with_gas=yes ;;
603
604  -help | --help | --hel | --he | -h)
605    ac_init_help=long ;;
606  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
607    ac_init_help=recursive ;;
608  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
609    ac_init_help=short ;;
610
611  -host | --host | --hos | --ho)
612    ac_prev=host_alias ;;
613  -host=* | --host=* | --hos=* | --ho=*)
614    host_alias=$ac_optarg ;;
615
616  -includedir | --includedir | --includedi | --included | --include \
617  | --includ | --inclu | --incl | --inc)
618    ac_prev=includedir ;;
619  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
620  | --includ=* | --inclu=* | --incl=* | --inc=*)
621    includedir=$ac_optarg ;;
622
623  -infodir | --infodir | --infodi | --infod | --info | --inf)
624    ac_prev=infodir ;;
625  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
626    infodir=$ac_optarg ;;
627
628  -libdir | --libdir | --libdi | --libd)
629    ac_prev=libdir ;;
630  -libdir=* | --libdir=* | --libdi=* | --libd=*)
631    libdir=$ac_optarg ;;
632
633  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
634  | --libexe | --libex | --libe)
635    ac_prev=libexecdir ;;
636  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
637  | --libexe=* | --libex=* | --libe=*)
638    libexecdir=$ac_optarg ;;
639
640  -localstatedir | --localstatedir | --localstatedi | --localstated \
641  | --localstate | --localstat | --localsta | --localst \
642  | --locals | --local | --loca | --loc | --lo)
643    ac_prev=localstatedir ;;
644  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
645  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
646  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
647    localstatedir=$ac_optarg ;;
648
649  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
650    ac_prev=mandir ;;
651  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
652    mandir=$ac_optarg ;;
653
654  -nfp | --nfp | --nf)
655    # Obsolete; use --without-fp.
656    with_fp=no ;;
657
658  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
659  | --no-cr | --no-c | -n)
660    no_create=yes ;;
661
662  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
663  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
664    no_recursion=yes ;;
665
666  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
667  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
668  | --oldin | --oldi | --old | --ol | --o)
669    ac_prev=oldincludedir ;;
670  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
671  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
672  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
673    oldincludedir=$ac_optarg ;;
674
675  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
676    ac_prev=prefix ;;
677  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
678    prefix=$ac_optarg ;;
679
680  -program-prefix | --program-prefix | --program-prefi | --program-pref \
681  | --program-pre | --program-pr | --program-p)
682    ac_prev=program_prefix ;;
683  -program-prefix=* | --program-prefix=* | --program-prefi=* \
684  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
685    program_prefix=$ac_optarg ;;
686
687  -program-suffix | --program-suffix | --program-suffi | --program-suff \
688  | --program-suf | --program-su | --program-s)
689    ac_prev=program_suffix ;;
690  -program-suffix=* | --program-suffix=* | --program-suffi=* \
691  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
692    program_suffix=$ac_optarg ;;
693
694  -program-transform-name | --program-transform-name \
695  | --program-transform-nam | --program-transform-na \
696  | --program-transform-n | --program-transform- \
697  | --program-transform | --program-transfor \
698  | --program-transfo | --program-transf \
699  | --program-trans | --program-tran \
700  | --progr-tra | --program-tr | --program-t)
701    ac_prev=program_transform_name ;;
702  -program-transform-name=* | --program-transform-name=* \
703  | --program-transform-nam=* | --program-transform-na=* \
704  | --program-transform-n=* | --program-transform-=* \
705  | --program-transform=* | --program-transfor=* \
706  | --program-transfo=* | --program-transf=* \
707  | --program-trans=* | --program-tran=* \
708  | --progr-tra=* | --program-tr=* | --program-t=*)
709    program_transform_name=$ac_optarg ;;
710
711  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
712  | -silent | --silent | --silen | --sile | --sil)
713    silent=yes ;;
714
715  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
716    ac_prev=sbindir ;;
717  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
718  | --sbi=* | --sb=*)
719    sbindir=$ac_optarg ;;
720
721  -sharedstatedir | --sharedstatedir | --sharedstatedi \
722  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
723  | --sharedst | --shareds | --shared | --share | --shar \
724  | --sha | --sh)
725    ac_prev=sharedstatedir ;;
726  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
727  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
728  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
729  | --sha=* | --sh=*)
730    sharedstatedir=$ac_optarg ;;
731
732  -site | --site | --sit)
733    ac_prev=site ;;
734  -site=* | --site=* | --sit=*)
735    site=$ac_optarg ;;
736
737  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
738    ac_prev=srcdir ;;
739  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
740    srcdir=$ac_optarg ;;
741
742  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
743  | --syscon | --sysco | --sysc | --sys | --sy)
744    ac_prev=sysconfdir ;;
745  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
746  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
747    sysconfdir=$ac_optarg ;;
748
749  -target | --target | --targe | --targ | --tar | --ta | --t)
750    ac_prev=target_alias ;;
751  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
752    target_alias=$ac_optarg ;;
753
754  -v | -verbose | --verbose | --verbos | --verbo | --verb)
755    verbose=yes ;;
756
757  -version | --version | --versio | --versi | --vers | -V)
758    ac_init_version=: ;;
759
760  -with-* | --with-*)
761    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
762    # Reject names that are not valid shell variable names.
763    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764      { echo "$as_me: error: invalid package name: $ac_package" >&2
765   { (exit 1); exit 1; }; }
766    ac_package=`echo $ac_package| sed 's/-/_/g'`
767    case $ac_option in
768      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
769      *) ac_optarg=yes ;;
770    esac
771    eval "with_$ac_package='$ac_optarg'" ;;
772
773  -without-* | --without-*)
774    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
775    # Reject names that are not valid shell variable names.
776    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
777      { echo "$as_me: error: invalid package name: $ac_package" >&2
778   { (exit 1); exit 1; }; }
779    ac_package=`echo $ac_package | sed 's/-/_/g'`
780    eval "with_$ac_package=no" ;;
781
782  --x)
783    # Obsolete; use --with-x.
784    with_x=yes ;;
785
786  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
787  | --x-incl | --x-inc | --x-in | --x-i)
788    ac_prev=x_includes ;;
789  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
790  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
791    x_includes=$ac_optarg ;;
792
793  -x-libraries | --x-libraries | --x-librarie | --x-librari \
794  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
795    ac_prev=x_libraries ;;
796  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
797  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
798    x_libraries=$ac_optarg ;;
799
800  -*) { echo "$as_me: error: unrecognized option: $ac_option
801Try \`$0 --help' for more information." >&2
802   { (exit 1); exit 1; }; }
803    ;;
804
805  *=*)
806    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
807    # Reject names that are not valid shell variable names.
808    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
809      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
810   { (exit 1); exit 1; }; }
811    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
812    eval "$ac_envvar='$ac_optarg'"
813    export $ac_envvar ;;
814
815  *)
816    # FIXME: should be removed in autoconf 3.0.
817    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
818    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
820    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
821    ;;
822
823  esac
824done
825
826if test -n "$ac_prev"; then
827  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
828  { echo "$as_me: error: missing argument to $ac_option" >&2
829   { (exit 1); exit 1; }; }
830fi
831
832# Be sure to have absolute paths.
833for ac_var in exec_prefix prefix
834do
835  eval ac_val=$`echo $ac_var`
836  case $ac_val in
837    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
838    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
839   { (exit 1); exit 1; }; };;
840  esac
841done
842
843# Be sure to have absolute paths.
844for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
845              localstatedir libdir includedir oldincludedir infodir mandir
846do
847  eval ac_val=$`echo $ac_var`
848  case $ac_val in
849    [\\/$]* | ?:[\\/]* ) ;;
850    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
851   { (exit 1); exit 1; }; };;
852  esac
853done
854
855# There might be people who depend on the old broken behavior: `$host'
856# used to hold the argument of --host etc.
857# FIXME: To remove some day.
858build=$build_alias
859host=$host_alias
860target=$target_alias
861
862# FIXME: To remove some day.
863if test "x$host_alias" != x; then
864  if test "x$build_alias" = x; then
865    cross_compiling=maybe
866    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
867    If a cross compiler is detected then cross compile mode will be used." >&2
868  elif test "x$build_alias" != "x$host_alias"; then
869    cross_compiling=yes
870  fi
871fi
872
873ac_tool_prefix=
874test -n "$host_alias" && ac_tool_prefix=$host_alias-
875
876test "$silent" = yes && exec 6>/dev/null
877
878
879# Find the source files, if location was not specified.
880if test -z "$srcdir"; then
881  ac_srcdir_defaulted=yes
882  # Try the directory containing this script, then its parent.
883  ac_confdir=`(dirname "$0") 2>/dev/null ||
884$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
885         X"$0" : 'X\(//\)[^/]' \| \
886         X"$0" : 'X\(//\)$' \| \
887         X"$0" : 'X\(/\)' \| \
888         .     : '\(.\)' 2>/dev/null ||
889echo X"$0" |
890    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
891          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
892          /^X\(\/\/\)$/{ s//\1/; q; }
893          /^X\(\/\).*/{ s//\1/; q; }
894          s/.*/./; q'`
895  srcdir=$ac_confdir
896  if test ! -r $srcdir/$ac_unique_file; then
897    srcdir=..
898  fi
899else
900  ac_srcdir_defaulted=no
901fi
902if test ! -r $srcdir/$ac_unique_file; then
903  if test "$ac_srcdir_defaulted" = yes; then
904    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
905   { (exit 1); exit 1; }; }
906  else
907    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
908   { (exit 1); exit 1; }; }
909  fi
910fi
911(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
912  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
913   { (exit 1); exit 1; }; }
914srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
915ac_env_build_alias_set=${build_alias+set}
916ac_env_build_alias_value=$build_alias
917ac_cv_env_build_alias_set=${build_alias+set}
918ac_cv_env_build_alias_value=$build_alias
919ac_env_host_alias_set=${host_alias+set}
920ac_env_host_alias_value=$host_alias
921ac_cv_env_host_alias_set=${host_alias+set}
922ac_cv_env_host_alias_value=$host_alias
923ac_env_target_alias_set=${target_alias+set}
924ac_env_target_alias_value=$target_alias
925ac_cv_env_target_alias_set=${target_alias+set}
926ac_cv_env_target_alias_value=$target_alias
927ac_env_CDEFS_set=${CDEFS+set}
928ac_env_CDEFS_value=$CDEFS
929ac_cv_env_CDEFS_set=${CDEFS+set}
930ac_cv_env_CDEFS_value=$CDEFS
931ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
932ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
933ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
934ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
935ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
936ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
937ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
938ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
939ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
940ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
941ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
942ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
943ac_env_CC_set=${CC+set}
944ac_env_CC_value=$CC
945ac_cv_env_CC_set=${CC+set}
946ac_cv_env_CC_value=$CC
947ac_env_CFLAGS_set=${CFLAGS+set}
948ac_env_CFLAGS_value=$CFLAGS
949ac_cv_env_CFLAGS_set=${CFLAGS+set}
950ac_cv_env_CFLAGS_value=$CFLAGS
951ac_env_LDFLAGS_set=${LDFLAGS+set}
952ac_env_LDFLAGS_value=$LDFLAGS
953ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
954ac_cv_env_LDFLAGS_value=$LDFLAGS
955ac_env_CPPFLAGS_set=${CPPFLAGS+set}
956ac_env_CPPFLAGS_value=$CPPFLAGS
957ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
958ac_cv_env_CPPFLAGS_value=$CPPFLAGS
959ac_env_MPICC_set=${MPICC+set}
960ac_env_MPICC_value=$MPICC
961ac_cv_env_MPICC_set=${MPICC+set}
962ac_cv_env_MPICC_value=$MPICC
963ac_env_CXXDEFS_set=${CXXDEFS+set}
964ac_env_CXXDEFS_value=$CXXDEFS
965ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
966ac_cv_env_CXXDEFS_value=$CXXDEFS
967ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
968ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
969ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
970ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
971ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
972ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
973ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
974ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
975ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
976ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
977ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
978ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
979ac_env_CXX_set=${CXX+set}
980ac_env_CXX_value=$CXX
981ac_cv_env_CXX_set=${CXX+set}
982ac_cv_env_CXX_value=$CXX
983ac_env_CXXFLAGS_set=${CXXFLAGS+set}
984ac_env_CXXFLAGS_value=$CXXFLAGS
985ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
986ac_cv_env_CXXFLAGS_value=$CXXFLAGS
987ac_env_MPICXX_set=${MPICXX+set}
988ac_env_MPICXX_value=$MPICXX
989ac_cv_env_MPICXX_set=${MPICXX+set}
990ac_cv_env_MPICXX_value=$MPICXX
991ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
992ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
993ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
994ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
995ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
996ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
997ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
998ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
999ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1000ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1001ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1002ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1003ac_env_F77_set=${F77+set}
1004ac_env_F77_value=$F77
1005ac_cv_env_F77_set=${F77+set}
1006ac_cv_env_F77_value=$F77
1007ac_env_FFLAGS_set=${FFLAGS+set}
1008ac_env_FFLAGS_value=$FFLAGS
1009ac_cv_env_FFLAGS_set=${FFLAGS+set}
1010ac_cv_env_FFLAGS_value=$FFLAGS
1011ac_env_MPIF77_set=${MPIF77+set}
1012ac_env_MPIF77_value=$MPIF77
1013ac_cv_env_MPIF77_set=${MPIF77+set}
1014ac_cv_env_MPIF77_value=$MPIF77
1015ac_env_CPP_set=${CPP+set}
1016ac_env_CPP_value=$CPP
1017ac_cv_env_CPP_set=${CPP+set}
1018ac_cv_env_CPP_value=$CPP
1019ac_env_CXXCPP_set=${CXXCPP+set}
1020ac_env_CXXCPP_value=$CXXCPP
1021ac_cv_env_CXXCPP_set=${CXXCPP+set}
1022ac_cv_env_CXXCPP_value=$CXXCPP
1023ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1024ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1025ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1026ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1027
1028#
1029# Report the --help message.
1030#
1031if test "$ac_init_help" = "long"; then
1032  # Omit some internal or obsolete options to make the list less imposing.
1033  # This message is too long to be a string in the A/UX 3.1 sh.
1034  cat <<_ACEOF
1035\`configure' configures Clp 1.15 to adapt to many kinds of systems.
1036
1037Usage: $0 [OPTION]... [VAR=VALUE]...
1038
1039To assign environment variables (e.g., CC, CFLAGS...), specify them as
1040VAR=VALUE.  See below for descriptions of some of the useful variables.
1041
1042Defaults for the options are specified in brackets.
1043
1044Configuration:
1045  -h, --help              display this help and exit
1046      --help=short        display options specific to this package
1047      --help=recursive    display the short help of all the included packages
1048  -V, --version           display version information and exit
1049  -q, --quiet, --silent   do not print \`checking...' messages
1050      --cache-file=FILE   cache test results in FILE [disabled]
1051  -C, --config-cache      alias for \`--cache-file=config.cache'
1052  -n, --no-create         do not create output files
1053      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1054
1055_ACEOF
1056
1057  cat <<_ACEOF
1058Installation directories:
1059  --prefix=PREFIX         install architecture-independent files in PREFIX
1060                          [$ac_default_prefix]
1061  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1062                          [PREFIX]
1063
1064By default, \`make install' will install all the files in
1065\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1066an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1067for instance \`--prefix=\$HOME'.
1068
1069For better control, use the options below.
1070
1071Fine tuning of the installation directories:
1072  --bindir=DIR           user executables [EPREFIX/bin]
1073  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1074  --libexecdir=DIR       program executables [EPREFIX/libexec]
1075  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1076  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1077  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1078  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1079  --libdir=DIR           object code libraries [EPREFIX/lib]
1080  --includedir=DIR       C header files [PREFIX/include]
1081  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1082  --infodir=DIR          info documentation [PREFIX/info]
1083  --mandir=DIR           man documentation [PREFIX/man]
1084_ACEOF
1085
1086  cat <<\_ACEOF
1087
1088Program names:
1089  --program-prefix=PREFIX            prepend PREFIX to installed program names
1090  --program-suffix=SUFFIX            append SUFFIX to installed program names
1091  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1092
1093System types:
1094  --build=BUILD     configure for building on BUILD [guessed]
1095  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1096_ACEOF
1097fi
1098
1099if test -n "$ac_init_help"; then
1100  case $ac_init_help in
1101     short | recursive ) echo "Configuration of Clp 1.15:";;
1102   esac
1103  cat <<\_ACEOF
1104
1105Optional Features:
1106  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1107  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1108  --enable-debug          compile all projects with debug options tests
1109                          (implies --disable-shared)
1110
1111  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1112  --enable-static[=PKGS]
1113                          build static libraries [default=no]
1114  --disable-dependency-tracking  speeds up one-time build
1115  --enable-dependency-tracking   do not reject slow dependency extractors
1116  --enable-maintainer-mode  enable make rules and dependencies not useful
1117                          (and sometimes confusing) to the casual installer
1118  --enable-shared[=PKGS]
1119                          build shared libraries [default=yes]
1120  --enable-fast-install[=PKGS]
1121                          optimize for fast installation [default=yes]
1122  --disable-libtool-lock  avoid locking (might break parallel builds)
1123
1124Optional Packages:
1125  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1126  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1127  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1128  --with-pic              try to use only PIC/non-PIC objects [default=use
1129                          both]
1130  --with-tags[=TAGS]
1131                          include additional configurations [automatic]
1132
1133  --with-blas-lib linker flags for using project Blas
1134  --with-blas-incdir directory with header files for using project Blas
1135  --with-blas-datadir directory with data files for using project Blas
1136  --with-blas             specify BLAS library (or BUILD to enforce use of
1137                          ThirdParty/Blas)
1138  --with-lapack-lib linker flags for using project Lapack
1139  --with-lapack-incdir directory with header files for using project Lapack
1140  --with-lapack-datadir directory with data files for using project Lapack
1141  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1142                          ThirdParty/Lapack)
1143  --with-metis-lib linker flags for using project Metis
1144  --with-metis-incdir directory with header files for using project Metis
1145  --with-metis-datadir directory with data files for using project Metis
1146  --with-mumps-lib linker flags for using project Mumps
1147  --with-mumps-incdir directory with header files for using project Mumps
1148  --with-mumps-datadir directory with data files for using project Mumps
1149  --with-glpk-lib linker flags for using project Glpk
1150  --with-glpk-incdir directory with header files for using project Glpk
1151  --with-glpk-datadir directory with data files for using project Glpk
1152  --with-sample-lib linker flags for using project Sample
1153  --with-sample-incdir directory with header files for using project Sample
1154  --with-sample-datadir directory with data files for using project Sample
1155  --with-netlib-lib linker flags for using project Netlib
1156  --with-netlib-incdir directory with header files for using project Netlib
1157  --with-netlib-datadir directory with data files for using project Netlib
1158  --with-coinutils-lib linker flags for using project CoinUtils
1159  --with-coinutils-incdir directory with header files for using project
1160                          CoinUtils
1161  --with-coinutils-datadir
1162                          directory with data files for using project
1163                          CoinUtils
1164  --with-osi-lib linker flags for using project Osi
1165  --with-osi-incdir directory with header files for using project Osi
1166  --with-osi-datadir directory with data files for using project Osi
1167  --with-clp-lib linker flags for using project Clp
1168  --with-clp-incdir directory with header files for using project Clp
1169  --with-clp-datadir directory with data files for using project Clp
1170  --with-dot              use dot (from graphviz) when creating documentation
1171                          with doxygen if available; --without-dot to disable
1172
1173Some influential environment variables:
1174  CDEFS       Additional -D flags to be used when compiling C code.
1175  ADD_CFLAGS  Additional C compiler options
1176  DBG_CFLAGS  Debug C compiler options
1177  OPT_CFLAGS  Optimize C compiler options
1178  CC          C compiler command
1179  CFLAGS      C compiler flags
1180  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1181              nonstandard directory <lib dir>
1182  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1183              headers in a nonstandard directory <include dir>
1184  MPICC       C MPI Compiler
1185  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1186  ADD_CXXFLAGS
1187              Additional C++ compiler options
1188  DBG_CXXFLAGS
1189              Debug C++ compiler options
1190  OPT_CXXFLAGS
1191              Optimize C++ compiler options
1192  CXX         C++ compiler command
1193  CXXFLAGS    C++ compiler flags
1194  MPICXX      C++ MPI Compiler
1195  ADD_FFLAGS  Additional Fortran compiler options
1196  DBG_FFLAGS  Debug Fortran compiler options
1197  OPT_FFLAGS  Optimize Fortran compiler options
1198  F77         Fortran 77 compiler command
1199  FFLAGS      Fortran 77 compiler flags
1200  MPIF77      Fortran MPI Compiler
1201  CPP         C preprocessor
1202  CXXCPP      C++ preprocessor
1203  COIN_SKIP_PROJECTS
1204              Set to the subdirectories of projects that should be skipped in
1205              the configuration
1206
1207Use these variables to override the choices made by `configure' or to help
1208it to find libraries and programs with nonstandard names/locations.
1209
1210Report bugs to <coin-clp@lists.coin-or.org>.
1211_ACEOF
1212fi
1213
1214if test "$ac_init_help" = "recursive"; then
1215  # If there are subdirs, report their specific --help.
1216  ac_popdir=`pwd`
1217  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1218    test -d $ac_dir || continue
1219    ac_builddir=.
1220
1221if test "$ac_dir" != .; then
1222  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1223  # A "../" for each directory in $ac_dir_suffix.
1224  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1225else
1226  ac_dir_suffix= ac_top_builddir=
1227fi
1228
1229case $srcdir in
1230  .)  # No --srcdir option.  We are building in place.
1231    ac_srcdir=.
1232    if test -z "$ac_top_builddir"; then
1233       ac_top_srcdir=.
1234    else
1235       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1236    fi ;;
1237  [\\/]* | ?:[\\/]* )  # Absolute path.
1238    ac_srcdir=$srcdir$ac_dir_suffix;
1239    ac_top_srcdir=$srcdir ;;
1240  *) # Relative path.
1241    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1242    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1243esac
1244
1245# Do not use `cd foo && pwd` to compute absolute paths, because
1246# the directories may not exist.
1247case `pwd` in
1248.) ac_abs_builddir="$ac_dir";;
1249*)
1250  case "$ac_dir" in
1251  .) ac_abs_builddir=`pwd`;;
1252  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1253  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1254  esac;;
1255esac
1256case $ac_abs_builddir in
1257.) ac_abs_top_builddir=${ac_top_builddir}.;;
1258*)
1259  case ${ac_top_builddir}. in
1260  .) ac_abs_top_builddir=$ac_abs_builddir;;
1261  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1262  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1263  esac;;
1264esac
1265case $ac_abs_builddir in
1266.) ac_abs_srcdir=$ac_srcdir;;
1267*)
1268  case $ac_srcdir in
1269  .) ac_abs_srcdir=$ac_abs_builddir;;
1270  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1271  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1272  esac;;
1273esac
1274case $ac_abs_builddir in
1275.) ac_abs_top_srcdir=$ac_top_srcdir;;
1276*)
1277  case $ac_top_srcdir in
1278  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1279  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1280  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1281  esac;;
1282esac
1283
1284    cd $ac_dir
1285    # Check for guested configure; otherwise get Cygnus style configure.
1286    if test -f $ac_srcdir/configure.gnu; then
1287      echo
1288      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1289    elif test -f $ac_srcdir/configure; then
1290      echo
1291      $SHELL $ac_srcdir/configure  --help=recursive
1292    elif test -f $ac_srcdir/configure.ac ||
1293           test -f $ac_srcdir/configure.in; then
1294      echo
1295      $ac_configure --help
1296    else
1297      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1298    fi
1299    cd $ac_popdir
1300  done
1301fi
1302
1303test -n "$ac_init_help" && exit 0
1304if $ac_init_version; then
1305  cat <<\_ACEOF
1306Clp configure 1.15
1307generated by GNU Autoconf 2.59
1308
1309Copyright (C) 2003 Free Software Foundation, Inc.
1310This configure script is free software; the Free Software Foundation
1311gives unlimited permission to copy, distribute and modify it.
1312
1313
1314Copyright 2006 International Business Machines and others.
1315All Rights Reserved.
1316This file is part of the open source package Coin which is distributed
1317under the Eclipse Public License.
1318_ACEOF
1319  exit 0
1320fi
1321exec 5>config.log
1322cat >&5 <<_ACEOF
1323This file contains any messages produced by compilers while
1324running configure, to aid debugging if configure makes a mistake.
1325
1326It was created by Clp $as_me 1.15, which was
1327generated by GNU Autoconf 2.59.  Invocation command line was
1328
1329  $ $0 $@
1330
1331_ACEOF
1332{
1333cat <<_ASUNAME
1334## --------- ##
1335## Platform. ##
1336## --------- ##
1337
1338hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1339uname -m = `(uname -m) 2>/dev/null || echo unknown`
1340uname -r = `(uname -r) 2>/dev/null || echo unknown`
1341uname -s = `(uname -s) 2>/dev/null || echo unknown`
1342uname -v = `(uname -v) 2>/dev/null || echo unknown`
1343
1344/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1345/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1346
1347/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1348/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1349/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1350hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1351/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1352/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1353/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1354
1355_ASUNAME
1356
1357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358for as_dir in $PATH
1359do
1360  IFS=$as_save_IFS
1361  test -z "$as_dir" && as_dir=.
1362  echo "PATH: $as_dir"
1363done
1364
1365} >&5
1366
1367cat >&5 <<_ACEOF
1368
1369
1370## ----------- ##
1371## Core tests. ##
1372## ----------- ##
1373
1374_ACEOF
1375
1376
1377# Keep a trace of the command line.
1378# Strip out --no-create and --no-recursion so they do not pile up.
1379# Strip out --silent because we don't want to record it for future runs.
1380# Also quote any args containing shell meta-characters.
1381# Make two passes to allow for proper duplicate-argument suppression.
1382ac_configure_args=
1383ac_configure_args0=
1384ac_configure_args1=
1385ac_sep=
1386ac_must_keep_next=false
1387for ac_pass in 1 2
1388do
1389  for ac_arg
1390  do
1391    case $ac_arg in
1392    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1393    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1394    | -silent | --silent | --silen | --sile | --sil)
1395      continue ;;
1396    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1397      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1398    esac
1399    case $ac_pass in
1400    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1401    2)
1402      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1403      if test $ac_must_keep_next = true; then
1404        ac_must_keep_next=false # Got value, back to normal.
1405      else
1406        case $ac_arg in
1407          *=* | --config-cache | -C | -disable-* | --disable-* \
1408          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1409          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1410          | -with-* | --with-* | -without-* | --without-* | --x)
1411            case "$ac_configure_args0 " in
1412              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1413            esac
1414            ;;
1415          -* ) ac_must_keep_next=true ;;
1416        esac
1417      fi
1418      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1419      # Get rid of the leading space.
1420      ac_sep=" "
1421      ;;
1422    esac
1423  done
1424done
1425$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1426$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1427
1428# When interrupted or exit'd, cleanup temporary files, and complete
1429# config.log.  We remove comments because anyway the quotes in there
1430# would cause problems or look ugly.
1431# WARNING: Be sure not to use single quotes in there, as some shells,
1432# such as our DU 5.0 friend, will then `close' the trap.
1433trap 'exit_status=$?
1434  # Save into config.log some information that might help in debugging.
1435  {
1436    echo
1437
1438    cat <<\_ASBOX
1439## ---------------- ##
1440## Cache variables. ##
1441## ---------------- ##
1442_ASBOX
1443    echo
1444    # The following way of writing the cache mishandles newlines in values,
1445{
1446  (set) 2>&1 |
1447    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1448    *ac_space=\ *)
1449      sed -n \
1450        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1451          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1452      ;;
1453    *)
1454      sed -n \
1455        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1456      ;;
1457    esac;
1458}
1459    echo
1460
1461    cat <<\_ASBOX
1462## ----------------- ##
1463## Output variables. ##
1464## ----------------- ##
1465_ASBOX
1466    echo
1467    for ac_var in $ac_subst_vars
1468    do
1469      eval ac_val=$`echo $ac_var`
1470      echo "$ac_var='"'"'$ac_val'"'"'"
1471    done | sort
1472    echo
1473
1474    if test -n "$ac_subst_files"; then
1475      cat <<\_ASBOX
1476## ------------- ##
1477## Output files. ##
1478## ------------- ##
1479_ASBOX
1480      echo
1481      for ac_var in $ac_subst_files
1482      do
1483        eval ac_val=$`echo $ac_var`
1484        echo "$ac_var='"'"'$ac_val'"'"'"
1485      done | sort
1486      echo
1487    fi
1488
1489    if test -s confdefs.h; then
1490      cat <<\_ASBOX
1491## ----------- ##
1492## confdefs.h. ##
1493## ----------- ##
1494_ASBOX
1495      echo
1496      sed "/^$/d" confdefs.h | sort
1497      echo
1498    fi
1499    test "$ac_signal" != 0 &&
1500      echo "$as_me: caught signal $ac_signal"
1501    echo "$as_me: exit $exit_status"
1502  } >&5
1503  rm -f core *.core &&
1504  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1505    exit $exit_status
1506     ' 0
1507for ac_signal in 1 2 13 15; do
1508  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1509done
1510ac_signal=0
1511
1512# confdefs.h avoids OS command line length limits that DEFS can exceed.
1513rm -rf conftest* confdefs.h
1514# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1515echo >confdefs.h
1516
1517# Predefined preprocessor variables.
1518
1519cat >>confdefs.h <<_ACEOF
1520#define PACKAGE_NAME "$PACKAGE_NAME"
1521_ACEOF
1522
1523
1524cat >>confdefs.h <<_ACEOF
1525#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1526_ACEOF
1527
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_VERSION "$PACKAGE_VERSION"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_STRING "$PACKAGE_STRING"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1541_ACEOF
1542
1543
1544# Let the site file select an alternate cache file if it wants to.
1545# Prefer explicitly selected file to automatically selected ones.
1546if test -z "$CONFIG_SITE"; then
1547  if test "x$prefix" != xNONE; then
1548    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1549  else
1550    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1551  fi
1552fi
1553for ac_site_file in $CONFIG_SITE; do
1554  if test -r "$ac_site_file"; then
1555    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1556echo "$as_me: loading site script $ac_site_file" >&6;}
1557    sed 's/^/| /' "$ac_site_file" >&5
1558    . "$ac_site_file"
1559  fi
1560done
1561
1562if test -r "$cache_file"; then
1563  # Some versions of bash will fail to source /dev/null (special
1564  # files actually), so we avoid doing that.
1565  if test -f "$cache_file"; then
1566    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1567echo "$as_me: loading cache $cache_file" >&6;}
1568    case $cache_file in
1569      [\\/]* | ?:[\\/]* ) . $cache_file;;
1570      *)                      . ./$cache_file;;
1571    esac
1572  fi
1573else
1574  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1575echo "$as_me: creating cache $cache_file" >&6;}
1576  >$cache_file
1577fi
1578
1579# Check that the precious variables saved in the cache have kept the same
1580# value.
1581ac_cache_corrupted=false
1582for ac_var in `(set) 2>&1 |
1583               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1584  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1585  eval ac_new_set=\$ac_env_${ac_var}_set
1586  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1587  eval ac_new_val="\$ac_env_${ac_var}_value"
1588  case $ac_old_set,$ac_new_set in
1589    set,)
1590      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1591echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1592      ac_cache_corrupted=: ;;
1593    ,set)
1594      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1595echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1596      ac_cache_corrupted=: ;;
1597    ,);;
1598    *)
1599      if test "x$ac_old_val" != "x$ac_new_val"; then
1600        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1601echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1602        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1603echo "$as_me:   former value:  $ac_old_val" >&2;}
1604        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1605echo "$as_me:   current value: $ac_new_val" >&2;}
1606        ac_cache_corrupted=:
1607      fi;;
1608  esac
1609  # Pass precious variables to config.status.
1610  if test "$ac_new_set" = set; then
1611    case $ac_new_val in
1612    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1613      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1614    *) ac_arg=$ac_var=$ac_new_val ;;
1615    esac
1616    case " $ac_configure_args " in
1617      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1618      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1619    esac
1620  fi
1621done
1622if $ac_cache_corrupted; then
1623  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1624echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1625  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1626echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1627   { (exit 1); exit 1; }; }
1628fi
1629
1630ac_ext=c
1631ac_cpp='$CPP $CPPFLAGS'
1632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634ac_compiler_gnu=$ac_cv_c_compiler_gnu
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667# List one file in the package so that the configure script can test
1668# whether the package is actually there
1669
1670
1671# Where should everything be installed by default?  Here, we want it
1672# to be installed directly in 'bin', 'lib', 'include' subdirectories
1673# of the directory where configure is run.  The default would be
1674# /usr/local.
1675
1676
1677#############################################################################
1678#              Create the libtool script for the subdirectories             #
1679#############################################################################
1680
1681ac_aux_dir=
1682for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1683  if test -f $ac_dir/install-sh; then
1684    ac_aux_dir=$ac_dir
1685    ac_install_sh="$ac_aux_dir/install-sh -c"
1686    break
1687  elif test -f $ac_dir/install.sh; then
1688    ac_aux_dir=$ac_dir
1689    ac_install_sh="$ac_aux_dir/install.sh -c"
1690    break
1691  elif test -f $ac_dir/shtool; then
1692    ac_aux_dir=$ac_dir
1693    ac_install_sh="$ac_aux_dir/shtool install -c"
1694    break
1695  fi
1696done
1697if test -z "$ac_aux_dir"; then
1698  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1699echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1700   { (exit 1); exit 1; }; }
1701fi
1702ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1703ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1704ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1705
1706# Make sure we can run config.sub.
1707$ac_config_sub sun4 >/dev/null 2>&1 ||
1708  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1709echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1710   { (exit 1); exit 1; }; }
1711
1712echo "$as_me:$LINENO: checking build system type" >&5
1713echo $ECHO_N "checking build system type... $ECHO_C" >&6
1714if test "${ac_cv_build+set}" = set; then
1715  echo $ECHO_N "(cached) $ECHO_C" >&6
1716else
1717  ac_cv_build_alias=$build_alias
1718test -z "$ac_cv_build_alias" &&
1719  ac_cv_build_alias=`$ac_config_guess`
1720test -z "$ac_cv_build_alias" &&
1721  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1722echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1723   { (exit 1); exit 1; }; }
1724ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1725  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1726echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1727   { (exit 1); exit 1; }; }
1728
1729fi
1730echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1731echo "${ECHO_T}$ac_cv_build" >&6
1732build=$ac_cv_build
1733build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1734build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1735build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1736
1737
1738
1739# Check if user wants to produce debugging code
1740
1741echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1742echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1743
1744# Check whether --enable-debug or --disable-debug was given.
1745if test "${enable_debug+set}" = set; then
1746  enableval="$enable_debug"
1747  case "${enableval}" in
1748   yes) coin_debug_compile=true
1749        if test "${enable_shared+set}" = set; then :; else
1750          enable_shared=no
1751        fi
1752        ;;
1753   no)  coin_debug_compile=false
1754        ;;
1755   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1756echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1757   { (exit 1); exit 1; }; }
1758        ;;
1759esac
1760else
1761  coin_debug_compile=false
1762fi;
1763
1764 # m4_ifvaln([],
1765
1766if test $coin_debug_compile = true; then
1767  echo "$as_me:$LINENO: result: yes" >&5
1768echo "${ECHO_T}yes" >&6
1769else
1770  echo "$as_me:$LINENO: result: no" >&5
1771echo "${ECHO_T}no" >&6
1772fi
1773
1774 # m4_ifvaln([],
1775
1776
1777
1778# Get the name of the C compiler and appropriate compiler options
1779
1780
1781  # for backward compatibility
1782  # Check whether --enable-doscompile or --disable-doscompile was given.
1783if test "${enable_doscompile+set}" = set; then
1784  enableval="$enable_doscompile"
1785  enable_doscompile=$enableval
1786else
1787  enable_doscompile=no
1788fi;
1789
1790  # Check whether --enable-msvc or --disable-msvc was given.
1791if test "${enable_msvc+set}" = set; then
1792  enableval="$enable_msvc"
1793  enable_msvc=$enableval
1794else
1795  enable_msvc=no
1796     if test "$enable_doscompile" = msvc ; then
1797       enable_msvc=yes
1798     elif test "$enable_doscompile" != no ; then
1799       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1800echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1801   { (exit 1); exit 1; }; }
1802     fi
1803
1804fi;
1805
1806  if test "$enable_msvc" = MD; then
1807    enable_shared=yes
1808    enable_msvc=yes
1809  fi
1810
1811  if test "$enable_msvc" = yes; then
1812    case $build in
1813      *-cygwin* | *-mingw*) ;;
1814      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1815echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1816   { (exit 1); exit 1; }; } ;;
1817    esac
1818  fi
1819
1820
1821 case $build in
1822  *-mingw*)
1823    if test "${LD+set}" = set; then :; else
1824      LD=link
1825    fi
1826    ;;
1827 esac
1828 if test $enable_msvc = yes ; then
1829   if test "x${LD+set}" = xset; then :; else
1830     LD=link
1831   fi
1832 fi
1833
1834
1835
1836
1837ac_ext=c
1838ac_cpp='$CPP $CPPFLAGS'
1839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1841ac_compiler_gnu=$ac_cv_c_compiler_gnu
1842
1843
1844# For consistency, we set the C compiler to the same value of the C++
1845# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1846if test x"$CXX" != x; then
1847  case "$CXX" in
1848    clang* ) ;;
1849    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1850      if test x"$CC" = x; then
1851        CC="$CXX"
1852        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1853echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1854      fi
1855      ;;
1856  esac
1857fi
1858
1859
1860
1861
1862
1863
1864coin_has_cc=yes
1865
1866save_cflags="$CFLAGS"
1867
1868# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1869# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1870# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1871# compiler. In this case, put cc after gcc.
1872
1873case $build in
1874  *-cygwin* | *-mingw*)
1875             if test "$enable_msvc" = yes ; then
1876               comps="icl cl gcc"
1877             else
1878               comps="gcc icl cl"
1879             fi ;;
1880  *-*-solaris*)
1881             # Extract the first word of "cc", so it can be a program name with args.
1882set dummy cc; ac_word=$2
1883echo "$as_me:$LINENO: checking for $ac_word" >&5
1884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1886  echo $ECHO_N "(cached) $ECHO_C" >&6
1887else
1888  if test -n "$sol_cc_compiler"; then
1889  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1890else
1891  ac_prog_rejected=no
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895  IFS=$as_save_IFS
1896  test -z "$as_dir" && as_dir=.
1897  for ac_exec_ext in '' $ac_executable_extensions; do
1898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1900       ac_prog_rejected=yes
1901       continue
1902     fi
1903    ac_cv_prog_sol_cc_compiler="cc"
1904    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905    break 2
1906  fi
1907done
1908done
1909
1910if test $ac_prog_rejected = yes; then
1911  # We found a bogon in the path, so make sure we never use it.
1912  set dummy $ac_cv_prog_sol_cc_compiler
1913  shift
1914  if test $# != 0; then
1915    # We chose a different compiler from the bogus one.
1916    # However, it has the same basename, so the bogon will be chosen
1917    # first if we set sol_cc_compiler to just the basename; use the full file name.
1918    shift
1919    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1920  fi
1921fi
1922fi
1923fi
1924sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1925if test -n "$sol_cc_compiler"; then
1926  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1927echo "${ECHO_T}$sol_cc_compiler" >&6
1928else
1929  echo "$as_me:$LINENO: result: no" >&5
1930echo "${ECHO_T}no" >&6
1931fi
1932
1933             if test "$sol_cc_compiler" = "cc" ; then
1934               comps="cc xlc gcc pgcc icc"
1935             else
1936               comps="xlc gcc pgcc icc cc"
1937             fi
1938             ;;
1939  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1940  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1941  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1942esac
1943
1944# We delete the cached value, since the test might not have been
1945# performed with our choice of compilers earlier
1946$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1947# AC_MSG_NOTICE([C compiler candidates: $comps])
1948ac_ext=c
1949ac_cpp='$CPP $CPPFLAGS'
1950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953if test -n "$ac_tool_prefix"; then
1954  for ac_prog in $comps
1955  do
1956    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1957set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1958echo "$as_me:$LINENO: checking for $ac_word" >&5
1959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960if test "${ac_cv_prog_CC+set}" = set; then
1961  echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963  if test -n "$CC"; then
1964  ac_cv_prog_CC="$CC" # Let the user override the test.
1965else
1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967for as_dir in $PATH
1968do
1969  IFS=$as_save_IFS
1970  test -z "$as_dir" && as_dir=.
1971  for ac_exec_ext in '' $ac_executable_extensions; do
1972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975    break 2
1976  fi
1977done
1978done
1979
1980fi
1981fi
1982CC=$ac_cv_prog_CC
1983if test -n "$CC"; then
1984  echo "$as_me:$LINENO: result: $CC" >&5
1985echo "${ECHO_T}$CC" >&6
1986else
1987  echo "$as_me:$LINENO: result: no" >&5
1988echo "${ECHO_T}no" >&6
1989fi
1990
1991    test -n "$CC" && break
1992  done
1993fi
1994if test -z "$CC"; then
1995  ac_ct_CC=$CC
1996  for ac_prog in $comps
1997do
1998  # Extract the first word of "$ac_prog", so it can be a program name with args.
1999set dummy $ac_prog; ac_word=$2
2000echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2003  echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005  if test -n "$ac_ct_CC"; then
2006  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2007else
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011  IFS=$as_save_IFS
2012  test -z "$as_dir" && as_dir=.
2013  for ac_exec_ext in '' $ac_executable_extensions; do
2014  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015    ac_cv_prog_ac_ct_CC="$ac_prog"
2016    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017    break 2
2018  fi
2019done
2020done
2021
2022fi
2023fi
2024ac_ct_CC=$ac_cv_prog_ac_ct_CC
2025if test -n "$ac_ct_CC"; then
2026  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2027echo "${ECHO_T}$ac_ct_CC" >&6
2028else
2029  echo "$as_me:$LINENO: result: no" >&5
2030echo "${ECHO_T}no" >&6
2031fi
2032
2033  test -n "$ac_ct_CC" && break
2034done
2035
2036  CC=$ac_ct_CC
2037fi
2038
2039
2040test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: no acceptable C compiler found in \$PATH
2043See \`config.log' for more details." >&2;}
2044   { (exit 1); exit 1; }; }
2045
2046# Provide some information about the compiler.
2047echo "$as_me:$LINENO:" \
2048     "checking for C compiler version" >&5
2049ac_compiler=`set X $ac_compile; echo $2`
2050{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2051  (eval $ac_compiler --version </dev/null >&5) 2>&5
2052  ac_status=$?
2053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054  (exit $ac_status); }
2055{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2056  (eval $ac_compiler -v </dev/null >&5) 2>&5
2057  ac_status=$?
2058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059  (exit $ac_status); }
2060{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2061  (eval $ac_compiler -V </dev/null >&5) 2>&5
2062  ac_status=$?
2063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064  (exit $ac_status); }
2065
2066cat >conftest.$ac_ext <<_ACEOF
2067/* confdefs.h.  */
2068_ACEOF
2069cat confdefs.h >>conftest.$ac_ext
2070cat >>conftest.$ac_ext <<_ACEOF
2071/* end confdefs.h.  */
2072
2073int
2074main ()
2075{
2076
2077  ;
2078  return 0;
2079}
2080_ACEOF
2081ac_clean_files_save=$ac_clean_files
2082ac_clean_files="$ac_clean_files a.out a.exe b.out"
2083# Try to create an executable without -o first, disregard a.out.
2084# It will help us diagnose broken compilers, and finding out an intuition
2085# of exeext.
2086echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2087echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2088ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2089if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2090  (eval $ac_link_default) 2>&5
2091  ac_status=$?
2092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093  (exit $ac_status); }; then
2094  # Find the output, starting from the most likely.  This scheme is
2095# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2096# resort.
2097
2098# Be careful to initialize this variable, since it used to be cached.
2099# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2100ac_cv_exeext=
2101# b.out is created by i960 compilers.
2102for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2103do
2104  test -f "$ac_file" || continue
2105  case $ac_file in
2106    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2107        ;;
2108    conftest.$ac_ext )
2109        # This is the source file.
2110        ;;
2111    [ab].out )
2112        # We found the default executable, but exeext='' is most
2113        # certainly right.
2114        break;;
2115    *.* )
2116        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2117        # FIXME: I believe we export ac_cv_exeext for Libtool,
2118        # but it would be cool to find out if it's true.  Does anybody
2119        # maintain Libtool? --akim.
2120        export ac_cv_exeext
2121        break;;
2122    * )
2123        break;;
2124  esac
2125done
2126else
2127  echo "$as_me: failed program was:" >&5
2128sed 's/^/| /' conftest.$ac_ext >&5
2129
2130{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2131See \`config.log' for more details." >&5
2132echo "$as_me: error: C compiler cannot create executables
2133See \`config.log' for more details." >&2;}
2134   { (exit 77); exit 77; }; }
2135fi
2136
2137ac_exeext=$ac_cv_exeext
2138echo "$as_me:$LINENO: result: $ac_file" >&5
2139echo "${ECHO_T}$ac_file" >&6
2140
2141# Check the compiler produces executables we can run.  If not, either
2142# the compiler is broken, or we cross compile.
2143echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2144echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2145# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2146# If not cross compiling, check that we can run a simple program.
2147if test "$cross_compiling" != yes; then
2148  if { ac_try='./$ac_file'
2149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150  (eval $ac_try) 2>&5
2151  ac_status=$?
2152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153  (exit $ac_status); }; }; then
2154    cross_compiling=no
2155  else
2156    if test "$cross_compiling" = maybe; then
2157        cross_compiling=yes
2158    else
2159        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2160If you meant to cross compile, use \`--host'.
2161See \`config.log' for more details." >&5
2162echo "$as_me: error: cannot run C compiled programs.
2163If you meant to cross compile, use \`--host'.
2164See \`config.log' for more details." >&2;}
2165   { (exit 1); exit 1; }; }
2166    fi
2167  fi
2168fi
2169echo "$as_me:$LINENO: result: yes" >&5
2170echo "${ECHO_T}yes" >&6
2171
2172rm -f a.out a.exe conftest$ac_cv_exeext b.out
2173ac_clean_files=$ac_clean_files_save
2174# Check the compiler produces executables we can run.  If not, either
2175# the compiler is broken, or we cross compile.
2176echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2177echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2178echo "$as_me:$LINENO: result: $cross_compiling" >&5
2179echo "${ECHO_T}$cross_compiling" >&6
2180
2181echo "$as_me:$LINENO: checking for suffix of executables" >&5
2182echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2184  (eval $ac_link) 2>&5
2185  ac_status=$?
2186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187  (exit $ac_status); }; then
2188  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2189# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2190# work properly (i.e., refer to `conftest.exe'), while it won't with
2191# `rm'.
2192for ac_file in conftest.exe conftest conftest.*; do
2193  test -f "$ac_file" || continue
2194  case $ac_file in
2195    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2196    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197          export ac_cv_exeext
2198          break;;
2199    * ) break;;
2200  esac
2201done
2202else
2203  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2204See \`config.log' for more details." >&5
2205echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2206See \`config.log' for more details." >&2;}
2207   { (exit 1); exit 1; }; }
2208fi
2209
2210rm -f conftest$ac_cv_exeext
2211echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2212echo "${ECHO_T}$ac_cv_exeext" >&6
2213
2214rm -f conftest.$ac_ext
2215EXEEXT=$ac_cv_exeext
2216ac_exeext=$EXEEXT
2217echo "$as_me:$LINENO: checking for suffix of object files" >&5
2218echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2219if test "${ac_cv_objext+set}" = set; then
2220  echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
2222  cat >conftest.$ac_ext <<_ACEOF
2223/* confdefs.h.  */
2224_ACEOF
2225cat confdefs.h >>conftest.$ac_ext
2226cat >>conftest.$ac_ext <<_ACEOF
2227/* end confdefs.h.  */
2228
2229int
2230main ()
2231{
2232
2233  ;
2234  return 0;
2235}
2236_ACEOF
2237rm -f conftest.o conftest.obj
2238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239  (eval $ac_compile) 2>&5
2240  ac_status=$?
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); }; then
2243  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2244  case $ac_file in
2245    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2246    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2247       break;;
2248  esac
2249done
2250else
2251  echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2255See \`config.log' for more details." >&5
2256echo "$as_me: error: cannot compute suffix of object files: cannot compile
2257See \`config.log' for more details." >&2;}
2258   { (exit 1); exit 1; }; }
2259fi
2260
2261rm -f conftest.$ac_cv_objext conftest.$ac_ext
2262fi
2263echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2264echo "${ECHO_T}$ac_cv_objext" >&6
2265OBJEXT=$ac_cv_objext
2266ac_objext=$OBJEXT
2267echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2268echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2269if test "${ac_cv_c_compiler_gnu+set}" = set; then
2270  echo $ECHO_N "(cached) $ECHO_C" >&6
2271else
2272  cat >conftest.$ac_ext <<_ACEOF
2273/* confdefs.h.  */
2274_ACEOF
2275cat confdefs.h >>conftest.$ac_ext
2276cat >>conftest.$ac_ext <<_ACEOF
2277/* end confdefs.h.  */
2278
2279int
2280main ()
2281{
2282#ifndef __GNUC__
2283       choke me
2284#endif
2285
2286  ;
2287  return 0;
2288}
2289_ACEOF
2290rm -f conftest.$ac_objext
2291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292  (eval $ac_compile) 2>conftest.er1
2293  ac_status=$?
2294  grep -v '^ *+' conftest.er1 >conftest.err
2295  rm -f conftest.er1
2296  cat conftest.err >&5
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); } &&
2299         { ac_try='test -z "$ac_c_werror_flag"
2300                         || test ! -s conftest.err'
2301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302  (eval $ac_try) 2>&5
2303  ac_status=$?
2304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305  (exit $ac_status); }; } &&
2306         { ac_try='test -s conftest.$ac_objext'
2307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308  (eval $ac_try) 2>&5
2309  ac_status=$?
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); }; }; then
2312  ac_compiler_gnu=yes
2313else
2314  echo "$as_me: failed program was:" >&5
2315sed 's/^/| /' conftest.$ac_ext >&5
2316
2317ac_compiler_gnu=no
2318fi
2319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2320ac_cv_c_compiler_gnu=$ac_compiler_gnu
2321
2322fi
2323echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2324echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2325GCC=`test $ac_compiler_gnu = yes && echo yes`
2326ac_test_CFLAGS=${CFLAGS+set}
2327ac_save_CFLAGS=$CFLAGS
2328CFLAGS="-g"
2329echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2330echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2331if test "${ac_cv_prog_cc_g+set}" = set; then
2332  echo $ECHO_N "(cached) $ECHO_C" >&6
2333else
2334  cat >conftest.$ac_ext <<_ACEOF
2335/* confdefs.h.  */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h.  */
2340
2341int
2342main ()
2343{
2344
2345  ;
2346  return 0;
2347}
2348_ACEOF
2349rm -f conftest.$ac_objext
2350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351  (eval $ac_compile) 2>conftest.er1
2352  ac_status=$?
2353  grep -v '^ *+' conftest.er1 >conftest.err
2354  rm -f conftest.er1
2355  cat conftest.err >&5
2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357  (exit $ac_status); } &&
2358         { ac_try='test -z "$ac_c_werror_flag"
2359                         || test ! -s conftest.err'
2360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361  (eval $ac_try) 2>&5
2362  ac_status=$?
2363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364  (exit $ac_status); }; } &&
2365         { ac_try='test -s conftest.$ac_objext'
2366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367  (eval $ac_try) 2>&5
2368  ac_status=$?
2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370  (exit $ac_status); }; }; then
2371  ac_cv_prog_cc_g=yes
2372else
2373  echo "$as_me: failed program was:" >&5
2374sed 's/^/| /' conftest.$ac_ext >&5
2375
2376ac_cv_prog_cc_g=no
2377fi
2378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379fi
2380echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2381echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2382if test "$ac_test_CFLAGS" = set; then
2383  CFLAGS=$ac_save_CFLAGS
2384elif test $ac_cv_prog_cc_g = yes; then
2385  if test "$GCC" = yes; then
2386    CFLAGS="-g -O2"
2387  else
2388    CFLAGS="-g"
2389  fi
2390else
2391  if test "$GCC" = yes; then
2392    CFLAGS="-O2"
2393  else
2394    CFLAGS=
2395  fi
2396fi
2397echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2398echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2399if test "${ac_cv_prog_cc_stdc+set}" = set; then
2400  echo $ECHO_N "(cached) $ECHO_C" >&6
2401else
2402  ac_cv_prog_cc_stdc=no
2403ac_save_CC=$CC
2404cat >conftest.$ac_ext <<_ACEOF
2405/* confdefs.h.  */
2406_ACEOF
2407cat confdefs.h >>conftest.$ac_ext
2408cat >>conftest.$ac_ext <<_ACEOF
2409/* end confdefs.h.  */
2410#include <stdarg.h>
2411#include <stdio.h>
2412#include <sys/types.h>
2413#include <sys/stat.h>
2414/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2415struct buf { int x; };
2416FILE * (*rcsopen) (struct buf *, struct stat *, int);
2417static char *e (p, i)
2418     char **p;
2419     int i;
2420{
2421  return p[i];
2422}
2423static char *f (char * (*g) (char **, int), char **p, ...)
2424{
2425  char *s;
2426  va_list v;
2427  va_start (v,p);
2428  s = g (p, va_arg (v,int));
2429  va_end (v);
2430  return s;
2431}
2432
2433/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2434   function prototypes and stuff, but not '\xHH' hex character constants.
2435   These don't provoke an error unfortunately, instead are silently treated
2436   as 'x'.  The following induces an error, until -std1 is added to get
2437   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2438   array size at least.  It's necessary to write '\x00'==0 to get something
2439   that's true only with -std1.  */
2440int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2441
2442int test (int i, double x);
2443struct s1 {int (*f) (int a);};
2444struct s2 {int (*f) (double a);};
2445int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2446int argc;
2447char **argv;
2448int
2449main ()
2450{
2451return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2452  ;
2453  return 0;
2454}
2455_ACEOF
2456# Don't try gcc -ansi; that turns off useful extensions and
2457# breaks some systems' header files.
2458# AIX                   -qlanglvl=ansi
2459# Ultrix and OSF/1      -std1
2460# HP-UX 10.20 and later -Ae
2461# HP-UX older versions  -Aa -D_HPUX_SOURCE
2462# SVR4                  -Xc -D__EXTENSIONS__
2463for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2464do
2465  CC="$ac_save_CC $ac_arg"
2466  rm -f conftest.$ac_objext
2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468  (eval $ac_compile) 2>conftest.er1
2469  ac_status=$?
2470  grep -v '^ *+' conftest.er1 >conftest.err
2471  rm -f conftest.er1
2472  cat conftest.err >&5
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); } &&
2475         { ac_try='test -z "$ac_c_werror_flag"
2476                         || test ! -s conftest.err'
2477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478  (eval $ac_try) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }; } &&
2482         { ac_try='test -s conftest.$ac_objext'
2483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484  (eval $ac_try) 2>&5
2485  ac_status=$?
2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487  (exit $ac_status); }; }; then
2488  ac_cv_prog_cc_stdc=$ac_arg
2489break
2490else
2491  echo "$as_me: failed program was:" >&5
2492sed 's/^/| /' conftest.$ac_ext >&5
2493
2494fi
2495rm -f conftest.err conftest.$ac_objext
2496done
2497rm -f conftest.$ac_ext conftest.$ac_objext
2498CC=$ac_save_CC
2499
2500fi
2501
2502case "x$ac_cv_prog_cc_stdc" in
2503  x|xno)
2504    echo "$as_me:$LINENO: result: none needed" >&5
2505echo "${ECHO_T}none needed" >&6 ;;
2506  *)
2507    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2508echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2509    CC="$CC $ac_cv_prog_cc_stdc" ;;
2510esac
2511
2512# Some people use a C++ compiler to compile C.  Since we use `exit',
2513# in C++ we need to declare it.  In case someone uses the same compiler
2514# for both compiling C and C++ we need to have the C++ compiler decide
2515# the declaration of exit, since it's the most demanding environment.
2516cat >conftest.$ac_ext <<_ACEOF
2517#ifndef __cplusplus
2518  choke me
2519#endif
2520_ACEOF
2521rm -f conftest.$ac_objext
2522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523  (eval $ac_compile) 2>conftest.er1
2524  ac_status=$?
2525  grep -v '^ *+' conftest.er1 >conftest.err
2526  rm -f conftest.er1
2527  cat conftest.err >&5
2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529  (exit $ac_status); } &&
2530         { ac_try='test -z "$ac_c_werror_flag"
2531                         || test ! -s conftest.err'
2532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533  (eval $ac_try) 2>&5
2534  ac_status=$?
2535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536  (exit $ac_status); }; } &&
2537         { ac_try='test -s conftest.$ac_objext'
2538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539  (eval $ac_try) 2>&5
2540  ac_status=$?
2541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542  (exit $ac_status); }; }; then
2543  for ac_declaration in \
2544   '' \
2545   'extern "C" void std::exit (int) throw (); using std::exit;' \
2546   'extern "C" void std::exit (int); using std::exit;' \
2547   'extern "C" void exit (int) throw ();' \
2548   'extern "C" void exit (int);' \
2549   'void exit (int);'
2550do
2551  cat >conftest.$ac_ext <<_ACEOF
2552/* confdefs.h.  */
2553_ACEOF
2554cat confdefs.h >>conftest.$ac_ext
2555cat >>conftest.$ac_ext <<_ACEOF
2556/* end confdefs.h.  */
2557$ac_declaration
2558#include <stdlib.h>
2559int
2560main ()
2561{
2562exit (42);
2563  ;
2564  return 0;
2565}
2566_ACEOF
2567rm -f conftest.$ac_objext
2568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569  (eval $ac_compile) 2>conftest.er1
2570  ac_status=$?
2571  grep -v '^ *+' conftest.er1 >conftest.err
2572  rm -f conftest.er1
2573  cat conftest.err >&5
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); } &&
2576         { ac_try='test -z "$ac_c_werror_flag"
2577                         || test ! -s conftest.err'
2578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579  (eval $ac_try) 2>&5
2580  ac_status=$?
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); }; } &&
2583         { ac_try='test -s conftest.$ac_objext'
2584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585  (eval $ac_try) 2>&5
2586  ac_status=$?
2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588  (exit $ac_status); }; }; then
2589  :
2590else
2591  echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
2594continue
2595fi
2596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2597  cat >conftest.$ac_ext <<_ACEOF
2598/* confdefs.h.  */
2599_ACEOF
2600cat confdefs.h >>conftest.$ac_ext
2601cat >>conftest.$ac_ext <<_ACEOF
2602/* end confdefs.h.  */
2603$ac_declaration
2604int
2605main ()
2606{
2607exit (42);
2608  ;
2609  return 0;
2610}
2611_ACEOF
2612rm -f conftest.$ac_objext
2613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614  (eval $ac_compile) 2>conftest.er1
2615  ac_status=$?
2616  grep -v '^ *+' conftest.er1 >conftest.err
2617  rm -f conftest.er1
2618  cat conftest.err >&5
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); } &&
2621         { ac_try='test -z "$ac_c_werror_flag"
2622                         || test ! -s conftest.err'
2623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624  (eval $ac_try) 2>&5
2625  ac_status=$?
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); }; } &&
2628         { ac_try='test -s conftest.$ac_objext'
2629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630  (eval $ac_try) 2>&5
2631  ac_status=$?
2632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633  (exit $ac_status); }; }; then
2634  break
2635else
2636  echo "$as_me: failed program was:" >&5
2637sed 's/^/| /' conftest.$ac_ext >&5
2638
2639fi
2640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641done
2642rm -f conftest*
2643if test -n "$ac_declaration"; then
2644  echo '#ifdef __cplusplus' >>confdefs.h
2645  echo $ac_declaration      >>confdefs.h
2646  echo '#endif'             >>confdefs.h
2647fi
2648
2649else
2650  echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653fi
2654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2655ac_ext=c
2656ac_cpp='$CPP $CPPFLAGS'
2657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660
2661if test -z "$CC" ; then
2662  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2663echo "$as_me: error: Failed to find a C compiler!" >&2;}
2664   { (exit 1); exit 1; }; }
2665fi
2666# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2667case "$CC" in
2668  clang* ) ;;
2669  cl* | */cl* | CL* | */CL* )
2670    if test "$ac_cv_prog_cc_g" = yes ; then
2671      ac_cv_prog_cc_g=no
2672      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2673echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2674    fi ;;
2675  * )
2676    if test x"$CYGPATH_W" = x ; then
2677      CYGPATH_W=echo
2678    fi
2679    ;;
2680esac
2681CFLAGS="$save_cflags"
2682
2683# add automake conditional so we can recognize cl compiler in makefile
2684coin_cc_is_cl=false
2685case "$CC" in
2686  clang* ) ;;
2687  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2688    coin_cc_is_cl=true
2689    ;;
2690esac
2691
2692
2693if test $coin_cc_is_cl = true; then
2694  COIN_CC_IS_CL_TRUE=
2695  COIN_CC_IS_CL_FALSE='#'
2696else
2697  COIN_CC_IS_CL_TRUE='#'
2698  COIN_CC_IS_CL_FALSE=
2699fi
2700
2701
2702# Check if a project specific CFLAGS variable has been set
2703if test x$COIN_PRJCT != x; then
2704  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2705  if test x$coin_tmp = xset; then
2706    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2707  fi
2708fi
2709
2710if test x"$CFLAGS" = x; then
2711
2712  coin_add_cflags=
2713  coin_opt_cflags=
2714  coin_dbg_cflags=
2715  coin_warn_cflags=
2716
2717  if test "$GCC" = "yes"; then
2718    case "$CC" in
2719      icc* | */icc*)
2720        ;;
2721      *)
2722        coin_opt_cflags="-O3"
2723        coin_add_cflags="-pipe"
2724        coin_dbg_cflags="-g -O0"
2725        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2726        case $build in
2727          *-darwin*)
2728            ;;
2729          *)
2730            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2731            ;;
2732        esac
2733    esac
2734  fi
2735  if test -z "$coin_opt_cflags"; then
2736    case $build in
2737      *-cygwin* | *-mingw*)
2738        case "$CC" in
2739          clang* ) ;;
2740          cl* | */cl* | CL* | */CL*)
2741            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2742              coin_opt_cflags='-MD -O2'
2743              coin_dbg_cflags='-MDd'
2744            else
2745              coin_opt_cflags='-MT -O2'
2746              coin_dbg_cflags='-MTd'
2747            fi
2748            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2749            ;;
2750          icl* | */icl* | ICL* | */ICL*)
2751            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2752              coin_opt_cflags='-MD -Ox'
2753              coin_dbg_cflags='-MDd -debug'
2754            else
2755              coin_opt_cflags='-MT -Ox'
2756              coin_dbg_cflags='-MTd -debug'
2757            fi
2758            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2759            ;;
2760        esac
2761        ;;
2762      *-linux-*)
2763        case "$CC" in
2764          icc* | */icc*)
2765            coin_opt_cflags="-O3 -ip -mp1"
2766            coin_add_cflags=""
2767            coin_dbg_cflags="-g"
2768            # Check if -i_dynamic is necessary (for new glibc library)
2769            CFLAGS=
2770            cat >conftest.$ac_ext <<_ACEOF
2771/* confdefs.h.  */
2772_ACEOF
2773cat confdefs.h >>conftest.$ac_ext
2774cat >>conftest.$ac_ext <<_ACEOF
2775/* end confdefs.h.  */
2776
2777int
2778main ()
2779{
2780int i=0; i++;
2781  ;
2782  return 0;
2783}
2784_ACEOF
2785rm -f conftest.$ac_objext conftest$ac_exeext
2786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2787  (eval $ac_link) 2>conftest.er1
2788  ac_status=$?
2789  grep -v '^ *+' conftest.er1 >conftest.err
2790  rm -f conftest.er1
2791  cat conftest.err >&5
2792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793  (exit $ac_status); } &&
2794         { ac_try='test -z "$ac_c_werror_flag"
2795                         || test ! -s conftest.err'
2796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797  (eval $ac_try) 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; } &&
2801         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2807  :
2808else
2809  echo "$as_me: failed program was:" >&5
2810sed 's/^/| /' conftest.$ac_ext >&5
2811
2812coin_add_cflags="-i_dynamic $coin_add_cflags"
2813fi
2814rm -f conftest.err conftest.$ac_objext \
2815      conftest$ac_exeext conftest.$ac_ext
2816            ;;
2817          pgcc* | */pgcc*)
2818            coin_opt_cflags="-fast"
2819            coin_add_cflags="-Kieee -pc 64"
2820            coin_dbg_cflags="-g"
2821            ;;
2822        esac
2823        ;;
2824      *-ibm-*)
2825        case "$CC" in
2826          xlc* | */xlc* | mpxlc* | */mpxlc*)
2827            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2828            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2829            coin_dbg_cflags="-g"
2830          ;;
2831        esac
2832        ;;
2833      *-hp-*)
2834        coin_opt_cflags="-O"
2835        coin_add_cflags="-Ae"
2836        coin_dbg_cflags="-g"
2837        ;;
2838      *-*-solaris*)
2839        coin_opt_cflags="-xO4"
2840        coin_dbg_cflags="-g"
2841        ;;
2842      *-sgi-*)
2843        coin_opt_cflags="-O -OPT:Olimit=0"
2844        coin_dbg_cflags="-g"
2845        ;;
2846    esac
2847  fi
2848
2849  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2850    coin_dbg_cflags="-g"
2851  fi
2852
2853  if test -z "$coin_opt_cflags"; then
2854    # Try if -O option works if nothing else is set
2855    CFLAGS="-O"
2856    cat >conftest.$ac_ext <<_ACEOF
2857/* confdefs.h.  */
2858_ACEOF
2859cat confdefs.h >>conftest.$ac_ext
2860cat >>conftest.$ac_ext <<_ACEOF
2861/* end confdefs.h.  */
2862
2863int
2864main ()
2865{
2866int i=0; i++;
2867  ;
2868  return 0;
2869}
2870_ACEOF
2871rm -f conftest.$ac_objext conftest$ac_exeext
2872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2873  (eval $ac_link) 2>conftest.er1
2874  ac_status=$?
2875  grep -v '^ *+' conftest.er1 >conftest.err
2876  rm -f conftest.er1
2877  cat conftest.err >&5
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); } &&
2880         { ac_try='test -z "$ac_c_werror_flag"
2881                         || test ! -s conftest.err'
2882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883  (eval $ac_try) 2>&5
2884  ac_status=$?
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); }; } &&
2887         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2893  coin_opt_cflags="-O"
2894else
2895  echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898fi
2899rm -f conftest.err conftest.$ac_objext \
2900      conftest$ac_exeext conftest.$ac_ext
2901  fi
2902
2903  # if PM doesn't want the warning messages, take them out
2904  if test x"$coin_skip_warn_cflags" = xyes; then
2905    coin_warn_cflags=
2906  fi
2907
2908  if test x${DBG_CFLAGS+set} != xset; then
2909    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2910  fi
2911  if test x${OPT_CFLAGS+set} != xset; then
2912    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2913  fi
2914
2915  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2916  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2917
2918  if test "$coin_debug_compile" = "true"; then
2919    CFLAGS="$DBG_CFLAGS"
2920  else
2921    CFLAGS="$OPT_CFLAGS"
2922  fi
2923else
2924  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2925  if test x${DBG_CFLAGS+set} != xset; then
2926    DBG_CFLAGS="$CFLAGS"
2927  fi
2928  if test x${OPT_CFLAGS+set} != xset; then
2929    OPT_CFLAGS="$CFLAGS"
2930  fi
2931fi
2932
2933# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2934if test x$COIN_PRJCT != x; then
2935  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2936fi
2937
2938# Try if CFLAGS works
2939save_CFLAGS="$CFLAGS"
2940cat >conftest.$ac_ext <<_ACEOF
2941/* confdefs.h.  */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h.  */
2946
2947int
2948main ()
2949{
2950int i=0; i++;
2951  ;
2952  return 0;
2953}
2954_ACEOF
2955rm -f conftest.$ac_objext conftest$ac_exeext
2956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2957  (eval $ac_link) 2>conftest.er1
2958  ac_status=$?
2959  grep -v '^ *+' conftest.er1 >conftest.err
2960  rm -f conftest.er1
2961  cat conftest.err >&5
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); } &&
2964         { ac_try='test -z "$ac_c_werror_flag"
2965                         || test ! -s conftest.err'
2966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967  (eval $ac_try) 2>&5
2968  ac_status=$?
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); }; } &&
2971         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2977  :
2978else
2979  echo "$as_me: failed program was:" >&5
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
2982CFLAGS=
2983fi
2984rm -f conftest.err conftest.$ac_objext \
2985      conftest$ac_exeext conftest.$ac_ext
2986if test -z "$CFLAGS"; then
2987  { 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
2988echo "$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;}
2989  CFLAGS='-O'
2990  cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h.  */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h.  */
2996
2997int
2998main ()
2999{
3000int i=0; i++;
3001  ;
3002  return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext conftest$ac_exeext
3006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3007  (eval $ac_link) 2>conftest.er1
3008  ac_status=$?
3009  grep -v '^ *+' conftest.er1 >conftest.err
3010  rm -f conftest.er1
3011  cat conftest.err >&5
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); } &&
3014         { ac_try='test -z "$ac_c_werror_flag"
3015                         || test ! -s conftest.err'
3016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017  (eval $ac_try) 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }; } &&
3021         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3027  :
3028else
3029  echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032CFLAGS=
3033fi
3034rm -f conftest.err conftest.$ac_objext \
3035      conftest$ac_exeext conftest.$ac_ext
3036  if test -z "$CFLAGS"; then
3037    { 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
3038echo "$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;}
3039  fi
3040fi
3041
3042{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3043echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3044
3045
3046if test x"$MPICC" = x; then :; else
3047  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3048echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3049  CC="$MPICC"
3050fi
3051
3052# Correct the LD variable if we are using the MS or Intel-windows compiler
3053case "$CC" in
3054  clang* ) ;;
3055  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3056
3057 case $build in
3058  *-mingw*)
3059    if test "${LD+set}" = set; then :; else
3060      LD=link
3061    fi
3062    ;;
3063 esac
3064 if test $enable_msvc = yes ; then
3065   if test "x${LD+set}" = xset; then :; else
3066     LD=link
3067   fi
3068 fi
3069
3070    ;;
3071esac
3072
3073ac_ext=c
3074ac_cpp='$CPP $CPPFLAGS'
3075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
3079
3080
3081# Get the name of the C++ compiler and appropriate compiler options
3082
3083 #Let's try if that overcomes configuration problem with VC++ 6.0
3084
3085ac_ext=cc
3086ac_cpp='$CXXCPP $CPPFLAGS'
3087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3090
3091
3092
3093
3094
3095
3096
3097coin_has_cxx=yes
3098
3099save_cxxflags="$CXXFLAGS"
3100# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3101case $build in
3102  *-cygwin* | *-mingw*)
3103      if test "$enable_msvc" = yes ; then
3104         comps="icl cl g++"
3105      else
3106         comps="g++ icl cl"
3107      fi ;;
3108  *-*-solaris*)
3109             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3110  *-darwin*) comps="g++ c++ CC" ;;
3111  *-linux-gnu*)
3112             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3113          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3114esac
3115
3116# We delete the cached value, since the test might not have been
3117# performed with our choice of compilers earlier
3118$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3119# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3120ac_ext=cc
3121ac_cpp='$CXXCPP $CPPFLAGS'
3122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3125if test -n "$ac_tool_prefix"; then
3126  for ac_prog in $CCC $comps
3127  do
3128    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3129set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3130echo "$as_me:$LINENO: checking for $ac_word" >&5
3131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132if test "${ac_cv_prog_CXX+set}" = set; then
3133  echo $ECHO_N "(cached) $ECHO_C" >&6
3134else
3135  if test -n "$CXX"; then
3136  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3137else
3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141  IFS=$as_save_IFS
3142  test -z "$as_dir" && as_dir=.
3143  for ac_exec_ext in '' $ac_executable_extensions; do
3144  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147    break 2
3148  fi
3149done
3150done
3151
3152fi
3153fi
3154CXX=$ac_cv_prog_CXX
3155if test -n "$CXX"; then
3156  echo "$as_me:$LINENO: result: $CXX" >&5
3157echo "${ECHO_T}$CXX" >&6
3158else
3159  echo "$as_me:$LINENO: result: no" >&5
3160echo "${ECHO_T}no" >&6
3161fi
3162
3163    test -n "$CXX" && break
3164  done
3165fi
3166if test -z "$CXX"; then
3167  ac_ct_CXX=$CXX
3168  for ac_prog in $CCC $comps
3169do
3170  # Extract the first word of "$ac_prog", so it can be a program name with args.
3171set dummy $ac_prog; ac_word=$2
3172echo "$as_me:$LINENO: checking for $ac_word" >&5
3173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3175  echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177  if test -n "$ac_ct_CXX"; then
3178  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3179else
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183  IFS=$as_save_IFS
3184  test -z "$as_dir" && as_dir=.
3185  for ac_exec_ext in '' $ac_executable_extensions; do
3186  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187    ac_cv_prog_ac_ct_CXX="$ac_prog"
3188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3189    break 2
3190  fi
3191done
3192done
3193
3194fi
3195fi
3196ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3197if test -n "$ac_ct_CXX"; then
3198  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3199echo "${ECHO_T}$ac_ct_CXX" >&6
3200else
3201  echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6
3203fi
3204
3205  test -n "$ac_ct_CXX" && break
3206done
3207test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3208
3209  CXX=$ac_ct_CXX
3210fi
3211
3212
3213# Provide some information about the compiler.
3214echo "$as_me:$LINENO:" \
3215     "checking for C++ compiler version" >&5
3216ac_compiler=`set X $ac_compile; echo $2`
3217{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3218  (eval $ac_compiler --version </dev/null >&5) 2>&5
3219  ac_status=$?
3220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221  (exit $ac_status); }
3222{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3223  (eval $ac_compiler -v </dev/null >&5) 2>&5
3224  ac_status=$?
3225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226  (exit $ac_status); }
3227{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3228  (eval $ac_compiler -V </dev/null >&5) 2>&5
3229  ac_status=$?
3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231  (exit $ac_status); }
3232
3233echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3234echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3235if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3236  echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238  cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h.  */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h.  */
3244
3245int
3246main ()
3247{
3248#ifndef __GNUC__
3249       choke me
3250#endif
3251
3252  ;
3253  return 0;
3254}
3255_ACEOF
3256rm -f conftest.$ac_objext
3257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3258  (eval $ac_compile) 2>conftest.er1
3259  ac_status=$?
3260  grep -v '^ *+' conftest.er1 >conftest.err
3261  rm -f conftest.er1
3262  cat conftest.err >&5
3263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264  (exit $ac_status); } &&
3265         { ac_try='test -z "$ac_cxx_werror_flag"
3266                         || test ! -s conftest.err'
3267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268  (eval $ac_try) 2>&5
3269  ac_status=$?
3270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271  (exit $ac_status); }; } &&
3272         { ac_try='test -s conftest.$ac_objext'
3273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274  (eval $ac_try) 2>&5
3275  ac_status=$?
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); }; }; then
3278  ac_compiler_gnu=yes
3279else
3280  echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283ac_compiler_gnu=no
3284fi
3285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3287
3288fi
3289echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3290echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3291GXX=`test $ac_compiler_gnu = yes && echo yes`
3292ac_test_CXXFLAGS=${CXXFLAGS+set}
3293ac_save_CXXFLAGS=$CXXFLAGS
3294CXXFLAGS="-g"
3295echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3296echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3297if test "${ac_cv_prog_cxx_g+set}" = set; then
3298  echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300  cat >conftest.$ac_ext <<_ACEOF
3301/* confdefs.h.  */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h.  */
3306
3307int
3308main ()
3309{
3310
3311  ;
3312  return 0;
3313}
3314_ACEOF
3315rm -f conftest.$ac_objext
3316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317  (eval $ac_compile) 2>conftest.er1
3318  ac_status=$?
3319  grep -v '^ *+' conftest.er1 >conftest.err
3320  rm -f conftest.er1
3321  cat conftest.err >&5
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); } &&
3324         { ac_try='test -z "$ac_cxx_werror_flag"
3325                         || test ! -s conftest.err'
3326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327  (eval $ac_try) 2>&5
3328  ac_status=$?
3329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); }; } &&
3331         { ac_try='test -s conftest.$ac_objext'
3332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333  (eval $ac_try) 2>&5
3334  ac_status=$?
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); }; }; then
3337  ac_cv_prog_cxx_g=yes
3338else
3339  echo "$as_me: failed program was:" >&5
3340sed 's/^/| /' conftest.$ac_ext >&5
3341
3342ac_cv_prog_cxx_g=no
3343fi
3344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3345fi
3346echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3347echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3348if test "$ac_test_CXXFLAGS" = set; then
3349  CXXFLAGS=$ac_save_CXXFLAGS
3350elif test $ac_cv_prog_cxx_g = yes; then
3351  if test "$GXX" = yes; then
3352    CXXFLAGS="-g -O2"
3353  else
3354    CXXFLAGS="-g"
3355  fi
3356else
3357  if test "$GXX" = yes; then
3358    CXXFLAGS="-O2"
3359  else
3360    CXXFLAGS=
3361  fi
3362fi
3363for ac_declaration in \
3364   '' \
3365   'extern "C" void std::exit (int) throw (); using std::exit;' \
3366   'extern "C" void std::exit (int); using std::exit;' \
3367   'extern "C" void exit (int) throw ();' \
3368   'extern "C" void exit (int);' \
3369   'void exit (int);'
3370do
3371  cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h.  */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h.  */
3377$ac_declaration
3378#include <stdlib.h>
3379int
3380main ()
3381{
3382exit (42);
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387rm -f conftest.$ac_objext
3388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389  (eval $ac_compile) 2>conftest.er1
3390  ac_status=$?
3391  grep -v '^ *+' conftest.er1 >conftest.err
3392  rm -f conftest.er1
3393  cat conftest.err >&5
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); } &&
3396         { ac_try='test -z "$ac_cxx_werror_flag"
3397                         || test ! -s conftest.err'
3398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399  (eval $ac_try) 2>&5
3400  ac_status=$?
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); }; } &&
3403         { ac_try='test -s conftest.$ac_objext'
3404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405  (eval $ac_try) 2>&5
3406  ac_status=$?
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); }; }; then
3409  :
3410else
3411  echo "$as_me: failed program was:" >&5
3412sed 's/^/| /' conftest.$ac_ext >&5
3413
3414continue
3415fi
3416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3417  cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h.  */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h.  */
3423$ac_declaration
3424int
3425main ()
3426{
3427exit (42);
3428  ;
3429  return 0;
3430}
3431_ACEOF
3432rm -f conftest.$ac_objext
3433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434  (eval $ac_compile) 2>conftest.er1
3435  ac_status=$?
3436  grep -v '^ *+' conftest.er1 >conftest.err
3437  rm -f conftest.er1
3438  cat conftest.err >&5
3439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440  (exit $ac_status); } &&
3441         { ac_try='test -z "$ac_cxx_werror_flag"
3442                         || test ! -s conftest.err'
3443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444  (eval $ac_try) 2>&5
3445  ac_status=$?
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); }; } &&
3448         { ac_try='test -s conftest.$ac_objext'
3449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450  (eval $ac_try) 2>&5
3451  ac_status=$?
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); }; }; then
3454  break
3455else
3456  echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
3459fi
3460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3461done
3462rm -f conftest*
3463if test -n "$ac_declaration"; then
3464  echo '#ifdef __cplusplus' >>confdefs.h
3465  echo $ac_declaration      >>confdefs.h
3466  echo '#endif'             >>confdefs.h
3467fi
3468
3469ac_ext=cc
3470ac_cpp='$CXXCPP $CPPFLAGS'
3471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3474
3475
3476#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3477#thus, we test here whether $CXX is actually working
3478ac_ext=cc
3479ac_cpp='$CXXCPP $CPPFLAGS'
3480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3483
3484echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3485echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3486cat >conftest.$ac_ext <<_ACEOF
3487/* confdefs.h.  */
3488_ACEOF
3489cat confdefs.h >>conftest.$ac_ext
3490cat >>conftest.$ac_ext <<_ACEOF
3491/* end confdefs.h.  */
3492
3493int
3494main ()
3495{
3496int i=0;
3497  ;
3498  return 0;
3499}
3500_ACEOF
3501rm -f conftest.$ac_objext
3502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503  (eval $ac_compile) 2>conftest.er1
3504  ac_status=$?
3505  grep -v '^ *+' conftest.er1 >conftest.err
3506  rm -f conftest.er1
3507  cat conftest.err >&5
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); } &&
3510         { ac_try='test -z "$ac_cxx_werror_flag"
3511                         || test ! -s conftest.err'
3512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513  (eval $ac_try) 2>&5
3514  ac_status=$?
3515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516  (exit $ac_status); }; } &&
3517         { ac_try='test -s conftest.$ac_objext'
3518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519  (eval $ac_try) 2>&5
3520  ac_status=$?
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); }; }; then
3523  echo "$as_me:$LINENO: result: yes" >&5
3524echo "${ECHO_T}yes" >&6
3525else
3526  echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529echo "$as_me:$LINENO: result: no" >&5
3530echo "${ECHO_T}no" >&6
3531   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3532echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3533   { (exit 1); exit 1; }; }
3534
3535fi
3536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537ac_ext=cc
3538ac_cpp='$CXXCPP $CPPFLAGS'
3539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3542
3543
3544coin_cxx_is_cl=false
3545# It seems that we need to cleanup something here for the Windows
3546case "$CXX" in
3547  clang* ) ;;
3548  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3549    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3550    mv confdefs.hh confdefs.h
3551    coin_cxx_is_cl=true
3552    ;;
3553esac
3554
3555# add automake conditional so we can recognize cl compiler in makefile
3556
3557
3558if test $coin_cxx_is_cl = true; then
3559  COIN_CXX_IS_CL_TRUE=
3560  COIN_CXX_IS_CL_FALSE='#'
3561else
3562  COIN_CXX_IS_CL_TRUE='#'
3563  COIN_CXX_IS_CL_FALSE=
3564fi
3565
3566
3567# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3568case "$CXX" in
3569  clang* ) ;;
3570  cl* | */cl* | CL* | */CL* )
3571    if test "$ac_cv_prog_cxx_g" = yes ; then
3572      ac_cv_prog_cxx_g=no
3573      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3574echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3575    fi ;;
3576  * )
3577    if test x"$CYGPATH_W" = x ; then
3578      CYGPATH_W=echo
3579    fi
3580    ;;
3581esac
3582CXXFLAGS="$save_cxxflags"
3583
3584# Check if a project specific CXXFLAGS variable has been set
3585if test x$COIN_PRJCT != x; then
3586  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3587  if test x$coin_tmp = xset; then
3588    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3589  fi
3590fi
3591
3592if test x"$CXXFLAGS" = x; then
3593
3594# ToDo decide whether we want -DNDEBUG for optimization
3595  coin_add_cxxflags=
3596  coin_opt_cxxflags=
3597  coin_dbg_cxxflags=
3598  coin_warn_cxxflags=
3599
3600  if test "$GXX" = "yes"; then
3601    case "$CXX" in
3602      icpc* | */icpc*)
3603        ;;
3604      *)
3605# ToDo decide about unroll-loops
3606        coin_opt_cxxflags="-O3"
3607        coin_add_cxxflags="-pipe"
3608        coin_dbg_cxxflags="-g -O0"
3609        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3610        case $build in
3611          *-darwin*)
3612            ;;
3613          *)
3614            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3615            ;;
3616        esac
3617    esac
3618  fi
3619
3620# Note that we do not need to cover GCC in the following tests.
3621
3622  if test -z "$coin_opt_cxxflags"; then
3623    case $build in
3624      *-cygwin* | *-mingw*)
3625        case "$CXX" in
3626          clang* ) ;;
3627          cl* | */cl* | CL* | */CL*)
3628            # The MT and MTd options are mutually exclusive
3629            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3630               coin_opt_cxxflags='-MD -O2'
3631               coin_dbg_cxxflags='-MDd'
3632            else
3633               coin_opt_cxxflags='-MT -O2'
3634               coin_dbg_cxxflags='-MTd'
3635            fi
3636            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3637            ;;
3638          icl* | */icl* | ICL* | */ICL*)
3639          # The MT and MTd options are mutually exclusive
3640            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3641              coin_opt_cxxflags='-MD -Ox'
3642              coin_dbg_cxxflags='-MDd -debug'
3643            else
3644              coin_opt_cxxflags='-MT -Ox'
3645              coin_dbg_cxxflags='-MTd -debug'
3646            fi
3647            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3648            ;;
3649        esac
3650        ;;
3651      *-linux-*)
3652        case "$CXX" in
3653          icpc* | */icpc*)
3654            coin_opt_cxxflags="-O3 -ip -mp1"
3655            coin_add_cxxflags=""
3656            coin_dbg_cxxflags="-g"
3657            # Check if -i_dynamic is necessary (for new glibc library)
3658            CXXFLAGS=
3659            cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h.  */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h.  */
3665
3666int
3667main ()
3668{
3669int i=0; i++;
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674rm -f conftest.$ac_objext conftest$ac_exeext
3675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3676  (eval $ac_link) 2>conftest.er1
3677  ac_status=$?
3678  grep -v '^ *+' conftest.er1 >conftest.err
3679  rm -f conftest.er1
3680  cat conftest.err >&5
3681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682  (exit $ac_status); } &&
3683         { ac_try='test -z "$ac_cxx_werror_flag"
3684                         || test ! -s conftest.err'
3685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686  (eval $ac_try) 2>&5
3687  ac_status=$?
3688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689  (exit $ac_status); }; } &&
3690         { ac_try='test -s conftest$ac_exeext'
3691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692  (eval $ac_try) 2>&5
3693  ac_status=$?
3694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695  (exit $ac_status); }; }; then
3696  :
3697else
3698  echo "$as_me: failed program was:" >&5
3699sed 's/^/| /' conftest.$ac_ext >&5
3700
3701coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3702fi
3703rm -f conftest.err conftest.$ac_objext \
3704      conftest$ac_exeext conftest.$ac_ext
3705            ;;
3706          pgCC* | */pgCC*)
3707            coin_opt_cxxflags="-fast"
3708            coin_add_cxxflags="-Kieee -pc 64"
3709            coin_dbg_cxxflags="-g"
3710            ;;
3711        esac
3712        ;;
3713      *-ibm-*)
3714        case "$CXX" in
3715          xlC* | */xlC* | mpxlC* | */mpxlC*)
3716            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3717            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3718            coin_dbg_cxxflags="-g"
3719            ;;
3720        esac
3721        ;;
3722      *-hp-*)
3723        case "$CXX" in
3724          aCC* | */aCC* )
3725            coin_opt_cxxflags="-O"
3726            coin_add_cxxflags="-AA"
3727            coin_dbg_cxxflags="-g"
3728            ;;
3729        esac
3730        ;;
3731      *-*-solaris*)
3732          coin_opt_cxxflags="-O4"
3733          coin_dbg_cxxflags="-g"
3734        ;;
3735    esac
3736  fi
3737
3738# Generic flag settings. If these don't work, add a case above.
3739
3740  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3741    coin_dbg_cxxflags="-g"
3742  fi
3743
3744  if test -z "$coin_opt_cxxflags"; then
3745    # Try if -O option works if nothing else is set
3746    CXXFLAGS=-O
3747    cat >conftest.$ac_ext <<_ACEOF
3748/* confdefs.h.  */
3749_ACEOF
3750cat confdefs.h >>conftest.$ac_ext
3751cat >>conftest.$ac_ext <<_ACEOF
3752/* end confdefs.h.  */
3753
3754int
3755main ()
3756{
3757int i=0; i++;
3758  ;
3759  return 0;
3760}
3761_ACEOF
3762rm -f conftest.$ac_objext conftest$ac_exeext
3763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3764  (eval $ac_link) 2>conftest.er1
3765  ac_status=$?
3766  grep -v '^ *+' conftest.er1 >conftest.err
3767  rm -f conftest.er1
3768  cat conftest.err >&5
3769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770  (exit $ac_status); } &&
3771         { ac_try='test -z "$ac_cxx_werror_flag"
3772                         || test ! -s conftest.err'
3773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774  (eval $ac_try) 2>&5
3775  ac_status=$?
3776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777  (exit $ac_status); }; } &&
3778         { ac_try='test -s conftest$ac_exeext'
3779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780  (eval $ac_try) 2>&5
3781  ac_status=$?
3782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783  (exit $ac_status); }; }; then
3784  coin_opt_cxxflags="-O"
3785else
3786  echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789fi
3790rm -f conftest.err conftest.$ac_objext \
3791      conftest$ac_exeext conftest.$ac_ext
3792  fi
3793
3794  # if PM doesn't want the warning messages, take them out
3795  if test x"$coin_skip_warn_cxxflags" = xyes; then
3796    coin_warn_cxxflags=
3797  fi
3798
3799# Do final setup of flags based on values determined above.
3800
3801  if test x${DBG_CXXFLAGS+set} != xset; then
3802    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3803  fi
3804  if test x${OPT_CXXFLAGS+set} != xset; then
3805    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3806  fi
3807
3808  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3809  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3810
3811  if test "$coin_debug_compile" = "true"; then
3812    CXXFLAGS="$DBG_CXXFLAGS"
3813  else
3814    CXXFLAGS="$OPT_CXXFLAGS"
3815  fi
3816
3817# Handle the case where CXXFLAGS was set externally.
3818else
3819  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3820  if test x${DBG_CXXFLAGS+set} != xset; then
3821    DBG_CXXFLAGS="$CXXFLAGS"
3822  fi
3823  if test x${OPT_CXXFLAGS+set} != xset; then
3824    OPT_CXXFLAGS="$CXXFLAGS"
3825  fi
3826fi
3827
3828# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3829if test x$COIN_PRJCT != x; then
3830  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3831fi
3832
3833# Try if CXXFLAGS works
3834save_CXXFLAGS="$CXXFLAGS"
3835cat >conftest.$ac_ext <<_ACEOF
3836/* confdefs.h.  */
3837_ACEOF
3838cat confdefs.h >>conftest.$ac_ext
3839cat >>conftest.$ac_ext <<_ACEOF
3840/* end confdefs.h.  */
3841
3842int
3843main ()
3844{
3845int i=0; i++;
3846  ;
3847  return 0;
3848}
3849_ACEOF
3850rm -f conftest.$ac_objext conftest$ac_exeext
3851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852  (eval $ac_link) 2>conftest.er1
3853  ac_status=$?
3854  grep -v '^ *+' conftest.er1 >conftest.err
3855  rm -f conftest.er1
3856  cat conftest.err >&5
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); } &&
3859         { ac_try='test -z "$ac_cxx_werror_flag"
3860                         || test ! -s conftest.err'
3861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862  (eval $ac_try) 2>&5
3863  ac_status=$?
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); }; } &&
3866         { ac_try='test -s conftest$ac_exeext'
3867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868  (eval $ac_try) 2>&5
3869  ac_status=$?
3870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871  (exit $ac_status); }; }; then
3872  :
3873else
3874  echo "$as_me: failed program was:" >&5
3875sed 's/^/| /' conftest.$ac_ext >&5
3876
3877CXXFLAGS=
3878fi
3879rm -f conftest.err conftest.$ac_objext \
3880      conftest$ac_exeext conftest.$ac_ext
3881if test -z "$CXXFLAGS"; then
3882  { 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
3883echo "$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;}
3884  CXXFLAGS='-O'
3885  cat >conftest.$ac_ext <<_ACEOF
3886/* confdefs.h.  */
3887_ACEOF
3888cat confdefs.h >>conftest.$ac_ext
3889cat >>conftest.$ac_ext <<_ACEOF
3890/* end confdefs.h.  */
3891
3892int
3893main ()
3894{
3895int i=0; i++;
3896  ;
3897  return 0;
3898}
3899_ACEOF
3900rm -f conftest.$ac_objext conftest$ac_exeext
3901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902  (eval $ac_link) 2>conftest.er1
3903  ac_status=$?
3904  grep -v '^ *+' conftest.er1 >conftest.err
3905  rm -f conftest.er1
3906  cat conftest.err >&5
3907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908  (exit $ac_status); } &&
3909         { ac_try='test -z "$ac_cxx_werror_flag"
3910                         || test ! -s conftest.err'
3911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912  (eval $ac_try) 2>&5
3913  ac_status=$?
3914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915  (exit $ac_status); }; } &&
3916         { ac_try='test -s conftest$ac_exeext'
3917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918  (eval $ac_try) 2>&5
3919  ac_status=$?
3920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921  (exit $ac_status); }; }; then
3922  :
3923else
3924  echo "$as_me: failed program was:" >&5
3925sed 's/^/| /' conftest.$ac_ext >&5
3926
3927CXXFLAGS=
3928fi
3929rm -f conftest.err conftest.$ac_objext \
3930      conftest$ac_exeext conftest.$ac_ext
3931  if test -z "$CXXFLAGS"; then
3932    { 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
3933echo "$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;}
3934  fi
3935fi
3936
3937{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3938echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3939
3940
3941if test x"$MPICXX" = x; then :; else
3942  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3943echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3944  CXX="$MPICXX"
3945fi
3946
3947# correct the LD variable in a mingw build with MS or intel compiler
3948case "$CXX" in
3949  clang* ) ;;
3950  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3951
3952 case $build in
3953  *-mingw*)
3954    if test "${LD+set}" = set; then :; else
3955      LD=link
3956    fi
3957    ;;
3958 esac
3959 if test $enable_msvc = yes ; then
3960   if test "x${LD+set}" = xset; then :; else
3961     LD=link
3962   fi
3963 fi
3964
3965    ;;
3966esac
3967
3968ac_ext=c
3969ac_cpp='$CPP $CPPFLAGS'
3970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973
3974
3975
3976# Get the name of the Fortran compiler and appropriate compiler options
3977case $build in
3978  *-cygwin* | *-mingw*)
3979     if test "$enable_msvc" = yes ; then
3980       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3981     else
3982       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3983     fi ;;
3984  *-*-solaris*)
3985     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3986  *-linux-gnu*)
3987     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3988  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3989 esac
3990
3991
3992
3993
3994
3995
3996ac_ext=f
3997ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3998ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4000
4001
4002
4003
4004
4005
4006coin_has_f77=yes
4007
4008save_fflags="$FFLAGS"
4009
4010# We delete the cached value, since the test might not have been
4011# performed with our choice of compilers earlier
4012$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4013
4014# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4015# coin_f77_comps to see if there's a program that matches one of the names.
4016# If there's no such program, F77 = unavailable. If we match the name,
4017# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4018# compiler.
4019# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4020
4021
4022{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4023echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4024if test -n "$ac_tool_prefix"; then
4025  for ac_prog in $coin_f77_comps
4026  do
4027    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4029echo "$as_me:$LINENO: checking for $ac_word" >&5
4030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4031if test "${ac_cv_prog_F77+set}" = set; then
4032  echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034  if test -n "$F77"; then
4035  ac_cv_prog_F77="$F77" # Let the user override the test.
4036else
4037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038for as_dir in $PATH
4039do
4040  IFS=$as_save_IFS
4041  test -z "$as_dir" && as_dir=.
4042  for ac_exec_ext in '' $ac_executable_extensions; do
4043  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046    break 2
4047  fi
4048done
4049done
4050
4051fi
4052fi
4053F77=$ac_cv_prog_F77
4054if test -n "$F77"; then
4055  echo "$as_me:$LINENO: result: $F77" >&5
4056echo "${ECHO_T}$F77" >&6
4057else
4058  echo "$as_me:$LINENO: result: no" >&5
4059echo "${ECHO_T}no" >&6
4060fi
4061
4062    test -n "$F77" && break
4063  done
4064fi
4065if test -z "$F77"; then
4066  ac_ct_F77=$F77
4067  for ac_prog in $coin_f77_comps
4068do
4069  # Extract the first word of "$ac_prog", so it can be a program name with args.
4070set dummy $ac_prog; ac_word=$2
4071echo "$as_me:$LINENO: checking for $ac_word" >&5
4072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4074  echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076  if test -n "$ac_ct_F77"; then
4077  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4078else
4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH
4081do
4082  IFS=$as_save_IFS
4083  test -z "$as_dir" && as_dir=.
4084  for ac_exec_ext in '' $ac_executable_extensions; do
4085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086    ac_cv_prog_ac_ct_F77="$ac_prog"
4087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088    break 2
4089  fi
4090done
4091done
4092
4093fi
4094fi
4095ac_ct_F77=$ac_cv_prog_ac_ct_F77
4096if test -n "$ac_ct_F77"; then
4097  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4098echo "${ECHO_T}$ac_ct_F77" >&6
4099else
4100  echo "$as_me:$LINENO: result: no" >&5
4101echo "${ECHO_T}no" >&6
4102fi
4103
4104  test -n "$ac_ct_F77" && break
4105done
4106test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4107
4108  F77=$ac_ct_F77
4109fi
4110
4111
4112if test "$F77" != "unavailable" ; then
4113  ac_ext=f
4114ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4115ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4117if test -n "$ac_tool_prefix"; then
4118  for ac_prog in $coin_f77_comps
4119  do
4120    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4121set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4122echo "$as_me:$LINENO: checking for $ac_word" >&5
4123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124if test "${ac_cv_prog_F77+set}" = set; then
4125  echo $ECHO_N "(cached) $ECHO_C" >&6
4126else
4127  if test -n "$F77"; then
4128  ac_cv_prog_F77="$F77" # Let the user override the test.
4129else
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH
4132do
4133  IFS=$as_save_IFS
4134  test -z "$as_dir" && as_dir=.
4135  for ac_exec_ext in '' $ac_executable_extensions; do
4136  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4138    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139    break 2
4140  fi
4141done
4142done
4143
4144fi
4145fi
4146F77=$ac_cv_prog_F77
4147if test -n "$F77"; then
4148  echo "$as_me:$LINENO: result: $F77" >&5
4149echo "${ECHO_T}$F77" >&6
4150else
4151  echo "$as_me:$LINENO: result: no" >&5
4152echo "${ECHO_T}no" >&6
4153fi
4154
4155    test -n "$F77" && break
4156  done
4157fi
4158if test -z "$F77"; then
4159  ac_ct_F77=$F77
4160  for ac_prog in $coin_f77_comps
4161do
4162  # Extract the first word of "$ac_prog", so it can be a program name with args.
4163set dummy $ac_prog; ac_word=$2
4164echo "$as_me:$LINENO: checking for $ac_word" >&5
4165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4167  echo $ECHO_N "(cached) $ECHO_C" >&6
4168else
4169  if test -n "$ac_ct_F77"; then
4170  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4171else
4172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173for as_dir in $PATH
4174do
4175  IFS=$as_save_IFS
4176  test -z "$as_dir" && as_dir=.
4177  for ac_exec_ext in '' $ac_executable_extensions; do
4178  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179    ac_cv_prog_ac_ct_F77="$ac_prog"
4180    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181    break 2
4182  fi
4183done
4184done
4185
4186fi
4187fi
4188ac_ct_F77=$ac_cv_prog_ac_ct_F77
4189if test -n "$ac_ct_F77"; then
4190  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4191echo "${ECHO_T}$ac_ct_F77" >&6
4192else
4193  echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195fi
4196
4197  test -n "$ac_ct_F77" && break
4198done
4199
4200  F77=$ac_ct_F77
4201fi
4202
4203
4204# Provide some information about the compiler.
4205echo "$as_me:4205:" \
4206     "checking for Fortran 77 compiler version" >&5
4207ac_compiler=`set X $ac_compile; echo $2`
4208{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4209  (eval $ac_compiler --version </dev/null >&5) 2>&5
4210  ac_status=$?
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); }
4213{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4214  (eval $ac_compiler -v </dev/null >&5) 2>&5
4215  ac_status=$?
4216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217  (exit $ac_status); }
4218{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4219  (eval $ac_compiler -V </dev/null >&5) 2>&5
4220  ac_status=$?
4221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222  (exit $ac_status); }
4223rm -f a.out
4224
4225# If we don't use `.F' as extension, the preprocessor is not run on the
4226# input file.  (Note that this only needs to work for GNU compilers.)
4227ac_save_ext=$ac_ext
4228ac_ext=F
4229echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4230echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4231if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4232  echo $ECHO_N "(cached) $ECHO_C" >&6
4233else
4234  cat >conftest.$ac_ext <<_ACEOF
4235      program main
4236#ifndef __GNUC__
4237       choke me
4238#endif
4239
4240      end
4241_ACEOF
4242rm -f conftest.$ac_objext
4243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244  (eval $ac_compile) 2>conftest.er1
4245  ac_status=$?
4246  grep -v '^ *+' conftest.er1 >conftest.err
4247  rm -f conftest.er1
4248  cat conftest.err >&5
4249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250  (exit $ac_status); } &&
4251         { ac_try='test -z "$ac_f77_werror_flag"
4252                         || test ! -s conftest.err'
4253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254  (eval $ac_try) 2>&5
4255  ac_status=$?
4256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257  (exit $ac_status); }; } &&
4258         { ac_try='test -s conftest.$ac_objext'
4259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260  (eval $ac_try) 2>&5
4261  ac_status=$?
4262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263  (exit $ac_status); }; }; then
4264  ac_compiler_gnu=yes
4265else
4266  echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4269ac_compiler_gnu=no
4270fi
4271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4272ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4273
4274fi
4275echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4276echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4277ac_ext=$ac_save_ext
4278ac_test_FFLAGS=${FFLAGS+set}
4279ac_save_FFLAGS=$FFLAGS
4280FFLAGS=
4281echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4282echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4283if test "${ac_cv_prog_f77_g+set}" = set; then
4284  echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286  FFLAGS=-g
4287cat >conftest.$ac_ext <<_ACEOF
4288      program main
4289
4290      end
4291_ACEOF
4292rm -f conftest.$ac_objext
4293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4294  (eval $ac_compile) 2>conftest.er1
4295  ac_status=$?
4296  grep -v '^ *+' conftest.er1 >conftest.err
4297  rm -f conftest.er1
4298  cat conftest.err >&5
4299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300  (exit $ac_status); } &&
4301         { ac_try='test -z "$ac_f77_werror_flag"
4302                         || test ! -s conftest.err'
4303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304  (eval $ac_try) 2>&5
4305  ac_status=$?
4306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307  (exit $ac_status); }; } &&
4308         { ac_try='test -s conftest.$ac_objext'
4309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310  (eval $ac_try) 2>&5
4311  ac_status=$?
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); }; }; then
4314  ac_cv_prog_f77_g=yes
4315else
4316  echo "$as_me: failed program was:" >&5
4317sed 's/^/| /' conftest.$ac_ext >&5
4318
4319ac_cv_prog_f77_g=no
4320fi
4321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4322
4323fi
4324echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4325echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4326if test "$ac_test_FFLAGS" = set; then
4327  FFLAGS=$ac_save_FFLAGS
4328elif test $ac_cv_prog_f77_g = yes; then
4329  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4330    FFLAGS="-g -O2"
4331  else
4332    FFLAGS="-g"
4333  fi
4334else
4335  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4336    FFLAGS="-O2"
4337  else
4338    FFLAGS=
4339  fi
4340fi
4341
4342G77=`test $ac_compiler_gnu = yes && echo yes`
4343ac_ext=f
4344ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4345ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4347
4348else
4349  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4350echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4351fi
4352
4353FFLAGS="$save_fflags"
4354
4355# Check if a project specific FFLAGS variable has been set
4356if test x$COIN_PRJCT != x; then
4357  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4358  if test x$coin_tmp = xset; then
4359    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4360  fi
4361fi
4362
4363if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4364
4365  coin_add_fflags=
4366  coin_opt_fflags=
4367  coin_dbg_fflags=
4368  coin_warn_fflags=
4369
4370  if test "$G77" = "yes"; then
4371    coin_opt_fflags="-O3"
4372    coin_add_fflags="-pipe"
4373    coin_dbg_fflags="-g -O0"
4374  else
4375    case $build in
4376      *-cygwin* | *-mingw*)
4377        case $F77 in
4378          ifort* | */ifort* | IFORT* | */IFORT* )
4379            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4380              coin_opt_fflags='-MD -O3'
4381              coin_dbg_fflags='-MDd -debug'
4382            else
4383              coin_opt_fflags='-MT -O3'
4384              coin_dbg_fflags='-MTd -debug'
4385            fi
4386            coin_add_fflags='-fpp -nologo'
4387          ;;
4388          compile_f2c*)
4389            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4390              coin_opt_fflags='-MD -O2'
4391              coin_dbg_fflags='-MDd'
4392            else
4393              coin_opt_fflags='-MT -O2'
4394              coin_dbg_fflags='-MTd'
4395            fi
4396            coin_add_fflags='-nologo -wd4996'
4397          ;;
4398        esac
4399        ;;
4400      *-linux-*)
4401        case $F77 in
4402          ifc* | */ifc* | ifort* | */ifort*)
4403            coin_opt_fflags="-O3 -ip"
4404            coin_add_fflags="-cm -w90 -w95"
4405            coin_dbg_fflags="-g -CA -CB -CS"
4406            # Check if -i_dynamic is necessary (for new glibc library)
4407            FFLAGS=
4408            cat >conftest.$ac_ext <<_ACEOF
4409      program main
4410      write(*,*) 'Hello world'
4411      end
4412_ACEOF
4413rm -f conftest.$ac_objext conftest$ac_exeext
4414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415  (eval $ac_link) 2>conftest.er1
4416  ac_status=$?
4417  grep -v '^ *+' conftest.er1 >conftest.err
4418  rm -f conftest.er1
4419  cat conftest.err >&5
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); } &&
4422         { ac_try='test -z "$ac_f77_werror_flag"
4423                         || test ! -s conftest.err'
4424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425  (eval $ac_try) 2>&5
4426  ac_status=$?
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); }; } &&
4429         { ac_try='test -s conftest$ac_exeext'
4430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431  (eval $ac_try) 2>&5
4432  ac_status=$?
4433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434  (exit $ac_status); }; }; then
4435  :
4436else
4437  echo "$as_me: failed program was:" >&5
4438sed 's/^/| /' conftest.$ac_ext >&5
4439
4440coin_add_fflags="-i_dynamic $coin_add_fflags"
4441fi
4442rm -f conftest.err conftest.$ac_objext \
4443      conftest$ac_exeext conftest.$ac_ext
4444            ;;
4445          pgf77* | */pgf77* | pgf90* | */pgf90*)
4446            coin_opt_fflags="-fast"
4447            coin_add_fflags="-Kieee -pc 64"
4448            coin_dbg_fflags="-g"
4449          ;;
4450        esac
4451        ;;
4452      *-ibm-*)
4453        case "$F77" in
4454          xlf* | */xlf* | mpxlf* | */mpxlf* )
4455            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4456            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4457            coin_dbg_fflags="-g -C"
4458            ;;
4459        esac
4460        ;;
4461      *-hp-*)
4462        coin_opt_fflags="+O3"
4463        coin_add_fflags="+U77"
4464        coin_dbg_fflags="-C -g"
4465        ;;
4466      *-*-solaris*)
4467        coin_opt_fflags="-O4"
4468        coin_dbg_fflags="-g"
4469        ;;
4470      *-sgi-*)
4471        coin_opt_fflags="-O5 -OPT:Olimit=0"
4472        coin_dbg_fflags="-g"
4473        ;;
4474    esac
4475  fi
4476
4477  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4478    coin_dbg_fflags="-g"
4479  fi
4480
4481  if test -z "$coin_opt_fflags"; then
4482    # Try if -O option works if nothing else is set
4483    FFLAGS=-O
4484    cat >conftest.$ac_ext <<_ACEOF
4485      program main
4486      integer i
4487      end
4488_ACEOF
4489rm -f conftest.$ac_objext conftest$ac_exeext
4490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491  (eval $ac_link) 2>conftest.er1
4492  ac_status=$?
4493  grep -v '^ *+' conftest.er1 >conftest.err
4494  rm -f conftest.er1
4495  cat conftest.err >&5
4496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497  (exit $ac_status); } &&
4498         { ac_try='test -z "$ac_f77_werror_flag"
4499                         || test ! -s conftest.err'
4500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501  (eval $ac_try) 2>&5
4502  ac_status=$?
4503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504  (exit $ac_status); }; } &&
4505         { ac_try='test -s conftest$ac_exeext'
4506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507  (eval $ac_try) 2>&5
4508  ac_status=$?
4509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510  (exit $ac_status); }; }; then
4511  coin_opt_fflags="-O"
4512else
4513  echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
4515
4516fi
4517rm -f conftest.err conftest.$ac_objext \
4518      conftest$ac_exeext conftest.$ac_ext
4519  fi
4520
4521  # if PM doesn't want the warning messages, take them out
4522  if test x"$coin_skip_warn_fflags" = xyes; then
4523    coin_warn_fflags=
4524  fi
4525
4526  if test x${DBG_FFLAGS+set} != xset; then
4527    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4528  fi
4529  if test x${OPT_FFLAGS+set} != xset; then
4530    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4531  fi
4532
4533  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4534  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4535
4536  if test "$coin_debug_compile" = "true"; then
4537    FFLAGS="$DBG_FFLAGS"
4538  else
4539    FFLAGS="$OPT_FFLAGS"
4540  fi
4541else
4542  FFLAGS="$FFLAGS $ADD_FFLAGS"
4543  if test x${DBG_FFLAGS+set} != xset; then
4544    DBG_FFLAGS="$FFLAGS"
4545  fi
4546  if test x${OPT_FFLAGS+set} != xset; then
4547    OPT_FFLAGS="$FFLAGS"
4548  fi
4549fi
4550
4551# Try if FFLAGS works
4552if test "$F77" != "unavailable" ; then
4553  cat >conftest.$ac_ext <<_ACEOF
4554      program main
4555      integer i
4556      end
4557_ACEOF
4558rm -f conftest.$ac_objext conftest$ac_exeext
4559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4560  (eval $ac_link) 2>conftest.er1
4561  ac_status=$?
4562  grep -v '^ *+' conftest.er1 >conftest.err
4563  rm -f conftest.er1
4564  cat conftest.err >&5
4565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566  (exit $ac_status); } &&
4567         { ac_try='test -z "$ac_f77_werror_flag"
4568                         || test ! -s conftest.err'
4569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570  (eval $ac_try) 2>&5
4571  ac_status=$?
4572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573  (exit $ac_status); }; } &&
4574         { ac_try='test -s conftest$ac_exeext'
4575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576  (eval $ac_try) 2>&5
4577  ac_status=$?
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); }; }; then
4580  :
4581else
4582  echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
4584
4585FFLAGS=
4586fi
4587rm -f conftest.err conftest.$ac_objext \
4588      conftest$ac_exeext conftest.$ac_ext
4589  if test -z "$FFLAGS"; then
4590    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4591echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4592    FFLAGS='-O'
4593    cat >conftest.$ac_ext <<_ACEOF
4594      program main
4595      integer i
4596      end
4597_ACEOF
4598rm -f conftest.$ac_objext conftest$ac_exeext
4599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600  (eval $ac_link) 2>conftest.er1
4601  ac_status=$?
4602  grep -v '^ *+' conftest.er1 >conftest.err
4603  rm -f conftest.er1
4604  cat conftest.err >&5
4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606  (exit $ac_status); } &&
4607         { ac_try='test -z "$ac_f77_werror_flag"
4608                         || test ! -s conftest.err'
4609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610  (eval $ac_try) 2>&5
4611  ac_status=$?
4612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613  (exit $ac_status); }; } &&
4614         { ac_try='test -s conftest$ac_exeext'
4615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616  (eval $ac_try) 2>&5
4617  ac_status=$?
4618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); }; }; then
4620  :
4621else
4622  echo "$as_me: failed program was:" >&5
4623sed 's/^/| /' conftest.$ac_ext >&5
4624
4625FFLAGS=
4626fi
4627rm -f conftest.err conftest.$ac_objext \
4628      conftest$ac_exeext conftest.$ac_ext
4629    if test -z "$FFLAGS"; then
4630      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4631echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4632    fi
4633  fi
4634fi
4635
4636{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4637echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4638
4639
4640if test x"$MPIF77" = x; then :; else
4641  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4642echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4643  F77="$MPIF77"
4644fi
4645
4646# correct the LD variable if we use the intel fortran compiler in windows
4647case "$F77" in
4648  ifort* | */ifort* | IFORT* | */IFORT*)
4649
4650 case $build in
4651  *-mingw*)
4652    if test "${LD+set}" = set; then :; else
4653      LD=link
4654    fi
4655    ;;
4656 esac
4657 if test $enable_msvc = yes ; then
4658   if test "x${LD+set}" = xset; then :; else
4659     LD=link
4660   fi
4661 fi
4662
4663    ;;
4664esac
4665
4666ac_ext=c
4667ac_cpp='$CPP $CPPFLAGS'
4668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671
4672
4673
4674# Initialize automake and libtool
4675# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4676{
4677
4678
4679
4680# START
4681
4682coin_disable_shared=no
4683# Test if force_shared has been set
4684if test "x" = xforce_shared; then
4685  if test x$enable_shared = xno; then
4686    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4687echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4688   { (exit 1); exit 1; }; }
4689  fi
4690  enable_shared=yes;
4691else
4692  # On Cygwin and AIX, building DLLs doesn't work
4693  case $build in
4694    *-cygwin* | *-mingw*)
4695      coin_disable_shared=yes
4696      if test x"$enable_shared" = xyes; then
4697        case "$CC" in
4698          clang* )
4699            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4700echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4701            ;;
4702          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4703            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
4704echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
4705            ;;
4706          *gcc*)
4707            if test x"$enable_dependency_linking" = xyes; then
4708              coin_disable_shared=no
4709            else
4710              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
4711echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
4712            fi
4713            ;;
4714          *)
4715            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4716echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4717            ;;
4718        esac
4719      fi
4720    ;;
4721    *-aix*)
4722      coin_disable_shared=yes
4723      platform=AIX
4724      if test x"$enable_shared" = xyes; then
4725        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4726echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4727      fi
4728    ;;
4729  esac
4730fi
4731if test x"$coin_disable_shared" = xyes; then
4732  if test x"$enable_shared" = xyes; then
4733    :
4734  else
4735    # we don't disable shared, because it was not selected anyway
4736    coin_disable_shared=no
4737  fi
4738  enable_shared=no
4739fi
4740# By default, we only want the shared objects to be compiled
4741# Check whether --enable-static or --disable-static was given.
4742if test "${enable_static+set}" = set; then
4743  enableval="$enable_static"
4744  p=${PACKAGE-default}
4745    case $enableval in
4746    yes) enable_static=yes ;;
4747    no) enable_static=no ;;
4748    *)
4749     enable_static=no
4750      # Look at the argument we got.  We use all the common list separators.
4751      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4752      for pkg in $enableval; do
4753        IFS="$lt_save_ifs"
4754        if test "X$pkg" = "X$p"; then
4755          enable_static=yes
4756        fi
4757      done
4758      IFS="$lt_save_ifs"
4759      ;;
4760    esac
4761else
4762  enable_static=no
4763fi;
4764
4765
4766
4767
4768# Initialize automake
4769echo "$as_me:$LINENO: checking for egrep" >&5
4770echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4771if test "${ac_cv_prog_egrep+set}" = set; then
4772  echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4775    then ac_cv_prog_egrep='grep -E'
4776    else ac_cv_prog_egrep='egrep'
4777    fi
4778fi
4779echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4780echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4781 EGREP=$ac_cv_prog_egrep
4782
4783
4784echo "$as_me:$LINENO: checking whether ln -s works" >&5
4785echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4786LN_S=$as_ln_s
4787if test "$LN_S" = "ln -s"; then
4788  echo "$as_me:$LINENO: result: yes" >&5
4789echo "${ECHO_T}yes" >&6
4790else
4791  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4792echo "${ECHO_T}no, using $LN_S" >&6
4793fi
4794
4795am__api_version="1.9"
4796# Find a good install program.  We prefer a C program (faster),
4797# so one script is as good as another.  But avoid the broken or
4798# incompatible versions:
4799# SysV /etc/install, /usr/sbin/install
4800# SunOS /usr/etc/install
4801# IRIX /sbin/install
4802# AIX /bin/install
4803# AmigaOS /C/install, which installs bootblocks on floppy discs
4804# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4805# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4806# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4807# OS/2's system install, which has a completely different semantic
4808# ./install, which can be erroneously created by make from ./install.sh.
4809echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4810echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4811if test -z "$INSTALL"; then
4812if test "${ac_cv_path_install+set}" = set; then
4813  echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
4815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818  IFS=$as_save_IFS
4819  test -z "$as_dir" && as_dir=.
4820  # Account for people who put trailing slashes in PATH elements.
4821case $as_dir/ in
4822  ./ | .// | /cC/* | \
4823  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4824  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4825  /usr/ucb/* ) ;;
4826  *)
4827    # OSF1 and SCO ODT 3.0 have their own names for install.
4828    # Don't use installbsd from OSF since it installs stuff as root
4829    # by default.
4830    for ac_prog in ginstall scoinst install; do
4831      for ac_exec_ext in '' $ac_executable_extensions; do
4832        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4833          if test $ac_prog = install &&
4834            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4835            # AIX install.  It has an incompatible calling convention.
4836            :
4837          elif test $ac_prog = install &&
4838            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4839            # program-specific install script used by HP pwplus--don't use.
4840            :
4841          else
4842            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4843            break 3
4844          fi
4845        fi
4846      done
4847    done
4848    ;;
4849esac
4850done
4851
4852
4853fi
4854  if test "${ac_cv_path_install+set}" = set; then
4855    INSTALL=$ac_cv_path_install
4856  else
4857    # As a last resort, use the slow shell script.  We don't cache a
4858    # path for INSTALL within a source directory, because that will
4859    # break other packages using the cache if that directory is
4860    # removed, or if the path is relative.
4861    INSTALL=$ac_install_sh
4862  fi
4863fi
4864echo "$as_me:$LINENO: result: $INSTALL" >&5
4865echo "${ECHO_T}$INSTALL" >&6
4866
4867# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4868# It thinks the first close brace ends the variable substitution.
4869test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4870
4871test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4872
4873test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4874
4875echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4876echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4877# Just in case
4878sleep 1
4879echo timestamp > conftest.file
4880# Do `set' in a subshell so we don't clobber the current shell's
4881# arguments.  Must try -L first in case configure is actually a
4882# symlink; some systems play weird games with the mod time of symlinks
4883# (eg FreeBSD returns the mod time of the symlink's containing
4884# directory).
4885if (
4886   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4887   if test "$*" = "X"; then
4888      # -L didn't work.
4889      set X `ls -t $srcdir/configure conftest.file`
4890   fi
4891   rm -f conftest.file
4892   if test "$*" != "X $srcdir/configure conftest.file" \
4893      && test "$*" != "X conftest.file $srcdir/configure"; then
4894
4895      # If neither matched, then we have a broken ls.  This can happen
4896      # if, for instance, CONFIG_SHELL is bash and it inherits a
4897      # broken ls alias from the environment.  This has actually
4898      # happened.  Such a system could not be considered "sane".
4899      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4900alias in your environment" >&5
4901echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4902alias in your environment" >&2;}
4903   { (exit 1); exit 1; }; }
4904   fi
4905
4906   test "$2" = conftest.file
4907   )
4908then
4909   # Ok.
4910   :
4911else
4912   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4913Check your system clock" >&5
4914echo "$as_me: error: newly created file is older than distributed files!
4915Check your system clock" >&2;}
4916   { (exit 1); exit 1; }; }
4917fi
4918echo "$as_me:$LINENO: result: yes" >&5
4919echo "${ECHO_T}yes" >&6
4920test "$program_prefix" != NONE &&
4921  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4922# Use a double $ so make ignores it.
4923test "$program_suffix" != NONE &&
4924  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4925# Double any \ or $.  echo might interpret backslashes.
4926# By default was `s,x,x', remove it if useless.
4927cat <<\_ACEOF >conftest.sed
4928s/[\\$]/&&/g;s/;s,x,x,$//
4929_ACEOF
4930program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4931rm conftest.sed
4932
4933# expand $ac_aux_dir to an absolute path
4934am_aux_dir=`cd $ac_aux_dir && pwd`
4935
4936test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4937# Use eval to expand $SHELL
4938if eval "$MISSING --run true"; then
4939  am_missing_run="$MISSING --run "
4940else
4941  am_missing_run=
4942  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4943echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4944fi
4945
4946if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4947  # We used to keeping the `.' as first argument, in order to
4948  # allow $(mkdir_p) to be used without argument.  As in
4949  #   $(mkdir_p) $(somedir)
4950  # where $(somedir) is conditionally defined.  However this is wrong
4951  # for two reasons:
4952  #  1. if the package is installed by a user who cannot write `.'
4953  #     make install will fail,
4954  #  2. the above comment should most certainly read
4955  #     $(mkdir_p) $(DESTDIR)$(somedir)
4956  #     so it does not work when $(somedir) is undefined and
4957  #     $(DESTDIR) is not.
4958  #  To support the latter case, we have to write
4959  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4960  #  so the `.' trick is pointless.
4961  mkdir_p='mkdir -p --'
4962else
4963  # On NextStep and OpenStep, the `mkdir' command does not
4964  # recognize any option.  It will interpret all options as
4965  # directories to create, and then abort because `.' already
4966  # exists.
4967  for d in ./-p ./--version;
4968  do
4969    test -d $d && rmdir $d
4970  done
4971  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4972  if test -f "$ac_aux_dir/mkinstalldirs"; then
4973    mkdir_p='$(mkinstalldirs)'
4974  else
4975    mkdir_p='$(install_sh) -d'
4976  fi
4977fi
4978
4979for ac_prog in gawk mawk nawk awk
4980do
4981  # Extract the first word of "$ac_prog", so it can be a program name with args.
4982set dummy $ac_prog; ac_word=$2
4983echo "$as_me:$LINENO: checking for $ac_word" >&5
4984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985if test "${ac_cv_prog_AWK+set}" = set; then
4986  echo $ECHO_N "(cached) $ECHO_C" >&6
4987else
4988  if test -n "$AWK"; then
4989  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994  IFS=$as_save_IFS
4995  test -z "$as_dir" && as_dir=.
4996  for ac_exec_ext in '' $ac_executable_extensions; do
4997  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998    ac_cv_prog_AWK="$ac_prog"
4999    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000    break 2
5001  fi
5002done
5003done
5004
5005fi
5006fi
5007AWK=$ac_cv_prog_AWK
5008if test -n "$AWK"; then
5009  echo "$as_me:$LINENO: result: $AWK" >&5
5010echo "${ECHO_T}$AWK" >&6
5011else
5012  echo "$as_me:$LINENO: result: no" >&5
5013echo "${ECHO_T}no" >&6
5014fi
5015
5016  test -n "$AWK" && break
5017done
5018
5019echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5020echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5021set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5022if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5023  echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025  cat >conftest.make <<\_ACEOF
5026all:
5027        @echo 'ac_maketemp="$(MAKE)"'
5028_ACEOF
5029# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5030eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5031if test -n "$ac_maketemp"; then
5032  eval ac_cv_prog_make_${ac_make}_set=yes
5033else
5034  eval ac_cv_prog_make_${ac_make}_set=no
5035fi
5036rm -f conftest.make
5037fi
5038if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5039  echo "$as_me:$LINENO: result: yes" >&5
5040echo "${ECHO_T}yes" >&6
5041  SET_MAKE=
5042else
5043  echo "$as_me:$LINENO: result: no" >&5
5044echo "${ECHO_T}no" >&6
5045  SET_MAKE="MAKE=${MAKE-make}"
5046fi
5047
5048rm -rf .tst 2>/dev/null
5049mkdir .tst 2>/dev/null
5050if test -d .tst; then
5051  am__leading_dot=.
5052else
5053  am__leading_dot=_
5054fi
5055rmdir .tst 2>/dev/null
5056
5057DEPDIR="${am__leading_dot}deps"
5058
5059          ac_config_commands="$ac_config_commands depfiles"
5060
5061
5062am_make=${MAKE-make}
5063cat > confinc << 'END'
5064am__doit:
5065        @echo done
5066.PHONY: am__doit
5067END
5068# If we don't find an include directive, just comment out the code.
5069echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5070echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5071am__include="#"
5072am__quote=
5073_am_result=none
5074# First try GNU make style include.
5075echo "include confinc" > confmf
5076# We grep out `Entering directory' and `Leaving directory'
5077# messages which can occur if `w' ends up in MAKEFLAGS.
5078# In particular we don't look at `^make:' because GNU make might
5079# be invoked under some other name (usually "gmake"), in which
5080# case it prints its new name instead of `make'.
5081if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5082   am__include=include
5083   am__quote=
5084   _am_result=GNU
5085fi
5086# Now try BSD make style include.
5087if test "$am__include" = "#"; then
5088   echo '.include "confinc"' > confmf
5089   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5090      am__include=.include
5091      am__quote="\""
5092      _am_result=BSD
5093   fi
5094fi
5095
5096
5097echo "$as_me:$LINENO: result: $_am_result" >&5
5098echo "${ECHO_T}$_am_result" >&6
5099rm -f confinc confmf
5100
5101# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5102if test "${enable_dependency_tracking+set}" = set; then
5103  enableval="$enable_dependency_tracking"
5104
5105fi;
5106if test "x$enable_dependency_tracking" != xno; then
5107  am_depcomp="$ac_aux_dir/depcomp"
5108  AMDEPBACKSLASH='\'
5109fi
5110
5111
5112if test "x$enable_dependency_tracking" != xno; then
5113  AMDEP_TRUE=
5114  AMDEP_FALSE='#'
5115else
5116  AMDEP_TRUE='#'
5117  AMDEP_FALSE=
5118fi
5119
5120
5121
5122
5123
5124
5125# AC_MSG_NOTICE([Beginning automake initialisation.])
5126# Stuff for automake
5127# test to see if srcdir already configured
5128if test "`cd $srcdir && pwd`" != "`pwd`" &&
5129   test -f $srcdir/config.status; then
5130  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5131echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5132   { (exit 1); exit 1; }; }
5133fi
5134
5135# test whether we have cygpath
5136if test -z "$CYGPATH_W"; then
5137  if (cygpath --version) >/dev/null 2>/dev/null; then
5138    CYGPATH_W='cygpath -w'
5139  else
5140    CYGPATH_W=echo
5141  fi
5142fi
5143
5144
5145# Define the identity of the package.
5146 PACKAGE='clp'
5147 VERSION='1.15'
5148
5149
5150cat >>confdefs.h <<_ACEOF
5151#define PACKAGE "$PACKAGE"
5152_ACEOF
5153
5154
5155cat >>confdefs.h <<_ACEOF
5156#define VERSION "$VERSION"
5157_ACEOF
5158
5159# Some tools Automake needs.
5160
5161ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5162
5163
5164AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5165
5166
5167AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5168
5169
5170AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5171
5172
5173MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5174
5175install_sh=${install_sh-"$am_aux_dir/install-sh"}
5176
5177# Installed binaries are usually stripped using `strip' when the user
5178# run `make install-strip'.  However `strip' might not be the right
5179# tool to use in cross-compilation environments, therefore Automake
5180# will honor the `STRIP' environment variable to overrule this program.
5181if test "$cross_compiling" != no; then
5182  if test -n "$ac_tool_prefix"; then
5183  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5184set dummy ${ac_tool_prefix}strip; ac_word=$2
5185echo "$as_me:$LINENO: checking for $ac_word" >&5
5186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5187if test "${ac_cv_prog_STRIP+set}" = set; then
5188  echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190  if test -n "$STRIP"; then
5191  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5192else
5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196  IFS=$as_save_IFS
5197  test -z "$as_dir" && as_dir=.
5198  for ac_exec_ext in '' $ac_executable_extensions; do
5199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202    break 2
5203  fi
5204done
5205done
5206
5207fi
5208fi
5209STRIP=$ac_cv_prog_STRIP
5210if test -n "$STRIP"; then
5211  echo "$as_me:$LINENO: result: $STRIP" >&5
5212echo "${ECHO_T}$STRIP" >&6
5213else
5214  echo "$as_me:$LINENO: result: no" >&5
5215echo "${ECHO_T}no" >&6
5216fi
5217
5218fi
5219if test -z "$ac_cv_prog_STRIP"; then
5220  ac_ct_STRIP=$STRIP
5221  # Extract the first word of "strip", so it can be a program name with args.
5222set dummy strip; ac_word=$2
5223echo "$as_me:$LINENO: checking for $ac_word" >&5
5224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5226  echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228  if test -n "$ac_ct_STRIP"; then
5229  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234  IFS=$as_save_IFS
5235  test -z "$as_dir" && as_dir=.
5236  for ac_exec_ext in '' $ac_executable_extensions; do
5237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238    ac_cv_prog_ac_ct_STRIP="strip"
5239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240    break 2
5241  fi
5242done
5243done
5244
5245  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5246fi
5247fi
5248ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5249if test -n "$ac_ct_STRIP"; then
5250  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5251echo "${ECHO_T}$ac_ct_STRIP" >&6
5252else
5253  echo "$as_me:$LINENO: result: no" >&5
5254echo "${ECHO_T}no" >&6
5255fi
5256
5257  STRIP=$ac_ct_STRIP
5258else
5259  STRIP="$ac_cv_prog_STRIP"
5260fi
5261
5262fi
5263INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5264
5265# We need awk for the "check" target.  The system "awk" is bad on
5266# some platforms.
5267# Always define AMTAR for backward compatibility.
5268
5269AMTAR=${AMTAR-"${am_missing_run}tar"}
5270
5271am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5272
5273
5274
5275
5276depcc="$CC"   am_compiler_list=
5277
5278echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5279echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5280if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5281  echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5284  # We make a subdir and do the tests there.  Otherwise we can end up
5285  # making bogus files that we don't know about and never remove.  For
5286  # instance it was reported that on HP-UX the gcc test will end up
5287  # making a dummy file named `D' -- because `-MD' means `put the output
5288  # in D'.
5289  mkdir conftest.dir
5290  # Copy depcomp to subdir because otherwise we won't find it if we're
5291  # using a relative directory.
5292  cp "$am_depcomp" conftest.dir
5293  cd conftest.dir
5294  # We will build objects and dependencies in a subdirectory because
5295  # it helps to detect inapplicable dependency modes.  For instance
5296  # both Tru64's cc and ICC support -MD to output dependencies as a
5297  # side effect of compilation, but ICC will put the dependencies in
5298  # the current directory while Tru64 will put them in the object
5299  # directory.
5300  mkdir sub
5301
5302  am_cv_CC_dependencies_compiler_type=none
5303  if test "$am_compiler_list" = ""; then
5304     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5305  fi
5306  for depmode in $am_compiler_list; do
5307    # Setup a source with many dependencies, because some compilers
5308    # like to wrap large dependency lists on column 80 (with \), and
5309    # we should not choose a depcomp mode which is confused by this.
5310    #
5311    # We need to recreate these files for each test, as the compiler may
5312    # overwrite some of them when testing with obscure command lines.
5313    # This happens at least with the AIX C compiler.
5314    : > sub/conftest.c
5315    for i in 1 2 3 4 5 6; do
5316      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5317      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5318      # Solaris 8's {/usr,}/bin/sh.
5319      touch sub/conftst$i.h
5320    done
5321    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5322
5323    case $depmode in
5324    nosideeffect)
5325      # after this tag, mechanisms are not by side-effect, so they'll
5326      # only be used when explicitly requested
5327      if test "x$enable_dependency_tracking" = xyes; then
5328        continue
5329      else
5330        break
5331      fi
5332      ;;
5333    none) break ;;
5334    esac
5335    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5336    # mode.  It turns out that the SunPro C++ compiler does not properly
5337    # handle `-M -o', and we need to detect this.
5338    if depmode=$depmode \
5339       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5340       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5341       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5342         >/dev/null 2>conftest.err &&
5343       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5344       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5345       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5346      # icc doesn't choke on unknown options, it will just issue warnings
5347      # or remarks (even with -Werror).  So we grep stderr for any message
5348      # that says an option was ignored or not supported.
5349      # When given -MP, icc 7.0 and 7.1 complain thusly:
5350      #   icc: Command line warning: ignoring option '-M'; no argument required
5351      # The diagnosis changed in icc 8.0:
5352      #   icc: Command line remark: option '-MP' not supported
5353      if (grep 'ignoring option' conftest.err ||
5354          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5355        am_cv_CC_dependencies_compiler_type=$depmode
5356        break
5357      fi
5358    fi
5359  done
5360
5361  cd ..
5362  rm -rf conftest.dir
5363else
5364  am_cv_CC_dependencies_compiler_type=none
5365fi
5366
5367fi
5368echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5369echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5370CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5371
5372
5373
5374if
5375  test "x$enable_dependency_tracking" != xno \
5376  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5377  am__fastdepCC_TRUE=
5378  am__fastdepCC_FALSE='#'
5379else
5380  am__fastdepCC_TRUE='#'
5381  am__fastdepCC_FALSE=
5382fi
5383
5384
5385depcc="$CXX"  am_compiler_list=
5386
5387echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5388echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5389if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5390  echo $ECHO_N "(cached) $ECHO_C" >&6
5391else
5392  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5393  # We make a subdir and do the tests there.  Otherwise we can end up
5394  # making bogus files that we don't know about and never remove.  For
5395  # instance it was reported that on HP-UX the gcc test will end up
5396  # making a dummy file named `D' -- because `-MD' means `put the output
5397  # in D'.
5398  mkdir conftest.dir
5399  # Copy depcomp to subdir because otherwise we won't find it if we're
5400  # using a relative directory.
5401  cp "$am_depcomp" conftest.dir
5402  cd conftest.dir
5403  # We will build objects and dependencies in a subdirectory because
5404  # it helps to detect inapplicable dependency modes.  For instance
5405  # both Tru64's cc and ICC support -MD to output dependencies as a
5406  # side effect of compilation, but ICC will put the dependencies in
5407  # the current directory while Tru64 will put them in the object
5408  # directory.
5409  mkdir sub
5410
5411  am_cv_CXX_dependencies_compiler_type=none
5412  if test "$am_compiler_list" = ""; then
5413     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5414  fi
5415  for depmode in $am_compiler_list; do
5416    # Setup a source with many dependencies, because some compilers
5417    # like to wrap large dependency lists on column 80 (with \), and
5418    # we should not choose a depcomp mode which is confused by this.
5419    #
5420    # We need to recreate these files for each test, as the compiler may
5421    # overwrite some of them when testing with obscure command lines.
5422    # This happens at least with the AIX C compiler.
5423    : > sub/conftest.c
5424    for i in 1 2 3 4 5 6; do
5425      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5426      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5427      # Solaris 8's {/usr,}/bin/sh.
5428      touch sub/conftst$i.h
5429    done
5430    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5431
5432    case $depmode in
5433    nosideeffect)
5434      # after this tag, mechanisms are not by side-effect, so they'll
5435      # only be used when explicitly requested
5436      if test "x$enable_dependency_tracking" = xyes; then
5437        continue
5438      else
5439        break
5440      fi
5441      ;;
5442    none) break ;;
5443    esac
5444    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5445    # mode.  It turns out that the SunPro C++ compiler does not properly
5446    # handle `-M -o', and we need to detect this.
5447    if depmode=$depmode \
5448       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5449       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5450       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5451         >/dev/null 2>conftest.err &&
5452       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5453       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5454       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5455      # icc doesn't choke on unknown options, it will just issue warnings
5456      # or remarks (even with -Werror).  So we grep stderr for any message
5457      # that says an option was ignored or not supported.
5458      # When given -MP, icc 7.0 and 7.1 complain thusly:
5459      #   icc: Command line warning: ignoring option '-M'; no argument required
5460      # The diagnosis changed in icc 8.0:
5461      #   icc: Command line remark: option '-MP' not supported
5462      if (grep 'ignoring option' conftest.err ||
5463          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5464        am_cv_CXX_dependencies_compiler_type=$depmode
5465        break
5466      fi
5467    fi
5468  done
5469
5470  cd ..
5471  rm -rf conftest.dir
5472else
5473  am_cv_CXX_dependencies_compiler_type=none
5474fi
5475
5476fi
5477echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5478echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5479CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5480
5481
5482
5483if
5484  test "x$enable_dependency_tracking" != xno \
5485  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5486  am__fastdepCXX_TRUE=
5487  am__fastdepCXX_FALSE='#'
5488else
5489  am__fastdepCXX_TRUE='#'
5490  am__fastdepCXX_FALSE=
5491fi
5492
5493
5494
5495echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5496echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5497    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5498if test "${enable_maintainer_mode+set}" = set; then
5499  enableval="$enable_maintainer_mode"
5500  USE_MAINTAINER_MODE=$enableval
5501else
5502  USE_MAINTAINER_MODE=no
5503fi;
5504  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5505echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5506
5507
5508if test $USE_MAINTAINER_MODE = yes; then
5509  MAINTAINER_MODE_TRUE=
5510  MAINTAINER_MODE_FALSE='#'
5511else
5512  MAINTAINER_MODE_TRUE='#'
5513  MAINTAINER_MODE_FALSE=
5514fi
5515
5516  MAINT=$MAINTAINER_MODE_TRUE
5517
5518
5519
5520coin_have_externals=no
5521if test "$enable_maintainer_mode" = yes; then
5522
5523  # If maintainer mode is chosen, we make sure that the correct versions
5524  # of the tools are used, and that we know where libtool.m4 is (to
5525  # recreate acinclude.m4)
5526
5527
5528  LIBTOOLM4=
5529  # Normally, $HOME
5530  AUTOTOOLS_DFLT=$HOME
5531
5532  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5533echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5534if test "${ac_cv_use_correct_autotools+set}" = set; then
5535  echo $ECHO_N "(cached) $ECHO_C" >&6
5536else
5537  ac_cv_use_correct_autotools=check
5538fi
5539echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5540echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5541
5542  if test $ac_cv_use_correct_autotools = check; then
5543    ac_cv_use_correct_autotools=yes
5544    # Check if we have autoconf
5545    # Extract the first word of "autoconf", so it can be a program name with args.
5546set dummy autoconf; ac_word=$2
5547echo "$as_me:$LINENO: checking for $ac_word" >&5
5548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549if test "${ac_cv_prog_have_autoconf+set}" = set; then
5550  echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552  if test -n "$have_autoconf"; then
5553  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5554else
5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
5558  IFS=$as_save_IFS
5559  test -z "$as_dir" && as_dir=.
5560  for ac_exec_ext in '' $ac_executable_extensions; do
5561  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562    ac_cv_prog_have_autoconf="yes"
5563    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564    break 2
5565  fi
5566done
5567done
5568
5569  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5570fi
5571fi
5572have_autoconf=$ac_cv_prog_have_autoconf
5573if test -n "$have_autoconf"; then
5574  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5575echo "${ECHO_T}$have_autoconf" >&6
5576else
5577  echo "$as_me:$LINENO: result: no" >&5
5578echo "${ECHO_T}no" >&6
5579fi
5580
5581    if test $have_autoconf = no; then
5582      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5583echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5584   { (exit 1); exit 1; }; }
5585    fi
5586
5587    # Check whether autoconf is the correct version
5588    correct_version='2.59'
5589    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5590    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5591echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5592    autoconf --version > confauto.out 2>&1
5593    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5594      echo "$as_me:$LINENO: result: yes" >&5
5595echo "${ECHO_T}yes" >&6
5596    else
5597      rm -f confauto.out
5598      echo "$as_me:$LINENO: result: no" >&5
5599echo "${ECHO_T}no" >&6
5600      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5601echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5602   { (exit 1); exit 1; }; }
5603    fi
5604    rm -f confauto.out
5605
5606    # Check if the executable autoconf is picked up from the correct location
5607    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5608echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5609    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5610    autoconf_dir=`cd $autoconf_dir; pwd`
5611    if test x$AUTOTOOLS_DIR = x; then
5612      want_dir=$AUTOTOOLS_DFLT/bin
5613    else
5614      want_dir=$AUTOTOOLS_DIR/bin
5615    fi
5616    if test $autoconf_dir = `cd $want_dir; pwd`; then
5617      echo "$as_me:$LINENO: result: yes" >&5
5618echo "${ECHO_T}yes" >&6
5619    else
5620      rm -f confauto.out
5621      echo "$as_me:$LINENO: result: no" >&5
5622echo "${ECHO_T}no" >&6
5623      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5624echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5625   { (exit 1); exit 1; }; }
5626    fi
5627
5628    # Check if we have automake
5629    # Extract the first word of "automake", so it can be a program name with args.
5630set dummy automake; ac_word=$2
5631echo "$as_me:$LINENO: checking for $ac_word" >&5
5632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633if test "${ac_cv_prog_have_automake+set}" = set; then
5634  echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636  if test -n "$have_automake"; then
5637  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642  IFS=$as_save_IFS
5643  test -z "$as_dir" && as_dir=.
5644  for ac_exec_ext in '' $ac_executable_extensions; do
5645  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646    ac_cv_prog_have_automake="yes"
5647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648    break 2
5649  fi
5650done
5651done
5652
5653  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5654fi
5655fi
5656have_automake=$ac_cv_prog_have_automake
5657if test -n "$have_automake"; then
5658  echo "$as_me:$LINENO: result: $have_automake" >&5
5659echo "${ECHO_T}$have_automake" >&6
5660else
5661  echo "$as_me:$LINENO: result: no" >&5
5662echo "${ECHO_T}no" >&6
5663fi
5664
5665    if test $have_automake = no; then
5666      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5667echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5668   { (exit 1); exit 1; }; }
5669    fi
5670
5671    # Check whether automake is the correct version
5672    correct_version='1.9.6'
5673    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5674    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5675echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5676    automake --version > confauto.out 2>&1
5677    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5678      echo "$as_me:$LINENO: result: yes" >&5
5679echo "${ECHO_T}yes" >&6
5680    else
5681      rm -f confauto.out
5682      echo "$as_me:$LINENO: result: no" >&5
5683echo "${ECHO_T}no" >&6
5684      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5685echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5686   { (exit 1); exit 1; }; }
5687    fi
5688    rm -f confauto.out
5689
5690    # Check if the executable automake is picked up from the correct location
5691    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5692echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5693    automake_dir=`which automake | sed -e 's=/automake=='`
5694    automake_dir=`cd $automake_dir; pwd`
5695    if test x$AUTOTOOLS_DIR = x; then
5696      want_dir=$AUTOTOOLS_DFLT/bin
5697    else
5698      want_dir=$AUTOTOOLS_DIR/bin
5699    fi
5700    if test $automake_dir = `cd $want_dir; pwd`; then
5701      echo "$as_me:$LINENO: result: yes" >&5
5702echo "${ECHO_T}yes" >&6
5703    else
5704      rm -f confauto.out
5705      echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6
5707      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5708echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5709   { (exit 1); exit 1; }; }
5710    fi
5711
5712    # Check if this is the correct version of libtool (with escaped dots)
5713    if test x$AUTOTOOLS_DIR = x; then
5714      want_dir=$AUTOTOOLS_DFLT/share
5715    else
5716      want_dir=$AUTOTOOLS_DIR/share
5717    fi
5718    correct_version='1.5.22'
5719    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5720    if test -r $want_dir/libtool/ltmain.sh; then
5721  have_ltmain=yes
5722  :
5723else
5724  have_ltmain=no
5725  :
5726fi
5727
5728    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5729echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5730    if test $have_ltmain = yes; then
5731    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5732        echo "$as_me:$LINENO: result: yes" >&5
5733echo "${ECHO_T}yes" >&6
5734      else
5735        echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
5737        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5738echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5739   { (exit 1); exit 1; }; }
5740      fi
5741    else
5742      echo "$as_me:$LINENO: result: no" >&5
5743echo "${ECHO_T}no" >&6
5744      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5745echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5746   { (exit 1); exit 1; }; }
5747    fi
5748  fi
5749
5750  # Check if we can find the libtool file
5751  if test x$AUTOTOOLS_DIR = x; then
5752    want_dir=$AUTOTOOLS_DFLT/share
5753  else
5754    want_dir=$AUTOTOOLS_DIR/share
5755  fi
5756  if test -r $want_dir/aclocal/libtool.m4; then
5757  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5758  :
5759else
5760  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5761echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5762   { (exit 1); exit 1; }; }
5763  :
5764fi
5765
5766
5767  # Check if we have an Dependencies file
5768  if test -r $srcdir/Dependencies; then
5769    coin_have_externals=yes
5770  fi
5771  # Check if subversion is installed and understands https
5772  # Extract the first word of "svn", so it can be a program name with args.
5773set dummy svn; ac_word=$2
5774echo "$as_me:$LINENO: checking for $ac_word" >&5
5775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5776if test "${ac_cv_prog_have_svn+set}" = set; then
5777  echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779  if test -n "$have_svn"; then
5780  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5781else
5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785  IFS=$as_save_IFS
5786  test -z "$as_dir" && as_dir=.
5787  for ac_exec_ext in '' $ac_executable_extensions; do
5788  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789    ac_cv_prog_have_svn="yes"
5790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791    break 2
5792  fi
5793done
5794done
5795
5796  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5797fi
5798fi
5799have_svn=$ac_cv_prog_have_svn
5800if test -n "$have_svn"; then
5801  echo "$as_me:$LINENO: result: $have_svn" >&5
5802echo "${ECHO_T}$have_svn" >&6
5803else
5804  echo "$as_me:$LINENO: result: no" >&5
5805echo "${ECHO_T}no" >&6
5806fi
5807
5808  if test x$have_svn = xyes; then
5809    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5810echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5811if test "${ac_cv_svn_understands_https+set}" = set; then
5812  echo $ECHO_N "(cached) $ECHO_C" >&6
5813else
5814  svn --version > confauto.out 2>&1
5815                    if $EGREP https confauto.out >/dev/null 2>&1; then
5816                      ac_cv_svn_understands_https=yes
5817                    else
5818                      ac_cv_svn_understands_https=no
5819                      have_svn=no
5820                      ac_cv_prog_have_svn=no
5821                    fi
5822                    rm -f confauto.out
5823fi
5824echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5825echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5826  fi
5827
5828  # Find the location of the BuildTools directory
5829  BUILDTOOLSDIR=
5830  if test -r $srcdir/BuildTools/coin.m4; then
5831    BUILDTOOLSDIR=$srcdir/BuildTools
5832  else
5833    if test -r $srcdir/../BuildTools/coin.m4; then
5834      BUILDTOOLSDIR=$srcdir/../BuildTools
5835    else
5836      if test -r $srcdir/../../BuildTools/coin.m4; then
5837        BUILDTOOLSDIR=$srcdir/../../BuildTools
5838      else
5839        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5840echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5841   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5842      fi
5843    fi
5844  fi
5845
5846
5847  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5848  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5849    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5850  fi
5851
5852  # The following variable is set to the name of the directory where
5853  # the autotool scripts are located
5854
5855  AUX_DIR=$ac_aux_dir
5856fi
5857
5858# helpful variable for the base directory of this package
5859abs_source_dir=`cd $srcdir; pwd`
5860
5861
5862# Stuff for example Makefiles
5863if test x$prefix = xNONE; then
5864  full_prefix=$ac_default_prefix
5865else
5866  full_prefix=$prefix
5867fi
5868full_prefix=`cd $full_prefix ; pwd`
5869
5870abs_lib_dir=$full_prefix/lib
5871
5872abs_include_dir=$full_prefix/include
5873
5874abs_bin_dir=$full_prefix/bin
5875
5876
5877
5878if test $coin_have_externals = yes && test x$have_svn = xyes; then
5879  HAVE_EXTERNALS_TRUE=
5880  HAVE_EXTERNALS_FALSE='#'
5881else
5882  HAVE_EXTERNALS_TRUE='#'
5883  HAVE_EXTERNALS_FALSE=
5884fi
5885
5886
5887# AC_MSG_NOTICE([End automake initialisation.])
5888
5889
5890
5891LIBTOOL=
5892if test -f ../libtool; then
5893  coin_config_dir=..
5894  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5895fi
5896if test "x$LIBTOOL" = x; then
5897  if test -f ../../libtool; then
5898    coin_config_dir=../..
5899    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5900  fi
5901fi
5902
5903if test "x$LIBTOOL" = x; then
5904# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5905  # Stuff for libtool
5906  # Check whether --enable-shared or --disable-shared was given.
5907if test "${enable_shared+set}" = set; then
5908  enableval="$enable_shared"
5909  p=${PACKAGE-default}
5910    case $enableval in
5911    yes) enable_shared=yes ;;
5912    no) enable_shared=no ;;
5913    *)
5914      enable_shared=no
5915      # Look at the argument we got.  We use all the common list separators.
5916      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5917      for pkg in $enableval; do
5918        IFS="$lt_save_ifs"
5919        if test "X$pkg" = "X$p"; then
5920          enable_shared=yes
5921        fi
5922      done
5923      IFS="$lt_save_ifs"
5924      ;;
5925    esac
5926else
5927  enable_shared=yes
5928fi;
5929
5930# Check whether --enable-fast-install or --disable-fast-install was given.
5931if test "${enable_fast_install+set}" = set; then
5932  enableval="$enable_fast_install"
5933  p=${PACKAGE-default}
5934    case $enableval in
5935    yes) enable_fast_install=yes ;;
5936    no) enable_fast_install=no ;;
5937    *)
5938      enable_fast_install=no
5939      # Look at the argument we got.  We use all the common list separators.
5940      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5941      for pkg in $enableval; do
5942        IFS="$lt_save_ifs"
5943        if test "X$pkg" = "X$p"; then
5944          enable_fast_install=yes
5945        fi
5946      done
5947      IFS="$lt_save_ifs"
5948      ;;
5949    esac
5950else
5951  enable_fast_install=yes
5952fi;
5953
5954echo "$as_me:$LINENO: checking host system type" >&5
5955echo $ECHO_N "checking host system type... $ECHO_C" >&6
5956if test "${ac_cv_host+set}" = set; then
5957  echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959  ac_cv_host_alias=$host_alias
5960test -z "$ac_cv_host_alias" &&
5961  ac_cv_host_alias=$ac_cv_build_alias
5962ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5963  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5964echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5965   { (exit 1); exit 1; }; }
5966
5967fi
5968echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5969echo "${ECHO_T}$ac_cv_host" >&6
5970host=$ac_cv_host
5971host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5972host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5973host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5974
5975
5976echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5977echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5978if test "${lt_cv_path_SED+set}" = set; then
5979  echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981  # Loop through the user's path and test for sed and gsed.
5982# Then use that list of sed's as ones to test for truncation.
5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986  IFS=$as_save_IFS
5987  test -z "$as_dir" && as_dir=.
5988  for lt_ac_prog in sed gsed; do
5989    for ac_exec_ext in '' $ac_executable_extensions; do
5990      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5991        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5992      fi
5993    done
5994  done
5995done
5996lt_ac_max=0
5997lt_ac_count=0
5998# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5999# along with /bin/sed that truncates output.
6000for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6001  test ! -f $lt_ac_sed && continue
6002  cat /dev/null > conftest.in
6003  lt_ac_count=0
6004  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6005  # Check for GNU sed and select it if it is found.
6006  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6007    lt_cv_path_SED=$lt_ac_sed
6008    break
6009  fi
6010  while true; do
6011    cat conftest.in conftest.in >conftest.tmp
6012    mv conftest.tmp conftest.in
6013    cp conftest.in conftest.nl
6014    echo >>conftest.nl
6015    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6016    cmp -s conftest.out conftest.nl || break
6017    # 10000 chars as input seems more than enough
6018    test $lt_ac_count -gt 10 && break
6019    lt_ac_count=`expr $lt_ac_count + 1`
6020    if test $lt_ac_count -gt $lt_ac_max; then
6021      lt_ac_max=$lt_ac_count
6022      lt_cv_path_SED=$lt_ac_sed
6023    fi
6024  done
6025done
6026
6027fi
6028
6029SED=$lt_cv_path_SED
6030echo "$as_me:$LINENO: result: $SED" >&5
6031echo "${ECHO_T}$SED" >&6
6032
6033
6034# Check whether --with-gnu-ld or --without-gnu-ld was given.
6035if test "${with_gnu_ld+set}" = set; then
6036  withval="$with_gnu_ld"
6037  test "$withval" = no || with_gnu_ld=yes
6038else
6039  with_gnu_ld=no
6040fi;
6041ac_prog=ld
6042if test "$GCC" = yes; then
6043  # Check if gcc -print-prog-name=ld gives a path.
6044  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6045echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6046  case $host in
6047  *-*-mingw*)
6048    # gcc leaves a trailing carriage return which upsets mingw
6049    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6050  *)
6051    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6052  esac
6053  case $ac_prog in
6054    # Accept absolute paths.
6055    [\\/]* | ?:[\\/]*)
6056      re_direlt='/[^/][^/]*/\.\./'
6057      # Canonicalize the pathname of ld
6058      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6059      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6060        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6061      done
6062      test -z "$LD" && LD="$ac_prog"
6063      ;;
6064  "")
6065    # If it fails, then pretend we aren't using GCC.
6066    ac_prog=ld
6067    ;;
6068  *)
6069    # If it is relative, then search for the first ld in PATH.
6070    with_gnu_ld=unknown
6071    ;;
6072  esac
6073elif test "$with_gnu_ld" = yes; then
6074  echo "$as_me:$LINENO: checking for GNU ld" >&5
6075echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6076else
6077  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6078echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6079fi
6080if test "${lt_cv_path_LD+set}" = set; then
6081  echo $ECHO_N "(cached) $ECHO_C" >&6
6082else
6083  if test -z "$LD"; then
6084  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6085  for ac_dir in $PATH; do
6086    IFS="$lt_save_ifs"
6087    test -z "$ac_dir" && ac_dir=.
6088    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6089      lt_cv_path_LD="$ac_dir/$ac_prog"
6090      # Check to see if the program is GNU ld.  I'd rather use --version,
6091      # but apparently some variants of GNU ld only accept -v.
6092      # Break only if it was the GNU/non-GNU ld that we prefer.
6093      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6094      *GNU* | *'with BFD'*)
6095        test "$with_gnu_ld" != no && break
6096        ;;
6097      *)
6098        test "$with_gnu_ld" != yes && break
6099        ;;
6100      esac
6101    fi
6102  done
6103  IFS="$lt_save_ifs"
6104else
6105  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6106fi
6107fi
6108
6109LD="$lt_cv_path_LD"
6110if test -n "$LD"; then
6111  echo "$as_me:$LINENO: result: $LD" >&5
6112echo "${ECHO_T}$LD" >&6
6113else
6114  echo "$as_me:$LINENO: result: no" >&5
6115echo "${ECHO_T}no" >&6
6116fi
6117test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6118echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6119   { (exit 1); exit 1; }; }
6120echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6121echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6122if test "${lt_cv_prog_gnu_ld+set}" = set; then
6123  echo $ECHO_N "(cached) $ECHO_C" >&6
6124else
6125  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6126case `$LD -v 2>&1 </dev/null` in
6127*GNU* | *'with BFD'*)
6128  lt_cv_prog_gnu_ld=yes
6129  ;;
6130*)
6131  lt_cv_prog_gnu_ld=no
6132  ;;
6133esac
6134fi
6135echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6136echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6137with_gnu_ld=$lt_cv_prog_gnu_ld
6138
6139
6140echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6141echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6142if test "${lt_cv_ld_reload_flag+set}" = set; then
6143  echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145  lt_cv_ld_reload_flag='-r'
6146fi
6147echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6148echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6149reload_flag=$lt_cv_ld_reload_flag
6150case $reload_flag in
6151"" | " "*) ;;
6152*) reload_flag=" $reload_flag" ;;
6153esac
6154reload_cmds='$LD$reload_flag -o $output$reload_objs'
6155case $host_os in
6156  darwin*)
6157    if test "$GCC" = yes; then
6158      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6159    else
6160      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6161    fi
6162    ;;
6163esac
6164
6165echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6166echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6167if test "${lt_cv_path_NM+set}" = set; then
6168  echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170  if test -n "$NM"; then
6171  # Let the user override the test.
6172  lt_cv_path_NM="$NM"
6173else
6174  lt_nm_to_check="${ac_tool_prefix}nm"
6175  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6176    lt_nm_to_check="$lt_nm_to_check nm"
6177  fi
6178  for lt_tmp_nm in $lt_nm_to_check; do
6179    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6180    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6181      IFS="$lt_save_ifs"
6182      test -z "$ac_dir" && ac_dir=.
6183      tmp_nm="$ac_dir/$lt_tmp_nm"
6184      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6185        # Check to see if the nm accepts a BSD-compat flag.
6186        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6187        #   nm: unknown option "B" ignored
6188        # Tru64's nm complains that /dev/null is an invalid object file
6189        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6190        */dev/null* | *'Invalid file or object type'*)
6191          lt_cv_path_NM="$tmp_nm -B"
6192          break
6193          ;;
6194        *)
6195          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6196          */dev/null*)
6197            lt_cv_path_NM="$tmp_nm -p"
6198            break
6199            ;;
6200          *)
6201            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6202            continue # so that we can try to find one that supports BSD flags
6203            ;;
6204          esac
6205          ;;
6206        esac
6207      fi
6208    done
6209    IFS="$lt_save_ifs"
6210  done
6211  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6212fi
6213fi
6214echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6215echo "${ECHO_T}$lt_cv_path_NM" >&6
6216NM="$lt_cv_path_NM"
6217
6218echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6219echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6220if test "${lt_cv_deplibs_check_method+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  lt_cv_file_magic_cmd='$MAGIC_CMD'
6224lt_cv_file_magic_test_file=
6225lt_cv_deplibs_check_method='unknown'
6226# Need to set the preceding variable on all platforms that support
6227# interlibrary dependencies.
6228# 'none' -- dependencies not supported.
6229# `unknown' -- same as none, but documents that we really don't know.
6230# 'pass_all' -- all dependencies passed with no checks.
6231# 'test_compile' -- check by making test program.
6232# 'file_magic [[regex]]' -- check by looking for files in library path
6233# which responds to the $file_magic_cmd with a given extended regex.
6234# If you have `file' or equivalent on your system and you're not sure
6235# whether `pass_all' will *always* work, you probably want this one.
6236
6237case $host_os in
6238aix4* | aix5*)
6239  lt_cv_deplibs_check_method=pass_all
6240  ;;
6241
6242beos*)
6243  lt_cv_deplibs_check_method=pass_all
6244  ;;
6245
6246bsdi[45]*)
6247  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6248  lt_cv_file_magic_cmd='/usr/bin/file -L'
6249  lt_cv_file_magic_test_file=/shlib/libc.so
6250  ;;
6251
6252cygwin*)
6253  # func_win32_libid is a shell function defined in ltmain.sh
6254  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6255  lt_cv_file_magic_cmd='func_win32_libid'
6256  ;;
6257
6258mingw* | pw32*)
6259  # Base MSYS/MinGW do not provide the 'file' command needed by
6260  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6261  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6262  lt_cv_file_magic_cmd='$OBJDUMP -f'
6263  ;;
6264
6265darwin* | rhapsody*)
6266  lt_cv_deplibs_check_method=pass_all
6267  ;;
6268
6269freebsd* | kfreebsd*-gnu | dragonfly*)
6270  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6271    case $host_cpu in
6272    i*86 )
6273      # Not sure whether the presence of OpenBSD here was a mistake.
6274      # Let's accept both of them until this is cleared up.
6275      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6276      lt_cv_file_magic_cmd=/usr/bin/file
6277      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6278      ;;
6279    esac
6280  else
6281    lt_cv_deplibs_check_method=pass_all
6282  fi
6283  ;;
6284
6285gnu*)
6286  lt_cv_deplibs_check_method=pass_all
6287  ;;
6288
6289hpux10.20* | hpux11*)
6290  lt_cv_file_magic_cmd=/usr/bin/file
6291  case $host_cpu in
6292  ia64*)
6293    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6294    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6295    ;;
6296  hppa*64*)
6297    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]'
6298    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6299    ;;
6300  *)
6301    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6302    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6303    ;;
6304  esac
6305  ;;
6306
6307interix3*)
6308  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6309  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6310  ;;
6311
6312irix5* | irix6* | nonstopux*)
6313  case $LD in
6314  *-32|*"-32 ") libmagic=32-bit;;
6315  *-n32|*"-n32 ") libmagic=N32;;
6316  *-64|*"-64 ") libmagic=64-bit;;
6317  *) libmagic=never-match;;
6318  esac
6319  lt_cv_deplibs_check_method=pass_all
6320  ;;
6321
6322# This must be Linux ELF.
6323linux*)
6324  lt_cv_deplibs_check_method=pass_all
6325  ;;
6326
6327netbsd*)
6328  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6329    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6330  else
6331    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6332  fi
6333  ;;
6334
6335newos6*)
6336  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6337  lt_cv_file_magic_cmd=/usr/bin/file
6338  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6339  ;;
6340
6341nto-qnx*)
6342  lt_cv_deplibs_check_method=unknown
6343  ;;
6344
6345openbsd*)
6346  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6347    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6348  else
6349    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6350  fi
6351  ;;
6352
6353osf3* | osf4* | osf5*)
6354  lt_cv_deplibs_check_method=pass_all
6355  ;;
6356
6357solaris*)
6358  lt_cv_deplibs_check_method=pass_all
6359  ;;
6360
6361sysv4 | sysv4.3*)
6362  case $host_vendor in
6363  motorola)
6364    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]'
6365    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6366    ;;
6367  ncr)
6368    lt_cv_deplibs_check_method=pass_all
6369    ;;
6370  sequent)
6371    lt_cv_file_magic_cmd='/bin/file'
6372    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6373    ;;
6374  sni)
6375    lt_cv_file_magic_cmd='/bin/file'
6376    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6377    lt_cv_file_magic_test_file=/lib/libc.so
6378    ;;
6379  siemens)
6380    lt_cv_deplibs_check_method=pass_all
6381    ;;
6382  pc)
6383    lt_cv_deplibs_check_method=pass_all
6384    ;;
6385  esac
6386  ;;
6387
6388sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6389  lt_cv_deplibs_check_method=pass_all
6390  ;;
6391esac
6392
6393fi
6394echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6395echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6396file_magic_cmd=$lt_cv_file_magic_cmd
6397deplibs_check_method=$lt_cv_deplibs_check_method
6398test -z "$deplibs_check_method" && deplibs_check_method=unknown
6399
6400
6401
6402
6403# If no C compiler was specified, use CC.
6404LTCC=${LTCC-"$CC"}
6405
6406# If no C compiler flags were specified, use CFLAGS.
6407LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6408
6409# Allow CC to be a program name with arguments.
6410compiler=$CC
6411
6412# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6413if test "${enable_libtool_lock+set}" = set; then
6414  enableval="$enable_libtool_lock"
6415
6416fi;
6417test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6418
6419# Some flags need to be propagated to the compiler or linker for good
6420# libtool support.
6421case $host in
6422ia64-*-hpux*)
6423  # Find out which ABI we are using.
6424  echo 'int i;' > conftest.$ac_ext
6425  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426  (eval $ac_compile) 2>&5
6427  ac_status=$?
6428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429  (exit $ac_status); }; then
6430    case `/usr/bin/file conftest.$ac_objext` in
6431    *ELF-32*)
6432      HPUX_IA64_MODE="32"
6433      ;;
6434    *ELF-64*)
6435      HPUX_IA64_MODE="64"
6436      ;;
6437    esac
6438  fi
6439  rm -rf conftest*
6440  ;;
6441*-*-irix6*)
6442  # Find out which ABI we are using.
6443  echo '#line 6443 "configure"' > conftest.$ac_ext
6444  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445  (eval $ac_compile) 2>&5
6446  ac_status=$?
6447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448  (exit $ac_status); }; then
6449   if test "$lt_cv_prog_gnu_ld" = yes; then
6450    case `/usr/bin/file conftest.$ac_objext` in
6451    *32-bit*)
6452      LD="${LD-ld} -melf32bsmip"
6453      ;;
6454    *N32*)
6455      LD="${LD-ld} -melf32bmipn32"
6456      ;;
6457    *64-bit*)
6458      LD="${LD-ld} -melf64bmip"
6459      ;;
6460    esac
6461   else
6462    case `/usr/bin/file conftest.$ac_objext` in
6463    *32-bit*)
6464      LD="${LD-ld} -32"
6465      ;;
6466    *N32*)
6467      LD="${LD-ld} -n32"
6468      ;;
6469    *64-bit*)
6470      LD="${LD-ld} -64"
6471      ;;
6472    esac
6473   fi
6474  fi
6475  rm -rf conftest*
6476  ;;
6477
6478x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6479  # Find out which ABI we are using.
6480  echo 'int i;' > conftest.$ac_ext
6481  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482  (eval $ac_compile) 2>&5
6483  ac_status=$?
6484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485  (exit $ac_status); }; then
6486    case `/usr/bin/file conftest.o` in
6487    *32-bit*)
6488      case $host in
6489        x86_64-*linux*)
6490          LD="${LD-ld} -m elf_i386"
6491          ;;
6492        ppc64-*linux*|powerpc64-*linux*)
6493          LD="${LD-ld} -m elf32ppclinux"
6494          ;;
6495        s390x-*linux*)
6496          LD="${LD-ld} -m elf_s390"
6497          ;;
6498        sparc64-*linux*)
6499          LD="${LD-ld} -m elf32_sparc"
6500          ;;
6501      esac
6502      ;;
6503    *64-bit*)
6504      case $host in
6505        x86_64-*linux*)
6506          LD="${LD-ld} -m elf_x86_64"
6507          ;;
6508        ppc*-*linux*|powerpc*-*linux*)
6509          LD="${LD-ld} -m elf64ppc"
6510          ;;
6511        s390*-*linux*)
6512          LD="${LD-ld} -m elf64_s390"
6513          ;;
6514        sparc*-*linux*)
6515          LD="${LD-ld} -m elf64_sparc"
6516          ;;
6517      esac
6518      ;;
6519    esac
6520  fi
6521  rm -rf conftest*
6522  ;;
6523
6524*-*-sco3.2v5*)
6525  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6526  SAVE_CFLAGS="$CFLAGS"
6527  CFLAGS="$CFLAGS -belf"
6528  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6529echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6530if test "${lt_cv_cc_needs_belf+set}" = set; then
6531  echo $ECHO_N "(cached) $ECHO_C" >&6
6532else
6533  ac_ext=c
6534ac_cpp='$CPP $CPPFLAGS'
6535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6537ac_compiler_gnu=$ac_cv_c_compiler_gnu
6538
6539     cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h.  */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h.  */
6545
6546int
6547main ()
6548{
6549
6550  ;
6551  return 0;
6552}
6553_ACEOF
6554rm -f conftest.$ac_objext conftest$ac_exeext
6555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6556  (eval $ac_link) 2>conftest.er1
6557  ac_status=$?
6558  grep -v '^ *+' conftest.er1 >conftest.err
6559  rm -f conftest.er1
6560  cat conftest.err >&5
6561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562  (exit $ac_status); } &&
6563         { ac_try='test -z "$ac_c_werror_flag"
6564                         || test ! -s conftest.err'
6565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566  (eval $ac_try) 2>&5
6567  ac_status=$?
6568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569  (exit $ac_status); }; } &&
6570         { ac_try='test -s conftest$ac_exeext'
6571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572  (eval $ac_try) 2>&5
6573  ac_status=$?
6574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575  (exit $ac_status); }; }; then
6576  lt_cv_cc_needs_belf=yes
6577else
6578  echo "$as_me: failed program was:" >&5
6579sed 's/^/| /' conftest.$ac_ext >&5
6580
6581lt_cv_cc_needs_belf=no
6582fi
6583rm -f conftest.err conftest.$ac_objext \
6584      conftest$ac_exeext conftest.$ac_ext
6585     ac_ext=c
6586ac_cpp='$CPP $CPPFLAGS'
6587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6589ac_compiler_gnu=$ac_cv_c_compiler_gnu
6590
6591fi
6592echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6593echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6594  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6595    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6596    CFLAGS="$SAVE_CFLAGS"
6597  fi
6598  ;;
6599sparc*-*solaris*)
6600  # Find out which ABI we are using.
6601  echo 'int i;' > conftest.$ac_ext
6602  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6603  (eval $ac_compile) 2>&5
6604  ac_status=$?
6605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606  (exit $ac_status); }; then
6607    case `/usr/bin/file conftest.o` in
6608    *64-bit*)
6609      case $lt_cv_prog_gnu_ld in
6610      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6611      *)    LD="${LD-ld} -64" ;;
6612      esac
6613      ;;
6614    esac
6615  fi
6616  rm -rf conftest*
6617  ;;
6618
6619
6620esac
6621
6622need_locks="$enable_libtool_lock"
6623
6624
6625ac_ext=c
6626ac_cpp='$CPP $CPPFLAGS'
6627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6629ac_compiler_gnu=$ac_cv_c_compiler_gnu
6630echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6631echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6632# On Suns, sometimes $CPP names a directory.
6633if test -n "$CPP" && test -d "$CPP"; then
6634  CPP=
6635fi
6636if test -z "$CPP"; then
6637  if test "${ac_cv_prog_CPP+set}" = set; then
6638  echo $ECHO_N "(cached) $ECHO_C" >&6
6639else
6640      # Double quotes because CPP needs to be expanded
6641    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6642    do
6643      ac_preproc_ok=false
6644for ac_c_preproc_warn_flag in '' yes
6645do
6646  # Use a header file that comes with gcc, so configuring glibc
6647  # with a fresh cross-compiler works.
6648  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6649  # <limits.h> exists even on freestanding compilers.
6650  # On the NeXT, cc -E runs the code through the compiler's parser,
6651  # not just through cpp. "Syntax error" is here to catch this case.
6652  cat >conftest.$ac_ext <<_ACEOF
6653/* confdefs.h.  */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h.  */
6658#ifdef __STDC__
6659# include <limits.h>
6660#else
6661# include <assert.h>
6662#endif
6663                     Syntax error
6664_ACEOF
6665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6666  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6667  ac_status=$?
6668  grep -v '^ *+' conftest.er1 >conftest.err
6669  rm -f conftest.er1
6670  cat conftest.err >&5
6671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672  (exit $ac_status); } >/dev/null; then
6673  if test -s conftest.err; then
6674    ac_cpp_err=$ac_c_preproc_warn_flag
6675    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6676  else
6677    ac_cpp_err=
6678  fi
6679else
6680  ac_cpp_err=yes
6681fi
6682if test -z "$ac_cpp_err"; then
6683  :
6684else
6685  echo "$as_me: failed program was:" >&5
6686sed 's/^/| /' conftest.$ac_ext >&5
6687
6688  # Broken: fails on valid input.
6689continue
6690fi
6691rm -f conftest.err conftest.$ac_ext
6692
6693  # OK, works on sane cases.  Now check whether non-existent headers
6694  # can be detected and how.
6695  cat >conftest.$ac_ext <<_ACEOF
6696/* confdefs.h.  */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h.  */
6701#include <ac_nonexistent.h>
6702_ACEOF
6703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6704  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6705  ac_status=$?
6706  grep -v '^ *+' conftest.er1 >conftest.err
6707  rm -f conftest.er1
6708  cat conftest.err >&5
6709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710  (exit $ac_status); } >/dev/null; then
6711  if test -s conftest.err; then
6712    ac_cpp_err=$ac_c_preproc_warn_flag
6713    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6714  else
6715    ac_cpp_err=
6716  fi
6717else
6718  ac_cpp_err=yes
6719fi
6720if test -z "$ac_cpp_err"; then
6721  # Broken: success on invalid input.
6722continue
6723else
6724  echo "$as_me: failed program was:" >&5
6725sed 's/^/| /' conftest.$ac_ext >&5
6726
6727  # Passes both tests.
6728ac_preproc_ok=:
6729break
6730fi
6731rm -f conftest.err conftest.$ac_ext
6732
6733done
6734# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6735rm -f conftest.err conftest.$ac_ext
6736if $ac_preproc_ok; then
6737  break
6738fi
6739
6740    done
6741    ac_cv_prog_CPP=$CPP
6742
6743fi
6744  CPP=$ac_cv_prog_CPP
6745else
6746  ac_cv_prog_CPP=$CPP
6747fi
6748echo "$as_me:$LINENO: result: $CPP" >&5
6749echo "${ECHO_T}$CPP" >&6
6750ac_preproc_ok=false
6751for ac_c_preproc_warn_flag in '' yes
6752do
6753  # Use a header file that comes with gcc, so configuring glibc
6754  # with a fresh cross-compiler works.
6755  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6756  # <limits.h> exists even on freestanding compilers.
6757  # On the NeXT, cc -E runs the code through the compiler's parser,
6758  # not just through cpp. "Syntax error" is here to catch this case.
6759  cat >conftest.$ac_ext <<_ACEOF
6760/* confdefs.h.  */
6761_ACEOF
6762cat confdefs.h >>conftest.$ac_ext
6763cat >>conftest.$ac_ext <<_ACEOF
6764/* end confdefs.h.  */
6765#ifdef __STDC__
6766# include <limits.h>
6767#else
6768# include <assert.h>
6769#endif
6770                     Syntax error
6771_ACEOF
6772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6773  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6774  ac_status=$?
6775  grep -v '^ *+' conftest.er1 >conftest.err
6776  rm -f conftest.er1
6777  cat conftest.err >&5
6778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779  (exit $ac_status); } >/dev/null; then
6780  if test -s conftest.err; then
6781    ac_cpp_err=$ac_c_preproc_warn_flag
6782    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6783  else
6784    ac_cpp_err=
6785  fi
6786else
6787  ac_cpp_err=yes
6788fi
6789if test -z "$ac_cpp_err"; then
6790  :
6791else
6792  echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795  # Broken: fails on valid input.
6796continue
6797fi
6798rm -f conftest.err conftest.$ac_ext
6799
6800  # OK, works on sane cases.  Now check whether non-existent headers
6801  # can be detected and how.
6802  cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h.  */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h.  */
6808#include <ac_nonexistent.h>
6809_ACEOF
6810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6811  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6812  ac_status=$?
6813  grep -v '^ *+' conftest.er1 >conftest.err
6814  rm -f conftest.er1
6815  cat conftest.err >&5
6816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817  (exit $ac_status); } >/dev/null; then
6818  if test -s conftest.err; then
6819    ac_cpp_err=$ac_c_preproc_warn_flag
6820    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6821  else
6822    ac_cpp_err=
6823  fi
6824else
6825  ac_cpp_err=yes
6826fi
6827if test -z "$ac_cpp_err"; then
6828  # Broken: success on invalid input.
6829continue
6830else
6831  echo "$as_me: failed program was:" >&5
6832sed 's/^/| /' conftest.$ac_ext >&5
6833
6834  # Passes both tests.
6835ac_preproc_ok=:
6836break
6837fi
6838rm -f conftest.err conftest.$ac_ext
6839
6840done
6841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6842rm -f conftest.err conftest.$ac_ext
6843if $ac_preproc_ok; then
6844  :
6845else
6846  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6847See \`config.log' for more details." >&5
6848echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6849See \`config.log' for more details." >&2;}
6850   { (exit 1); exit 1; }; }
6851fi
6852
6853ac_ext=c
6854ac_cpp='$CPP $CPPFLAGS'
6855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6857ac_compiler_gnu=$ac_cv_c_compiler_gnu
6858
6859
6860echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6861echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6862if test "${ac_cv_header_stdc+set}" = set; then
6863  echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
6865  cat >conftest.$ac_ext <<_ACEOF
6866/* confdefs.h.  */
6867_ACEOF
6868cat confdefs.h >>conftest.$ac_ext
6869cat >>conftest.$ac_ext <<_ACEOF
6870/* end confdefs.h.  */
6871#include <stdlib.h>
6872#include <stdarg.h>
6873#include <string.h>
6874#include <float.h>
6875
6876int
6877main ()
6878{
6879
6880  ;
6881  return 0;
6882}
6883_ACEOF
6884rm -f conftest.$ac_objext
6885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886  (eval $ac_compile) 2>conftest.er1
6887  ac_status=$?
6888  grep -v '^ *+' conftest.er1 >conftest.err
6889  rm -f conftest.er1
6890  cat conftest.err >&5
6891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892  (exit $ac_status); } &&
6893         { ac_try='test -z "$ac_c_werror_flag"
6894                         || test ! -s conftest.err'
6895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896  (eval $ac_try) 2>&5
6897  ac_status=$?
6898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899  (exit $ac_status); }; } &&
6900         { ac_try='test -s conftest.$ac_objext'
6901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902  (eval $ac_try) 2>&5
6903  ac_status=$?
6904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905  (exit $ac_status); }; }; then
6906  ac_cv_header_stdc=yes
6907else
6908  echo "$as_me: failed program was:" >&5
6909sed 's/^/| /' conftest.$ac_ext >&5
6910
6911ac_cv_header_stdc=no
6912fi
6913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6914
6915if test $ac_cv_header_stdc = yes; then
6916  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6917  cat >conftest.$ac_ext <<_ACEOF
6918/* confdefs.h.  */
6919_ACEOF
6920cat confdefs.h >>conftest.$ac_ext
6921cat >>conftest.$ac_ext <<_ACEOF
6922/* end confdefs.h.  */
6923#include <string.h>
6924
6925_ACEOF
6926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6927  $EGREP "memchr" >/dev/null 2>&1; then
6928  :
6929else
6930  ac_cv_header_stdc=no
6931fi
6932rm -f conftest*
6933
6934fi
6935
6936if test $ac_cv_header_stdc = yes; then
6937  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6938  cat >conftest.$ac_ext <<_ACEOF
6939/* confdefs.h.  */
6940_ACEOF
6941cat confdefs.h >>conftest.$ac_ext
6942cat >>conftest.$ac_ext <<_ACEOF
6943/* end confdefs.h.  */
6944#include <stdlib.h>
6945
6946_ACEOF
6947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6948  $EGREP "free" >/dev/null 2>&1; then
6949  :
6950else
6951  ac_cv_header_stdc=no
6952fi
6953rm -f conftest*
6954
6955fi
6956
6957if test $ac_cv_header_stdc = yes; then
6958  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6959  if test "$cross_compiling" = yes; then
6960  :
6961else
6962  cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h.  */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h.  */
6968#include <ctype.h>
6969#if ((' ' & 0x0FF) == 0x020)
6970# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6971# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6972#else
6973# define ISLOWER(c) \
6974                   (('a' <= (c) && (c) <= 'i') \
6975                     || ('j' <= (c) && (c) <= 'r') \
6976                     || ('s' <= (c) && (c) <= 'z'))
6977# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6978#endif
6979
6980#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6981int
6982main ()
6983{
6984  int i;
6985  for (i = 0; i < 256; i++)
6986    if (XOR (islower (i), ISLOWER (i))
6987        || toupper (i) != TOUPPER (i))
6988      exit(2);
6989  exit (0);
6990}
6991_ACEOF
6992rm -f conftest$ac_exeext
6993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6994  (eval $ac_link) 2>&5
6995  ac_status=$?
6996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999  (eval $ac_try) 2>&5
7000  ac_status=$?
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); }; }; then
7003  :
7004else
7005  echo "$as_me: program exited with status $ac_status" >&5
7006echo "$as_me: failed program was:" >&5
7007sed 's/^/| /' conftest.$ac_ext >&5
7008
7009( exit $ac_status )
7010ac_cv_header_stdc=no
7011fi
7012rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7013fi
7014fi
7015fi
7016echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7017echo "${ECHO_T}$ac_cv_header_stdc" >&6
7018if test $ac_cv_header_stdc = yes; then
7019
7020cat >>confdefs.h <<\_ACEOF
7021#define STDC_HEADERS 1
7022_ACEOF
7023
7024fi
7025
7026# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7037                  inttypes.h stdint.h unistd.h
7038do
7039as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7040echo "$as_me:$LINENO: checking for $ac_header" >&5
7041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7042if eval "test \"\${$as_ac_Header+set}\" = set"; then
7043  echo $ECHO_N "(cached) $ECHO_C" >&6
7044else
7045  cat >conftest.$ac_ext <<_ACEOF
7046/* confdefs.h.  */
7047_ACEOF
7048cat confdefs.h >>conftest.$ac_ext
7049cat >>conftest.$ac_ext <<_ACEOF
7050/* end confdefs.h.  */
7051$ac_includes_default
7052
7053#include <$ac_header>
7054_ACEOF
7055rm -f conftest.$ac_objext
7056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057  (eval $ac_compile) 2>conftest.er1
7058  ac_status=$?
7059  grep -v '^ *+' conftest.er1 >conftest.err
7060  rm -f conftest.er1
7061  cat conftest.err >&5
7062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063  (exit $ac_status); } &&
7064         { ac_try='test -z "$ac_c_werror_flag"
7065                         || test ! -s conftest.err'
7066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067  (eval $ac_try) 2>&5
7068  ac_status=$?
7069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070  (exit $ac_status); }; } &&
7071         { ac_try='test -s conftest.$ac_objext'
7072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073  (eval $ac_try) 2>&5
7074  ac_status=$?
7075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076  (exit $ac_status); }; }; then
7077  eval "$as_ac_Header=yes"
7078else
7079  echo "$as_me: failed program was:" >&5
7080sed 's/^/| /' conftest.$ac_ext >&5
7081
7082eval "$as_ac_Header=no"
7083fi
7084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7085fi
7086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7088if test `eval echo '${'$as_ac_Header'}'` = yes; then
7089  cat >>confdefs.h <<_ACEOF
7090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7091_ACEOF
7092
7093fi
7094
7095done
7096
7097
7098
7099for ac_header in dlfcn.h
7100do
7101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7102if eval "test \"\${$as_ac_Header+set}\" = set"; then
7103  echo "$as_me:$LINENO: checking for $ac_header" >&5
7104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7105if eval "test \"\${$as_ac_Header+set}\" = set"; then
7106  echo $ECHO_N "(cached) $ECHO_C" >&6
7107fi
7108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7110else
7111  # Is the header compilable?
7112echo "$as_me:$LINENO: checking $ac_header usability" >&5
7113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7114cat >conftest.$ac_ext <<_ACEOF
7115/* confdefs.h.  */
7116_ACEOF
7117cat confdefs.h >>conftest.$ac_ext
7118cat >>conftest.$ac_ext <<_ACEOF
7119/* end confdefs.h.  */
7120$ac_includes_default
7121#include <$ac_header>
7122_ACEOF
7123rm -f conftest.$ac_objext
7124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7125  (eval $ac_compile) 2>conftest.er1
7126  ac_status=$?
7127  grep -v '^ *+' conftest.er1 >conftest.err
7128  rm -f conftest.er1
7129  cat conftest.err >&5
7130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); } &&
7132         { ac_try='test -z "$ac_c_werror_flag"
7133                         || test ! -s conftest.err'
7134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135  (eval $ac_try) 2>&5
7136  ac_status=$?
7137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138  (exit $ac_status); }; } &&
7139         { ac_try='test -s conftest.$ac_objext'
7140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141  (eval $ac_try) 2>&5
7142  ac_status=$?
7143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144  (exit $ac_status); }; }; then
7145  ac_header_compiler=yes
7146else
7147  echo "$as_me: failed program was:" >&5
7148sed 's/^/| /' conftest.$ac_ext >&5
7149
7150ac_header_compiler=no
7151fi
7152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7153echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7154echo "${ECHO_T}$ac_header_compiler" >&6
7155
7156# Is the header present?
7157echo "$as_me:$LINENO: checking $ac_header presence" >&5
7158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7159cat >conftest.$ac_ext <<_ACEOF
7160/* confdefs.h.  */
7161_ACEOF
7162cat confdefs.h >>conftest.$ac_ext
7163cat >>conftest.$ac_ext <<_ACEOF
7164/* end confdefs.h.  */
7165#include <$ac_header>
7166_ACEOF
7167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7168  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7169  ac_status=$?
7170  grep -v '^ *+' conftest.er1 >conftest.err
7171  rm -f conftest.er1
7172  cat conftest.err >&5
7173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174  (exit $ac_status); } >/dev/null; then
7175  if test -s conftest.err; then
7176    ac_cpp_err=$ac_c_preproc_warn_flag
7177    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7178  else
7179    ac_cpp_err=
7180  fi
7181else
7182  ac_cpp_err=yes
7183fi
7184if test -z "$ac_cpp_err"; then
7185  ac_header_preproc=yes
7186else
7187  echo "$as_me: failed program was:" >&5
7188sed 's/^/| /' conftest.$ac_ext >&5
7189
7190  ac_header_preproc=no
7191fi
7192rm -f conftest.err conftest.$ac_ext
7193echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7194echo "${ECHO_T}$ac_header_preproc" >&6
7195
7196# So?  What about this header?
7197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7198  yes:no: )
7199    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7201    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7202echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7203    ac_header_preproc=yes
7204    ;;
7205  no:yes:* )
7206    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7208    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7209echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7210    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7211echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7212    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7213echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7214    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7216    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7217echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7218    (
7219      cat <<\_ASBOX
7220## ----------------------------------------- ##
7221## Report this to coin-clp@lists.coin-or.org ##
7222## ----------------------------------------- ##
7223_ASBOX
7224    ) |
7225      sed "s/^/$as_me: WARNING:     /" >&2
7226    ;;
7227esac
7228echo "$as_me:$LINENO: checking for $ac_header" >&5
7229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7230if eval "test \"\${$as_ac_Header+set}\" = set"; then
7231  echo $ECHO_N "(cached) $ECHO_C" >&6
7232else
7233  eval "$as_ac_Header=\$ac_header_preproc"
7234fi
7235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7237
7238fi
7239if test `eval echo '${'$as_ac_Header'}'` = yes; then
7240  cat >>confdefs.h <<_ACEOF
7241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7242_ACEOF
7243
7244fi
7245
7246done
7247
7248
7249
7250if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7251    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7252    (test "X$CXX" != "Xg++"))) ; then
7253  ac_ext=cc
7254ac_cpp='$CXXCPP $CPPFLAGS'
7255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7258echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7259echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7260if test -z "$CXXCPP"; then
7261  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7262  echo $ECHO_N "(cached) $ECHO_C" >&6
7263else
7264      # Double quotes because CXXCPP needs to be expanded
7265    for CXXCPP in "$CXX -E" "/lib/cpp"
7266    do
7267      ac_preproc_ok=false
7268for ac_cxx_preproc_warn_flag in '' yes
7269do
7270  # Use a header file that comes with gcc, so configuring glibc
7271  # with a fresh cross-compiler works.
7272  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7273  # <limits.h> exists even on freestanding compilers.
7274  # On the NeXT, cc -E runs the code through the compiler's parser,
7275  # not just through cpp. "Syntax error" is here to catch this case.
7276  cat >conftest.$ac_ext <<_ACEOF
7277/* confdefs.h.  */
7278_ACEOF
7279cat confdefs.h >>conftest.$ac_ext
7280cat >>conftest.$ac_ext <<_ACEOF
7281/* end confdefs.h.  */
7282#ifdef __STDC__
7283# include <limits.h>
7284#else
7285# include <assert.h>
7286#endif
7287                     Syntax error
7288_ACEOF
7289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7290  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7291  ac_status=$?
7292  grep -v '^ *+' conftest.er1 >conftest.err
7293  rm -f conftest.er1
7294  cat conftest.err >&5
7295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296  (exit $ac_status); } >/dev/null; then
7297  if test -s conftest.err; then
7298    ac_cpp_err=$ac_cxx_preproc_warn_flag
7299    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7300  else
7301    ac_cpp_err=
7302  fi
7303else
7304  ac_cpp_err=yes
7305fi
7306if test -z "$ac_cpp_err"; then
7307  :
7308else
7309  echo "$as_me: failed program was:" >&5
7310sed 's/^/| /' conftest.$ac_ext >&5
7311
7312  # Broken: fails on valid input.
7313continue
7314fi
7315rm -f conftest.err conftest.$ac_ext
7316
7317  # OK, works on sane cases.  Now check whether non-existent headers
7318  # can be detected and how.
7319  cat >conftest.$ac_ext <<_ACEOF
7320/* confdefs.h.  */
7321_ACEOF
7322cat confdefs.h >>conftest.$ac_ext
7323cat >>conftest.$ac_ext <<_ACEOF
7324/* end confdefs.h.  */
7325#include <ac_nonexistent.h>
7326_ACEOF
7327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7328  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7329  ac_status=$?
7330  grep -v '^ *+' conftest.er1 >conftest.err
7331  rm -f conftest.er1
7332  cat conftest.err >&5
7333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334  (exit $ac_status); } >/dev/null; then
7335  if test -s conftest.err; then
7336    ac_cpp_err=$ac_cxx_preproc_warn_flag
7337    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7338  else
7339    ac_cpp_err=
7340  fi
7341else
7342  ac_cpp_err=yes
7343fi
7344if test -z "$ac_cpp_err"; then
7345  # Broken: success on invalid input.
7346continue
7347else
7348  echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351  # Passes both tests.
7352ac_preproc_ok=:
7353break
7354fi
7355rm -f conftest.err conftest.$ac_ext
7356
7357done
7358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7359rm -f conftest.err conftest.$ac_ext
7360if $ac_preproc_ok; then
7361  break
7362fi
7363
7364    done
7365    ac_cv_prog_CXXCPP=$CXXCPP
7366
7367fi
7368  CXXCPP=$ac_cv_prog_CXXCPP
7369else
7370  ac_cv_prog_CXXCPP=$CXXCPP
7371fi
7372echo "$as_me:$LINENO: result: $CXXCPP" >&5
7373echo "${ECHO_T}$CXXCPP" >&6
7374ac_preproc_ok=false
7375for ac_cxx_preproc_warn_flag in '' yes
7376do
7377  # Use a header file that comes with gcc, so configuring glibc
7378  # with a fresh cross-compiler works.
7379  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7380  # <limits.h> exists even on freestanding compilers.
7381  # On the NeXT, cc -E runs the code through the compiler's parser,
7382  # not just through cpp. "Syntax error" is here to catch this case.
7383  cat >conftest.$ac_ext <<_ACEOF
7384/* confdefs.h.  */
7385_ACEOF
7386cat confdefs.h >>conftest.$ac_ext
7387cat >>conftest.$ac_ext <<_ACEOF
7388/* end confdefs.h.  */
7389#ifdef __STDC__
7390# include <limits.h>
7391#else
7392# include <assert.h>
7393#endif
7394                     Syntax error
7395_ACEOF
7396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7397  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7398  ac_status=$?
7399  grep -v '^ *+' conftest.er1 >conftest.err
7400  rm -f conftest.er1
7401  cat conftest.err >&5
7402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403  (exit $ac_status); } >/dev/null; then
7404  if test -s conftest.err; then
7405    ac_cpp_err=$ac_cxx_preproc_warn_flag
7406    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7407  else
7408    ac_cpp_err=
7409  fi
7410else
7411  ac_cpp_err=yes
7412fi
7413if test -z "$ac_cpp_err"; then
7414  :
7415else
7416  echo "$as_me: failed program was:" >&5
7417sed 's/^/| /' conftest.$ac_ext >&5
7418
7419  # Broken: fails on valid input.
7420continue
7421fi
7422rm -f conftest.err conftest.$ac_ext
7423
7424  # OK, works on sane cases.  Now check whether non-existent headers
7425  # can be detected and how.
7426  cat >conftest.$ac_ext <<_ACEOF
7427/* confdefs.h.  */
7428_ACEOF
7429cat confdefs.h >>conftest.$ac_ext
7430cat >>conftest.$ac_ext <<_ACEOF
7431/* end confdefs.h.  */
7432#include <ac_nonexistent.h>
7433_ACEOF
7434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7435  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7436  ac_status=$?
7437  grep -v '^ *+' conftest.er1 >conftest.err
7438  rm -f conftest.er1
7439  cat conftest.err >&5
7440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441  (exit $ac_status); } >/dev/null; then
7442  if test -s conftest.err; then
7443    ac_cpp_err=$ac_cxx_preproc_warn_flag
7444    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7445  else
7446    ac_cpp_err=
7447  fi
7448else
7449  ac_cpp_err=yes
7450fi
7451if test -z "$ac_cpp_err"; then
7452  # Broken: success on invalid input.
7453continue
7454else
7455  echo "$as_me: failed program was:" >&5
7456sed 's/^/| /' conftest.$ac_ext >&5
7457
7458  # Passes both tests.
7459ac_preproc_ok=:
7460break
7461fi
7462rm -f conftest.err conftest.$ac_ext
7463
7464done
7465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7466rm -f conftest.err conftest.$ac_ext
7467if $ac_preproc_ok; then
7468  :
7469else
7470  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7471See \`config.log' for more details." >&5
7472echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7473See \`config.log' for more details." >&2;}
7474   { (exit 1); exit 1; }; }
7475fi
7476
7477ac_ext=cc
7478ac_cpp='$CXXCPP $CPPFLAGS'
7479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7482
7483fi
7484
7485
7486# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7487
7488# find the maximum length of command line arguments
7489echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7490echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7491if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7492  echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494    i=0
7495  teststring="ABCD"
7496
7497  case $build_os in
7498  msdosdjgpp*)
7499    # On DJGPP, this test can blow up pretty badly due to problems in libc
7500    # (any single argument exceeding 2000 bytes causes a buffer overrun
7501    # during glob expansion).  Even if it were fixed, the result of this
7502    # check would be larger than it should be.
7503    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7504    ;;
7505
7506  gnu*)
7507    # Under GNU Hurd, this test is not required because there is
7508    # no limit to the length of command line arguments.
7509    # Libtool will interpret -1 as no limit whatsoever
7510    lt_cv_sys_max_cmd_len=-1;
7511    ;;
7512
7513  cygwin* | mingw*)
7514    # On Win9x/ME, this test blows up -- it succeeds, but takes
7515    # about 5 minutes as the teststring grows exponentially.
7516    # Worse, since 9x/ME are not pre-emptively multitasking,
7517    # you end up with a "frozen" computer, even though with patience
7518    # the test eventually succeeds (with a max line length of 256k).
7519    # Instead, let's just punt: use the minimum linelength reported by
7520    # all of the supported platforms: 8192 (on NT/2K/XP).
7521    lt_cv_sys_max_cmd_len=8192;
7522    ;;
7523
7524  amigaos*)
7525    # On AmigaOS with pdksh, this test takes hours, literally.
7526    # So we just punt and use a minimum line length of 8192.
7527    lt_cv_sys_max_cmd_len=8192;
7528    ;;
7529
7530  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7531    # This has been around since 386BSD, at least.  Likely further.
7532    if test -x /sbin/sysctl; then
7533      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7534    elif test -x /usr/sbin/sysctl; then
7535      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7536    else
7537      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7538    fi
7539    # And add a safety zone
7540    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7541    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7542    ;;
7543
7544  interix*)
7545    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7546    lt_cv_sys_max_cmd_len=196608
7547    ;;
7548
7549  osf*)
7550    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7551    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7552    # nice to cause kernel panics so lets avoid the loop below.
7553    # First set a reasonable default.
7554    lt_cv_sys_max_cmd_len=16384
7555    #
7556    if test -x /sbin/sysconfig; then
7557      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7558        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7559      esac
7560    fi
7561    ;;
7562  sco3.2v5*)
7563    lt_cv_sys_max_cmd_len=102400
7564    ;;
7565  sysv5* | sco5v6* | sysv4.2uw2*)
7566    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7567    if test -n "$kargmax"; then
7568      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7569    else
7570      lt_cv_sys_max_cmd_len=32768
7571    fi
7572    ;;
7573  *)
7574    # If test is not a shell built-in, we'll probably end up computing a
7575    # maximum length that is only half of the actual maximum length, but
7576    # we can't tell.
7577    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7578    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7579               = "XX$teststring") >/dev/null 2>&1 &&
7580            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7581            lt_cv_sys_max_cmd_len=$new_result &&
7582            test $i != 17 # 1/2 MB should be enough
7583    do
7584      i=`expr $i + 1`
7585      teststring=$teststring$teststring
7586    done
7587    teststring=
7588    # Add a significant safety factor because C++ compilers can tack on massive
7589    # amounts of additional arguments before passing them to the linker.
7590    # It appears as though 1/2 is a usable value.
7591    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7592    ;;
7593  esac
7594
7595fi
7596
7597if test -n $lt_cv_sys_max_cmd_len ; then
7598  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7599echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7600else
7601  echo "$as_me:$LINENO: result: none" >&5
7602echo "${ECHO_T}none" >&6
7603fi
7604
7605
7606
7607
7608# Check for command to grab the raw symbol name followed by C symbol from nm.
7609echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7610echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7611if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7612  echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614
7615# These are sane defaults that work on at least a few old systems.
7616# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7617
7618# Character class describing NM global symbol codes.
7619symcode='[BCDEGRST]'
7620
7621# Regexp to match symbols that can be accessed directly from C.
7622sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7623
7624# Transform an extracted symbol line into a proper C declaration
7625lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7626
7627# Transform an extracted symbol line into symbol name and symbol address
7628lt_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'"
7629
7630# Define system-specific variables.
7631case $host_os in
7632aix*)
7633  symcode='[BCDT]'
7634  ;;
7635cygwin* | mingw* | pw32*)
7636  symcode='[ABCDGISTW]'
7637  ;;
7638hpux*) # Its linker distinguishes data from code symbols
7639  if test "$host_cpu" = ia64; then
7640    symcode='[ABCDEGRST]'
7641  fi
7642  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7643  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7644  ;;
7645linux*)
7646  if test "$host_cpu" = ia64; then
7647    symcode='[ABCDGIRSTW]'
7648    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7649    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'"
7650  fi
7651  ;;
7652irix* | nonstopux*)
7653  symcode='[BCDEGRST]'
7654  ;;
7655osf*)
7656  symcode='[BCDEGQRST]'
7657  ;;
7658solaris*)
7659  symcode='[BDRT]'
7660  ;;
7661sco3.2v5*)
7662  symcode='[DT]'
7663  ;;
7664sysv4.2uw2*)
7665  symcode='[DT]'
7666  ;;
7667sysv5* | sco5v6* | unixware* | OpenUNIX*)
7668  symcode='[ABDT]'
7669  ;;
7670sysv4)
7671  symcode='[DFNSTU]'
7672  ;;
7673esac
7674
7675# Handle CRLF in mingw tool chain
7676opt_cr=
7677case $build_os in
7678mingw*)
7679  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7680  ;;
7681esac
7682
7683# If we're using GNU nm, then use its standard symbol codes.
7684case `$NM -V 2>&1` in
7685*GNU* | *'with BFD'*)
7686  symcode='[ABCDGIRSTW]' ;;
7687esac
7688
7689# Try without a prefix undercore, then with it.
7690for ac_symprfx in "" "_"; do
7691
7692  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7693  symxfrm="\\1 $ac_symprfx\\2 \\2"
7694
7695  # Write the raw and C identifiers.
7696  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7697
7698  # Check to see that the pipe works correctly.
7699  pipe_works=no
7700
7701  rm -f conftest*
7702  cat > conftest.$ac_ext <<EOF
7703#ifdef __cplusplus
7704extern "C" {
7705#endif
7706char nm_test_var;
7707void nm_test_func(){}
7708#ifdef __cplusplus
7709}
7710#endif
7711int main(){nm_test_var='a';nm_test_func();return(0);}
7712EOF
7713
7714  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7715  (eval $ac_compile) 2>&5
7716  ac_status=$?
7717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718  (exit $ac_status); }; then
7719    # Now try to grab the symbols.
7720    nlist=conftest.nm
7721    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7722  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7723  ac_status=$?
7724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725  (exit $ac_status); } && test -s "$nlist"; then
7726      # Try sorting and uniquifying the output.
7727      if sort "$nlist" | uniq > "$nlist"T; then
7728        mv -f "$nlist"T "$nlist"
7729      else
7730        rm -f "$nlist"T
7731      fi
7732
7733      # Make sure that we snagged all the symbols we need.
7734      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7735        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7736          cat <<EOF > conftest.$ac_ext
7737#ifdef __cplusplus
7738extern "C" {
7739#endif
7740
7741EOF
7742          # Now generate the symbol file.
7743          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7744
7745          cat <<EOF >> conftest.$ac_ext
7746#if defined (__STDC__) && __STDC__
7747# define lt_ptr_t void *
7748#else
7749# define lt_ptr_t char *
7750# define const
7751#endif
7752
7753/* The mapping between symbol names and symbols. */
7754const struct {
7755  const char *name;
7756  lt_ptr_t address;
7757}
7758lt_preloaded_symbols[] =
7759{
7760EOF
7761          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7762          cat <<\EOF >> conftest.$ac_ext
7763  {0, (lt_ptr_t) 0}
7764};
7765
7766#ifdef __cplusplus
7767}
7768#endif
7769EOF
7770          # Now try linking the two files.
7771          mv conftest.$ac_objext conftstm.$ac_objext
7772          lt_save_LIBS="$LIBS"
7773          lt_save_CFLAGS="$CFLAGS"
7774          LIBS="conftstm.$ac_objext"
7775          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7776          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777  (eval $ac_link) 2>&5
7778  ac_status=$?
7779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7781            pipe_works=yes
7782          fi
7783          LIBS="$lt_save_LIBS"
7784          CFLAGS="$lt_save_CFLAGS"
7785        else
7786          echo "cannot find nm_test_func in $nlist" >&5
7787        fi
7788      else
7789        echo "cannot find nm_test_var in $nlist" >&5
7790      fi
7791    else
7792      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7793    fi
7794  else
7795    echo "$progname: failed program was:" >&5
7796    cat conftest.$ac_ext >&5
7797  fi
7798  rm -f conftest* conftst*
7799
7800  # Do not use the global_symbol_pipe unless it works.
7801  if test "$pipe_works" = yes; then
7802    break
7803  else
7804    lt_cv_sys_global_symbol_pipe=
7805  fi
7806done
7807
7808fi
7809
7810if test -z "$lt_cv_sys_global_symbol_pipe"; then
7811  lt_cv_sys_global_symbol_to_cdecl=
7812fi
7813if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7814  echo "$as_me:$LINENO: result: failed" >&5
7815echo "${ECHO_T}failed" >&6
7816else
7817  echo "$as_me:$LINENO: result: ok" >&5
7818echo "${ECHO_T}ok" >&6
7819fi
7820
7821echo "$as_me:$LINENO: checking for objdir" >&5
7822echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7823if test "${lt_cv_objdir+set}" = set; then
7824  echo $ECHO_N "(cached) $ECHO_C" >&6
7825else
7826  rm -f .libs 2>/dev/null
7827mkdir .libs 2>/dev/null
7828if test -d .libs; then
7829  lt_cv_objdir=.libs
7830else
7831  # MS-DOS does not allow filenames that begin with a dot.
7832  lt_cv_objdir=_libs
7833fi
7834rmdir .libs 2>/dev/null
7835fi
7836echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7837echo "${ECHO_T}$lt_cv_objdir" >&6
7838objdir=$lt_cv_objdir
7839
7840
7841
7842
7843
7844case $host_os in
7845aix3*)
7846  # AIX sometimes has problems with the GCC collect2 program.  For some
7847  # reason, if we set the COLLECT_NAMES environment variable, the problems
7848  # vanish in a puff of smoke.
7849  if test "X${COLLECT_NAMES+set}" != Xset; then
7850    COLLECT_NAMES=
7851    export COLLECT_NAMES
7852  fi
7853  ;;
7854esac
7855
7856# Sed substitution that helps us do robust quoting.  It backslashifies
7857# metacharacters that are still active within double-quoted strings.
7858Xsed='sed -e 1s/^X//'
7859sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7860
7861# Same as above, but do not quote variable references.
7862double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7863
7864# Sed substitution to delay expansion of an escaped shell variable in a
7865# double_quote_subst'ed string.
7866delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7867
7868# Sed substitution to avoid accidental globbing in evaled expressions
7869no_glob_subst='s/\*/\\\*/g'
7870
7871# Constants:
7872rm="rm -f"
7873
7874# Global variables:
7875default_ofile=libtool
7876can_build_shared=yes
7877
7878# All known linkers require a `.a' archive for static linking (except MSVC,
7879# which needs '.lib').
7880libext=a
7881ltmain="$ac_aux_dir/ltmain.sh"
7882ofile="$default_ofile"
7883with_gnu_ld="$lt_cv_prog_gnu_ld"
7884
7885if test -n "$ac_tool_prefix"; then
7886  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7887set dummy ${ac_tool_prefix}ar; ac_word=$2
7888echo "$as_me:$LINENO: checking for $ac_word" >&5
7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7890if test "${ac_cv_prog_AR+set}" = set; then
7891  echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893  if test -n "$AR"; then
7894  ac_cv_prog_AR="$AR" # Let the user override the test.
7895else
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899  IFS=$as_save_IFS
7900  test -z "$as_dir" && as_dir=.
7901  for ac_exec_ext in '' $ac_executable_extensions; do
7902  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903    ac_cv_prog_AR="${ac_tool_prefix}ar"
7904    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7905    break 2
7906  fi
7907done
7908done
7909
7910fi
7911fi
7912AR=$ac_cv_prog_AR
7913if test -n "$AR"; then
7914  echo "$as_me:$LINENO: result: $AR" >&5
7915echo "${ECHO_T}$AR" >&6
7916else
7917  echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
7919fi
7920
7921fi
7922if test -z "$ac_cv_prog_AR"; then
7923  ac_ct_AR=$AR
7924  # Extract the first word of "ar", so it can be a program name with args.
7925set dummy ar; ac_word=$2
7926echo "$as_me:$LINENO: checking for $ac_word" >&5
7927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7928if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7929  echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931  if test -n "$ac_ct_AR"; then
7932  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7933else
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937  IFS=$as_save_IFS
7938  test -z "$as_dir" && as_dir=.
7939  for ac_exec_ext in '' $ac_executable_extensions; do
7940  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941    ac_cv_prog_ac_ct_AR="ar"
7942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943    break 2
7944  fi
7945done
7946done
7947
7948  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7949fi
7950fi
7951ac_ct_AR=$ac_cv_prog_ac_ct_AR
7952if test -n "$ac_ct_AR"; then
7953  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7954echo "${ECHO_T}$ac_ct_AR" >&6
7955else
7956  echo "$as_me:$LINENO: result: no" >&5
7957echo "${ECHO_T}no" >&6
7958fi
7959
7960  AR=$ac_ct_AR
7961else
7962  AR="$ac_cv_prog_AR"
7963fi
7964
7965if test -n "$ac_tool_prefix"; then
7966  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7967set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7968echo "$as_me:$LINENO: checking for $ac_word" >&5
7969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7970if test "${ac_cv_prog_RANLIB+set}" = set; then
7971  echo $ECHO_N "(cached) $ECHO_C" >&6
7972else
7973  if test -n "$RANLIB"; then
7974  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7975else
7976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979  IFS=$as_save_IFS
7980  test -z "$as_dir" && as_dir=.
7981  for ac_exec_ext in '' $ac_executable_extensions; do
7982  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7985    break 2
7986  fi
7987done
7988done
7989
7990fi
7991fi
7992RANLIB=$ac_cv_prog_RANLIB
7993if test -n "$RANLIB"; then
7994  echo "$as_me:$LINENO: result: $RANLIB" >&5
7995echo "${ECHO_T}$RANLIB" >&6
7996else
7997  echo "$as_me:$LINENO: result: no" >&5
7998echo "${ECHO_T}no" >&6
7999fi
8000
8001fi
8002if test -z "$ac_cv_prog_RANLIB"; then
8003  ac_ct_RANLIB=$RANLIB
8004  # Extract the first word of "ranlib", so it can be a program name with args.
8005set dummy ranlib; ac_word=$2
8006echo "$as_me:$LINENO: checking for $ac_word" >&5
8007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8008if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8009  echo $ECHO_N "(cached) $ECHO_C" >&6
8010else
8011  if test -n "$ac_ct_RANLIB"; then
8012  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8013else
8014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015for as_dir in $PATH
8016do
8017  IFS=$as_save_IFS
8018  test -z "$as_dir" && as_dir=.
8019  for ac_exec_ext in '' $ac_executable_extensions; do
8020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021    ac_cv_prog_ac_ct_RANLIB="ranlib"
8022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023    break 2
8024  fi
8025done
8026done
8027
8028  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8029fi
8030fi
8031ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8032if test -n "$ac_ct_RANLIB"; then
8033  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8034echo "${ECHO_T}$ac_ct_RANLIB" >&6
8035else
8036  echo "$as_me:$LINENO: result: no" >&5
8037echo "${ECHO_T}no" >&6
8038fi
8039
8040  RANLIB=$ac_ct_RANLIB
8041else
8042  RANLIB="$ac_cv_prog_RANLIB"
8043fi
8044
8045if test -n "$ac_tool_prefix"; then
8046  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8047set dummy ${ac_tool_prefix}strip; ac_word=$2
8048echo "$as_me:$LINENO: checking for $ac_word" >&5
8049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8050if test "${ac_cv_prog_STRIP+set}" = set; then
8051  echo $ECHO_N "(cached) $ECHO_C" >&6
8052else
8053  if test -n "$STRIP"; then
8054  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8055else
8056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059  IFS=$as_save_IFS
8060  test -z "$as_dir" && as_dir=.
8061  for ac_exec_ext in '' $ac_executable_extensions; do
8062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065    break 2
8066  fi
8067done
8068done
8069
8070fi
8071fi
8072STRIP=$ac_cv_prog_STRIP
8073if test -n "$STRIP"; then
8074  echo "$as_me:$LINENO: result: $STRIP" >&5
8075echo "${ECHO_T}$STRIP" >&6
8076else
8077  echo "$as_me:$LINENO: result: no" >&5
8078echo "${ECHO_T}no" >&6
8079fi
8080
8081fi
8082if test -z "$ac_cv_prog_STRIP"; then
8083  ac_ct_STRIP=$STRIP
8084  # Extract the first word of "strip", so it can be a program name with args.
8085set dummy strip; ac_word=$2
8086echo "$as_me:$LINENO: checking for $ac_word" >&5
8087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8088if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8089  echo $ECHO_N "(cached) $ECHO_C" >&6
8090else
8091  if test -n "$ac_ct_STRIP"; then
8092  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8093else
8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095for as_dir in $PATH
8096do
8097  IFS=$as_save_IFS
8098  test -z "$as_dir" && as_dir=.
8099  for ac_exec_ext in '' $ac_executable_extensions; do
8100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101    ac_cv_prog_ac_ct_STRIP="strip"
8102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8103    break 2
8104  fi
8105done
8106done
8107
8108  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8109fi
8110fi
8111ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8112if test -n "$ac_ct_STRIP"; then
8113  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8114echo "${ECHO_T}$ac_ct_STRIP" >&6
8115else
8116  echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
8118fi
8119
8120  STRIP=$ac_ct_STRIP
8121else
8122  STRIP="$ac_cv_prog_STRIP"
8123fi
8124
8125
8126old_CC="$CC"
8127old_CFLAGS="$CFLAGS"
8128
8129# Set sane defaults for various variables
8130test -z "$AR" && AR=ar
8131test -z "$AR_FLAGS" && AR_FLAGS=cru
8132test -z "$AS" && AS=as
8133test -z "$CC" && CC=cc
8134test -z "$LTCC" && LTCC=$CC
8135test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8136test -z "$DLLTOOL" && DLLTOOL=dlltool
8137test -z "$LD" && LD=ld
8138test -z "$LN_S" && LN_S="ln -s"
8139test -z "$MAGIC_CMD" && MAGIC_CMD=file
8140test -z "$NM" && NM=nm
8141test -z "$SED" && SED=sed
8142test -z "$OBJDUMP" && OBJDUMP=objdump
8143test -z "$RANLIB" && RANLIB=:
8144test -z "$STRIP" && STRIP=:
8145test -z "$ac_objext" && ac_objext=o
8146
8147# Determine commands to create old-style static archives.
8148old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8149old_postinstall_cmds='chmod 644 $oldlib'
8150old_postuninstall_cmds=
8151
8152if test -n "$RANLIB"; then
8153  case $host_os in
8154  openbsd*)
8155    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8156    ;;
8157  *)
8158    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8159    ;;
8160  esac
8161  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8162fi
8163
8164for cc_temp in $compiler""; do
8165  case $cc_temp in
8166    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8167    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8168    \-*) ;;
8169    *) break;;
8170  esac
8171done
8172cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8173
8174
8175# Only perform the check for file, if the check method requires it
8176case $deplibs_check_method in
8177file_magic*)
8178  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8179    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8180echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8181if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8182  echo $ECHO_N "(cached) $ECHO_C" >&6
8183else
8184  case $MAGIC_CMD in
8185[\\/*] |  ?:[\\/]*)
8186  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8187  ;;
8188*)
8189  lt_save_MAGIC_CMD="$MAGIC_CMD"
8190  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8191  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8192  for ac_dir in $ac_dummy; do
8193    IFS="$lt_save_ifs"
8194    test -z "$ac_dir" && ac_dir=.
8195    if test -f $ac_dir/${ac_tool_prefix}file; then
8196      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8197      if test -n "$file_magic_test_file"; then
8198        case $deplibs_check_method in
8199        "file_magic "*)
8200          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8201          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8202          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8203            $EGREP "$file_magic_regex" > /dev/null; then
8204            :
8205          else
8206            cat <<EOF 1>&2
8207
8208*** Warning: the command libtool uses to detect shared libraries,
8209*** $file_magic_cmd, produces output that libtool cannot recognize.
8210*** The result is that libtool may fail to recognize shared libraries
8211*** as such.  This will affect the creation of libtool libraries that
8212*** depend on shared libraries, but programs linked with such libtool
8213*** libraries will work regardless of this problem.  Nevertheless, you
8214*** may want to report the problem to your system manager and/or to
8215*** bug-libtool@gnu.org
8216
8217EOF
8218          fi ;;
8219        esac
8220      fi
8221      break
8222    fi
8223  done
8224  IFS="$lt_save_ifs"
8225  MAGIC_CMD="$lt_save_MAGIC_CMD"
8226  ;;
8227esac
8228fi
8229
8230MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8231if test -n "$MAGIC_CMD"; then
8232  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8233echo "${ECHO_T}$MAGIC_CMD" >&6
8234else
8235  echo "$as_me:$LINENO: result: no" >&5
8236echo "${ECHO_T}no" >&6
8237fi
8238
8239if test -z "$lt_cv_path_MAGIC_CMD"; then
8240  if test -n "$ac_tool_prefix"; then
8241    echo "$as_me:$LINENO: checking for file" >&5
8242echo $ECHO_N "checking for file... $ECHO_C" >&6
8243if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8244  echo $ECHO_N "(cached) $ECHO_C" >&6
8245else
8246  case $MAGIC_CMD in
8247[\\/*] |  ?:[\\/]*)
8248  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8249  ;;
8250*)
8251  lt_save_MAGIC_CMD="$MAGIC_CMD"
8252  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8253  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8254  for ac_dir in $ac_dummy; do
8255    IFS="$lt_save_ifs"
8256    test -z "$ac_dir" && ac_dir=.
8257    if test -f $ac_dir/file; then
8258      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8259      if test -n "$file_magic_test_file"; then
8260        case $deplibs_check_method in
8261        "file_magic "*)
8262          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8263          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8264          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8265            $EGREP "$file_magic_regex" > /dev/null; then
8266            :
8267          else
8268            cat <<EOF 1>&2
8269
8270*** Warning: the command libtool uses to detect shared libraries,
8271*** $file_magic_cmd, produces output that libtool cannot recognize.
8272*** The result is that libtool may fail to recognize shared libraries
8273*** as such.  This will affect the creation of libtool libraries that
8274*** depend on shared libraries, but programs linked with such libtool
8275*** libraries will work regardless of this problem.  Nevertheless, you
8276*** may want to report the problem to your system manager and/or to
8277*** bug-libtool@gnu.org
8278
8279EOF
8280          fi ;;
8281        esac
8282      fi
8283      break
8284    fi
8285  done
8286  IFS="$lt_save_ifs"
8287  MAGIC_CMD="$lt_save_MAGIC_CMD"
8288  ;;
8289esac
8290fi
8291
8292MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8293if test -n "$MAGIC_CMD"; then
8294  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8295echo "${ECHO_T}$MAGIC_CMD" >&6
8296else
8297  echo "$as_me:$LINENO: result: no" >&5
8298echo "${ECHO_T}no" >&6
8299fi
8300
8301  else
8302    MAGIC_CMD=:
8303  fi
8304fi
8305
8306  fi
8307  ;;
8308esac
8309
8310enable_dlopen=no
8311enable_win32_dll=no
8312
8313# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8314if test "${enable_libtool_lock+set}" = set; then
8315  enableval="$enable_libtool_lock"
8316
8317fi;
8318test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8319
8320
8321# Check whether --with-pic or --without-pic was given.
8322if test "${with_pic+set}" = set; then
8323  withval="$with_pic"
8324  pic_mode="$withval"
8325else
8326  pic_mode=default
8327fi;
8328test -z "$pic_mode" && pic_mode=default
8329
8330# Use C for the default configuration in the libtool script
8331tagname=
8332lt_save_CC="$CC"
8333ac_ext=c
8334ac_cpp='$CPP $CPPFLAGS'
8335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8337ac_compiler_gnu=$ac_cv_c_compiler_gnu
8338
8339
8340# Source file extension for C test sources.
8341ac_ext=c
8342
8343# Object file extension for compiled C test sources.
8344objext=o
8345objext=$objext
8346
8347# Code to be used in simple compile tests
8348lt_simple_compile_test_code="int some_variable = 0;\n"
8349
8350# Code to be used in simple link tests
8351lt_simple_link_test_code='int main(){return(0);}\n'
8352
8353
8354# If no C compiler was specified, use CC.
8355LTCC=${LTCC-"$CC"}
8356
8357# If no C compiler flags were specified, use CFLAGS.
8358LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8359
8360# Allow CC to be a program name with arguments.
8361compiler=$CC
8362
8363
8364# save warnings/boilerplate of simple test code
8365ac_outfile=conftest.$ac_objext
8366printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8367eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8368_lt_compiler_boilerplate=`cat conftest.err`
8369$rm conftest*
8370
8371ac_outfile=conftest.$ac_objext
8372printf "$lt_simple_link_test_code" >conftest.$ac_ext
8373eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8374_lt_linker_boilerplate=`cat conftest.err`
8375$rm conftest*
8376
8377
8378## CAVEAT EMPTOR:
8379## There is no encapsulation within the following macros, do not change
8380## the running order or otherwise move them around unless you know exactly
8381## what you are doing...
8382
8383lt_prog_compiler_no_builtin_flag=
8384
8385if test "$GCC" = yes; then
8386  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8387
8388
8389echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8390echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8391if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8392  echo $ECHO_N "(cached) $ECHO_C" >&6
8393else
8394  lt_cv_prog_compiler_rtti_exceptions=no
8395  ac_outfile=conftest.$ac_objext
8396   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8397   lt_compiler_flag="-fno-rtti -fno-exceptions"
8398   # Insert the option either (1) after the last *FLAGS variable, or
8399   # (2) before a word containing "conftest.", or (3) at the end.
8400   # Note that $ac_compile itself does not contain backslashes and begins
8401   # with a dollar sign (not a hyphen), so the echo should work correctly.
8402   # The option is referenced via a variable to avoid confusing sed.
8403   lt_compile=`echo "$ac_compile" | $SED \
8404   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8405   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8406   -e 's:$: $lt_compiler_flag:'`
8407   (eval echo "\"\$as_me:8407: $lt_compile\"" >&5)
8408   (eval "$lt_compile" 2>conftest.err)
8409   ac_status=$?
8410   cat conftest.err >&5
8411   echo "$as_me:8411: \$? = $ac_status" >&5
8412   if (exit $ac_status) && test -s "$ac_outfile"; then
8413     # The compiler can only warn and ignore the option if not recognized
8414     # So say no if there are warnings other than the usual output.
8415     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8416     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8417     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8418       lt_cv_prog_compiler_rtti_exceptions=yes
8419     fi
8420   fi
8421   $rm conftest*
8422
8423fi
8424echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8425echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8426
8427if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8428    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8429else
8430    :
8431fi
8432
8433fi
8434
8435lt_prog_compiler_wl=
8436lt_prog_compiler_pic=
8437lt_prog_compiler_static=
8438
8439echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8440echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8441
8442  if test "$GCC" = yes; then
8443    lt_prog_compiler_wl='-Wl,'
8444    lt_prog_compiler_static='-static'
8445
8446    case $host_os in
8447      aix*)
8448      # All AIX code is PIC.
8449      if test "$host_cpu" = ia64; then
8450        # AIX 5 now supports IA64 processor
8451        lt_prog_compiler_static='-Bstatic'
8452      fi
8453      ;;
8454
8455    amigaos*)
8456      # FIXME: we need at least 68020 code to build shared libraries, but
8457      # adding the `-m68020' flag to GCC prevents building anything better,
8458      # like `-m68040'.
8459      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8460      ;;
8461
8462    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8463      # PIC is the default for these OSes.
8464      ;;
8465
8466    mingw* | pw32* | os2*)
8467      # This hack is so that the source file can tell whether it is being
8468      # built for inclusion in a dll (and should export symbols for example).
8469      lt_prog_compiler_pic='-DDLL_EXPORT'
8470      ;;
8471
8472    darwin* | rhapsody*)
8473      # PIC is the default on this platform
8474      # Common symbols not allowed in MH_DYLIB files
8475      lt_prog_compiler_pic='-fno-common'
8476      ;;
8477
8478    interix3*)
8479      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8480      # Instead, we relocate shared libraries at runtime.
8481      ;;
8482
8483    msdosdjgpp*)
8484      # Just because we use GCC doesn't mean we suddenly get shared libraries
8485      # on systems that don't support them.
8486      lt_prog_compiler_can_build_shared=no
8487      enable_shared=no
8488      ;;
8489
8490    sysv4*MP*)
8491      if test -d /usr/nec; then
8492        lt_prog_compiler_pic=-Kconform_pic
8493      fi
8494      ;;
8495
8496    hpux*)
8497      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8498      # not for PA HP-UX.
8499      case $host_cpu in
8500      hppa*64*|ia64*)
8501        # +Z the default
8502        ;;
8503      *)
8504        lt_prog_compiler_pic='-fPIC'
8505        ;;
8506      esac
8507      ;;
8508
8509    *)
8510      lt_prog_compiler_pic='-fPIC'
8511      ;;
8512    esac
8513  else
8514    # PORTME Check for flag to pass linker flags through the system compiler.
8515    case $host_os in
8516    aix*)
8517      lt_prog_compiler_wl='-Wl,'
8518      if test "$host_cpu" = ia64; then
8519        # AIX 5 now supports IA64 processor
8520        lt_prog_compiler_static='-Bstatic'
8521      else
8522        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8523      fi
8524      ;;
8525      darwin*)
8526        # PIC is the default on this platform
8527        # Common symbols not allowed in MH_DYLIB files
8528       case $cc_basename in
8529         xlc*)
8530         lt_prog_compiler_pic='-qnocommon'
8531         lt_prog_compiler_wl='-Wl,'
8532         ;;
8533       esac
8534       ;;
8535
8536    mingw* | pw32* | os2*)
8537      # This hack is so that the source file can tell whether it is being
8538      # built for inclusion in a dll (and should export symbols for example).
8539      lt_prog_compiler_pic='-DDLL_EXPORT'
8540      ;;
8541
8542    hpux9* | hpux10* | hpux11*)
8543      lt_prog_compiler_wl='-Wl,'
8544      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8545      # not for PA HP-UX.
8546      case $host_cpu in
8547      hppa*64*|ia64*)
8548        # +Z the default
8549        ;;
8550      *)
8551        lt_prog_compiler_pic='+Z'
8552        ;;
8553      esac
8554      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8555      lt_prog_compiler_static='${wl}-a ${wl}archive'
8556      ;;
8557
8558    irix5* | irix6* | nonstopux*)
8559      lt_prog_compiler_wl='-Wl,'
8560      # PIC (with -KPIC) is the default.
8561      lt_prog_compiler_static='-non_shared'
8562      ;;
8563
8564    newsos6)
8565      lt_prog_compiler_pic='-KPIC'
8566      lt_prog_compiler_static='-Bstatic'
8567      ;;
8568
8569    linux*)
8570      case $cc_basename in
8571      icc* | ecc*)
8572        lt_prog_compiler_wl='-Wl,'
8573        lt_prog_compiler_pic='-KPIC'
8574        lt_prog_compiler_static='-static'
8575        ;;
8576      pgcc* | pgf77* | pgf90* | pgf95*)
8577        # Portland Group compilers (*not* the Pentium gcc compiler,
8578        # which looks to be a dead project)
8579        lt_prog_compiler_wl='-Wl,'
8580        lt_prog_compiler_pic='-fpic'
8581        lt_prog_compiler_static='-Bstatic'
8582        ;;
8583      ccc*)
8584        lt_prog_compiler_wl='-Wl,'
8585        # All Alpha code is PIC.
8586        lt_prog_compiler_static='-non_shared'
8587        ;;
8588      esac
8589      ;;
8590
8591    osf3* | osf4* | osf5*)
8592      lt_prog_compiler_wl='-Wl,'
8593      # All OSF/1 code is PIC.
8594      lt_prog_compiler_static='-non_shared'
8595      ;;
8596
8597    solaris*)
8598      lt_prog_compiler_pic='-KPIC'
8599      lt_prog_compiler_static='-Bstatic'
8600      case $cc_basename in
8601      f77* | f90* | f95*)
8602        lt_prog_compiler_wl='-Qoption ld ';;
8603      *)
8604        lt_prog_compiler_wl='-Wl,';;
8605      esac
8606      ;;
8607
8608    sunos4*)
8609      lt_prog_compiler_wl='-Qoption ld '
8610      lt_prog_compiler_pic='-PIC'
8611      lt_prog_compiler_static='-Bstatic'
8612      ;;
8613
8614    sysv4 | sysv4.2uw2* | sysv4.3*)
8615      lt_prog_compiler_wl='-Wl,'
8616      lt_prog_compiler_pic='-KPIC'
8617      lt_prog_compiler_static='-Bstatic'
8618      ;;
8619
8620    sysv4*MP*)
8621      if test -d /usr/nec ;then
8622        lt_prog_compiler_pic='-Kconform_pic'
8623        lt_prog_compiler_static='-Bstatic'
8624      fi
8625      ;;
8626
8627    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8628      lt_prog_compiler_wl='-Wl,'
8629      lt_prog_compiler_pic='-KPIC'
8630      lt_prog_compiler_static='-Bstatic'
8631      ;;
8632
8633    unicos*)
8634      lt_prog_compiler_wl='-Wl,'
8635      lt_prog_compiler_can_build_shared=no
8636      ;;
8637
8638    uts4*)
8639      lt_prog_compiler_pic='-pic'
8640      lt_prog_compiler_static='-Bstatic'
8641      ;;
8642
8643    *)
8644      lt_prog_compiler_can_build_shared=no
8645      ;;
8646    esac
8647  fi
8648
8649echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8650echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8651
8652#
8653# Check to make sure the PIC flag actually works.
8654#
8655if test -n "$lt_prog_compiler_pic"; then
8656
8657echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8658echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8659if test "${lt_prog_compiler_pic_works+set}" = set; then
8660  echo $ECHO_N "(cached) $ECHO_C" >&6
8661else
8662  lt_prog_compiler_pic_works=no
8663  ac_outfile=conftest.$ac_objext
8664   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8665   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8666   # Insert the option either (1) after the last *FLAGS variable, or
8667   # (2) before a word containing "conftest.", or (3) at the end.
8668   # Note that $ac_compile itself does not contain backslashes and begins
8669   # with a dollar sign (not a hyphen), so the echo should work correctly.
8670   # The option is referenced via a variable to avoid confusing sed.
8671   lt_compile=`echo "$ac_compile" | $SED \
8672   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8673   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8674   -e 's:$: $lt_compiler_flag:'`
8675   (eval echo "\"\$as_me:8675: $lt_compile\"" >&5)
8676   (eval "$lt_compile" 2>conftest.err)
8677   ac_status=$?
8678   cat conftest.err >&5
8679   echo "$as_me:8679: \$? = $ac_status" >&5
8680   if (exit $ac_status) && test -s "$ac_outfile"; then
8681     # The compiler can only warn and ignore the option if not recognized
8682     # So say no if there are warnings other than the usual output.
8683     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8684     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8685     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8686       lt_prog_compiler_pic_works=yes
8687     fi
8688   fi
8689   $rm conftest*
8690
8691fi
8692echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8693echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8694
8695if test x"$lt_prog_compiler_pic_works" = xyes; then
8696    case $lt_prog_compiler_pic in
8697     "" | " "*) ;;
8698     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8699     esac
8700else
8701    lt_prog_compiler_pic=
8702     lt_prog_compiler_can_build_shared=no
8703fi
8704
8705fi
8706case $host_os in
8707  # For platforms which do not support PIC, -DPIC is meaningless:
8708  *djgpp*)
8709    lt_prog_compiler_pic=
8710    ;;
8711  *)
8712    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8713    ;;
8714esac
8715
8716#
8717# Check to make sure the static flag actually works.
8718#
8719wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8720echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8721echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8722if test "${lt_prog_compiler_static_works+set}" = set; then
8723  echo $ECHO_N "(cached) $ECHO_C" >&6
8724else
8725  lt_prog_compiler_static_works=no
8726   save_LDFLAGS="$LDFLAGS"
8727   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8728   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8729   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8730     # The linker can only warn and ignore the option if not recognized
8731     # So say no if there are warnings
8732     if test -s conftest.err; then
8733       # Append any errors to the config.log.
8734       cat conftest.err 1>&5
8735       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8736       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8737       if diff conftest.exp conftest.er2 >/dev/null; then
8738         lt_prog_compiler_static_works=yes
8739       fi
8740     else
8741       lt_prog_compiler_static_works=yes
8742     fi
8743   fi
8744   $rm conftest*
8745   LDFLAGS="$save_LDFLAGS"
8746
8747fi
8748echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8749echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8750
8751if test x"$lt_prog_compiler_static_works" = xyes; then
8752    :
8753else
8754    lt_prog_compiler_static=
8755fi
8756
8757
8758echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8759echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8760if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8761  echo $ECHO_N "(cached) $ECHO_C" >&6
8762else
8763  lt_cv_prog_compiler_c_o=no
8764   $rm -r conftest 2>/dev/null
8765   mkdir conftest
8766   cd conftest
8767   mkdir out
8768   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8769
8770   lt_compiler_flag="-o out/conftest2.$ac_objext"
8771   # Insert the option either (1) after the last *FLAGS variable, or
8772   # (2) before a word containing "conftest.", or (3) at the end.
8773   # Note that $ac_compile itself does not contain backslashes and begins
8774   # with a dollar sign (not a hyphen), so the echo should work correctly.
8775   lt_compile=`echo "$ac_compile" | $SED \
8776   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8777   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8778   -e 's:$: $lt_compiler_flag:'`
8779   (eval echo "\"\$as_me:8779: $lt_compile\"" >&5)
8780   (eval "$lt_compile" 2>out/conftest.err)
8781   ac_status=$?
8782   cat out/conftest.err >&5
8783   echo "$as_me:8783: \$? = $ac_status" >&5
8784   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8785   then
8786     # The compiler can only warn and ignore the option if not recognized
8787     # So say no if there are warnings
8788     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8789     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8790     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8791       lt_cv_prog_compiler_c_o=yes
8792     fi
8793   fi
8794   chmod u+w . 2>&5
8795   $rm conftest*
8796   # SGI C++ compiler will create directory out/ii_files/ for
8797   # template instantiation
8798   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8799   $rm out/* && rmdir out
8800   cd ..
8801   rmdir conftest
8802   $rm conftest*
8803
8804fi
8805echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8806echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8807
8808
8809hard_links="nottested"
8810if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8811  # do not overwrite the value of need_locks provided by the user
8812  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8813echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8814  hard_links=yes
8815  $rm conftest*
8816  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8817  touch conftest.a
8818  ln conftest.a conftest.b 2>&5 || hard_links=no
8819  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8820  echo "$as_me:$LINENO: result: $hard_links" >&5
8821echo "${ECHO_T}$hard_links" >&6
8822  if test "$hard_links" = no; then
8823    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8824echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8825    need_locks=warn
8826  fi
8827else
8828  need_locks=no
8829fi
8830
8831echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8832echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8833
8834  runpath_var=
8835  allow_undefined_flag=
8836  enable_shared_with_static_runtimes=no
8837  archive_cmds=
8838  archive_expsym_cmds=
8839  old_archive_From_new_cmds=
8840  old_archive_from_expsyms_cmds=
8841  export_dynamic_flag_spec=
8842  whole_archive_flag_spec=
8843  thread_safe_flag_spec=
8844  hardcode_libdir_flag_spec=
8845  hardcode_libdir_flag_spec_ld=
8846  hardcode_libdir_separator=
8847  hardcode_direct=no
8848  hardcode_minus_L=no
8849  hardcode_shlibpath_var=unsupported
8850  link_all_deplibs=unknown
8851  hardcode_automatic=no
8852  module_cmds=
8853  module_expsym_cmds=
8854  always_export_symbols=no
8855  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8856  # include_expsyms should be a list of space-separated symbols to be *always*
8857  # included in the symbol list
8858  include_expsyms=
8859  # exclude_expsyms can be an extended regexp of symbols to exclude
8860  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8861  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8862  # as well as any symbol that contains `d'.
8863  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8864  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8865  # platforms (ab)use it in PIC code, but their linkers get confused if
8866  # the symbol is explicitly referenced.  Since portable code cannot
8867  # rely on this symbol name, it's probably fine to never include it in
8868  # preloaded symbol tables.
8869  extract_expsyms_cmds=
8870  # Just being paranoid about ensuring that cc_basename is set.
8871  for cc_temp in $compiler""; do
8872  case $cc_temp in
8873    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8874    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8875    \-*) ;;
8876    *) break;;
8877  esac
8878done
8879cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8880
8881  case $host_os in
8882  cygwin* | mingw* | pw32*)
8883    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8884    # When not using gcc, we currently assume that we are using
8885    # Microsoft Visual C++.
8886    if test "$GCC" != yes; then
8887      with_gnu_ld=no
8888    fi
8889    ;;
8890  interix*)
8891    # we just hope/assume this is gcc and not c89 (= MSVC++)
8892    with_gnu_ld=yes
8893    ;;
8894  openbsd*)
8895    with_gnu_ld=no
8896    ;;
8897  esac
8898
8899  ld_shlibs=yes
8900  if test "$with_gnu_ld" = yes; then
8901    # If archive_cmds runs LD, not CC, wlarc should be empty
8902    wlarc='${wl}'
8903
8904    # Set some defaults for GNU ld with shared library support. These
8905    # are reset later if shared libraries are not supported. Putting them
8906    # here allows them to be overridden if necessary.
8907    runpath_var=LD_RUN_PATH
8908    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8909    export_dynamic_flag_spec='${wl}--export-dynamic'
8910    # ancient GNU ld didn't support --whole-archive et. al.
8911    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8912        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8913      else
8914        whole_archive_flag_spec=
8915    fi
8916    supports_anon_versioning=no
8917    case `$LD -v 2>/dev/null` in
8918      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8919      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8920      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8921      *\ 2.11.*) ;; # other 2.11 versions
8922      *) supports_anon_versioning=yes ;;
8923    esac
8924
8925    # See if GNU ld supports shared libraries.
8926    case $host_os in
8927    aix3* | aix4* | aix5*)
8928      # On AIX/PPC, the GNU linker is very broken
8929      if test "$host_cpu" != ia64; then
8930        ld_shlibs=no
8931        cat <<EOF 1>&2
8932
8933*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8934*** to be unable to reliably create shared libraries on AIX.
8935*** Therefore, libtool is disabling shared libraries support.  If you
8936*** really care for shared libraries, you may want to modify your PATH
8937*** so that a non-GNU linker is found, and then restart.
8938
8939EOF
8940      fi
8941      ;;
8942
8943    amigaos*)
8944      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)'
8945      hardcode_libdir_flag_spec='-L$libdir'
8946      hardcode_minus_L=yes
8947
8948      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8949      # that the semantics of dynamic libraries on AmigaOS, at least up
8950      # to version 4, is to share data among multiple programs linked
8951      # with the same dynamic library.  Since this doesn't match the
8952      # behavior of shared libraries on other platforms, we can't use
8953      # them.
8954      ld_shlibs=no
8955      ;;
8956
8957    beos*)
8958      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8959        allow_undefined_flag=unsupported
8960        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8961        # support --undefined.  This deserves some investigation.  FIXME
8962        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963      else
8964        ld_shlibs=no
8965      fi
8966      ;;
8967
8968    cygwin* | mingw* | pw32*)
8969      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8970      # as there is no search path for DLLs.
8971      hardcode_libdir_flag_spec='-L$libdir'
8972      allow_undefined_flag=unsupported
8973      always_export_symbols=no
8974      enable_shared_with_static_runtimes=yes
8975      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8976
8977      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8978        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8979        # If the export-symbols file already is a .def file (1st line
8980        # is EXPORTS), use it as is; otherwise, prepend...
8981        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8982          cp $export_symbols $output_objdir/$soname.def;
8983        else
8984          echo EXPORTS > $output_objdir/$soname.def;
8985          cat $export_symbols >> $output_objdir/$soname.def;
8986        fi~
8987        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8988      else
8989        ld_shlibs=no
8990      fi
8991      ;;
8992
8993    interix3*)
8994      hardcode_direct=no
8995      hardcode_shlibpath_var=no
8996      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8997      export_dynamic_flag_spec='${wl}-E'
8998      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8999      # Instead, shared libraries are loaded at an image base (0x10000000 by
9000      # default) and relocated if they conflict, which is a slow very memory
9001      # consuming and fragmenting process.  To avoid this, we pick a random,
9002      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9003      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9004      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9005      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'
9006      ;;
9007
9008    linux*)
9009      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9010        tmp_addflag=
9011        case $cc_basename,$host_cpu in
9012        pgcc*)                          # Portland Group C compiler
9013          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'
9014          tmp_addflag=' $pic_flag'
9015          ;;
9016        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9017          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'
9018          tmp_addflag=' $pic_flag -Mnomain' ;;
9019        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9020          tmp_addflag=' -i_dynamic' ;;
9021        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9022          tmp_addflag=' -i_dynamic -nofor_main' ;;
9023        ifc* | ifort*)                  # Intel Fortran compiler
9024          tmp_addflag=' -nofor_main' ;;
9025        esac
9026        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027
9028        if test $supports_anon_versioning = yes; then
9029          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9030  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9031  $echo "local: *; };" >> $output_objdir/$libname.ver~
9032          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9033        fi
9034      else
9035        ld_shlibs=no
9036      fi
9037      ;;
9038
9039    netbsd*)
9040      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9041        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9042        wlarc=
9043      else
9044        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9046      fi
9047      ;;
9048
9049    solaris*)
9050      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9051        ld_shlibs=no
9052        cat <<EOF 1>&2
9053
9054*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9055*** create shared libraries on Solaris systems.  Therefore, libtool
9056*** is disabling shared libraries support.  We urge you to upgrade GNU
9057*** binutils to release 2.9.1 or newer.  Another option is to modify
9058*** your PATH or compiler configuration so that the native linker is
9059*** used, and then restart.
9060
9061EOF
9062      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9063        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9064        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9065      else
9066        ld_shlibs=no
9067      fi
9068      ;;
9069
9070    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9071      case `$LD -v 2>&1` in
9072        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9073        ld_shlibs=no
9074        cat <<_LT_EOF 1>&2
9075
9076*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9077*** reliably create shared libraries on SCO systems.  Therefore, libtool
9078*** is disabling shared libraries support.  We urge you to upgrade GNU
9079*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9080*** your PATH or compiler configuration so that the native linker is
9081*** used, and then restart.
9082
9083_LT_EOF
9084        ;;
9085        *)
9086          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9087            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9088            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9089            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9090          else
9091            ld_shlibs=no
9092          fi
9093        ;;
9094      esac
9095      ;;
9096
9097    sunos4*)
9098      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9099      wlarc=
9100      hardcode_direct=yes
9101      hardcode_shlibpath_var=no
9102      ;;
9103
9104    *)
9105      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9106        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108      else
9109        ld_shlibs=no
9110      fi
9111      ;;
9112    esac
9113
9114    if test "$ld_shlibs" = no; then
9115      runpath_var=
9116      hardcode_libdir_flag_spec=
9117      export_dynamic_flag_spec=
9118      whole_archive_flag_spec=
9119    fi
9120  else
9121    # PORTME fill in a description of your system's linker (not GNU ld)
9122    case $host_os in
9123    aix3*)
9124      allow_undefined_flag=unsupported
9125      always_export_symbols=yes
9126      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'
9127      # Note: this linker hardcodes the directories in LIBPATH if there
9128      # are no directories specified by -L.
9129      hardcode_minus_L=yes
9130      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9131        # Neither direct hardcoding nor static linking is supported with a
9132        # broken collect2.
9133        hardcode_direct=unsupported
9134      fi
9135      ;;
9136
9137    aix4* | aix5*)
9138      if test "$host_cpu" = ia64; then
9139        # On IA64, the linker does run time linking by default, so we don't
9140        # have to do anything special.
9141        aix_use_runtimelinking=no
9142        exp_sym_flag='-Bexport'
9143        no_entry_flag=""
9144      else
9145        # If we're using GNU nm, then we don't want the "-C" option.
9146        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9147        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9148          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'
9149        else
9150          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'
9151        fi
9152        aix_use_runtimelinking=no
9153
9154        # Test if we are trying to use run time linking or normal
9155        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9156        # need to do runtime linking.
9157        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9158          for ld_flag in $LDFLAGS; do
9159          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9160            aix_use_runtimelinking=yes
9161            break
9162          fi
9163          done
9164          ;;
9165        esac
9166
9167        exp_sym_flag='-bexport'
9168        no_entry_flag='-bnoentry'
9169      fi
9170
9171      # When large executables or shared objects are built, AIX ld can
9172      # have problems creating the table of contents.  If linking a library
9173      # or program results in "error TOC overflow" add -mminimal-toc to
9174      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9175      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9176
9177      archive_cmds=''
9178      hardcode_direct=yes
9179      hardcode_libdir_separator=':'
9180      link_all_deplibs=yes
9181
9182      if test "$GCC" = yes; then
9183        case $host_os in aix4.[012]|aix4.[012].*)
9184        # We only want to do this on AIX 4.2 and lower, the check
9185        # below for broken collect2 doesn't work under 4.3+
9186          collect2name=`${CC} -print-prog-name=collect2`
9187          if test -f "$collect2name" && \
9188           strings "$collect2name" | grep resolve_lib_name >/dev/null
9189          then
9190          # We have reworked collect2
9191          hardcode_direct=yes
9192          else
9193          # We have old collect2
9194          hardcode_direct=unsupported
9195          # It fails to find uninstalled libraries when the uninstalled
9196          # path is not listed in the libpath.  Setting hardcode_minus_L
9197          # to unsupported forces relinking
9198          hardcode_minus_L=yes
9199          hardcode_libdir_flag_spec='-L$libdir'
9200          hardcode_libdir_separator=
9201          fi
9202          ;;
9203        esac
9204        shared_flag='-shared'
9205        if test "$aix_use_runtimelinking" = yes; then
9206          shared_flag="$shared_flag "'${wl}-G'
9207        fi
9208      else
9209        # not using gcc
9210        if test "$host_cpu" = ia64; then
9211        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9212        # chokes on -Wl,-G. The following line is correct:
9213          shared_flag='-G'
9214        else
9215          if test "$aix_use_runtimelinking" = yes; then
9216            shared_flag='${wl}-G'
9217          else
9218            shared_flag='${wl}-bM:SRE'
9219          fi
9220        fi
9221      fi
9222
9223      # It seems that -bexpall does not export symbols beginning with
9224      # underscore (_), so it is better to generate a list of symbols to export.
9225      always_export_symbols=yes
9226      if test "$aix_use_runtimelinking" = yes; then
9227        # Warning - without using the other runtime loading flags (-brtl),
9228        # -berok will link without error, but may produce a broken library.
9229        allow_undefined_flag='-berok'
9230       # Determine the default libpath from the value encoded in an empty executable.
9231       cat >conftest.$ac_ext <<_ACEOF
9232/* confdefs.h.  */
9233_ACEOF
9234cat confdefs.h >>conftest.$ac_ext
9235cat >>conftest.$ac_ext <<_ACEOF
9236/* end confdefs.h.  */
9237
9238int
9239main ()
9240{
9241
9242  ;
9243  return 0;
9244}
9245_ACEOF
9246rm -f conftest.$ac_objext conftest$ac_exeext
9247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248  (eval $ac_link) 2>conftest.er1
9249  ac_status=$?
9250  grep -v '^ *+' conftest.er1 >conftest.err
9251  rm -f conftest.er1
9252  cat conftest.err >&5
9253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254  (exit $ac_status); } &&
9255         { ac_try='test -z "$ac_c_werror_flag"
9256                         || test ! -s conftest.err'
9257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258  (eval $ac_try) 2>&5
9259  ac_status=$?
9260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261  (exit $ac_status); }; } &&
9262         { ac_try='test -s conftest$ac_exeext'
9263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264  (eval $ac_try) 2>&5
9265  ac_status=$?
9266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); }; }; then
9268
9269aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9270}'`
9271# Check for a 64-bit object if we didn't find anything.
9272if 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; }
9273}'`; fi
9274else
9275  echo "$as_me: failed program was:" >&5
9276sed 's/^/| /' conftest.$ac_ext >&5
9277
9278fi
9279rm -f conftest.err conftest.$ac_objext \
9280      conftest$ac_exeext conftest.$ac_ext
9281if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9282
9283       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9284        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"
9285       else
9286        if test "$host_cpu" = ia64; then
9287          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9288          allow_undefined_flag="-z nodefs"
9289          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"
9290        else
9291         # Determine the default libpath from the value encoded in an empty executable.
9292         cat >conftest.$ac_ext <<_ACEOF
9293/* confdefs.h.  */
9294_ACEOF
9295cat confdefs.h >>conftest.$ac_ext
9296cat >>conftest.$ac_ext <<_ACEOF
9297/* end confdefs.h.  */
9298
9299int
9300main ()
9301{
9302
9303  ;
9304  return 0;
9305}
9306_ACEOF
9307rm -f conftest.$ac_objext conftest$ac_exeext
9308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9309  (eval $ac_link) 2>conftest.er1
9310  ac_status=$?
9311  grep -v '^ *+' conftest.er1 >conftest.err
9312  rm -f conftest.er1
9313  cat conftest.err >&5
9314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315  (exit $ac_status); } &&
9316         { ac_try='test -z "$ac_c_werror_flag"
9317                         || test ! -s conftest.err'
9318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319  (eval $ac_try) 2>&5
9320  ac_status=$?
9321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322  (exit $ac_status); }; } &&
9323         { ac_try='test -s conftest$ac_exeext'
9324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325  (eval $ac_try) 2>&5
9326  ac_status=$?
9327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328  (exit $ac_status); }; }; then
9329
9330aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9331}'`
9332# Check for a 64-bit object if we didn't find anything.
9333if 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; }
9334}'`; fi
9335else
9336  echo "$as_me: failed program was:" >&5
9337sed 's/^/| /' conftest.$ac_ext >&5
9338
9339fi
9340rm -f conftest.err conftest.$ac_objext \
9341      conftest$ac_exeext conftest.$ac_ext
9342if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9343
9344         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9345          # Warning - without using the other run time loading flags,
9346          # -berok will link without error, but may produce a broken library.
9347          no_undefined_flag=' ${wl}-bernotok'
9348          allow_undefined_flag=' ${wl}-berok'
9349          # Exported symbols can be pulled into shared objects from archives
9350          whole_archive_flag_spec='$convenience'
9351          archive_cmds_need_lc=yes
9352          # This is similar to how AIX traditionally builds its shared libraries.
9353          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'
9354        fi
9355      fi
9356      ;;
9357
9358    amigaos*)
9359      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)'
9360      hardcode_libdir_flag_spec='-L$libdir'
9361      hardcode_minus_L=yes
9362      # see comment about different semantics on the GNU ld section
9363      ld_shlibs=no
9364      ;;
9365
9366    bsdi[45]*)
9367      export_dynamic_flag_spec=-rdynamic
9368      ;;
9369
9370    cygwin* | mingw* | pw32*)
9371      # When not using gcc, we currently assume that we are using
9372      # Microsoft Visual C++.
9373      # hardcode_libdir_flag_spec is actually meaningless, as there is
9374      # no search path for DLLs.
9375      hardcode_libdir_flag_spec=' '
9376      allow_undefined_flag=unsupported
9377      # Tell ltmain to make .lib files, not .a files.
9378      libext=lib
9379      # Tell ltmain to make .dll files, not .so files.
9380      shrext_cmds=".dll"
9381      # FIXME: Setting linknames here is a bad hack.
9382      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9383      # The linker will automatically build a .lib file if we build a DLL.
9384      old_archive_From_new_cmds='true'
9385      # FIXME: Should let the user specify the lib program.
9386      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9387      fix_srcfile_path='`cygpath -w "$srcfile"`'
9388      enable_shared_with_static_runtimes=yes
9389      ;;
9390
9391    darwin* | rhapsody*)
9392      case $host_os in
9393        rhapsody* | darwin1.[012])
9394         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9395         ;;
9396       *) # Darwin 1.3 on
9397         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9398           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9399         else
9400           case ${MACOSX_DEPLOYMENT_TARGET} in
9401             10.[012])
9402               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9403               ;;
9404             10.*)
9405               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9406               ;;
9407           esac
9408         fi
9409         ;;
9410      esac
9411      archive_cmds_need_lc=no
9412      hardcode_direct=no
9413      hardcode_automatic=yes
9414      hardcode_shlibpath_var=unsupported
9415      whole_archive_flag_spec=''
9416      link_all_deplibs=yes
9417    if test "$GCC" = yes ; then
9418        output_verbose_link_cmd='echo'
9419        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9420      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9421      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9422      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}'
9423      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}'
9424    else
9425      case $cc_basename in
9426        xlc*)
9427         output_verbose_link_cmd='echo'
9428         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9429         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9430          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9431         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}'
9432          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}'
9433          ;;
9434       *)
9435         ld_shlibs=no
9436          ;;
9437      esac
9438    fi
9439      ;;
9440
9441    dgux*)
9442      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9443      hardcode_libdir_flag_spec='-L$libdir'
9444      hardcode_shlibpath_var=no
9445      ;;
9446
9447    freebsd1*)
9448      ld_shlibs=no
9449      ;;
9450
9451    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9452    # support.  Future versions do this automatically, but an explicit c++rt0.o
9453    # does not break anything, and helps significantly (at the cost of a little
9454    # extra space).
9455    freebsd2.2*)
9456      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9457      hardcode_libdir_flag_spec='-R$libdir'
9458      hardcode_direct=yes
9459      hardcode_shlibpath_var=no
9460      ;;
9461
9462    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9463    freebsd2*)
9464      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9465      hardcode_direct=yes
9466      hardcode_minus_L=yes
9467      hardcode_shlibpath_var=no
9468      ;;
9469
9470    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9471    freebsd* | kfreebsd*-gnu | dragonfly*)
9472      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9473      hardcode_libdir_flag_spec='-R$libdir'
9474      hardcode_direct=yes
9475      hardcode_shlibpath_var=no
9476      ;;
9477
9478    hpux9*)
9479      if test "$GCC" = yes; then
9480        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'
9481      else
9482        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'
9483      fi
9484      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9485      hardcode_libdir_separator=:
9486      hardcode_direct=yes
9487
9488      # hardcode_minus_L: Not really in the search PATH,
9489      # but as the default location of the library.
9490      hardcode_minus_L=yes
9491      export_dynamic_flag_spec='${wl}-E'
9492      ;;
9493
9494    hpux10*)
9495      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9496        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9497      else
9498        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
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        hardcode_direct=yes
9505        export_dynamic_flag_spec='${wl}-E'
9506
9507        # hardcode_minus_L: Not really in the search PATH,
9508        # but as the default location of the library.
9509        hardcode_minus_L=yes
9510      fi
9511      ;;
9512
9513    hpux11*)
9514      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9515        case $host_cpu in
9516        hppa*64*)
9517          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9518          ;;
9519        ia64*)
9520          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9521          ;;
9522        *)
9523          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9524          ;;
9525        esac
9526      else
9527        case $host_cpu in
9528        hppa*64*)
9529          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9530          ;;
9531        ia64*)
9532          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9533          ;;
9534        *)
9535          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9536          ;;
9537        esac
9538      fi
9539      if test "$with_gnu_ld" = no; then
9540        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9541        hardcode_libdir_separator=:
9542
9543        case $host_cpu in
9544        hppa*64*|ia64*)
9545          hardcode_libdir_flag_spec_ld='+b $libdir'
9546          hardcode_direct=no
9547          hardcode_shlibpath_var=no
9548          ;;
9549        *)
9550          hardcode_direct=yes
9551          export_dynamic_flag_spec='${wl}-E'
9552
9553          # hardcode_minus_L: Not really in the search PATH,
9554          # but as the default location of the library.
9555          hardcode_minus_L=yes
9556          ;;
9557        esac
9558      fi
9559      ;;
9560
9561    irix5* | irix6* | nonstopux*)
9562      if test "$GCC" = yes; then
9563        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'
9564      else
9565        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'
9566        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9567      fi
9568      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9569      hardcode_libdir_separator=:
9570      link_all_deplibs=yes
9571      ;;
9572
9573    netbsd*)
9574      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9575        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9576      else
9577        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9578      fi
9579      hardcode_libdir_flag_spec='-R$libdir'
9580      hardcode_direct=yes
9581      hardcode_shlibpath_var=no
9582      ;;
9583
9584    newsos6)
9585      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586      hardcode_direct=yes
9587      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9588      hardcode_libdir_separator=:
9589      hardcode_shlibpath_var=no
9590      ;;
9591
9592    openbsd*)
9593      hardcode_direct=yes
9594      hardcode_shlibpath_var=no
9595      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9596        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9597        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9598        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9599        export_dynamic_flag_spec='${wl}-E'
9600      else
9601       case $host_os in
9602         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9603           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9604           hardcode_libdir_flag_spec='-R$libdir'
9605           ;;
9606         *)
9607           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9608           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9609           ;;
9610       esac
9611      fi
9612      ;;
9613
9614    os2*)
9615      hardcode_libdir_flag_spec='-L$libdir'
9616      hardcode_minus_L=yes
9617      allow_undefined_flag=unsupported
9618      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'
9619      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9620      ;;
9621
9622    osf3*)
9623      if test "$GCC" = yes; then
9624        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9625        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'
9626      else
9627        allow_undefined_flag=' -expect_unresolved \*'
9628        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'
9629      fi
9630      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631      hardcode_libdir_separator=:
9632      ;;
9633
9634    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9635      if test "$GCC" = yes; then
9636        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9637        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'
9638        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9639      else
9640        allow_undefined_flag=' -expect_unresolved \*'
9641        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'
9642        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9643        $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'
9644
9645        # Both c and cxx compiler support -rpath directly
9646        hardcode_libdir_flag_spec='-rpath $libdir'
9647      fi
9648      hardcode_libdir_separator=:
9649      ;;
9650
9651    solaris*)
9652      no_undefined_flag=' -z text'
9653      if test "$GCC" = yes; then
9654        wlarc='${wl}'
9655        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9656        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9657          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9658      else
9659        wlarc=''
9660        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9661        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9662        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9663      fi
9664      hardcode_libdir_flag_spec='-R$libdir'
9665      hardcode_shlibpath_var=no
9666      case $host_os in
9667      solaris2.[0-5] | solaris2.[0-5].*) ;;
9668      *)
9669        # The compiler driver will combine linker options so we
9670        # cannot just pass the convience library names through
9671        # without $wl, iff we do not link with $LD.
9672        # Luckily, gcc supports the same syntax we need for Sun Studio.
9673        # Supported since Solaris 2.6 (maybe 2.5.1?)
9674        case $wlarc in
9675        '')
9676          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9677        *)
9678          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' ;;
9679        esac ;;
9680      esac
9681      link_all_deplibs=yes
9682      ;;
9683
9684    sunos4*)
9685      if test "x$host_vendor" = xsequent; then
9686        # Use $CC to link under sequent, because it throws in some extra .o
9687        # files that make .init and .fini sections work.
9688        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9689      else
9690        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9691      fi
9692      hardcode_libdir_flag_spec='-L$libdir'
9693      hardcode_direct=yes
9694      hardcode_minus_L=yes
9695      hardcode_shlibpath_var=no
9696      ;;
9697
9698    sysv4)
9699      case $host_vendor in
9700        sni)
9701          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702          hardcode_direct=yes # is this really true???
9703        ;;
9704        siemens)
9705          ## LD is ld it makes a PLAMLIB
9706          ## CC just makes a GrossModule.
9707          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9708          reload_cmds='$CC -r -o $output$reload_objs'
9709          hardcode_direct=no
9710        ;;
9711        motorola)
9712          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9713          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9714        ;;
9715      esac
9716      runpath_var='LD_RUN_PATH'
9717      hardcode_shlibpath_var=no
9718      ;;
9719
9720    sysv4.3*)
9721      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722      hardcode_shlibpath_var=no
9723      export_dynamic_flag_spec='-Bexport'
9724      ;;
9725
9726    sysv4*MP*)
9727      if test -d /usr/nec; then
9728        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9729        hardcode_shlibpath_var=no
9730        runpath_var=LD_RUN_PATH
9731        hardcode_runpath_var=yes
9732        ld_shlibs=yes
9733      fi
9734      ;;
9735
9736    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9737      no_undefined_flag='${wl}-z,text'
9738      archive_cmds_need_lc=no
9739      hardcode_shlibpath_var=no
9740      runpath_var='LD_RUN_PATH'
9741
9742      if test "$GCC" = yes; then
9743        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745      else
9746        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748      fi
9749      ;;
9750
9751    sysv5* | sco3.2v5* | sco5v6*)
9752      # Note: We can NOT use -z defs as we might desire, because we do not
9753      # link with -lc, and that would cause any symbols used from libc to
9754      # always be unresolved, which means just about no library would
9755      # ever link correctly.  If we're not using GNU ld we use -z text
9756      # though, which does catch some bad symbols but isn't as heavy-handed
9757      # as -z defs.
9758      no_undefined_flag='${wl}-z,text'
9759      allow_undefined_flag='${wl}-z,nodefs'
9760      archive_cmds_need_lc=no
9761      hardcode_shlibpath_var=no
9762      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9763      hardcode_libdir_separator=':'
9764      link_all_deplibs=yes
9765      export_dynamic_flag_spec='${wl}-Bexport'
9766      runpath_var='LD_RUN_PATH'
9767
9768      if test "$GCC" = yes; then
9769        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9770        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9771      else
9772        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9773        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9774      fi
9775      ;;
9776
9777    uts4*)
9778      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779      hardcode_libdir_flag_spec='-L$libdir'
9780      hardcode_shlibpath_var=no
9781      ;;
9782
9783    *)
9784      ld_shlibs=no
9785      ;;
9786    esac
9787  fi
9788
9789echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9790echo "${ECHO_T}$ld_shlibs" >&6
9791test "$ld_shlibs" = no && can_build_shared=no
9792
9793#
9794# Do we need to explicitly link libc?
9795#
9796case "x$archive_cmds_need_lc" in
9797x|xyes)
9798  # Assume -lc should be added
9799  archive_cmds_need_lc=yes
9800
9801  if test "$enable_shared" = yes && test "$GCC" = yes; then
9802    case $archive_cmds in
9803    *'~'*)
9804      # FIXME: we may have to deal with multi-command sequences.
9805      ;;
9806    '$CC '*)
9807      # Test whether the compiler implicitly links with -lc since on some
9808      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9809      # to ld, don't add -lc before -lgcc.
9810      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9811echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9812      $rm conftest*
9813      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9814
9815      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816  (eval $ac_compile) 2>&5
9817  ac_status=$?
9818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819  (exit $ac_status); } 2>conftest.err; then
9820        soname=conftest
9821        lib=conftest
9822        libobjs=conftest.$ac_objext
9823        deplibs=
9824        wl=$lt_prog_compiler_wl
9825        pic_flag=$lt_prog_compiler_pic
9826        compiler_flags=-v
9827        linker_flags=-v
9828        verstring=
9829        output_objdir=.
9830        libname=conftest
9831        lt_save_allow_undefined_flag=$allow_undefined_flag
9832        allow_undefined_flag=
9833        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9834  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9835  ac_status=$?
9836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837  (exit $ac_status); }
9838        then
9839          archive_cmds_need_lc=no
9840        else
9841          archive_cmds_need_lc=yes
9842        fi
9843        allow_undefined_flag=$lt_save_allow_undefined_flag
9844      else
9845        cat conftest.err 1>&5
9846      fi
9847      $rm conftest*
9848      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9849echo "${ECHO_T}$archive_cmds_need_lc" >&6
9850      ;;
9851    esac
9852  fi
9853  ;;
9854esac
9855
9856echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9857echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9858library_names_spec=
9859libname_spec='lib$name'
9860soname_spec=
9861shrext_cmds=".so"
9862postinstall_cmds=
9863postuninstall_cmds=
9864finish_cmds=
9865finish_eval=
9866shlibpath_var=
9867shlibpath_overrides_runpath=unknown
9868version_type=none
9869dynamic_linker="$host_os ld.so"
9870sys_lib_dlsearch_path_spec="/lib /usr/lib"
9871if test "$GCC" = yes; then
9872  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9873  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9874    # if the path contains ";" then we assume it to be the separator
9875    # otherwise default to the standard path separator (i.e. ":") - it is
9876    # assumed that no part of a normal pathname contains ";" but that should
9877    # okay in the real world where ";" in dirpaths is itself problematic.
9878    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9879  else
9880    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9881  fi
9882else
9883  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9884fi
9885need_lib_prefix=unknown
9886hardcode_into_libs=no
9887
9888# when you set need_version to no, make sure it does not cause -set_version
9889# flags to be left without arguments
9890need_version=unknown
9891
9892case $host_os in
9893aix3*)
9894  version_type=linux
9895  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9896  shlibpath_var=LIBPATH
9897
9898  # AIX 3 has no versioning support, so we append a major version to the name.
9899  soname_spec='${libname}${release}${shared_ext}$major'
9900  ;;
9901
9902aix4* | aix5*)
9903  version_type=linux
9904  need_lib_prefix=no
9905  need_version=no
9906  hardcode_into_libs=yes
9907  if test "$host_cpu" = ia64; then
9908    # AIX 5 supports IA64
9909    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9910    shlibpath_var=LD_LIBRARY_PATH
9911  else
9912    # With GCC up to 2.95.x, collect2 would create an import file
9913    # for dependence libraries.  The import file would start with
9914    # the line `#! .'.  This would cause the generated library to
9915    # depend on `.', always an invalid library.  This was fixed in
9916    # development snapshots of GCC prior to 3.0.
9917    case $host_os in
9918      aix4 | aix4.[01] | aix4.[01].*)
9919      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9920           echo ' yes '
9921           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9922        :
9923      else
9924        can_build_shared=no
9925      fi
9926      ;;
9927    esac
9928    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9929    # soname into executable. Probably we can add versioning support to
9930    # collect2, so additional links can be useful in future.
9931    if test "$aix_use_runtimelinking" = yes; then
9932      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9933      # instead of lib<name>.a to let people know that these are not
9934      # typical AIX shared libraries.
9935      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936    else
9937      # We preserve .a as extension for shared libraries through AIX4.2
9938      # and later when we are not doing run time linking.
9939      library_names_spec='${libname}${release}.a $libname.a'
9940      soname_spec='${libname}${release}${shared_ext}$major'
9941    fi
9942    shlibpath_var=LIBPATH
9943  fi
9944  ;;
9945
9946amigaos*)
9947  library_names_spec='$libname.ixlibrary $libname.a'
9948  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9949  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'
9950  ;;
9951
9952beos*)
9953  library_names_spec='${libname}${shared_ext}'
9954  dynamic_linker="$host_os ld.so"
9955  shlibpath_var=LIBRARY_PATH
9956  ;;
9957
9958bsdi[45]*)
9959  version_type=linux
9960  need_version=no
9961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962  soname_spec='${libname}${release}${shared_ext}$major'
9963  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9964  shlibpath_var=LD_LIBRARY_PATH
9965  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9966  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9967  # the default ld.so.conf also contains /usr/contrib/lib and
9968  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9969  # libtool to hard-code these into programs
9970  ;;
9971
9972cygwin* | mingw* | pw32*)
9973  version_type=windows
9974  shrext_cmds=".dll"
9975  need_version=no
9976  need_lib_prefix=no
9977
9978  case $GCC,$host_os in
9979  yes,cygwin* | yes,mingw* | yes,pw32*)
9980    library_names_spec='$libname.dll.a'
9981    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9982    postinstall_cmds='base_file=`basename \${file}`~
9983      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9984      dldir=$destdir/`dirname \$dlpath`~
9985      test -d \$dldir || mkdir -p \$dldir~
9986      $install_prog $dir/$dlname \$dldir/$dlname~
9987      chmod a+x \$dldir/$dlname'
9988    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9989      dlpath=$dir/\$dldll~
9990       $rm \$dlpath'
9991    shlibpath_overrides_runpath=yes
9992
9993    case $host_os in
9994    cygwin*)
9995      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9996      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9997      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9998      ;;
9999    mingw*)
10000      # MinGW DLLs use traditional 'lib' prefix
10001      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10002      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10003      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10004        # It is most probably a Windows format PATH printed by
10005        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10006        # path with ; separators, and with drive letters. We can handle the
10007        # drive letters (cygwin fileutils understands them), so leave them,
10008        # especially as we might pass files found there to a mingw objdump,
10009        # which wouldn't understand a cygwinified path. Ahh.
10010        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10011      else
10012        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10013      fi
10014      ;;
10015    pw32*)
10016      # pw32 DLLs use 'pw' prefix rather than 'lib'
10017      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10018      ;;
10019    esac
10020    ;;
10021
10022  *)
10023    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10024    ;;
10025  esac
10026  dynamic_linker='Win32 ld.exe'
10027  # FIXME: first we should search . and the directory the executable is in
10028  shlibpath_var=PATH
10029  ;;
10030
10031darwin* | rhapsody*)
10032  dynamic_linker="$host_os dyld"
10033  version_type=darwin
10034  need_lib_prefix=no
10035  need_version=no
10036  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10037  soname_spec='${libname}${release}${major}$shared_ext'
10038  shlibpath_overrides_runpath=yes
10039  shlibpath_var=DYLD_LIBRARY_PATH
10040  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10041  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10042  if test "$GCC" = yes; then
10043    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"`
10044  else
10045    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10046  fi
10047  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10048  ;;
10049
10050dgux*)
10051  version_type=linux
10052  need_lib_prefix=no
10053  need_version=no
10054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10055  soname_spec='${libname}${release}${shared_ext}$major'
10056  shlibpath_var=LD_LIBRARY_PATH
10057  ;;
10058
10059freebsd1*)
10060  dynamic_linker=no
10061  ;;
10062
10063kfreebsd*-gnu)
10064  version_type=linux
10065  need_lib_prefix=no
10066  need_version=no
10067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10068  soname_spec='${libname}${release}${shared_ext}$major'
10069  shlibpath_var=LD_LIBRARY_PATH
10070  shlibpath_overrides_runpath=no
10071  hardcode_into_libs=yes
10072  dynamic_linker='GNU ld.so'
10073  ;;
10074
10075freebsd* | dragonfly*)
10076  # DragonFly does not have aout.  When/if they implement a new
10077  # versioning mechanism, adjust this.
10078  if test -x /usr/bin/objformat; then
10079    objformat=`/usr/bin/objformat`
10080  else
10081    case $host_os in
10082    freebsd[123]*) objformat=aout ;;
10083    *) objformat=elf ;;
10084    esac
10085  fi
10086  version_type=freebsd-$objformat
10087  case $version_type in
10088    freebsd-elf*)
10089      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10090      need_version=no
10091      need_lib_prefix=no
10092      ;;
10093    freebsd-*)
10094      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10095      need_version=yes
10096      ;;
10097  esac
10098  shlibpath_var=LD_LIBRARY_PATH
10099  case $host_os in
10100  freebsd2*)
10101    shlibpath_overrides_runpath=yes
10102    ;;
10103  freebsd3.[01]* | freebsdelf3.[01]*)
10104    shlibpath_overrides_runpath=yes
10105    hardcode_into_libs=yes
10106    ;;
10107  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10108  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10109    shlibpath_overrides_runpath=no
10110    hardcode_into_libs=yes
10111    ;;
10112  freebsd*) # from 4.6 on
10113    shlibpath_overrides_runpath=yes
10114    hardcode_into_libs=yes
10115    ;;
10116  esac
10117  ;;
10118
10119gnu*)
10120  version_type=linux
10121  need_lib_prefix=no
10122  need_version=no
10123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10124  soname_spec='${libname}${release}${shared_ext}$major'
10125  shlibpath_var=LD_LIBRARY_PATH
10126  hardcode_into_libs=yes
10127  ;;
10128
10129hpux9* | hpux10* | hpux11*)
10130  # Give a soname corresponding to the major version so that dld.sl refuses to
10131  # link against other versions.
10132  version_type=sunos
10133  need_lib_prefix=no
10134  need_version=no
10135  case $host_cpu in
10136  ia64*)
10137    shrext_cmds='.so'
10138    hardcode_into_libs=yes
10139    dynamic_linker="$host_os dld.so"
10140    shlibpath_var=LD_LIBRARY_PATH
10141    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10142    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143    soname_spec='${libname}${release}${shared_ext}$major'
10144    if test "X$HPUX_IA64_MODE" = X32; then
10145      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10146    else
10147      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10148    fi
10149    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10150    ;;
10151   hppa*64*)
10152     shrext_cmds='.sl'
10153     hardcode_into_libs=yes
10154     dynamic_linker="$host_os dld.sl"
10155     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10156     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158     soname_spec='${libname}${release}${shared_ext}$major'
10159     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10160     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10161     ;;
10162   *)
10163    shrext_cmds='.sl'
10164    dynamic_linker="$host_os dld.sl"
10165    shlibpath_var=SHLIB_PATH
10166    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10167    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168    soname_spec='${libname}${release}${shared_ext}$major'
10169    ;;
10170  esac
10171  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10172  postinstall_cmds='chmod 555 $lib'
10173  ;;
10174
10175interix3*)
10176  version_type=linux
10177  need_lib_prefix=no
10178  need_version=no
10179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10180  soname_spec='${libname}${release}${shared_ext}$major'
10181  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10182  shlibpath_var=LD_LIBRARY_PATH
10183  shlibpath_overrides_runpath=no
10184  hardcode_into_libs=yes
10185  ;;
10186
10187irix5* | irix6* | nonstopux*)
10188  case $host_os in
10189    nonstopux*) version_type=nonstopux ;;
10190    *)
10191        if test "$lt_cv_prog_gnu_ld" = yes; then
10192                version_type=linux
10193        else
10194                version_type=irix
10195        fi ;;
10196  esac
10197  need_lib_prefix=no
10198  need_version=no
10199  soname_spec='${libname}${release}${shared_ext}$major'
10200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10201  case $host_os in
10202  irix5* | nonstopux*)
10203    libsuff= shlibsuff=
10204    ;;
10205  *)
10206    case $LD in # libtool.m4 will add one of these switches to LD
10207    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10208      libsuff= shlibsuff= libmagic=32-bit;;
10209    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10210      libsuff=32 shlibsuff=N32 libmagic=N32;;
10211    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10212      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10213    *) libsuff= shlibsuff= libmagic=never-match;;
10214    esac
10215    ;;
10216  esac
10217  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10218  shlibpath_overrides_runpath=no
10219  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10220  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10221  hardcode_into_libs=yes
10222  ;;
10223
10224# No shared lib support for Linux oldld, aout, or coff.
10225linux*oldld* | linux*aout* | linux*coff*)
10226  dynamic_linker=no
10227  ;;
10228
10229# This must be Linux ELF.
10230linux*)
10231  version_type=linux
10232  need_lib_prefix=no
10233  need_version=no
10234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235  soname_spec='${libname}${release}${shared_ext}$major'
10236  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10237  shlibpath_var=LD_LIBRARY_PATH
10238  shlibpath_overrides_runpath=no
10239  # This implies no fast_install, which is unacceptable.
10240  # Some rework will be needed to allow for fast_install
10241  # before this can be enabled.
10242  hardcode_into_libs=yes
10243
10244  # Append ld.so.conf contents to the search path
10245  if test -f /etc/ld.so.conf; then
10246    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' ' '`
10247    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10248  fi
10249
10250  # We used to test for /lib/ld.so.1 and disable shared libraries on
10251  # powerpc, because MkLinux only supported shared libraries with the
10252  # GNU dynamic linker.  Since this was broken with cross compilers,
10253  # most powerpc-linux boxes support dynamic linking these days and
10254  # people can always --disable-shared, the test was removed, and we
10255  # assume the GNU/Linux dynamic linker is in use.
10256  dynamic_linker='GNU/Linux ld.so'
10257  ;;
10258
10259knetbsd*-gnu)
10260  version_type=linux
10261  need_lib_prefix=no
10262  need_version=no
10263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10264  soname_spec='${libname}${release}${shared_ext}$major'
10265  shlibpath_var=LD_LIBRARY_PATH
10266  shlibpath_overrides_runpath=no
10267  hardcode_into_libs=yes
10268  dynamic_linker='GNU ld.so'
10269  ;;
10270
10271netbsd*)
10272  version_type=sunos
10273  need_lib_prefix=no
10274  need_version=no
10275  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10276    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10277    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10278    dynamic_linker='NetBSD (a.out) ld.so'
10279  else
10280    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10281    soname_spec='${libname}${release}${shared_ext}$major'
10282    dynamic_linker='NetBSD ld.elf_so'
10283  fi
10284  shlibpath_var=LD_LIBRARY_PATH
10285  shlibpath_overrides_runpath=yes
10286  hardcode_into_libs=yes
10287  ;;
10288
10289newsos6)
10290  version_type=linux
10291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292  shlibpath_var=LD_LIBRARY_PATH
10293  shlibpath_overrides_runpath=yes
10294  ;;
10295
10296nto-qnx*)
10297  version_type=linux
10298  need_lib_prefix=no
10299  need_version=no
10300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301  soname_spec='${libname}${release}${shared_ext}$major'
10302  shlibpath_var=LD_LIBRARY_PATH
10303  shlibpath_overrides_runpath=yes
10304  ;;
10305
10306openbsd*)
10307  version_type=sunos
10308  sys_lib_dlsearch_path_spec="/usr/lib"
10309  need_lib_prefix=no
10310  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10311  case $host_os in
10312    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10313    *)                         need_version=no  ;;
10314  esac
10315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10316  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10317  shlibpath_var=LD_LIBRARY_PATH
10318  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10319    case $host_os in
10320      openbsd2.[89] | openbsd2.[89].*)
10321        shlibpath_overrides_runpath=no
10322        ;;
10323      *)
10324        shlibpath_overrides_runpath=yes
10325        ;;
10326      esac
10327  else
10328    shlibpath_overrides_runpath=yes
10329  fi
10330  ;;
10331
10332os2*)
10333  libname_spec='$name'
10334  shrext_cmds=".dll"
10335  need_lib_prefix=no
10336  library_names_spec='$libname${shared_ext} $libname.a'
10337  dynamic_linker='OS/2 ld.exe'
10338  shlibpath_var=LIBPATH
10339  ;;
10340
10341osf3* | osf4* | osf5*)
10342  version_type=osf
10343  need_lib_prefix=no
10344  need_version=no
10345  soname_spec='${libname}${release}${shared_ext}$major'
10346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347  shlibpath_var=LD_LIBRARY_PATH
10348  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10349  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10350  ;;
10351
10352solaris*)
10353  version_type=linux
10354  need_lib_prefix=no
10355  need_version=no
10356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357  soname_spec='${libname}${release}${shared_ext}$major'
10358  shlibpath_var=LD_LIBRARY_PATH
10359  shlibpath_overrides_runpath=yes
10360  hardcode_into_libs=yes
10361  # ldd complains unless libraries are executable
10362  postinstall_cmds='chmod +x $lib'
10363  ;;
10364
10365sunos4*)
10366  version_type=sunos
10367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10368  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10369  shlibpath_var=LD_LIBRARY_PATH
10370  shlibpath_overrides_runpath=yes
10371  if test "$with_gnu_ld" = yes; then
10372    need_lib_prefix=no
10373  fi
10374  need_version=yes
10375  ;;
10376
10377sysv4 | sysv4.3*)
10378  version_type=linux
10379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380  soname_spec='${libname}${release}${shared_ext}$major'
10381  shlibpath_var=LD_LIBRARY_PATH
10382  case $host_vendor in
10383    sni)
10384      shlibpath_overrides_runpath=no
10385      need_lib_prefix=no
10386      export_dynamic_flag_spec='${wl}-Blargedynsym'
10387      runpath_var=LD_RUN_PATH
10388      ;;
10389    siemens)
10390      need_lib_prefix=no
10391      ;;
10392    motorola)
10393      need_lib_prefix=no
10394      need_version=no
10395      shlibpath_overrides_runpath=no
10396      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10397      ;;
10398  esac
10399  ;;
10400
10401sysv4*MP*)
10402  if test -d /usr/nec ;then
10403    version_type=linux
10404    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10405    soname_spec='$libname${shared_ext}.$major'
10406    shlibpath_var=LD_LIBRARY_PATH
10407  fi
10408  ;;
10409
10410sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10411  version_type=freebsd-elf
10412  need_lib_prefix=no
10413  need_version=no
10414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10415  soname_spec='${libname}${release}${shared_ext}$major'
10416  shlibpath_var=LD_LIBRARY_PATH
10417  hardcode_into_libs=yes
10418  if test "$with_gnu_ld" = yes; then
10419    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10420    shlibpath_overrides_runpath=no
10421  else
10422    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10423    shlibpath_overrides_runpath=yes
10424    case $host_os in
10425      sco3.2v5*)
10426        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10427        ;;
10428    esac
10429  fi
10430  sys_lib_dlsearch_path_spec='/usr/lib'
10431  ;;
10432
10433uts4*)
10434  version_type=linux
10435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436  soname_spec='${libname}${release}${shared_ext}$major'
10437  shlibpath_var=LD_LIBRARY_PATH
10438  ;;
10439
10440*)
10441  dynamic_linker=no
10442  ;;
10443esac
10444echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10445echo "${ECHO_T}$dynamic_linker" >&6
10446test "$dynamic_linker" = no && can_build_shared=no
10447
10448variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10449if test "$GCC" = yes; then
10450  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10451fi
10452
10453echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10454echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10455hardcode_action=
10456if test -n "$hardcode_libdir_flag_spec" || \
10457   test -n "$runpath_var" || \
10458   test "X$hardcode_automatic" = "Xyes" ; then
10459
10460  # We can hardcode non-existant directories.
10461  if test "$hardcode_direct" != no &&
10462     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10463     # have to relink, otherwise we might link with an installed library
10464     # when we should be linking with a yet-to-be-installed one
10465     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10466     test "$hardcode_minus_L" != no; then
10467    # Linking always hardcodes the temporary library directory.
10468    hardcode_action=relink
10469  else
10470    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10471    hardcode_action=immediate
10472  fi
10473else
10474  # We cannot hardcode anything, or else we can only hardcode existing
10475  # directories.
10476  hardcode_action=unsupported
10477fi
10478echo "$as_me:$LINENO: result: $hardcode_action" >&5
10479echo "${ECHO_T}$hardcode_action" >&6
10480
10481if test "$hardcode_action" = relink; then
10482  # Fast installation is not supported
10483  enable_fast_install=no
10484elif test "$shlibpath_overrides_runpath" = yes ||
10485     test "$enable_shared" = no; then
10486  # Fast installation is not necessary
10487  enable_fast_install=needless
10488fi
10489
10490striplib=
10491old_striplib=
10492echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10493echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10494if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10495  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10496  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10497  echo "$as_me:$LINENO: result: yes" >&5
10498echo "${ECHO_T}yes" >&6
10499else
10500# FIXME - insert some real tests, host_os isn't really good enough
10501  case $host_os in
10502   darwin*)
10503       if test -n "$STRIP" ; then
10504         striplib="$STRIP -x"
10505         echo "$as_me:$LINENO: result: yes" >&5
10506echo "${ECHO_T}yes" >&6
10507       else
10508  echo "$as_me:$LINENO: result: no" >&5
10509echo "${ECHO_T}no" >&6
10510fi
10511       ;;
10512   *)
10513  echo "$as_me:$LINENO: result: no" >&5
10514echo "${ECHO_T}no" >&6
10515    ;;
10516  esac
10517fi
10518
10519if test "x$enable_dlopen" != xyes; then
10520  enable_dlopen=unknown
10521  enable_dlopen_self=unknown
10522  enable_dlopen_self_static=unknown
10523else
10524  lt_cv_dlopen=no
10525  lt_cv_dlopen_libs=
10526
10527  case $host_os in
10528  beos*)
10529    lt_cv_dlopen="load_add_on"
10530    lt_cv_dlopen_libs=
10531    lt_cv_dlopen_self=yes
10532    ;;
10533
10534  mingw* | pw32*)
10535    lt_cv_dlopen="LoadLibrary"
10536    lt_cv_dlopen_libs=
10537   ;;
10538
10539  cygwin*)
10540    lt_cv_dlopen="dlopen"
10541    lt_cv_dlopen_libs=
10542   ;;
10543
10544  darwin*)
10545  # if libdl is installed we need to link against it
10546    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10547echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10548if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10549  echo $ECHO_N "(cached) $ECHO_C" >&6
10550else
10551  ac_check_lib_save_LIBS=$LIBS
10552LIBS="-ldl  $LIBS"
10553cat >conftest.$ac_ext <<_ACEOF
10554/* confdefs.h.  */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
10558/* end confdefs.h.  */
10559
10560/* Override any gcc2 internal prototype to avoid an error.  */
10561#ifdef __cplusplus
10562extern "C"
10563#endif
10564/* We use char because int might match the return type of a gcc2
10565   builtin and then its argument prototype would still apply.  */
10566char dlopen ();
10567int
10568main ()
10569{
10570dlopen ();
10571  ;
10572  return 0;
10573}
10574_ACEOF
10575rm -f conftest.$ac_objext conftest$ac_exeext
10576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10577  (eval $ac_link) 2>conftest.er1
10578  ac_status=$?
10579  grep -v '^ *+' conftest.er1 >conftest.err
10580  rm -f conftest.er1
10581  cat conftest.err >&5
10582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583  (exit $ac_status); } &&
10584         { ac_try='test -z "$ac_c_werror_flag"
10585                         || test ! -s conftest.err'
10586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587  (eval $ac_try) 2>&5
10588  ac_status=$?
10589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590  (exit $ac_status); }; } &&
10591         { ac_try='test -s conftest$ac_exeext'
10592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593  (eval $ac_try) 2>&5
10594  ac_status=$?
10595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596  (exit $ac_status); }; }; then
10597  ac_cv_lib_dl_dlopen=yes
10598else
10599  echo "$as_me: failed program was:" >&5
10600sed 's/^/| /' conftest.$ac_ext >&5
10601
10602ac_cv_lib_dl_dlopen=no
10603fi
10604rm -f conftest.err conftest.$ac_objext \
10605      conftest$ac_exeext conftest.$ac_ext
10606LIBS=$ac_check_lib_save_LIBS
10607fi
10608echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10609echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10610if test $ac_cv_lib_dl_dlopen = yes; then
10611  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10612else
10613
10614    lt_cv_dlopen="dyld"
10615    lt_cv_dlopen_libs=
10616    lt_cv_dlopen_self=yes
10617
10618fi
10619
10620   ;;
10621
10622  *)
10623    echo "$as_me:$LINENO: checking for shl_load" >&5
10624echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10625if test "${ac_cv_func_shl_load+set}" = set; then
10626  echo $ECHO_N "(cached) $ECHO_C" >&6
10627else
10628  cat >conftest.$ac_ext <<_ACEOF
10629/* confdefs.h.  */
10630_ACEOF
10631cat confdefs.h >>conftest.$ac_ext
10632cat >>conftest.$ac_ext <<_ACEOF
10633/* end confdefs.h.  */
10634/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10635   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10636#define shl_load innocuous_shl_load
10637
10638/* System header to define __stub macros and hopefully few prototypes,
10639    which can conflict with char shl_load (); below.
10640    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10641    <limits.h> exists even on freestanding compilers.  */
10642
10643#ifdef __STDC__
10644# include <limits.h>
10645#else
10646# include <assert.h>
10647#endif
10648
10649#undef shl_load
10650
10651/* Override any gcc2 internal prototype to avoid an error.  */
10652#ifdef __cplusplus
10653extern "C"
10654{
10655#endif
10656/* We use char because int might match the return type of a gcc2
10657   builtin and then its argument prototype would still apply.  */
10658char shl_load ();
10659/* The GNU C library defines this for functions which it implements
10660    to always fail with ENOSYS.  Some functions are actually named
10661    something starting with __ and the normal name is an alias.  */
10662#if defined (__stub_shl_load) || defined (__stub___shl_load)
10663choke me
10664#else
10665char (*f) () = shl_load;
10666#endif
10667#ifdef __cplusplus
10668}
10669#endif
10670
10671int
10672main ()
10673{
10674return f != shl_load;
10675  ;
10676  return 0;
10677}
10678_ACEOF
10679rm -f conftest.$ac_objext conftest$ac_exeext
10680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10681  (eval $ac_link) 2>conftest.er1
10682  ac_status=$?
10683  grep -v '^ *+' conftest.er1 >conftest.err
10684  rm -f conftest.er1
10685  cat conftest.err >&5
10686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687  (exit $ac_status); } &&
10688         { ac_try='test -z "$ac_c_werror_flag"
10689                         || test ! -s conftest.err'
10690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691  (eval $ac_try) 2>&5
10692  ac_status=$?
10693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694  (exit $ac_status); }; } &&
10695         { ac_try='test -s conftest$ac_exeext'
10696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697  (eval $ac_try) 2>&5
10698  ac_status=$?
10699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700  (exit $ac_status); }; }; then
10701  ac_cv_func_shl_load=yes
10702else
10703  echo "$as_me: failed program was:" >&5
10704sed 's/^/| /' conftest.$ac_ext >&5
10705
10706ac_cv_func_shl_load=no
10707fi
10708rm -f conftest.err conftest.$ac_objext \
10709      conftest$ac_exeext conftest.$ac_ext
10710fi
10711echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10712echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10713if test $ac_cv_func_shl_load = yes; then
10714  lt_cv_dlopen="shl_load"
10715else
10716  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10717echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10718if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10719  echo $ECHO_N "(cached) $ECHO_C" >&6
10720else
10721  ac_check_lib_save_LIBS=$LIBS
10722LIBS="-ldld  $LIBS"
10723cat >conftest.$ac_ext <<_ACEOF
10724/* confdefs.h.  */
10725_ACEOF
10726cat confdefs.h >>conftest.$ac_ext
10727cat >>conftest.$ac_ext <<_ACEOF
10728/* end confdefs.h.  */
10729
10730/* Override any gcc2 internal prototype to avoid an error.  */
10731#ifdef __cplusplus
10732extern "C"
10733#endif
10734/* We use char because int might match the return type of a gcc2
10735   builtin and then its argument prototype would still apply.  */
10736char shl_load ();
10737int
10738main ()
10739{
10740shl_load ();
10741  ;
10742  return 0;
10743}