source: trunk/configure @ 2089

Last change on this file since 2089 was 2089, checked in by tkr, 5 years ago

Re-running autotools

  • Property svn:executable set to *
File size: 773.0 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Clp trunk.
5#
6# Report bugs to <coin-clp@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
433PACKAGE_VERSION='trunk'
434PACKAGE_STRING='Clp trunk'
435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
481ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
482ac_subdirs_all="$ac_subdirs_all Data/Sample"
483ac_subdirs_all="$ac_subdirs_all Data/Netlib"
484ac_subdirs_all="$ac_subdirs_all CoinUtils"
485ac_subdirs_all="$ac_subdirs_all Osi"
486ac_subdirs_all="$ac_subdirs_all Clp"
487ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
488ac_subst_files=''
489
490# Initialize some variables set by options.
491ac_init_help=
492ac_init_version=false
493# The variables have the same names as the options, with
494# dashes changed to underlines.
495cache_file=/dev/null
496exec_prefix=NONE
497no_create=
498no_recursion=
499prefix=NONE
500program_prefix=NONE
501program_suffix=NONE
502program_transform_name=s,x,x,
503silent=
504site=
505srcdir=
506verbose=
507x_includes=NONE
508x_libraries=NONE
509
510# Installation directory options.
511# These are left unexpanded so users can "make install exec_prefix=/foo"
512# and all the variables that are supposed to be based on exec_prefix
513# by default will actually change.
514# Use braces instead of parens because sh, perl, etc. also accept them.
515bindir='${exec_prefix}/bin'
516sbindir='${exec_prefix}/sbin'
517libexecdir='${exec_prefix}/libexec'
518datadir='${prefix}/share'
519sysconfdir='${prefix}/etc'
520sharedstatedir='${prefix}/com'
521localstatedir='${prefix}/var'
522libdir='${exec_prefix}/lib'
523includedir='${prefix}/include'
524oldincludedir='/usr/include'
525infodir='${prefix}/info'
526mandir='${prefix}/man'
527
528ac_prev=
529for ac_option
530do
531  # If the previous option needs an argument, assign it.
532  if test -n "$ac_prev"; then
533    eval "$ac_prev=\$ac_option"
534    ac_prev=
535    continue
536  fi
537
538  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
539
540  # Accept the important Cygnus configure options, so we can diagnose typos.
541
542  case $ac_option in
543
544  -bindir | --bindir | --bindi | --bind | --bin | --bi)
545    ac_prev=bindir ;;
546  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
547    bindir=$ac_optarg ;;
548
549  -build | --build | --buil | --bui | --bu)
550    ac_prev=build_alias ;;
551  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
552    build_alias=$ac_optarg ;;
553
554  -cache-file | --cache-file | --cache-fil | --cache-fi \
555  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
556    ac_prev=cache_file ;;
557  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
558  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
559    cache_file=$ac_optarg ;;
560
561  --config-cache | -C)
562    cache_file=config.cache ;;
563
564  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
565    ac_prev=datadir ;;
566  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
567  | --da=*)
568    datadir=$ac_optarg ;;
569
570  -disable-* | --disable-*)
571    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
572    # Reject names that are not valid shell variable names.
573    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575   { (exit 1); exit 1; }; }
576    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577    eval "enable_$ac_feature=no" ;;
578
579  -enable-* | --enable-*)
580    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
581    # Reject names that are not valid shell variable names.
582    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
583      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
584   { (exit 1); exit 1; }; }
585    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
586    case $ac_option in
587      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
588      *) ac_optarg=yes ;;
589    esac
590    eval "enable_$ac_feature='$ac_optarg'" ;;
591
592  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
593  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
594  | --exec | --exe | --ex)
595    ac_prev=exec_prefix ;;
596  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
597  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
598  | --exec=* | --exe=* | --ex=*)
599    exec_prefix=$ac_optarg ;;
600
601  -gas | --gas | --ga | --g)
602    # Obsolete; use --with-gas.
603    with_gas=yes ;;
604
605  -help | --help | --hel | --he | -h)
606    ac_init_help=long ;;
607  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
608    ac_init_help=recursive ;;
609  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
610    ac_init_help=short ;;
611
612  -host | --host | --hos | --ho)
613    ac_prev=host_alias ;;
614  -host=* | --host=* | --hos=* | --ho=*)
615    host_alias=$ac_optarg ;;
616
617  -includedir | --includedir | --includedi | --included | --include \
618  | --includ | --inclu | --incl | --inc)
619    ac_prev=includedir ;;
620  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
621  | --includ=* | --inclu=* | --incl=* | --inc=*)
622    includedir=$ac_optarg ;;
623
624  -infodir | --infodir | --infodi | --infod | --info | --inf)
625    ac_prev=infodir ;;
626  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
627    infodir=$ac_optarg ;;
628
629  -libdir | --libdir | --libdi | --libd)
630    ac_prev=libdir ;;
631  -libdir=* | --libdir=* | --libdi=* | --libd=*)
632    libdir=$ac_optarg ;;
633
634  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
635  | --libexe | --libex | --libe)
636    ac_prev=libexecdir ;;
637  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
638  | --libexe=* | --libex=* | --libe=*)
639    libexecdir=$ac_optarg ;;
640
641  -localstatedir | --localstatedir | --localstatedi | --localstated \
642  | --localstate | --localstat | --localsta | --localst \
643  | --locals | --local | --loca | --loc | --lo)
644    ac_prev=localstatedir ;;
645  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
646  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
647  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
648    localstatedir=$ac_optarg ;;
649
650  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
651    ac_prev=mandir ;;
652  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
653    mandir=$ac_optarg ;;
654
655  -nfp | --nfp | --nf)
656    # Obsolete; use --without-fp.
657    with_fp=no ;;
658
659  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
660  | --no-cr | --no-c | -n)
661    no_create=yes ;;
662
663  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
664  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
665    no_recursion=yes ;;
666
667  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
668  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
669  | --oldin | --oldi | --old | --ol | --o)
670    ac_prev=oldincludedir ;;
671  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
672  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
673  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
674    oldincludedir=$ac_optarg ;;
675
676  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
677    ac_prev=prefix ;;
678  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
679    prefix=$ac_optarg ;;
680
681  -program-prefix | --program-prefix | --program-prefi | --program-pref \
682  | --program-pre | --program-pr | --program-p)
683    ac_prev=program_prefix ;;
684  -program-prefix=* | --program-prefix=* | --program-prefi=* \
685  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
686    program_prefix=$ac_optarg ;;
687
688  -program-suffix | --program-suffix | --program-suffi | --program-suff \
689  | --program-suf | --program-su | --program-s)
690    ac_prev=program_suffix ;;
691  -program-suffix=* | --program-suffix=* | --program-suffi=* \
692  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
693    program_suffix=$ac_optarg ;;
694
695  -program-transform-name | --program-transform-name \
696  | --program-transform-nam | --program-transform-na \
697  | --program-transform-n | --program-transform- \
698  | --program-transform | --program-transfor \
699  | --program-transfo | --program-transf \
700  | --program-trans | --program-tran \
701  | --progr-tra | --program-tr | --program-t)
702    ac_prev=program_transform_name ;;
703  -program-transform-name=* | --program-transform-name=* \
704  | --program-transform-nam=* | --program-transform-na=* \
705  | --program-transform-n=* | --program-transform-=* \
706  | --program-transform=* | --program-transfor=* \
707  | --program-transfo=* | --program-transf=* \
708  | --program-trans=* | --program-tran=* \
709  | --progr-tra=* | --program-tr=* | --program-t=*)
710    program_transform_name=$ac_optarg ;;
711
712  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
713  | -silent | --silent | --silen | --sile | --sil)
714    silent=yes ;;
715
716  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
717    ac_prev=sbindir ;;
718  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
719  | --sbi=* | --sb=*)
720    sbindir=$ac_optarg ;;
721
722  -sharedstatedir | --sharedstatedir | --sharedstatedi \
723  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
724  | --sharedst | --shareds | --shared | --share | --shar \
725  | --sha | --sh)
726    ac_prev=sharedstatedir ;;
727  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
728  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
729  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
730  | --sha=* | --sh=*)
731    sharedstatedir=$ac_optarg ;;
732
733  -site | --site | --sit)
734    ac_prev=site ;;
735  -site=* | --site=* | --sit=*)
736    site=$ac_optarg ;;
737
738  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
739    ac_prev=srcdir ;;
740  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
741    srcdir=$ac_optarg ;;
742
743  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
744  | --syscon | --sysco | --sysc | --sys | --sy)
745    ac_prev=sysconfdir ;;
746  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
747  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
748    sysconfdir=$ac_optarg ;;
749
750  -target | --target | --targe | --targ | --tar | --ta | --t)
751    ac_prev=target_alias ;;
752  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
753    target_alias=$ac_optarg ;;
754
755  -v | -verbose | --verbose | --verbos | --verbo | --verb)
756    verbose=yes ;;
757
758  -version | --version | --versio | --versi | --vers | -V)
759    ac_init_version=: ;;
760
761  -with-* | --with-*)
762    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
763    # Reject names that are not valid shell variable names.
764    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
765      { echo "$as_me: error: invalid package name: $ac_package" >&2
766   { (exit 1); exit 1; }; }
767    ac_package=`echo $ac_package| sed 's/-/_/g'`
768    case $ac_option in
769      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
770      *) ac_optarg=yes ;;
771    esac
772    eval "with_$ac_package='$ac_optarg'" ;;
773
774  -without-* | --without-*)
775    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
776    # Reject names that are not valid shell variable names.
777    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
778      { echo "$as_me: error: invalid package name: $ac_package" >&2
779   { (exit 1); exit 1; }; }
780    ac_package=`echo $ac_package | sed 's/-/_/g'`
781    eval "with_$ac_package=no" ;;
782
783  --x)
784    # Obsolete; use --with-x.
785    with_x=yes ;;
786
787  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
788  | --x-incl | --x-inc | --x-in | --x-i)
789    ac_prev=x_includes ;;
790  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
791  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
792    x_includes=$ac_optarg ;;
793
794  -x-libraries | --x-libraries | --x-librarie | --x-librari \
795  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
796    ac_prev=x_libraries ;;
797  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
798  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
799    x_libraries=$ac_optarg ;;
800
801  -*) { echo "$as_me: error: unrecognized option: $ac_option
802Try \`$0 --help' for more information." >&2
803   { (exit 1); exit 1; }; }
804    ;;
805
806  *=*)
807    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
808    # Reject names that are not valid shell variable names.
809    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
810      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
811   { (exit 1); exit 1; }; }
812    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
813    eval "$ac_envvar='$ac_optarg'"
814    export $ac_envvar ;;
815
816  *)
817    # FIXME: should be removed in autoconf 3.0.
818    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
819    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
821    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
822    ;;
823
824  esac
825done
826
827if test -n "$ac_prev"; then
828  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
829  { echo "$as_me: error: missing argument to $ac_option" >&2
830   { (exit 1); exit 1; }; }
831fi
832
833# Be sure to have absolute paths.
834for ac_var in exec_prefix prefix
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# Be sure to have absolute paths.
845for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
846              localstatedir libdir includedir oldincludedir infodir mandir
847do
848  eval ac_val=$`echo $ac_var`
849  case $ac_val in
850    [\\/$]* | ?:[\\/]* ) ;;
851    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
852   { (exit 1); exit 1; }; };;
853  esac
854done
855
856# There might be people who depend on the old broken behavior: `$host'
857# used to hold the argument of --host etc.
858# FIXME: To remove some day.
859build=$build_alias
860host=$host_alias
861target=$target_alias
862
863# FIXME: To remove some day.
864if test "x$host_alias" != x; then
865  if test "x$build_alias" = x; then
866    cross_compiling=maybe
867    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
868    If a cross compiler is detected then cross compile mode will be used." >&2
869  elif test "x$build_alias" != "x$host_alias"; then
870    cross_compiling=yes
871  fi
872fi
873
874ac_tool_prefix=
875test -n "$host_alias" && ac_tool_prefix=$host_alias-
876
877test "$silent" = yes && exec 6>/dev/null
878
879
880# Find the source files, if location was not specified.
881if test -z "$srcdir"; then
882  ac_srcdir_defaulted=yes
883  # Try the directory containing this script, then its parent.
884  ac_confdir=`(dirname "$0") 2>/dev/null ||
885$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
886         X"$0" : 'X\(//\)[^/]' \| \
887         X"$0" : 'X\(//\)$' \| \
888         X"$0" : 'X\(/\)' \| \
889         .     : '\(.\)' 2>/dev/null ||
890echo X"$0" |
891    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
892          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
893          /^X\(\/\/\)$/{ s//\1/; q; }
894          /^X\(\/\).*/{ s//\1/; q; }
895          s/.*/./; q'`
896  srcdir=$ac_confdir
897  if test ! -r $srcdir/$ac_unique_file; then
898    srcdir=..
899  fi
900else
901  ac_srcdir_defaulted=no
902fi
903if test ! -r $srcdir/$ac_unique_file; then
904  if test "$ac_srcdir_defaulted" = yes; then
905    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
906   { (exit 1); exit 1; }; }
907  else
908    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
909   { (exit 1); exit 1; }; }
910  fi
911fi
912(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
913  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
914   { (exit 1); exit 1; }; }
915srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
916ac_env_build_alias_set=${build_alias+set}
917ac_env_build_alias_value=$build_alias
918ac_cv_env_build_alias_set=${build_alias+set}
919ac_cv_env_build_alias_value=$build_alias
920ac_env_host_alias_set=${host_alias+set}
921ac_env_host_alias_value=$host_alias
922ac_cv_env_host_alias_set=${host_alias+set}
923ac_cv_env_host_alias_value=$host_alias
924ac_env_target_alias_set=${target_alias+set}
925ac_env_target_alias_value=$target_alias
926ac_cv_env_target_alias_set=${target_alias+set}
927ac_cv_env_target_alias_value=$target_alias
928ac_env_CDEFS_set=${CDEFS+set}
929ac_env_CDEFS_value=$CDEFS
930ac_cv_env_CDEFS_set=${CDEFS+set}
931ac_cv_env_CDEFS_value=$CDEFS
932ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
933ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
934ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
935ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
936ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
937ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
938ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
939ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
940ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
941ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
942ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
943ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
944ac_env_CC_set=${CC+set}
945ac_env_CC_value=$CC
946ac_cv_env_CC_set=${CC+set}
947ac_cv_env_CC_value=$CC
948ac_env_CFLAGS_set=${CFLAGS+set}
949ac_env_CFLAGS_value=$CFLAGS
950ac_cv_env_CFLAGS_set=${CFLAGS+set}
951ac_cv_env_CFLAGS_value=$CFLAGS
952ac_env_LDFLAGS_set=${LDFLAGS+set}
953ac_env_LDFLAGS_value=$LDFLAGS
954ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
955ac_cv_env_LDFLAGS_value=$LDFLAGS
956ac_env_CPPFLAGS_set=${CPPFLAGS+set}
957ac_env_CPPFLAGS_value=$CPPFLAGS
958ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
959ac_cv_env_CPPFLAGS_value=$CPPFLAGS
960ac_env_MPICC_set=${MPICC+set}
961ac_env_MPICC_value=$MPICC
962ac_cv_env_MPICC_set=${MPICC+set}
963ac_cv_env_MPICC_value=$MPICC
964ac_env_CXXDEFS_set=${CXXDEFS+set}
965ac_env_CXXDEFS_value=$CXXDEFS
966ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
967ac_cv_env_CXXDEFS_value=$CXXDEFS
968ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
969ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
970ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
971ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
972ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
973ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
974ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
975ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
976ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
977ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
978ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
979ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_MPICXX_set=${MPICXX+set}
989ac_env_MPICXX_value=$MPICXX
990ac_cv_env_MPICXX_set=${MPICXX+set}
991ac_cv_env_MPICXX_value=$MPICXX
992ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
993ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
994ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
995ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
996ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
997ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
998ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
999ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1000ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1001ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1002ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1003ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1004ac_env_F77_set=${F77+set}
1005ac_env_F77_value=$F77
1006ac_cv_env_F77_set=${F77+set}
1007ac_cv_env_F77_value=$F77
1008ac_env_FFLAGS_set=${FFLAGS+set}
1009ac_env_FFLAGS_value=$FFLAGS
1010ac_cv_env_FFLAGS_set=${FFLAGS+set}
1011ac_cv_env_FFLAGS_value=$FFLAGS
1012ac_env_MPIF77_set=${MPIF77+set}
1013ac_env_MPIF77_value=$MPIF77
1014ac_cv_env_MPIF77_set=${MPIF77+set}
1015ac_cv_env_MPIF77_value=$MPIF77
1016ac_env_CPP_set=${CPP+set}
1017ac_env_CPP_value=$CPP
1018ac_cv_env_CPP_set=${CPP+set}
1019ac_cv_env_CPP_value=$CPP
1020ac_env_CXXCPP_set=${CXXCPP+set}
1021ac_env_CXXCPP_value=$CXXCPP
1022ac_cv_env_CXXCPP_set=${CXXCPP+set}
1023ac_cv_env_CXXCPP_value=$CXXCPP
1024ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1025ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1026ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1027ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1028
1029#
1030# Report the --help message.
1031#
1032if test "$ac_init_help" = "long"; then
1033  # Omit some internal or obsolete options to make the list less imposing.
1034  # This message is too long to be a string in the A/UX 3.1 sh.
1035  cat <<_ACEOF
1036\`configure' configures Clp trunk to adapt to many kinds of systems.
1037
1038Usage: $0 [OPTION]... [VAR=VALUE]...
1039
1040To assign environment variables (e.g., CC, CFLAGS...), specify them as
1041VAR=VALUE.  See below for descriptions of some of the useful variables.
1042
1043Defaults for the options are specified in brackets.
1044
1045Configuration:
1046  -h, --help              display this help and exit
1047      --help=short        display options specific to this package
1048      --help=recursive    display the short help of all the included packages
1049  -V, --version           display version information and exit
1050  -q, --quiet, --silent   do not print \`checking...' messages
1051      --cache-file=FILE   cache test results in FILE [disabled]
1052  -C, --config-cache      alias for \`--cache-file=config.cache'
1053  -n, --no-create         do not create output files
1054      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1055
1056_ACEOF
1057
1058  cat <<_ACEOF
1059Installation directories:
1060  --prefix=PREFIX         install architecture-independent files in PREFIX
1061                          [$ac_default_prefix]
1062  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1063                          [PREFIX]
1064
1065By default, \`make install' will install all the files in
1066\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1067an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1068for instance \`--prefix=\$HOME'.
1069
1070For better control, use the options below.
1071
1072Fine tuning of the installation directories:
1073  --bindir=DIR           user executables [EPREFIX/bin]
1074  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1075  --libexecdir=DIR       program executables [EPREFIX/libexec]
1076  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1077  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1078  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1079  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1080  --libdir=DIR           object code libraries [EPREFIX/lib]
1081  --includedir=DIR       C header files [PREFIX/include]
1082  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1083  --infodir=DIR          info documentation [PREFIX/info]
1084  --mandir=DIR           man documentation [PREFIX/man]
1085_ACEOF
1086
1087  cat <<\_ACEOF
1088
1089Program names:
1090  --program-prefix=PREFIX            prepend PREFIX to installed program names
1091  --program-suffix=SUFFIX            append SUFFIX to installed program names
1092  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1093
1094System types:
1095  --build=BUILD     configure for building on BUILD [guessed]
1096  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1097_ACEOF
1098fi
1099
1100if test -n "$ac_init_help"; then
1101  case $ac_init_help in
1102     short | recursive ) echo "Configuration of Clp trunk:";;
1103   esac
1104  cat <<\_ACEOF
1105
1106Optional Features:
1107  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1108  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1109  --enable-debug          compile all projects with debug options tests
1110                          (implies --disable-shared)
1111
1112  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1113  --enable-static[=PKGS]
1114                          build static libraries [default=no]
1115  --disable-dependency-tracking  speeds up one-time build
1116  --enable-dependency-tracking   do not reject slow dependency extractors
1117  --enable-maintainer-mode  enable make rules and dependencies not useful
1118                          (and sometimes confusing) to the casual installer
1119  --enable-shared[=PKGS]
1120                          build shared libraries [default=yes]
1121  --enable-fast-install[=PKGS]
1122                          optimize for fast installation [default=yes]
1123  --disable-libtool-lock  avoid locking (might break parallel builds)
1124
1125Optional Packages:
1126  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1127  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1128  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1129  --with-pic              try to use only PIC/non-PIC objects [default=use
1130                          both]
1131  --with-tags[=TAGS]
1132                          include additional configurations [automatic]
1133
1134  --with-asl-lib linker flags for using project ASL
1135  --with-asl-incdir directory with header files for using project ASL
1136  --with-asl-datadir directory with data files for using project ASL
1137  --with-blas-lib linker flags for using project Blas
1138  --with-blas-incdir directory with header files for using project Blas
1139  --with-blas-datadir directory with data files for using project Blas
1140  --with-blas             specify BLAS library (or BUILD to enforce use of
1141                          ThirdParty/Blas)
1142  --with-lapack-lib linker flags for using project Lapack
1143  --with-lapack-incdir directory with header files for using project Lapack
1144  --with-lapack-datadir directory with data files for using project Lapack
1145  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1146                          ThirdParty/Lapack)
1147  --with-metis-lib linker flags for using project Metis
1148  --with-metis-incdir directory with header files for using project Metis
1149  --with-metis-datadir directory with data files for using project Metis
1150  --with-mumps-lib linker flags for using project Mumps
1151  --with-mumps-incdir directory with header files for using project Mumps
1152  --with-mumps-datadir directory with data files for using project Mumps
1153  --with-glpk-lib linker flags for using project Glpk
1154  --with-glpk-incdir directory with header files for using project Glpk
1155  --with-glpk-datadir directory with data files for using project Glpk
1156  --with-sample-lib linker flags for using project Sample
1157  --with-sample-incdir directory with header files for using project Sample
1158  --with-sample-datadir directory with data files for using project Sample
1159  --with-netlib-lib linker flags for using project Netlib
1160  --with-netlib-incdir directory with header files for using project Netlib
1161  --with-netlib-datadir directory with data files for using project Netlib
1162  --with-coinutils-lib linker flags for using project CoinUtils
1163  --with-coinutils-incdir directory with header files for using project
1164                          CoinUtils
1165  --with-coinutils-datadir
1166                          directory with data files for using project
1167                          CoinUtils
1168  --with-osi-lib linker flags for using project Osi
1169  --with-osi-incdir directory with header files for using project Osi
1170  --with-osi-datadir directory with data files for using project Osi
1171  --with-clp-lib linker flags for using project Clp
1172  --with-clp-incdir directory with header files for using project Clp
1173  --with-clp-datadir directory with data files for using project Clp
1174  --with-dot              use dot (from graphviz) when creating documentation
1175                          with doxygen if available; --without-dot to disable
1176
1177Some influential environment variables:
1178  CDEFS       Additional -D flags to be used when compiling C code.
1179  ADD_CFLAGS  Additional C compiler options
1180  DBG_CFLAGS  Debug C compiler options
1181  OPT_CFLAGS  Optimize C compiler options
1182  CC          C compiler command
1183  CFLAGS      C compiler flags
1184  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1185              nonstandard directory <lib dir>
1186  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1187              headers in a nonstandard directory <include dir>
1188  MPICC       C MPI Compiler
1189  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1190  ADD_CXXFLAGS
1191              Additional C++ compiler options
1192  DBG_CXXFLAGS
1193              Debug C++ compiler options
1194  OPT_CXXFLAGS
1195              Optimize C++ compiler options
1196  CXX         C++ compiler command
1197  CXXFLAGS    C++ compiler flags
1198  MPICXX      C++ MPI Compiler
1199  ADD_FFLAGS  Additional Fortran compiler options
1200  DBG_FFLAGS  Debug Fortran compiler options
1201  OPT_FFLAGS  Optimize Fortran compiler options
1202  F77         Fortran 77 compiler command
1203  FFLAGS      Fortran 77 compiler flags
1204  MPIF77      Fortran MPI Compiler
1205  CPP         C preprocessor
1206  CXXCPP      C++ preprocessor
1207  COIN_SKIP_PROJECTS
1208              Set to the subdirectories of projects that should be skipped in
1209              the configuration
1210
1211Use these variables to override the choices made by `configure' or to help
1212it to find libraries and programs with nonstandard names/locations.
1213
1214Report bugs to <coin-clp@lists.coin-or.org>.
1215_ACEOF
1216fi
1217
1218if test "$ac_init_help" = "recursive"; then
1219  # If there are subdirs, report their specific --help.
1220  ac_popdir=`pwd`
1221  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1222    test -d $ac_dir || continue
1223    ac_builddir=.
1224
1225if test "$ac_dir" != .; then
1226  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1227  # A "../" for each directory in $ac_dir_suffix.
1228  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1229else
1230  ac_dir_suffix= ac_top_builddir=
1231fi
1232
1233case $srcdir in
1234  .)  # No --srcdir option.  We are building in place.
1235    ac_srcdir=.
1236    if test -z "$ac_top_builddir"; then
1237       ac_top_srcdir=.
1238    else
1239       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1240    fi ;;
1241  [\\/]* | ?:[\\/]* )  # Absolute path.
1242    ac_srcdir=$srcdir$ac_dir_suffix;
1243    ac_top_srcdir=$srcdir ;;
1244  *) # Relative path.
1245    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1246    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1247esac
1248
1249# Do not use `cd foo && pwd` to compute absolute paths, because
1250# the directories may not exist.
1251case `pwd` in
1252.) ac_abs_builddir="$ac_dir";;
1253*)
1254  case "$ac_dir" in
1255  .) ac_abs_builddir=`pwd`;;
1256  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1257  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1258  esac;;
1259esac
1260case $ac_abs_builddir in
1261.) ac_abs_top_builddir=${ac_top_builddir}.;;
1262*)
1263  case ${ac_top_builddir}. in
1264  .) ac_abs_top_builddir=$ac_abs_builddir;;
1265  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1266  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1267  esac;;
1268esac
1269case $ac_abs_builddir in
1270.) ac_abs_srcdir=$ac_srcdir;;
1271*)
1272  case $ac_srcdir in
1273  .) ac_abs_srcdir=$ac_abs_builddir;;
1274  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1275  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1276  esac;;
1277esac
1278case $ac_abs_builddir in
1279.) ac_abs_top_srcdir=$ac_top_srcdir;;
1280*)
1281  case $ac_top_srcdir in
1282  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1283  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1284  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1285  esac;;
1286esac
1287
1288    cd $ac_dir
1289    # Check for guested configure; otherwise get Cygnus style configure.
1290    if test -f $ac_srcdir/configure.gnu; then
1291      echo
1292      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1293    elif test -f $ac_srcdir/configure; then
1294      echo
1295      $SHELL $ac_srcdir/configure  --help=recursive
1296    elif test -f $ac_srcdir/configure.ac ||
1297           test -f $ac_srcdir/configure.in; then
1298      echo
1299      $ac_configure --help
1300    else
1301      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1302    fi
1303    cd $ac_popdir
1304  done
1305fi
1306
1307test -n "$ac_init_help" && exit 0
1308if $ac_init_version; then
1309  cat <<\_ACEOF
1310Clp configure trunk
1311generated by GNU Autoconf 2.59
1312
1313Copyright (C) 2003 Free Software Foundation, Inc.
1314This configure script is free software; the Free Software Foundation
1315gives unlimited permission to copy, distribute and modify it.
1316
1317
1318Copyright 2006 International Business Machines and others.
1319All Rights Reserved.
1320This file is part of the open source package Coin which is distributed
1321under the Eclipse Public License.
1322_ACEOF
1323  exit 0
1324fi
1325exec 5>config.log
1326cat >&5 <<_ACEOF
1327This file contains any messages produced by compilers while
1328running configure, to aid debugging if configure makes a mistake.
1329
1330It was created by Clp $as_me trunk, which was
1331generated by GNU Autoconf 2.59.  Invocation command line was
1332
1333  $ $0 $@
1334
1335_ACEOF
1336{
1337cat <<_ASUNAME
1338## --------- ##
1339## Platform. ##
1340## --------- ##
1341
1342hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1343uname -m = `(uname -m) 2>/dev/null || echo unknown`
1344uname -r = `(uname -r) 2>/dev/null || echo unknown`
1345uname -s = `(uname -s) 2>/dev/null || echo unknown`
1346uname -v = `(uname -v) 2>/dev/null || echo unknown`
1347
1348/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1349/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1350
1351/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1352/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1353/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1354hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1355/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1356/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1357/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1358
1359_ASUNAME
1360
1361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362for as_dir in $PATH
1363do
1364  IFS=$as_save_IFS
1365  test -z "$as_dir" && as_dir=.
1366  echo "PATH: $as_dir"
1367done
1368
1369} >&5
1370
1371cat >&5 <<_ACEOF
1372
1373
1374## ----------- ##
1375## Core tests. ##
1376## ----------- ##
1377
1378_ACEOF
1379
1380
1381# Keep a trace of the command line.
1382# Strip out --no-create and --no-recursion so they do not pile up.
1383# Strip out --silent because we don't want to record it for future runs.
1384# Also quote any args containing shell meta-characters.
1385# Make two passes to allow for proper duplicate-argument suppression.
1386ac_configure_args=
1387ac_configure_args0=
1388ac_configure_args1=
1389ac_sep=
1390ac_must_keep_next=false
1391for ac_pass in 1 2
1392do
1393  for ac_arg
1394  do
1395    case $ac_arg in
1396    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1397    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1398    | -silent | --silent | --silen | --sile | --sil)
1399      continue ;;
1400    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1401      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1402    esac
1403    case $ac_pass in
1404    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1405    2)
1406      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1407      if test $ac_must_keep_next = true; then
1408        ac_must_keep_next=false # Got value, back to normal.
1409      else
1410        case $ac_arg in
1411          *=* | --config-cache | -C | -disable-* | --disable-* \
1412          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1413          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1414          | -with-* | --with-* | -without-* | --without-* | --x)
1415            case "$ac_configure_args0 " in
1416              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1417            esac
1418            ;;
1419          -* ) ac_must_keep_next=true ;;
1420        esac
1421      fi
1422      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1423      # Get rid of the leading space.
1424      ac_sep=" "
1425      ;;
1426    esac
1427  done
1428done
1429$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1430$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1431
1432# When interrupted or exit'd, cleanup temporary files, and complete
1433# config.log.  We remove comments because anyway the quotes in there
1434# would cause problems or look ugly.
1435# WARNING: Be sure not to use single quotes in there, as some shells,
1436# such as our DU 5.0 friend, will then `close' the trap.
1437trap 'exit_status=$?
1438  # Save into config.log some information that might help in debugging.
1439  {
1440    echo
1441
1442    cat <<\_ASBOX
1443## ---------------- ##
1444## Cache variables. ##
1445## ---------------- ##
1446_ASBOX
1447    echo
1448    # The following way of writing the cache mishandles newlines in values,
1449{
1450  (set) 2>&1 |
1451    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1452    *ac_space=\ *)
1453      sed -n \
1454        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1455          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1456      ;;
1457    *)
1458      sed -n \
1459        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1460      ;;
1461    esac;
1462}
1463    echo
1464
1465    cat <<\_ASBOX
1466## ----------------- ##
1467## Output variables. ##
1468## ----------------- ##
1469_ASBOX
1470    echo
1471    for ac_var in $ac_subst_vars
1472    do
1473      eval ac_val=$`echo $ac_var`
1474      echo "$ac_var='"'"'$ac_val'"'"'"
1475    done | sort
1476    echo
1477
1478    if test -n "$ac_subst_files"; then
1479      cat <<\_ASBOX
1480## ------------- ##
1481## Output files. ##
1482## ------------- ##
1483_ASBOX
1484      echo
1485      for ac_var in $ac_subst_files
1486      do
1487        eval ac_val=$`echo $ac_var`
1488        echo "$ac_var='"'"'$ac_val'"'"'"
1489      done | sort
1490      echo
1491    fi
1492
1493    if test -s confdefs.h; then
1494      cat <<\_ASBOX
1495## ----------- ##
1496## confdefs.h. ##
1497## ----------- ##
1498_ASBOX
1499      echo
1500      sed "/^$/d" confdefs.h | sort
1501      echo
1502    fi
1503    test "$ac_signal" != 0 &&
1504      echo "$as_me: caught signal $ac_signal"
1505    echo "$as_me: exit $exit_status"
1506  } >&5
1507  rm -f core *.core &&
1508  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1509    exit $exit_status
1510     ' 0
1511for ac_signal in 1 2 13 15; do
1512  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1513done
1514ac_signal=0
1515
1516# confdefs.h avoids OS command line length limits that DEFS can exceed.
1517rm -rf conftest* confdefs.h
1518# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1519echo >confdefs.h
1520
1521# Predefined preprocessor variables.
1522
1523cat >>confdefs.h <<_ACEOF
1524#define PACKAGE_NAME "$PACKAGE_NAME"
1525_ACEOF
1526
1527
1528cat >>confdefs.h <<_ACEOF
1529#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1530_ACEOF
1531
1532
1533cat >>confdefs.h <<_ACEOF
1534#define PACKAGE_VERSION "$PACKAGE_VERSION"
1535_ACEOF
1536
1537
1538cat >>confdefs.h <<_ACEOF
1539#define PACKAGE_STRING "$PACKAGE_STRING"
1540_ACEOF
1541
1542
1543cat >>confdefs.h <<_ACEOF
1544#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1545_ACEOF
1546
1547
1548# Let the site file select an alternate cache file if it wants to.
1549# Prefer explicitly selected file to automatically selected ones.
1550if test -z "$CONFIG_SITE"; then
1551  if test "x$prefix" != xNONE; then
1552    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1553  else
1554    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1555  fi
1556fi
1557for ac_site_file in $CONFIG_SITE; do
1558  if test -r "$ac_site_file"; then
1559    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1560echo "$as_me: loading site script $ac_site_file" >&6;}
1561    sed 's/^/| /' "$ac_site_file" >&5
1562    . "$ac_site_file"
1563  fi
1564done
1565
1566if test -r "$cache_file"; then
1567  # Some versions of bash will fail to source /dev/null (special
1568  # files actually), so we avoid doing that.
1569  if test -f "$cache_file"; then
1570    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1571echo "$as_me: loading cache $cache_file" >&6;}
1572    case $cache_file in
1573      [\\/]* | ?:[\\/]* ) . $cache_file;;
1574      *)                      . ./$cache_file;;
1575    esac
1576  fi
1577else
1578  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1579echo "$as_me: creating cache $cache_file" >&6;}
1580  >$cache_file
1581fi
1582
1583# Check that the precious variables saved in the cache have kept the same
1584# value.
1585ac_cache_corrupted=false
1586for ac_var in `(set) 2>&1 |
1587               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1588  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1589  eval ac_new_set=\$ac_env_${ac_var}_set
1590  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1591  eval ac_new_val="\$ac_env_${ac_var}_value"
1592  case $ac_old_set,$ac_new_set in
1593    set,)
1594      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1595echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1596      ac_cache_corrupted=: ;;
1597    ,set)
1598      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1599echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1600      ac_cache_corrupted=: ;;
1601    ,);;
1602    *)
1603      if test "x$ac_old_val" != "x$ac_new_val"; then
1604        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1605echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1606        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1607echo "$as_me:   former value:  $ac_old_val" >&2;}
1608        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1609echo "$as_me:   current value: $ac_new_val" >&2;}
1610        ac_cache_corrupted=:
1611      fi;;
1612  esac
1613  # Pass precious variables to config.status.
1614  if test "$ac_new_set" = set; then
1615    case $ac_new_val in
1616    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1617      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1618    *) ac_arg=$ac_var=$ac_new_val ;;
1619    esac
1620    case " $ac_configure_args " in
1621      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1622      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1623    esac
1624  fi
1625done
1626if $ac_cache_corrupted; then
1627  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1628echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1629  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1630echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1631   { (exit 1); exit 1; }; }
1632fi
1633
1634ac_ext=c
1635ac_cpp='$CPP $CPPFLAGS'
1636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1638ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1668
1669
1670
1671# List one file in the package so that the configure script can test
1672# whether the package is actually there
1673
1674
1675# Where should everything be installed by default?  Here, we want it
1676# to be installed directly in 'bin', 'lib', 'include' subdirectories
1677# of the directory where configure is run.  The default would be
1678# /usr/local.
1679
1680
1681#############################################################################
1682#              Create the libtool script for the subdirectories             #
1683#############################################################################
1684
1685ac_aux_dir=
1686for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1687  if 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/install.sh; then
1692    ac_aux_dir=$ac_dir
1693    ac_install_sh="$ac_aux_dir/install.sh -c"
1694    break
1695  elif test -f $ac_dir/shtool; then
1696    ac_aux_dir=$ac_dir
1697    ac_install_sh="$ac_aux_dir/shtool install -c"
1698    break
1699  fi
1700done
1701if test -z "$ac_aux_dir"; then
1702  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1703echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1704   { (exit 1); exit 1; }; }
1705fi
1706ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1707ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1708ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1709
1710# Make sure we can run config.sub.
1711$ac_config_sub sun4 >/dev/null 2>&1 ||
1712  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1713echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1714   { (exit 1); exit 1; }; }
1715
1716echo "$as_me:$LINENO: checking build system type" >&5
1717echo $ECHO_N "checking build system type... $ECHO_C" >&6
1718if test "${ac_cv_build+set}" = set; then
1719  echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721  ac_cv_build_alias=$build_alias
1722test -z "$ac_cv_build_alias" &&
1723  ac_cv_build_alias=`$ac_config_guess`
1724test -z "$ac_cv_build_alias" &&
1725  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1726echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1727   { (exit 1); exit 1; }; }
1728ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1729  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1730echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733fi
1734echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1735echo "${ECHO_T}$ac_cv_build" >&6
1736build=$ac_cv_build
1737build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740
1741
1742
1743# Check if user wants to produce debugging code
1744
1745echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1746echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1747
1748# Check whether --enable-debug or --disable-debug was given.
1749if test "${enable_debug+set}" = set; then
1750  enableval="$enable_debug"
1751  case "${enableval}" in
1752   yes) coin_debug_compile=true
1753        if test "${enable_shared+set}" = set; then :; else
1754          enable_shared=no
1755        fi
1756        ;;
1757   no)  coin_debug_compile=false
1758        ;;
1759   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1760echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1761   { (exit 1); exit 1; }; }
1762        ;;
1763esac
1764else
1765  coin_debug_compile=false
1766fi;
1767
1768 # m4_ifvaln([],
1769
1770if test $coin_debug_compile = true; then
1771  echo "$as_me:$LINENO: result: yes" >&5
1772echo "${ECHO_T}yes" >&6
1773else
1774  echo "$as_me:$LINENO: result: no" >&5
1775echo "${ECHO_T}no" >&6
1776fi
1777
1778 # m4_ifvaln([],
1779
1780
1781
1782# Get the name of the C compiler and appropriate compiler options
1783
1784
1785  # for backward compatibility
1786  # Check whether --enable-doscompile or --disable-doscompile was given.
1787if test "${enable_doscompile+set}" = set; then
1788  enableval="$enable_doscompile"
1789  enable_doscompile=$enableval
1790else
1791  enable_doscompile=no
1792fi;
1793
1794  # Check whether --enable-msvc or --disable-msvc was given.
1795if test "${enable_msvc+set}" = set; then
1796  enableval="$enable_msvc"
1797  enable_msvc=$enableval
1798else
1799  enable_msvc=no
1800     if test "$enable_doscompile" = msvc ; then
1801       enable_msvc=yes
1802     elif test "$enable_doscompile" != no ; then
1803       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1804echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1805   { (exit 1); exit 1; }; }
1806     fi
1807
1808fi;
1809
1810  if test "$enable_msvc" = MD; then
1811    enable_shared=yes
1812    enable_msvc=yes
1813  fi
1814
1815  if test "$enable_msvc" = yes; then
1816    case $build in
1817      *-cygwin* | *-mingw*) ;;
1818      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1819echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1820   { (exit 1); exit 1; }; } ;;
1821    esac
1822  fi
1823
1824
1825
1826ac_ext=c
1827ac_cpp='$CPP $CPPFLAGS'
1828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831
1832
1833# For consistency, we set the C compiler to the same value of the C++
1834# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1835if test x"$CXX" != x; then
1836  case "$CXX" in
1837    clang* ) ;;
1838    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1839      if test x"$CC" = x; then
1840        CC="$CXX"
1841        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1842echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1843      fi
1844      ;;
1845  esac
1846fi
1847
1848
1849
1850
1851
1852
1853coin_has_cc=yes
1854
1855save_cflags="$CFLAGS"
1856
1857# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1858# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1859# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1860# compiler. In this case, put cc after gcc.
1861
1862case $build in
1863  *-cygwin* | *-mingw*)
1864             if test "$enable_msvc" = yes ; then
1865               comps="icl cl gcc"
1866             else
1867               comps="gcc icl cl"
1868             fi ;;
1869  *-*-solaris*)
1870             # Extract the first word of "cc", so it can be a program name with args.
1871set dummy cc; ac_word=$2
1872echo "$as_me:$LINENO: checking for $ac_word" >&5
1873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1875  echo $ECHO_N "(cached) $ECHO_C" >&6
1876else
1877  if test -n "$sol_cc_compiler"; then
1878  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1879else
1880  ac_prog_rejected=no
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884  IFS=$as_save_IFS
1885  test -z "$as_dir" && as_dir=.
1886  for ac_exec_ext in '' $ac_executable_extensions; do
1887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1889       ac_prog_rejected=yes
1890       continue
1891     fi
1892    ac_cv_prog_sol_cc_compiler="cc"
1893    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894    break 2
1895  fi
1896done
1897done
1898
1899if test $ac_prog_rejected = yes; then
1900  # We found a bogon in the path, so make sure we never use it.
1901  set dummy $ac_cv_prog_sol_cc_compiler
1902  shift
1903  if test $# != 0; then
1904    # We chose a different compiler from the bogus one.
1905    # However, it has the same basename, so the bogon will be chosen
1906    # first if we set sol_cc_compiler to just the basename; use the full file name.
1907    shift
1908    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1909  fi
1910fi
1911fi
1912fi
1913sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1914if test -n "$sol_cc_compiler"; then
1915  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1916echo "${ECHO_T}$sol_cc_compiler" >&6
1917else
1918  echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6
1920fi
1921
1922             if test "$sol_cc_compiler" = "cc" ; then
1923               comps="cc xlc gcc pgcc icc"
1924             else
1925               comps="xlc gcc pgcc icc cc"
1926             fi
1927             ;;
1928  *-*-darwin*) comps="clang gcc cc" ;;
1929  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1930  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1931  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1932esac
1933
1934# We delete the cached value, since the test might not have been
1935# performed with our choice of compilers earlier
1936$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1937# AC_MSG_NOTICE([C compiler candidates: $comps])
1938ac_ext=c
1939ac_cpp='$CPP $CPPFLAGS'
1940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942ac_compiler_gnu=$ac_cv_c_compiler_gnu
1943if test -n "$ac_tool_prefix"; then
1944  for ac_prog in $comps
1945  do
1946    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1948echo "$as_me:$LINENO: checking for $ac_word" >&5
1949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950if test "${ac_cv_prog_CC+set}" = set; then
1951  echo $ECHO_N "(cached) $ECHO_C" >&6
1952else
1953  if test -n "$CC"; then
1954  ac_cv_prog_CC="$CC" # Let the user override the test.
1955else
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959  IFS=$as_save_IFS
1960  test -z "$as_dir" && as_dir=.
1961  for ac_exec_ext in '' $ac_executable_extensions; do
1962  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965    break 2
1966  fi
1967done
1968done
1969
1970fi
1971fi
1972CC=$ac_cv_prog_CC
1973if test -n "$CC"; then
1974  echo "$as_me:$LINENO: result: $CC" >&5
1975echo "${ECHO_T}$CC" >&6
1976else
1977  echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6
1979fi
1980
1981    test -n "$CC" && break
1982  done
1983fi
1984if test -z "$CC"; then
1985  ac_ct_CC=$CC
1986  for ac_prog in $comps
1987do
1988  # Extract the first word of "$ac_prog", so it can be a program name with args.
1989set dummy $ac_prog; ac_word=$2
1990echo "$as_me:$LINENO: checking for $ac_word" >&5
1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1993  echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995  if test -n "$ac_ct_CC"; then
1996  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1997else
1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001  IFS=$as_save_IFS
2002  test -z "$as_dir" && as_dir=.
2003  for ac_exec_ext in '' $ac_executable_extensions; do
2004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005    ac_cv_prog_ac_ct_CC="$ac_prog"
2006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007    break 2
2008  fi
2009done
2010done
2011
2012fi
2013fi
2014ac_ct_CC=$ac_cv_prog_ac_ct_CC
2015if test -n "$ac_ct_CC"; then
2016  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2017echo "${ECHO_T}$ac_ct_CC" >&6
2018else
2019  echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6
2021fi
2022
2023  test -n "$ac_ct_CC" && break
2024done
2025
2026  CC=$ac_ct_CC
2027fi
2028
2029
2030test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2031See \`config.log' for more details." >&5
2032echo "$as_me: error: no acceptable C compiler found in \$PATH
2033See \`config.log' for more details." >&2;}
2034   { (exit 1); exit 1; }; }
2035
2036# Provide some information about the compiler.
2037echo "$as_me:$LINENO:" \
2038     "checking for C compiler version" >&5
2039ac_compiler=`set X $ac_compile; echo $2`
2040{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2041  (eval $ac_compiler --version </dev/null >&5) 2>&5
2042  ac_status=$?
2043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044  (exit $ac_status); }
2045{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2046  (eval $ac_compiler -v </dev/null >&5) 2>&5
2047  ac_status=$?
2048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049  (exit $ac_status); }
2050{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2051  (eval $ac_compiler -V </dev/null >&5) 2>&5
2052  ac_status=$?
2053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054  (exit $ac_status); }
2055
2056cat >conftest.$ac_ext <<_ACEOF
2057/* confdefs.h.  */
2058_ACEOF
2059cat confdefs.h >>conftest.$ac_ext
2060cat >>conftest.$ac_ext <<_ACEOF
2061/* end confdefs.h.  */
2062
2063int
2064main ()
2065{
2066
2067  ;
2068  return 0;
2069}
2070_ACEOF
2071ac_clean_files_save=$ac_clean_files
2072ac_clean_files="$ac_clean_files a.out a.exe b.out"
2073# Try to create an executable without -o first, disregard a.out.
2074# It will help us diagnose broken compilers, and finding out an intuition
2075# of exeext.
2076echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2077echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2078ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2079if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2080  (eval $ac_link_default) 2>&5
2081  ac_status=$?
2082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083  (exit $ac_status); }; then
2084  # Find the output, starting from the most likely.  This scheme is
2085# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2086# resort.
2087
2088# Be careful to initialize this variable, since it used to be cached.
2089# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2090ac_cv_exeext=
2091# b.out is created by i960 compilers.
2092for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2093do
2094  test -f "$ac_file" || continue
2095  case $ac_file in
2096    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2097        ;;
2098    conftest.$ac_ext )
2099        # This is the source file.
2100        ;;
2101    [ab].out )
2102        # We found the default executable, but exeext='' is most
2103        # certainly right.
2104        break;;
2105    *.* )
2106        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107        # FIXME: I believe we export ac_cv_exeext for Libtool,
2108        # but it would be cool to find out if it's true.  Does anybody
2109        # maintain Libtool? --akim.
2110        export ac_cv_exeext
2111        break;;
2112    * )
2113        break;;
2114  esac
2115done
2116else
2117  echo "$as_me: failed program was:" >&5
2118sed 's/^/| /' conftest.$ac_ext >&5
2119
2120{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2121See \`config.log' for more details." >&5
2122echo "$as_me: error: C compiler cannot create executables
2123See \`config.log' for more details." >&2;}
2124   { (exit 77); exit 77; }; }
2125fi
2126
2127ac_exeext=$ac_cv_exeext
2128echo "$as_me:$LINENO: result: $ac_file" >&5
2129echo "${ECHO_T}$ac_file" >&6
2130
2131# Check the compiler produces executables we can run.  If not, either
2132# the compiler is broken, or we cross compile.
2133echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2134echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2135# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2136# If not cross compiling, check that we can run a simple program.
2137if test "$cross_compiling" != yes; then
2138  if { ac_try='./$ac_file'
2139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140  (eval $ac_try) 2>&5
2141  ac_status=$?
2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143  (exit $ac_status); }; }; then
2144    cross_compiling=no
2145  else
2146    if test "$cross_compiling" = maybe; then
2147        cross_compiling=yes
2148    else
2149        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2150If you meant to cross compile, use \`--host'.
2151See \`config.log' for more details." >&5
2152echo "$as_me: error: cannot run C compiled programs.
2153If you meant to cross compile, use \`--host'.
2154See \`config.log' for more details." >&2;}
2155   { (exit 1); exit 1; }; }
2156    fi
2157  fi
2158fi
2159echo "$as_me:$LINENO: result: yes" >&5
2160echo "${ECHO_T}yes" >&6
2161
2162rm -f a.out a.exe conftest$ac_cv_exeext b.out
2163ac_clean_files=$ac_clean_files_save
2164# Check the compiler produces executables we can run.  If not, either
2165# the compiler is broken, or we cross compile.
2166echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2167echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2168echo "$as_me:$LINENO: result: $cross_compiling" >&5
2169echo "${ECHO_T}$cross_compiling" >&6
2170
2171echo "$as_me:$LINENO: checking for suffix of executables" >&5
2172echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2174  (eval $ac_link) 2>&5
2175  ac_status=$?
2176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177  (exit $ac_status); }; then
2178  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2179# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2180# work properly (i.e., refer to `conftest.exe'), while it won't with
2181# `rm'.
2182for ac_file in conftest.exe conftest conftest.*; do
2183  test -f "$ac_file" || continue
2184  case $ac_file in
2185    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2186    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187          export ac_cv_exeext
2188          break;;
2189    * ) break;;
2190  esac
2191done
2192else
2193  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2194See \`config.log' for more details." >&5
2195echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2196See \`config.log' for more details." >&2;}
2197   { (exit 1); exit 1; }; }
2198fi
2199
2200rm -f conftest$ac_cv_exeext
2201echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2202echo "${ECHO_T}$ac_cv_exeext" >&6
2203
2204rm -f conftest.$ac_ext
2205EXEEXT=$ac_cv_exeext
2206ac_exeext=$EXEEXT
2207echo "$as_me:$LINENO: checking for suffix of object files" >&5
2208echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2209if test "${ac_cv_objext+set}" = set; then
2210  echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212  cat >conftest.$ac_ext <<_ACEOF
2213/* confdefs.h.  */
2214_ACEOF
2215cat confdefs.h >>conftest.$ac_ext
2216cat >>conftest.$ac_ext <<_ACEOF
2217/* end confdefs.h.  */
2218
2219int
2220main ()
2221{
2222
2223  ;
2224  return 0;
2225}
2226_ACEOF
2227rm -f conftest.o conftest.obj
2228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229  (eval $ac_compile) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }; then
2233  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2234  case $ac_file in
2235    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2236    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2237       break;;
2238  esac
2239done
2240else
2241  echo "$as_me: failed program was:" >&5
2242sed 's/^/| /' conftest.$ac_ext >&5
2243
2244{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2245See \`config.log' for more details." >&5
2246echo "$as_me: error: cannot compute suffix of object files: cannot compile
2247See \`config.log' for more details." >&2;}
2248   { (exit 1); exit 1; }; }
2249fi
2250
2251rm -f conftest.$ac_cv_objext conftest.$ac_ext
2252fi
2253echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2254echo "${ECHO_T}$ac_cv_objext" >&6
2255OBJEXT=$ac_cv_objext
2256ac_objext=$OBJEXT
2257echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2258echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2259if test "${ac_cv_c_compiler_gnu+set}" = set; then
2260  echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262  cat >conftest.$ac_ext <<_ACEOF
2263/* confdefs.h.  */
2264_ACEOF
2265cat confdefs.h >>conftest.$ac_ext
2266cat >>conftest.$ac_ext <<_ACEOF
2267/* end confdefs.h.  */
2268
2269int
2270main ()
2271{
2272#ifndef __GNUC__
2273       choke me
2274#endif
2275
2276  ;
2277  return 0;
2278}
2279_ACEOF
2280rm -f conftest.$ac_objext
2281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282  (eval $ac_compile) 2>conftest.er1
2283  ac_status=$?
2284  grep -v '^ *+' conftest.er1 >conftest.err
2285  rm -f conftest.er1
2286  cat conftest.err >&5
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); } &&
2289         { ac_try='test -z "$ac_c_werror_flag"
2290                         || test ! -s conftest.err'
2291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292  (eval $ac_try) 2>&5
2293  ac_status=$?
2294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295  (exit $ac_status); }; } &&
2296         { ac_try='test -s conftest.$ac_objext'
2297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298  (eval $ac_try) 2>&5
2299  ac_status=$?
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); }; }; then
2302  ac_compiler_gnu=yes
2303else
2304  echo "$as_me: failed program was:" >&5
2305sed 's/^/| /' conftest.$ac_ext >&5
2306
2307ac_compiler_gnu=no
2308fi
2309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2310ac_cv_c_compiler_gnu=$ac_compiler_gnu
2311
2312fi
2313echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2314echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2315GCC=`test $ac_compiler_gnu = yes && echo yes`
2316ac_test_CFLAGS=${CFLAGS+set}
2317ac_save_CFLAGS=$CFLAGS
2318CFLAGS="-g"
2319echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2320echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2321if test "${ac_cv_prog_cc_g+set}" = set; then
2322  echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324  cat >conftest.$ac_ext <<_ACEOF
2325/* confdefs.h.  */
2326_ACEOF
2327cat confdefs.h >>conftest.$ac_ext
2328cat >>conftest.$ac_ext <<_ACEOF
2329/* end confdefs.h.  */
2330
2331int
2332main ()
2333{
2334
2335  ;
2336  return 0;
2337}
2338_ACEOF
2339rm -f conftest.$ac_objext
2340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341  (eval $ac_compile) 2>conftest.er1
2342  ac_status=$?
2343  grep -v '^ *+' conftest.er1 >conftest.err
2344  rm -f conftest.er1
2345  cat conftest.err >&5
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); } &&
2348         { ac_try='test -z "$ac_c_werror_flag"
2349                         || test ! -s conftest.err'
2350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351  (eval $ac_try) 2>&5
2352  ac_status=$?
2353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354  (exit $ac_status); }; } &&
2355         { ac_try='test -s conftest.$ac_objext'
2356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357  (eval $ac_try) 2>&5
2358  ac_status=$?
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); }; }; then
2361  ac_cv_prog_cc_g=yes
2362else
2363  echo "$as_me: failed program was:" >&5
2364sed 's/^/| /' conftest.$ac_ext >&5
2365
2366ac_cv_prog_cc_g=no
2367fi
2368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2369fi
2370echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2371echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2372if test "$ac_test_CFLAGS" = set; then
2373  CFLAGS=$ac_save_CFLAGS
2374elif test $ac_cv_prog_cc_g = yes; then
2375  if test "$GCC" = yes; then
2376    CFLAGS="-g -O2"
2377  else
2378    CFLAGS="-g"
2379  fi
2380else
2381  if test "$GCC" = yes; then
2382    CFLAGS="-O2"
2383  else
2384    CFLAGS=
2385  fi
2386fi
2387echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2388echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2389if test "${ac_cv_prog_cc_stdc+set}" = set; then
2390  echo $ECHO_N "(cached) $ECHO_C" >&6
2391else
2392  ac_cv_prog_cc_stdc=no
2393ac_save_CC=$CC
2394cat >conftest.$ac_ext <<_ACEOF
2395/* confdefs.h.  */
2396_ACEOF
2397cat confdefs.h >>conftest.$ac_ext
2398cat >>conftest.$ac_ext <<_ACEOF
2399/* end confdefs.h.  */
2400#include <stdarg.h>
2401#include <stdio.h>
2402#include <sys/types.h>
2403#include <sys/stat.h>
2404/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2405struct buf { int x; };
2406FILE * (*rcsopen) (struct buf *, struct stat *, int);
2407static char *e (p, i)
2408     char **p;
2409     int i;
2410{
2411  return p[i];
2412}
2413static char *f (char * (*g) (char **, int), char **p, ...)
2414{
2415  char *s;
2416  va_list v;
2417  va_start (v,p);
2418  s = g (p, va_arg (v,int));
2419  va_end (v);
2420  return s;
2421}
2422
2423/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2424   function prototypes and stuff, but not '\xHH' hex character constants.
2425   These don't provoke an error unfortunately, instead are silently treated
2426   as 'x'.  The following induces an error, until -std1 is added to get
2427   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2428   array size at least.  It's necessary to write '\x00'==0 to get something
2429   that's true only with -std1.  */
2430int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2431
2432int test (int i, double x);
2433struct s1 {int (*f) (int a);};
2434struct s2 {int (*f) (double a);};
2435int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2436int argc;
2437char **argv;
2438int
2439main ()
2440{
2441return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2442  ;
2443  return 0;
2444}
2445_ACEOF
2446# Don't try gcc -ansi; that turns off useful extensions and
2447# breaks some systems' header files.
2448# AIX                   -qlanglvl=ansi
2449# Ultrix and OSF/1      -std1
2450# HP-UX 10.20 and later -Ae
2451# HP-UX older versions  -Aa -D_HPUX_SOURCE
2452# SVR4                  -Xc -D__EXTENSIONS__
2453for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2454do
2455  CC="$ac_save_CC $ac_arg"
2456  rm -f conftest.$ac_objext
2457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458  (eval $ac_compile) 2>conftest.er1
2459  ac_status=$?
2460  grep -v '^ *+' conftest.er1 >conftest.err
2461  rm -f conftest.er1
2462  cat conftest.err >&5
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); } &&
2465         { ac_try='test -z "$ac_c_werror_flag"
2466                         || test ! -s conftest.err'
2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468  (eval $ac_try) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; } &&
2472         { ac_try='test -s conftest.$ac_objext'
2473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474  (eval $ac_try) 2>&5
2475  ac_status=$?
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); }; }; then
2478  ac_cv_prog_cc_stdc=$ac_arg
2479break
2480else
2481  echo "$as_me: failed program was:" >&5
2482sed 's/^/| /' conftest.$ac_ext >&5
2483
2484fi
2485rm -f conftest.err conftest.$ac_objext
2486done
2487rm -f conftest.$ac_ext conftest.$ac_objext
2488CC=$ac_save_CC
2489
2490fi
2491
2492case "x$ac_cv_prog_cc_stdc" in
2493  x|xno)
2494    echo "$as_me:$LINENO: result: none needed" >&5
2495echo "${ECHO_T}none needed" >&6 ;;
2496  *)
2497    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2498echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2499    CC="$CC $ac_cv_prog_cc_stdc" ;;
2500esac
2501
2502# Some people use a C++ compiler to compile C.  Since we use `exit',
2503# in C++ we need to declare it.  In case someone uses the same compiler
2504# for both compiling C and C++ we need to have the C++ compiler decide
2505# the declaration of exit, since it's the most demanding environment.
2506cat >conftest.$ac_ext <<_ACEOF
2507#ifndef __cplusplus
2508  choke me
2509#endif
2510_ACEOF
2511rm -f conftest.$ac_objext
2512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513  (eval $ac_compile) 2>conftest.er1
2514  ac_status=$?
2515  grep -v '^ *+' conftest.er1 >conftest.err
2516  rm -f conftest.er1
2517  cat conftest.err >&5
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); } &&
2520         { ac_try='test -z "$ac_c_werror_flag"
2521                         || test ! -s conftest.err'
2522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523  (eval $ac_try) 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }; } &&
2527         { ac_try='test -s conftest.$ac_objext'
2528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529  (eval $ac_try) 2>&5
2530  ac_status=$?
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); }; }; then
2533  for ac_declaration in \
2534   '' \
2535   'extern "C" void std::exit (int) throw (); using std::exit;' \
2536   'extern "C" void std::exit (int); using std::exit;' \
2537   'extern "C" void exit (int) throw ();' \
2538   'extern "C" void exit (int);' \
2539   'void exit (int);'
2540do
2541  cat >conftest.$ac_ext <<_ACEOF
2542/* confdefs.h.  */
2543_ACEOF
2544cat confdefs.h >>conftest.$ac_ext
2545cat >>conftest.$ac_ext <<_ACEOF
2546/* end confdefs.h.  */
2547$ac_declaration
2548#include <stdlib.h>
2549int
2550main ()
2551{
2552exit (42);
2553  ;
2554  return 0;
2555}
2556_ACEOF
2557rm -f conftest.$ac_objext
2558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559  (eval $ac_compile) 2>conftest.er1
2560  ac_status=$?
2561  grep -v '^ *+' conftest.er1 >conftest.err
2562  rm -f conftest.er1
2563  cat conftest.err >&5
2564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565  (exit $ac_status); } &&
2566         { ac_try='test -z "$ac_c_werror_flag"
2567                         || test ! -s conftest.err'
2568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569  (eval $ac_try) 2>&5
2570  ac_status=$?
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); }; } &&
2573         { ac_try='test -s conftest.$ac_objext'
2574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575  (eval $ac_try) 2>&5
2576  ac_status=$?
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); }; }; then
2579  :
2580else
2581  echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584continue
2585fi
2586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587  cat >conftest.$ac_ext <<_ACEOF
2588/* confdefs.h.  */
2589_ACEOF
2590cat confdefs.h >>conftest.$ac_ext
2591cat >>conftest.$ac_ext <<_ACEOF
2592/* end confdefs.h.  */
2593$ac_declaration
2594int
2595main ()
2596{
2597exit (42);
2598  ;
2599  return 0;
2600}
2601_ACEOF
2602rm -f conftest.$ac_objext
2603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604  (eval $ac_compile) 2>conftest.er1
2605  ac_status=$?
2606  grep -v '^ *+' conftest.er1 >conftest.err
2607  rm -f conftest.er1
2608  cat conftest.err >&5
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); } &&
2611         { ac_try='test -z "$ac_c_werror_flag"
2612                         || test ! -s conftest.err'
2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614  (eval $ac_try) 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; } &&
2618         { ac_try='test -s conftest.$ac_objext'
2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620  (eval $ac_try) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }; }; then
2624  break
2625else
2626  echo "$as_me: failed program was:" >&5
2627sed 's/^/| /' conftest.$ac_ext >&5
2628
2629fi
2630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2631done
2632rm -f conftest*
2633if test -n "$ac_declaration"; then
2634  echo '#ifdef __cplusplus' >>confdefs.h
2635  echo $ac_declaration      >>confdefs.h
2636  echo '#endif'             >>confdefs.h
2637fi
2638
2639else
2640  echo "$as_me: failed program was:" >&5
2641sed 's/^/| /' conftest.$ac_ext >&5
2642
2643fi
2644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2645ac_ext=c
2646ac_cpp='$CPP $CPPFLAGS'
2647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650
2651if test -z "$CC" ; then
2652  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2653echo "$as_me: error: Failed to find a C compiler!" >&2;}
2654   { (exit 1); exit 1; }; }
2655fi
2656# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2657case "$CC" in
2658  clang* ) ;;
2659  cl* | */cl* | CL* | */CL* )
2660    if test "$ac_cv_prog_cc_g" = yes ; then
2661      ac_cv_prog_cc_g=no
2662      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2663echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2664    fi ;;
2665  * )
2666    if test x"$CYGPATH_W" = x ; then
2667      CYGPATH_W=echo
2668    fi
2669    ;;
2670esac
2671CFLAGS="$save_cflags"
2672
2673# add automake conditional so we can recognize cl compiler in makefile
2674coin_cc_is_cl=false
2675case "$CC" in
2676  clang* ) ;;
2677  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2678    coin_cc_is_cl=true
2679    ;;
2680esac
2681
2682
2683if test $coin_cc_is_cl = true; then
2684  COIN_CC_IS_CL_TRUE=
2685  COIN_CC_IS_CL_FALSE='#'
2686else
2687  COIN_CC_IS_CL_TRUE='#'
2688  COIN_CC_IS_CL_FALSE=
2689fi
2690
2691
2692# Check if a project specific CFLAGS variable has been set
2693if test x$COIN_PRJCT != x; then
2694  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2695  if test x$coin_tmp = xset; then
2696    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2697  fi
2698fi
2699
2700if test x"$CFLAGS" = x; then
2701
2702  coin_add_cflags=
2703  coin_opt_cflags=
2704  coin_dbg_cflags=
2705  coin_warn_cflags=
2706
2707  if test "$GCC" = "yes"; then
2708    case "$CC" in
2709      icc* | */icc*)
2710        ;;
2711      *)
2712        coin_opt_cflags="-O3"
2713        coin_add_cflags="-pipe"
2714        coin_dbg_cflags="-g -O0"
2715        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2716        case $build in
2717          *-darwin*)
2718            ;;
2719          *)
2720            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2721            ;;
2722        esac
2723    esac
2724  fi
2725  if test -z "$coin_opt_cflags"; then
2726    case $build in
2727      *-cygwin* | *-mingw*)
2728        case "$CC" in
2729          clang* ) ;;
2730          cl* | */cl* | CL* | */CL*)
2731            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2732              coin_opt_cflags='-MD -O2'
2733              coin_dbg_cflags='-MDd'
2734            else
2735              coin_opt_cflags='-MT -O2'
2736              coin_dbg_cflags='-MTd'
2737            fi
2738            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2739            ;;
2740          icl* | */icl* | ICL* | */ICL*)
2741            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2742              coin_opt_cflags='-MD -Ox'
2743              coin_dbg_cflags='-MDd -debug'
2744            else
2745              coin_opt_cflags='-MT -Ox'
2746              coin_dbg_cflags='-MTd -debug'
2747            fi
2748            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2749            ;;
2750        esac
2751        ;;
2752      *-linux-*)
2753        case "$CC" in
2754          icc* | */icc*)
2755            coin_opt_cflags="-O3 -ip -mp1"
2756            coin_add_cflags=""
2757            coin_dbg_cflags="-g"
2758            # Check if -i_dynamic is necessary (for new glibc library)
2759            CFLAGS=
2760            cat >conftest.$ac_ext <<_ACEOF
2761/* confdefs.h.  */
2762_ACEOF
2763cat confdefs.h >>conftest.$ac_ext
2764cat >>conftest.$ac_ext <<_ACEOF
2765/* end confdefs.h.  */
2766
2767int
2768main ()
2769{
2770int i=0; i++;
2771  ;
2772  return 0;
2773}
2774_ACEOF
2775rm -f conftest.$ac_objext conftest$ac_exeext
2776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2777  (eval $ac_link) 2>conftest.er1
2778  ac_status=$?
2779  grep -v '^ *+' conftest.er1 >conftest.err
2780  rm -f conftest.er1
2781  cat conftest.err >&5
2782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783  (exit $ac_status); } &&
2784         { ac_try='test -z "$ac_c_werror_flag"
2785                         || test ! -s conftest.err'
2786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787  (eval $ac_try) 2>&5
2788  ac_status=$?
2789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790  (exit $ac_status); }; } &&
2791         { ac_try='test -s conftest$ac_exeext'
2792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793  (eval $ac_try) 2>&5
2794  ac_status=$?
2795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796  (exit $ac_status); }; }; then
2797  :
2798else
2799  echo "$as_me: failed program was:" >&5
2800sed 's/^/| /' conftest.$ac_ext >&5
2801
2802coin_add_cflags="-i_dynamic $coin_add_cflags"
2803fi
2804rm -f conftest.err conftest.$ac_objext \
2805      conftest$ac_exeext conftest.$ac_ext
2806            ;;
2807          pgcc* | */pgcc*)
2808            coin_opt_cflags="-fast"
2809            coin_add_cflags="-Kieee -pc 64"
2810            coin_dbg_cflags="-g"
2811            ;;
2812        esac
2813        ;;
2814      *-ibm-*)
2815        case "$CC" in
2816          xlc* | */xlc* | mpxlc* | */mpxlc*)
2817            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2818            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2819            coin_dbg_cflags="-g"
2820          ;;
2821        esac
2822        ;;
2823      *-hp-*)
2824        coin_opt_cflags="-O"
2825        coin_add_cflags="-Ae"
2826        coin_dbg_cflags="-g"
2827        ;;
2828      *-*-solaris*)
2829        coin_opt_cflags="-xO4"
2830        coin_dbg_cflags="-g"
2831        ;;
2832      *-sgi-*)
2833        coin_opt_cflags="-O -OPT:Olimit=0"
2834        coin_dbg_cflags="-g"
2835        ;;
2836    esac
2837  fi
2838
2839  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2840    coin_dbg_cflags="-g"
2841  fi
2842
2843  if test -z "$coin_opt_cflags"; then
2844    # Try if -O option works if nothing else is set
2845    CFLAGS="-O"
2846    cat >conftest.$ac_ext <<_ACEOF
2847/* confdefs.h.  */
2848_ACEOF
2849cat confdefs.h >>conftest.$ac_ext
2850cat >>conftest.$ac_ext <<_ACEOF
2851/* end confdefs.h.  */
2852
2853int
2854main ()
2855{
2856int i=0; i++;
2857  ;
2858  return 0;
2859}
2860_ACEOF
2861rm -f conftest.$ac_objext conftest$ac_exeext
2862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2863  (eval $ac_link) 2>conftest.er1
2864  ac_status=$?
2865  grep -v '^ *+' conftest.er1 >conftest.err
2866  rm -f conftest.er1
2867  cat conftest.err >&5
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); } &&
2870         { ac_try='test -z "$ac_c_werror_flag"
2871                         || test ! -s conftest.err'
2872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873  (eval $ac_try) 2>&5
2874  ac_status=$?
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); }; } &&
2877         { ac_try='test -s conftest$ac_exeext'
2878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879  (eval $ac_try) 2>&5
2880  ac_status=$?
2881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882  (exit $ac_status); }; }; then
2883  coin_opt_cflags="-O"
2884else
2885  echo "$as_me: failed program was:" >&5
2886sed 's/^/| /' conftest.$ac_ext >&5
2887
2888fi
2889rm -f conftest.err conftest.$ac_objext \
2890      conftest$ac_exeext conftest.$ac_ext
2891  fi
2892
2893  # if PM doesn't want the warning messages, take them out
2894  if test x"$coin_skip_warn_cflags" = xyes; then
2895    coin_warn_cflags=
2896  fi
2897
2898  if test x${DBG_CFLAGS+set} != xset; then
2899    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2900  fi
2901  if test x${OPT_CFLAGS+set} != xset; then
2902    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2903  fi
2904
2905  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2906  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2907
2908  if test "$coin_debug_compile" = "true"; then
2909    CFLAGS="$DBG_CFLAGS"
2910  else
2911    CFLAGS="$OPT_CFLAGS"
2912  fi
2913else
2914  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2915  if test x${DBG_CFLAGS+set} != xset; then
2916    DBG_CFLAGS="$CFLAGS"
2917  fi
2918  if test x${OPT_CFLAGS+set} != xset; then
2919    OPT_CFLAGS="$CFLAGS"
2920  fi
2921fi
2922
2923# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2924if test x$COIN_PRJCT != x; then
2925  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2926fi
2927
2928# Try if CFLAGS works
2929save_CFLAGS="$CFLAGS"
2930cat >conftest.$ac_ext <<_ACEOF
2931/* confdefs.h.  */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h.  */
2936
2937int
2938main ()
2939{
2940int i=0; i++;
2941  ;
2942  return 0;
2943}
2944_ACEOF
2945rm -f conftest.$ac_objext conftest$ac_exeext
2946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2947  (eval $ac_link) 2>conftest.er1
2948  ac_status=$?
2949  grep -v '^ *+' conftest.er1 >conftest.err
2950  rm -f conftest.er1
2951  cat conftest.err >&5
2952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953  (exit $ac_status); } &&
2954         { ac_try='test -z "$ac_c_werror_flag"
2955                         || test ! -s conftest.err'
2956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957  (eval $ac_try) 2>&5
2958  ac_status=$?
2959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960  (exit $ac_status); }; } &&
2961         { ac_try='test -s conftest$ac_exeext'
2962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963  (eval $ac_try) 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }; }; then
2967  :
2968else
2969  echo "$as_me: failed program was:" >&5
2970sed 's/^/| /' conftest.$ac_ext >&5
2971
2972CFLAGS=
2973fi
2974rm -f conftest.err conftest.$ac_objext \
2975      conftest$ac_exeext conftest.$ac_ext
2976if test -z "$CFLAGS"; then
2977  { 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
2978echo "$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;}
2979  CFLAGS='-O'
2980  cat >conftest.$ac_ext <<_ACEOF
2981/* confdefs.h.  */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h.  */
2986
2987int
2988main ()
2989{
2990int i=0; i++;
2991  ;
2992  return 0;
2993}
2994_ACEOF
2995rm -f conftest.$ac_objext conftest$ac_exeext
2996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2997  (eval $ac_link) 2>conftest.er1
2998  ac_status=$?
2999  grep -v '^ *+' conftest.er1 >conftest.err
3000  rm -f conftest.er1
3001  cat conftest.err >&5
3002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003  (exit $ac_status); } &&
3004         { ac_try='test -z "$ac_c_werror_flag"
3005                         || test ! -s conftest.err'
3006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007  (eval $ac_try) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }; } &&
3011         { ac_try='test -s conftest$ac_exeext'
3012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013  (eval $ac_try) 2>&5
3014  ac_status=$?
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); }; }; then
3017  :
3018else
3019  echo "$as_me: failed program was:" >&5
3020sed 's/^/| /' conftest.$ac_ext >&5
3021
3022CFLAGS=
3023fi
3024rm -f conftest.err conftest.$ac_objext \
3025      conftest$ac_exeext conftest.$ac_ext
3026  if test -z "$CFLAGS"; then
3027    { 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
3028echo "$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;}
3029  fi
3030fi
3031
3032{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3033echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3034
3035
3036if test x"$MPICC" = x; then :; else
3037  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3038echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3039  CC="$MPICC"
3040fi
3041
3042# Correct the LD variable if we are using the MS or Intel-windows compiler
3043case "$CC" in
3044  clang* ) ;;
3045  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3046    LD=link
3047    ;;
3048esac
3049
3050ac_ext=c
3051ac_cpp='$CPP $CPPFLAGS'
3052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055
3056
3057
3058# Get the name of the C++ compiler and appropriate compiler options
3059
3060 #Let's try if that overcomes configuration problem with VC++ 6.0
3061
3062ac_ext=cc
3063ac_cpp='$CXXCPP $CPPFLAGS'
3064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3067
3068
3069
3070
3071
3072
3073
3074coin_has_cxx=yes
3075
3076save_cxxflags="$CXXFLAGS"
3077# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3078case $build in
3079  *-cygwin* | *-mingw*)
3080      if test "$enable_msvc" = yes ; then
3081         comps="icl cl g++"
3082      else
3083         comps="g++ icl cl"
3084      fi ;;
3085  *-*-solaris*)
3086             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3087  *-darwin*) comps="clang++ g++ c++ CC" ;;
3088  *-linux-gnu*)
3089             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3090          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3091esac
3092
3093# We delete the cached value, since the test might not have been
3094# performed with our choice of compilers earlier
3095$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3096# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3097ac_ext=cc
3098ac_cpp='$CXXCPP $CPPFLAGS'
3099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3102if test -n "$ac_tool_prefix"; then
3103  for ac_prog in $CCC $comps
3104  do
3105    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3106set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3107echo "$as_me:$LINENO: checking for $ac_word" >&5
3108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109if test "${ac_cv_prog_CXX+set}" = set; then
3110  echo $ECHO_N "(cached) $ECHO_C" >&6
3111else
3112  if test -n "$CXX"; then
3113  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3114else
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118  IFS=$as_save_IFS
3119  test -z "$as_dir" && as_dir=.
3120  for ac_exec_ext in '' $ac_executable_extensions; do
3121  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3123    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124    break 2
3125  fi
3126done
3127done
3128
3129fi
3130fi
3131CXX=$ac_cv_prog_CXX
3132if test -n "$CXX"; then
3133  echo "$as_me:$LINENO: result: $CXX" >&5
3134echo "${ECHO_T}$CXX" >&6
3135else
3136  echo "$as_me:$LINENO: result: no" >&5
3137echo "${ECHO_T}no" >&6
3138fi
3139
3140    test -n "$CXX" && break
3141  done
3142fi
3143if test -z "$CXX"; then
3144  ac_ct_CXX=$CXX
3145  for ac_prog in $CCC $comps
3146do
3147  # Extract the first word of "$ac_prog", so it can be a program name with args.
3148set dummy $ac_prog; ac_word=$2
3149echo "$as_me:$LINENO: checking for $ac_word" >&5
3150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3151if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3152  echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154  if test -n "$ac_ct_CXX"; then
3155  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162  for ac_exec_ext in '' $ac_executable_extensions; do
3163  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164    ac_cv_prog_ac_ct_CXX="$ac_prog"
3165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166    break 2
3167  fi
3168done
3169done
3170
3171fi
3172fi
3173ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3174if test -n "$ac_ct_CXX"; then
3175  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3176echo "${ECHO_T}$ac_ct_CXX" >&6
3177else
3178  echo "$as_me:$LINENO: result: no" >&5
3179echo "${ECHO_T}no" >&6
3180fi
3181
3182  test -n "$ac_ct_CXX" && break
3183done
3184test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3185
3186  CXX=$ac_ct_CXX
3187fi
3188
3189
3190# Provide some information about the compiler.
3191echo "$as_me:$LINENO:" \
3192     "checking for C++ compiler version" >&5
3193ac_compiler=`set X $ac_compile; echo $2`
3194{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3195  (eval $ac_compiler --version </dev/null >&5) 2>&5
3196  ac_status=$?
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); }
3199{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3200  (eval $ac_compiler -v </dev/null >&5) 2>&5
3201  ac_status=$?
3202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203  (exit $ac_status); }
3204{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3205  (eval $ac_compiler -V </dev/null >&5) 2>&5
3206  ac_status=$?
3207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208  (exit $ac_status); }
3209
3210echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3211echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3212if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3213  echo $ECHO_N "(cached) $ECHO_C" >&6
3214else
3215  cat >conftest.$ac_ext <<_ACEOF
3216/* confdefs.h.  */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
3220/* end confdefs.h.  */
3221
3222int
3223main ()
3224{
3225#ifndef __GNUC__
3226       choke me
3227#endif
3228
3229  ;
3230  return 0;
3231}
3232_ACEOF
3233rm -f conftest.$ac_objext
3234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235  (eval $ac_compile) 2>conftest.er1
3236  ac_status=$?
3237  grep -v '^ *+' conftest.er1 >conftest.err
3238  rm -f conftest.er1
3239  cat conftest.err >&5
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); } &&
3242         { ac_try='test -z "$ac_cxx_werror_flag"
3243                         || test ! -s conftest.err'
3244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245  (eval $ac_try) 2>&5
3246  ac_status=$?
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); }; } &&
3249         { ac_try='test -s conftest.$ac_objext'
3250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251  (eval $ac_try) 2>&5
3252  ac_status=$?
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); }; }; then
3255  ac_compiler_gnu=yes
3256else
3257  echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260ac_compiler_gnu=no
3261fi
3262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3264
3265fi
3266echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3267echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3268GXX=`test $ac_compiler_gnu = yes && echo yes`
3269ac_test_CXXFLAGS=${CXXFLAGS+set}
3270ac_save_CXXFLAGS=$CXXFLAGS
3271CXXFLAGS="-g"
3272echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3273echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3274if test "${ac_cv_prog_cxx_g+set}" = set; then
3275  echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277  cat >conftest.$ac_ext <<_ACEOF
3278/* confdefs.h.  */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
3282/* end confdefs.h.  */
3283
3284int
3285main ()
3286{
3287
3288  ;
3289  return 0;
3290}
3291_ACEOF
3292rm -f conftest.$ac_objext
3293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294  (eval $ac_compile) 2>conftest.er1
3295  ac_status=$?
3296  grep -v '^ *+' conftest.er1 >conftest.err
3297  rm -f conftest.er1
3298  cat conftest.err >&5
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); } &&
3301         { ac_try='test -z "$ac_cxx_werror_flag"
3302                         || test ! -s conftest.err'
3303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304  (eval $ac_try) 2>&5
3305  ac_status=$?
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); }; } &&
3308         { ac_try='test -s conftest.$ac_objext'
3309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310  (eval $ac_try) 2>&5
3311  ac_status=$?
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); }; }; then
3314  ac_cv_prog_cxx_g=yes
3315else
3316  echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319ac_cv_prog_cxx_g=no
3320fi
3321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3322fi
3323echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3324echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3325if test "$ac_test_CXXFLAGS" = set; then
3326  CXXFLAGS=$ac_save_CXXFLAGS
3327elif test $ac_cv_prog_cxx_g = yes; then
3328  if test "$GXX" = yes; then
3329    CXXFLAGS="-g -O2"
3330  else
3331    CXXFLAGS="-g"
3332  fi
3333else
3334  if test "$GXX" = yes; then
3335    CXXFLAGS="-O2"
3336  else
3337    CXXFLAGS=
3338  fi
3339fi
3340for ac_declaration in \
3341   '' \
3342   'extern "C" void std::exit (int) throw (); using std::exit;' \
3343   'extern "C" void std::exit (int); using std::exit;' \
3344   'extern "C" void exit (int) throw ();' \
3345   'extern "C" void exit (int);' \
3346   'void exit (int);'
3347do
3348  cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h.  */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h.  */
3354$ac_declaration
3355#include <stdlib.h>
3356int
3357main ()
3358{
3359exit (42);
3360  ;
3361  return 0;
3362}
3363_ACEOF
3364rm -f conftest.$ac_objext
3365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366  (eval $ac_compile) 2>conftest.er1
3367  ac_status=$?
3368  grep -v '^ *+' conftest.er1 >conftest.err
3369  rm -f conftest.er1
3370  cat conftest.err >&5
3371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); } &&
3373         { ac_try='test -z "$ac_cxx_werror_flag"
3374                         || test ! -s conftest.err'
3375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376  (eval $ac_try) 2>&5
3377  ac_status=$?
3378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379  (exit $ac_status); }; } &&
3380         { ac_try='test -s conftest.$ac_objext'
3381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382  (eval $ac_try) 2>&5
3383  ac_status=$?
3384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385  (exit $ac_status); }; }; then
3386  :
3387else
3388  echo "$as_me: failed program was:" >&5
3389sed 's/^/| /' conftest.$ac_ext >&5
3390
3391continue
3392fi
3393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3394  cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h.  */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h.  */
3400$ac_declaration
3401int
3402main ()
3403{
3404exit (42);
3405  ;
3406  return 0;
3407}
3408_ACEOF
3409rm -f conftest.$ac_objext
3410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411  (eval $ac_compile) 2>conftest.er1
3412  ac_status=$?
3413  grep -v '^ *+' conftest.er1 >conftest.err
3414  rm -f conftest.er1
3415  cat conftest.err >&5
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); } &&
3418         { ac_try='test -z "$ac_cxx_werror_flag"
3419                         || test ! -s conftest.err'
3420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421  (eval $ac_try) 2>&5
3422  ac_status=$?
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); }; } &&
3425         { ac_try='test -s conftest.$ac_objext'
3426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427  (eval $ac_try) 2>&5
3428  ac_status=$?
3429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); }; }; then
3431  break
3432else
3433  echo "$as_me: failed program was:" >&5
3434sed 's/^/| /' conftest.$ac_ext >&5
3435
3436fi
3437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3438done
3439rm -f conftest*
3440if test -n "$ac_declaration"; then
3441  echo '#ifdef __cplusplus' >>confdefs.h
3442  echo $ac_declaration      >>confdefs.h
3443  echo '#endif'             >>confdefs.h
3444fi
3445
3446ac_ext=cc
3447ac_cpp='$CXXCPP $CPPFLAGS'
3448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3451
3452
3453#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3454#thus, we test here whether $CXX is actually working
3455ac_ext=cc
3456ac_cpp='$CXXCPP $CPPFLAGS'
3457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3460
3461echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3462echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3463cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h.  */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h.  */
3469
3470int
3471main ()
3472{
3473int i=0;
3474  ;
3475  return 0;
3476}
3477_ACEOF
3478rm -f conftest.$ac_objext
3479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480  (eval $ac_compile) 2>conftest.er1
3481  ac_status=$?
3482  grep -v '^ *+' conftest.er1 >conftest.err
3483  rm -f conftest.er1
3484  cat conftest.err >&5
3485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486  (exit $ac_status); } &&
3487         { ac_try='test -z "$ac_cxx_werror_flag"
3488                         || test ! -s conftest.err'
3489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490  (eval $ac_try) 2>&5
3491  ac_status=$?
3492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493  (exit $ac_status); }; } &&
3494         { ac_try='test -s conftest.$ac_objext'
3495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496  (eval $ac_try) 2>&5
3497  ac_status=$?
3498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499  (exit $ac_status); }; }; then
3500  echo "$as_me:$LINENO: result: yes" >&5
3501echo "${ECHO_T}yes" >&6
3502else
3503  echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506echo "$as_me:$LINENO: result: no" >&5
3507echo "${ECHO_T}no" >&6
3508   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3509echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3510   { (exit 1); exit 1; }; }
3511
3512fi
3513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3514ac_ext=cc
3515ac_cpp='$CXXCPP $CPPFLAGS'
3516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3519
3520
3521coin_cxx_is_cl=false
3522# It seems that we need to cleanup something here for the Windows
3523case "$CXX" in
3524  clang* | */clang*) ;;
3525  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3526    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3527    mv confdefs.hh confdefs.h
3528    coin_cxx_is_cl=true
3529    ;;
3530esac
3531
3532# add automake conditional so we can recognize cl compiler in makefile
3533
3534
3535if test $coin_cxx_is_cl = true; then
3536  COIN_CXX_IS_CL_TRUE=
3537  COIN_CXX_IS_CL_FALSE='#'
3538else
3539  COIN_CXX_IS_CL_TRUE='#'
3540  COIN_CXX_IS_CL_FALSE=
3541fi
3542
3543
3544# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3545case "$CXX" in
3546  clang* ) ;;
3547  cl* | */cl* | CL* | */CL* )
3548    if test "$ac_cv_prog_cxx_g" = yes ; then
3549      ac_cv_prog_cxx_g=no
3550      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3551echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3552    fi ;;
3553  * )
3554    if test x"$CYGPATH_W" = x ; then
3555      CYGPATH_W=echo
3556    fi
3557    ;;
3558esac
3559CXXFLAGS="$save_cxxflags"
3560
3561# Check if a project specific CXXFLAGS variable has been set
3562if test x$COIN_PRJCT != x; then
3563  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3564  if test x$coin_tmp = xset; then
3565    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3566  fi
3567fi
3568
3569if test x"$CXXFLAGS" = x; then
3570
3571# ToDo decide whether we want -DNDEBUG for optimization
3572  coin_add_cxxflags=
3573  coin_opt_cxxflags=
3574  coin_dbg_cxxflags=
3575  coin_warn_cxxflags=
3576
3577  if test "$GXX" = "yes"; then
3578    case "$CXX" in
3579      icpc* | */icpc*)
3580        ;;
3581      *)
3582# ToDo decide about unroll-loops
3583        coin_opt_cxxflags="-O3"
3584        coin_add_cxxflags="-pipe"
3585        coin_dbg_cxxflags="-g -O0"
3586        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3587        case $build in
3588          *-darwin*)
3589            ;;
3590          *)
3591            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3592            ;;
3593        esac
3594    esac
3595  fi
3596
3597# Note that we do not need to cover GCC in the following tests.
3598
3599  if test -z "$coin_opt_cxxflags"; then
3600    case $build in
3601      *-cygwin* | *-mingw*)
3602        case "$CXX" in
3603          clang* ) ;;
3604          cl* | */cl* | CL* | */CL*)
3605            # The MT and MTd options are mutually exclusive
3606            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3607               coin_opt_cxxflags='-MD -O2'
3608               coin_dbg_cxxflags='-MDd'
3609            else
3610               coin_opt_cxxflags='-MT -O2'
3611               coin_dbg_cxxflags='-MTd'
3612            fi
3613            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3614            ;;
3615          icl* | */icl* | ICL* | */ICL*)
3616          # The MT and MTd options are mutually exclusive
3617            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3618              coin_opt_cxxflags='-MD -Ox'
3619              coin_dbg_cxxflags='-MDd -debug'
3620            else
3621              coin_opt_cxxflags='-MT -Ox'
3622              coin_dbg_cxxflags='-MTd -debug'
3623            fi
3624            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3625            ;;
3626        esac
3627        ;;
3628      *-linux-*)
3629        case "$CXX" in
3630          icpc* | */icpc*)
3631            coin_opt_cxxflags="-O3 -ip -mp1"
3632            coin_add_cxxflags=""
3633            coin_dbg_cxxflags="-g"
3634            # Check if -i_dynamic is necessary (for new glibc library)
3635            CXXFLAGS=
3636            cat >conftest.$ac_ext <<_ACEOF
3637/* confdefs.h.  */
3638_ACEOF
3639cat confdefs.h >>conftest.$ac_ext
3640cat >>conftest.$ac_ext <<_ACEOF
3641/* end confdefs.h.  */
3642
3643int
3644main ()
3645{
3646int i=0; i++;
3647  ;
3648  return 0;
3649}
3650_ACEOF
3651rm -f conftest.$ac_objext conftest$ac_exeext
3652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653  (eval $ac_link) 2>conftest.er1
3654  ac_status=$?
3655  grep -v '^ *+' conftest.er1 >conftest.err
3656  rm -f conftest.er1
3657  cat conftest.err >&5
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); } &&
3660         { ac_try='test -z "$ac_cxx_werror_flag"
3661                         || test ! -s conftest.err'
3662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663  (eval $ac_try) 2>&5
3664  ac_status=$?
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); }; } &&
3667         { ac_try='test -s conftest$ac_exeext'
3668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669  (eval $ac_try) 2>&5
3670  ac_status=$?
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); }; }; then
3673  :
3674else
3675  echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3679fi
3680rm -f conftest.err conftest.$ac_objext \
3681      conftest$ac_exeext conftest.$ac_ext
3682            ;;
3683          pgCC* | */pgCC*)
3684            coin_opt_cxxflags="-fast"
3685            coin_add_cxxflags="-Kieee -pc 64"
3686            coin_dbg_cxxflags="-g"
3687            ;;
3688        esac
3689        ;;
3690      *-ibm-*)
3691        case "$CXX" in
3692          xlC* | */xlC* | mpxlC* | */mpxlC*)
3693            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3694            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3695            coin_dbg_cxxflags="-g"
3696            ;;
3697        esac
3698        ;;
3699      *-hp-*)
3700        case "$CXX" in
3701          aCC* | */aCC* )
3702            coin_opt_cxxflags="-O"
3703            coin_add_cxxflags="-AA"
3704            coin_dbg_cxxflags="-g"
3705            ;;
3706        esac
3707        ;;
3708      *-*-solaris*)
3709          coin_opt_cxxflags="-O4"
3710          coin_dbg_cxxflags="-g"
3711        ;;
3712    esac
3713  fi
3714
3715# Generic flag settings. If these don't work, add a case above.
3716
3717  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3718    coin_dbg_cxxflags="-g"
3719  fi
3720
3721  if test -z "$coin_opt_cxxflags"; then
3722    # Try if -O option works if nothing else is set
3723    CXXFLAGS=-O
3724    cat >conftest.$ac_ext <<_ACEOF
3725/* confdefs.h.  */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h.  */
3730
3731int
3732main ()
3733{
3734int i=0; i++;
3735  ;
3736  return 0;
3737}
3738_ACEOF
3739rm -f conftest.$ac_objext conftest$ac_exeext
3740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3741  (eval $ac_link) 2>conftest.er1
3742  ac_status=$?
3743  grep -v '^ *+' conftest.er1 >conftest.err
3744  rm -f conftest.er1
3745  cat conftest.err >&5
3746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); } &&
3748         { ac_try='test -z "$ac_cxx_werror_flag"
3749                         || test ! -s conftest.err'
3750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751  (eval $ac_try) 2>&5
3752  ac_status=$?
3753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754  (exit $ac_status); }; } &&
3755         { ac_try='test -s conftest$ac_exeext'
3756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757  (eval $ac_try) 2>&5
3758  ac_status=$?
3759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760  (exit $ac_status); }; }; then
3761  coin_opt_cxxflags="-O"
3762else
3763  echo "$as_me: failed program was:" >&5
3764sed 's/^/| /' conftest.$ac_ext >&5
3765
3766fi
3767rm -f conftest.err conftest.$ac_objext \
3768      conftest$ac_exeext conftest.$ac_ext
3769  fi
3770
3771  # if PM doesn't want the warning messages, take them out
3772  if test x"$coin_skip_warn_cxxflags" = xyes; then
3773    coin_warn_cxxflags=
3774  fi
3775
3776# Do final setup of flags based on values determined above.
3777
3778  if test x${DBG_CXXFLAGS+set} != xset; then
3779    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3780  fi
3781  if test x${OPT_CXXFLAGS+set} != xset; then
3782    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3783  fi
3784
3785  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3786  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3787
3788  if test "$coin_debug_compile" = "true"; then
3789    CXXFLAGS="$DBG_CXXFLAGS"
3790  else
3791    CXXFLAGS="$OPT_CXXFLAGS"
3792  fi
3793
3794# Handle the case where CXXFLAGS was set externally.
3795else
3796  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3797  if test x${DBG_CXXFLAGS+set} != xset; then
3798    DBG_CXXFLAGS="$CXXFLAGS"
3799  fi
3800  if test x${OPT_CXXFLAGS+set} != xset; then
3801    OPT_CXXFLAGS="$CXXFLAGS"
3802  fi
3803fi
3804
3805# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3806if test x$COIN_PRJCT != x; then
3807  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3808fi
3809
3810# Try if CXXFLAGS works
3811save_CXXFLAGS="$CXXFLAGS"
3812cat >conftest.$ac_ext <<_ACEOF
3813/* confdefs.h.  */
3814_ACEOF
3815cat confdefs.h >>conftest.$ac_ext
3816cat >>conftest.$ac_ext <<_ACEOF
3817/* end confdefs.h.  */
3818
3819int
3820main ()
3821{
3822int i=0; i++;
3823  ;
3824  return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext conftest$ac_exeext
3828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3829  (eval $ac_link) 2>conftest.er1
3830  ac_status=$?
3831  grep -v '^ *+' conftest.er1 >conftest.err
3832  rm -f conftest.er1
3833  cat conftest.err >&5
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); } &&
3836         { ac_try='test -z "$ac_cxx_werror_flag"
3837                         || test ! -s conftest.err'
3838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839  (eval $ac_try) 2>&5
3840  ac_status=$?
3841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842  (exit $ac_status); }; } &&
3843         { ac_try='test -s conftest$ac_exeext'
3844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845  (eval $ac_try) 2>&5
3846  ac_status=$?
3847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848  (exit $ac_status); }; }; then
3849  :
3850else
3851  echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854CXXFLAGS=
3855fi
3856rm -f conftest.err conftest.$ac_objext \
3857      conftest$ac_exeext conftest.$ac_ext
3858if test -z "$CXXFLAGS"; then
3859  { 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
3860echo "$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;}
3861  CXXFLAGS='-O'
3862  cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h.  */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h.  */
3868
3869int
3870main ()
3871{
3872int i=0; i++;
3873  ;
3874  return 0;
3875}
3876_ACEOF
3877rm -f conftest.$ac_objext conftest$ac_exeext
3878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3879  (eval $ac_link) 2>conftest.er1
3880  ac_status=$?
3881  grep -v '^ *+' conftest.er1 >conftest.err
3882  rm -f conftest.er1
3883  cat conftest.err >&5
3884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885  (exit $ac_status); } &&
3886         { ac_try='test -z "$ac_cxx_werror_flag"
3887                         || test ! -s conftest.err'
3888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889  (eval $ac_try) 2>&5
3890  ac_status=$?
3891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892  (exit $ac_status); }; } &&
3893         { ac_try='test -s conftest$ac_exeext'
3894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895  (eval $ac_try) 2>&5
3896  ac_status=$?
3897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898  (exit $ac_status); }; }; then
3899  :
3900else
3901  echo "$as_me: failed program was:" >&5
3902sed 's/^/| /' conftest.$ac_ext >&5
3903
3904CXXFLAGS=
3905fi
3906rm -f conftest.err conftest.$ac_objext \
3907      conftest$ac_exeext conftest.$ac_ext
3908  if test -z "$CXXFLAGS"; then
3909    { 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
3910echo "$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;}
3911  fi
3912fi
3913
3914{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3915echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3916
3917
3918if test x"$MPICXX" = x; then :; else
3919  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3920echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3921  CXX="$MPICXX"
3922fi
3923
3924# correct the LD variable in a build with MS or intel compiler
3925case "$CXX" in
3926  clang* ) ;;
3927  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3928    LD=link
3929    ;;
3930esac
3931
3932ac_ext=c
3933ac_cpp='$CPP $CPPFLAGS'
3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937
3938
3939
3940# Get the name of the Fortran compiler and appropriate compiler options
3941case $build in
3942  *-cygwin* | *-mingw*)
3943     if test "$enable_msvc" = yes ; then
3944       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3945     else
3946       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3947     fi ;;
3948  *-*-solaris*)
3949     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3950  *-linux-gnu*)
3951     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3952  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3953 esac
3954
3955
3956
3957
3958
3959ac_ext=f
3960ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3961ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3963
3964
3965
3966
3967
3968
3969coin_has_f77=yes
3970
3971save_fflags="$FFLAGS"
3972
3973# We delete the cached value, since the test might not have been
3974# performed with our choice of compilers earlier
3975$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3976
3977# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3978# coin_f77_comps to see if there's a program that matches one of the names.
3979# If there's no such program, F77 = unavailable. If we match the name,
3980# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3981# compiler.
3982# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3983
3984
3985{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3986echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3987if test -n "$ac_tool_prefix"; then
3988  for ac_prog in $coin_f77_comps
3989  do
3990    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3991set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3992echo "$as_me:$LINENO: checking for $ac_word" >&5
3993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994if test "${ac_cv_prog_F77+set}" = set; then
3995  echo $ECHO_N "(cached) $ECHO_C" >&6
3996else
3997  if test -n "$F77"; then
3998  ac_cv_prog_F77="$F77" # Let the user override the test.
3999else
4000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001for as_dir in $PATH
4002do
4003  IFS=$as_save_IFS
4004  test -z "$as_dir" && as_dir=.
4005  for ac_exec_ext in '' $ac_executable_extensions; do
4006  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4007    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4008    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009    break 2
4010  fi
4011done
4012done
4013
4014fi
4015fi
4016F77=$ac_cv_prog_F77
4017if test -n "$F77"; then
4018  echo "$as_me:$LINENO: result: $F77" >&5
4019echo "${ECHO_T}$F77" >&6
4020else
4021  echo "$as_me:$LINENO: result: no" >&5
4022echo "${ECHO_T}no" >&6
4023fi
4024
4025    test -n "$F77" && break
4026  done
4027fi
4028if test -z "$F77"; then
4029  ac_ct_F77=$F77
4030  for ac_prog in $coin_f77_comps
4031do
4032  # Extract the first word of "$ac_prog", so it can be a program name with args.
4033set dummy $ac_prog; ac_word=$2
4034echo "$as_me:$LINENO: checking for $ac_word" >&5
4035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4036if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4037  echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039  if test -n "$ac_ct_F77"; then
4040  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4041else
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047  for ac_exec_ext in '' $ac_executable_extensions; do
4048  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049    ac_cv_prog_ac_ct_F77="$ac_prog"
4050    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051    break 2
4052  fi
4053done
4054done
4055
4056fi
4057fi
4058ac_ct_F77=$ac_cv_prog_ac_ct_F77
4059if test -n "$ac_ct_F77"; then
4060  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4061echo "${ECHO_T}$ac_ct_F77" >&6
4062else
4063  echo "$as_me:$LINENO: result: no" >&5
4064echo "${ECHO_T}no" >&6
4065fi
4066
4067  test -n "$ac_ct_F77" && break
4068done
4069test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4070
4071  F77=$ac_ct_F77
4072fi
4073
4074
4075if test "$F77" != "unavailable" ; then
4076  ac_ext=f
4077ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4078ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4080if test -n "$ac_tool_prefix"; then
4081  for ac_prog in $coin_f77_comps
4082  do
4083    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4085echo "$as_me:$LINENO: checking for $ac_word" >&5
4086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087if test "${ac_cv_prog_F77+set}" = set; then
4088  echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090  if test -n "$F77"; then
4091  ac_cv_prog_F77="$F77" # Let the user override the test.
4092else
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096  IFS=$as_save_IFS
4097  test -z "$as_dir" && as_dir=.
4098  for ac_exec_ext in '' $ac_executable_extensions; do
4099  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102    break 2
4103  fi
4104done
4105done
4106
4107fi
4108fi
4109F77=$ac_cv_prog_F77
4110if test -n "$F77"; then
4111  echo "$as_me:$LINENO: result: $F77" >&5
4112echo "${ECHO_T}$F77" >&6
4113else
4114  echo "$as_me:$LINENO: result: no" >&5
4115echo "${ECHO_T}no" >&6
4116fi
4117
4118    test -n "$F77" && break
4119  done
4120fi
4121if test -z "$F77"; then
4122  ac_ct_F77=$F77
4123  for ac_prog in $coin_f77_comps
4124do
4125  # Extract the first word of "$ac_prog", so it can be a program name with args.
4126set dummy $ac_prog; ac_word=$2
4127echo "$as_me:$LINENO: checking for $ac_word" >&5
4128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4130  echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132  if test -n "$ac_ct_F77"; then
4133  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4134else
4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH
4137do
4138  IFS=$as_save_IFS
4139  test -z "$as_dir" && as_dir=.
4140  for ac_exec_ext in '' $ac_executable_extensions; do
4141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142    ac_cv_prog_ac_ct_F77="$ac_prog"
4143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144    break 2
4145  fi
4146done
4147done
4148
4149fi
4150fi
4151ac_ct_F77=$ac_cv_prog_ac_ct_F77
4152if test -n "$ac_ct_F77"; then
4153  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4154echo "${ECHO_T}$ac_ct_F77" >&6
4155else
4156  echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6
4158fi
4159
4160  test -n "$ac_ct_F77" && break
4161done
4162
4163  F77=$ac_ct_F77
4164fi
4165
4166
4167# Provide some information about the compiler.
4168echo "$as_me:4168:" \
4169     "checking for Fortran 77 compiler version" >&5
4170ac_compiler=`set X $ac_compile; echo $2`
4171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4172  (eval $ac_compiler --version </dev/null >&5) 2>&5
4173  ac_status=$?
4174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175  (exit $ac_status); }
4176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4177  (eval $ac_compiler -v </dev/null >&5) 2>&5
4178  ac_status=$?
4179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180  (exit $ac_status); }
4181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4182  (eval $ac_compiler -V </dev/null >&5) 2>&5
4183  ac_status=$?
4184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185  (exit $ac_status); }
4186rm -f a.out
4187
4188# If we don't use `.F' as extension, the preprocessor is not run on the
4189# input file.  (Note that this only needs to work for GNU compilers.)
4190ac_save_ext=$ac_ext
4191ac_ext=F
4192echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4193echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4194if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4195  echo $ECHO_N "(cached) $ECHO_C" >&6
4196else
4197  cat >conftest.$ac_ext <<_ACEOF
4198      program main
4199#ifndef __GNUC__
4200       choke me
4201#endif
4202
4203      end
4204_ACEOF
4205rm -f conftest.$ac_objext
4206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4207  (eval $ac_compile) 2>conftest.er1
4208  ac_status=$?
4209  grep -v '^ *+' conftest.er1 >conftest.err
4210  rm -f conftest.er1
4211  cat conftest.err >&5
4212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213  (exit $ac_status); } &&
4214         { ac_try='test -z "$ac_f77_werror_flag"
4215                         || test ! -s conftest.err'
4216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217  (eval $ac_try) 2>&5
4218  ac_status=$?
4219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220  (exit $ac_status); }; } &&
4221         { ac_try='test -s conftest.$ac_objext'
4222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223  (eval $ac_try) 2>&5
4224  ac_status=$?
4225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226  (exit $ac_status); }; }; then
4227  ac_compiler_gnu=yes
4228else
4229  echo "$as_me: failed program was:" >&5
4230sed 's/^/| /' conftest.$ac_ext >&5
4231
4232ac_compiler_gnu=no
4233fi
4234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4235ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4236
4237fi
4238echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4239echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4240ac_ext=$ac_save_ext
4241ac_test_FFLAGS=${FFLAGS+set}
4242ac_save_FFLAGS=$FFLAGS
4243FFLAGS=
4244echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4245echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4246if test "${ac_cv_prog_f77_g+set}" = set; then
4247  echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249  FFLAGS=-g
4250cat >conftest.$ac_ext <<_ACEOF
4251      program main
4252
4253      end
4254_ACEOF
4255rm -f conftest.$ac_objext
4256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257  (eval $ac_compile) 2>conftest.er1
4258  ac_status=$?
4259  grep -v '^ *+' conftest.er1 >conftest.err
4260  rm -f conftest.er1
4261  cat conftest.err >&5
4262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263  (exit $ac_status); } &&
4264         { ac_try='test -z "$ac_f77_werror_flag"
4265                         || test ! -s conftest.err'
4266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267  (eval $ac_try) 2>&5
4268  ac_status=$?
4269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270  (exit $ac_status); }; } &&
4271         { ac_try='test -s conftest.$ac_objext'
4272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273  (eval $ac_try) 2>&5
4274  ac_status=$?
4275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276  (exit $ac_status); }; }; then
4277  ac_cv_prog_f77_g=yes
4278else
4279  echo "$as_me: failed program was:" >&5
4280sed 's/^/| /' conftest.$ac_ext >&5
4281
4282ac_cv_prog_f77_g=no
4283fi
4284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285
4286fi
4287echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4288echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4289if test "$ac_test_FFLAGS" = set; then
4290  FFLAGS=$ac_save_FFLAGS
4291elif test $ac_cv_prog_f77_g = yes; then
4292  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4293    FFLAGS="-g -O2"
4294  else
4295    FFLAGS="-g"
4296  fi
4297else
4298  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4299    FFLAGS="-O2"
4300  else
4301    FFLAGS=
4302  fi
4303fi
4304
4305G77=`test $ac_compiler_gnu = yes && echo yes`
4306ac_ext=f
4307ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4308ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4310
4311else
4312  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4313echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4314fi
4315
4316FFLAGS="$save_fflags"
4317
4318# Check if a project specific FFLAGS variable has been set
4319if test x$COIN_PRJCT != x; then
4320  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4321  if test x$coin_tmp = xset; then
4322    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4323  fi
4324fi
4325
4326if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4327
4328  coin_add_fflags=
4329  coin_opt_fflags=
4330  coin_dbg_fflags=
4331  coin_warn_fflags=
4332
4333  if test "$G77" = "yes"; then
4334    coin_opt_fflags="-O3"
4335    coin_add_fflags="-pipe"
4336    coin_dbg_fflags="-g -O0"
4337  else
4338    case $build in
4339      *-cygwin* | *-mingw*)
4340        case $F77 in
4341          ifort* | */ifort* | IFORT* | */IFORT* )
4342            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4343              coin_opt_fflags='-MD -O3'
4344              coin_dbg_fflags='-MDd -debug'
4345            else
4346              coin_opt_fflags='-MT -O3'
4347              coin_dbg_fflags='-MTd -debug'
4348            fi
4349            coin_add_fflags='-fpp -nologo'
4350          ;;
4351          compile_f2c*)
4352            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4353              coin_opt_fflags='-MD -O2'
4354              coin_dbg_fflags='-MDd'
4355            else
4356              coin_opt_fflags='-MT -O2'
4357              coin_dbg_fflags='-MTd'
4358            fi
4359            coin_add_fflags='-nologo -wd4996'
4360          ;;
4361        esac
4362        ;;
4363      *-linux-*)
4364        case $F77 in
4365          ifc* | */ifc* | ifort* | */ifort*)
4366            coin_opt_fflags="-O3 -ip"
4367            coin_add_fflags="-cm -w90 -w95"
4368            coin_dbg_fflags="-g -CA -CB -CS"
4369            # Check if -i_dynamic is necessary (for new glibc library)
4370            FFLAGS=
4371            cat >conftest.$ac_ext <<_ACEOF
4372      program main
4373      write(*,*) 'Hello world'
4374      end
4375_ACEOF
4376rm -f conftest.$ac_objext conftest$ac_exeext
4377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4378  (eval $ac_link) 2>conftest.er1
4379  ac_status=$?
4380  grep -v '^ *+' conftest.er1 >conftest.err
4381  rm -f conftest.er1
4382  cat conftest.err >&5
4383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384  (exit $ac_status); } &&
4385         { ac_try='test -z "$ac_f77_werror_flag"
4386                         || test ! -s conftest.err'
4387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388  (eval $ac_try) 2>&5
4389  ac_status=$?
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); }; } &&
4392         { ac_try='test -s conftest$ac_exeext'
4393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394  (eval $ac_try) 2>&5
4395  ac_status=$?
4396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397  (exit $ac_status); }; }; then
4398  :
4399else
4400  echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
4403coin_add_fflags="-i_dynamic $coin_add_fflags"
4404fi
4405rm -f conftest.err conftest.$ac_objext \
4406      conftest$ac_exeext conftest.$ac_ext
4407            ;;
4408          pgf77* | */pgf77* | pgf90* | */pgf90*)
4409            coin_opt_fflags="-fast"
4410            coin_add_fflags="-Kieee -pc 64"
4411            coin_dbg_fflags="-g"
4412          ;;
4413        esac
4414        ;;
4415      *-ibm-*)
4416        case "$F77" in
4417          xlf* | */xlf* | mpxlf* | */mpxlf* )
4418            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4419            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4420            coin_dbg_fflags="-g -C"
4421            ;;
4422        esac
4423        ;;
4424      *-hp-*)
4425        coin_opt_fflags="+O3"
4426        coin_add_fflags="+U77"
4427        coin_dbg_fflags="-C -g"
4428        ;;
4429      *-*-solaris*)
4430        coin_opt_fflags="-O4"
4431        coin_dbg_fflags="-g"
4432        ;;
4433      *-sgi-*)
4434        coin_opt_fflags="-O5 -OPT:Olimit=0"
4435        coin_dbg_fflags="-g"
4436        ;;
4437    esac
4438  fi
4439
4440  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4441    coin_dbg_fflags="-g"
4442  fi
4443
4444  if test -z "$coin_opt_fflags"; then
4445    # Try if -O option works if nothing else is set
4446    FFLAGS=-O
4447    cat >conftest.$ac_ext <<_ACEOF
4448      program main
4449      integer i
4450      end
4451_ACEOF
4452rm -f conftest.$ac_objext conftest$ac_exeext
4453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4454  (eval $ac_link) 2>conftest.er1
4455  ac_status=$?
4456  grep -v '^ *+' conftest.er1 >conftest.err
4457  rm -f conftest.er1
4458  cat conftest.err >&5
4459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460  (exit $ac_status); } &&
4461         { ac_try='test -z "$ac_f77_werror_flag"
4462                         || test ! -s conftest.err'
4463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464  (eval $ac_try) 2>&5
4465  ac_status=$?
4466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467  (exit $ac_status); }; } &&
4468         { ac_try='test -s conftest$ac_exeext'
4469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470  (eval $ac_try) 2>&5
4471  ac_status=$?
4472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473  (exit $ac_status); }; }; then
4474  coin_opt_fflags="-O"
4475else
4476  echo "$as_me: failed program was:" >&5
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
4479fi
4480rm -f conftest.err conftest.$ac_objext \
4481      conftest$ac_exeext conftest.$ac_ext
4482  fi
4483
4484  # if PM doesn't want the warning messages, take them out
4485  if test x"$coin_skip_warn_fflags" = xyes; then
4486    coin_warn_fflags=
4487  fi
4488
4489  if test x${DBG_FFLAGS+set} != xset; then
4490    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4491  fi
4492  if test x${OPT_FFLAGS+set} != xset; then
4493    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4494  fi
4495
4496  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4497  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4498
4499  if test "$coin_debug_compile" = "true"; then
4500    FFLAGS="$DBG_FFLAGS"
4501  else
4502    FFLAGS="$OPT_FFLAGS"
4503  fi
4504else
4505  FFLAGS="$FFLAGS $ADD_FFLAGS"
4506  if test x${DBG_FFLAGS+set} != xset; then
4507    DBG_FFLAGS="$FFLAGS"
4508  fi
4509  if test x${OPT_FFLAGS+set} != xset; then
4510    OPT_FFLAGS="$FFLAGS"
4511  fi
4512fi
4513
4514# Try if FFLAGS works
4515if test "$F77" != "unavailable" ; then
4516  cat >conftest.$ac_ext <<_ACEOF
4517      program main
4518      integer i
4519      end
4520_ACEOF
4521rm -f conftest.$ac_objext conftest$ac_exeext
4522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4523  (eval $ac_link) 2>conftest.er1
4524  ac_status=$?
4525  grep -v '^ *+' conftest.er1 >conftest.err
4526  rm -f conftest.er1
4527  cat conftest.err >&5
4528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529  (exit $ac_status); } &&
4530         { ac_try='test -z "$ac_f77_werror_flag"
4531                         || test ! -s conftest.err'
4532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533  (eval $ac_try) 2>&5
4534  ac_status=$?
4535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536  (exit $ac_status); }; } &&
4537         { ac_try='test -s conftest$ac_exeext'
4538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539  (eval $ac_try) 2>&5
4540  ac_status=$?
4541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542  (exit $ac_status); }; }; then
4543  :
4544else
4545  echo "$as_me: failed program was:" >&5
4546sed 's/^/| /' conftest.$ac_ext >&5
4547
4548FFLAGS=
4549fi
4550rm -f conftest.err conftest.$ac_objext \
4551      conftest$ac_exeext conftest.$ac_ext
4552  if test -z "$FFLAGS"; then
4553    { 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
4554echo "$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;}
4555    FFLAGS='-O'
4556    cat >conftest.$ac_ext <<_ACEOF
4557      program main
4558      integer i
4559      end
4560_ACEOF
4561rm -f conftest.$ac_objext conftest$ac_exeext
4562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4563  (eval $ac_link) 2>conftest.er1
4564  ac_status=$?
4565  grep -v '^ *+' conftest.er1 >conftest.err
4566  rm -f conftest.er1
4567  cat conftest.err >&5
4568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569  (exit $ac_status); } &&
4570         { ac_try='test -z "$ac_f77_werror_flag"
4571                         || test ! -s conftest.err'
4572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573  (eval $ac_try) 2>&5
4574  ac_status=$?
4575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576  (exit $ac_status); }; } &&
4577         { ac_try='test -s conftest$ac_exeext'
4578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579  (eval $ac_try) 2>&5
4580  ac_status=$?
4581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582  (exit $ac_status); }; }; then
4583  :
4584else
4585  echo "$as_me: failed program was:" >&5
4586sed 's/^/| /' conftest.$ac_ext >&5
4587
4588FFLAGS=
4589fi
4590rm -f conftest.err conftest.$ac_objext \
4591      conftest$ac_exeext conftest.$ac_ext
4592    if test -z "$FFLAGS"; then
4593      { 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
4594echo "$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;}
4595    fi
4596  fi
4597fi
4598
4599{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4600echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4601
4602
4603if test x"$MPIF77" = x; then :; else
4604  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4605echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4606  F77="$MPIF77"
4607fi
4608
4609# correct the LD variable if we use the intel fortran compiler in windows
4610case "$F77" in
4611  ifort* | */ifort* | IFORT* | */IFORT*)
4612    LD=link
4613    ;;
4614esac
4615
4616ac_ext=c
4617ac_cpp='$CPP $CPPFLAGS'
4618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620ac_compiler_gnu=$ac_cv_c_compiler_gnu
4621
4622
4623
4624# Initialize automake and libtool
4625# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4626{
4627
4628
4629
4630# START
4631
4632coin_disable_shared=no
4633# Test if force_shared has been set
4634if test "x" = xforce_shared; then
4635  if test x$enable_shared = xno; then
4636    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4637echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4638   { (exit 1); exit 1; }; }
4639  fi
4640  enable_shared=yes;
4641else
4642  case $build in
4643    *-cygwin* | *-mingw*)
4644      coin_disable_shared=yes
4645      if test x"$enable_shared" = xyes; then
4646        case "$CC" in
4647          clang* )
4648            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4649echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4650            ;;
4651          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4652            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4653echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4654            ;;
4655          *gcc*)
4656            if test x"$enable_dependency_linking" = xyes; then
4657              coin_disable_shared=no
4658            else
4659              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4660echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4661            fi
4662            ;;
4663          *)
4664            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4665echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4666            ;;
4667        esac
4668      fi
4669    ;;
4670    *-aix*)
4671      coin_disable_shared=yes
4672      platform=AIX
4673      if test x"$enable_shared" = xyes; then
4674        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4675echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4676      fi
4677    ;;
4678  esac
4679fi
4680if test x"$coin_disable_shared" = xyes; then
4681  if test x"$enable_shared" = xyes; then
4682    :
4683  else
4684    # we don't disable shared, because it was not selected anyway
4685    coin_disable_shared=no
4686  fi
4687  enable_shared=no
4688fi
4689# By default, we only want the shared objects to be compiled
4690# Check whether --enable-static or --disable-static was given.
4691if test "${enable_static+set}" = set; then
4692  enableval="$enable_static"
4693  p=${PACKAGE-default}
4694    case $enableval in
4695    yes) enable_static=yes ;;
4696    no) enable_static=no ;;
4697    *)
4698     enable_static=no
4699      # Look at the argument we got.  We use all the common list separators.
4700      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4701      for pkg in $enableval; do
4702        IFS="$lt_save_ifs"
4703        if test "X$pkg" = "X$p"; then
4704          enable_static=yes
4705        fi
4706      done
4707      IFS="$lt_save_ifs"
4708      ;;
4709    esac
4710else
4711  enable_static=no
4712fi;
4713
4714
4715
4716
4717# Initialize automake
4718echo "$as_me:$LINENO: checking for egrep" >&5
4719echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4720if test "${ac_cv_prog_egrep+set}" = set; then
4721  echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4724    then ac_cv_prog_egrep='grep -E'
4725    else ac_cv_prog_egrep='egrep'
4726    fi
4727fi
4728echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4729echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4730 EGREP=$ac_cv_prog_egrep
4731
4732
4733echo "$as_me:$LINENO: checking whether ln -s works" >&5
4734echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4735LN_S=$as_ln_s
4736if test "$LN_S" = "ln -s"; then
4737  echo "$as_me:$LINENO: result: yes" >&5
4738echo "${ECHO_T}yes" >&6
4739else
4740  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4741echo "${ECHO_T}no, using $LN_S" >&6
4742fi
4743
4744am__api_version="1.9"
4745# Find a good install program.  We prefer a C program (faster),
4746# so one script is as good as another.  But avoid the broken or
4747# incompatible versions:
4748# SysV /etc/install, /usr/sbin/install
4749# SunOS /usr/etc/install
4750# IRIX /sbin/install
4751# AIX /bin/install
4752# AmigaOS /C/install, which installs bootblocks on floppy discs
4753# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4754# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4755# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4756# OS/2's system install, which has a completely different semantic
4757# ./install, which can be erroneously created by make from ./install.sh.
4758echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4759echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4760if test -z "$INSTALL"; then
4761if test "${ac_cv_path_install+set}" = set; then
4762  echo $ECHO_N "(cached) $ECHO_C" >&6
4763else
4764  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH
4766do
4767  IFS=$as_save_IFS
4768  test -z "$as_dir" && as_dir=.
4769  # Account for people who put trailing slashes in PATH elements.
4770case $as_dir/ in
4771  ./ | .// | /cC/* | \
4772  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4773  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4774  /usr/ucb/* ) ;;
4775  *)
4776    # OSF1 and SCO ODT 3.0 have their own names for install.
4777    # Don't use installbsd from OSF since it installs stuff as root
4778    # by default.
4779    for ac_prog in ginstall scoinst install; do
4780      for ac_exec_ext in '' $ac_executable_extensions; do
4781        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4782          if test $ac_prog = install &&
4783            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4784            # AIX install.  It has an incompatible calling convention.
4785            :
4786          elif test $ac_prog = install &&
4787            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4788            # program-specific install script used by HP pwplus--don't use.
4789            :
4790          else
4791            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4792            break 3
4793          fi
4794        fi
4795      done
4796    done
4797    ;;
4798esac
4799done
4800
4801
4802fi
4803  if test "${ac_cv_path_install+set}" = set; then
4804    INSTALL=$ac_cv_path_install
4805  else
4806    # As a last resort, use the slow shell script.  We don't cache a
4807    # path for INSTALL within a source directory, because that will
4808    # break other packages using the cache if that directory is
4809    # removed, or if the path is relative.
4810    INSTALL=$ac_install_sh
4811  fi
4812fi
4813echo "$as_me:$LINENO: result: $INSTALL" >&5
4814echo "${ECHO_T}$INSTALL" >&6
4815
4816# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4817# It thinks the first close brace ends the variable substitution.
4818test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4819
4820test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4821
4822test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4823
4824echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4825echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4826# Just in case
4827sleep 1
4828echo timestamp > conftest.file
4829# Do `set' in a subshell so we don't clobber the current shell's
4830# arguments.  Must try -L first in case configure is actually a
4831# symlink; some systems play weird games with the mod time of symlinks
4832# (eg FreeBSD returns the mod time of the symlink's containing
4833# directory).
4834if (
4835   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4836   if test "$*" = "X"; then
4837      # -L didn't work.
4838      set X `ls -t $srcdir/configure conftest.file`
4839   fi
4840   rm -f conftest.file
4841   if test "$*" != "X $srcdir/configure conftest.file" \
4842      && test "$*" != "X conftest.file $srcdir/configure"; then
4843
4844      # If neither matched, then we have a broken ls.  This can happen
4845      # if, for instance, CONFIG_SHELL is bash and it inherits a
4846      # broken ls alias from the environment.  This has actually
4847      # happened.  Such a system could not be considered "sane".
4848      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4849alias in your environment" >&5
4850echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4851alias in your environment" >&2;}
4852   { (exit 1); exit 1; }; }
4853   fi
4854
4855   test "$2" = conftest.file
4856   )
4857then
4858   # Ok.
4859   :
4860else
4861   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4862Check your system clock" >&5
4863echo "$as_me: error: newly created file is older than distributed files!
4864Check your system clock" >&2;}
4865   { (exit 1); exit 1; }; }
4866fi
4867echo "$as_me:$LINENO: result: yes" >&5
4868echo "${ECHO_T}yes" >&6
4869test "$program_prefix" != NONE &&
4870  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4871# Use a double $ so make ignores it.
4872test "$program_suffix" != NONE &&
4873  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4874# Double any \ or $.  echo might interpret backslashes.
4875# By default was `s,x,x', remove it if useless.
4876cat <<\_ACEOF >conftest.sed
4877s/[\\$]/&&/g;s/;s,x,x,$//
4878_ACEOF
4879program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4880rm conftest.sed
4881
4882# expand $ac_aux_dir to an absolute path
4883am_aux_dir=`cd $ac_aux_dir && pwd`
4884
4885test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4886# Use eval to expand $SHELL
4887if eval "$MISSING --run true"; then
4888  am_missing_run="$MISSING --run "
4889else
4890  am_missing_run=
4891  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4892echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4893fi
4894
4895if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4896  # We used to keeping the `.' as first argument, in order to
4897  # allow $(mkdir_p) to be used without argument.  As in
4898  #   $(mkdir_p) $(somedir)
4899  # where $(somedir) is conditionally defined.  However this is wrong
4900  # for two reasons:
4901  #  1. if the package is installed by a user who cannot write `.'
4902  #     make install will fail,
4903  #  2. the above comment should most certainly read
4904  #     $(mkdir_p) $(DESTDIR)$(somedir)
4905  #     so it does not work when $(somedir) is undefined and
4906  #     $(DESTDIR) is not.
4907  #  To support the latter case, we have to write
4908  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4909  #  so the `.' trick is pointless.
4910  mkdir_p='mkdir -p --'
4911else
4912  # On NextStep and OpenStep, the `mkdir' command does not
4913  # recognize any option.  It will interpret all options as
4914  # directories to create, and then abort because `.' already
4915  # exists.
4916  for d in ./-p ./--version;
4917  do
4918    test -d $d && rmdir $d
4919  done
4920  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4921  if test -f "$ac_aux_dir/mkinstalldirs"; then
4922    mkdir_p='$(mkinstalldirs)'
4923  else
4924    mkdir_p='$(install_sh) -d'
4925  fi
4926fi
4927
4928for ac_prog in gawk mawk nawk awk
4929do
4930  # Extract the first word of "$ac_prog", so it can be a program name with args.
4931set dummy $ac_prog; ac_word=$2
4932echo "$as_me:$LINENO: checking for $ac_word" >&5
4933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934if test "${ac_cv_prog_AWK+set}" = set; then
4935  echo $ECHO_N "(cached) $ECHO_C" >&6
4936else
4937  if test -n "$AWK"; then
4938  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4939else
4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943  IFS=$as_save_IFS
4944  test -z "$as_dir" && as_dir=.
4945  for ac_exec_ext in '' $ac_executable_extensions; do
4946  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947    ac_cv_prog_AWK="$ac_prog"
4948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949    break 2
4950  fi
4951done
4952done
4953
4954fi
4955fi
4956AWK=$ac_cv_prog_AWK
4957if test -n "$AWK"; then
4958  echo "$as_me:$LINENO: result: $AWK" >&5
4959echo "${ECHO_T}$AWK" >&6
4960else
4961  echo "$as_me:$LINENO: result: no" >&5
4962echo "${ECHO_T}no" >&6
4963fi
4964
4965  test -n "$AWK" && break
4966done
4967
4968echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4969echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4970set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4971if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4972  echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974  cat >conftest.make <<\_ACEOF
4975all:
4976        @echo 'ac_maketemp="$(MAKE)"'
4977_ACEOF
4978# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4979eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4980if test -n "$ac_maketemp"; then
4981  eval ac_cv_prog_make_${ac_make}_set=yes
4982else
4983  eval ac_cv_prog_make_${ac_make}_set=no
4984fi
4985rm -f conftest.make
4986fi
4987if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4988  echo "$as_me:$LINENO: result: yes" >&5
4989echo "${ECHO_T}yes" >&6
4990  SET_MAKE=
4991else
4992  echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6
4994  SET_MAKE="MAKE=${MAKE-make}"
4995fi
4996
4997rm -rf .tst 2>/dev/null
4998mkdir .tst 2>/dev/null
4999if test -d .tst; then
5000  am__leading_dot=.
5001else
5002  am__leading_dot=_
5003fi
5004rmdir .tst 2>/dev/null
5005
5006DEPDIR="${am__leading_dot}deps"
5007
5008          ac_config_commands="$ac_config_commands depfiles"
5009
5010
5011am_make=${MAKE-make}
5012cat > confinc << 'END'
5013am__doit:
5014        @echo done
5015.PHONY: am__doit
5016END
5017# If we don't find an include directive, just comment out the code.
5018echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5019echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5020am__include="#"
5021am__quote=
5022_am_result=none
5023# First try GNU make style include.
5024echo "include confinc" > confmf
5025# We grep out `Entering directory' and `Leaving directory'
5026# messages which can occur if `w' ends up in MAKEFLAGS.
5027# In particular we don't look at `^make:' because GNU make might
5028# be invoked under some other name (usually "gmake"), in which
5029# case it prints its new name instead of `make'.
5030if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5031   am__include=include
5032   am__quote=
5033   _am_result=GNU
5034fi
5035# Now try BSD make style include.
5036if test "$am__include" = "#"; then
5037   echo '.include "confinc"' > confmf
5038   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5039      am__include=.include
5040      am__quote="\""
5041      _am_result=BSD
5042   fi
5043fi
5044
5045
5046echo "$as_me:$LINENO: result: $_am_result" >&5
5047echo "${ECHO_T}$_am_result" >&6
5048rm -f confinc confmf
5049
5050# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5051if test "${enable_dependency_tracking+set}" = set; then
5052  enableval="$enable_dependency_tracking"
5053
5054fi;
5055if test "x$enable_dependency_tracking" != xno; then
5056  am_depcomp="$ac_aux_dir/depcomp"
5057  AMDEPBACKSLASH='\'
5058fi
5059
5060
5061if test "x$enable_dependency_tracking" != xno; then
5062  AMDEP_TRUE=
5063  AMDEP_FALSE='#'
5064else
5065  AMDEP_TRUE='#'
5066  AMDEP_FALSE=
5067fi
5068
5069
5070
5071
5072
5073
5074# AC_MSG_NOTICE([Beginning automake initialisation.])
5075# Stuff for automake
5076# test to see if srcdir already configured
5077if test "`cd $srcdir && pwd`" != "`pwd`" &&
5078   test -f $srcdir/config.status; then
5079  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5080echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5081   { (exit 1); exit 1; }; }
5082fi
5083
5084# test whether we have cygpath
5085if test -z "$CYGPATH_W"; then
5086  if (cygpath --version) >/dev/null 2>/dev/null; then
5087    CYGPATH_W='cygpath -w'
5088  else
5089    CYGPATH_W=echo
5090  fi
5091fi
5092
5093
5094# Define the identity of the package.
5095 PACKAGE='clp'
5096 VERSION='trunk'
5097
5098
5099cat >>confdefs.h <<_ACEOF
5100#define PACKAGE "$PACKAGE"
5101_ACEOF
5102
5103
5104cat >>confdefs.h <<_ACEOF
5105#define VERSION "$VERSION"
5106_ACEOF
5107
5108# Some tools Automake needs.
5109
5110ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5111
5112
5113AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5114
5115
5116AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5117
5118
5119AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5120
5121
5122MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5123
5124install_sh=${install_sh-"$am_aux_dir/install-sh"}
5125
5126# Installed binaries are usually stripped using `strip' when the user
5127# run `make install-strip'.  However `strip' might not be the right
5128# tool to use in cross-compilation environments, therefore Automake
5129# will honor the `STRIP' environment variable to overrule this program.
5130if test "$cross_compiling" != no; then
5131  if test -n "$ac_tool_prefix"; then
5132  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5133set dummy ${ac_tool_prefix}strip; ac_word=$2
5134echo "$as_me:$LINENO: checking for $ac_word" >&5
5135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5136if test "${ac_cv_prog_STRIP+set}" = set; then
5137  echo $ECHO_N "(cached) $ECHO_C" >&6
5138else
5139  if test -n "$STRIP"; then
5140  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145  IFS=$as_save_IFS
5146  test -z "$as_dir" && as_dir=.
5147  for ac_exec_ext in '' $ac_executable_extensions; do
5148  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151    break 2
5152  fi
5153done
5154done
5155
5156fi
5157fi
5158STRIP=$ac_cv_prog_STRIP
5159if test -n "$STRIP"; then
5160  echo "$as_me:$LINENO: result: $STRIP" >&5
5161echo "${ECHO_T}$STRIP" >&6
5162else
5163  echo "$as_me:$LINENO: result: no" >&5
5164echo "${ECHO_T}no" >&6
5165fi
5166
5167fi
5168if test -z "$ac_cv_prog_STRIP"; then
5169  ac_ct_STRIP=$STRIP
5170  # Extract the first word of "strip", so it can be a program name with args.
5171set dummy strip; ac_word=$2
5172echo "$as_me:$LINENO: checking for $ac_word" >&5
5173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5175  echo $ECHO_N "(cached) $ECHO_C" >&6
5176else
5177  if test -n "$ac_ct_STRIP"; then
5178  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183  IFS=$as_save_IFS
5184  test -z "$as_dir" && as_dir=.
5185  for ac_exec_ext in '' $ac_executable_extensions; do
5186  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187    ac_cv_prog_ac_ct_STRIP="strip"
5188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189    break 2
5190  fi
5191done
5192done
5193
5194  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5195fi
5196fi
5197ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5198if test -n "$ac_ct_STRIP"; then
5199  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5200echo "${ECHO_T}$ac_ct_STRIP" >&6
5201else
5202  echo "$as_me:$LINENO: result: no" >&5
5203echo "${ECHO_T}no" >&6
5204fi
5205
5206  STRIP=$ac_ct_STRIP
5207else
5208  STRIP="$ac_cv_prog_STRIP"
5209fi
5210
5211fi
5212INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5213
5214# We need awk for the "check" target.  The system "awk" is bad on
5215# some platforms.
5216# Always define AMTAR for backward compatibility.
5217
5218AMTAR=${AMTAR-"${am_missing_run}tar"}
5219
5220am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5221
5222
5223
5224
5225depcc="$CC"   am_compiler_list=
5226
5227echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5228echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5229if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5230  echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5233  # We make a subdir and do the tests there.  Otherwise we can end up
5234  # making bogus files that we don't know about and never remove.  For
5235  # instance it was reported that on HP-UX the gcc test will end up
5236  # making a dummy file named `D' -- because `-MD' means `put the output
5237  # in D'.
5238  mkdir conftest.dir
5239  # Copy depcomp to subdir because otherwise we won't find it if we're
5240  # using a relative directory.
5241  cp "$am_depcomp" conftest.dir
5242  cd conftest.dir
5243  # We will build objects and dependencies in a subdirectory because
5244  # it helps to detect inapplicable dependency modes.  For instance
5245  # both Tru64's cc and ICC support -MD to output dependencies as a
5246  # side effect of compilation, but ICC will put the dependencies in
5247  # the current directory while Tru64 will put them in the object
5248  # directory.
5249  mkdir sub
5250
5251  am_cv_CC_dependencies_compiler_type=none
5252  if test "$am_compiler_list" = ""; then
5253     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5254  fi
5255  for depmode in $am_compiler_list; do
5256    # Setup a source with many dependencies, because some compilers
5257    # like to wrap large dependency lists on column 80 (with \), and
5258    # we should not choose a depcomp mode which is confused by this.
5259    #
5260    # We need to recreate these files for each test, as the compiler may
5261    # overwrite some of them when testing with obscure command lines.
5262    # This happens at least with the AIX C compiler.
5263    : > sub/conftest.c
5264    for i in 1 2 3 4 5 6; do
5265      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5266      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5267      # Solaris 8's {/usr,}/bin/sh.
5268      touch sub/conftst$i.h
5269    done
5270    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5271
5272    case $depmode in
5273    nosideeffect)
5274      # after this tag, mechanisms are not by side-effect, so they'll
5275      # only be used when explicitly requested
5276      if test "x$enable_dependency_tracking" = xyes; then
5277        continue
5278      else
5279        break
5280      fi
5281      ;;
5282    none) break ;;
5283    esac
5284    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5285    # mode.  It turns out that the SunPro C++ compiler does not properly
5286    # handle `-M -o', and we need to detect this.
5287    if depmode=$depmode \
5288       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5289       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5290       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5291         >/dev/null 2>conftest.err &&
5292       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5293       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5294       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5295      # icc doesn't choke on unknown options, it will just issue warnings
5296      # or remarks (even with -Werror).  So we grep stderr for any message
5297      # that says an option was ignored or not supported.
5298      # When given -MP, icc 7.0 and 7.1 complain thusly:
5299      #   icc: Command line warning: ignoring option '-M'; no argument required
5300      # The diagnosis changed in icc 8.0:
5301      #   icc: Command line remark: option '-MP' not supported
5302      if (grep 'ignoring option' conftest.err ||
5303          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5304        am_cv_CC_dependencies_compiler_type=$depmode
5305        break
5306      fi
5307    fi
5308  done
5309
5310  cd ..
5311  rm -rf conftest.dir
5312else
5313  am_cv_CC_dependencies_compiler_type=none
5314fi
5315
5316fi
5317echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5318echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5319CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5320
5321
5322
5323if
5324  test "x$enable_dependency_tracking" != xno \
5325  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5326  am__fastdepCC_TRUE=
5327  am__fastdepCC_FALSE='#'
5328else
5329  am__fastdepCC_TRUE='#'
5330  am__fastdepCC_FALSE=
5331fi
5332
5333
5334depcc="$CXX"  am_compiler_list=
5335
5336echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5337echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5338if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5339  echo $ECHO_N "(cached) $ECHO_C" >&6
5340else
5341  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5342  # We make a subdir and do the tests there.  Otherwise we can end up
5343  # making bogus files that we don't know about and never remove.  For
5344  # instance it was reported that on HP-UX the gcc test will end up
5345  # making a dummy file named `D' -- because `-MD' means `put the output
5346  # in D'.
5347  mkdir conftest.dir
5348  # Copy depcomp to subdir because otherwise we won't find it if we're
5349  # using a relative directory.
5350  cp "$am_depcomp" conftest.dir
5351  cd conftest.dir
5352  # We will build objects and dependencies in a subdirectory because
5353  # it helps to detect inapplicable dependency modes.  For instance
5354  # both Tru64's cc and ICC support -MD to output dependencies as a
5355  # side effect of compilation, but ICC will put the dependencies in
5356  # the current directory while Tru64 will put them in the object
5357  # directory.
5358  mkdir sub
5359
5360  am_cv_CXX_dependencies_compiler_type=none
5361  if test "$am_compiler_list" = ""; then
5362     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5363  fi
5364  for depmode in $am_compiler_list; do
5365    # Setup a source with many dependencies, because some compilers
5366    # like to wrap large dependency lists on column 80 (with \), and
5367    # we should not choose a depcomp mode which is confused by this.
5368    #
5369    # We need to recreate these files for each test, as the compiler may
5370    # overwrite some of them when testing with obscure command lines.
5371    # This happens at least with the AIX C compiler.
5372    : > sub/conftest.c
5373    for i in 1 2 3 4 5 6; do
5374      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5375      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5376      # Solaris 8's {/usr,}/bin/sh.
5377      touch sub/conftst$i.h
5378    done
5379    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5380
5381    case $depmode in
5382    nosideeffect)
5383      # after this tag, mechanisms are not by side-effect, so they'll
5384      # only be used when explicitly requested
5385      if test "x$enable_dependency_tracking" = xyes; then
5386        continue
5387      else
5388        break
5389      fi
5390      ;;
5391    none) break ;;
5392    esac
5393    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5394    # mode.  It turns out that the SunPro C++ compiler does not properly
5395    # handle `-M -o', and we need to detect this.
5396    if depmode=$depmode \
5397       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5398       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5399       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5400         >/dev/null 2>conftest.err &&
5401       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5402       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5403       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5404      # icc doesn't choke on unknown options, it will just issue warnings
5405      # or remarks (even with -Werror).  So we grep stderr for any message
5406      # that says an option was ignored or not supported.
5407      # When given -MP, icc 7.0 and 7.1 complain thusly:
5408      #   icc: Command line warning: ignoring option '-M'; no argument required
5409      # The diagnosis changed in icc 8.0:
5410      #   icc: Command line remark: option '-MP' not supported
5411      if (grep 'ignoring option' conftest.err ||
5412          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5413        am_cv_CXX_dependencies_compiler_type=$depmode
5414        break
5415      fi
5416    fi
5417  done
5418
5419  cd ..
5420  rm -rf conftest.dir
5421else
5422  am_cv_CXX_dependencies_compiler_type=none
5423fi
5424
5425fi
5426echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5427echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5428CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5429
5430
5431
5432if
5433  test "x$enable_dependency_tracking" != xno \
5434  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5435  am__fastdepCXX_TRUE=
5436  am__fastdepCXX_FALSE='#'
5437else
5438  am__fastdepCXX_TRUE='#'
5439  am__fastdepCXX_FALSE=
5440fi
5441
5442
5443
5444echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5445echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5446    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5447if test "${enable_maintainer_mode+set}" = set; then
5448  enableval="$enable_maintainer_mode"
5449  USE_MAINTAINER_MODE=$enableval
5450else
5451  USE_MAINTAINER_MODE=no
5452fi;
5453  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5454echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5455
5456
5457if test $USE_MAINTAINER_MODE = yes; then
5458  MAINTAINER_MODE_TRUE=
5459  MAINTAINER_MODE_FALSE='#'
5460else
5461  MAINTAINER_MODE_TRUE='#'
5462  MAINTAINER_MODE_FALSE=
5463fi
5464
5465  MAINT=$MAINTAINER_MODE_TRUE
5466
5467
5468
5469coin_have_externals=no
5470if test "$enable_maintainer_mode" = yes; then
5471
5472  # If maintainer mode is chosen, we make sure that the correct versions
5473  # of the tools are used, and that we know where libtool.m4 is (to
5474  # recreate acinclude.m4)
5475
5476
5477  LIBTOOLM4=
5478  # Normally, $HOME
5479  AUTOTOOLS_DFLT=$HOME
5480
5481  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5482echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5483if test "${ac_cv_use_correct_autotools+set}" = set; then
5484  echo $ECHO_N "(cached) $ECHO_C" >&6
5485else
5486  ac_cv_use_correct_autotools=check
5487fi
5488echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5489echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5490
5491  if test $ac_cv_use_correct_autotools = check; then
5492    ac_cv_use_correct_autotools=yes
5493    # Check if we have autoconf
5494    # Extract the first word of "autoconf", so it can be a program name with args.
5495set dummy autoconf; ac_word=$2
5496echo "$as_me:$LINENO: checking for $ac_word" >&5
5497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5498if test "${ac_cv_prog_have_autoconf+set}" = set; then
5499  echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501  if test -n "$have_autoconf"; then
5502  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5503else
5504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505for as_dir in $PATH
5506do
5507  IFS=$as_save_IFS
5508  test -z "$as_dir" && as_dir=.
5509  for ac_exec_ext in '' $ac_executable_extensions; do
5510  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511    ac_cv_prog_have_autoconf="yes"
5512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513    break 2
5514  fi
5515done
5516done
5517
5518  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5519fi
5520fi
5521have_autoconf=$ac_cv_prog_have_autoconf
5522if test -n "$have_autoconf"; then
5523  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5524echo "${ECHO_T}$have_autoconf" >&6
5525else
5526  echo "$as_me:$LINENO: result: no" >&5
5527echo "${ECHO_T}no" >&6
5528fi
5529
5530    if test $have_autoconf = no; then
5531      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5532echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5533   { (exit 1); exit 1; }; }
5534    fi
5535
5536    # Check whether autoconf is the correct version
5537    correct_version='2.59'
5538    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5539    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5540echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5541    autoconf --version > confauto.out 2>&1
5542    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5543      echo "$as_me:$LINENO: result: yes" >&5
5544echo "${ECHO_T}yes" >&6
5545    else
5546      rm -f confauto.out
5547      echo "$as_me:$LINENO: result: no" >&5
5548echo "${ECHO_T}no" >&6
5549      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5550echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5551   { (exit 1); exit 1; }; }
5552    fi
5553    rm -f confauto.out
5554
5555    # Check if the executable autoconf is picked up from the correct location
5556    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5557echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5558    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5559    autoconf_dir=`cd $autoconf_dir; pwd`
5560    if test x$AUTOTOOLS_DIR = x; then
5561      want_dir=$AUTOTOOLS_DFLT/bin
5562    else
5563      want_dir=$AUTOTOOLS_DIR/bin
5564    fi
5565    if test $autoconf_dir = `cd $want_dir; pwd`; then
5566      echo "$as_me:$LINENO: result: yes" >&5
5567echo "${ECHO_T}yes" >&6
5568    else
5569      rm -f confauto.out
5570      echo "$as_me:$LINENO: result: no" >&5
5571echo "${ECHO_T}no" >&6
5572      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5573echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5574   { (exit 1); exit 1; }; }
5575    fi
5576
5577    # Check if we have automake
5578    # Extract the first word of "automake", so it can be a program name with args.
5579set dummy automake; ac_word=$2
5580echo "$as_me:$LINENO: checking for $ac_word" >&5
5581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5582if test "${ac_cv_prog_have_automake+set}" = set; then
5583  echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585  if test -n "$have_automake"; then
5586  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5587else
5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591  IFS=$as_save_IFS
5592  test -z "$as_dir" && as_dir=.
5593  for ac_exec_ext in '' $ac_executable_extensions; do
5594  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595    ac_cv_prog_have_automake="yes"
5596    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5597    break 2
5598  fi
5599done
5600done
5601
5602  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5603fi
5604fi
5605have_automake=$ac_cv_prog_have_automake
5606if test -n "$have_automake"; then
5607  echo "$as_me:$LINENO: result: $have_automake" >&5
5608echo "${ECHO_T}$have_automake" >&6
5609else
5610  echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6
5612fi
5613
5614    if test $have_automake = no; then
5615      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5616echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5617   { (exit 1); exit 1; }; }
5618    fi
5619
5620    # Check whether automake is the correct version
5621    correct_version='1.9.6'
5622    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5623    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5624echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5625    automake --version > confauto.out 2>&1
5626    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5627      echo "$as_me:$LINENO: result: yes" >&5
5628echo "${ECHO_T}yes" >&6
5629    else
5630      rm -f confauto.out
5631      echo "$as_me:$LINENO: result: no" >&5
5632echo "${ECHO_T}no" >&6
5633      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5634echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5635   { (exit 1); exit 1; }; }
5636    fi
5637    rm -f confauto.out
5638
5639    # Check if the executable automake is picked up from the correct location
5640    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5641echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5642    automake_dir=`which automake | sed -e 's=/automake=='`
5643    automake_dir=`cd $automake_dir; pwd`
5644    if test x$AUTOTOOLS_DIR = x; then
5645      want_dir=$AUTOTOOLS_DFLT/bin
5646    else
5647      want_dir=$AUTOTOOLS_DIR/bin
5648    fi
5649    if test $automake_dir = `cd $want_dir; pwd`; then
5650      echo "$as_me:$LINENO: result: yes" >&5
5651echo "${ECHO_T}yes" >&6
5652    else
5653      rm -f confauto.out
5654      echo "$as_me:$LINENO: result: no" >&5
5655echo "${ECHO_T}no" >&6
5656      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5657echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5658   { (exit 1); exit 1; }; }
5659    fi
5660
5661    # Check if this is the correct version of libtool (with escaped dots)
5662    if test x$AUTOTOOLS_DIR = x; then
5663      want_dir=$AUTOTOOLS_DFLT/share
5664    else
5665      want_dir=$AUTOTOOLS_DIR/share
5666    fi
5667    correct_version='1.5.22'
5668    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5669    if test -r $want_dir/libtool/ltmain.sh; then
5670  have_ltmain=yes
5671  :
5672else
5673  have_ltmain=no
5674  :
5675fi
5676
5677    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5678echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5679    if test $have_ltmain = yes; then
5680    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5681        echo "$as_me:$LINENO: result: yes" >&5
5682echo "${ECHO_T}yes" >&6
5683      else
5684        echo "$as_me:$LINENO: result: no" >&5
5685echo "${ECHO_T}no" >&6
5686        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5687echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5688   { (exit 1); exit 1; }; }
5689      fi
5690    else
5691      echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6
5693      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5694echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5695   { (exit 1); exit 1; }; }
5696    fi
5697  fi
5698
5699  # Check if we can find the libtool file
5700  if test x$AUTOTOOLS_DIR = x; then
5701    want_dir=$AUTOTOOLS_DFLT/share
5702  else
5703    want_dir=$AUTOTOOLS_DIR/share
5704  fi
5705  if test -r $want_dir/aclocal/libtool.m4; then
5706  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5707  :
5708else
5709  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5710echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5711   { (exit 1); exit 1; }; }
5712  :
5713fi
5714
5715
5716  # Check if we have an Dependencies file
5717  if test -r $srcdir/Dependencies; then
5718    coin_have_externals=yes
5719  fi
5720  # Check if subversion is installed and understands https
5721  # Extract the first word of "svn", so it can be a program name with args.
5722set dummy svn; ac_word=$2
5723echo "$as_me:$LINENO: checking for $ac_word" >&5
5724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5725if test "${ac_cv_prog_have_svn+set}" = set; then
5726  echo $ECHO_N "(cached) $ECHO_C" >&6
5727else
5728  if test -n "$have_svn"; then
5729  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5730else
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734  IFS=$as_save_IFS
5735  test -z "$as_dir" && as_dir=.
5736  for ac_exec_ext in '' $ac_executable_extensions; do
5737  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738    ac_cv_prog_have_svn="yes"
5739    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740    break 2
5741  fi
5742done
5743done
5744
5745  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5746fi
5747fi
5748have_svn=$ac_cv_prog_have_svn
5749if test -n "$have_svn"; then
5750  echo "$as_me:$LINENO: result: $have_svn" >&5
5751echo "${ECHO_T}$have_svn" >&6
5752else
5753  echo "$as_me:$LINENO: result: no" >&5
5754echo "${ECHO_T}no" >&6
5755fi
5756
5757  if test x$have_svn = xyes; then
5758    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5759echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5760if test "${ac_cv_svn_understands_https+set}" = set; then
5761  echo $ECHO_N "(cached) $ECHO_C" >&6
5762else
5763  svn --version > confauto.out 2>&1
5764                    if $EGREP https confauto.out >/dev/null 2>&1; then
5765                      ac_cv_svn_understands_https=yes
5766                    else
5767                      ac_cv_svn_understands_https=no
5768                      have_svn=no
5769                      ac_cv_prog_have_svn=no
5770                    fi
5771                    rm -f confauto.out
5772fi
5773echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5774echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5775  fi
5776
5777  # Find the location of the BuildTools directory
5778  BUILDTOOLSDIR=
5779  if test -r $srcdir/BuildTools/coin.m4; then
5780    BUILDTOOLSDIR=$srcdir/BuildTools
5781  else
5782    if test -r $srcdir/../BuildTools/coin.m4; then
5783      BUILDTOOLSDIR=$srcdir/../BuildTools
5784    else
5785      if test -r $srcdir/../../BuildTools/coin.m4; then
5786        BUILDTOOLSDIR=$srcdir/../../BuildTools
5787      else
5788        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5789echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5790   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5791      fi
5792    fi
5793  fi
5794
5795
5796  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5797  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5798    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5799  fi
5800
5801  # The following variable is set to the name of the directory where
5802  # the autotool scripts are located
5803
5804  AUX_DIR=$ac_aux_dir
5805fi
5806
5807# helpful variable for the base directory of this package
5808abs_source_dir=`cd $srcdir; pwd`
5809
5810
5811# Stuff for example Makefiles
5812if test x$prefix = xNONE; then
5813  full_prefix=$ac_default_prefix
5814else
5815  full_prefix=$prefix
5816fi
5817full_prefix=`cd $full_prefix ; pwd`
5818
5819abs_lib_dir=$full_prefix/lib
5820
5821abs_include_dir=$full_prefix/include
5822
5823abs_bin_dir=$full_prefix/bin
5824
5825
5826
5827if test $coin_have_externals = yes && test x$have_svn = xyes; then
5828  HAVE_EXTERNALS_TRUE=
5829  HAVE_EXTERNALS_FALSE='#'
5830else
5831  HAVE_EXTERNALS_TRUE='#'
5832  HAVE_EXTERNALS_FALSE=
5833fi
5834
5835
5836# AC_MSG_NOTICE([End automake initialisation.])
5837
5838
5839
5840LIBTOOL=
5841if test -f ../libtool; then
5842  coin_config_dir=..
5843  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5844fi
5845if test "x$LIBTOOL" = x; then
5846  if test -f ../../libtool; then
5847    coin_config_dir=../..
5848    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5849  fi
5850fi
5851
5852if test "x$LIBTOOL" = x; then
5853# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5854  # Stuff for libtool
5855  # Check whether --enable-shared or --disable-shared was given.
5856if test "${enable_shared+set}" = set; then
5857  enableval="$enable_shared"
5858  p=${PACKAGE-default}
5859    case $enableval in
5860    yes) enable_shared=yes ;;
5861    no) enable_shared=no ;;
5862    *)
5863      enable_shared=no
5864      # Look at the argument we got.  We use all the common list separators.
5865      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5866      for pkg in $enableval; do
5867        IFS="$lt_save_ifs"
5868        if test "X$pkg" = "X$p"; then
5869          enable_shared=yes
5870        fi
5871      done
5872      IFS="$lt_save_ifs"
5873      ;;
5874    esac
5875else
5876  enable_shared=yes
5877fi;
5878
5879# Check whether --enable-fast-install or --disable-fast-install was given.
5880if test "${enable_fast_install+set}" = set; then
5881  enableval="$enable_fast_install"
5882  p=${PACKAGE-default}
5883    case $enableval in
5884    yes) enable_fast_install=yes ;;
5885    no) enable_fast_install=no ;;
5886    *)
5887      enable_fast_install=no
5888      # Look at the argument we got.  We use all the common list separators.
5889      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5890      for pkg in $enableval; do
5891        IFS="$lt_save_ifs"
5892        if test "X$pkg" = "X$p"; then
5893          enable_fast_install=yes
5894        fi
5895      done
5896      IFS="$lt_save_ifs"
5897      ;;
5898    esac
5899else
5900  enable_fast_install=yes
5901fi;
5902
5903echo "$as_me:$LINENO: checking host system type" >&5
5904echo $ECHO_N "checking host system type... $ECHO_C" >&6
5905if test "${ac_cv_host+set}" = set; then
5906  echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908  ac_cv_host_alias=$host_alias
5909test -z "$ac_cv_host_alias" &&
5910  ac_cv_host_alias=$ac_cv_build_alias
5911ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5912  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5913echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5914   { (exit 1); exit 1; }; }
5915
5916fi
5917echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5918echo "${ECHO_T}$ac_cv_host" >&6
5919host=$ac_cv_host
5920host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5921host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5922host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5923
5924
5925echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5926echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5927if test "${lt_cv_path_SED+set}" = set; then
5928  echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930  # Loop through the user's path and test for sed and gsed.
5931# Then use that list of sed's as ones to test for truncation.
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935  IFS=$as_save_IFS
5936  test -z "$as_dir" && as_dir=.
5937  for lt_ac_prog in sed gsed; do
5938    for ac_exec_ext in '' $ac_executable_extensions; do
5939      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5940        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5941      fi
5942    done
5943  done
5944done
5945lt_ac_max=0
5946lt_ac_count=0
5947# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5948# along with /bin/sed that truncates output.
5949for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5950  test ! -f $lt_ac_sed && continue
5951  cat /dev/null > conftest.in
5952  lt_ac_count=0
5953  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5954  # Check for GNU sed and select it if it is found.
5955  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5956    lt_cv_path_SED=$lt_ac_sed
5957    break
5958  fi
5959  while true; do
5960    cat conftest.in conftest.in >conftest.tmp
5961    mv conftest.tmp conftest.in
5962    cp conftest.in conftest.nl
5963    echo >>conftest.nl
5964    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5965    cmp -s conftest.out conftest.nl || break
5966    # 10000 chars as input seems more than enough
5967    test $lt_ac_count -gt 10 && break
5968    lt_ac_count=`expr $lt_ac_count + 1`
5969    if test $lt_ac_count -gt $lt_ac_max; then
5970      lt_ac_max=$lt_ac_count
5971      lt_cv_path_SED=$lt_ac_sed
5972    fi
5973  done
5974done
5975
5976fi
5977
5978SED=$lt_cv_path_SED
5979echo "$as_me:$LINENO: result: $SED" >&5
5980echo "${ECHO_T}$SED" >&6
5981
5982
5983# Check whether --with-gnu-ld or --without-gnu-ld was given.
5984if test "${with_gnu_ld+set}" = set; then
5985  withval="$with_gnu_ld"
5986  test "$withval" = no || with_gnu_ld=yes
5987else
5988  with_gnu_ld=no
5989fi;
5990ac_prog=ld
5991if test "$GCC" = yes; then
5992  # Check if gcc -print-prog-name=ld gives a path.
5993  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5994echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5995  case $host in
5996  *-*-mingw*)
5997    # gcc leaves a trailing carriage return which upsets mingw
5998    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5999  *)
6000    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6001  esac
6002  case $ac_prog in
6003    # Accept absolute paths.
6004    [\\/]* | ?:[\\/]*)
6005      re_direlt='/[^/][^/]*/\.\./'
6006      # Canonicalize the pathname of ld
6007      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6008      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6009        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6010      done
6011      test -z "$LD" && LD="$ac_prog"
6012      ;;
6013  "")
6014    # If it fails, then pretend we aren't using GCC.
6015    ac_prog=ld
6016    ;;
6017  *)
6018    # If it is relative, then search for the first ld in PATH.
6019    with_gnu_ld=unknown
6020    ;;
6021  esac
6022elif test "$with_gnu_ld" = yes; then
6023  echo "$as_me:$LINENO: checking for GNU ld" >&5
6024echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6025else
6026  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6027echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6028fi
6029if test "${lt_cv_path_LD+set}" = set; then
6030  echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032  if test -z "$LD"; then
6033  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6034  for ac_dir in $PATH; do
6035    IFS="$lt_save_ifs"
6036    test -z "$ac_dir" && ac_dir=.
6037    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6038      lt_cv_path_LD="$ac_dir/$ac_prog"
6039      # Check to see if the program is GNU ld.  I'd rather use --version,
6040      # but apparently some variants of GNU ld only accept -v.
6041      # Break only if it was the GNU/non-GNU ld that we prefer.
6042      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6043      *GNU* | *'with BFD'*)
6044        test "$with_gnu_ld" != no && break
6045        ;;
6046      *)
6047        test "$with_gnu_ld" != yes && break
6048        ;;
6049      esac
6050    fi
6051  done
6052  IFS="$lt_save_ifs"
6053else
6054  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6055fi
6056fi
6057
6058LD="$lt_cv_path_LD"
6059if test -n "$LD"; then
6060  echo "$as_me:$LINENO: result: $LD" >&5
6061echo "${ECHO_T}$LD" >&6
6062else
6063  echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6
6065fi
6066test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6067echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6068   { (exit 1); exit 1; }; }
6069echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6070echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6071if test "${lt_cv_prog_gnu_ld+set}" = set; then
6072  echo $ECHO_N "(cached) $ECHO_C" >&6
6073else
6074  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6075case `$LD -v 2>&1 </dev/null` in
6076*GNU* | *'with BFD'*)
6077  lt_cv_prog_gnu_ld=yes
6078  ;;
6079*)
6080  lt_cv_prog_gnu_ld=no
6081  ;;
6082esac
6083fi
6084echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6085echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6086with_gnu_ld=$lt_cv_prog_gnu_ld
6087
6088
6089echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6090echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6091if test "${lt_cv_ld_reload_flag+set}" = set; then
6092  echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094  lt_cv_ld_reload_flag='-r'
6095fi
6096echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6097echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6098reload_flag=$lt_cv_ld_reload_flag
6099case $reload_flag in
6100"" | " "*) ;;
6101*) reload_flag=" $reload_flag" ;;
6102esac
6103reload_cmds='$LD$reload_flag -o $output$reload_objs'
6104case $host_os in
6105  darwin*)
6106    if test "$GCC" = yes; then
6107      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6108    else
6109      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6110    fi
6111    ;;
6112esac
6113
6114echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6115echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6116if test "${lt_cv_path_NM+set}" = set; then
6117  echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119  if test -n "$NM"; then
6120  # Let the user override the test.
6121  lt_cv_path_NM="$NM"
6122else
6123  lt_nm_to_check="${ac_tool_prefix}nm"
6124  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6125    lt_nm_to_check="$lt_nm_to_check nm"
6126  fi
6127  for lt_tmp_nm in $lt_nm_to_check; do
6128    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6129    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6130      IFS="$lt_save_ifs"
6131      test -z "$ac_dir" && ac_dir=.
6132      tmp_nm="$ac_dir/$lt_tmp_nm"
6133      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6134        # Check to see if the nm accepts a BSD-compat flag.
6135        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6136        #   nm: unknown option "B" ignored
6137        # Tru64's nm complains that /dev/null is an invalid object file
6138        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6139        */dev/null* | *'Invalid file or object type'*)
6140          lt_cv_path_NM="$tmp_nm -B"
6141          break
6142          ;;
6143        *)
6144          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6145          */dev/null*)
6146            lt_cv_path_NM="$tmp_nm -p"
6147            break
6148            ;;
6149          *)
6150            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6151            continue # so that we can try to find one that supports BSD flags
6152            ;;
6153          esac
6154          ;;
6155        esac
6156      fi
6157    done
6158    IFS="$lt_save_ifs"
6159  done
6160  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6161fi
6162fi
6163echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6164echo "${ECHO_T}$lt_cv_path_NM" >&6
6165NM="$lt_cv_path_NM"
6166
6167echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6168echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6169if test "${lt_cv_deplibs_check_method+set}" = set; then
6170  echo $ECHO_N "(cached) $ECHO_C" >&6
6171else
6172  lt_cv_file_magic_cmd='$MAGIC_CMD'
6173lt_cv_file_magic_test_file=
6174lt_cv_deplibs_check_method='unknown'
6175# Need to set the preceding variable on all platforms that support
6176# interlibrary dependencies.
6177# 'none' -- dependencies not supported.
6178# `unknown' -- same as none, but documents that we really don't know.
6179# 'pass_all' -- all dependencies passed with no checks.
6180# 'test_compile' -- check by making test program.
6181# 'file_magic [[regex]]' -- check by looking for files in library path
6182# which responds to the $file_magic_cmd with a given extended regex.
6183# If you have `file' or equivalent on your system and you're not sure
6184# whether `pass_all' will *always* work, you probably want this one.
6185
6186case $host_os in
6187aix4* | aix5*)
6188  lt_cv_deplibs_check_method=pass_all
6189  ;;
6190
6191beos*)
6192  lt_cv_deplibs_check_method=pass_all
6193  ;;
6194
6195bsdi[45]*)
6196  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6197  lt_cv_file_magic_cmd='/usr/bin/file -L'
6198  lt_cv_file_magic_test_file=/shlib/libc.so
6199  ;;
6200
6201cygwin*)
6202  # func_win32_libid is a shell function defined in ltmain.sh
6203  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6204  lt_cv_file_magic_cmd='func_win32_libid'
6205  ;;
6206
6207mingw* | pw32*)
6208  # Base MSYS/MinGW do not provide the 'file' command needed by
6209  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6210  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6211  lt_cv_file_magic_cmd='$OBJDUMP -f'
6212  ;;
6213
6214darwin* | rhapsody*)
6215  lt_cv_deplibs_check_method=pass_all
6216  ;;
6217
6218freebsd* | kfreebsd*-gnu | dragonfly*)
6219  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6220    case $host_cpu in
6221    i*86 )
6222      # Not sure whether the presence of OpenBSD here was a mistake.
6223      # Let's accept both of them until this is cleared up.
6224      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6225      lt_cv_file_magic_cmd=/usr/bin/file
6226      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6227      ;;
6228    esac
6229  else
6230    lt_cv_deplibs_check_method=pass_all
6231  fi
6232  ;;
6233
6234gnu*)
6235  lt_cv_deplibs_check_method=pass_all
6236  ;;
6237
6238hpux10.20* | hpux11*)
6239  lt_cv_file_magic_cmd=/usr/bin/file
6240  case $host_cpu in
6241  ia64*)
6242    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6243    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6244    ;;
6245  hppa*64*)
6246    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]'
6247    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6248    ;;
6249  *)
6250    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6251    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6252    ;;
6253  esac
6254  ;;
6255
6256interix3*)
6257  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6258  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6259  ;;
6260
6261irix5* | irix6* | nonstopux*)
6262  case $LD in
6263  *-32|*"-32 ") libmagic=32-bit;;
6264  *-n32|*"-n32 ") libmagic=N32;;
6265  *-64|*"-64 ") libmagic=64-bit;;
6266  *) libmagic=never-match;;
6267  esac
6268  lt_cv_deplibs_check_method=pass_all
6269  ;;
6270
6271# This must be Linux ELF.
6272linux*)
6273  lt_cv_deplibs_check_method=pass_all
6274  ;;
6275
6276netbsd*)
6277  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6278    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6279  else
6280    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6281  fi
6282  ;;
6283
6284newos6*)
6285  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6286  lt_cv_file_magic_cmd=/usr/bin/file
6287  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6288  ;;
6289
6290nto-qnx*)
6291  lt_cv_deplibs_check_method=unknown
6292  ;;
6293
6294openbsd*)
6295  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6296    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6297  else
6298    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6299  fi
6300  ;;
6301
6302osf3* | osf4* | osf5*)
6303  lt_cv_deplibs_check_method=pass_all
6304  ;;
6305
6306solaris*)
6307  lt_cv_deplibs_check_method=pass_all
6308  ;;
6309
6310sysv4 | sysv4.3*)
6311  case $host_vendor in
6312  motorola)
6313    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]'
6314    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6315    ;;
6316  ncr)
6317    lt_cv_deplibs_check_method=pass_all
6318    ;;
6319  sequent)
6320    lt_cv_file_magic_cmd='/bin/file'
6321    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6322    ;;
6323  sni)
6324    lt_cv_file_magic_cmd='/bin/file'
6325    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6326    lt_cv_file_magic_test_file=/lib/libc.so
6327    ;;
6328  siemens)
6329    lt_cv_deplibs_check_method=pass_all
6330    ;;
6331  pc)
6332    lt_cv_deplibs_check_method=pass_all
6333    ;;
6334  esac
6335  ;;
6336
6337sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6338  lt_cv_deplibs_check_method=pass_all
6339  ;;
6340esac
6341
6342fi
6343echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6344echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6345file_magic_cmd=$lt_cv_file_magic_cmd
6346deplibs_check_method=$lt_cv_deplibs_check_method
6347test -z "$deplibs_check_method" && deplibs_check_method=unknown
6348
6349
6350
6351
6352# If no C compiler was specified, use CC.
6353LTCC=${LTCC-"$CC"}
6354
6355# If no C compiler flags were specified, use CFLAGS.
6356LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6357
6358# Allow CC to be a program name with arguments.
6359compiler=$CC
6360
6361# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6362if test "${enable_libtool_lock+set}" = set; then
6363  enableval="$enable_libtool_lock"
6364
6365fi;
6366test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6367
6368# Some flags need to be propagated to the compiler or linker for good
6369# libtool support.
6370case $host in
6371ia64-*-hpux*)
6372  # Find out which ABI we are using.
6373  echo 'int i;' > conftest.$ac_ext
6374  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375  (eval $ac_compile) 2>&5
6376  ac_status=$?
6377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378  (exit $ac_status); }; then
6379    case `/usr/bin/file conftest.$ac_objext` in
6380    *ELF-32*)
6381      HPUX_IA64_MODE="32"
6382      ;;
6383    *ELF-64*)
6384      HPUX_IA64_MODE="64"
6385      ;;
6386    esac
6387  fi
6388  rm -rf conftest*
6389  ;;
6390*-*-irix6*)
6391  # Find out which ABI we are using.
6392  echo '#line 6392 "configure"' > conftest.$ac_ext
6393  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394  (eval $ac_compile) 2>&5
6395  ac_status=$?
6396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397  (exit $ac_status); }; then
6398   if test "$lt_cv_prog_gnu_ld" = yes; then
6399    case `/usr/bin/file conftest.$ac_objext` in
6400    *32-bit*)
6401      LD="${LD-ld} -melf32bsmip"
6402      ;;
6403    *N32*)
6404      LD="${LD-ld} -melf32bmipn32"
6405      ;;
6406    *64-bit*)
6407      LD="${LD-ld} -melf64bmip"
6408      ;;
6409    esac
6410   else
6411    case `/usr/bin/file conftest.$ac_objext` in
6412    *32-bit*)
6413      LD="${LD-ld} -32"
6414      ;;
6415    *N32*)
6416      LD="${LD-ld} -n32"
6417      ;;
6418    *64-bit*)
6419      LD="${LD-ld} -64"
6420      ;;
6421    esac
6422   fi
6423  fi
6424  rm -rf conftest*
6425  ;;
6426
6427x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6428  # Find out which ABI we are using.
6429  echo 'int i;' > conftest.$ac_ext
6430  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431  (eval $ac_compile) 2>&5
6432  ac_status=$?
6433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434  (exit $ac_status); }; then
6435    case `/usr/bin/file conftest.o` in
6436    *32-bit*)
6437      case $host in
6438        x86_64-*linux*)
6439          LD="${LD-ld} -m elf_i386"
6440          ;;
6441        ppc64-*linux*|powerpc64-*linux*)
6442          LD="${LD-ld} -m elf32ppclinux"
6443          ;;
6444        s390x-*linux*)
6445          LD="${LD-ld} -m elf_s390"
6446          ;;
6447        sparc64-*linux*)
6448          LD="${LD-ld} -m elf32_sparc"
6449          ;;
6450      esac
6451      ;;
6452    *64-bit*)
6453      case $host in
6454        x86_64-*linux*)
6455          LD="${LD-ld} -m elf_x86_64"
6456          ;;
6457        ppc*-*linux*|powerpc*-*linux*)
6458          LD="${LD-ld} -m elf64ppc"
6459          ;;
6460        s390*-*linux*)
6461          LD="${LD-ld} -m elf64_s390"
6462          ;;
6463        sparc*-*linux*)
6464          LD="${LD-ld} -m elf64_sparc"
6465          ;;
6466      esac
6467      ;;
6468    esac
6469  fi
6470  rm -rf conftest*
6471  ;;
6472
6473*-*-sco3.2v5*)
6474  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6475  SAVE_CFLAGS="$CFLAGS"
6476  CFLAGS="$CFLAGS -belf"
6477  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6478echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6479if test "${lt_cv_cc_needs_belf+set}" = set; then
6480  echo $ECHO_N "(cached) $ECHO_C" >&6
6481else
6482  ac_ext=c
6483ac_cpp='$CPP $CPPFLAGS'
6484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6486ac_compiler_gnu=$ac_cv_c_compiler_gnu
6487
6488     cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h.  */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h.  */
6494
6495int
6496main ()
6497{
6498
6499  ;
6500  return 0;
6501}
6502_ACEOF
6503rm -f conftest.$ac_objext conftest$ac_exeext
6504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505  (eval $ac_link) 2>conftest.er1
6506  ac_status=$?
6507  grep -v '^ *+' conftest.er1 >conftest.err
6508  rm -f conftest.er1
6509  cat conftest.err >&5
6510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511  (exit $ac_status); } &&
6512         { ac_try='test -z "$ac_c_werror_flag"
6513                         || test ! -s conftest.err'
6514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515  (eval $ac_try) 2>&5
6516  ac_status=$?
6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518  (exit $ac_status); }; } &&
6519         { ac_try='test -s conftest$ac_exeext'
6520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521  (eval $ac_try) 2>&5
6522  ac_status=$?
6523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524  (exit $ac_status); }; }; then
6525  lt_cv_cc_needs_belf=yes
6526else
6527  echo "$as_me: failed program was:" >&5
6528sed 's/^/| /' conftest.$ac_ext >&5
6529
6530lt_cv_cc_needs_belf=no
6531fi
6532rm -f conftest.err conftest.$ac_objext \
6533      conftest$ac_exeext conftest.$ac_ext
6534     ac_ext=c
6535ac_cpp='$CPP $CPPFLAGS'
6536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538ac_compiler_gnu=$ac_cv_c_compiler_gnu
6539
6540fi
6541echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6542echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6543  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6544    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6545    CFLAGS="$SAVE_CFLAGS"
6546  fi
6547  ;;
6548sparc*-*solaris*)
6549  # Find out which ABI we are using.
6550  echo 'int i;' > conftest.$ac_ext
6551  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552  (eval $ac_compile) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); }; then
6556    case `/usr/bin/file conftest.o` in
6557    *64-bit*)
6558      case $lt_cv_prog_gnu_ld in
6559      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6560      *)    LD="${LD-ld} -64" ;;
6561      esac
6562      ;;
6563    esac
6564  fi
6565  rm -rf conftest*
6566  ;;
6567
6568
6569esac
6570
6571need_locks="$enable_libtool_lock"
6572
6573
6574ac_ext=c
6575ac_cpp='$CPP $CPPFLAGS'
6576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6580echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6581# On Suns, sometimes $CPP names a directory.
6582if test -n "$CPP" && test -d "$CPP"; then
6583  CPP=
6584fi
6585if test -z "$CPP"; then
6586  if test "${ac_cv_prog_CPP+set}" = set; then
6587  echo $ECHO_N "(cached) $ECHO_C" >&6
6588else
6589      # Double quotes because CPP needs to be expanded
6590    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6591    do
6592      ac_preproc_ok=false
6593for ac_c_preproc_warn_flag in '' yes
6594do
6595  # Use a header file that comes with gcc, so configuring glibc
6596  # with a fresh cross-compiler works.
6597  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6598  # <limits.h> exists even on freestanding compilers.
6599  # On the NeXT, cc -E runs the code through the compiler's parser,
6600  # not just through cpp. "Syntax error" is here to catch this case.
6601  cat >conftest.$ac_ext <<_ACEOF
6602/* confdefs.h.  */
6603_ACEOF
6604cat confdefs.h >>conftest.$ac_ext
6605cat >>conftest.$ac_ext <<_ACEOF
6606/* end confdefs.h.  */
6607#ifdef __STDC__
6608# include <limits.h>
6609#else
6610# include <assert.h>
6611#endif
6612                     Syntax error
6613_ACEOF
6614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6615  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6616  ac_status=$?
6617  grep -v '^ *+' conftest.er1 >conftest.err
6618  rm -f conftest.er1
6619  cat conftest.err >&5
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); } >/dev/null; then
6622  if test -s conftest.err; then
6623    ac_cpp_err=$ac_c_preproc_warn_flag
6624    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6625  else
6626    ac_cpp_err=
6627  fi
6628else
6629  ac_cpp_err=yes
6630fi
6631if test -z "$ac_cpp_err"; then
6632  :
6633else
6634  echo "$as_me: failed program was:" >&5
6635sed 's/^/| /' conftest.$ac_ext >&5
6636
6637  # Broken: fails on valid input.
6638continue
6639fi
6640rm -f conftest.err conftest.$ac_ext
6641
6642  # OK, works on sane cases.  Now check whether non-existent headers
6643  # can be detected and how.
6644  cat >conftest.$ac_ext <<_ACEOF
6645/* confdefs.h.  */
6646_ACEOF
6647cat confdefs.h >>conftest.$ac_ext
6648cat >>conftest.$ac_ext <<_ACEOF
6649/* end confdefs.h.  */
6650#include <ac_nonexistent.h>
6651_ACEOF
6652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6653  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6654  ac_status=$?
6655  grep -v '^ *+' conftest.er1 >conftest.err
6656  rm -f conftest.er1
6657  cat conftest.err >&5
6658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659  (exit $ac_status); } >/dev/null; then
6660  if test -s conftest.err; then
6661    ac_cpp_err=$ac_c_preproc_warn_flag
6662    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6663  else
6664    ac_cpp_err=
6665  fi
6666else
6667  ac_cpp_err=yes
6668fi
6669if test -z "$ac_cpp_err"; then
6670  # Broken: success on invalid input.
6671continue
6672else
6673  echo "$as_me: failed program was:" >&5
6674sed 's/^/| /' conftest.$ac_ext >&5
6675
6676  # Passes both tests.
6677ac_preproc_ok=:
6678break
6679fi
6680rm -f conftest.err conftest.$ac_ext
6681
6682done
6683# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6684rm -f conftest.err conftest.$ac_ext
6685if $ac_preproc_ok; then
6686  break
6687fi
6688
6689    done
6690    ac_cv_prog_CPP=$CPP
6691
6692fi
6693  CPP=$ac_cv_prog_CPP
6694else
6695  ac_cv_prog_CPP=$CPP
6696fi
6697echo "$as_me:$LINENO: result: $CPP" >&5
6698echo "${ECHO_T}$CPP" >&6
6699ac_preproc_ok=false
6700for ac_c_preproc_warn_flag in '' yes
6701do
6702  # Use a header file that comes with gcc, so configuring glibc
6703  # with a fresh cross-compiler works.
6704  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6705  # <limits.h> exists even on freestanding compilers.
6706  # On the NeXT, cc -E runs the code through the compiler's parser,
6707  # not just through cpp. "Syntax error" is here to catch this case.
6708  cat >conftest.$ac_ext <<_ACEOF
6709/* confdefs.h.  */
6710_ACEOF
6711cat confdefs.h >>conftest.$ac_ext
6712cat >>conftest.$ac_ext <<_ACEOF
6713/* end confdefs.h.  */
6714#ifdef __STDC__
6715# include <limits.h>
6716#else
6717# include <assert.h>
6718#endif
6719                     Syntax error
6720_ACEOF
6721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6722  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6723  ac_status=$?
6724  grep -v '^ *+' conftest.er1 >conftest.err
6725  rm -f conftest.er1
6726  cat conftest.err >&5
6727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728  (exit $ac_status); } >/dev/null; then
6729  if test -s conftest.err; then
6730    ac_cpp_err=$ac_c_preproc_warn_flag
6731    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6732  else
6733    ac_cpp_err=
6734  fi
6735else
6736  ac_cpp_err=yes
6737fi
6738if test -z "$ac_cpp_err"; then
6739  :
6740else
6741  echo "$as_me: failed program was:" >&5
6742sed 's/^/| /' conftest.$ac_ext >&5
6743
6744  # Broken: fails on valid input.
6745continue
6746fi
6747rm -f conftest.err conftest.$ac_ext
6748
6749  # OK, works on sane cases.  Now check whether non-existent headers
6750  # can be detected and how.
6751  cat >conftest.$ac_ext <<_ACEOF
6752/* confdefs.h.  */
6753_ACEOF
6754cat confdefs.h >>conftest.$ac_ext
6755cat >>conftest.$ac_ext <<_ACEOF
6756/* end confdefs.h.  */
6757#include <ac_nonexistent.h>
6758_ACEOF
6759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6760  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6761  ac_status=$?
6762  grep -v '^ *+' conftest.er1 >conftest.err
6763  rm -f conftest.er1
6764  cat conftest.err >&5
6765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766  (exit $ac_status); } >/dev/null; then
6767  if test -s conftest.err; then
6768    ac_cpp_err=$ac_c_preproc_warn_flag
6769    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6770  else
6771    ac_cpp_err=
6772  fi
6773else
6774  ac_cpp_err=yes
6775fi
6776if test -z "$ac_cpp_err"; then
6777  # Broken: success on invalid input.
6778continue
6779else
6780  echo "$as_me: failed program was:" >&5
6781sed 's/^/| /' conftest.$ac_ext >&5
6782
6783  # Passes both tests.
6784ac_preproc_ok=:
6785break
6786fi
6787rm -f conftest.err conftest.$ac_ext
6788
6789done
6790# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6791rm -f conftest.err conftest.$ac_ext
6792if $ac_preproc_ok; then
6793  :
6794else
6795  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6796See \`config.log' for more details." >&5
6797echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6798See \`config.log' for more details." >&2;}
6799   { (exit 1); exit 1; }; }
6800fi
6801
6802ac_ext=c
6803ac_cpp='$CPP $CPPFLAGS'
6804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806ac_compiler_gnu=$ac_cv_c_compiler_gnu
6807
6808
6809echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6810echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6811if test "${ac_cv_header_stdc+set}" = set; then
6812  echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814  cat >conftest.$ac_ext <<_ACEOF
6815/* confdefs.h.  */
6816_ACEOF
6817cat confdefs.h >>conftest.$ac_ext
6818cat >>conftest.$ac_ext <<_ACEOF
6819/* end confdefs.h.  */
6820#include <stdlib.h>
6821#include <stdarg.h>
6822#include <string.h>
6823#include <float.h>
6824
6825int
6826main ()
6827{
6828
6829  ;
6830  return 0;
6831}
6832_ACEOF
6833rm -f conftest.$ac_objext
6834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6835  (eval $ac_compile) 2>conftest.er1
6836  ac_status=$?
6837  grep -v '^ *+' conftest.er1 >conftest.err
6838  rm -f conftest.er1
6839  cat conftest.err >&5
6840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841  (exit $ac_status); } &&
6842         { ac_try='test -z "$ac_c_werror_flag"
6843                         || test ! -s conftest.err'
6844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845  (eval $ac_try) 2>&5
6846  ac_status=$?
6847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848  (exit $ac_status); }; } &&
6849         { ac_try='test -s conftest.$ac_objext'
6850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851  (eval $ac_try) 2>&5
6852  ac_status=$?
6853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854  (exit $ac_status); }; }; then
6855  ac_cv_header_stdc=yes
6856else
6857  echo "$as_me: failed program was:" >&5
6858sed 's/^/| /' conftest.$ac_ext >&5
6859
6860ac_cv_header_stdc=no
6861fi
6862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6863
6864if test $ac_cv_header_stdc = yes; then
6865  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6866  cat >conftest.$ac_ext <<_ACEOF
6867/* confdefs.h.  */
6868_ACEOF
6869cat confdefs.h >>conftest.$ac_ext
6870cat >>conftest.$ac_ext <<_ACEOF
6871/* end confdefs.h.  */
6872#include <string.h>
6873
6874_ACEOF
6875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6876  $EGREP "memchr" >/dev/null 2>&1; then
6877  :
6878else
6879  ac_cv_header_stdc=no
6880fi
6881rm -f conftest*
6882
6883fi
6884
6885if test $ac_cv_header_stdc = yes; then
6886  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6887  cat >conftest.$ac_ext <<_ACEOF
6888/* confdefs.h.  */
6889_ACEOF
6890cat confdefs.h >>conftest.$ac_ext
6891cat >>conftest.$ac_ext <<_ACEOF
6892/* end confdefs.h.  */
6893#include <stdlib.h>
6894
6895_ACEOF
6896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6897  $EGREP "free" >/dev/null 2>&1; then
6898  :
6899else
6900  ac_cv_header_stdc=no
6901fi
6902rm -f conftest*
6903
6904fi
6905
6906if test $ac_cv_header_stdc = yes; then
6907  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6908  if test "$cross_compiling" = yes; then
6909  :
6910else
6911  cat >conftest.$ac_ext <<_ACEOF
6912/* confdefs.h.  */
6913_ACEOF
6914cat confdefs.h >>conftest.$ac_ext
6915cat >>conftest.$ac_ext <<_ACEOF
6916/* end confdefs.h.  */
6917#include <ctype.h>
6918#if ((' ' & 0x0FF) == 0x020)
6919# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6920# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6921#else
6922# define ISLOWER(c) \
6923                   (('a' <= (c) && (c) <= 'i') \
6924                     || ('j' <= (c) && (c) <= 'r') \
6925                     || ('s' <= (c) && (c) <= 'z'))
6926# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6927#endif
6928
6929#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6930int
6931main ()
6932{
6933  int i;
6934  for (i = 0; i < 256; i++)
6935    if (XOR (islower (i), ISLOWER (i))
6936        || toupper (i) != TOUPPER (i))
6937      exit(2);
6938  exit (0);
6939}
6940_ACEOF
6941rm -f conftest$ac_exeext
6942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943  (eval $ac_link) 2>&5
6944  ac_status=$?
6945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948  (eval $ac_try) 2>&5
6949  ac_status=$?
6950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951  (exit $ac_status); }; }; then
6952  :
6953else
6954  echo "$as_me: program exited with status $ac_status" >&5
6955echo "$as_me: failed program was:" >&5
6956sed 's/^/| /' conftest.$ac_ext >&5
6957
6958( exit $ac_status )
6959ac_cv_header_stdc=no
6960fi
6961rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6962fi
6963fi
6964fi
6965echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6966echo "${ECHO_T}$ac_cv_header_stdc" >&6
6967if test $ac_cv_header_stdc = yes; then
6968
6969cat >>confdefs.h <<\_ACEOF
6970#define STDC_HEADERS 1
6971_ACEOF
6972
6973fi
6974
6975# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6986                  inttypes.h stdint.h unistd.h
6987do
6988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6989echo "$as_me:$LINENO: checking for $ac_header" >&5
6990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6991if eval "test \"\${$as_ac_Header+set}\" = set"; then
6992  echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
6994  cat >conftest.$ac_ext <<_ACEOF
6995/* confdefs.h.  */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h.  */
7000$ac_includes_default
7001
7002#include <$ac_header>
7003_ACEOF
7004rm -f conftest.$ac_objext
7005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006  (eval $ac_compile) 2>conftest.er1
7007  ac_status=$?
7008  grep -v '^ *+' conftest.er1 >conftest.err
7009  rm -f conftest.er1
7010  cat conftest.err >&5
7011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012  (exit $ac_status); } &&
7013         { ac_try='test -z "$ac_c_werror_flag"
7014                         || test ! -s conftest.err'
7015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016  (eval $ac_try) 2>&5
7017  ac_status=$?
7018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019  (exit $ac_status); }; } &&
7020         { ac_try='test -s conftest.$ac_objext'
7021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022  (eval $ac_try) 2>&5
7023  ac_status=$?
7024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025  (exit $ac_status); }; }; then
7026  eval "$as_ac_Header=yes"
7027else
7028  echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031eval "$as_ac_Header=no"
7032fi
7033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7034fi
7035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7037if test `eval echo '${'$as_ac_Header'}'` = yes; then
7038  cat >>confdefs.h <<_ACEOF
7039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7040_ACEOF
7041
7042fi
7043
7044done
7045
7046
7047
7048for ac_header in dlfcn.h
7049do
7050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7051if eval "test \"\${$as_ac_Header+set}\" = set"; then
7052  echo "$as_me:$LINENO: checking for $ac_header" >&5
7053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7054if eval "test \"\${$as_ac_Header+set}\" = set"; then
7055  echo $ECHO_N "(cached) $ECHO_C" >&6
7056fi
7057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7059else
7060  # Is the header compilable?
7061echo "$as_me:$LINENO: checking $ac_header usability" >&5
7062echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7063cat >conftest.$ac_ext <<_ACEOF
7064/* confdefs.h.  */
7065_ACEOF
7066cat confdefs.h >>conftest.$ac_ext
7067cat >>conftest.$ac_ext <<_ACEOF
7068/* end confdefs.h.  */
7069$ac_includes_default
7070#include <$ac_header>
7071_ACEOF
7072rm -f conftest.$ac_objext
7073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074  (eval $ac_compile) 2>conftest.er1
7075  ac_status=$?
7076  grep -v '^ *+' conftest.er1 >conftest.err
7077  rm -f conftest.er1
7078  cat conftest.err >&5
7079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080  (exit $ac_status); } &&
7081         { ac_try='test -z "$ac_c_werror_flag"
7082                         || test ! -s conftest.err'
7083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084  (eval $ac_try) 2>&5
7085  ac_status=$?
7086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087  (exit $ac_status); }; } &&
7088         { ac_try='test -s conftest.$ac_objext'
7089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090  (eval $ac_try) 2>&5
7091  ac_status=$?
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); }; }; then
7094  ac_header_compiler=yes
7095else
7096  echo "$as_me: failed program was:" >&5
7097sed 's/^/| /' conftest.$ac_ext >&5
7098
7099ac_header_compiler=no
7100fi
7101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7102echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7103echo "${ECHO_T}$ac_header_compiler" >&6
7104
7105# Is the header present?
7106echo "$as_me:$LINENO: checking $ac_header presence" >&5
7107echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7108cat >conftest.$ac_ext <<_ACEOF
7109/* confdefs.h.  */
7110_ACEOF
7111cat confdefs.h >>conftest.$ac_ext
7112cat >>conftest.$ac_ext <<_ACEOF
7113/* end confdefs.h.  */
7114#include <$ac_header>
7115_ACEOF
7116if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7117  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7118  ac_status=$?
7119  grep -v '^ *+' conftest.er1 >conftest.err
7120  rm -f conftest.er1
7121  cat conftest.err >&5
7122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123  (exit $ac_status); } >/dev/null; then
7124  if test -s conftest.err; then
7125    ac_cpp_err=$ac_c_preproc_warn_flag
7126    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7127  else
7128    ac_cpp_err=
7129  fi
7130else
7131  ac_cpp_err=yes
7132fi
7133if test -z "$ac_cpp_err"; then
7134  ac_header_preproc=yes
7135else
7136  echo "$as_me: failed program was:" >&5
7137sed 's/^/| /' conftest.$ac_ext >&5
7138
7139  ac_header_preproc=no
7140fi
7141rm -f conftest.err conftest.$ac_ext
7142echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7143echo "${ECHO_T}$ac_header_preproc" >&6
7144
7145# So?  What about this header?
7146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7147  yes:no: )
7148    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7149echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7150    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7151echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7152    ac_header_preproc=yes
7153    ;;
7154  no:yes:* )
7155    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7156echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7157    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7158echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7159    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7160echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7161    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7162echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7163    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7164echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7165    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7166echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7167    (
7168      cat <<\_ASBOX
7169## ----------------------------------------- ##
7170## Report this to coin-clp@lists.coin-or.org ##
7171## ----------------------------------------- ##
7172_ASBOX
7173    ) |
7174      sed "s/^/$as_me: WARNING:     /" >&2
7175    ;;
7176esac
7177echo "$as_me:$LINENO: checking for $ac_header" >&5
7178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7179if eval "test \"\${$as_ac_Header+set}\" = set"; then
7180  echo $ECHO_N "(cached) $ECHO_C" >&6
7181else
7182  eval "$as_ac_Header=\$ac_header_preproc"
7183fi
7184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7186
7187fi
7188if test `eval echo '${'$as_ac_Header'}'` = yes; then
7189  cat >>confdefs.h <<_ACEOF
7190#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7191_ACEOF
7192
7193fi
7194
7195done
7196
7197
7198
7199if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7200    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7201    (test "X$CXX" != "Xg++"))) ; then
7202  ac_ext=cc
7203ac_cpp='$CXXCPP $CPPFLAGS'
7204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7207echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7208echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7209if test -z "$CXXCPP"; then
7210  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7211  echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213      # Double quotes because CXXCPP needs to be expanded
7214    for CXXCPP in "$CXX -E" "/lib/cpp"
7215    do
7216      ac_preproc_ok=false
7217for ac_cxx_preproc_warn_flag in '' yes
7218do
7219  # Use a header file that comes with gcc, so configuring glibc
7220  # with a fresh cross-compiler works.
7221  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7222  # <limits.h> exists even on freestanding compilers.
7223  # On the NeXT, cc -E runs the code through the compiler's parser,
7224  # not just through cpp. "Syntax error" is here to catch this case.
7225  cat >conftest.$ac_ext <<_ACEOF
7226/* confdefs.h.  */
7227_ACEOF
7228cat confdefs.h >>conftest.$ac_ext
7229cat >>conftest.$ac_ext <<_ACEOF
7230/* end confdefs.h.  */
7231#ifdef __STDC__
7232# include <limits.h>
7233#else
7234# include <assert.h>
7235#endif
7236                     Syntax error
7237_ACEOF
7238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7239  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7240  ac_status=$?
7241  grep -v '^ *+' conftest.er1 >conftest.err
7242  rm -f conftest.er1
7243  cat conftest.err >&5
7244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245  (exit $ac_status); } >/dev/null; then
7246  if test -s conftest.err; then
7247    ac_cpp_err=$ac_cxx_preproc_warn_flag
7248    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7249  else
7250    ac_cpp_err=
7251  fi
7252else
7253  ac_cpp_err=yes
7254fi
7255if test -z "$ac_cpp_err"; then
7256  :
7257else
7258  echo "$as_me: failed program was:" >&5
7259sed 's/^/| /' conftest.$ac_ext >&5
7260
7261  # Broken: fails on valid input.
7262continue
7263fi
7264rm -f conftest.err conftest.$ac_ext
7265
7266  # OK, works on sane cases.  Now check whether non-existent headers
7267  # can be detected and how.
7268  cat >conftest.$ac_ext <<_ACEOF
7269/* confdefs.h.  */
7270_ACEOF
7271cat confdefs.h >>conftest.$ac_ext
7272cat >>conftest.$ac_ext <<_ACEOF
7273/* end confdefs.h.  */
7274#include <ac_nonexistent.h>
7275_ACEOF
7276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7277  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7278  ac_status=$?
7279  grep -v '^ *+' conftest.er1 >conftest.err
7280  rm -f conftest.er1
7281  cat conftest.err >&5
7282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283  (exit $ac_status); } >/dev/null; then
7284  if test -s conftest.err; then
7285    ac_cpp_err=$ac_cxx_preproc_warn_flag
7286    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7287  else
7288    ac_cpp_err=
7289  fi
7290else
7291  ac_cpp_err=yes
7292fi
7293if test -z "$ac_cpp_err"; then
7294  # Broken: success on invalid input.
7295continue
7296else
7297  echo "$as_me: failed program was:" >&5
7298sed 's/^/| /' conftest.$ac_ext >&5
7299
7300  # Passes both tests.
7301ac_preproc_ok=:
7302break
7303fi
7304rm -f conftest.err conftest.$ac_ext
7305
7306done
7307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7308rm -f conftest.err conftest.$ac_ext
7309if $ac_preproc_ok; then
7310  break
7311fi
7312
7313    done
7314    ac_cv_prog_CXXCPP=$CXXCPP
7315
7316fi
7317  CXXCPP=$ac_cv_prog_CXXCPP
7318else
7319  ac_cv_prog_CXXCPP=$CXXCPP
7320fi
7321echo "$as_me:$LINENO: result: $CXXCPP" >&5
7322echo "${ECHO_T}$CXXCPP" >&6
7323ac_preproc_ok=false
7324for ac_cxx_preproc_warn_flag in '' yes
7325do
7326  # Use a header file that comes with gcc, so configuring glibc
7327  # with a fresh cross-compiler works.
7328  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7329  # <limits.h> exists even on freestanding compilers.
7330  # On the NeXT, cc -E runs the code through the compiler's parser,
7331  # not just through cpp. "Syntax error" is here to catch this case.
7332  cat >conftest.$ac_ext <<_ACEOF
7333/* confdefs.h.  */
7334_ACEOF
7335cat confdefs.h >>conftest.$ac_ext
7336cat >>conftest.$ac_ext <<_ACEOF
7337/* end confdefs.h.  */
7338#ifdef __STDC__
7339# include <limits.h>
7340#else
7341# include <assert.h>
7342#endif
7343                     Syntax error
7344_ACEOF
7345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7346  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7347  ac_status=$?
7348  grep -v '^ *+' conftest.er1 >conftest.err
7349  rm -f conftest.er1
7350  cat conftest.err >&5
7351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352  (exit $ac_status); } >/dev/null; then
7353  if test -s conftest.err; then
7354    ac_cpp_err=$ac_cxx_preproc_warn_flag
7355    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7356  else
7357    ac_cpp_err=
7358  fi
7359else
7360  ac_cpp_err=yes
7361fi
7362if test -z "$ac_cpp_err"; then
7363  :
7364else
7365  echo "$as_me: failed program was:" >&5
7366sed 's/^/| /' conftest.$ac_ext >&5
7367
7368  # Broken: fails on valid input.
7369continue
7370fi
7371rm -f conftest.err conftest.$ac_ext
7372
7373  # OK, works on sane cases.  Now check whether non-existent headers
7374  # can be detected and how.
7375  cat >conftest.$ac_ext <<_ACEOF
7376/* confdefs.h.  */
7377_ACEOF
7378cat confdefs.h >>conftest.$ac_ext
7379cat >>conftest.$ac_ext <<_ACEOF
7380/* end confdefs.h.  */
7381#include <ac_nonexistent.h>
7382_ACEOF
7383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7384  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7385  ac_status=$?
7386  grep -v '^ *+' conftest.er1 >conftest.err
7387  rm -f conftest.er1
7388  cat conftest.err >&5
7389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390  (exit $ac_status); } >/dev/null; then
7391  if test -s conftest.err; then
7392    ac_cpp_err=$ac_cxx_preproc_warn_flag
7393    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7394  else
7395    ac_cpp_err=
7396  fi
7397else
7398  ac_cpp_err=yes
7399fi
7400if test -z "$ac_cpp_err"; then
7401  # Broken: success on invalid input.
7402continue
7403else
7404  echo "$as_me: failed program was:" >&5
7405sed 's/^/| /' conftest.$ac_ext >&5
7406
7407  # Passes both tests.
7408ac_preproc_ok=:
7409break
7410fi
7411rm -f conftest.err conftest.$ac_ext
7412
7413done
7414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7415rm -f conftest.err conftest.$ac_ext
7416if $ac_preproc_ok; then
7417  :
7418else
7419  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7420See \`config.log' for more details." >&5
7421echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7422See \`config.log' for more details." >&2;}
7423   { (exit 1); exit 1; }; }
7424fi
7425
7426ac_ext=cc
7427ac_cpp='$CXXCPP $CPPFLAGS'
7428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7431
7432fi
7433
7434
7435# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7436
7437# find the maximum length of command line arguments
7438echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7439echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7440if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7441  echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443    i=0
7444  teststring="ABCD"
7445
7446  case $build_os in
7447  msdosdjgpp*)
7448    # On DJGPP, this test can blow up pretty badly due to problems in libc
7449    # (any single argument exceeding 2000 bytes causes a buffer overrun
7450    # during glob expansion).  Even if it were fixed, the result of this
7451    # check would be larger than it should be.
7452    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7453    ;;
7454
7455  gnu*)
7456    # Under GNU Hurd, this test is not required because there is
7457    # no limit to the length of command line arguments.
7458    # Libtool will interpret -1 as no limit whatsoever
7459    lt_cv_sys_max_cmd_len=-1;
7460    ;;
7461
7462  cygwin* | mingw*)
7463    # On Win9x/ME, this test blows up -- it succeeds, but takes
7464    # about 5 minutes as the teststring grows exponentially.
7465    # Worse, since 9x/ME are not pre-emptively multitasking,
7466    # you end up with a "frozen" computer, even though with patience
7467    # the test eventually succeeds (with a max line length of 256k).
7468    # Instead, let's just punt: use the minimum linelength reported by
7469    # all of the supported platforms: 8192 (on NT/2K/XP).
7470    lt_cv_sys_max_cmd_len=8192;
7471    ;;
7472
7473  amigaos*)
7474    # On AmigaOS with pdksh, this test takes hours, literally.
7475    # So we just punt and use a minimum line length of 8192.
7476    lt_cv_sys_max_cmd_len=8192;
7477    ;;
7478
7479  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7480    # This has been around since 386BSD, at least.  Likely further.
7481    if test -x /sbin/sysctl; then
7482      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7483    elif test -x /usr/sbin/sysctl; then
7484      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7485    else
7486      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7487    fi
7488    # And add a safety zone
7489    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7490    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7491    ;;
7492
7493  interix*)
7494    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7495    lt_cv_sys_max_cmd_len=196608
7496    ;;
7497
7498  osf*)
7499    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7500    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7501    # nice to cause kernel panics so lets avoid the loop below.
7502    # First set a reasonable default.
7503    lt_cv_sys_max_cmd_len=16384
7504    #
7505    if test -x /sbin/sysconfig; then
7506      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7507        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7508      esac
7509    fi
7510    ;;
7511  sco3.2v5*)
7512    lt_cv_sys_max_cmd_len=102400
7513    ;;
7514  sysv5* | sco5v6* | sysv4.2uw2*)
7515    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7516    if test -n "$kargmax"; then
7517      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7518    else
7519      lt_cv_sys_max_cmd_len=32768
7520    fi
7521    ;;
7522  *)
7523    # If test is not a shell built-in, we'll probably end up computing a
7524    # maximum length that is only half of the actual maximum length, but
7525    # we can't tell.
7526    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7527    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7528               = "XX$teststring") >/dev/null 2>&1 &&
7529            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7530            lt_cv_sys_max_cmd_len=$new_result &&
7531            test $i != 17 # 1/2 MB should be enough
7532    do
7533      i=`expr $i + 1`
7534      teststring=$teststring$teststring
7535    done
7536    teststring=
7537    # Add a significant safety factor because C++ compilers can tack on massive
7538    # amounts of additional arguments before passing them to the linker.
7539    # It appears as though 1/2 is a usable value.
7540    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7541    ;;
7542  esac
7543
7544fi
7545
7546if test -n $lt_cv_sys_max_cmd_len ; then
7547  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7548echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7549else
7550  echo "$as_me:$LINENO: result: none" >&5
7551echo "${ECHO_T}none" >&6
7552fi
7553
7554
7555
7556
7557# Check for command to grab the raw symbol name followed by C symbol from nm.
7558echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7559echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7560if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7561  echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563
7564# These are sane defaults that work on at least a few old systems.
7565# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7566
7567# Character class describing NM global symbol codes.
7568symcode='[BCDEGRST]'
7569
7570# Regexp to match symbols that can be accessed directly from C.
7571sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7572
7573# Transform an extracted symbol line into a proper C declaration
7574lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7575
7576# Transform an extracted symbol line into symbol name and symbol address
7577lt_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'"
7578
7579# Define system-specific variables.
7580case $host_os in
7581aix*)
7582  symcode='[BCDT]'
7583  ;;
7584cygwin* | mingw* | pw32*)
7585  symcode='[ABCDGISTW]'
7586  ;;
7587hpux*) # Its linker distinguishes data from code symbols
7588  if test "$host_cpu" = ia64; then
7589    symcode='[ABCDEGRST]'
7590  fi
7591  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7592  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7593  ;;
7594linux*)
7595  if test "$host_cpu" = ia64; then
7596    symcode='[ABCDGIRSTW]'
7597    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7598    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'"
7599  fi
7600  ;;
7601irix* | nonstopux*)
7602  symcode='[BCDEGRST]'
7603  ;;
7604osf*)
7605  symcode='[BCDEGQRST]'
7606  ;;
7607solaris*)
7608  symcode='[BDRT]'
7609  ;;
7610sco3.2v5*)
7611  symcode='[DT]'
7612  ;;
7613sysv4.2uw2*)
7614  symcode='[DT]'
7615  ;;
7616sysv5* | sco5v6* | unixware* | OpenUNIX*)
7617  symcode='[ABDT]'
7618  ;;
7619sysv4)
7620  symcode='[DFNSTU]'
7621  ;;
7622esac
7623
7624# Handle CRLF in mingw tool chain
7625opt_cr=
7626case $build_os in
7627mingw*)
7628  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7629  ;;
7630esac
7631
7632# If we're using GNU nm, then use its standard symbol codes.
7633case `$NM -V 2>&1` in
7634*GNU* | *'with BFD'*)
7635  symcode='[ABCDGIRSTW]' ;;
7636esac
7637
7638# Try without a prefix undercore, then with it.
7639for ac_symprfx in "" "_"; do
7640
7641  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7642  symxfrm="\\1 $ac_symprfx\\2 \\2"
7643
7644  # Write the raw and C identifiers.
7645  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7646
7647  # Check to see that the pipe works correctly.
7648  pipe_works=no
7649
7650  rm -f conftest*
7651  cat > conftest.$ac_ext <<EOF
7652#ifdef __cplusplus
7653extern "C" {
7654#endif
7655char nm_test_var;
7656void nm_test_func(){}
7657#ifdef __cplusplus
7658}
7659#endif
7660int main(){nm_test_var='a';nm_test_func();return(0);}
7661EOF
7662
7663  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7664  (eval $ac_compile) 2>&5
7665  ac_status=$?
7666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667  (exit $ac_status); }; then
7668    # Now try to grab the symbols.
7669    nlist=conftest.nm
7670    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7671  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7672  ac_status=$?
7673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674  (exit $ac_status); } && test -s "$nlist"; then
7675      # Try sorting and uniquifying the output.
7676      if sort "$nlist" | uniq > "$nlist"T; then
7677        mv -f "$nlist"T "$nlist"
7678      else
7679        rm -f "$nlist"T
7680      fi
7681
7682      # Make sure that we snagged all the symbols we need.
7683      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7684        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7685          cat <<EOF > conftest.$ac_ext
7686#ifdef __cplusplus
7687extern "C" {
7688#endif
7689
7690EOF
7691          # Now generate the symbol file.
7692          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7693
7694          cat <<EOF >> conftest.$ac_ext
7695#if defined (__STDC__) && __STDC__
7696# define lt_ptr_t void *
7697#else
7698# define lt_ptr_t char *
7699# define const
7700#endif
7701
7702/* The mapping between symbol names and symbols. */
7703const struct {
7704  const char *name;
7705  lt_ptr_t address;
7706}
7707lt_preloaded_symbols[] =
7708{
7709EOF
7710          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7711          cat <<\EOF >> conftest.$ac_ext
7712  {0, (lt_ptr_t) 0}
7713};
7714
7715#ifdef __cplusplus
7716}
7717#endif
7718EOF
7719          # Now try linking the two files.
7720          mv conftest.$ac_objext conftstm.$ac_objext
7721          lt_save_LIBS="$LIBS"
7722          lt_save_CFLAGS="$CFLAGS"
7723          LIBS="conftstm.$ac_objext"
7724          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7725          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7726  (eval $ac_link) 2>&5
7727  ac_status=$?
7728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7730            pipe_works=yes
7731          fi
7732          LIBS="$lt_save_LIBS"
7733          CFLAGS="$lt_save_CFLAGS"
7734        else
7735          echo "cannot find nm_test_func in $nlist" >&5
7736        fi
7737      else
7738        echo "cannot find nm_test_var in $nlist" >&5
7739      fi
7740    else
7741      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7742    fi
7743  else
7744    echo "$progname: failed program was:" >&5
7745    cat conftest.$ac_ext >&5
7746  fi
7747  rm -f conftest* conftst*
7748
7749  # Do not use the global_symbol_pipe unless it works.
7750  if test "$pipe_works" = yes; then
7751    break
7752  else
7753    lt_cv_sys_global_symbol_pipe=
7754  fi
7755done
7756
7757fi
7758
7759if test -z "$lt_cv_sys_global_symbol_pipe"; then
7760  lt_cv_sys_global_symbol_to_cdecl=
7761fi
7762if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7763  echo "$as_me:$LINENO: result: failed" >&5
7764echo "${ECHO_T}failed" >&6
7765else
7766  echo "$as_me:$LINENO: result: ok" >&5
7767echo "${ECHO_T}ok" >&6
7768fi
7769
7770echo "$as_me:$LINENO: checking for objdir" >&5
7771echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7772if test "${lt_cv_objdir+set}" = set; then
7773  echo $ECHO_N "(cached) $ECHO_C" >&6
7774else
7775  rm -f .libs 2>/dev/null
7776mkdir .libs 2>/dev/null
7777if test -d .libs; then
7778  lt_cv_objdir=.libs
7779else
7780  # MS-DOS does not allow filenames that begin with a dot.
7781  lt_cv_objdir=_libs
7782fi
7783rmdir .libs 2>/dev/null
7784fi
7785echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7786echo "${ECHO_T}$lt_cv_objdir" >&6
7787objdir=$lt_cv_objdir
7788
7789
7790
7791
7792
7793case $host_os in
7794aix3*)
7795  # AIX sometimes has problems with the GCC collect2 program.  For some
7796  # reason, if we set the COLLECT_NAMES environment variable, the problems
7797  # vanish in a puff of smoke.
7798  if test "X${COLLECT_NAMES+set}" != Xset; then
7799    COLLECT_NAMES=
7800    export COLLECT_NAMES
7801  fi
7802  ;;
7803esac
7804
7805# Sed substitution that helps us do robust quoting.  It backslashifies
7806# metacharacters that are still active within double-quoted strings.
7807Xsed='sed -e 1s/^X//'
7808sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7809
7810# Same as above, but do not quote variable references.
7811double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7812
7813# Sed substitution to delay expansion of an escaped shell variable in a
7814# double_quote_subst'ed string.
7815delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7816
7817# Sed substitution to avoid accidental globbing in evaled expressions
7818no_glob_subst='s/\*/\\\*/g'
7819
7820# Constants:
7821rm="rm -f"
7822
7823# Global variables:
7824default_ofile=libtool
7825can_build_shared=yes
7826
7827# All known linkers require a `.a' archive for static linking (except MSVC,
7828# which needs '.lib').
7829libext=a
7830ltmain="$ac_aux_dir/ltmain.sh"
7831ofile="$default_ofile"
7832with_gnu_ld="$lt_cv_prog_gnu_ld"
7833
7834if test -n "$ac_tool_prefix"; then
7835  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7836set dummy ${ac_tool_prefix}ar; ac_word=$2
7837echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839if test "${ac_cv_prog_AR+set}" = set; then
7840  echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842  if test -n "$AR"; then
7843  ac_cv_prog_AR="$AR" # Let the user override the test.
7844else
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848  IFS=$as_save_IFS
7849  test -z "$as_dir" && as_dir=.
7850  for ac_exec_ext in '' $ac_executable_extensions; do
7851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852    ac_cv_prog_AR="${ac_tool_prefix}ar"
7853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854    break 2
7855  fi
7856done
7857done
7858
7859fi
7860fi
7861AR=$ac_cv_prog_AR
7862if test -n "$AR"; then
7863  echo "$as_me:$LINENO: result: $AR" >&5
7864echo "${ECHO_T}$AR" >&6
7865else
7866  echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
7868fi
7869
7870fi
7871if test -z "$ac_cv_prog_AR"; then
7872  ac_ct_AR=$AR
7873  # Extract the first word of "ar", so it can be a program name with args.
7874set dummy ar; ac_word=$2
7875echo "$as_me:$LINENO: checking for $ac_word" >&5
7876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7877if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7878  echo $ECHO_N "(cached) $ECHO_C" >&6
7879else
7880  if test -n "$ac_ct_AR"; then
7881  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7882else
7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886  IFS=$as_save_IFS
7887  test -z "$as_dir" && as_dir=.
7888  for ac_exec_ext in '' $ac_executable_extensions; do
7889  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890    ac_cv_prog_ac_ct_AR="ar"
7891    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892    break 2
7893  fi
7894done
7895done
7896
7897  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7898fi
7899fi
7900ac_ct_AR=$ac_cv_prog_ac_ct_AR
7901if test -n "$ac_ct_AR"; then
7902  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7903echo "${ECHO_T}$ac_ct_AR" >&6
7904else
7905  echo "$as_me:$LINENO: result: no" >&5
7906echo "${ECHO_T}no" >&6
7907fi
7908
7909  AR=$ac_ct_AR
7910else
7911  AR="$ac_cv_prog_AR"
7912fi
7913
7914if test -n "$ac_tool_prefix"; then
7915  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7916set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7917echo "$as_me:$LINENO: checking for $ac_word" >&5
7918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7919if test "${ac_cv_prog_RANLIB+set}" = set; then
7920  echo $ECHO_N "(cached) $ECHO_C" >&6
7921else
7922  if test -n "$RANLIB"; then
7923  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7924else
7925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926for as_dir in $PATH
7927do
7928  IFS=$as_save_IFS
7929  test -z "$as_dir" && as_dir=.
7930  for ac_exec_ext in '' $ac_executable_extensions; do
7931  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7932    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7933    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7934    break 2
7935  fi
7936done
7937done
7938
7939fi
7940fi
7941RANLIB=$ac_cv_prog_RANLIB
7942if test -n "$RANLIB"; then
7943  echo "$as_me:$LINENO: result: $RANLIB" >&5
7944echo "${ECHO_T}$RANLIB" >&6
7945else
7946  echo "$as_me:$LINENO: result: no" >&5
7947echo "${ECHO_T}no" >&6
7948fi
7949
7950fi
7951if test -z "$ac_cv_prog_RANLIB"; then
7952  ac_ct_RANLIB=$RANLIB
7953  # Extract the first word of "ranlib", so it can be a program name with args.
7954set dummy ranlib; ac_word=$2
7955echo "$as_me:$LINENO: checking for $ac_word" >&5
7956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7957if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7958  echo $ECHO_N "(cached) $ECHO_C" >&6
7959else
7960  if test -n "$ac_ct_RANLIB"; then
7961  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7962else
7963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964for as_dir in $PATH
7965do
7966  IFS=$as_save_IFS
7967  test -z "$as_dir" && as_dir=.
7968  for ac_exec_ext in '' $ac_executable_extensions; do
7969  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970    ac_cv_prog_ac_ct_RANLIB="ranlib"
7971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972    break 2
7973  fi
7974done
7975done
7976
7977  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7978fi
7979fi
7980ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7981if test -n "$ac_ct_RANLIB"; then
7982  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7983echo "${ECHO_T}$ac_ct_RANLIB" >&6
7984else
7985  echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6
7987fi
7988
7989  RANLIB=$ac_ct_RANLIB
7990else
7991  RANLIB="$ac_cv_prog_RANLIB"
7992fi
7993
7994if test -n "$ac_tool_prefix"; then
7995  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7996set dummy ${ac_tool_prefix}strip; ac_word=$2
7997echo "$as_me:$LINENO: checking for $ac_word" >&5
7998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7999if test "${ac_cv_prog_STRIP+set}" = set; then
8000  echo $ECHO_N "(cached) $ECHO_C" >&6
8001else
8002  if test -n "$STRIP"; then
8003  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8004else
8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006for as_dir in $PATH
8007do
8008  IFS=$as_save_IFS
8009  test -z "$as_dir" && as_dir=.
8010  for ac_exec_ext in '' $ac_executable_extensions; do
8011  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014    break 2
8015  fi
8016done
8017done
8018
8019fi
8020fi
8021STRIP=$ac_cv_prog_STRIP
8022if test -n "$STRIP"; then
8023  echo "$as_me:$LINENO: result: $STRIP" >&5
8024echo "${ECHO_T}$STRIP" >&6
8025else
8026  echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6
8028fi
8029
8030fi
8031if test -z "$ac_cv_prog_STRIP"; then
8032  ac_ct_STRIP=$STRIP
8033  # Extract the first word of "strip", so it can be a program name with args.
8034set dummy strip; ac_word=$2
8035echo "$as_me:$LINENO: checking for $ac_word" >&5
8036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8037if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8038  echo $ECHO_N "(cached) $ECHO_C" >&6
8039else
8040  if test -n "$ac_ct_STRIP"; then
8041  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8042else
8043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044for as_dir in $PATH
8045do
8046  IFS=$as_save_IFS
8047  test -z "$as_dir" && as_dir=.
8048  for ac_exec_ext in '' $ac_executable_extensions; do
8049  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050    ac_cv_prog_ac_ct_STRIP="strip"
8051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8052    break 2
8053  fi
8054done
8055done
8056
8057  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8058fi
8059fi
8060ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8061if test -n "$ac_ct_STRIP"; then
8062  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8063echo "${ECHO_T}$ac_ct_STRIP" >&6
8064else
8065  echo "$as_me:$LINENO: result: no" >&5
8066echo "${ECHO_T}no" >&6
8067fi
8068
8069  STRIP=$ac_ct_STRIP
8070else
8071  STRIP="$ac_cv_prog_STRIP"
8072fi
8073
8074
8075old_CC="$CC"
8076old_CFLAGS="$CFLAGS"
8077
8078# Set sane defaults for various variables
8079test -z "$AR" && AR=ar
8080test -z "$AR_FLAGS" && AR_FLAGS=cru
8081test -z "$AS" && AS=as
8082test -z "$CC" && CC=cc
8083test -z "$LTCC" && LTCC=$CC
8084test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8085test -z "$DLLTOOL" && DLLTOOL=dlltool
8086test -z "$LD" && LD=ld
8087test -z "$LN_S" && LN_S="ln -s"
8088test -z "$MAGIC_CMD" && MAGIC_CMD=file
8089test -z "$NM" && NM=nm
8090test -z "$SED" && SED=sed
8091test -z "$OBJDUMP" && OBJDUMP=objdump
8092test -z "$RANLIB" && RANLIB=:
8093test -z "$STRIP" && STRIP=:
8094test -z "$ac_objext" && ac_objext=o
8095
8096# Determine commands to create old-style static archives.
8097old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8098old_postinstall_cmds='chmod 644 $oldlib'
8099old_postuninstall_cmds=
8100
8101if test -n "$RANLIB"; then
8102  case $host_os in
8103  openbsd*)
8104    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8105    ;;
8106  *)
8107    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8108    ;;
8109  esac
8110  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8111fi
8112
8113for cc_temp in $compiler""; do
8114  case $cc_temp in
8115    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8116    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8117    \-*) ;;
8118    *) break;;
8119  esac
8120done
8121cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8122
8123
8124# Only perform the check for file, if the check method requires it
8125case $deplibs_check_method in
8126file_magic*)
8127  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8128    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8129echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8130if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8131  echo $ECHO_N "(cached) $ECHO_C" >&6
8132else
8133  case $MAGIC_CMD in
8134[\\/*] |  ?:[\\/]*)
8135  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8136  ;;
8137*)
8138  lt_save_MAGIC_CMD="$MAGIC_CMD"
8139  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8140  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8141  for ac_dir in $ac_dummy; do
8142    IFS="$lt_save_ifs"
8143    test -z "$ac_dir" && ac_dir=.
8144    if test -f $ac_dir/${ac_tool_prefix}file; then
8145      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8146      if test -n "$file_magic_test_file"; then
8147        case $deplibs_check_method in
8148        "file_magic "*)
8149          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8150          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8151          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8152            $EGREP "$file_magic_regex" > /dev/null; then
8153            :
8154          else
8155            cat <<EOF 1>&2
8156
8157*** Warning: the command libtool uses to detect shared libraries,
8158*** $file_magic_cmd, produces output that libtool cannot recognize.
8159*** The result is that libtool may fail to recognize shared libraries
8160*** as such.  This will affect the creation of libtool libraries that
8161*** depend on shared libraries, but programs linked with such libtool
8162*** libraries will work regardless of this problem.  Nevertheless, you
8163*** may want to report the problem to your system manager and/or to
8164*** bug-libtool@gnu.org
8165
8166EOF
8167          fi ;;
8168        esac
8169      fi
8170      break
8171    fi
8172  done
8173  IFS="$lt_save_ifs"
8174  MAGIC_CMD="$lt_save_MAGIC_CMD"
8175  ;;
8176esac
8177fi
8178
8179MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8180if test -n "$MAGIC_CMD"; then
8181  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8182echo "${ECHO_T}$MAGIC_CMD" >&6
8183else
8184  echo "$as_me:$LINENO: result: no" >&5
8185echo "${ECHO_T}no" >&6
8186fi
8187
8188if test -z "$lt_cv_path_MAGIC_CMD"; then
8189  if test -n "$ac_tool_prefix"; then
8190    echo "$as_me:$LINENO: checking for file" >&5
8191echo $ECHO_N "checking for file... $ECHO_C" >&6
8192if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8193  echo $ECHO_N "(cached) $ECHO_C" >&6
8194else
8195  case $MAGIC_CMD in
8196[\\/*] |  ?:[\\/]*)
8197  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8198  ;;
8199*)
8200  lt_save_MAGIC_CMD="$MAGIC_CMD"
8201  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8202  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8203  for ac_dir in $ac_dummy; do
8204    IFS="$lt_save_ifs"
8205    test -z "$ac_dir" && ac_dir=.
8206    if test -f $ac_dir/file; then
8207      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8208      if test -n "$file_magic_test_file"; then
8209        case $deplibs_check_method in
8210        "file_magic "*)
8211          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8212          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8213          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8214            $EGREP "$file_magic_regex" > /dev/null; then
8215            :
8216          else
8217            cat <<EOF 1>&2
8218
8219*** Warning: the command libtool uses to detect shared libraries,
8220*** $file_magic_cmd, produces output that libtool cannot recognize.
8221*** The result is that libtool may fail to recognize shared libraries
8222*** as such.  This will affect the creation of libtool libraries that
8223*** depend on shared libraries, but programs linked with such libtool
8224*** libraries will work regardless of this problem.  Nevertheless, you
8225*** may want to report the problem to your system manager and/or to
8226*** bug-libtool@gnu.org
8227
8228EOF
8229          fi ;;
8230        esac
8231      fi
8232      break
8233    fi
8234  done
8235  IFS="$lt_save_ifs"
8236  MAGIC_CMD="$lt_save_MAGIC_CMD"
8237  ;;
8238esac
8239fi
8240
8241MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8242if test -n "$MAGIC_CMD"; then
8243  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8244echo "${ECHO_T}$MAGIC_CMD" >&6
8245else
8246  echo "$as_me:$LINENO: result: no" >&5
8247echo "${ECHO_T}no" >&6
8248fi
8249
8250  else
8251    MAGIC_CMD=:
8252  fi
8253fi
8254
8255  fi
8256  ;;
8257esac
8258
8259enable_dlopen=no
8260enable_win32_dll=no
8261
8262# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8263if test "${enable_libtool_lock+set}" = set; then
8264  enableval="$enable_libtool_lock"
8265
8266fi;
8267test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8268
8269
8270# Check whether --with-pic or --without-pic was given.
8271if test "${with_pic+set}" = set; then
8272  withval="$with_pic"
8273  pic_mode="$withval"
8274else
8275  pic_mode=default
8276fi;
8277test -z "$pic_mode" && pic_mode=default
8278
8279# Use C for the default configuration in the libtool script
8280tagname=
8281lt_save_CC="$CC"
8282ac_ext=c
8283ac_cpp='$CPP $CPPFLAGS'
8284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286ac_compiler_gnu=$ac_cv_c_compiler_gnu
8287
8288
8289# Source file extension for C test sources.
8290ac_ext=c
8291
8292# Object file extension for compiled C test sources.
8293objext=o
8294objext=$objext
8295
8296# Code to be used in simple compile tests
8297lt_simple_compile_test_code="int some_variable = 0;\n"
8298
8299# Code to be used in simple link tests
8300lt_simple_link_test_code='int main(){return(0);}\n'
8301
8302
8303# If no C compiler was specified, use CC.
8304LTCC=${LTCC-"$CC"}
8305
8306# If no C compiler flags were specified, use CFLAGS.
8307LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8308
8309# Allow CC to be a program name with arguments.
8310compiler=$CC
8311
8312
8313# save warnings/boilerplate of simple test code
8314ac_outfile=conftest.$ac_objext
8315printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8316eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8317_lt_compiler_boilerplate=`cat conftest.err`
8318$rm conftest*
8319
8320ac_outfile=conftest.$ac_objext
8321printf "$lt_simple_link_test_code" >conftest.$ac_ext
8322eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8323_lt_linker_boilerplate=`cat conftest.err`
8324$rm conftest*
8325
8326
8327## CAVEAT EMPTOR:
8328## There is no encapsulation within the following macros, do not change
8329## the running order or otherwise move them around unless you know exactly
8330## what you are doing...
8331
8332lt_prog_compiler_no_builtin_flag=
8333
8334if test "$GCC" = yes; then
8335  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8336
8337
8338echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8339echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8340if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8341  echo $ECHO_N "(cached) $ECHO_C" >&6
8342else
8343  lt_cv_prog_compiler_rtti_exceptions=no
8344  ac_outfile=conftest.$ac_objext
8345   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8346   lt_compiler_flag="-fno-rtti -fno-exceptions"
8347   # Insert the option either (1) after the last *FLAGS variable, or
8348   # (2) before a word containing "conftest.", or (3) at the end.
8349   # Note that $ac_compile itself does not contain backslashes and begins
8350   # with a dollar sign (not a hyphen), so the echo should work correctly.
8351   # The option is referenced via a variable to avoid confusing sed.
8352   lt_compile=`echo "$ac_compile" | $SED \
8353   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8354   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8355   -e 's:$: $lt_compiler_flag:'`
8356   (eval echo "\"\$as_me:8356: $lt_compile\"" >&5)
8357   (eval "$lt_compile" 2>conftest.err)
8358   ac_status=$?
8359   cat conftest.err >&5
8360   echo "$as_me:8360: \$? = $ac_status" >&5
8361   if (exit $ac_status) && test -s "$ac_outfile"; then
8362     # The compiler can only warn and ignore the option if not recognized
8363     # So say no if there are warnings other than the usual output.
8364     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8365     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8366     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8367       lt_cv_prog_compiler_rtti_exceptions=yes
8368     fi
8369   fi
8370   $rm conftest*
8371
8372fi
8373echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8374echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8375
8376if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8377    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8378else
8379    :
8380fi
8381
8382fi
8383
8384lt_prog_compiler_wl=
8385lt_prog_compiler_pic=
8386lt_prog_compiler_static=
8387
8388echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8389echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8390
8391  if test "$GCC" = yes; then
8392    lt_prog_compiler_wl='-Wl,'
8393    lt_prog_compiler_static='-static'
8394
8395    case $host_os in
8396      aix*)
8397      # All AIX code is PIC.
8398      if test "$host_cpu" = ia64; then
8399        # AIX 5 now supports IA64 processor
8400        lt_prog_compiler_static='-Bstatic'
8401      fi
8402      ;;
8403
8404    amigaos*)
8405      # FIXME: we need at least 68020 code to build shared libraries, but
8406      # adding the `-m68020' flag to GCC prevents building anything better,
8407      # like `-m68040'.
8408      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8409      ;;
8410
8411    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8412      # PIC is the default for these OSes.
8413      ;;
8414
8415    mingw* | pw32* | os2*)
8416      # This hack is so that the source file can tell whether it is being
8417      # built for inclusion in a dll (and should export symbols for example).
8418      lt_prog_compiler_pic='-DDLL_EXPORT'
8419      ;;
8420
8421    darwin* | rhapsody*)
8422      # PIC is the default on this platform
8423      # Common symbols not allowed in MH_DYLIB files
8424      lt_prog_compiler_pic='-fno-common'
8425      ;;
8426
8427    interix3*)
8428      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8429      # Instead, we relocate shared libraries at runtime.
8430      ;;
8431
8432    msdosdjgpp*)
8433      # Just because we use GCC doesn't mean we suddenly get shared libraries
8434      # on systems that don't support them.
8435      lt_prog_compiler_can_build_shared=no
8436      enable_shared=no
8437      ;;
8438
8439    sysv4*MP*)
8440      if test -d /usr/nec; then
8441        lt_prog_compiler_pic=-Kconform_pic
8442      fi
8443      ;;
8444
8445    hpux*)
8446      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8447      # not for PA HP-UX.
8448      case $host_cpu in
8449      hppa*64*|ia64*)
8450        # +Z the default
8451        ;;
8452      *)
8453        lt_prog_compiler_pic='-fPIC'
8454        ;;
8455      esac
8456      ;;
8457
8458    *)
8459      lt_prog_compiler_pic='-fPIC'
8460      ;;
8461    esac
8462  else
8463    # PORTME Check for flag to pass linker flags through the system compiler.
8464    case $host_os in
8465    aix*)
8466      lt_prog_compiler_wl='-Wl,'
8467      if test "$host_cpu" = ia64; then
8468        # AIX 5 now supports IA64 processor
8469        lt_prog_compiler_static='-Bstatic'
8470      else
8471        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8472      fi
8473      ;;
8474      darwin*)
8475        # PIC is the default on this platform
8476        # Common symbols not allowed in MH_DYLIB files
8477       case $cc_basename in
8478         xlc*)
8479         lt_prog_compiler_pic='-qnocommon'
8480         lt_prog_compiler_wl='-Wl,'
8481         ;;
8482       esac
8483       ;;
8484
8485    mingw* | pw32* | os2*)
8486      # This hack is so that the source file can tell whether it is being
8487      # built for inclusion in a dll (and should export symbols for example).
8488      lt_prog_compiler_pic='-DDLL_EXPORT'
8489      ;;
8490
8491    hpux9* | hpux10* | hpux11*)
8492      lt_prog_compiler_wl='-Wl,'
8493      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8494      # not for PA HP-UX.
8495      case $host_cpu in
8496      hppa*64*|ia64*)
8497        # +Z the default
8498        ;;
8499      *)
8500        lt_prog_compiler_pic='+Z'
8501        ;;
8502      esac
8503      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8504      lt_prog_compiler_static='${wl}-a ${wl}archive'
8505      ;;
8506
8507    irix5* | irix6* | nonstopux*)
8508      lt_prog_compiler_wl='-Wl,'
8509      # PIC (with -KPIC) is the default.
8510      lt_prog_compiler_static='-non_shared'
8511      ;;
8512
8513    newsos6)
8514      lt_prog_compiler_pic='-KPIC'
8515      lt_prog_compiler_static='-Bstatic'
8516      ;;
8517
8518    linux*)
8519      case $cc_basename in
8520      icc* | ecc*)
8521        lt_prog_compiler_wl='-Wl,'
8522        lt_prog_compiler_pic='-KPIC'
8523        lt_prog_compiler_static='-static'
8524        ;;
8525      pgcc* | pgf77* | pgf90* | pgf95*)
8526        # Portland Group compilers (*not* the Pentium gcc compiler,
8527        # which looks to be a dead project)
8528        lt_prog_compiler_wl='-Wl,'
8529        lt_prog_compiler_pic='-fpic'
8530        lt_prog_compiler_static='-Bstatic'
8531        ;;
8532      ccc*)
8533        lt_prog_compiler_wl='-Wl,'
8534        # All Alpha code is PIC.
8535        lt_prog_compiler_static='-non_shared'
8536        ;;
8537      esac
8538      ;;
8539
8540    osf3* | osf4* | osf5*)
8541      lt_prog_compiler_wl='-Wl,'
8542      # All OSF/1 code is PIC.
8543      lt_prog_compiler_static='-non_shared'
8544      ;;
8545
8546    solaris*)
8547      lt_prog_compiler_pic='-KPIC'
8548      lt_prog_compiler_static='-Bstatic'
8549      case $cc_basename in
8550      f77* | f90* | f95*)
8551        lt_prog_compiler_wl='-Qoption ld ';;
8552      *)
8553        lt_prog_compiler_wl='-Wl,';;
8554      esac
8555      ;;
8556
8557    sunos4*)
8558      lt_prog_compiler_wl='-Qoption ld '
8559      lt_prog_compiler_pic='-PIC'
8560      lt_prog_compiler_static='-Bstatic'
8561      ;;
8562
8563    sysv4 | sysv4.2uw2* | sysv4.3*)
8564      lt_prog_compiler_wl='-Wl,'
8565      lt_prog_compiler_pic='-KPIC'
8566      lt_prog_compiler_static='-Bstatic'
8567      ;;
8568
8569    sysv4*MP*)
8570      if test -d /usr/nec ;then
8571        lt_prog_compiler_pic='-Kconform_pic'
8572        lt_prog_compiler_static='-Bstatic'
8573      fi
8574      ;;
8575
8576    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8577      lt_prog_compiler_wl='-Wl,'
8578      lt_prog_compiler_pic='-KPIC'
8579      lt_prog_compiler_static='-Bstatic'
8580      ;;
8581
8582    unicos*)
8583      lt_prog_compiler_wl='-Wl,'
8584      lt_prog_compiler_can_build_shared=no
8585      ;;
8586
8587    uts4*)
8588      lt_prog_compiler_pic='-pic'
8589      lt_prog_compiler_static='-Bstatic'
8590      ;;
8591
8592    *)
8593      lt_prog_compiler_can_build_shared=no
8594      ;;
8595    esac
8596  fi
8597
8598echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8599echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8600
8601#
8602# Check to make sure the PIC flag actually works.
8603#
8604if test -n "$lt_prog_compiler_pic"; then
8605
8606echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8607echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8608if test "${lt_prog_compiler_pic_works+set}" = set; then
8609  echo $ECHO_N "(cached) $ECHO_C" >&6
8610else
8611  lt_prog_compiler_pic_works=no
8612  ac_outfile=conftest.$ac_objext
8613   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8614   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8615   # Insert the option either (1) after the last *FLAGS variable, or
8616   # (2) before a word containing "conftest.", or (3) at the end.
8617   # Note that $ac_compile itself does not contain backslashes and begins
8618   # with a dollar sign (not a hyphen), so the echo should work correctly.
8619   # The option is referenced via a variable to avoid confusing sed.
8620   lt_compile=`echo "$ac_compile" | $SED \
8621   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623   -e 's:$: $lt_compiler_flag:'`
8624   (eval echo "\"\$as_me:8624: $lt_compile\"" >&5)
8625   (eval "$lt_compile" 2>conftest.err)
8626   ac_status=$?
8627   cat conftest.err >&5
8628   echo "$as_me:8628: \$? = $ac_status" >&5
8629   if (exit $ac_status) && test -s "$ac_outfile"; then
8630     # The compiler can only warn and ignore the option if not recognized
8631     # So say no if there are warnings other than the usual output.
8632     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8633     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8634     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8635       lt_prog_compiler_pic_works=yes
8636     fi
8637   fi
8638   $rm conftest*
8639
8640fi
8641echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8642echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8643
8644if test x"$lt_prog_compiler_pic_works" = xyes; then
8645    case $lt_prog_compiler_pic in
8646     "" | " "*) ;;
8647     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8648     esac
8649else
8650    lt_prog_compiler_pic=
8651     lt_prog_compiler_can_build_shared=no
8652fi
8653
8654fi
8655case $host_os in
8656  # For platforms which do not support PIC, -DPIC is meaningless:
8657  *djgpp*)
8658    lt_prog_compiler_pic=
8659    ;;
8660  *)
8661    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8662    ;;
8663esac
8664
8665#
8666# Check to make sure the static flag actually works.
8667#
8668wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8669echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8670echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8671if test "${lt_prog_compiler_static_works+set}" = set; then
8672  echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674  lt_prog_compiler_static_works=no
8675   save_LDFLAGS="$LDFLAGS"
8676   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8677   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8678   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8679     # The linker can only warn and ignore the option if not recognized
8680     # So say no if there are warnings
8681     if test -s conftest.err; then
8682       # Append any errors to the config.log.
8683       cat conftest.err 1>&5
8684       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8685       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8686       if diff conftest.exp conftest.er2 >/dev/null; then
8687         lt_prog_compiler_static_works=yes
8688       fi
8689     else
8690       lt_prog_compiler_static_works=yes
8691     fi
8692   fi
8693   $rm conftest*
8694   LDFLAGS="$save_LDFLAGS"
8695
8696fi
8697echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8698echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8699
8700if test x"$lt_prog_compiler_static_works" = xyes; then
8701    :
8702else
8703    lt_prog_compiler_static=
8704fi
8705
8706
8707echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8708echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8709if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8710  echo $ECHO_N "(cached) $ECHO_C" >&6
8711else
8712  lt_cv_prog_compiler_c_o=no
8713   $rm -r conftest 2>/dev/null
8714   mkdir conftest
8715   cd conftest
8716   mkdir out
8717   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8718
8719   lt_compiler_flag="-o out/conftest2.$ac_objext"
8720   # Insert the option either (1) after the last *FLAGS variable, or
8721   # (2) before a word containing "conftest.", or (3) at the end.
8722   # Note that $ac_compile itself does not contain backslashes and begins
8723   # with a dollar sign (not a hyphen), so the echo should work correctly.
8724   lt_compile=`echo "$ac_compile" | $SED \
8725   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8726   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8727   -e 's:$: $lt_compiler_flag:'`
8728   (eval echo "\"\$as_me:8728: $lt_compile\"" >&5)
8729   (eval "$lt_compile" 2>out/conftest.err)
8730   ac_status=$?
8731   cat out/conftest.err >&5
8732   echo "$as_me:8732: \$? = $ac_status" >&5
8733   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8734   then
8735     # The compiler can only warn and ignore the option if not recognized
8736     # So say no if there are warnings
8737     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8738     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8739     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8740       lt_cv_prog_compiler_c_o=yes
8741     fi
8742   fi
8743   chmod u+w . 2>&5
8744   $rm conftest*
8745   # SGI C++ compiler will create directory out/ii_files/ for
8746   # template instantiation
8747   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8748   $rm out/* && rmdir out
8749   cd ..
8750   rmdir conftest
8751   $rm conftest*
8752
8753fi
8754echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8755echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8756
8757
8758hard_links="nottested"
8759if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8760  # do not overwrite the value of need_locks provided by the user
8761  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8762echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8763  hard_links=yes
8764  $rm conftest*
8765  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8766  touch conftest.a
8767  ln conftest.a conftest.b 2>&5 || hard_links=no
8768  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8769  echo "$as_me:$LINENO: result: $hard_links" >&5
8770echo "${ECHO_T}$hard_links" >&6
8771  if test "$hard_links" = no; then
8772    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8773echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8774    need_locks=warn
8775  fi
8776else
8777  need_locks=no
8778fi
8779
8780echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8781echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8782
8783  runpath_var=
8784  allow_undefined_flag=
8785  enable_shared_with_static_runtimes=no
8786  archive_cmds=
8787  archive_expsym_cmds=
8788  old_archive_From_new_cmds=
8789  old_archive_from_expsyms_cmds=
8790  export_dynamic_flag_spec=
8791  whole_archive_flag_spec=
8792  thread_safe_flag_spec=
8793  hardcode_libdir_flag_spec=
8794  hardcode_libdir_flag_spec_ld=
8795  hardcode_libdir_separator=
8796  hardcode_direct=no
8797  hardcode_minus_L=no
8798  hardcode_shlibpath_var=unsupported
8799  link_all_deplibs=unknown
8800  hardcode_automatic=no
8801  module_cmds=
8802  module_expsym_cmds=
8803  always_export_symbols=no
8804  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8805  # include_expsyms should be a list of space-separated symbols to be *always*
8806  # included in the symbol list
8807  include_expsyms=
8808  # exclude_expsyms can be an extended regexp of symbols to exclude
8809  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8810  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8811  # as well as any symbol that contains `d'.
8812  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8813  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8814  # platforms (ab)use it in PIC code, but their linkers get confused if
8815  # the symbol is explicitly referenced.  Since portable code cannot
8816  # rely on this symbol name, it's probably fine to never include it in
8817  # preloaded symbol tables.
8818  extract_expsyms_cmds=
8819  # Just being paranoid about ensuring that cc_basename is set.
8820  for cc_temp in $compiler""; do
8821  case $cc_temp in
8822    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8823    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8824    \-*) ;;
8825    *) break;;
8826  esac
8827done
8828cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8829
8830  case $host_os in
8831  cygwin* | mingw* | pw32*)
8832    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8833    # When not using gcc, we currently assume that we are using
8834    # Microsoft Visual C++.
8835    if test "$GCC" != yes; then
8836      with_gnu_ld=no
8837    fi
8838    ;;
8839  interix*)
8840    # we just hope/assume this is gcc and not c89 (= MSVC++)
8841    with_gnu_ld=yes
8842    ;;
8843  openbsd*)
8844    with_gnu_ld=no
8845    ;;
8846  esac
8847
8848  ld_shlibs=yes
8849  if test "$with_gnu_ld" = yes; then
8850    # If archive_cmds runs LD, not CC, wlarc should be empty
8851    wlarc='${wl}'
8852
8853    # Set some defaults for GNU ld with shared library support. These
8854    # are reset later if shared libraries are not supported. Putting them
8855    # here allows them to be overridden if necessary.
8856    runpath_var=LD_RUN_PATH
8857    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8858    export_dynamic_flag_spec='${wl}--export-dynamic'
8859    # ancient GNU ld didn't support --whole-archive et. al.
8860    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8861        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8862      else
8863        whole_archive_flag_spec=
8864    fi
8865    supports_anon_versioning=no
8866    case `$LD -v 2>/dev/null` in
8867      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8868      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8869      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8870      *\ 2.11.*) ;; # other 2.11 versions
8871      *) supports_anon_versioning=yes ;;
8872    esac
8873
8874    # See if GNU ld supports shared libraries.
8875    case $host_os in
8876    aix3* | aix4* | aix5*)
8877      # On AIX/PPC, the GNU linker is very broken
8878      if test "$host_cpu" != ia64; then
8879        ld_shlibs=no
8880        cat <<EOF 1>&2
8881
8882*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8883*** to be unable to reliably create shared libraries on AIX.
8884*** Therefore, libtool is disabling shared libraries support.  If you
8885*** really care for shared libraries, you may want to modify your PATH
8886*** so that a non-GNU linker is found, and then restart.
8887
8888EOF
8889      fi
8890      ;;
8891
8892    amigaos*)
8893      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)'
8894      hardcode_libdir_flag_spec='-L$libdir'
8895      hardcode_minus_L=yes
8896
8897      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8898      # that the semantics of dynamic libraries on AmigaOS, at least up
8899      # to version 4, is to share data among multiple programs linked
8900      # with the same dynamic library.  Since this doesn't match the
8901      # behavior of shared libraries on other platforms, we can't use
8902      # them.
8903      ld_shlibs=no
8904      ;;
8905
8906    beos*)
8907      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8908        allow_undefined_flag=unsupported
8909        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8910        # support --undefined.  This deserves some investigation.  FIXME
8911        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912      else
8913        ld_shlibs=no
8914      fi
8915      ;;
8916
8917    cygwin* | mingw* | pw32*)
8918      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8919      # as there is no search path for DLLs.
8920      hardcode_libdir_flag_spec='-L$libdir'
8921      allow_undefined_flag=unsupported
8922      always_export_symbols=no
8923      enable_shared_with_static_runtimes=yes
8924      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8925
8926      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8927        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8928        # If the export-symbols file already is a .def file (1st line
8929        # is EXPORTS), use it as is; otherwise, prepend...
8930        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8931          cp $export_symbols $output_objdir/$soname.def;
8932        else
8933          echo EXPORTS > $output_objdir/$soname.def;
8934          cat $export_symbols >> $output_objdir/$soname.def;
8935        fi~
8936        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8937      else
8938        ld_shlibs=no
8939      fi
8940      ;;
8941
8942    interix3*)
8943      hardcode_direct=no
8944      hardcode_shlibpath_var=no
8945      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8946      export_dynamic_flag_spec='${wl}-E'
8947      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8948      # Instead, shared libraries are loaded at an image base (0x10000000 by
8949      # default) and relocated if they conflict, which is a slow very memory
8950      # consuming and fragmenting process.  To avoid this, we pick a random,
8951      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8952      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8953      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8954      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'
8955      ;;
8956
8957    linux*)
8958      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8959        tmp_addflag=
8960        case $cc_basename,$host_cpu in
8961        pgcc*)                          # Portland Group C compiler
8962          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'
8963          tmp_addflag=' $pic_flag'
8964          ;;
8965        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8966          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'
8967          tmp_addflag=' $pic_flag -Mnomain' ;;
8968        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8969          tmp_addflag=' -i_dynamic' ;;
8970        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8971          tmp_addflag=' -i_dynamic -nofor_main' ;;
8972        ifc* | ifort*)                  # Intel Fortran compiler
8973          tmp_addflag=' -nofor_main' ;;
8974        esac
8975        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976
8977        if test $supports_anon_versioning = yes; then
8978          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8979  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8980  $echo "local: *; };" >> $output_objdir/$libname.ver~
8981          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8982        fi
8983      else
8984        ld_shlibs=no
8985      fi
8986      ;;
8987
8988    netbsd*)
8989      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8990        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8991        wlarc=
8992      else
8993        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8995      fi
8996      ;;
8997
8998    solaris*)
8999      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9000        ld_shlibs=no
9001        cat <<EOF 1>&2
9002
9003*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9004*** create shared libraries on Solaris systems.  Therefore, libtool
9005*** is disabling shared libraries support.  We urge you to upgrade GNU
9006*** binutils to release 2.9.1 or newer.  Another option is to modify
9007*** your PATH or compiler configuration so that the native linker is
9008*** used, and then restart.
9009
9010EOF
9011      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9012        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9014      else
9015        ld_shlibs=no
9016      fi
9017      ;;
9018
9019    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9020      case `$LD -v 2>&1` in
9021        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9022        ld_shlibs=no
9023        cat <<_LT_EOF 1>&2
9024
9025*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9026*** reliably create shared libraries on SCO systems.  Therefore, libtool
9027*** is disabling shared libraries support.  We urge you to upgrade GNU
9028*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9029*** your PATH or compiler configuration so that the native linker is
9030*** used, and then restart.
9031
9032_LT_EOF
9033        ;;
9034        *)
9035          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9036            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9037            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9038            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9039          else
9040            ld_shlibs=no
9041          fi
9042        ;;
9043      esac
9044      ;;
9045
9046    sunos4*)
9047      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9048      wlarc=
9049      hardcode_direct=yes
9050      hardcode_shlibpath_var=no
9051      ;;
9052
9053    *)
9054      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9055        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9057      else
9058        ld_shlibs=no
9059      fi
9060      ;;
9061    esac
9062
9063    if test "$ld_shlibs" = no; then
9064      runpath_var=
9065      hardcode_libdir_flag_spec=
9066      export_dynamic_flag_spec=
9067      whole_archive_flag_spec=
9068    fi
9069  else
9070    # PORTME fill in a description of your system's linker (not GNU ld)
9071    case $host_os in
9072    aix3*)
9073      allow_undefined_flag=unsupported
9074      always_export_symbols=yes
9075      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'
9076      # Note: this linker hardcodes the directories in LIBPATH if there
9077      # are no directories specified by -L.
9078      hardcode_minus_L=yes
9079      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9080        # Neither direct hardcoding nor static linking is supported with a
9081        # broken collect2.
9082        hardcode_direct=unsupported
9083      fi
9084      ;;
9085
9086    aix4* | aix5*)
9087      if test "$host_cpu" = ia64; then
9088        # On IA64, the linker does run time linking by default, so we don't
9089        # have to do anything special.
9090        aix_use_runtimelinking=no
9091        exp_sym_flag='-Bexport'
9092        no_entry_flag=""
9093      else
9094        # If we're using GNU nm, then we don't want the "-C" option.
9095        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9096        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9097          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'
9098        else
9099          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'
9100        fi
9101        aix_use_runtimelinking=no
9102
9103        # Test if we are trying to use run time linking or normal
9104        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9105        # need to do runtime linking.
9106        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9107          for ld_flag in $LDFLAGS; do
9108          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9109            aix_use_runtimelinking=yes
9110            break
9111          fi
9112          done
9113          ;;
9114        esac
9115
9116        exp_sym_flag='-bexport'
9117        no_entry_flag='-bnoentry'
9118      fi
9119
9120      # When large executables or shared objects are built, AIX ld can
9121      # have problems creating the table of contents.  If linking a library
9122      # or program results in "error TOC overflow" add -mminimal-toc to
9123      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9124      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9125
9126      archive_cmds=''
9127      hardcode_direct=yes
9128      hardcode_libdir_separator=':'
9129      link_all_deplibs=yes
9130
9131      if test "$GCC" = yes; then
9132        case $host_os in aix4.[012]|aix4.[012].*)
9133        # We only want to do this on AIX 4.2 and lower, the check
9134        # below for broken collect2 doesn't work under 4.3+
9135          collect2name=`${CC} -print-prog-name=collect2`
9136          if test -f "$collect2name" && \
9137           strings "$collect2name" | grep resolve_lib_name >/dev/null
9138          then
9139          # We have reworked collect2
9140          hardcode_direct=yes
9141          else
9142          # We have old collect2
9143          hardcode_direct=unsupported
9144          # It fails to find uninstalled libraries when the uninstalled
9145          # path is not listed in the libpath.  Setting hardcode_minus_L
9146          # to unsupported forces relinking
9147          hardcode_minus_L=yes
9148          hardcode_libdir_flag_spec='-L$libdir'
9149          hardcode_libdir_separator=
9150          fi
9151          ;;
9152        esac
9153        shared_flag='-shared'
9154        if test "$aix_use_runtimelinking" = yes; then
9155          shared_flag="$shared_flag "'${wl}-G'
9156        fi
9157      else
9158        # not using gcc
9159        if test "$host_cpu" = ia64; then
9160        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9161        # chokes on -Wl,-G. The following line is correct:
9162          shared_flag='-G'
9163        else
9164          if test "$aix_use_runtimelinking" = yes; then
9165            shared_flag='${wl}-G'
9166          else
9167            shared_flag='${wl}-bM:SRE'
9168          fi
9169        fi
9170      fi
9171
9172      # It seems that -bexpall does not export symbols beginning with
9173      # underscore (_), so it is better to generate a list of symbols to export.
9174      always_export_symbols=yes
9175      if test "$aix_use_runtimelinking" = yes; then
9176        # Warning - without using the other runtime loading flags (-brtl),
9177        # -berok will link without error, but may produce a broken library.
9178        allow_undefined_flag='-berok'
9179       # Determine the default libpath from the value encoded in an empty executable.
9180       cat >conftest.$ac_ext <<_ACEOF
9181/* confdefs.h.  */
9182_ACEOF
9183cat confdefs.h >>conftest.$ac_ext
9184cat >>conftest.$ac_ext <<_ACEOF
9185/* end confdefs.h.  */
9186
9187int
9188main ()
9189{
9190
9191  ;
9192  return 0;
9193}
9194_ACEOF
9195rm -f conftest.$ac_objext conftest$ac_exeext
9196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197  (eval $ac_link) 2>conftest.er1
9198  ac_status=$?
9199  grep -v '^ *+' conftest.er1 >conftest.err
9200  rm -f conftest.er1
9201  cat conftest.err >&5
9202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203  (exit $ac_status); } &&
9204         { ac_try='test -z "$ac_c_werror_flag"
9205                         || test ! -s conftest.err'
9206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207  (eval $ac_try) 2>&5
9208  ac_status=$?
9209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210  (exit $ac_status); }; } &&
9211         { ac_try='test -s conftest$ac_exeext'
9212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213  (eval $ac_try) 2>&5
9214  ac_status=$?
9215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216  (exit $ac_status); }; }; then
9217
9218aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9219}'`
9220# Check for a 64-bit object if we didn't find anything.
9221if 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; }
9222}'`; fi
9223else
9224  echo "$as_me: failed program was:" >&5
9225sed 's/^/| /' conftest.$ac_ext >&5
9226
9227fi
9228rm -f conftest.err conftest.$ac_objext \
9229      conftest$ac_exeext conftest.$ac_ext
9230if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9231
9232       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9233        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"
9234       else
9235        if test "$host_cpu" = ia64; then
9236          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9237          allow_undefined_flag="-z nodefs"
9238          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"
9239        else
9240         # Determine the default libpath from the value encoded in an empty executable.
9241         cat >conftest.$ac_ext <<_ACEOF
9242/* confdefs.h.  */
9243_ACEOF
9244cat confdefs.h >>conftest.$ac_ext
9245cat >>conftest.$ac_ext <<_ACEOF
9246/* end confdefs.h.  */
9247
9248int
9249main ()
9250{
9251
9252  ;
9253  return 0;
9254}
9255_ACEOF
9256rm -f conftest.$ac_objext conftest$ac_exeext
9257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258  (eval $ac_link) 2>conftest.er1
9259  ac_status=$?
9260  grep -v '^ *+' conftest.er1 >conftest.err
9261  rm -f conftest.er1
9262  cat conftest.err >&5
9263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264  (exit $ac_status); } &&
9265         { ac_try='test -z "$ac_c_werror_flag"
9266                         || test ! -s conftest.err'
9267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268  (eval $ac_try) 2>&5
9269  ac_status=$?
9270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271  (exit $ac_status); }; } &&
9272         { ac_try='test -s conftest$ac_exeext'
9273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274  (eval $ac_try) 2>&5
9275  ac_status=$?
9276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277  (exit $ac_status); }; }; then
9278
9279aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9280}'`
9281# Check for a 64-bit object if we didn't find anything.
9282if 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; }
9283}'`; fi
9284else
9285  echo "$as_me: failed program was:" >&5
9286sed 's/^/| /' conftest.$ac_ext >&5
9287
9288fi
9289rm -f conftest.err conftest.$ac_objext \
9290      conftest$ac_exeext conftest.$ac_ext
9291if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9292
9293         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9294          # Warning - without using the other run time loading flags,
9295          # -berok will link without error, but may produce a broken library.
9296          no_undefined_flag=' ${wl}-bernotok'
9297          allow_undefined_flag=' ${wl}-berok'
9298          # Exported symbols can be pulled into shared objects from archives
9299          whole_archive_flag_spec='$convenience'
9300          archive_cmds_need_lc=yes
9301          # This is similar to how AIX traditionally builds its shared libraries.
9302          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'
9303        fi
9304      fi
9305      ;;
9306
9307    amigaos*)
9308      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)'
9309      hardcode_libdir_flag_spec='-L$libdir'
9310      hardcode_minus_L=yes
9311      # see comment about different semantics on the GNU ld section
9312      ld_shlibs=no
9313      ;;
9314
9315    bsdi[45]*)
9316      export_dynamic_flag_spec=-rdynamic
9317      ;;
9318
9319    cygwin* | mingw* | pw32*)
9320      # When not using gcc, we currently assume that we are using
9321      # Microsoft Visual C++.
9322      # hardcode_libdir_flag_spec is actually meaningless, as there is
9323      # no search path for DLLs.
9324      hardcode_libdir_flag_spec=' '
9325      allow_undefined_flag=unsupported
9326      # Tell ltmain to make .lib files, not .a files.
9327      libext=lib
9328      # Tell ltmain to make .dll files, not .so files.
9329      shrext_cmds=".dll"
9330      # FIXME: Setting linknames here is a bad hack.
9331      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9332      # The linker will automatically build a .lib file if we build a DLL.
9333      old_archive_From_new_cmds='true'
9334      # FIXME: Should let the user specify the lib program.
9335      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9336      fix_srcfile_path='`cygpath -w "$srcfile"`'
9337      enable_shared_with_static_runtimes=yes
9338      ;;
9339
9340    darwin* | rhapsody*)
9341      case $host_os in
9342        rhapsody* | darwin1.[012])
9343         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9344         ;;
9345       *) # Darwin 1.3 on
9346         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9347           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9348         else
9349           case ${MACOSX_DEPLOYMENT_TARGET} in
9350             10.[012])
9351               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9352               ;;
9353             10.*)
9354               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9355               ;;
9356           esac
9357         fi
9358         ;;
9359      esac
9360      archive_cmds_need_lc=no
9361      hardcode_direct=no
9362      hardcode_automatic=yes
9363      hardcode_shlibpath_var=unsupported
9364      whole_archive_flag_spec=''
9365      link_all_deplibs=yes
9366    if test "$GCC" = yes ; then
9367        output_verbose_link_cmd='echo'
9368        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9369      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9370      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9371      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}'
9372      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}'
9373    else
9374      case $cc_basename in
9375        xlc*)
9376         output_verbose_link_cmd='echo'
9377         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9378         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9379          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9380         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}'
9381          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}'
9382          ;;
9383       *)
9384         ld_shlibs=no
9385          ;;
9386      esac
9387    fi
9388      ;;
9389
9390    dgux*)
9391      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392      hardcode_libdir_flag_spec='-L$libdir'
9393      hardcode_shlibpath_var=no
9394      ;;
9395
9396    freebsd1*)
9397      ld_shlibs=no
9398      ;;
9399
9400    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9401    # support.  Future versions do this automatically, but an explicit c++rt0.o
9402    # does not break anything, and helps significantly (at the cost of a little
9403    # extra space).
9404    freebsd2.2*)
9405      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9406      hardcode_libdir_flag_spec='-R$libdir'
9407      hardcode_direct=yes
9408      hardcode_shlibpath_var=no
9409      ;;
9410
9411    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9412    freebsd2*)
9413      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9414      hardcode_direct=yes
9415      hardcode_minus_L=yes
9416      hardcode_shlibpath_var=no
9417      ;;
9418
9419    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9420    freebsd* | kfreebsd*-gnu | dragonfly*)
9421      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9422      hardcode_libdir_flag_spec='-R$libdir'
9423      hardcode_direct=yes
9424      hardcode_shlibpath_var=no
9425      ;;
9426
9427    hpux9*)
9428      if test "$GCC" = yes; then
9429        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'
9430      else
9431        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'
9432      fi
9433      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9434      hardcode_libdir_separator=:
9435      hardcode_direct=yes
9436
9437      # hardcode_minus_L: Not really in the search PATH,
9438      # but as the default location of the library.
9439      hardcode_minus_L=yes
9440      export_dynamic_flag_spec='${wl}-E'
9441      ;;
9442
9443    hpux10*)
9444      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9445        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9446      else
9447        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9448      fi
9449      if test "$with_gnu_ld" = no; then
9450        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9451        hardcode_libdir_separator=:
9452
9453        hardcode_direct=yes
9454        export_dynamic_flag_spec='${wl}-E'
9455
9456        # hardcode_minus_L: Not really in the search PATH,
9457        # but as the default location of the library.
9458        hardcode_minus_L=yes
9459      fi
9460      ;;
9461
9462    hpux11*)
9463      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9464        case $host_cpu in
9465        hppa*64*)
9466          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9467          ;;
9468        ia64*)
9469          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9470          ;;
9471        *)
9472          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9473          ;;
9474        esac
9475      else
9476        case $host_cpu in
9477        hppa*64*)
9478          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9479          ;;
9480        ia64*)
9481          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9482          ;;
9483        *)
9484          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9485          ;;
9486        esac
9487      fi
9488      if test "$with_gnu_ld" = no; then
9489        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9490        hardcode_libdir_separator=:
9491
9492        case $host_cpu in
9493        hppa*64*|ia64*)
9494          hardcode_libdir_flag_spec_ld='+b $libdir'
9495          hardcode_direct=no
9496          hardcode_shlibpath_var=no
9497          ;;
9498        *)
9499          hardcode_direct=yes
9500          export_dynamic_flag_spec='${wl}-E'
9501
9502          # hardcode_minus_L: Not really in the search PATH,
9503          # but as the default location of the library.
9504          hardcode_minus_L=yes
9505          ;;
9506        esac
9507      fi
9508      ;;
9509
9510    irix5* | irix6* | nonstopux*)
9511      if test "$GCC" = yes; then
9512        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'
9513      else
9514        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'
9515        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9516      fi
9517      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518      hardcode_libdir_separator=:
9519      link_all_deplibs=yes
9520      ;;
9521
9522    netbsd*)
9523      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9524        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9525      else
9526        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9527      fi
9528      hardcode_libdir_flag_spec='-R$libdir'
9529      hardcode_direct=yes
9530      hardcode_shlibpath_var=no
9531      ;;
9532
9533    newsos6)
9534      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9535      hardcode_direct=yes
9536      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9537      hardcode_libdir_separator=:
9538      hardcode_shlibpath_var=no
9539      ;;
9540
9541    openbsd*)
9542      hardcode_direct=yes
9543      hardcode_shlibpath_var=no
9544      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9545        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9546        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9547        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9548        export_dynamic_flag_spec='${wl}-E'
9549      else
9550       case $host_os in
9551         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9552           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9553           hardcode_libdir_flag_spec='-R$libdir'
9554           ;;
9555         *)
9556           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9557           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9558           ;;
9559       esac
9560      fi
9561      ;;
9562
9563    os2*)
9564      hardcode_libdir_flag_spec='-L$libdir'
9565      hardcode_minus_L=yes
9566      allow_undefined_flag=unsupported
9567      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'
9568      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9569      ;;
9570
9571    osf3*)
9572      if test "$GCC" = yes; then
9573        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9574        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'
9575      else
9576        allow_undefined_flag=' -expect_unresolved \*'
9577        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'
9578      fi
9579      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580      hardcode_libdir_separator=:
9581      ;;
9582
9583    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9584      if test "$GCC" = yes; then
9585        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9586        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9587        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9588      else
9589        allow_undefined_flag=' -expect_unresolved \*'
9590        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'
9591        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9592        $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'
9593
9594        # Both c and cxx compiler support -rpath directly
9595        hardcode_libdir_flag_spec='-rpath $libdir'
9596      fi
9597      hardcode_libdir_separator=:
9598      ;;
9599
9600    solaris*)
9601      no_undefined_flag=' -z text'
9602      if test "$GCC" = yes; then
9603        wlarc='${wl}'
9604        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9605        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9606          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9607      else
9608        wlarc=''
9609        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9610        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9611        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9612      fi
9613      hardcode_libdir_flag_spec='-R$libdir'
9614      hardcode_shlibpath_var=no
9615      case $host_os in
9616      solaris2.[0-5] | solaris2.[0-5].*) ;;
9617      *)
9618        # The compiler driver will combine linker options so we
9619        # cannot just pass the convience library names through
9620        # without $wl, iff we do not link with $LD.
9621        # Luckily, gcc supports the same syntax we need for Sun Studio.
9622        # Supported since Solaris 2.6 (maybe 2.5.1?)
9623        case $wlarc in
9624        '')
9625          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9626        *)
9627          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' ;;
9628        esac ;;
9629      esac
9630      link_all_deplibs=yes
9631      ;;
9632
9633    sunos4*)
9634      if test "x$host_vendor" = xsequent; then
9635        # Use $CC to link under sequent, because it throws in some extra .o
9636        # files that make .init and .fini sections work.
9637        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9638      else
9639        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9640      fi
9641      hardcode_libdir_flag_spec='-L$libdir'
9642      hardcode_direct=yes
9643      hardcode_minus_L=yes
9644      hardcode_shlibpath_var=no
9645      ;;
9646
9647    sysv4)
9648      case $host_vendor in
9649        sni)
9650          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651          hardcode_direct=yes # is this really true???
9652        ;;
9653        siemens)
9654          ## LD is ld it makes a PLAMLIB
9655          ## CC just makes a GrossModule.
9656          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9657          reload_cmds='$CC -r -o $output$reload_objs'
9658          hardcode_direct=no
9659        ;;
9660        motorola)
9661          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9662          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9663        ;;
9664      esac
9665      runpath_var='LD_RUN_PATH'
9666      hardcode_shlibpath_var=no
9667      ;;
9668
9669    sysv4.3*)
9670      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671      hardcode_shlibpath_var=no
9672      export_dynamic_flag_spec='-Bexport'
9673      ;;
9674
9675    sysv4*MP*)
9676      if test -d /usr/nec; then
9677        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678        hardcode_shlibpath_var=no
9679        runpath_var=LD_RUN_PATH
9680        hardcode_runpath_var=yes
9681        ld_shlibs=yes
9682      fi
9683      ;;
9684
9685    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9686      no_undefined_flag='${wl}-z,text'
9687      archive_cmds_need_lc=no
9688      hardcode_shlibpath_var=no
9689      runpath_var='LD_RUN_PATH'
9690
9691      if test "$GCC" = yes; then
9692        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694      else
9695        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697      fi
9698      ;;
9699
9700    sysv5* | sco3.2v5* | sco5v6*)
9701      # Note: We can NOT use -z defs as we might desire, because we do not
9702      # link with -lc, and that would cause any symbols used from libc to
9703      # always be unresolved, which means just about no library would
9704      # ever link correctly.  If we're not using GNU ld we use -z text
9705      # though, which does catch some bad symbols but isn't as heavy-handed
9706      # as -z defs.
9707      no_undefined_flag='${wl}-z,text'
9708      allow_undefined_flag='${wl}-z,nodefs'
9709      archive_cmds_need_lc=no
9710      hardcode_shlibpath_var=no
9711      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9712      hardcode_libdir_separator=':'
9713      link_all_deplibs=yes
9714      export_dynamic_flag_spec='${wl}-Bexport'
9715      runpath_var='LD_RUN_PATH'
9716
9717      if test "$GCC" = yes; then
9718        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9719        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9720      else
9721        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9722        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9723      fi
9724      ;;
9725
9726    uts4*)
9727      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728      hardcode_libdir_flag_spec='-L$libdir'
9729      hardcode_shlibpath_var=no
9730      ;;
9731
9732    *)
9733      ld_shlibs=no
9734      ;;
9735    esac
9736  fi
9737
9738echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9739echo "${ECHO_T}$ld_shlibs" >&6
9740test "$ld_shlibs" = no && can_build_shared=no
9741
9742#
9743# Do we need to explicitly link libc?
9744#
9745case "x$archive_cmds_need_lc" in
9746x|xyes)
9747  # Assume -lc should be added
9748  archive_cmds_need_lc=yes
9749
9750  if test "$enable_shared" = yes && test "$GCC" = yes; then
9751    case $archive_cmds in
9752    *'~'*)
9753      # FIXME: we may have to deal with multi-command sequences.
9754      ;;
9755    '$CC '*)
9756      # Test whether the compiler implicitly links with -lc since on some
9757      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9758      # to ld, don't add -lc before -lgcc.
9759      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9760echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9761      $rm conftest*
9762      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9763
9764      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9765  (eval $ac_compile) 2>&5
9766  ac_status=$?
9767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768  (exit $ac_status); } 2>conftest.err; then
9769        soname=conftest
9770        lib=conftest
9771        libobjs=conftest.$ac_objext
9772        deplibs=
9773        wl=$lt_prog_compiler_wl
9774        pic_flag=$lt_prog_compiler_pic
9775        compiler_flags=-v
9776        linker_flags=-v
9777        verstring=
9778        output_objdir=.
9779        libname=conftest
9780        lt_save_allow_undefined_flag=$allow_undefined_flag
9781        allow_undefined_flag=
9782        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9783  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9784  ac_status=$?
9785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786  (exit $ac_status); }
9787        then
9788          archive_cmds_need_lc=no
9789        else
9790          archive_cmds_need_lc=yes
9791        fi
9792        allow_undefined_flag=$lt_save_allow_undefined_flag
9793      else
9794        cat conftest.err 1>&5
9795      fi
9796      $rm conftest*
9797      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9798echo "${ECHO_T}$archive_cmds_need_lc" >&6
9799      ;;
9800    esac
9801  fi
9802  ;;
9803esac
9804
9805echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9806echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9807library_names_spec=
9808libname_spec='lib$name'
9809soname_spec=
9810shrext_cmds=".so"
9811postinstall_cmds=
9812postuninstall_cmds=
9813finish_cmds=
9814finish_eval=
9815shlibpath_var=
9816shlibpath_overrides_runpath=unknown
9817version_type=none
9818dynamic_linker="$host_os ld.so"
9819sys_lib_dlsearch_path_spec="/lib /usr/lib"
9820if test "$GCC" = yes; then
9821  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9822  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9823    # if the path contains ";" then we assume it to be the separator
9824    # otherwise default to the standard path separator (i.e. ":") - it is
9825    # assumed that no part of a normal pathname contains ";" but that should
9826    # okay in the real world where ";" in dirpaths is itself problematic.
9827    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9828  else
9829    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9830  fi
9831else
9832  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9833fi
9834need_lib_prefix=unknown
9835hardcode_into_libs=no
9836
9837# when you set need_version to no, make sure it does not cause -set_version
9838# flags to be left without arguments
9839need_version=unknown
9840
9841case $host_os in
9842aix3*)
9843  version_type=linux
9844  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9845  shlibpath_var=LIBPATH
9846
9847  # AIX 3 has no versioning support, so we append a major version to the name.
9848  soname_spec='${libname}${release}${shared_ext}$major'
9849  ;;
9850
9851aix4* | aix5*)
9852  version_type=linux
9853  need_lib_prefix=no
9854  need_version=no
9855  hardcode_into_libs=yes
9856  if test "$host_cpu" = ia64; then
9857    # AIX 5 supports IA64
9858    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9859    shlibpath_var=LD_LIBRARY_PATH
9860  else
9861    # With GCC up to 2.95.x, collect2 would create an import file
9862    # for dependence libraries.  The import file would start with
9863    # the line `#! .'.  This would cause the generated library to
9864    # depend on `.', always an invalid library.  This was fixed in
9865    # development snapshots of GCC prior to 3.0.
9866    case $host_os in
9867      aix4 | aix4.[01] | aix4.[01].*)
9868      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9869           echo ' yes '
9870           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9871        :
9872      else
9873        can_build_shared=no
9874      fi
9875      ;;
9876    esac
9877    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9878    # soname into executable. Probably we can add versioning support to
9879    # collect2, so additional links can be useful in future.
9880    if test "$aix_use_runtimelinking" = yes; then
9881      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9882      # instead of lib<name>.a to let people know that these are not
9883      # typical AIX shared libraries.
9884      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885    else
9886      # We preserve .a as extension for shared libraries through AIX4.2
9887      # and later when we are not doing run time linking.
9888      library_names_spec='${libname}${release}.a $libname.a'
9889      soname_spec='${libname}${release}${shared_ext}$major'
9890    fi
9891    shlibpath_var=LIBPATH
9892  fi
9893  ;;
9894
9895amigaos*)
9896  library_names_spec='$libname.ixlibrary $libname.a'
9897  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9898  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'
9899  ;;
9900
9901beos*)
9902  library_names_spec='${libname}${shared_ext}'
9903  dynamic_linker="$host_os ld.so"
9904  shlibpath_var=LIBRARY_PATH
9905  ;;
9906
9907bsdi[45]*)
9908  version_type=linux
9909  need_version=no
9910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9911  soname_spec='${libname}${release}${shared_ext}$major'
9912  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9913  shlibpath_var=LD_LIBRARY_PATH
9914  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9915  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9916  # the default ld.so.conf also contains /usr/contrib/lib and
9917  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9918  # libtool to hard-code these into programs
9919  ;;
9920
9921cygwin* | mingw* | pw32*)
9922  version_type=windows
9923  shrext_cmds=".dll"
9924  need_version=no
9925  need_lib_prefix=no
9926
9927  case $GCC,$host_os in
9928  yes,cygwin* | yes,mingw* | yes,pw32*)
9929    library_names_spec='$libname.dll.a'
9930    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9931    postinstall_cmds='base_file=`basename \${file}`~
9932      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9933      dldir=$destdir/`dirname \$dlpath`~
9934      test -d \$dldir || mkdir -p \$dldir~
9935      $install_prog $dir/$dlname \$dldir/$dlname~
9936      chmod a+x \$dldir/$dlname'
9937    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9938      dlpath=$dir/\$dldll~
9939       $rm \$dlpath'
9940    shlibpath_overrides_runpath=yes
9941
9942    case $host_os in
9943    cygwin*)
9944      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9945      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9946      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9947      ;;
9948    mingw*)
9949      # MinGW DLLs use traditional 'lib' prefix
9950      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9951      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9952      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9953        # It is most probably a Windows format PATH printed by
9954        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9955        # path with ; separators, and with drive letters. We can handle the
9956        # drive letters (cygwin fileutils understands them), so leave them,
9957        # especially as we might pass files found there to a mingw objdump,
9958        # which wouldn't understand a cygwinified path. Ahh.
9959        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9960      else
9961        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9962      fi
9963      ;;
9964    pw32*)
9965      # pw32 DLLs use 'pw' prefix rather than 'lib'
9966      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9967      ;;
9968    esac
9969    ;;
9970
9971  *)
9972    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9973    ;;
9974  esac
9975  dynamic_linker='Win32 ld.exe'
9976  # FIXME: first we should search . and the directory the executable is in
9977  shlibpath_var=PATH
9978  ;;
9979
9980darwin* | rhapsody*)
9981  dynamic_linker="$host_os dyld"
9982  version_type=darwin
9983  need_lib_prefix=no
9984  need_version=no
9985  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9986  soname_spec='${libname}${release}${major}$shared_ext'
9987  shlibpath_overrides_runpath=yes
9988  shlibpath_var=DYLD_LIBRARY_PATH
9989  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9990  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9991  if test "$GCC" = yes; then
9992    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"`
9993  else
9994    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9995  fi
9996  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9997  ;;
9998
9999dgux*)
10000  version_type=linux
10001  need_lib_prefix=no
10002  need_version=no
10003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10004  soname_spec='${libname}${release}${shared_ext}$major'
10005  shlibpath_var=LD_LIBRARY_PATH
10006  ;;
10007
10008freebsd1*)
10009  dynamic_linker=no
10010  ;;
10011
10012kfreebsd*-gnu)
10013  version_type=linux
10014  need_lib_prefix=no
10015  need_version=no
10016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10017  soname_spec='${libname}${release}${shared_ext}$major'
10018  shlibpath_var=LD_LIBRARY_PATH
10019  shlibpath_overrides_runpath=no
10020  hardcode_into_libs=yes
10021  dynamic_linker='GNU ld.so'
10022  ;;
10023
10024freebsd* | dragonfly*)
10025  # DragonFly does not have aout.  When/if they implement a new
10026  # versioning mechanism, adjust this.
10027  if test -x /usr/bin/objformat; then
10028    objformat=`/usr/bin/objformat`
10029  else
10030    case $host_os in
10031    freebsd[123]*) objformat=aout ;;
10032    *) objformat=elf ;;
10033    esac
10034  fi
10035  version_type=freebsd-$objformat
10036  case $version_type in
10037    freebsd-elf*)
10038      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10039      need_version=no
10040      need_lib_prefix=no
10041      ;;
10042    freebsd-*)
10043      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10044      need_version=yes
10045      ;;
10046  esac
10047  shlibpath_var=LD_LIBRARY_PATH
10048  case $host_os in
10049  freebsd2*)
10050    shlibpath_overrides_runpath=yes
10051    ;;
10052  freebsd3.[01]* | freebsdelf3.[01]*)
10053    shlibpath_overrides_runpath=yes
10054    hardcode_into_libs=yes
10055    ;;
10056  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10057  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10058    shlibpath_overrides_runpath=no
10059    hardcode_into_libs=yes
10060    ;;
10061  freebsd*) # from 4.6 on
10062    shlibpath_overrides_runpath=yes
10063    hardcode_into_libs=yes
10064    ;;
10065  esac
10066  ;;
10067
10068gnu*)
10069  version_type=linux
10070  need_lib_prefix=no
10071  need_version=no
10072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10073  soname_spec='${libname}${release}${shared_ext}$major'
10074  shlibpath_var=LD_LIBRARY_PATH
10075  hardcode_into_libs=yes
10076  ;;
10077
10078hpux9* | hpux10* | hpux11*)
10079  # Give a soname corresponding to the major version so that dld.sl refuses to
10080  # link against other versions.
10081  version_type=sunos
10082  need_lib_prefix=no
10083  need_version=no
10084  case $host_cpu in
10085  ia64*)
10086    shrext_cmds='.so'
10087    hardcode_into_libs=yes
10088    dynamic_linker="$host_os dld.so"
10089    shlibpath_var=LD_LIBRARY_PATH
10090    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10091    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092    soname_spec='${libname}${release}${shared_ext}$major'
10093    if test "X$HPUX_IA64_MODE" = X32; then
10094      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10095    else
10096      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10097    fi
10098    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10099    ;;
10100   hppa*64*)
10101     shrext_cmds='.sl'
10102     hardcode_into_libs=yes
10103     dynamic_linker="$host_os dld.sl"
10104     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10105     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10106     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107     soname_spec='${libname}${release}${shared_ext}$major'
10108     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10109     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10110     ;;
10111   *)
10112    shrext_cmds='.sl'
10113    dynamic_linker="$host_os dld.sl"
10114    shlibpath_var=SHLIB_PATH
10115    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10116    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117    soname_spec='${libname}${release}${shared_ext}$major'
10118    ;;
10119  esac
10120  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10121  postinstall_cmds='chmod 555 $lib'
10122  ;;
10123
10124interix3*)
10125  version_type=linux
10126  need_lib_prefix=no
10127  need_version=no
10128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10129  soname_spec='${libname}${release}${shared_ext}$major'
10130  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10131  shlibpath_var=LD_LIBRARY_PATH
10132  shlibpath_overrides_runpath=no
10133  hardcode_into_libs=yes
10134  ;;
10135
10136irix5* | irix6* | nonstopux*)
10137  case $host_os in
10138    nonstopux*) version_type=nonstopux ;;
10139    *)
10140        if test "$lt_cv_prog_gnu_ld" = yes; then
10141                version_type=linux
10142        else
10143                version_type=irix
10144        fi ;;
10145  esac
10146  need_lib_prefix=no
10147  need_version=no
10148  soname_spec='${libname}${release}${shared_ext}$major'
10149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10150  case $host_os in
10151  irix5* | nonstopux*)
10152    libsuff= shlibsuff=
10153    ;;
10154  *)
10155    case $LD in # libtool.m4 will add one of these switches to LD
10156    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10157      libsuff= shlibsuff= libmagic=32-bit;;
10158    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10159      libsuff=32 shlibsuff=N32 libmagic=N32;;
10160    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10161      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10162    *) libsuff= shlibsuff= libmagic=never-match;;
10163    esac
10164    ;;
10165  esac
10166  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10167  shlibpath_overrides_runpath=no
10168  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10169  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10170  hardcode_into_libs=yes
10171  ;;
10172
10173# No shared lib support for Linux oldld, aout, or coff.
10174linux*oldld* | linux*aout* | linux*coff*)
10175  dynamic_linker=no
10176  ;;
10177
10178# This must be Linux ELF.
10179linux*)
10180  version_type=linux
10181  need_lib_prefix=no
10182  need_version=no
10183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184  soname_spec='${libname}${release}${shared_ext}$major'
10185  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10186  shlibpath_var=LD_LIBRARY_PATH
10187  shlibpath_overrides_runpath=no
10188  # This implies no fast_install, which is unacceptable.
10189  # Some rework will be needed to allow for fast_install
10190  # before this can be enabled.
10191  hardcode_into_libs=yes
10192
10193  # Append ld.so.conf contents to the search path
10194  if test -f /etc/ld.so.conf; then
10195    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' ' '`
10196    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10197  fi
10198
10199  # We used to test for /lib/ld.so.1 and disable shared libraries on
10200  # powerpc, because MkLinux only supported shared libraries with the
10201  # GNU dynamic linker.  Since this was broken with cross compilers,
10202  # most powerpc-linux boxes support dynamic linking these days and
10203  # people can always --disable-shared, the test was removed, and we
10204  # assume the GNU/Linux dynamic linker is in use.
10205  dynamic_linker='GNU/Linux ld.so'
10206  ;;
10207
10208knetbsd*-gnu)
10209  version_type=linux
10210  need_lib_prefix=no
10211  need_version=no
10212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10213  soname_spec='${libname}${release}${shared_ext}$major'
10214  shlibpath_var=LD_LIBRARY_PATH
10215  shlibpath_overrides_runpath=no
10216  hardcode_into_libs=yes
10217  dynamic_linker='GNU ld.so'
10218  ;;
10219
10220netbsd*)
10221  version_type=sunos
10222  need_lib_prefix=no
10223  need_version=no
10224  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10225    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10226    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10227    dynamic_linker='NetBSD (a.out) ld.so'
10228  else
10229    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10230    soname_spec='${libname}${release}${shared_ext}$major'
10231    dynamic_linker='NetBSD ld.elf_so'
10232  fi
10233  shlibpath_var=LD_LIBRARY_PATH
10234  shlibpath_overrides_runpath=yes
10235  hardcode_into_libs=yes
10236  ;;
10237
10238newsos6)
10239  version_type=linux
10240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241  shlibpath_var=LD_LIBRARY_PATH
10242  shlibpath_overrides_runpath=yes
10243  ;;
10244
10245nto-qnx*)
10246  version_type=linux
10247  need_lib_prefix=no
10248  need_version=no
10249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250  soname_spec='${libname}${release}${shared_ext}$major'
10251  shlibpath_var=LD_LIBRARY_PATH
10252  shlibpath_overrides_runpath=yes
10253  ;;
10254
10255openbsd*)
10256  version_type=sunos
10257  sys_lib_dlsearch_path_spec="/usr/lib"
10258  need_lib_prefix=no
10259  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10260  case $host_os in
10261    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10262    *)                         need_version=no  ;;
10263  esac
10264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10265  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10266  shlibpath_var=LD_LIBRARY_PATH
10267  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10268    case $host_os in
10269      openbsd2.[89] | openbsd2.[89].*)
10270        shlibpath_overrides_runpath=no
10271        ;;
10272      *)
10273        shlibpath_overrides_runpath=yes
10274        ;;
10275      esac
10276  else
10277    shlibpath_overrides_runpath=yes
10278  fi
10279  ;;
10280
10281os2*)
10282  libname_spec='$name'
10283  shrext_cmds=".dll"
10284  need_lib_prefix=no
10285  library_names_spec='$libname${shared_ext} $libname.a'
10286  dynamic_linker='OS/2 ld.exe'
10287  shlibpath_var=LIBPATH
10288  ;;
10289
10290osf3* | osf4* | osf5*)
10291  version_type=osf
10292  need_lib_prefix=no
10293  need_version=no
10294  soname_spec='${libname}${release}${shared_ext}$major'
10295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296  shlibpath_var=LD_LIBRARY_PATH
10297  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10298  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10299  ;;
10300
10301solaris*)
10302  version_type=linux
10303  need_lib_prefix=no
10304  need_version=no
10305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306  soname_spec='${libname}${release}${shared_ext}$major'
10307  shlibpath_var=LD_LIBRARY_PATH
10308  shlibpath_overrides_runpath=yes
10309  hardcode_into_libs=yes
10310  # ldd complains unless libraries are executable
10311  postinstall_cmds='chmod +x $lib'
10312  ;;
10313
10314sunos4*)
10315  version_type=sunos
10316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10318  shlibpath_var=LD_LIBRARY_PATH
10319  shlibpath_overrides_runpath=yes
10320  if test "$with_gnu_ld" = yes; then
10321    need_lib_prefix=no
10322  fi
10323  need_version=yes
10324  ;;
10325
10326sysv4 | sysv4.3*)
10327  version_type=linux
10328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329  soname_spec='${libname}${release}${shared_ext}$major'
10330  shlibpath_var=LD_LIBRARY_PATH
10331  case $host_vendor in
10332    sni)
10333      shlibpath_overrides_runpath=no
10334      need_lib_prefix=no
10335      export_dynamic_flag_spec='${wl}-Blargedynsym'
10336      runpath_var=LD_RUN_PATH
10337      ;;
10338    siemens)
10339      need_lib_prefix=no
10340      ;;
10341    motorola)
10342      need_lib_prefix=no
10343      need_version=no
10344      shlibpath_overrides_runpath=no
10345      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10346      ;;
10347  esac
10348  ;;
10349
10350sysv4*MP*)
10351  if test -d /usr/nec ;then
10352    version_type=linux
10353    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10354    soname_spec='$libname${shared_ext}.$major'
10355    shlibpath_var=LD_LIBRARY_PATH
10356  fi
10357  ;;
10358
10359sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10360  version_type=freebsd-elf
10361  need_lib_prefix=no
10362  need_version=no
10363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10364  soname_spec='${libname}${release}${shared_ext}$major'
10365  shlibpath_var=LD_LIBRARY_PATH
10366  hardcode_into_libs=yes
10367  if test "$with_gnu_ld" = yes; then
10368    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10369    shlibpath_overrides_runpath=no
10370  else
10371    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10372    shlibpath_overrides_runpath=yes
10373    case $host_os in
10374      sco3.2v5*)
10375        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10376        ;;
10377    esac
10378  fi
10379  sys_lib_dlsearch_path_spec='/usr/lib'
10380  ;;
10381
10382uts4*)
10383  version_type=linux
10384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385  soname_spec='${libname}${release}${shared_ext}$major'
10386  shlibpath_var=LD_LIBRARY_PATH
10387  ;;
10388
10389*)
10390  dynamic_linker=no
10391  ;;
10392esac
10393echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10394echo "${ECHO_T}$dynamic_linker" >&6
10395test "$dynamic_linker" = no && can_build_shared=no
10396
10397variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10398if test "$GCC" = yes; then
10399  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10400fi
10401
10402echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10403echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10404hardcode_action=
10405if test -n "$hardcode_libdir_flag_spec" || \
10406   test -n "$runpath_var" || \
10407   test "X$hardcode_automatic" = "Xyes" ; then
10408
10409  # We can hardcode non-existant directories.
10410  if test "$hardcode_direct" != no &&
10411     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10412     # have to relink, otherwise we might link with an installed library
10413     # when we should be linking with a yet-to-be-installed one
10414     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10415     test "$hardcode_minus_L" != no; then
10416    # Linking always hardcodes the temporary library directory.
10417    hardcode_action=relink
10418  else
10419    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10420    hardcode_action=immediate
10421  fi
10422else
10423  # We cannot hardcode anything, or else we can only hardcode existing
10424  # directories.
10425  hardcode_action=unsupported
10426fi
10427echo "$as_me:$LINENO: result: $hardcode_action" >&5
10428echo "${ECHO_T}$hardcode_action" >&6
10429
10430if test "$hardcode_action" = relink; then
10431  # Fast installation is not supported
10432  enable_fast_install=no
10433elif test "$shlibpath_overrides_runpath" = yes ||
10434     test "$enable_shared" = no; then
10435  # Fast installation is not necessary
10436  enable_fast_install=needless
10437fi
10438
10439striplib=
10440old_striplib=
10441echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10442echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10443if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10444  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10445  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10446  echo "$as_me:$LINENO: result: yes" >&5
10447echo "${ECHO_T}yes" >&6
10448else
10449# FIXME - insert some real tests, host_os isn't really good enough
10450  case $host_os in
10451   darwin*)
10452       if test -n "$STRIP" ; then
10453         striplib="$STRIP -x"
10454         echo "$as_me:$LINENO: result: yes" >&5
10455echo "${ECHO_T}yes" >&6
10456       else
10457  echo "$as_me:$LINENO: result: no" >&5
10458echo "${ECHO_T}no" >&6
10459fi
10460       ;;
10461   *)
10462  echo "$as_me:$LINENO: result: no" >&5
10463echo "${ECHO_T}no" >&6
10464    ;;
10465  esac
10466fi
10467
10468if test "x$enable_dlopen" != xyes; then
10469  enable_dlopen=unknown
10470  enable_dlopen_self=unknown
10471  enable_dlopen_self_static=unknown
10472else
10473  lt_cv_dlopen=no
10474  lt_cv_dlopen_libs=
10475
10476  case $host_os in
10477  beos*)
10478    lt_cv_dlopen="load_add_on"
10479    lt_cv_dlopen_libs=
10480    lt_cv_dlopen_self=yes
10481    ;;
10482
10483  mingw* | pw32*)
10484    lt_cv_dlopen="LoadLibrary"
10485    lt_cv_dlopen_libs=
10486   ;;
10487
10488  cygwin*)
10489    lt_cv_dlopen="dlopen"
10490    lt_cv_dlopen_libs=
10491   ;;
10492
10493  darwin*)
10494  # if libdl is installed we need to link against it
10495    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10496echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10497if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10498  echo $ECHO_N "(cached) $ECHO_C" >&6
10499else
10500  ac_check_lib_save_LIBS=$LIBS
10501LIBS="-ldl  $LIBS"
10502cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h.  */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h.  */
10508
10509/* Override any gcc2 internal prototype to avoid an error.  */
10510#ifdef __cplusplus
10511extern "C"
10512#endif
10513/* We use char because int might match the return type of a gcc2
10514   builtin and then its argument prototype would still apply.  */
10515char dlopen ();
10516int
10517main ()
10518{
10519dlopen ();
10520  ;
10521  return 0;
10522}
10523_ACEOF
10524rm -f conftest.$ac_objext conftest$ac_exeext
10525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10526  (eval $ac_link) 2>conftest.er1
10527  ac_status=$?
10528  grep -v '^ *+' conftest.er1 >conftest.err
10529  rm -f conftest.er1
10530  cat conftest.err >&5
10531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532  (exit $ac_status); } &&
10533         { ac_try='test -z "$ac_c_werror_flag"
10534                         || test ! -s conftest.err'
10535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536  (eval $ac_try) 2>&5
10537  ac_status=$?
10538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539  (exit $ac_status); }; } &&
10540         { ac_try='test -s conftest$ac_exeext'
10541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542  (eval $ac_try) 2>&5
10543  ac_status=$?
10544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545  (exit $ac_status); }; }; then
10546  ac_cv_lib_dl_dlopen=yes
10547else
10548  echo "$as_me: failed program was:" >&5
10549sed 's/^/| /' conftest.$ac_ext >&5
10550
10551ac_cv_lib_dl_dlopen=no
10552fi
10553rm -f conftest.err conftest.$ac_objext \
10554      conftest$ac_exeext conftest.$ac_ext
10555LIBS=$ac_check_lib_save_LIBS
10556fi
10557echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10558echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10559if test $ac_cv_lib_dl_dlopen = yes; then
10560  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10561else
10562
10563    lt_cv_dlopen="dyld"
10564    lt_cv_dlopen_libs=
10565    lt_cv_dlopen_self=yes
10566
10567fi
10568
10569   ;;
10570
10571  *)
10572    echo "$as_me:$LINENO: checking for shl_load" >&5
10573echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10574if test "${ac_cv_func_shl_load+set}" = set; then
10575  echo $ECHO_N "(cached) $ECHO_C" >&6
10576else
10577  cat >conftest.$ac_ext <<_ACEOF
10578/* confdefs.h.  */
10579_ACEOF
10580cat confdefs.h >>conftest.$ac_ext
10581cat >>conftest.$ac_ext <<_ACEOF
10582/* end confdefs.h.  */
10583/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10584   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10585#define shl_load innocuous_shl_load
10586
10587/* System header to define __stub macros and hopefully few prototypes,
10588    which can conflict with char shl_load (); below.
10589    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10590    <limits.h> exists even on freestanding compilers.  */
10591
10592#ifdef __STDC__
10593# include <limits.h>
10594#else
10595# include <assert.h>
10596#endif
10597
10598#undef shl_load
10599
10600/* Override any gcc2 internal prototype to avoid an error.  */
10601#ifdef __cplusplus
10602extern "C"
10603{
10604#endif
10605/* We use char because int might match the return type of a gcc2
10606   builtin and then its argument prototype would still apply.  */
10607char shl_load ();
10608/* The GNU C library defines this for functions which it implements
10609    to always fail with ENOSYS.  Some functions are actually named
10610    something starting with __ and the normal name is an alias.  */
10611#if defined (__stub_shl_load) || defined (__stub___shl_load)
10612choke me
10613#else
10614char (*f) () = shl_load;
10615#endif
10616#ifdef __cplusplus
10617}
10618#endif
10619
10620int
10621main ()
10622{
10623return f != shl_load;
10624  ;
10625  return 0;
10626}
10627_ACEOF
10628rm -f conftest.$ac_objext conftest$ac_exeext
10629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630  (eval $ac_link) 2>conftest.er1
10631  ac_status=$?
10632  grep -v '^ *+' conftest.er1 >conftest.err
10633  rm -f conftest.er1
10634  cat conftest.err >&5
10635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636  (exit $ac_status); } &&
10637         { ac_try='test -z "$ac_c_werror_flag"
10638                         || test ! -s conftest.err'
10639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640  (eval $ac_try) 2>&5
10641  ac_status=$?
10642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643  (exit $ac_status); }; } &&
10644         { ac_try='test -s conftest$ac_exeext'
10645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646  (eval $ac_try) 2>&5
10647  ac_status=$?
10648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649  (exit $ac_status); }; }; then
10650  ac_cv_func_shl_load=yes
10651else
10652  echo "$as_me: failed program was:" >&5
10653sed 's/^/| /' conftest.$ac_ext >&5
10654
10655ac_cv_func_shl_load=no
10656fi
10657rm -f conftest.err conftest.$ac_objext \
10658      conftest$ac_exeext conftest.$ac_ext
10659fi
10660echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10661echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10662if test $ac_cv_func_shl_load = yes; then
10663  lt_cv_dlopen="shl_load"
10664else
10665  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10666echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10667if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10668  echo $ECHO_N "(cached) $ECHO_C" >&6
10669else
10670  ac_check_lib_save_LIBS=$LIBS
10671LIBS="-ldld  $LIBS"
10672cat >conftest.$ac_ext <<_ACEOF
10673/* confdefs.h.  */
10674_ACEOF
10675cat confdefs.h >>conftest.$ac_ext
10676cat >>conftest.$ac_ext <<_ACEOF
10677/* end confdefs.h.  */
10678
10679/* Override any gcc2 internal prototype to avoid an error.  */
10680#ifdef __cplusplus
10681extern "C"
10682#endif
10683/* We use char because int might match the return type of a gcc2
10684   builtin and then its argument prototype would still apply.  */
10685char shl_load ();
10686int
10687main ()
10688{
10689shl_load ();
10690  ;
10691  return 0;
10692}
10693_ACEOF
10694rm -f conftest.$ac_objext conftest$ac_exeext
10695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696  (eval $ac_link) 2>conftest.er1
10697  ac_status=$?
10698  grep -v '^ *+' conftest.er1 >conftest.err
10699  rm -f conftest.er1
10700  cat conftest.err >&5
10701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702  (exit $ac_status); } &&
10703         { ac_try='test -z "$ac_c_werror_flag"
10704                         || test ! -s conftest.err'
10705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706  (eval $ac_try) 2>&5
10707  ac_status=$?
10708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709  (exit $ac_status); }; } &&
10710         { ac_try='test -s conftest$ac_exeext'
10711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712  (eval $ac_try) 2>&5
10713  ac_status=$?
10714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715  (exit $ac_status); }; }; then
10716  ac_cv_lib_dld_shl_load=yes
10717else
10718  echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721ac_cv_lib_dld_shl_load=no
10722fi
10723rm -f conftest.err conftest.$ac_objext \
10724      conftest$ac_exeext conftest.$ac_ext
10725LIBS=$ac_check_lib_save_LIBS
10726fi
10727echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10728echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10729if test $ac_cv_lib_dld_shl_load = yes; then
10730  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10731else
10732  echo "$as_me:$LINENO: checking for dlopen" >&5
10733echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10734if test "${ac_cv_func_dlopen+set}" = set; then