source: stable/1.14/configure @ 1875

Last change on this file since 1875 was 1875, checked in by stefan, 7 years ago

restoring Clp/stable/1.14

  • Property svn:executable set to *
File size: 771.1 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Clp 1.14.
5#
6# Report bugs to <coin-clp@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
433PACKAGE_VERSION='1.14'
434PACKAGE_STRING='Clp 1.14'
435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
481ac_subdirs_all="$ac_subdirs_all Data/Sample"
482ac_subdirs_all="$ac_subdirs_all Data/Netlib"
483ac_subdirs_all="$ac_subdirs_all CoinUtils"
484ac_subdirs_all="$ac_subdirs_all Osi"
485ac_subdirs_all="$ac_subdirs_all Clp"
486ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
487ac_subst_files=''
488
489# Initialize some variables set by options.
490ac_init_help=
491ac_init_version=false
492# The variables have the same names as the options, with
493# dashes changed to underlines.
494cache_file=/dev/null
495exec_prefix=NONE
496no_create=
497no_recursion=
498prefix=NONE
499program_prefix=NONE
500program_suffix=NONE
501program_transform_name=s,x,x,
502silent=
503site=
504srcdir=
505verbose=
506x_includes=NONE
507x_libraries=NONE
508
509# Installation directory options.
510# These are left unexpanded so users can "make install exec_prefix=/foo"
511# and all the variables that are supposed to be based on exec_prefix
512# by default will actually change.
513# Use braces instead of parens because sh, perl, etc. also accept them.
514bindir='${exec_prefix}/bin'
515sbindir='${exec_prefix}/sbin'
516libexecdir='${exec_prefix}/libexec'
517datadir='${prefix}/share'
518sysconfdir='${prefix}/etc'
519sharedstatedir='${prefix}/com'
520localstatedir='${prefix}/var'
521libdir='${exec_prefix}/lib'
522includedir='${prefix}/include'
523oldincludedir='/usr/include'
524infodir='${prefix}/info'
525mandir='${prefix}/man'
526
527ac_prev=
528for ac_option
529do
530  # If the previous option needs an argument, assign it.
531  if test -n "$ac_prev"; then
532    eval "$ac_prev=\$ac_option"
533    ac_prev=
534    continue
535  fi
536
537  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
538
539  # Accept the important Cygnus configure options, so we can diagnose typos.
540
541  case $ac_option in
542
543  -bindir | --bindir | --bindi | --bind | --bin | --bi)
544    ac_prev=bindir ;;
545  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
546    bindir=$ac_optarg ;;
547
548  -build | --build | --buil | --bui | --bu)
549    ac_prev=build_alias ;;
550  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
551    build_alias=$ac_optarg ;;
552
553  -cache-file | --cache-file | --cache-fil | --cache-fi \
554  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
555    ac_prev=cache_file ;;
556  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
557  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
558    cache_file=$ac_optarg ;;
559
560  --config-cache | -C)
561    cache_file=config.cache ;;
562
563  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
564    ac_prev=datadir ;;
565  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
566  | --da=*)
567    datadir=$ac_optarg ;;
568
569  -disable-* | --disable-*)
570    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
571    # Reject names that are not valid shell variable names.
572    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574   { (exit 1); exit 1; }; }
575    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576    eval "enable_$ac_feature=no" ;;
577
578  -enable-* | --enable-*)
579    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
580    # Reject names that are not valid shell variable names.
581    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
582      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
583   { (exit 1); exit 1; }; }
584    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
585    case $ac_option in
586      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587      *) ac_optarg=yes ;;
588    esac
589    eval "enable_$ac_feature='$ac_optarg'" ;;
590
591  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
592  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
593  | --exec | --exe | --ex)
594    ac_prev=exec_prefix ;;
595  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
596  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
597  | --exec=* | --exe=* | --ex=*)
598    exec_prefix=$ac_optarg ;;
599
600  -gas | --gas | --ga | --g)
601    # Obsolete; use --with-gas.
602    with_gas=yes ;;
603
604  -help | --help | --hel | --he | -h)
605    ac_init_help=long ;;
606  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
607    ac_init_help=recursive ;;
608  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
609    ac_init_help=short ;;
610
611  -host | --host | --hos | --ho)
612    ac_prev=host_alias ;;
613  -host=* | --host=* | --hos=* | --ho=*)
614    host_alias=$ac_optarg ;;
615
616  -includedir | --includedir | --includedi | --included | --include \
617  | --includ | --inclu | --incl | --inc)
618    ac_prev=includedir ;;
619  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
620  | --includ=* | --inclu=* | --incl=* | --inc=*)
621    includedir=$ac_optarg ;;
622
623  -infodir | --infodir | --infodi | --infod | --info | --inf)
624    ac_prev=infodir ;;
625  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
626    infodir=$ac_optarg ;;
627
628  -libdir | --libdir | --libdi | --libd)
629    ac_prev=libdir ;;
630  -libdir=* | --libdir=* | --libdi=* | --libd=*)
631    libdir=$ac_optarg ;;
632
633  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
634  | --libexe | --libex | --libe)
635    ac_prev=libexecdir ;;
636  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
637  | --libexe=* | --libex=* | --libe=*)
638    libexecdir=$ac_optarg ;;
639
640  -localstatedir | --localstatedir | --localstatedi | --localstated \
641  | --localstate | --localstat | --localsta | --localst \
642  | --locals | --local | --loca | --loc | --lo)
643    ac_prev=localstatedir ;;
644  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
645  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
646  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
647    localstatedir=$ac_optarg ;;
648
649  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
650    ac_prev=mandir ;;
651  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
652    mandir=$ac_optarg ;;
653
654  -nfp | --nfp | --nf)
655    # Obsolete; use --without-fp.
656    with_fp=no ;;
657
658  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
659  | --no-cr | --no-c | -n)
660    no_create=yes ;;
661
662  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
663  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
664    no_recursion=yes ;;
665
666  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
667  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
668  | --oldin | --oldi | --old | --ol | --o)
669    ac_prev=oldincludedir ;;
670  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
671  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
672  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
673    oldincludedir=$ac_optarg ;;
674
675  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
676    ac_prev=prefix ;;
677  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
678    prefix=$ac_optarg ;;
679
680  -program-prefix | --program-prefix | --program-prefi | --program-pref \
681  | --program-pre | --program-pr | --program-p)
682    ac_prev=program_prefix ;;
683  -program-prefix=* | --program-prefix=* | --program-prefi=* \
684  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
685    program_prefix=$ac_optarg ;;
686
687  -program-suffix | --program-suffix | --program-suffi | --program-suff \
688  | --program-suf | --program-su | --program-s)
689    ac_prev=program_suffix ;;
690  -program-suffix=* | --program-suffix=* | --program-suffi=* \
691  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
692    program_suffix=$ac_optarg ;;
693
694  -program-transform-name | --program-transform-name \
695  | --program-transform-nam | --program-transform-na \
696  | --program-transform-n | --program-transform- \
697  | --program-transform | --program-transfor \
698  | --program-transfo | --program-transf \
699  | --program-trans | --program-tran \
700  | --progr-tra | --program-tr | --program-t)
701    ac_prev=program_transform_name ;;
702  -program-transform-name=* | --program-transform-name=* \
703  | --program-transform-nam=* | --program-transform-na=* \
704  | --program-transform-n=* | --program-transform-=* \
705  | --program-transform=* | --program-transfor=* \
706  | --program-transfo=* | --program-transf=* \
707  | --program-trans=* | --program-tran=* \
708  | --progr-tra=* | --program-tr=* | --program-t=*)
709    program_transform_name=$ac_optarg ;;
710
711  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
712  | -silent | --silent | --silen | --sile | --sil)
713    silent=yes ;;
714
715  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
716    ac_prev=sbindir ;;
717  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
718  | --sbi=* | --sb=*)
719    sbindir=$ac_optarg ;;
720
721  -sharedstatedir | --sharedstatedir | --sharedstatedi \
722  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
723  | --sharedst | --shareds | --shared | --share | --shar \
724  | --sha | --sh)
725    ac_prev=sharedstatedir ;;
726  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
727  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
728  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
729  | --sha=* | --sh=*)
730    sharedstatedir=$ac_optarg ;;
731
732  -site | --site | --sit)
733    ac_prev=site ;;
734  -site=* | --site=* | --sit=*)
735    site=$ac_optarg ;;
736
737  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
738    ac_prev=srcdir ;;
739  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
740    srcdir=$ac_optarg ;;
741
742  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
743  | --syscon | --sysco | --sysc | --sys | --sy)
744    ac_prev=sysconfdir ;;
745  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
746  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
747    sysconfdir=$ac_optarg ;;
748
749  -target | --target | --targe | --targ | --tar | --ta | --t)
750    ac_prev=target_alias ;;
751  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
752    target_alias=$ac_optarg ;;
753
754  -v | -verbose | --verbose | --verbos | --verbo | --verb)
755    verbose=yes ;;
756
757  -version | --version | --versio | --versi | --vers | -V)
758    ac_init_version=: ;;
759
760  -with-* | --with-*)
761    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
762    # Reject names that are not valid shell variable names.
763    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764      { echo "$as_me: error: invalid package name: $ac_package" >&2
765   { (exit 1); exit 1; }; }
766    ac_package=`echo $ac_package| sed 's/-/_/g'`
767    case $ac_option in
768      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
769      *) ac_optarg=yes ;;
770    esac
771    eval "with_$ac_package='$ac_optarg'" ;;
772
773  -without-* | --without-*)
774    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
775    # Reject names that are not valid shell variable names.
776    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
777      { echo "$as_me: error: invalid package name: $ac_package" >&2
778   { (exit 1); exit 1; }; }
779    ac_package=`echo $ac_package | sed 's/-/_/g'`
780    eval "with_$ac_package=no" ;;
781
782  --x)
783    # Obsolete; use --with-x.
784    with_x=yes ;;
785
786  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
787  | --x-incl | --x-inc | --x-in | --x-i)
788    ac_prev=x_includes ;;
789  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
790  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
791    x_includes=$ac_optarg ;;
792
793  -x-libraries | --x-libraries | --x-librarie | --x-librari \
794  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
795    ac_prev=x_libraries ;;
796  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
797  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
798    x_libraries=$ac_optarg ;;
799
800  -*) { echo "$as_me: error: unrecognized option: $ac_option
801Try \`$0 --help' for more information." >&2
802   { (exit 1); exit 1; }; }
803    ;;
804
805  *=*)
806    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
807    # Reject names that are not valid shell variable names.
808    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
809      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
810   { (exit 1); exit 1; }; }
811    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
812    eval "$ac_envvar='$ac_optarg'"
813    export $ac_envvar ;;
814
815  *)
816    # FIXME: should be removed in autoconf 3.0.
817    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
818    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
820    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
821    ;;
822
823  esac
824done
825
826if test -n "$ac_prev"; then
827  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
828  { echo "$as_me: error: missing argument to $ac_option" >&2
829   { (exit 1); exit 1; }; }
830fi
831
832# Be sure to have absolute paths.
833for ac_var in exec_prefix prefix
834do
835  eval ac_val=$`echo $ac_var`
836  case $ac_val in
837    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
838    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
839   { (exit 1); exit 1; }; };;
840  esac
841done
842
843# Be sure to have absolute paths.
844for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
845              localstatedir libdir includedir oldincludedir infodir mandir
846do
847  eval ac_val=$`echo $ac_var`
848  case $ac_val in
849    [\\/$]* | ?:[\\/]* ) ;;
850    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
851   { (exit 1); exit 1; }; };;
852  esac
853done
854
855# There might be people who depend on the old broken behavior: `$host'
856# used to hold the argument of --host etc.
857# FIXME: To remove some day.
858build=$build_alias
859host=$host_alias
860target=$target_alias
861
862# FIXME: To remove some day.
863if test "x$host_alias" != x; then
864  if test "x$build_alias" = x; then
865    cross_compiling=maybe
866    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
867    If a cross compiler is detected then cross compile mode will be used." >&2
868  elif test "x$build_alias" != "x$host_alias"; then
869    cross_compiling=yes
870  fi
871fi
872
873ac_tool_prefix=
874test -n "$host_alias" && ac_tool_prefix=$host_alias-
875
876test "$silent" = yes && exec 6>/dev/null
877
878
879# Find the source files, if location was not specified.
880if test -z "$srcdir"; then
881  ac_srcdir_defaulted=yes
882  # Try the directory containing this script, then its parent.
883  ac_confdir=`(dirname "$0") 2>/dev/null ||
884$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
885         X"$0" : 'X\(//\)[^/]' \| \
886         X"$0" : 'X\(//\)$' \| \
887         X"$0" : 'X\(/\)' \| \
888         .     : '\(.\)' 2>/dev/null ||
889echo X"$0" |
890    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
891          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
892          /^X\(\/\/\)$/{ s//\1/; q; }
893          /^X\(\/\).*/{ s//\1/; q; }
894          s/.*/./; q'`
895  srcdir=$ac_confdir
896  if test ! -r $srcdir/$ac_unique_file; then
897    srcdir=..
898  fi
899else
900  ac_srcdir_defaulted=no
901fi
902if test ! -r $srcdir/$ac_unique_file; then
903  if test "$ac_srcdir_defaulted" = yes; then
904    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
905   { (exit 1); exit 1; }; }
906  else
907    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
908   { (exit 1); exit 1; }; }
909  fi
910fi
911(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
912  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
913   { (exit 1); exit 1; }; }
914srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
915ac_env_build_alias_set=${build_alias+set}
916ac_env_build_alias_value=$build_alias
917ac_cv_env_build_alias_set=${build_alias+set}
918ac_cv_env_build_alias_value=$build_alias
919ac_env_host_alias_set=${host_alias+set}
920ac_env_host_alias_value=$host_alias
921ac_cv_env_host_alias_set=${host_alias+set}
922ac_cv_env_host_alias_value=$host_alias
923ac_env_target_alias_set=${target_alias+set}
924ac_env_target_alias_value=$target_alias
925ac_cv_env_target_alias_set=${target_alias+set}
926ac_cv_env_target_alias_value=$target_alias
927ac_env_CDEFS_set=${CDEFS+set}
928ac_env_CDEFS_value=$CDEFS
929ac_cv_env_CDEFS_set=${CDEFS+set}
930ac_cv_env_CDEFS_value=$CDEFS
931ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
932ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
933ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
934ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
935ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
936ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
937ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
938ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
939ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
940ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
941ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
942ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
943ac_env_CC_set=${CC+set}
944ac_env_CC_value=$CC
945ac_cv_env_CC_set=${CC+set}
946ac_cv_env_CC_value=$CC
947ac_env_CFLAGS_set=${CFLAGS+set}
948ac_env_CFLAGS_value=$CFLAGS
949ac_cv_env_CFLAGS_set=${CFLAGS+set}
950ac_cv_env_CFLAGS_value=$CFLAGS
951ac_env_LDFLAGS_set=${LDFLAGS+set}
952ac_env_LDFLAGS_value=$LDFLAGS
953ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
954ac_cv_env_LDFLAGS_value=$LDFLAGS
955ac_env_CPPFLAGS_set=${CPPFLAGS+set}
956ac_env_CPPFLAGS_value=$CPPFLAGS
957ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
958ac_cv_env_CPPFLAGS_value=$CPPFLAGS
959ac_env_MPICC_set=${MPICC+set}
960ac_env_MPICC_value=$MPICC
961ac_cv_env_MPICC_set=${MPICC+set}
962ac_cv_env_MPICC_value=$MPICC
963ac_env_CXXDEFS_set=${CXXDEFS+set}
964ac_env_CXXDEFS_value=$CXXDEFS
965ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
966ac_cv_env_CXXDEFS_value=$CXXDEFS
967ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
968ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
969ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
970ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
971ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
972ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
973ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
974ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
975ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
976ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
977ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
978ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
979ac_env_CXX_set=${CXX+set}
980ac_env_CXX_value=$CXX
981ac_cv_env_CXX_set=${CXX+set}
982ac_cv_env_CXX_value=$CXX
983ac_env_CXXFLAGS_set=${CXXFLAGS+set}
984ac_env_CXXFLAGS_value=$CXXFLAGS
985ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
986ac_cv_env_CXXFLAGS_value=$CXXFLAGS
987ac_env_MPICXX_set=${MPICXX+set}
988ac_env_MPICXX_value=$MPICXX
989ac_cv_env_MPICXX_set=${MPICXX+set}
990ac_cv_env_MPICXX_value=$MPICXX
991ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
992ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
993ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
994ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
995ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
996ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
997ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
998ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
999ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1000ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1001ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1002ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1003ac_env_F77_set=${F77+set}
1004ac_env_F77_value=$F77
1005ac_cv_env_F77_set=${F77+set}
1006ac_cv_env_F77_value=$F77
1007ac_env_FFLAGS_set=${FFLAGS+set}
1008ac_env_FFLAGS_value=$FFLAGS
1009ac_cv_env_FFLAGS_set=${FFLAGS+set}
1010ac_cv_env_FFLAGS_value=$FFLAGS
1011ac_env_MPIF77_set=${MPIF77+set}
1012ac_env_MPIF77_value=$MPIF77
1013ac_cv_env_MPIF77_set=${MPIF77+set}
1014ac_cv_env_MPIF77_value=$MPIF77
1015ac_env_CPP_set=${CPP+set}
1016ac_env_CPP_value=$CPP
1017ac_cv_env_CPP_set=${CPP+set}
1018ac_cv_env_CPP_value=$CPP
1019ac_env_CXXCPP_set=${CXXCPP+set}
1020ac_env_CXXCPP_value=$CXXCPP
1021ac_cv_env_CXXCPP_set=${CXXCPP+set}
1022ac_cv_env_CXXCPP_value=$CXXCPP
1023ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1024ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1025ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1026ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1027
1028#
1029# Report the --help message.
1030#
1031if test "$ac_init_help" = "long"; then
1032  # Omit some internal or obsolete options to make the list less imposing.
1033  # This message is too long to be a string in the A/UX 3.1 sh.
1034  cat <<_ACEOF
1035\`configure' configures Clp 1.14 to adapt to many kinds of systems.
1036
1037Usage: $0 [OPTION]... [VAR=VALUE]...
1038
1039To assign environment variables (e.g., CC, CFLAGS...), specify them as
1040VAR=VALUE.  See below for descriptions of some of the useful variables.
1041
1042Defaults for the options are specified in brackets.
1043
1044Configuration:
1045  -h, --help              display this help and exit
1046      --help=short        display options specific to this package
1047      --help=recursive    display the short help of all the included packages
1048  -V, --version           display version information and exit
1049  -q, --quiet, --silent   do not print \`checking...' messages
1050      --cache-file=FILE   cache test results in FILE [disabled]
1051  -C, --config-cache      alias for \`--cache-file=config.cache'
1052  -n, --no-create         do not create output files
1053      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1054
1055_ACEOF
1056
1057  cat <<_ACEOF
1058Installation directories:
1059  --prefix=PREFIX         install architecture-independent files in PREFIX
1060                          [$ac_default_prefix]
1061  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1062                          [PREFIX]
1063
1064By default, \`make install' will install all the files in
1065\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1066an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1067for instance \`--prefix=\$HOME'.
1068
1069For better control, use the options below.
1070
1071Fine tuning of the installation directories:
1072  --bindir=DIR           user executables [EPREFIX/bin]
1073  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1074  --libexecdir=DIR       program executables [EPREFIX/libexec]
1075  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1076  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1077  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1078  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1079  --libdir=DIR           object code libraries [EPREFIX/lib]
1080  --includedir=DIR       C header files [PREFIX/include]
1081  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1082  --infodir=DIR          info documentation [PREFIX/info]
1083  --mandir=DIR           man documentation [PREFIX/man]
1084_ACEOF
1085
1086  cat <<\_ACEOF
1087
1088Program names:
1089  --program-prefix=PREFIX            prepend PREFIX to installed program names
1090  --program-suffix=SUFFIX            append SUFFIX to installed program names
1091  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1092
1093System types:
1094  --build=BUILD     configure for building on BUILD [guessed]
1095  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1096_ACEOF
1097fi
1098
1099if test -n "$ac_init_help"; then
1100  case $ac_init_help in
1101     short | recursive ) echo "Configuration of Clp 1.14:";;
1102   esac
1103  cat <<\_ACEOF
1104
1105Optional Features:
1106  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1107  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1108  --enable-debug          compile all projects with debug options tests
1109                          (implies --disable-shared)
1110  --enable-doscompile     Under Cygwin, compile so that executables run under
1111                          DOS. Set to mingw to use gcc/g++/ld with
1112                          -mno-cygwin. Set to msvc to use cl/link (or
1113                          icl/link). Default when mentioned: mingw. Default
1114                          when not mentioned: disabled.
1115  --enable-static[=PKGS]
1116                          build static libraries [default=no]
1117  --disable-dependency-tracking  speeds up one-time build
1118  --enable-dependency-tracking   do not reject slow dependency extractors
1119  --enable-maintainer-mode  enable make rules and dependencies not useful
1120                          (and sometimes confusing) to the casual installer
1121  --enable-shared[=PKGS]
1122                          build shared libraries [default=yes]
1123  --enable-fast-install[=PKGS]
1124                          optimize for fast installation [default=yes]
1125  --disable-libtool-lock  avoid locking (might break parallel builds)
1126
1127Optional Packages:
1128  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1129  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1130  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1131  --with-pic              try to use only PIC/non-PIC objects [default=use
1132                          both]
1133  --with-tags[=TAGS]
1134                          include additional configurations [automatic]
1135
1136  --with-blas-lib linker flags for using project Blas
1137  --with-blas-incdir directory with header files for using project Blas
1138  --with-blas-datadir directory with data files for using project Blas
1139  --with-blas             specify BLAS library (or BUILD to enforce use of
1140                          ThirdParty/Blas)
1141  --with-lapack-lib linker flags for using project Lapack
1142  --with-lapack-incdir directory with header files for using project Lapack
1143  --with-lapack-datadir directory with data files for using project Lapack
1144  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1145                          ThirdParty/Lapack)
1146  --with-metis-lib linker flags for using project Metis
1147  --with-metis-incdir directory with header files for using project Metis
1148  --with-metis-datadir directory with data files for using project Metis
1149  --with-mumps-lib linker flags for using project Mumps
1150  --with-mumps-incdir directory with header files for using project Mumps
1151  --with-mumps-datadir directory with data files for using project Mumps
1152  --with-glpk-lib linker flags for using project Glpk
1153  --with-glpk-incdir directory with header files for using project Glpk
1154  --with-glpk-datadir directory with data files for using project Glpk
1155  --with-sample-lib linker flags for using project Sample
1156  --with-sample-incdir directory with header files for using project Sample
1157  --with-sample-datadir directory with data files for using project Sample
1158  --with-netlib-lib linker flags for using project Netlib
1159  --with-netlib-incdir directory with header files for using project Netlib
1160  --with-netlib-datadir directory with data files for using project Netlib
1161  --with-coinutils-lib linker flags for using project CoinUtils
1162  --with-coinutils-incdir directory with header files for using project
1163                          CoinUtils
1164  --with-coinutils-datadir
1165                          directory with data files for using project
1166                          CoinUtils
1167  --with-osi-lib linker flags for using project Osi
1168  --with-osi-incdir directory with header files for using project Osi
1169  --with-osi-datadir directory with data files for using project Osi
1170  --with-clp-lib linker flags for using project Clp
1171  --with-clp-incdir directory with header files for using project Clp
1172  --with-clp-datadir directory with data files for using project Clp
1173  --with-dot              use dot (from graphviz) when creating documentation
1174                          with doxygen if available; --without-dot to disable
1175
1176Some influential environment variables:
1177  CDEFS       Additional -D flags to be used when compiling C code.
1178  ADD_CFLAGS  Additional C compiler options
1179  DBG_CFLAGS  Debug C compiler options
1180  OPT_CFLAGS  Optimize C compiler options
1181  CC          C compiler command
1182  CFLAGS      C compiler flags
1183  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1184              nonstandard directory <lib dir>
1185  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1186              headers in a nonstandard directory <include dir>
1187  MPICC       C MPI Compiler
1188  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1189  ADD_CXXFLAGS
1190              Additional C++ compiler options
1191  DBG_CXXFLAGS
1192              Debug C++ compiler options
1193  OPT_CXXFLAGS
1194              Optimize C++ compiler options
1195  CXX         C++ compiler command
1196  CXXFLAGS    C++ compiler flags
1197  MPICXX      C++ MPI Compiler
1198  ADD_FFLAGS  Additional Fortran compiler options
1199  DBG_FFLAGS  Debug Fortran compiler options
1200  OPT_FFLAGS  Optimize Fortran compiler options
1201  F77         Fortran 77 compiler command
1202  FFLAGS      Fortran 77 compiler flags
1203  MPIF77      Fortran MPI Compiler
1204  CPP         C preprocessor
1205  CXXCPP      C++ preprocessor
1206  COIN_SKIP_PROJECTS
1207              Set to the subdirectories of projects that should be skipped in
1208              the configuration
1209
1210Use these variables to override the choices made by `configure' or to help
1211it to find libraries and programs with nonstandard names/locations.
1212
1213Report bugs to <coin-clp@lists.coin-or.org>.
1214_ACEOF
1215fi
1216
1217if test "$ac_init_help" = "recursive"; then
1218  # If there are subdirs, report their specific --help.
1219  ac_popdir=`pwd`
1220  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1221    test -d $ac_dir || continue
1222    ac_builddir=.
1223
1224if test "$ac_dir" != .; then
1225  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1226  # A "../" for each directory in $ac_dir_suffix.
1227  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1228else
1229  ac_dir_suffix= ac_top_builddir=
1230fi
1231
1232case $srcdir in
1233  .)  # No --srcdir option.  We are building in place.
1234    ac_srcdir=.
1235    if test -z "$ac_top_builddir"; then
1236       ac_top_srcdir=.
1237    else
1238       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1239    fi ;;
1240  [\\/]* | ?:[\\/]* )  # Absolute path.
1241    ac_srcdir=$srcdir$ac_dir_suffix;
1242    ac_top_srcdir=$srcdir ;;
1243  *) # Relative path.
1244    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1245    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1246esac
1247
1248# Do not use `cd foo && pwd` to compute absolute paths, because
1249# the directories may not exist.
1250case `pwd` in
1251.) ac_abs_builddir="$ac_dir";;
1252*)
1253  case "$ac_dir" in
1254  .) ac_abs_builddir=`pwd`;;
1255  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1256  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1257  esac;;
1258esac
1259case $ac_abs_builddir in
1260.) ac_abs_top_builddir=${ac_top_builddir}.;;
1261*)
1262  case ${ac_top_builddir}. in
1263  .) ac_abs_top_builddir=$ac_abs_builddir;;
1264  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1265  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1266  esac;;
1267esac
1268case $ac_abs_builddir in
1269.) ac_abs_srcdir=$ac_srcdir;;
1270*)
1271  case $ac_srcdir in
1272  .) ac_abs_srcdir=$ac_abs_builddir;;
1273  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1274  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1275  esac;;
1276esac
1277case $ac_abs_builddir in
1278.) ac_abs_top_srcdir=$ac_top_srcdir;;
1279*)
1280  case $ac_top_srcdir in
1281  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1282  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1283  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1284  esac;;
1285esac
1286
1287    cd $ac_dir
1288    # Check for guested configure; otherwise get Cygnus style configure.
1289    if test -f $ac_srcdir/configure.gnu; then
1290      echo
1291      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1292    elif test -f $ac_srcdir/configure; then
1293      echo
1294      $SHELL $ac_srcdir/configure  --help=recursive
1295    elif test -f $ac_srcdir/configure.ac ||
1296           test -f $ac_srcdir/configure.in; then
1297      echo
1298      $ac_configure --help
1299    else
1300      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1301    fi
1302    cd $ac_popdir
1303  done
1304fi
1305
1306test -n "$ac_init_help" && exit 0
1307if $ac_init_version; then
1308  cat <<\_ACEOF
1309Clp configure 1.14
1310generated by GNU Autoconf 2.59
1311
1312Copyright (C) 2003 Free Software Foundation, Inc.
1313This configure script is free software; the Free Software Foundation
1314gives unlimited permission to copy, distribute and modify it.
1315
1316
1317Copyright 2006 International Business Machines and others.
1318All Rights Reserved.
1319This file is part of the open source package Coin which is distributed
1320under the Eclipse Public License.
1321_ACEOF
1322  exit 0
1323fi
1324exec 5>config.log
1325cat >&5 <<_ACEOF
1326This file contains any messages produced by compilers while
1327running configure, to aid debugging if configure makes a mistake.
1328
1329It was created by Clp $as_me 1.14, which was
1330generated by GNU Autoconf 2.59.  Invocation command line was
1331
1332  $ $0 $@
1333
1334_ACEOF
1335{
1336cat <<_ASUNAME
1337## --------- ##
1338## Platform. ##
1339## --------- ##
1340
1341hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1342uname -m = `(uname -m) 2>/dev/null || echo unknown`
1343uname -r = `(uname -r) 2>/dev/null || echo unknown`
1344uname -s = `(uname -s) 2>/dev/null || echo unknown`
1345uname -v = `(uname -v) 2>/dev/null || echo unknown`
1346
1347/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1348/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1349
1350/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1351/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1352/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1353hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1354/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1355/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1356/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1357
1358_ASUNAME
1359
1360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1361for as_dir in $PATH
1362do
1363  IFS=$as_save_IFS
1364  test -z "$as_dir" && as_dir=.
1365  echo "PATH: $as_dir"
1366done
1367
1368} >&5
1369
1370cat >&5 <<_ACEOF
1371
1372
1373## ----------- ##
1374## Core tests. ##
1375## ----------- ##
1376
1377_ACEOF
1378
1379
1380# Keep a trace of the command line.
1381# Strip out --no-create and --no-recursion so they do not pile up.
1382# Strip out --silent because we don't want to record it for future runs.
1383# Also quote any args containing shell meta-characters.
1384# Make two passes to allow for proper duplicate-argument suppression.
1385ac_configure_args=
1386ac_configure_args0=
1387ac_configure_args1=
1388ac_sep=
1389ac_must_keep_next=false
1390for ac_pass in 1 2
1391do
1392  for ac_arg
1393  do
1394    case $ac_arg in
1395    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1396    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1397    | -silent | --silent | --silen | --sile | --sil)
1398      continue ;;
1399    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1400      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1401    esac
1402    case $ac_pass in
1403    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1404    2)
1405      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1406      if test $ac_must_keep_next = true; then
1407        ac_must_keep_next=false # Got value, back to normal.
1408      else
1409        case $ac_arg in
1410          *=* | --config-cache | -C | -disable-* | --disable-* \
1411          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1412          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1413          | -with-* | --with-* | -without-* | --without-* | --x)
1414            case "$ac_configure_args0 " in
1415              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1416            esac
1417            ;;
1418          -* ) ac_must_keep_next=true ;;
1419        esac
1420      fi
1421      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1422      # Get rid of the leading space.
1423      ac_sep=" "
1424      ;;
1425    esac
1426  done
1427done
1428$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1429$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1430
1431# When interrupted or exit'd, cleanup temporary files, and complete
1432# config.log.  We remove comments because anyway the quotes in there
1433# would cause problems or look ugly.
1434# WARNING: Be sure not to use single quotes in there, as some shells,
1435# such as our DU 5.0 friend, will then `close' the trap.
1436trap 'exit_status=$?
1437  # Save into config.log some information that might help in debugging.
1438  {
1439    echo
1440
1441    cat <<\_ASBOX
1442## ---------------- ##
1443## Cache variables. ##
1444## ---------------- ##
1445_ASBOX
1446    echo
1447    # The following way of writing the cache mishandles newlines in values,
1448{
1449  (set) 2>&1 |
1450    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1451    *ac_space=\ *)
1452      sed -n \
1453        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1454          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1455      ;;
1456    *)
1457      sed -n \
1458        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1459      ;;
1460    esac;
1461}
1462    echo
1463
1464    cat <<\_ASBOX
1465## ----------------- ##
1466## Output variables. ##
1467## ----------------- ##
1468_ASBOX
1469    echo
1470    for ac_var in $ac_subst_vars
1471    do
1472      eval ac_val=$`echo $ac_var`
1473      echo "$ac_var='"'"'$ac_val'"'"'"
1474    done | sort
1475    echo
1476
1477    if test -n "$ac_subst_files"; then
1478      cat <<\_ASBOX
1479## ------------- ##
1480## Output files. ##
1481## ------------- ##
1482_ASBOX
1483      echo
1484      for ac_var in $ac_subst_files
1485      do
1486        eval ac_val=$`echo $ac_var`
1487        echo "$ac_var='"'"'$ac_val'"'"'"
1488      done | sort
1489      echo
1490    fi
1491
1492    if test -s confdefs.h; then
1493      cat <<\_ASBOX
1494## ----------- ##
1495## confdefs.h. ##
1496## ----------- ##
1497_ASBOX
1498      echo
1499      sed "/^$/d" confdefs.h | sort
1500      echo
1501    fi
1502    test "$ac_signal" != 0 &&
1503      echo "$as_me: caught signal $ac_signal"
1504    echo "$as_me: exit $exit_status"
1505  } >&5
1506  rm -f core *.core &&
1507  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1508    exit $exit_status
1509     ' 0
1510for ac_signal in 1 2 13 15; do
1511  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1512done
1513ac_signal=0
1514
1515# confdefs.h avoids OS command line length limits that DEFS can exceed.
1516rm -rf conftest* confdefs.h
1517# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1518echo >confdefs.h
1519
1520# Predefined preprocessor variables.
1521
1522cat >>confdefs.h <<_ACEOF
1523#define PACKAGE_NAME "$PACKAGE_NAME"
1524_ACEOF
1525
1526
1527cat >>confdefs.h <<_ACEOF
1528#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1529_ACEOF
1530
1531
1532cat >>confdefs.h <<_ACEOF
1533#define PACKAGE_VERSION "$PACKAGE_VERSION"
1534_ACEOF
1535
1536
1537cat >>confdefs.h <<_ACEOF
1538#define PACKAGE_STRING "$PACKAGE_STRING"
1539_ACEOF
1540
1541
1542cat >>confdefs.h <<_ACEOF
1543#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1544_ACEOF
1545
1546
1547# Let the site file select an alternate cache file if it wants to.
1548# Prefer explicitly selected file to automatically selected ones.
1549if test -z "$CONFIG_SITE"; then
1550  if test "x$prefix" != xNONE; then
1551    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1552  else
1553    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1554  fi
1555fi
1556for ac_site_file in $CONFIG_SITE; do
1557  if test -r "$ac_site_file"; then
1558    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1559echo "$as_me: loading site script $ac_site_file" >&6;}
1560    sed 's/^/| /' "$ac_site_file" >&5
1561    . "$ac_site_file"
1562  fi
1563done
1564
1565if test -r "$cache_file"; then
1566  # Some versions of bash will fail to source /dev/null (special
1567  # files actually), so we avoid doing that.
1568  if test -f "$cache_file"; then
1569    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1570echo "$as_me: loading cache $cache_file" >&6;}
1571    case $cache_file in
1572      [\\/]* | ?:[\\/]* ) . $cache_file;;
1573      *)                      . ./$cache_file;;
1574    esac
1575  fi
1576else
1577  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1578echo "$as_me: creating cache $cache_file" >&6;}
1579  >$cache_file
1580fi
1581
1582# Check that the precious variables saved in the cache have kept the same
1583# value.
1584ac_cache_corrupted=false
1585for ac_var in `(set) 2>&1 |
1586               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1587  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1588  eval ac_new_set=\$ac_env_${ac_var}_set
1589  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1590  eval ac_new_val="\$ac_env_${ac_var}_value"
1591  case $ac_old_set,$ac_new_set in
1592    set,)
1593      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1594echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1595      ac_cache_corrupted=: ;;
1596    ,set)
1597      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1598echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1599      ac_cache_corrupted=: ;;
1600    ,);;
1601    *)
1602      if test "x$ac_old_val" != "x$ac_new_val"; then
1603        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1604echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1605        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1606echo "$as_me:   former value:  $ac_old_val" >&2;}
1607        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1608echo "$as_me:   current value: $ac_new_val" >&2;}
1609        ac_cache_corrupted=:
1610      fi;;
1611  esac
1612  # Pass precious variables to config.status.
1613  if test "$ac_new_set" = set; then
1614    case $ac_new_val in
1615    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1616      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1617    *) ac_arg=$ac_var=$ac_new_val ;;
1618    esac
1619    case " $ac_configure_args " in
1620      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1621      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1622    esac
1623  fi
1624done
1625if $ac_cache_corrupted; then
1626  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1627echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1628  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1629echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1630   { (exit 1); exit 1; }; }
1631fi
1632
1633ac_ext=c
1634ac_cpp='$CPP $CPPFLAGS'
1635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1637ac_compiler_gnu=$ac_cv_c_compiler_gnu
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670# List one file in the package so that the configure script can test
1671# whether the package is actually there
1672
1673
1674# Where should everything be installed by default?  Here, we want it
1675# to be installed directly in 'bin', 'lib', 'include' subdirectories
1676# of the directory where configure is run.  The default would be
1677# /usr/local.
1678
1679
1680#############################################################################
1681#              Create the libtool script for the subdirectories             #
1682#############################################################################
1683
1684ac_aux_dir=
1685for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1686  if test -f $ac_dir/install-sh; then
1687    ac_aux_dir=$ac_dir
1688    ac_install_sh="$ac_aux_dir/install-sh -c"
1689    break
1690  elif test -f $ac_dir/install.sh; then
1691    ac_aux_dir=$ac_dir
1692    ac_install_sh="$ac_aux_dir/install.sh -c"
1693    break
1694  elif test -f $ac_dir/shtool; then
1695    ac_aux_dir=$ac_dir
1696    ac_install_sh="$ac_aux_dir/shtool install -c"
1697    break
1698  fi
1699done
1700if test -z "$ac_aux_dir"; then
1701  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1702echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1703   { (exit 1); exit 1; }; }
1704fi
1705ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1706ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1707ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1708
1709# Make sure we can run config.sub.
1710$ac_config_sub sun4 >/dev/null 2>&1 ||
1711  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1712echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1713   { (exit 1); exit 1; }; }
1714
1715echo "$as_me:$LINENO: checking build system type" >&5
1716echo $ECHO_N "checking build system type... $ECHO_C" >&6
1717if test "${ac_cv_build+set}" = set; then
1718  echo $ECHO_N "(cached) $ECHO_C" >&6
1719else
1720  ac_cv_build_alias=$build_alias
1721test -z "$ac_cv_build_alias" &&
1722  ac_cv_build_alias=`$ac_config_guess`
1723test -z "$ac_cv_build_alias" &&
1724  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1725echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1726   { (exit 1); exit 1; }; }
1727ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1728  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1729echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1730   { (exit 1); exit 1; }; }
1731
1732fi
1733echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1734echo "${ECHO_T}$ac_cv_build" >&6
1735build=$ac_cv_build
1736build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1737build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1738build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1739
1740
1741
1742# Check if user wants to produce debugging code
1743
1744echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1745echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1746
1747# Check whether --enable-debug or --disable-debug was given.
1748if test "${enable_debug+set}" = set; then
1749  enableval="$enable_debug"
1750  case "${enableval}" in
1751   yes) coin_debug_compile=true
1752        if test "${enable_shared+set}" = set; then :; else
1753          enable_shared=no
1754        fi
1755        ;;
1756   no)  coin_debug_compile=false
1757        ;;
1758   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1759echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1760   { (exit 1); exit 1; }; }
1761        ;;
1762esac
1763else
1764  coin_debug_compile=false
1765fi;
1766
1767 # m4_ifvaln([],
1768
1769if test $coin_debug_compile = true; then
1770  echo "$as_me:$LINENO: result: yes" >&5
1771echo "${ECHO_T}yes" >&6
1772else
1773  echo "$as_me:$LINENO: result: no" >&5
1774echo "${ECHO_T}no" >&6
1775fi
1776
1777 # m4_ifvaln([],
1778
1779
1780
1781# Get the name of the C compiler and appropriate compiler options
1782case $build in
1783  *-mingw*)
1784    if test "${LD+set}" = set; then :; else
1785      LD=link
1786    fi
1787    ;;
1788 esac
1789 case $enable_doscompile in
1790   msvc)
1791     if test "x${LD+set}" = xset; then :; else
1792       LD=link
1793     fi
1794     ;;
1795 esac
1796
1797
1798 # Check whether --enable-doscompile or --disable-doscompile was given.
1799if test "${enable_doscompile+set}" = set; then
1800  enableval="$enable_doscompile"
1801  if test "$enable_doscompile" != no; then
1802     case $build in
1803       *-cygwin* | *-mingw*) ;;
1804       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1805echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1806   { (exit 1); exit 1; }; } ;;
1807     esac
1808   fi
1809else
1810  enable_doscompile=no
1811fi;
1812 case "$enable_doscompile" in
1813   mingw)
1814     case $build in
1815       *-mingw*) enable_doscompile=no ;;
1816     esac
1817     ;;
1818   msvc|no) ;;
1819   yes) enable_doscompile=mingw ;;
1820   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1821                    Try configure --help=recursive." >&5
1822echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1823                    Try configure --help=recursive." >&2;}
1824   { (exit 1); exit 1; }; }
1825      ;;
1826  esac
1827  if test "$enable_doscompile" != no ; then
1828    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1829echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1830  fi
1831
1832
1833
1834
1835ac_ext=c
1836ac_cpp='$CPP $CPPFLAGS'
1837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1839ac_compiler_gnu=$ac_cv_c_compiler_gnu
1840
1841
1842# For consistency, we set the C compiler to the same value of the C++
1843# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1844if test x"$CXX" != x; then
1845  case "$CXX" in
1846    clang* ) ;;
1847    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1848      if test x"$CC" = x; then
1849        CC="$CXX"
1850        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1851echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1852      fi
1853      ;;
1854  esac
1855fi
1856
1857
1858
1859
1860
1861
1862coin_has_cc=yes
1863
1864save_cflags="$CFLAGS"
1865
1866# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1867# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1868# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1869# compiler. In this case, put cc after gcc.
1870
1871case $build in
1872  *-cygwin* | *-mingw*)
1873             if test "$enable_doscompile" = msvc ; then
1874               comps="icl cl"
1875             else
1876               comps="gcc cl"
1877             fi ;;
1878  *-*-solaris*)
1879             # Extract the first word of "cc", so it can be a program name with args.
1880set dummy cc; ac_word=$2
1881echo "$as_me:$LINENO: checking for $ac_word" >&5
1882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1884  echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886  if test -n "$sol_cc_compiler"; then
1887  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1888else
1889  ac_prog_rejected=no
1890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891for as_dir in $PATH
1892do
1893  IFS=$as_save_IFS
1894  test -z "$as_dir" && as_dir=.
1895  for ac_exec_ext in '' $ac_executable_extensions; do
1896  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1898       ac_prog_rejected=yes
1899       continue
1900     fi
1901    ac_cv_prog_sol_cc_compiler="cc"
1902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903    break 2
1904  fi
1905done
1906done
1907
1908if test $ac_prog_rejected = yes; then
1909  # We found a bogon in the path, so make sure we never use it.
1910  set dummy $ac_cv_prog_sol_cc_compiler
1911  shift
1912  if test $# != 0; then
1913    # We chose a different compiler from the bogus one.
1914    # However, it has the same basename, so the bogon will be chosen
1915    # first if we set sol_cc_compiler to just the basename; use the full file name.
1916    shift
1917    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1918  fi
1919fi
1920fi
1921fi
1922sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1923if test -n "$sol_cc_compiler"; then
1924  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1925echo "${ECHO_T}$sol_cc_compiler" >&6
1926else
1927  echo "$as_me:$LINENO: result: no" >&5
1928echo "${ECHO_T}no" >&6
1929fi
1930
1931             if test "$sol_cc_compiler" = "cc" ; then
1932               comps="cc xlc gcc pgcc icc"
1933             else
1934               comps="xlc gcc pgcc icc cc"
1935             fi
1936             ;;
1937  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1938  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1939  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1940esac
1941
1942# We delete the cached value, since the test might not have been
1943# performed with our choice of compilers earlier
1944$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1945# AC_MSG_NOTICE([C compiler candidates: $comps])
1946ac_ext=c
1947ac_cpp='$CPP $CPPFLAGS'
1948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951if test -n "$ac_tool_prefix"; then
1952  for ac_prog in $comps
1953  do
1954    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956echo "$as_me:$LINENO: checking for $ac_word" >&5
1957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958if test "${ac_cv_prog_CC+set}" = set; then
1959  echo $ECHO_N "(cached) $ECHO_C" >&6
1960else
1961  if test -n "$CC"; then
1962  ac_cv_prog_CC="$CC" # Let the user override the test.
1963else
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967  IFS=$as_save_IFS
1968  test -z "$as_dir" && as_dir=.
1969  for ac_exec_ext in '' $ac_executable_extensions; do
1970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973    break 2
1974  fi
1975done
1976done
1977
1978fi
1979fi
1980CC=$ac_cv_prog_CC
1981if test -n "$CC"; then
1982  echo "$as_me:$LINENO: result: $CC" >&5
1983echo "${ECHO_T}$CC" >&6
1984else
1985  echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6
1987fi
1988
1989    test -n "$CC" && break
1990  done
1991fi
1992if test -z "$CC"; then
1993  ac_ct_CC=$CC
1994  for ac_prog in $comps
1995do
1996  # Extract the first word of "$ac_prog", so it can be a program name with args.
1997set dummy $ac_prog; ac_word=$2
1998echo "$as_me:$LINENO: checking for $ac_word" >&5
1999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001  echo $ECHO_N "(cached) $ECHO_C" >&6
2002else
2003  if test -n "$ac_ct_CC"; then
2004  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005else
2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009  IFS=$as_save_IFS
2010  test -z "$as_dir" && as_dir=.
2011  for ac_exec_ext in '' $ac_executable_extensions; do
2012  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013    ac_cv_prog_ac_ct_CC="$ac_prog"
2014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015    break 2
2016  fi
2017done
2018done
2019
2020fi
2021fi
2022ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023if test -n "$ac_ct_CC"; then
2024  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025echo "${ECHO_T}$ac_ct_CC" >&6
2026else
2027  echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031  test -n "$ac_ct_CC" && break
2032done
2033
2034  CC=$ac_ct_CC
2035fi
2036
2037
2038test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2039See \`config.log' for more details." >&5
2040echo "$as_me: error: no acceptable C compiler found in \$PATH
2041See \`config.log' for more details." >&2;}
2042   { (exit 1); exit 1; }; }
2043
2044# Provide some information about the compiler.
2045echo "$as_me:$LINENO:" \
2046     "checking for C compiler version" >&5
2047ac_compiler=`set X $ac_compile; echo $2`
2048{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2049  (eval $ac_compiler --version </dev/null >&5) 2>&5
2050  ac_status=$?
2051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052  (exit $ac_status); }
2053{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2054  (eval $ac_compiler -v </dev/null >&5) 2>&5
2055  ac_status=$?
2056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057  (exit $ac_status); }
2058{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2059  (eval $ac_compiler -V </dev/null >&5) 2>&5
2060  ac_status=$?
2061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062  (exit $ac_status); }
2063
2064cat >conftest.$ac_ext <<_ACEOF
2065/* confdefs.h.  */
2066_ACEOF
2067cat confdefs.h >>conftest.$ac_ext
2068cat >>conftest.$ac_ext <<_ACEOF
2069/* end confdefs.h.  */
2070
2071int
2072main ()
2073{
2074
2075  ;
2076  return 0;
2077}
2078_ACEOF
2079ac_clean_files_save=$ac_clean_files
2080ac_clean_files="$ac_clean_files a.out a.exe b.out"
2081# Try to create an executable without -o first, disregard a.out.
2082# It will help us diagnose broken compilers, and finding out an intuition
2083# of exeext.
2084echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2085echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2086ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2087if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2088  (eval $ac_link_default) 2>&5
2089  ac_status=$?
2090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091  (exit $ac_status); }; then
2092  # Find the output, starting from the most likely.  This scheme is
2093# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2094# resort.
2095
2096# Be careful to initialize this variable, since it used to be cached.
2097# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2098ac_cv_exeext=
2099# b.out is created by i960 compilers.
2100for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2101do
2102  test -f "$ac_file" || continue
2103  case $ac_file in
2104    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2105        ;;
2106    conftest.$ac_ext )
2107        # This is the source file.
2108        ;;
2109    [ab].out )
2110        # We found the default executable, but exeext='' is most
2111        # certainly right.
2112        break;;
2113    *.* )
2114        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2115        # FIXME: I believe we export ac_cv_exeext for Libtool,
2116        # but it would be cool to find out if it's true.  Does anybody
2117        # maintain Libtool? --akim.
2118        export ac_cv_exeext
2119        break;;
2120    * )
2121        break;;
2122  esac
2123done
2124else
2125  echo "$as_me: failed program was:" >&5
2126sed 's/^/| /' conftest.$ac_ext >&5
2127
2128{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2129See \`config.log' for more details." >&5
2130echo "$as_me: error: C compiler cannot create executables
2131See \`config.log' for more details." >&2;}
2132   { (exit 77); exit 77; }; }
2133fi
2134
2135ac_exeext=$ac_cv_exeext
2136echo "$as_me:$LINENO: result: $ac_file" >&5
2137echo "${ECHO_T}$ac_file" >&6
2138
2139# Check the compiler produces executables we can run.  If not, either
2140# the compiler is broken, or we cross compile.
2141echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2142echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2143# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2144# If not cross compiling, check that we can run a simple program.
2145if test "$cross_compiling" != yes; then
2146  if { ac_try='./$ac_file'
2147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148  (eval $ac_try) 2>&5
2149  ac_status=$?
2150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151  (exit $ac_status); }; }; then
2152    cross_compiling=no
2153  else
2154    if test "$cross_compiling" = maybe; then
2155        cross_compiling=yes
2156    else
2157        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2158If you meant to cross compile, use \`--host'.
2159See \`config.log' for more details." >&5
2160echo "$as_me: error: cannot run C compiled programs.
2161If you meant to cross compile, use \`--host'.
2162See \`config.log' for more details." >&2;}
2163   { (exit 1); exit 1; }; }
2164    fi
2165  fi
2166fi
2167echo "$as_me:$LINENO: result: yes" >&5
2168echo "${ECHO_T}yes" >&6
2169
2170rm -f a.out a.exe conftest$ac_cv_exeext b.out
2171ac_clean_files=$ac_clean_files_save
2172# Check the compiler produces executables we can run.  If not, either
2173# the compiler is broken, or we cross compile.
2174echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2175echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2176echo "$as_me:$LINENO: result: $cross_compiling" >&5
2177echo "${ECHO_T}$cross_compiling" >&6
2178
2179echo "$as_me:$LINENO: checking for suffix of executables" >&5
2180echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2182  (eval $ac_link) 2>&5
2183  ac_status=$?
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); }; then
2186  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2187# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2188# work properly (i.e., refer to `conftest.exe'), while it won't with
2189# `rm'.
2190for ac_file in conftest.exe conftest conftest.*; do
2191  test -f "$ac_file" || continue
2192  case $ac_file in
2193    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2194    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195          export ac_cv_exeext
2196          break;;
2197    * ) break;;
2198  esac
2199done
2200else
2201  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2202See \`config.log' for more details." >&5
2203echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2204See \`config.log' for more details." >&2;}
2205   { (exit 1); exit 1; }; }
2206fi
2207
2208rm -f conftest$ac_cv_exeext
2209echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2210echo "${ECHO_T}$ac_cv_exeext" >&6
2211
2212rm -f conftest.$ac_ext
2213EXEEXT=$ac_cv_exeext
2214ac_exeext=$EXEEXT
2215echo "$as_me:$LINENO: checking for suffix of object files" >&5
2216echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2217if test "${ac_cv_objext+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  cat >conftest.$ac_ext <<_ACEOF
2221/* confdefs.h.  */
2222_ACEOF
2223cat confdefs.h >>conftest.$ac_ext
2224cat >>conftest.$ac_ext <<_ACEOF
2225/* end confdefs.h.  */
2226
2227int
2228main ()
2229{
2230
2231  ;
2232  return 0;
2233}
2234_ACEOF
2235rm -f conftest.o conftest.obj
2236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237  (eval $ac_compile) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }; then
2241  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2242  case $ac_file in
2243    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2244    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2245       break;;
2246  esac
2247done
2248else
2249  echo "$as_me: failed program was:" >&5
2250sed 's/^/| /' conftest.$ac_ext >&5
2251
2252{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2253See \`config.log' for more details." >&5
2254echo "$as_me: error: cannot compute suffix of object files: cannot compile
2255See \`config.log' for more details." >&2;}
2256   { (exit 1); exit 1; }; }
2257fi
2258
2259rm -f conftest.$ac_cv_objext conftest.$ac_ext
2260fi
2261echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2262echo "${ECHO_T}$ac_cv_objext" >&6
2263OBJEXT=$ac_cv_objext
2264ac_objext=$OBJEXT
2265echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2266echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2267if test "${ac_cv_c_compiler_gnu+set}" = set; then
2268  echo $ECHO_N "(cached) $ECHO_C" >&6
2269else
2270  cat >conftest.$ac_ext <<_ACEOF
2271/* confdefs.h.  */
2272_ACEOF
2273cat confdefs.h >>conftest.$ac_ext
2274cat >>conftest.$ac_ext <<_ACEOF
2275/* end confdefs.h.  */
2276
2277int
2278main ()
2279{
2280#ifndef __GNUC__
2281       choke me
2282#endif
2283
2284  ;
2285  return 0;
2286}
2287_ACEOF
2288rm -f conftest.$ac_objext
2289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290  (eval $ac_compile) 2>conftest.er1
2291  ac_status=$?
2292  grep -v '^ *+' conftest.er1 >conftest.err
2293  rm -f conftest.er1
2294  cat conftest.err >&5
2295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296  (exit $ac_status); } &&
2297         { ac_try='test -z "$ac_c_werror_flag"
2298                         || test ! -s conftest.err'
2299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300  (eval $ac_try) 2>&5
2301  ac_status=$?
2302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303  (exit $ac_status); }; } &&
2304         { ac_try='test -s conftest.$ac_objext'
2305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306  (eval $ac_try) 2>&5
2307  ac_status=$?
2308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309  (exit $ac_status); }; }; then
2310  ac_compiler_gnu=yes
2311else
2312  echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315ac_compiler_gnu=no
2316fi
2317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2318ac_cv_c_compiler_gnu=$ac_compiler_gnu
2319
2320fi
2321echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2322echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2323GCC=`test $ac_compiler_gnu = yes && echo yes`
2324ac_test_CFLAGS=${CFLAGS+set}
2325ac_save_CFLAGS=$CFLAGS
2326CFLAGS="-g"
2327echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2328echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2329if test "${ac_cv_prog_cc_g+set}" = set; then
2330  echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332  cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h.  */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h.  */
2338
2339int
2340main ()
2341{
2342
2343  ;
2344  return 0;
2345}
2346_ACEOF
2347rm -f conftest.$ac_objext
2348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349  (eval $ac_compile) 2>conftest.er1
2350  ac_status=$?
2351  grep -v '^ *+' conftest.er1 >conftest.err
2352  rm -f conftest.er1
2353  cat conftest.err >&5
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); } &&
2356         { ac_try='test -z "$ac_c_werror_flag"
2357                         || test ! -s conftest.err'
2358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359  (eval $ac_try) 2>&5
2360  ac_status=$?
2361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362  (exit $ac_status); }; } &&
2363         { ac_try='test -s conftest.$ac_objext'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; }; then
2369  ac_cv_prog_cc_g=yes
2370else
2371  echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374ac_cv_prog_cc_g=no
2375fi
2376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377fi
2378echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2379echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2380if test "$ac_test_CFLAGS" = set; then
2381  CFLAGS=$ac_save_CFLAGS
2382elif test $ac_cv_prog_cc_g = yes; then
2383  if test "$GCC" = yes; then
2384    CFLAGS="-g -O2"
2385  else
2386    CFLAGS="-g"
2387  fi
2388else
2389  if test "$GCC" = yes; then
2390    CFLAGS="-O2"
2391  else
2392    CFLAGS=
2393  fi
2394fi
2395echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2396echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2397if test "${ac_cv_prog_cc_stdc+set}" = set; then
2398  echo $ECHO_N "(cached) $ECHO_C" >&6
2399else
2400  ac_cv_prog_cc_stdc=no
2401ac_save_CC=$CC
2402cat >conftest.$ac_ext <<_ACEOF
2403/* confdefs.h.  */
2404_ACEOF
2405cat confdefs.h >>conftest.$ac_ext
2406cat >>conftest.$ac_ext <<_ACEOF
2407/* end confdefs.h.  */
2408#include <stdarg.h>
2409#include <stdio.h>
2410#include <sys/types.h>
2411#include <sys/stat.h>
2412/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2413struct buf { int x; };
2414FILE * (*rcsopen) (struct buf *, struct stat *, int);
2415static char *e (p, i)
2416     char **p;
2417     int i;
2418{
2419  return p[i];
2420}
2421static char *f (char * (*g) (char **, int), char **p, ...)
2422{
2423  char *s;
2424  va_list v;
2425  va_start (v,p);
2426  s = g (p, va_arg (v,int));
2427  va_end (v);
2428  return s;
2429}
2430
2431/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2432   function prototypes and stuff, but not '\xHH' hex character constants.
2433   These don't provoke an error unfortunately, instead are silently treated
2434   as 'x'.  The following induces an error, until -std1 is added to get
2435   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2436   array size at least.  It's necessary to write '\x00'==0 to get something
2437   that's true only with -std1.  */
2438int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2439
2440int test (int i, double x);
2441struct s1 {int (*f) (int a);};
2442struct s2 {int (*f) (double a);};
2443int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2444int argc;
2445char **argv;
2446int
2447main ()
2448{
2449return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2450  ;
2451  return 0;
2452}
2453_ACEOF
2454# Don't try gcc -ansi; that turns off useful extensions and
2455# breaks some systems' header files.
2456# AIX                   -qlanglvl=ansi
2457# Ultrix and OSF/1      -std1
2458# HP-UX 10.20 and later -Ae
2459# HP-UX older versions  -Aa -D_HPUX_SOURCE
2460# SVR4                  -Xc -D__EXTENSIONS__
2461for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2462do
2463  CC="$ac_save_CC $ac_arg"
2464  rm -f conftest.$ac_objext
2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466  (eval $ac_compile) 2>conftest.er1
2467  ac_status=$?
2468  grep -v '^ *+' conftest.er1 >conftest.err
2469  rm -f conftest.er1
2470  cat conftest.err >&5
2471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472  (exit $ac_status); } &&
2473         { ac_try='test -z "$ac_c_werror_flag"
2474                         || test ! -s conftest.err'
2475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476  (eval $ac_try) 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }; } &&
2480         { ac_try='test -s conftest.$ac_objext'
2481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482  (eval $ac_try) 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); }; }; then
2486  ac_cv_prog_cc_stdc=$ac_arg
2487break
2488else
2489  echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492fi
2493rm -f conftest.err conftest.$ac_objext
2494done
2495rm -f conftest.$ac_ext conftest.$ac_objext
2496CC=$ac_save_CC
2497
2498fi
2499
2500case "x$ac_cv_prog_cc_stdc" in
2501  x|xno)
2502    echo "$as_me:$LINENO: result: none needed" >&5
2503echo "${ECHO_T}none needed" >&6 ;;
2504  *)
2505    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2506echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2507    CC="$CC $ac_cv_prog_cc_stdc" ;;
2508esac
2509
2510# Some people use a C++ compiler to compile C.  Since we use `exit',
2511# in C++ we need to declare it.  In case someone uses the same compiler
2512# for both compiling C and C++ we need to have the C++ compiler decide
2513# the declaration of exit, since it's the most demanding environment.
2514cat >conftest.$ac_ext <<_ACEOF
2515#ifndef __cplusplus
2516  choke me
2517#endif
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521  (eval $ac_compile) 2>conftest.er1
2522  ac_status=$?
2523  grep -v '^ *+' conftest.er1 >conftest.err
2524  rm -f conftest.er1
2525  cat conftest.err >&5
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); } &&
2528         { ac_try='test -z "$ac_c_werror_flag"
2529                         || test ! -s conftest.err'
2530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531  (eval $ac_try) 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }; } &&
2535         { ac_try='test -s conftest.$ac_objext'
2536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537  (eval $ac_try) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; }; then
2541  for ac_declaration in \
2542   '' \
2543   'extern "C" void std::exit (int) throw (); using std::exit;' \
2544   'extern "C" void std::exit (int); using std::exit;' \
2545   'extern "C" void exit (int) throw ();' \
2546   'extern "C" void exit (int);' \
2547   'void exit (int);'
2548do
2549  cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h.  */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h.  */
2555$ac_declaration
2556#include <stdlib.h>
2557int
2558main ()
2559{
2560exit (42);
2561  ;
2562  return 0;
2563}
2564_ACEOF
2565rm -f conftest.$ac_objext
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567  (eval $ac_compile) 2>conftest.er1
2568  ac_status=$?
2569  grep -v '^ *+' conftest.er1 >conftest.err
2570  rm -f conftest.er1
2571  cat conftest.err >&5
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); } &&
2574         { ac_try='test -z "$ac_c_werror_flag"
2575                         || test ! -s conftest.err'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; } &&
2581         { ac_try='test -s conftest.$ac_objext'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; }; then
2587  :
2588else
2589  echo "$as_me: failed program was:" >&5
2590sed 's/^/| /' conftest.$ac_ext >&5
2591
2592continue
2593fi
2594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2595  cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h.  */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h.  */
2601$ac_declaration
2602int
2603main ()
2604{
2605exit (42);
2606  ;
2607  return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612  (eval $ac_compile) 2>conftest.er1
2613  ac_status=$?
2614  grep -v '^ *+' conftest.er1 >conftest.err
2615  rm -f conftest.er1
2616  cat conftest.err >&5
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); } &&
2619         { ac_try='test -z "$ac_c_werror_flag"
2620                         || test ! -s conftest.err'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; } &&
2626         { ac_try='test -s conftest.$ac_objext'
2627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628  (eval $ac_try) 2>&5
2629  ac_status=$?
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); }; }; then
2632  break
2633else
2634  echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637fi
2638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2639done
2640rm -f conftest*
2641if test -n "$ac_declaration"; then
2642  echo '#ifdef __cplusplus' >>confdefs.h
2643  echo $ac_declaration      >>confdefs.h
2644  echo '#endif'             >>confdefs.h
2645fi
2646
2647else
2648  echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651fi
2652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653ac_ext=c
2654ac_cpp='$CPP $CPPFLAGS'
2655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658
2659if test -z "$CC" ; then
2660  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2661echo "$as_me: error: Failed to find a C compiler!" >&2;}
2662   { (exit 1); exit 1; }; }
2663fi
2664# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2665case "$CC" in
2666  clang* ) ;;
2667  cl* | */cl* | CL* | */CL* )
2668    if test "$ac_cv_prog_cc_g" = yes ; then
2669      ac_cv_prog_cc_g=no
2670      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2671echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2672    fi ;;
2673esac
2674CFLAGS="$save_cflags"
2675
2676# add automake conditional so we can recognize cl compiler in makefile
2677coin_cc_is_cl=false
2678case "$CC" in
2679  clang* ) ;;
2680  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2681    coin_cc_is_cl=true
2682    ;;
2683esac
2684
2685
2686if test $coin_cc_is_cl = true; then
2687  COIN_CC_IS_CL_TRUE=
2688  COIN_CC_IS_CL_FALSE='#'
2689else
2690  COIN_CC_IS_CL_TRUE='#'
2691  COIN_CC_IS_CL_FALSE=
2692fi
2693
2694
2695# Check if a project specific CFLAGS variable has been set
2696if test x$COIN_PRJCT != x; then
2697  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2698  if test x$coin_tmp = xset; then
2699    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2700  fi
2701fi
2702
2703if test x"$CFLAGS" = x; then
2704
2705  coin_add_cflags=
2706  coin_opt_cflags=
2707  coin_dbg_cflags=
2708  coin_warn_cflags=
2709
2710  if test "$GCC" = "yes"; then
2711    case "$CC" in
2712      icc* | */icc*)
2713        ;;
2714      *)
2715        coin_opt_cflags="-O3"
2716        coin_add_cflags="-pipe"
2717        coin_dbg_cflags="-g -O0"
2718        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2719        case $build in
2720          *-darwin*)
2721            ;;
2722          *)
2723            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2724            ;;
2725        esac
2726        case $enable_doscompile in
2727          mingw)
2728            CFLAGS="-mno-cygwin"
2729            cat >conftest.$ac_ext <<_ACEOF
2730/* confdefs.h.  */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h.  */
2735
2736int
2737main ()
2738{
2739int i=0; i++;
2740  ;
2741  return 0;
2742}
2743_ACEOF
2744rm -f conftest.$ac_objext conftest$ac_exeext
2745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2746  (eval $ac_link) 2>conftest.er1
2747  ac_status=$?
2748  grep -v '^ *+' conftest.er1 >conftest.err
2749  rm -f conftest.er1
2750  cat conftest.err >&5
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); } &&
2753         { ac_try='test -z "$ac_c_werror_flag"
2754                         || test ! -s conftest.err'
2755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756  (eval $ac_try) 2>&5
2757  ac_status=$?
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); }; } &&
2760         { ac_try='test -s conftest$ac_exeext'
2761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762  (eval $ac_try) 2>&5
2763  ac_status=$?
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); }; }; then
2766  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2767else
2768  echo "$as_me: failed program was:" >&5
2769sed 's/^/| /' conftest.$ac_ext >&5
2770
2771fi
2772rm -f conftest.err conftest.$ac_objext \
2773      conftest$ac_exeext conftest.$ac_ext
2774            CFLAGS=
2775          ;;
2776        esac
2777    esac
2778  fi
2779  if test -z "$coin_opt_cflags"; then
2780    case $build in
2781      *-cygwin* | *-mingw*)
2782        case "$CC" in
2783          clang* ) ;;
2784          cl* | */cl* | CL* | */CL*)
2785            coin_opt_cflags='-MT -O2'
2786            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2787            coin_dbg_cflags='-MTd'
2788            ;;
2789          icl* | */icl* | ICL* | */ICL*)
2790            coin_opt_cflags='-MT -Ox'
2791            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2792            coin_dbg_cflags='-MTd -debug'
2793            ;;
2794        esac
2795        ;;
2796      *-linux-*)
2797        case "$CC" in
2798          icc* | */icc*)
2799            coin_opt_cflags="-O3 -ip -mp1"
2800            coin_add_cflags=""
2801            coin_dbg_cflags="-g"
2802            # Check if -i_dynamic is necessary (for new glibc library)
2803            CFLAGS=
2804            cat >conftest.$ac_ext <<_ACEOF
2805/* confdefs.h.  */
2806_ACEOF
2807cat confdefs.h >>conftest.$ac_ext
2808cat >>conftest.$ac_ext <<_ACEOF
2809/* end confdefs.h.  */
2810
2811int
2812main ()
2813{
2814int i=0; i++;
2815  ;
2816  return 0;
2817}
2818_ACEOF
2819rm -f conftest.$ac_objext conftest$ac_exeext
2820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2821  (eval $ac_link) 2>conftest.er1
2822  ac_status=$?
2823  grep -v '^ *+' conftest.er1 >conftest.err
2824  rm -f conftest.er1
2825  cat conftest.err >&5
2826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827  (exit $ac_status); } &&
2828         { ac_try='test -z "$ac_c_werror_flag"
2829                         || test ! -s conftest.err'
2830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831  (eval $ac_try) 2>&5
2832  ac_status=$?
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); }; } &&
2835         { ac_try='test -s conftest$ac_exeext'
2836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837  (eval $ac_try) 2>&5
2838  ac_status=$?
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); }; }; then
2841  :
2842else
2843  echo "$as_me: failed program was:" >&5
2844sed 's/^/| /' conftest.$ac_ext >&5
2845
2846coin_add_cflags="-i_dynamic $coin_add_cflags"
2847fi
2848rm -f conftest.err conftest.$ac_objext \
2849      conftest$ac_exeext conftest.$ac_ext
2850            ;;
2851          pgcc* | */pgcc*)
2852            coin_opt_cflags="-fast"
2853            coin_add_cflags="-Kieee -pc 64"
2854            coin_dbg_cflags="-g"
2855            ;;
2856        esac
2857        ;;
2858      *-ibm-*)
2859        case "$CC" in
2860          xlc* | */xlc* | mpxlc* | */mpxlc*)
2861            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2862            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2863            coin_dbg_cflags="-g"
2864          ;;
2865        esac
2866        ;;
2867      *-hp-*)
2868        coin_opt_cflags="-O"
2869        coin_add_cflags="-Ae"
2870        coin_dbg_cflags="-g"
2871        ;;
2872      *-*-solaris*)
2873        coin_opt_cflags="-xO4"
2874        coin_dbg_cflags="-g"
2875        ;;
2876      *-sgi-*)
2877        coin_opt_cflags="-O -OPT:Olimit=0"
2878        coin_dbg_cflags="-g"
2879        ;;
2880    esac
2881  fi
2882
2883  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2884    coin_dbg_cflags="-g"
2885  fi
2886
2887  if test -z "$coin_opt_cflags"; then
2888    # Try if -O option works if nothing else is set
2889    CFLAGS="-O"
2890    cat >conftest.$ac_ext <<_ACEOF
2891/* confdefs.h.  */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
2895/* end confdefs.h.  */
2896
2897int
2898main ()
2899{
2900int i=0; i++;
2901  ;
2902  return 0;
2903}
2904_ACEOF
2905rm -f conftest.$ac_objext conftest$ac_exeext
2906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2907  (eval $ac_link) 2>conftest.er1
2908  ac_status=$?
2909  grep -v '^ *+' conftest.er1 >conftest.err
2910  rm -f conftest.er1
2911  cat conftest.err >&5
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); } &&
2914         { ac_try='test -z "$ac_c_werror_flag"
2915                         || test ! -s conftest.err'
2916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917  (eval $ac_try) 2>&5
2918  ac_status=$?
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); }; } &&
2921         { ac_try='test -s conftest$ac_exeext'
2922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923  (eval $ac_try) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }; }; then
2927  coin_opt_cflags="-O"
2928else
2929  echo "$as_me: failed program was:" >&5
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932fi
2933rm -f conftest.err conftest.$ac_objext \
2934      conftest$ac_exeext conftest.$ac_ext
2935  fi
2936
2937  # if PM doesn't want the warning messages, take them out
2938  if test x"$coin_skip_warn_cflags" = xyes; then
2939    coin_warn_cflags=
2940  fi
2941
2942  if test x${DBG_CFLAGS+set} != xset; then
2943    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2944  fi
2945  if test x${OPT_CFLAGS+set} != xset; then
2946    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2947  fi
2948
2949  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2950  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2951
2952  if test "$coin_debug_compile" = "true"; then
2953    CFLAGS="$DBG_CFLAGS"
2954  else
2955    CFLAGS="$OPT_CFLAGS"
2956  fi
2957else
2958  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2959  if test x${DBG_CFLAGS+set} != xset; then
2960    DBG_CFLAGS="$CFLAGS"
2961  fi
2962  if test x${OPT_CFLAGS+set} != xset; then
2963    OPT_CFLAGS="$CFLAGS"
2964  fi
2965fi
2966
2967# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2968
2969case "$CFLAGS" in
2970  *-mno-cygwin*)
2971    if test x${CPPFLAGS+set} != xset ; then
2972      CPPFLAGS="-mno-cygwin"
2973    else
2974      case "$CPPFLAGS" in
2975        *-mno-cygwin*)
2976          ;;
2977        *)
2978          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2979          ;;
2980      esac
2981    fi ;;
2982esac
2983
2984# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2985if test x$COIN_PRJCT != x; then
2986  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2987fi
2988
2989# Try if CFLAGS works
2990save_CFLAGS="$CFLAGS"
2991cat >conftest.$ac_ext <<_ACEOF
2992/* confdefs.h.  */
2993_ACEOF
2994cat confdefs.h >>conftest.$ac_ext
2995cat >>conftest.$ac_ext <<_ACEOF
2996/* end confdefs.h.  */
2997
2998int
2999main ()
3000{
3001int i=0; i++;
3002  ;
3003  return 0;
3004}
3005_ACEOF
3006rm -f conftest.$ac_objext conftest$ac_exeext
3007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3008  (eval $ac_link) 2>conftest.er1
3009  ac_status=$?
3010  grep -v '^ *+' conftest.er1 >conftest.err
3011  rm -f conftest.er1
3012  cat conftest.err >&5
3013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014  (exit $ac_status); } &&
3015         { ac_try='test -z "$ac_c_werror_flag"
3016                         || test ! -s conftest.err'
3017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018  (eval $ac_try) 2>&5
3019  ac_status=$?
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); }; } &&
3022         { ac_try='test -s conftest$ac_exeext'
3023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024  (eval $ac_try) 2>&5
3025  ac_status=$?
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); }; }; then
3028  :
3029else
3030  echo "$as_me: failed program was:" >&5
3031sed 's/^/| /' conftest.$ac_ext >&5
3032
3033CFLAGS=
3034fi
3035rm -f conftest.err conftest.$ac_objext \
3036      conftest$ac_exeext conftest.$ac_ext
3037if test -z "$CFLAGS"; then
3038  { 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
3039echo "$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;}
3040  CFLAGS='-O'
3041  cat >conftest.$ac_ext <<_ACEOF
3042/* confdefs.h.  */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h.  */
3047
3048int
3049main ()
3050{
3051int i=0; i++;
3052  ;
3053  return 0;
3054}
3055_ACEOF
3056rm -f conftest.$ac_objext conftest$ac_exeext
3057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3058  (eval $ac_link) 2>conftest.er1
3059  ac_status=$?
3060  grep -v '^ *+' conftest.er1 >conftest.err
3061  rm -f conftest.er1
3062  cat conftest.err >&5
3063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); } &&
3065         { ac_try='test -z "$ac_c_werror_flag"
3066                         || test ! -s conftest.err'
3067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068  (eval $ac_try) 2>&5
3069  ac_status=$?
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); }; } &&
3072         { ac_try='test -s conftest$ac_exeext'
3073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074  (eval $ac_try) 2>&5
3075  ac_status=$?
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); }; }; then
3078  :
3079else
3080  echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083CFLAGS=
3084fi
3085rm -f conftest.err conftest.$ac_objext \
3086      conftest$ac_exeext conftest.$ac_ext
3087  if test -z "$CFLAGS"; then
3088    { 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
3089echo "$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;}
3090  fi
3091fi
3092
3093{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3094echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3095
3096
3097if test x"$MPICC" = x; then :; else
3098  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3099echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3100  CC="$MPICC"
3101fi
3102
3103# Correct the LD variable if we are using the MS or Intel-windows compiler
3104case "$CC" in
3105  clang* ) ;;
3106  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3107    case $build in
3108  *-mingw*)
3109    if test "${LD+set}" = set; then :; else
3110      LD=link
3111    fi
3112    ;;
3113 esac
3114 case $enable_doscompile in
3115   msvc)
3116     if test "x${LD+set}" = xset; then :; else
3117       LD=link
3118     fi
3119     ;;
3120 esac
3121
3122    ;;
3123esac
3124
3125ac_ext=c
3126ac_cpp='$CPP $CPPFLAGS'
3127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130
3131
3132
3133# Get the name of the C++ compiler and appropriate compiler options
3134
3135 #Let's try if that overcomes configuration problem with VC++ 6.0
3136
3137ac_ext=cc
3138ac_cpp='$CXXCPP $CPPFLAGS'
3139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3142
3143
3144
3145
3146
3147
3148
3149coin_has_cxx=yes
3150
3151save_cxxflags="$CXXFLAGS"
3152# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3153case $build in
3154  *-cygwin* | *-mingw*)
3155             if test "$enable_doscompile" = msvc ; then
3156               comps="icl cl"
3157             else
3158               comps="g++ cl"
3159             fi ;;
3160  *-*-solaris*)
3161             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3162  *-darwin*) comps="g++ c++ CC" ;;
3163  *-linux-gnu*)
3164             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3165          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3166esac
3167
3168# We delete the cached value, since the test might not have been
3169# performed with our choice of compilers earlier
3170$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3171# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3172ac_ext=cc
3173ac_cpp='$CXXCPP $CPPFLAGS'
3174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3177if test -n "$ac_tool_prefix"; then
3178  for ac_prog in $CCC $comps
3179  do
3180    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3182echo "$as_me:$LINENO: checking for $ac_word" >&5
3183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184if test "${ac_cv_prog_CXX+set}" = set; then
3185  echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3187  if test -n "$CXX"; then
3188  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193  IFS=$as_save_IFS
3194  test -z "$as_dir" && as_dir=.
3195  for ac_exec_ext in '' $ac_executable_extensions; do
3196  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199    break 2
3200  fi
3201done
3202done
3203
3204fi
3205fi
3206CXX=$ac_cv_prog_CXX
3207if test -n "$CXX"; then
3208  echo "$as_me:$LINENO: result: $CXX" >&5
3209echo "${ECHO_T}$CXX" >&6
3210else
3211  echo "$as_me:$LINENO: result: no" >&5
3212echo "${ECHO_T}no" >&6
3213fi
3214
3215    test -n "$CXX" && break
3216  done
3217fi
3218if test -z "$CXX"; then
3219  ac_ct_CXX=$CXX
3220  for ac_prog in $CCC $comps
3221do
3222  # Extract the first word of "$ac_prog", so it can be a program name with args.
3223set dummy $ac_prog; ac_word=$2
3224echo "$as_me:$LINENO: checking for $ac_word" >&5
3225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3226if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3227  echo $ECHO_N "(cached) $ECHO_C" >&6
3228else
3229  if test -n "$ac_ct_CXX"; then
3230  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3231else
3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233for as_dir in $PATH
3234do
3235  IFS=$as_save_IFS
3236  test -z "$as_dir" && as_dir=.
3237  for ac_exec_ext in '' $ac_executable_extensions; do
3238  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239    ac_cv_prog_ac_ct_CXX="$ac_prog"
3240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241    break 2
3242  fi
3243done
3244done
3245
3246fi
3247fi
3248ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3249if test -n "$ac_ct_CXX"; then
3250  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3251echo "${ECHO_T}$ac_ct_CXX" >&6
3252else
3253  echo "$as_me:$LINENO: result: no" >&5
3254echo "${ECHO_T}no" >&6
3255fi
3256
3257  test -n "$ac_ct_CXX" && break
3258done
3259test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3260
3261  CXX=$ac_ct_CXX
3262fi
3263
3264
3265# Provide some information about the compiler.
3266echo "$as_me:$LINENO:" \
3267     "checking for C++ compiler version" >&5
3268ac_compiler=`set X $ac_compile; echo $2`
3269{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3270  (eval $ac_compiler --version </dev/null >&5) 2>&5
3271  ac_status=$?
3272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); }
3274{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3275  (eval $ac_compiler -v </dev/null >&5) 2>&5
3276  ac_status=$?
3277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278  (exit $ac_status); }
3279{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3280  (eval $ac_compiler -V </dev/null >&5) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }
3284
3285echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3286echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3287if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3288  echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290  cat >conftest.$ac_ext <<_ACEOF
3291/* confdefs.h.  */
3292_ACEOF
3293cat confdefs.h >>conftest.$ac_ext
3294cat >>conftest.$ac_ext <<_ACEOF
3295/* end confdefs.h.  */
3296
3297int
3298main ()
3299{
3300#ifndef __GNUC__
3301       choke me
3302#endif
3303
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310  (eval $ac_compile) 2>conftest.er1
3311  ac_status=$?
3312  grep -v '^ *+' conftest.er1 >conftest.err
3313  rm -f conftest.er1
3314  cat conftest.err >&5
3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316  (exit $ac_status); } &&
3317         { ac_try='test -z "$ac_cxx_werror_flag"
3318                         || test ! -s conftest.err'
3319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320  (eval $ac_try) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; } &&
3324         { ac_try='test -s conftest.$ac_objext'
3325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326  (eval $ac_try) 2>&5
3327  ac_status=$?
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; }; then
3330  ac_compiler_gnu=yes
3331else
3332  echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335ac_compiler_gnu=no
3336fi
3337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3338ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3339
3340fi
3341echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3342echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3343GXX=`test $ac_compiler_gnu = yes && echo yes`
3344ac_test_CXXFLAGS=${CXXFLAGS+set}
3345ac_save_CXXFLAGS=$CXXFLAGS
3346CXXFLAGS="-g"
3347echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3348echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3349if test "${ac_cv_prog_cxx_g+set}" = set; then
3350  echo $ECHO_N "(cached) $ECHO_C" >&6
3351else
3352  cat >conftest.$ac_ext <<_ACEOF
3353/* confdefs.h.  */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h.  */
3358
3359int
3360main ()
3361{
3362
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext
3368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369  (eval $ac_compile) 2>conftest.er1
3370  ac_status=$?
3371  grep -v '^ *+' conftest.er1 >conftest.err
3372  rm -f conftest.er1
3373  cat conftest.err >&5
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); } &&
3376         { ac_try='test -z "$ac_cxx_werror_flag"
3377                         || test ! -s conftest.err'
3378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379  (eval $ac_try) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }; } &&
3383         { ac_try='test -s conftest.$ac_objext'
3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385  (eval $ac_try) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }; }; then
3389  ac_cv_prog_cxx_g=yes
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394ac_cv_prog_cxx_g=no
3395fi
3396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3397fi
3398echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3399echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3400if test "$ac_test_CXXFLAGS" = set; then
3401  CXXFLAGS=$ac_save_CXXFLAGS
3402elif test $ac_cv_prog_cxx_g = yes; then
3403  if test "$GXX" = yes; then
3404    CXXFLAGS="-g -O2"
3405  else
3406    CXXFLAGS="-g"
3407  fi
3408else
3409  if test "$GXX" = yes; then
3410    CXXFLAGS="-O2"
3411  else
3412    CXXFLAGS=
3413  fi
3414fi
3415for ac_declaration in \
3416   '' \
3417   'extern "C" void std::exit (int) throw (); using std::exit;' \
3418   'extern "C" void std::exit (int); using std::exit;' \
3419   'extern "C" void exit (int) throw ();' \
3420   'extern "C" void exit (int);' \
3421   'void exit (int);'
3422do
3423  cat >conftest.$ac_ext <<_ACEOF
3424/* confdefs.h.  */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h.  */
3429$ac_declaration
3430#include <stdlib.h>
3431int
3432main ()
3433{
3434exit (42);
3435  ;
3436  return 0;
3437}
3438_ACEOF
3439rm -f conftest.$ac_objext
3440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441  (eval $ac_compile) 2>conftest.er1
3442  ac_status=$?
3443  grep -v '^ *+' conftest.er1 >conftest.err
3444  rm -f conftest.er1
3445  cat conftest.err >&5
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); } &&
3448         { ac_try='test -z "$ac_cxx_werror_flag"
3449                         || test ! -s conftest.err'
3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451  (eval $ac_try) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }; } &&
3455         { ac_try='test -s conftest.$ac_objext'
3456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457  (eval $ac_try) 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }; }; then
3461  :
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466continue
3467fi
3468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469  cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h.  */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h.  */
3475$ac_declaration
3476int
3477main ()
3478{
3479exit (42);
3480  ;
3481  return 0;
3482}
3483_ACEOF
3484rm -f conftest.$ac_objext
3485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486  (eval $ac_compile) 2>conftest.er1
3487  ac_status=$?
3488  grep -v '^ *+' conftest.er1 >conftest.err
3489  rm -f conftest.er1
3490  cat conftest.err >&5
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); } &&
3493         { ac_try='test -z "$ac_cxx_werror_flag"
3494                         || test ! -s conftest.err'
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); }; } &&
3500         { ac_try='test -s conftest.$ac_objext'
3501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502  (eval $ac_try) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; }; then
3506  break
3507else
3508  echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511fi
3512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513done
3514rm -f conftest*
3515if test -n "$ac_declaration"; then
3516  echo '#ifdef __cplusplus' >>confdefs.h
3517  echo $ac_declaration      >>confdefs.h
3518  echo '#endif'             >>confdefs.h
3519fi
3520
3521ac_ext=cc
3522ac_cpp='$CXXCPP $CPPFLAGS'
3523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3526
3527
3528#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3529#thus, we test here whether $CXX is actually working
3530ac_ext=cc
3531ac_cpp='$CXXCPP $CPPFLAGS'
3532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3535
3536echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3537echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3538cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h.  */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h.  */
3544
3545int
3546main ()
3547{
3548int i=0;
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
3554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555  (eval $ac_compile) 2>conftest.er1
3556  ac_status=$?
3557  grep -v '^ *+' conftest.er1 >conftest.err
3558  rm -f conftest.er1
3559  cat conftest.err >&5
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); } &&
3562         { ac_try='test -z "$ac_cxx_werror_flag"
3563                         || test ! -s conftest.err'
3564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565  (eval $ac_try) 2>&5
3566  ac_status=$?
3567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568  (exit $ac_status); }; } &&
3569         { ac_try='test -s conftest.$ac_objext'
3570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571  (eval $ac_try) 2>&5
3572  ac_status=$?
3573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574  (exit $ac_status); }; }; then
3575  echo "$as_me:$LINENO: result: yes" >&5
3576echo "${ECHO_T}yes" >&6
3577else
3578  echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
3581echo "$as_me:$LINENO: result: no" >&5
3582echo "${ECHO_T}no" >&6
3583   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3584echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3585   { (exit 1); exit 1; }; }
3586
3587fi
3588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589ac_ext=cc
3590ac_cpp='$CXXCPP $CPPFLAGS'
3591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3594
3595
3596coin_cxx_is_cl=false
3597# It seems that we need to cleanup something here for the Windows
3598case "$CXX" in
3599  clang* ) ;;
3600  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3601    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3602    mv confdefs.hh confdefs.h
3603    coin_cxx_is_cl=true
3604    ;;
3605esac
3606
3607# add automake conditional so we can recognize cl compiler in makefile
3608
3609
3610if test $coin_cxx_is_cl = true; then
3611  COIN_CXX_IS_CL_TRUE=
3612  COIN_CXX_IS_CL_FALSE='#'
3613else
3614  COIN_CXX_IS_CL_TRUE='#'
3615  COIN_CXX_IS_CL_FALSE=
3616fi
3617
3618
3619# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3620case "$CXX" in
3621  clang* ) ;;
3622  cl* | */cl* | CL* | */CL* )
3623    if test "$ac_cv_prog_cxx_g" = yes ; then
3624      ac_cv_prog_cxx_g=no
3625      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3626echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3627    fi ;;
3628esac
3629CXXFLAGS="$save_cxxflags"
3630
3631# Check if a project specific CXXFLAGS variable has been set
3632if test x$COIN_PRJCT != x; then
3633  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3634  if test x$coin_tmp = xset; then
3635    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3636  fi
3637fi
3638
3639if test x"$CXXFLAGS" = x; then
3640
3641# ToDo decide whether we want -DNDEBUG for optimization
3642  coin_add_cxxflags=
3643  coin_opt_cxxflags=
3644  coin_dbg_cxxflags=
3645  coin_warn_cxxflags=
3646
3647  if test "$GXX" = "yes"; then
3648    case "$CXX" in
3649      icpc* | */icpc*)
3650        ;;
3651      *)
3652# ToDo decide about unroll-loops
3653        coin_opt_cxxflags="-O3"
3654        coin_add_cxxflags="-pipe"
3655        coin_dbg_cxxflags="-g -O0"
3656        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3657        case $build in
3658          *-darwin*)
3659            ;;
3660          *)
3661            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3662            ;;
3663        esac
3664
3665        case $enable_doscompile in
3666          mingw)
3667            CXXFLAGS="-mno-cygwin"
3668            cat >conftest.$ac_ext <<_ACEOF
3669/* confdefs.h.  */
3670_ACEOF
3671cat confdefs.h >>conftest.$ac_ext
3672cat >>conftest.$ac_ext <<_ACEOF
3673/* end confdefs.h.  */
3674
3675int
3676main ()
3677{
3678int i=0; i++;
3679  ;
3680  return 0;
3681}
3682_ACEOF
3683rm -f conftest.$ac_objext conftest$ac_exeext
3684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3685  (eval $ac_link) 2>conftest.er1
3686  ac_status=$?
3687  grep -v '^ *+' conftest.er1 >conftest.err
3688  rm -f conftest.er1
3689  cat conftest.err >&5
3690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691  (exit $ac_status); } &&
3692         { ac_try='test -z "$ac_cxx_werror_flag"
3693                         || test ! -s conftest.err'
3694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695  (eval $ac_try) 2>&5
3696  ac_status=$?
3697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698  (exit $ac_status); }; } &&
3699         { ac_try='test -s conftest$ac_exeext'
3700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701  (eval $ac_try) 2>&5
3702  ac_status=$?
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); }; }; then
3705  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3706else
3707  echo "$as_me: failed program was:" >&5
3708sed 's/^/| /' conftest.$ac_ext >&5
3709
3710fi
3711rm -f conftest.err conftest.$ac_objext \
3712      conftest$ac_exeext conftest.$ac_ext
3713            CXXFLAGS=
3714          ;;
3715        esac
3716    esac
3717  fi
3718
3719# Note that we do not need to cover GCC in the following tests.
3720
3721  if test -z "$coin_opt_cxxflags"; then
3722    case $build in
3723      *-cygwin* | *-mingw*)
3724        case "$CXX" in
3725          clang* ) ;;
3726          cl* | */cl* | CL* | */CL*)
3727            # The MT and MTd options are mutually exclusive
3728            coin_opt_cxxflags='-MT -O2'
3729            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3730            coin_dbg_cxxflags='-MTd'
3731            ;;
3732          icl* | */icl* | ICL* | */ICL*)
3733            # The MT and MTd options are mutually exclusive
3734            coin_opt_cxxflags='-MT -Ox'
3735            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3736            coin_dbg_cxxflags='-MTd -debug'
3737            ;;
3738        esac
3739        ;;
3740      *-linux-*)
3741        case "$CXX" in
3742          icpc* | */icpc*)
3743            coin_opt_cxxflags="-O3 -ip -mp1"
3744            coin_add_cxxflags=""
3745            coin_dbg_cxxflags="-g"
3746            # Check if -i_dynamic is necessary (for new glibc library)
3747            CXXFLAGS=
3748            cat >conftest.$ac_ext <<_ACEOF
3749/* confdefs.h.  */
3750_ACEOF
3751cat confdefs.h >>conftest.$ac_ext
3752cat >>conftest.$ac_ext <<_ACEOF
3753/* end confdefs.h.  */
3754
3755int
3756main ()
3757{
3758int i=0; i++;
3759  ;
3760  return 0;
3761}
3762_ACEOF
3763rm -f conftest.$ac_objext conftest$ac_exeext
3764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765  (eval $ac_link) 2>conftest.er1
3766  ac_status=$?
3767  grep -v '^ *+' conftest.er1 >conftest.err
3768  rm -f conftest.er1
3769  cat conftest.err >&5
3770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771  (exit $ac_status); } &&
3772         { ac_try='test -z "$ac_cxx_werror_flag"
3773                         || test ! -s conftest.err'
3774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775  (eval $ac_try) 2>&5
3776  ac_status=$?
3777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778  (exit $ac_status); }; } &&
3779         { ac_try='test -s conftest$ac_exeext'
3780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781  (eval $ac_try) 2>&5
3782  ac_status=$?
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); }; }; then
3785  :
3786else
3787  echo "$as_me: failed program was:" >&5
3788sed 's/^/| /' conftest.$ac_ext >&5
3789
3790coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3791fi
3792rm -f conftest.err conftest.$ac_objext \
3793      conftest$ac_exeext conftest.$ac_ext
3794            ;;
3795          pgCC* | */pgCC*)
3796            coin_opt_cxxflags="-fast"
3797            coin_add_cxxflags="-Kieee -pc 64"
3798            coin_dbg_cxxflags="-g"
3799            ;;
3800        esac
3801        ;;
3802      *-ibm-*)
3803        case "$CXX" in
3804          xlC* | */xlC* | mpxlC* | */mpxlC*)
3805            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3806            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3807            coin_dbg_cxxflags="-g"
3808            ;;
3809        esac
3810        ;;
3811      *-hp-*)
3812        case "$CXX" in
3813          aCC* | */aCC* )
3814            coin_opt_cxxflags="-O"
3815            coin_add_cxxflags="-AA"
3816            coin_dbg_cxxflags="-g"
3817            ;;
3818        esac
3819        ;;
3820      *-*-solaris*)
3821          coin_opt_cxxflags="-O4"
3822          coin_dbg_cxxflags="-g"
3823        ;;
3824    esac
3825  fi
3826
3827# Generic flag settings. If these don't work, add a case above.
3828
3829  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3830    coin_dbg_cxxflags="-g"
3831  fi
3832
3833  if test -z "$coin_opt_cxxflags"; then
3834    # Try if -O option works if nothing else is set
3835    CXXFLAGS=-O
3836    cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h.  */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h.  */
3842
3843int
3844main ()
3845{
3846int i=0; i++;
3847  ;
3848  return 0;
3849}
3850_ACEOF
3851rm -f conftest.$ac_objext conftest$ac_exeext
3852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853  (eval $ac_link) 2>conftest.er1
3854  ac_status=$?
3855  grep -v '^ *+' conftest.er1 >conftest.err
3856  rm -f conftest.er1
3857  cat conftest.err >&5
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); } &&
3860         { ac_try='test -z "$ac_cxx_werror_flag"
3861                         || test ! -s conftest.err'
3862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863  (eval $ac_try) 2>&5
3864  ac_status=$?
3865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866  (exit $ac_status); }; } &&
3867         { ac_try='test -s conftest$ac_exeext'
3868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869  (eval $ac_try) 2>&5
3870  ac_status=$?
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); }; }; then
3873  coin_opt_cxxflags="-O"
3874else
3875  echo "$as_me: failed program was:" >&5
3876sed 's/^/| /' conftest.$ac_ext >&5
3877
3878fi
3879rm -f conftest.err conftest.$ac_objext \
3880      conftest$ac_exeext conftest.$ac_ext
3881  fi
3882
3883  # if PM doesn't want the warning messages, take them out
3884  if test x"$coin_skip_warn_cxxflags" = xyes; then
3885    coin_warn_cxxflags=
3886  fi
3887
3888# Do final setup of flags based on values determined above.
3889
3890  if test x${DBG_CXXFLAGS+set} != xset; then
3891    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3892  fi
3893  if test x${OPT_CXXFLAGS+set} != xset; then
3894    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3895  fi
3896
3897  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3898  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3899
3900  if test "$coin_debug_compile" = "true"; then
3901    CXXFLAGS="$DBG_CXXFLAGS"
3902  else
3903    CXXFLAGS="$OPT_CXXFLAGS"
3904  fi
3905
3906# Handle the case where CXXFLAGS was set externally.
3907else
3908  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3909  if test x${DBG_CXXFLAGS+set} != xset; then
3910    DBG_CXXFLAGS="$CXXFLAGS"
3911  fi
3912  if test x${OPT_CXXFLAGS+set} != xset; then
3913    OPT_CXXFLAGS="$CXXFLAGS"
3914  fi
3915fi
3916
3917# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3918
3919case "$CXXFLAGS" in
3920  *-mno-cygwin*)
3921    if test x${CPPFLAGS+set} != xset ; then
3922      CPPFLAGS="-mno-cygwin"
3923    else
3924      case "$CPPFLAGS" in
3925        *-mno-cygwin*)
3926          ;;
3927        *)
3928          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3929          ;;
3930      esac
3931    fi ;;
3932esac
3933
3934# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3935if test x$COIN_PRJCT != x; then
3936  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3937fi
3938
3939# Try if CXXFLAGS works
3940save_CXXFLAGS="$CXXFLAGS"
3941cat >conftest.$ac_ext <<_ACEOF
3942/* confdefs.h.  */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h.  */
3947
3948int
3949main ()
3950{
3951int i=0; i++;
3952  ;
3953  return 0;
3954}
3955_ACEOF
3956rm -f conftest.$ac_objext conftest$ac_exeext
3957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3958  (eval $ac_link) 2>conftest.er1
3959  ac_status=$?
3960  grep -v '^ *+' conftest.er1 >conftest.err
3961  rm -f conftest.er1
3962  cat conftest.err >&5
3963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964  (exit $ac_status); } &&
3965         { ac_try='test -z "$ac_cxx_werror_flag"
3966                         || test ! -s conftest.err'
3967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968  (eval $ac_try) 2>&5
3969  ac_status=$?
3970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971  (exit $ac_status); }; } &&
3972         { ac_try='test -s conftest$ac_exeext'
3973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974  (eval $ac_try) 2>&5
3975  ac_status=$?
3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977  (exit $ac_status); }; }; then
3978  :
3979else
3980  echo "$as_me: failed program was:" >&5
3981sed 's/^/| /' conftest.$ac_ext >&5
3982
3983CXXFLAGS=
3984fi
3985rm -f conftest.err conftest.$ac_objext \
3986      conftest$ac_exeext conftest.$ac_ext
3987if test -z "$CXXFLAGS"; then
3988  { 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
3989echo "$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;}
3990  CXXFLAGS='-O'
3991  cat >conftest.$ac_ext <<_ACEOF
3992/* confdefs.h.  */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h.  */
3997
3998int
3999main ()
4000{
4001int i=0; i++;
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext conftest$ac_exeext
4007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008  (eval $ac_link) 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015         { ac_try='test -z "$ac_cxx_werror_flag"
4016                         || test ! -s conftest.err'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; } &&
4022         { ac_try='test -s conftest$ac_exeext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  :
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033CXXFLAGS=
4034fi
4035rm -f conftest.err conftest.$ac_objext \
4036      conftest$ac_exeext conftest.$ac_ext
4037  if test -z "$CXXFLAGS"; then
4038    { 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
4039echo "$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;}
4040  fi
4041fi
4042
4043{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4044echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4045
4046
4047if test x"$MPICXX" = x; then :; else
4048  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4049echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4050  CXX="$MPICXX"
4051fi
4052
4053# correct the LD variable in a mingw build with MS or intel compiler
4054case "$CXX" in
4055  clang* ) ;;
4056  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4057    case $build in
4058  *-mingw*)
4059    if test "${LD+set}" = set; then :; else
4060      LD=link
4061    fi
4062    ;;
4063 esac
4064 case $enable_doscompile in
4065   msvc)
4066     if test "x${LD+set}" = xset; then :; else
4067       LD=link
4068     fi
4069     ;;
4070 esac
4071
4072    ;;
4073esac
4074
4075ac_ext=c
4076ac_cpp='$CPP $CPPFLAGS'
4077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
4081
4082
4083# Get the name of the Fortran compiler and appropriate compiler options
4084case $build in
4085  *-cygwin* | *-mingw*)
4086     if test "$enable_doscompile" = msvc ; then
4087       coin_f77_comps="ifort fl32 compile_f2c"
4088     else
4089       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
4090     fi ;;
4091  *-*-solaris*)
4092     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4093  *-linux-gnu*)
4094     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4095  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
4096 esac
4097
4098
4099
4100
4101
4102
4103ac_ext=f
4104ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4105ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4107
4108
4109
4110
4111
4112
4113coin_has_f77=yes
4114
4115save_fflags="$FFLAGS"
4116
4117# We delete the cached value, since the test might not have been
4118# performed with our choice of compilers earlier
4119$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4120
4121# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4122# coin_f77_comps to see if there's a program that matches one of the names.
4123# If there's no such program, F77 = unavailable. If we match the name,
4124# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4125# compiler.
4126# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4127
4128
4129{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4130echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4131if test -n "$ac_tool_prefix"; then
4132  for ac_prog in $coin_f77_comps
4133  do
4134    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4135set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4136echo "$as_me:$LINENO: checking for $ac_word" >&5
4137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138if test "${ac_cv_prog_F77+set}" = set; then
4139  echo $ECHO_N "(cached) $ECHO_C" >&6
4140else
4141  if test -n "$F77"; then
4142  ac_cv_prog_F77="$F77" # Let the user override the test.
4143else
4144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145for as_dir in $PATH
4146do
4147  IFS=$as_save_IFS
4148  test -z "$as_dir" && as_dir=.
4149  for ac_exec_ext in '' $ac_executable_extensions; do
4150  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4152    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153    break 2
4154  fi
4155done
4156done
4157
4158fi
4159fi
4160F77=$ac_cv_prog_F77
4161if test -n "$F77"; then
4162  echo "$as_me:$LINENO: result: $F77" >&5
4163echo "${ECHO_T}$F77" >&6
4164else
4165  echo "$as_me:$LINENO: result: no" >&5
4166echo "${ECHO_T}no" >&6
4167fi
4168
4169    test -n "$F77" && break
4170  done
4171fi
4172if test -z "$F77"; then
4173  ac_ct_F77=$F77
4174  for ac_prog in $coin_f77_comps
4175do
4176  # Extract the first word of "$ac_prog", so it can be a program name with args.
4177set dummy $ac_prog; ac_word=$2
4178echo "$as_me:$LINENO: checking for $ac_word" >&5
4179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4181  echo $ECHO_N "(cached) $ECHO_C" >&6
4182else
4183  if test -n "$ac_ct_F77"; then
4184  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4185else
4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH
4188do
4189  IFS=$as_save_IFS
4190  test -z "$as_dir" && as_dir=.
4191  for ac_exec_ext in '' $ac_executable_extensions; do
4192  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193    ac_cv_prog_ac_ct_F77="$ac_prog"
4194    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195    break 2
4196  fi
4197done
4198done
4199
4200fi
4201fi
4202ac_ct_F77=$ac_cv_prog_ac_ct_F77
4203if test -n "$ac_ct_F77"; then
4204  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4205echo "${ECHO_T}$ac_ct_F77" >&6
4206else
4207  echo "$as_me:$LINENO: result: no" >&5
4208echo "${ECHO_T}no" >&6
4209fi
4210
4211  test -n "$ac_ct_F77" && break
4212done
4213test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4214
4215  F77=$ac_ct_F77
4216fi
4217
4218
4219if test "$F77" != "unavailable" ; then
4220  ac_ext=f
4221ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4222ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4224if test -n "$ac_tool_prefix"; then
4225  for ac_prog in $coin_f77_comps
4226  do
4227    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4228set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4229echo "$as_me:$LINENO: checking for $ac_word" >&5
4230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231if test "${ac_cv_prog_F77+set}" = set; then
4232  echo $ECHO_N "(cached) $ECHO_C" >&6
4233else
4234  if test -n "$F77"; then
4235  ac_cv_prog_F77="$F77" # Let the user override the test.
4236else
4237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH
4239do
4240  IFS=$as_save_IFS
4241  test -z "$as_dir" && as_dir=.
4242  for ac_exec_ext in '' $ac_executable_extensions; do
4243  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246    break 2
4247  fi
4248done
4249done
4250
4251fi
4252fi
4253F77=$ac_cv_prog_F77
4254if test -n "$F77"; then
4255  echo "$as_me:$LINENO: result: $F77" >&5
4256echo "${ECHO_T}$F77" >&6
4257else
4258  echo "$as_me:$LINENO: result: no" >&5
4259echo "${ECHO_T}no" >&6
4260fi
4261
4262    test -n "$F77" && break
4263  done
4264fi
4265if test -z "$F77"; then
4266  ac_ct_F77=$F77
4267  for ac_prog in $coin_f77_comps
4268do
4269  # Extract the first word of "$ac_prog", so it can be a program name with args.
4270set dummy $ac_prog; ac_word=$2
4271echo "$as_me:$LINENO: checking for $ac_word" >&5
4272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4274  echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276  if test -n "$ac_ct_F77"; then
4277  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4278else
4279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280for as_dir in $PATH
4281do
4282  IFS=$as_save_IFS
4283  test -z "$as_dir" && as_dir=.
4284  for ac_exec_ext in '' $ac_executable_extensions; do
4285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286    ac_cv_prog_ac_ct_F77="$ac_prog"
4287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288    break 2
4289  fi
4290done
4291done
4292
4293fi
4294fi
4295ac_ct_F77=$ac_cv_prog_ac_ct_F77
4296if test -n "$ac_ct_F77"; then
4297  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4298echo "${ECHO_T}$ac_ct_F77" >&6
4299else
4300  echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6
4302fi
4303
4304  test -n "$ac_ct_F77" && break
4305done
4306
4307  F77=$ac_ct_F77
4308fi
4309
4310
4311# Provide some information about the compiler.
4312echo "$as_me:4312:" \
4313     "checking for Fortran 77 compiler version" >&5
4314ac_compiler=`set X $ac_compile; echo $2`
4315{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4316  (eval $ac_compiler --version </dev/null >&5) 2>&5
4317  ac_status=$?
4318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319  (exit $ac_status); }
4320{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4321  (eval $ac_compiler -v </dev/null >&5) 2>&5
4322  ac_status=$?
4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324  (exit $ac_status); }
4325{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4326  (eval $ac_compiler -V </dev/null >&5) 2>&5
4327  ac_status=$?
4328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329  (exit $ac_status); }
4330rm -f a.out
4331
4332# If we don't use `.F' as extension, the preprocessor is not run on the
4333# input file.  (Note that this only needs to work for GNU compilers.)
4334ac_save_ext=$ac_ext
4335ac_ext=F
4336echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4337echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4338if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4339  echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341  cat >conftest.$ac_ext <<_ACEOF
4342      program main
4343#ifndef __GNUC__
4344       choke me
4345#endif
4346
4347      end
4348_ACEOF
4349rm -f conftest.$ac_objext
4350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351  (eval $ac_compile) 2>conftest.er1
4352  ac_status=$?
4353  grep -v '^ *+' conftest.er1 >conftest.err
4354  rm -f conftest.er1
4355  cat conftest.err >&5
4356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357  (exit $ac_status); } &&
4358         { ac_try='test -z "$ac_f77_werror_flag"
4359                         || test ! -s conftest.err'
4360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361  (eval $ac_try) 2>&5
4362  ac_status=$?
4363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364  (exit $ac_status); }; } &&
4365         { ac_try='test -s conftest.$ac_objext'
4366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367  (eval $ac_try) 2>&5
4368  ac_status=$?
4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370  (exit $ac_status); }; }; then
4371  ac_compiler_gnu=yes
4372else
4373  echo "$as_me: failed program was:" >&5
4374sed 's/^/| /' conftest.$ac_ext >&5
4375
4376ac_compiler_gnu=no
4377fi
4378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4380
4381fi
4382echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4383echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4384ac_ext=$ac_save_ext
4385ac_test_FFLAGS=${FFLAGS+set}
4386ac_save_FFLAGS=$FFLAGS
4387FFLAGS=
4388echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4389echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4390if test "${ac_cv_prog_f77_g+set}" = set; then
4391  echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393  FFLAGS=-g
4394cat >conftest.$ac_ext <<_ACEOF
4395      program main
4396
4397      end
4398_ACEOF
4399rm -f conftest.$ac_objext
4400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401  (eval $ac_compile) 2>conftest.er1
4402  ac_status=$?
4403  grep -v '^ *+' conftest.er1 >conftest.err
4404  rm -f conftest.er1
4405  cat conftest.err >&5
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); } &&
4408         { ac_try='test -z "$ac_f77_werror_flag"
4409                         || test ! -s conftest.err'
4410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411  (eval $ac_try) 2>&5
4412  ac_status=$?
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); }; } &&
4415         { ac_try='test -s conftest.$ac_objext'
4416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417  (eval $ac_try) 2>&5
4418  ac_status=$?
4419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420  (exit $ac_status); }; }; then
4421  ac_cv_prog_f77_g=yes
4422else
4423  echo "$as_me: failed program was:" >&5
4424sed 's/^/| /' conftest.$ac_ext >&5
4425
4426ac_cv_prog_f77_g=no
4427fi
4428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4429
4430fi
4431echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4432echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4433if test "$ac_test_FFLAGS" = set; then
4434  FFLAGS=$ac_save_FFLAGS
4435elif test $ac_cv_prog_f77_g = yes; then
4436  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4437    FFLAGS="-g -O2"
4438  else
4439    FFLAGS="-g"
4440  fi
4441else
4442  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4443    FFLAGS="-O2"
4444  else
4445    FFLAGS=
4446  fi
4447fi
4448
4449G77=`test $ac_compiler_gnu = yes && echo yes`
4450ac_ext=f
4451ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4452ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4454
4455else
4456  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4457echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4458fi
4459
4460FFLAGS="$save_fflags"
4461
4462# Check if a project specific FFLAGS variable has been set
4463if test x$COIN_PRJCT != x; then
4464  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4465  if test x$coin_tmp = xset; then
4466    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4467  fi
4468fi
4469
4470if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4471
4472  coin_add_fflags=
4473  coin_opt_fflags=
4474  coin_dbg_fflags=
4475  coin_warn_fflags=
4476
4477  if test "$G77" = "yes"; then
4478    coin_opt_fflags="-O3"
4479    coin_add_fflags="-pipe"
4480    coin_dbg_fflags="-g -O0"
4481    case $enable_doscompile in
4482      mingw)
4483        FFLAGS="-mno-cygwin"
4484        cat >conftest.$ac_ext <<_ACEOF
4485      program main
4486      write(*,*) 'Hello world'
4487      end
4488_ACEOF
4489rm -f conftest.$ac_objext conftest$ac_exeext
4490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491  (eval $ac_link) 2>conftest.er1
4492  ac_status=$?
4493  grep -v '^ *+' conftest.er1 >conftest.err
4494  rm -f conftest.er1
4495  cat conftest.err >&5
4496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497  (exit $ac_status); } &&
4498         { ac_try='test -z "$ac_f77_werror_flag"
4499                         || test ! -s conftest.err'
4500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501  (eval $ac_try) 2>&5
4502  ac_status=$?
4503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504  (exit $ac_status); }; } &&
4505         { ac_try='test -s conftest$ac_exeext'
4506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507  (eval $ac_try) 2>&5
4508  ac_status=$?
4509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510  (exit $ac_status); }; }; then
4511  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4512else
4513  echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
4515
4516fi
4517rm -f conftest.err conftest.$ac_objext \
4518      conftest$ac_exeext conftest.$ac_ext
4519        FFLAGS=
4520      ;;
4521    esac
4522  else
4523    case $build in
4524      *-cygwin* | *-mingw*)
4525        case $F77 in
4526          ifort* | */ifort* | IFORT* | */IFORT* )
4527            coin_opt_fflags='-MT -O3'
4528            coin_add_fflags='-fpp -nologo'
4529            coin_dbg_fflags='-MTd -debug'
4530          ;;
4531          compile_f2c*)
4532            coin_opt_fflags='-MT -O2'
4533            coin_add_fflags='-nologo -wd4996'
4534            coin_dbg_fflags='-MTd'
4535          ;;
4536        esac
4537        ;;
4538      *-linux-*)
4539        case $F77 in
4540          ifc* | */ifc* | ifort* | */ifort*)
4541            coin_opt_fflags="-O3 -ip"
4542            coin_add_fflags="-cm -w90 -w95"
4543            coin_dbg_fflags="-g -CA -CB -CS"
4544            # Check if -i_dynamic is necessary (for new glibc library)
4545            FFLAGS=
4546            cat >conftest.$ac_ext <<_ACEOF
4547      program main
4548      write(*,*) 'Hello world'
4549      end
4550_ACEOF
4551rm -f conftest.$ac_objext conftest$ac_exeext
4552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4553  (eval $ac_link) 2>conftest.er1
4554  ac_status=$?
4555  grep -v '^ *+' conftest.er1 >conftest.err
4556  rm -f conftest.er1
4557  cat conftest.err >&5
4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559  (exit $ac_status); } &&
4560         { ac_try='test -z "$ac_f77_werror_flag"
4561                         || test ! -s conftest.err'
4562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563  (eval $ac_try) 2>&5
4564  ac_status=$?
4565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566  (exit $ac_status); }; } &&
4567         { ac_try='test -s conftest$ac_exeext'
4568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569  (eval $ac_try) 2>&5
4570  ac_status=$?
4571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572  (exit $ac_status); }; }; then
4573  :
4574else
4575  echo "$as_me: failed program was:" >&5
4576sed 's/^/| /' conftest.$ac_ext >&5
4577
4578coin_add_fflags="-i_dynamic $coin_add_fflags"
4579fi
4580rm -f conftest.err conftest.$ac_objext \
4581      conftest$ac_exeext conftest.$ac_ext
4582            ;;
4583          pgf77* | */pgf77* | pgf90* | */pgf90*)
4584            coin_opt_fflags="-fast"
4585            coin_add_fflags="-Kieee -pc 64"
4586            coin_dbg_fflags="-g"
4587          ;;
4588        esac
4589        ;;
4590      *-ibm-*)
4591        case "$F77" in
4592          xlf* | */xlf* | mpxlf* | */mpxlf* )
4593            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4594            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4595            coin_dbg_fflags="-g -C"
4596            ;;
4597        esac
4598        ;;
4599      *-hp-*)
4600        coin_opt_fflags="+O3"
4601        coin_add_fflags="+U77"
4602        coin_dbg_fflags="-C -g"
4603        ;;
4604      *-*-solaris*)
4605        coin_opt_fflags="-O4"
4606        coin_dbg_fflags="-g"
4607        ;;
4608      *-sgi-*)
4609        coin_opt_fflags="-O5 -OPT:Olimit=0"
4610        coin_dbg_fflags="-g"
4611        ;;
4612    esac
4613  fi
4614
4615  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4616    coin_dbg_fflags="-g"
4617  fi
4618
4619  if test -z "$coin_opt_fflags"; then
4620    # Try if -O option works if nothing else is set
4621    FFLAGS=-O
4622    cat >conftest.$ac_ext <<_ACEOF
4623      program main
4624      integer i
4625      end
4626_ACEOF
4627rm -f conftest.$ac_objext conftest$ac_exeext
4628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629  (eval $ac_link) 2>conftest.er1
4630  ac_status=$?
4631  grep -v '^ *+' conftest.er1 >conftest.err
4632  rm -f conftest.er1
4633  cat conftest.err >&5
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); } &&
4636         { ac_try='test -z "$ac_f77_werror_flag"
4637                         || test ! -s conftest.err'
4638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639  (eval $ac_try) 2>&5
4640  ac_status=$?
4641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642  (exit $ac_status); }; } &&
4643         { ac_try='test -s conftest$ac_exeext'
4644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645  (eval $ac_try) 2>&5
4646  ac_status=$?
4647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648  (exit $ac_status); }; }; then
4649  coin_opt_fflags="-O"
4650else
4651  echo "$as_me: failed program was:" >&5
4652sed 's/^/| /' conftest.$ac_ext >&5
4653
4654fi
4655rm -f conftest.err conftest.$ac_objext \
4656      conftest$ac_exeext conftest.$ac_ext
4657  fi
4658
4659  # if PM doesn't want the warning messages, take them out
4660  if test x"$coin_skip_warn_fflags" = xyes; then
4661    coin_warn_fflags=
4662  fi
4663
4664  if test x${DBG_FFLAGS+set} != xset; then
4665    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4666  fi
4667  if test x${OPT_FFLAGS+set} != xset; then
4668    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4669  fi
4670
4671  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4672  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4673
4674  if test "$coin_debug_compile" = "true"; then
4675    FFLAGS="$DBG_FFLAGS"
4676  else
4677    FFLAGS="$OPT_FFLAGS"
4678  fi
4679else
4680  FFLAGS="$FFLAGS $ADD_FFLAGS"
4681  if test x${DBG_FFLAGS+set} != xset; then
4682    DBG_FFLAGS="$FFLAGS"
4683  fi
4684  if test x${OPT_FFLAGS+set} != xset; then
4685    OPT_FFLAGS="$FFLAGS"
4686  fi
4687fi
4688
4689# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4690case "$FFLAGS" in
4691  *-mno-cygwin*)
4692    if test x${CPPFLAGS+set} != xset ; then
4693      CPPFLAGS="-mno-cygwin"
4694    else
4695      case "$CPPFLAGS" in
4696        *-mno-cygwin*)
4697          ;;
4698        *)
4699          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4700          ;;
4701      esac
4702    fi ;;
4703esac
4704
4705# Try if FFLAGS works
4706if test "$F77" != "unavailable" ; then
4707  cat >conftest.$ac_ext <<_ACEOF
4708      program main
4709      integer i
4710      end
4711_ACEOF
4712rm -f conftest.$ac_objext conftest$ac_exeext
4713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4714  (eval $ac_link) 2>conftest.er1
4715  ac_status=$?
4716  grep -v '^ *+' conftest.er1 >conftest.err
4717  rm -f conftest.er1
4718  cat conftest.err >&5
4719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720  (exit $ac_status); } &&
4721         { ac_try='test -z "$ac_f77_werror_flag"
4722                         || test ! -s conftest.err'
4723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724  (eval $ac_try) 2>&5
4725  ac_status=$?
4726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727  (exit $ac_status); }; } &&
4728         { ac_try='test -s conftest$ac_exeext'
4729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730  (eval $ac_try) 2>&5
4731  ac_status=$?
4732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733  (exit $ac_status); }; }; then
4734  :
4735else
4736  echo "$as_me: failed program was:" >&5
4737sed 's/^/| /' conftest.$ac_ext >&5
4738
4739FFLAGS=
4740fi
4741rm -f conftest.err conftest.$ac_objext \
4742      conftest$ac_exeext conftest.$ac_ext
4743  if test -z "$FFLAGS"; then
4744    { 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
4745echo "$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;}
4746    FFLAGS='-O'
4747    cat >conftest.$ac_ext <<_ACEOF
4748      program main
4749      integer i
4750      end
4751_ACEOF
4752rm -f conftest.$ac_objext conftest$ac_exeext
4753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4754  (eval $ac_link) 2>conftest.er1
4755  ac_status=$?
4756  grep -v '^ *+' conftest.er1 >conftest.err
4757  rm -f conftest.er1
4758  cat conftest.err >&5
4759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760  (exit $ac_status); } &&
4761         { ac_try='test -z "$ac_f77_werror_flag"
4762                         || test ! -s conftest.err'
4763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764  (eval $ac_try) 2>&5
4765  ac_status=$?
4766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767  (exit $ac_status); }; } &&
4768         { ac_try='test -s conftest$ac_exeext'
4769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770  (eval $ac_try) 2>&5
4771  ac_status=$?
4772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773  (exit $ac_status); }; }; then
4774  :
4775else
4776  echo "$as_me: failed program was:" >&5
4777sed 's/^/| /' conftest.$ac_ext >&5
4778
4779FFLAGS=
4780fi
4781rm -f conftest.err conftest.$ac_objext \
4782      conftest$ac_exeext conftest.$ac_ext
4783    if test -z "$FFLAGS"; then
4784      { 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
4785echo "$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;}
4786    fi
4787  fi
4788fi
4789
4790{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4791echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4792
4793
4794if test x"$MPIF77" = x; then :; else
4795  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4796echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4797  F77="$MPIF77"
4798fi
4799
4800# correct the LD variable if we use the intel fortran compiler in windows
4801case "$F77" in
4802  ifort* | */ifort* | IFORT* | */IFORT*)
4803    case $build in
4804  *-mingw*)
4805    if test "${LD+set}" = set; then :; else
4806      LD=link
4807    fi
4808    ;;
4809 esac
4810 case $enable_doscompile in
4811   msvc)
4812     if test "x${LD+set}" = xset; then :; else
4813       LD=link
4814     fi
4815     ;;
4816 esac
4817
4818    ;;
4819esac
4820
4821ac_ext=c
4822ac_cpp='$CPP $CPPFLAGS'
4823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826
4827
4828
4829# Initialize automake and libtool
4830# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4831{
4832
4833
4834
4835# START
4836
4837# Test if force_shared has been set
4838if test "x" = xforce_shared; then
4839  if test x$enable_shared = xno; then
4840    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4841echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4842   { (exit 1); exit 1; }; }
4843  fi
4844  enable_shared=yes;
4845else
4846  # On Cygwin and AIX, building DLLs doesn't work
4847  case $build in
4848    *-cygwin*)
4849      coin_disable_shared=yes
4850      platform=Cygwin
4851    ;;
4852    *-aix*)
4853      coin_disable_shared=yes
4854      platform=AIX
4855    ;;
4856    *-mingw*)
4857      coin_disable_shared=yes
4858      platform="Msys"
4859#      case "$CXX" in
4860#        cl*)
4861#          coin_disable_shared=yes
4862#          platform="Msys with cl"
4863#      ;;
4864#      esac
4865    ;;
4866  esac
4867fi
4868if test x"$coin_disable_shared" = xyes; then
4869  if test x"$enable_shared" = xyes; then
4870    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4871echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4872  fi
4873  enable_shared=no
4874fi
4875# By default, we only want the shared objects to be compiled
4876# Check whether --enable-static or --disable-static was given.
4877if test "${enable_static+set}" = set; then
4878  enableval="$enable_static"
4879  p=${PACKAGE-default}
4880    case $enableval in
4881    yes) enable_static=yes ;;
4882    no) enable_static=no ;;
4883    *)
4884     enable_static=no
4885      # Look at the argument we got.  We use all the common list separators.
4886      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4887      for pkg in $enableval; do
4888        IFS="$lt_save_ifs"
4889        if test "X$pkg" = "X$p"; then
4890          enable_static=yes
4891        fi
4892      done
4893      IFS="$lt_save_ifs"
4894      ;;
4895    esac
4896else
4897  enable_static=no
4898fi;
4899
4900
4901
4902
4903# Initialize automake
4904echo "$as_me:$LINENO: checking for egrep" >&5
4905echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4906if test "${ac_cv_prog_egrep+set}" = set; then
4907  echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4910    then ac_cv_prog_egrep='grep -E'
4911    else ac_cv_prog_egrep='egrep'
4912    fi
4913fi
4914echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4915echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4916 EGREP=$ac_cv_prog_egrep
4917
4918
4919echo "$as_me:$LINENO: checking whether ln -s works" >&5
4920echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4921LN_S=$as_ln_s
4922if test "$LN_S" = "ln -s"; then
4923  echo "$as_me:$LINENO: result: yes" >&5
4924echo "${ECHO_T}yes" >&6
4925else
4926  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4927echo "${ECHO_T}no, using $LN_S" >&6
4928fi
4929
4930am__api_version="1.9"
4931# Find a good install program.  We prefer a C program (faster),
4932# so one script is as good as another.  But avoid the broken or
4933# incompatible versions:
4934# SysV /etc/install, /usr/sbin/install
4935# SunOS /usr/etc/install
4936# IRIX /sbin/install
4937# AIX /bin/install
4938# AmigaOS /C/install, which installs bootblocks on floppy discs
4939# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4940# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4941# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4942# OS/2's system install, which has a completely different semantic
4943# ./install, which can be erroneously created by make from ./install.sh.
4944echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4945echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4946if test -z "$INSTALL"; then
4947if test "${ac_cv_path_install+set}" = set; then
4948  echo $ECHO_N "(cached) $ECHO_C" >&6
4949else
4950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953  IFS=$as_save_IFS
4954  test -z "$as_dir" && as_dir=.
4955  # Account for people who put trailing slashes in PATH elements.
4956case $as_dir/ in
4957  ./ | .// | /cC/* | \
4958  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4959  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4960  /usr/ucb/* ) ;;
4961  *)
4962    # OSF1 and SCO ODT 3.0 have their own names for install.
4963    # Don't use installbsd from OSF since it installs stuff as root
4964    # by default.
4965    for ac_prog in ginstall scoinst install; do
4966      for ac_exec_ext in '' $ac_executable_extensions; do
4967        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4968          if test $ac_prog = install &&
4969            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4970            # AIX install.  It has an incompatible calling convention.
4971            :
4972          elif test $ac_prog = install &&
4973            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4974            # program-specific install script used by HP pwplus--don't use.
4975            :
4976          else
4977            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4978            break 3
4979          fi
4980        fi
4981      done
4982    done
4983    ;;
4984esac
4985done
4986
4987
4988fi
4989  if test "${ac_cv_path_install+set}" = set; then
4990    INSTALL=$ac_cv_path_install
4991  else
4992    # As a last resort, use the slow shell script.  We don't cache a
4993    # path for INSTALL within a source directory, because that will
4994    # break other packages using the cache if that directory is
4995    # removed, or if the path is relative.
4996    INSTALL=$ac_install_sh
4997  fi
4998fi
4999echo "$as_me:$LINENO: result: $INSTALL" >&5
5000echo "${ECHO_T}$INSTALL" >&6
5001
5002# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5003# It thinks the first close brace ends the variable substitution.
5004test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5005
5006test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5007
5008test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5009
5010echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5011echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5012# Just in case
5013sleep 1
5014echo timestamp > conftest.file
5015# Do `set' in a subshell so we don't clobber the current shell's
5016# arguments.  Must try -L first in case configure is actually a
5017# symlink; some systems play weird games with the mod time of symlinks
5018# (eg FreeBSD returns the mod time of the symlink's containing
5019# directory).
5020if (
5021   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5022   if test "$*" = "X"; then
5023      # -L didn't work.
5024      set X `ls -t $srcdir/configure conftest.file`
5025   fi
5026   rm -f conftest.file
5027   if test "$*" != "X $srcdir/configure conftest.file" \
5028      && test "$*" != "X conftest.file $srcdir/configure"; then
5029
5030      # If neither matched, then we have a broken ls.  This can happen
5031      # if, for instance, CONFIG_SHELL is bash and it inherits a
5032      # broken ls alias from the environment.  This has actually
5033      # happened.  Such a system could not be considered "sane".
5034      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5035alias in your environment" >&5
5036echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5037alias in your environment" >&2;}
5038   { (exit 1); exit 1; }; }
5039   fi
5040
5041   test "$2" = conftest.file
5042   )
5043then
5044   # Ok.
5045   :
5046else
5047   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5048Check your system clock" >&5
5049echo "$as_me: error: newly created file is older than distributed files!
5050Check your system clock" >&2;}
5051   { (exit 1); exit 1; }; }
5052fi
5053echo "$as_me:$LINENO: result: yes" >&5
5054echo "${ECHO_T}yes" >&6
5055test "$program_prefix" != NONE &&
5056  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5057# Use a double $ so make ignores it.
5058test "$program_suffix" != NONE &&
5059  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5060# Double any \ or $.  echo might interpret backslashes.
5061# By default was `s,x,x', remove it if useless.
5062cat <<\_ACEOF >conftest.sed
5063s/[\\$]/&&/g;s/;s,x,x,$//
5064_ACEOF
5065program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5066rm conftest.sed
5067
5068# expand $ac_aux_dir to an absolute path
5069am_aux_dir=`cd $ac_aux_dir && pwd`
5070
5071test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5072# Use eval to expand $SHELL
5073if eval "$MISSING --run true"; then
5074  am_missing_run="$MISSING --run "
5075else
5076  am_missing_run=
5077  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5078echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5079fi
5080
5081if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5082  # We used to keeping the `.' as first argument, in order to
5083  # allow $(mkdir_p) to be used without argument.  As in
5084  #   $(mkdir_p) $(somedir)
5085  # where $(somedir) is conditionally defined.  However this is wrong
5086  # for two reasons:
5087  #  1. if the package is installed by a user who cannot write `.'
5088  #     make install will fail,
5089  #  2. the above comment should most certainly read
5090  #     $(mkdir_p) $(DESTDIR)$(somedir)
5091  #     so it does not work when $(somedir) is undefined and
5092  #     $(DESTDIR) is not.
5093  #  To support the latter case, we have to write
5094  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5095  #  so the `.' trick is pointless.
5096  mkdir_p='mkdir -p --'
5097else
5098  # On NextStep and OpenStep, the `mkdir' command does not
5099  # recognize any option.  It will interpret all options as
5100  # directories to create, and then abort because `.' already
5101  # exists.
5102  for d in ./-p ./--version;
5103  do
5104    test -d $d && rmdir $d
5105  done
5106  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5107  if test -f "$ac_aux_dir/mkinstalldirs"; then
5108    mkdir_p='$(mkinstalldirs)'
5109  else
5110    mkdir_p='$(install_sh) -d'
5111  fi
5112fi
5113
5114for ac_prog in gawk mawk nawk awk
5115do
5116  # Extract the first word of "$ac_prog", so it can be a program name with args.
5117set dummy $ac_prog; ac_word=$2
5118echo "$as_me:$LINENO: checking for $ac_word" >&5
5119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5120if test "${ac_cv_prog_AWK+set}" = set; then
5121  echo $ECHO_N "(cached) $ECHO_C" >&6
5122else
5123  if test -n "$AWK"; then
5124  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5125else
5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129  IFS=$as_save_IFS
5130  test -z "$as_dir" && as_dir=.
5131  for ac_exec_ext in '' $ac_executable_extensions; do
5132  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133    ac_cv_prog_AWK="$ac_prog"
5134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135    break 2
5136  fi
5137done
5138done
5139
5140fi
5141fi
5142AWK=$ac_cv_prog_AWK
5143if test -n "$AWK"; then
5144  echo "$as_me:$LINENO: result: $AWK" >&5
5145echo "${ECHO_T}$AWK" >&6
5146else
5147  echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
5149fi
5150
5151  test -n "$AWK" && break
5152done
5153
5154echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5155echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5156set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5157if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5158  echo $ECHO_N "(cached) $ECHO_C" >&6
5159else
5160  cat >conftest.make <<\_ACEOF
5161all:
5162        @echo 'ac_maketemp="$(MAKE)"'
5163_ACEOF
5164# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5165eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5166if test -n "$ac_maketemp"; then
5167  eval ac_cv_prog_make_${ac_make}_set=yes
5168else
5169  eval ac_cv_prog_make_${ac_make}_set=no
5170fi
5171rm -f conftest.make
5172fi
5173if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5174  echo "$as_me:$LINENO: result: yes" >&5
5175echo "${ECHO_T}yes" >&6
5176  SET_MAKE=
5177else
5178  echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
5180  SET_MAKE="MAKE=${MAKE-make}"
5181fi
5182
5183rm -rf .tst 2>/dev/null
5184mkdir .tst 2>/dev/null
5185if test -d .tst; then
5186  am__leading_dot=.
5187else
5188  am__leading_dot=_
5189fi
5190rmdir .tst 2>/dev/null
5191
5192DEPDIR="${am__leading_dot}deps"
5193
5194          ac_config_commands="$ac_config_commands depfiles"
5195
5196
5197am_make=${MAKE-make}
5198cat > confinc << 'END'
5199am__doit:
5200        @echo done
5201.PHONY: am__doit
5202END
5203# If we don't find an include directive, just comment out the code.
5204echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5205echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5206am__include="#"
5207am__quote=
5208_am_result=none
5209# First try GNU make style include.
5210echo "include confinc" > confmf
5211# We grep out `Entering directory' and `Leaving directory'
5212# messages which can occur if `w' ends up in MAKEFLAGS.
5213# In particular we don't look at `^make:' because GNU make might
5214# be invoked under some other name (usually "gmake"), in which
5215# case it prints its new name instead of `make'.
5216if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5217   am__include=include
5218   am__quote=
5219   _am_result=GNU
5220fi
5221# Now try BSD make style include.
5222if test "$am__include" = "#"; then
5223   echo '.include "confinc"' > confmf
5224   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5225      am__include=.include
5226      am__quote="\""
5227      _am_result=BSD
5228   fi
5229fi
5230
5231
5232echo "$as_me:$LINENO: result: $_am_result" >&5
5233echo "${ECHO_T}$_am_result" >&6
5234rm -f confinc confmf
5235
5236# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5237if test "${enable_dependency_tracking+set}" = set; then
5238  enableval="$enable_dependency_tracking"
5239
5240fi;
5241if test "x$enable_dependency_tracking" != xno; then
5242  am_depcomp="$ac_aux_dir/depcomp"
5243  AMDEPBACKSLASH='\'
5244fi
5245
5246
5247if test "x$enable_dependency_tracking" != xno; then
5248  AMDEP_TRUE=
5249  AMDEP_FALSE='#'
5250else
5251  AMDEP_TRUE='#'
5252  AMDEP_FALSE=
5253fi
5254
5255
5256
5257
5258
5259
5260# AC_MSG_NOTICE([Beginning automake initialisation.])
5261# Stuff for automake
5262# test to see if srcdir already configured
5263if test "`cd $srcdir && pwd`" != "`pwd`" &&
5264   test -f $srcdir/config.status; then
5265  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5266echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5267   { (exit 1); exit 1; }; }
5268fi
5269
5270# test whether we have cygpath
5271if test -z "$CYGPATH_W"; then
5272  if (cygpath --version) >/dev/null 2>/dev/null; then
5273    CYGPATH_W='cygpath -w'
5274  else
5275    CYGPATH_W=echo
5276  fi
5277fi
5278
5279
5280# Define the identity of the package.
5281 PACKAGE='clp'
5282 VERSION='1.14'
5283
5284
5285cat >>confdefs.h <<_ACEOF
5286#define PACKAGE "$PACKAGE"
5287_ACEOF
5288
5289
5290cat >>confdefs.h <<_ACEOF
5291#define VERSION "$VERSION"
5292_ACEOF
5293
5294# Some tools Automake needs.
5295
5296ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5297
5298
5299AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5300
5301
5302AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5303
5304
5305AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5306
5307
5308MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5309
5310install_sh=${install_sh-"$am_aux_dir/install-sh"}
5311
5312# Installed binaries are usually stripped using `strip' when the user
5313# run `make install-strip'.  However `strip' might not be the right
5314# tool to use in cross-compilation environments, therefore Automake
5315# will honor the `STRIP' environment variable to overrule this program.
5316if test "$cross_compiling" != no; then
5317  if test -n "$ac_tool_prefix"; then
5318  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5319set dummy ${ac_tool_prefix}strip; ac_word=$2
5320echo "$as_me:$LINENO: checking for $ac_word" >&5
5321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5322if test "${ac_cv_prog_STRIP+set}" = set; then
5323  echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325  if test -n "$STRIP"; then
5326  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331  IFS=$as_save_IFS
5332  test -z "$as_dir" && as_dir=.
5333  for ac_exec_ext in '' $ac_executable_extensions; do
5334  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337    break 2
5338  fi
5339done
5340done
5341
5342fi
5343fi
5344STRIP=$ac_cv_prog_STRIP
5345if test -n "$STRIP"; then
5346  echo "$as_me:$LINENO: result: $STRIP" >&5
5347echo "${ECHO_T}$STRIP" >&6
5348else
5349  echo "$as_me:$LINENO: result: no" >&5
5350echo "${ECHO_T}no" >&6
5351fi
5352
5353fi
5354if test -z "$ac_cv_prog_STRIP"; then
5355  ac_ct_STRIP=$STRIP
5356  # Extract the first word of "strip", so it can be a program name with args.
5357set dummy strip; ac_word=$2
5358echo "$as_me:$LINENO: checking for $ac_word" >&5
5359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5360if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5361  echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
5363  if test -n "$ac_ct_STRIP"; then
5364  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5365else
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369  IFS=$as_save_IFS
5370  test -z "$as_dir" && as_dir=.
5371  for ac_exec_ext in '' $ac_executable_extensions; do
5372  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373    ac_cv_prog_ac_ct_STRIP="strip"
5374    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375    break 2
5376  fi
5377done
5378done
5379
5380  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5381fi
5382fi
5383ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5384if test -n "$ac_ct_STRIP"; then
5385  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5386echo "${ECHO_T}$ac_ct_STRIP" >&6
5387else
5388  echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390fi
5391
5392  STRIP=$ac_ct_STRIP
5393else
5394  STRIP="$ac_cv_prog_STRIP"
5395fi
5396
5397fi
5398INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5399
5400# We need awk for the "check" target.  The system "awk" is bad on
5401# some platforms.
5402# Always define AMTAR for backward compatibility.
5403
5404AMTAR=${AMTAR-"${am_missing_run}tar"}
5405
5406am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5407
5408
5409
5410
5411depcc="$CC"   am_compiler_list=
5412
5413echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5414echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5415if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5416  echo $ECHO_N "(cached) $ECHO_C" >&6
5417else
5418  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5419  # We make a subdir and do the tests there.  Otherwise we can end up
5420  # making bogus files that we don't know about and never remove.  For
5421  # instance it was reported that on HP-UX the gcc test will end up
5422  # making a dummy file named `D' -- because `-MD' means `put the output
5423  # in D'.
5424  mkdir conftest.dir
5425  # Copy depcomp to subdir because otherwise we won't find it if we're
5426  # using a relative directory.
5427  cp "$am_depcomp" conftest.dir
5428  cd conftest.dir
5429  # We will build objects and dependencies in a subdirectory because
5430  # it helps to detect inapplicable dependency modes.  For instance
5431  # both Tru64's cc and ICC support -MD to output dependencies as a
5432  # side effect of compilation, but ICC will put the dependencies in
5433  # the current directory while Tru64 will put them in the object
5434  # directory.
5435  mkdir sub
5436
5437  am_cv_CC_dependencies_compiler_type=none
5438  if test "$am_compiler_list" = ""; then
5439     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5440  fi
5441  for depmode in $am_compiler_list; do
5442    # Setup a source with many dependencies, because some compilers
5443    # like to wrap large dependency lists on column 80 (with \), and
5444    # we should not choose a depcomp mode which is confused by this.
5445    #
5446    # We need to recreate these files for each test, as the compiler may
5447    # overwrite some of them when testing with obscure command lines.
5448    # This happens at least with the AIX C compiler.
5449    : > sub/conftest.c
5450    for i in 1 2 3 4 5 6; do
5451      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5452      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5453      # Solaris 8's {/usr,}/bin/sh.
5454      touch sub/conftst$i.h
5455    done
5456    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5457
5458    case $depmode in
5459    nosideeffect)
5460      # after this tag, mechanisms are not by side-effect, so they'll
5461      # only be used when explicitly requested
5462      if test "x$enable_dependency_tracking" = xyes; then
5463        continue
5464      else
5465        break
5466      fi
5467      ;;
5468    none) break ;;
5469    esac
5470    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5471    # mode.  It turns out that the SunPro C++ compiler does not properly
5472    # handle `-M -o', and we need to detect this.
5473    if depmode=$depmode \
5474       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5475       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5476       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5477         >/dev/null 2>conftest.err &&
5478       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5479       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5480       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5481      # icc doesn't choke on unknown options, it will just issue warnings
5482      # or remarks (even with -Werror).  So we grep stderr for any message
5483      # that says an option was ignored or not supported.
5484      # When given -MP, icc 7.0 and 7.1 complain thusly:
5485      #   icc: Command line warning: ignoring option '-M'; no argument required
5486      # The diagnosis changed in icc 8.0:
5487      #   icc: Command line remark: option '-MP' not supported
5488      if (grep 'ignoring option' conftest.err ||
5489          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5490        am_cv_CC_dependencies_compiler_type=$depmode
5491        break
5492      fi
5493    fi
5494  done
5495
5496  cd ..
5497  rm -rf conftest.dir
5498else
5499  am_cv_CC_dependencies_compiler_type=none
5500fi
5501
5502fi
5503echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5504echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5505CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5506
5507
5508
5509if
5510  test "x$enable_dependency_tracking" != xno \
5511  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5512  am__fastdepCC_TRUE=
5513  am__fastdepCC_FALSE='#'
5514else
5515  am__fastdepCC_TRUE='#'
5516  am__fastdepCC_FALSE=
5517fi
5518
5519
5520depcc="$CXX"  am_compiler_list=
5521
5522echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5523echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5524if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5525  echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5528  # We make a subdir and do the tests there.  Otherwise we can end up
5529  # making bogus files that we don't know about and never remove.  For
5530  # instance it was reported that on HP-UX the gcc test will end up
5531  # making a dummy file named `D' -- because `-MD' means `put the output
5532  # in D'.
5533  mkdir conftest.dir
5534  # Copy depcomp to subdir because otherwise we won't find it if we're
5535  # using a relative directory.
5536  cp "$am_depcomp" conftest.dir
5537  cd conftest.dir
5538  # We will build objects and dependencies in a subdirectory because
5539  # it helps to detect inapplicable dependency modes.  For instance
5540  # both Tru64's cc and ICC support -MD to output dependencies as a
5541  # side effect of compilation, but ICC will put the dependencies in
5542  # the current directory while Tru64 will put them in the object
5543  # directory.
5544  mkdir sub
5545
5546  am_cv_CXX_dependencies_compiler_type=none
5547  if test "$am_compiler_list" = ""; then
5548     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5549  fi
5550  for depmode in $am_compiler_list; do
5551    # Setup a source with many dependencies, because some compilers
5552    # like to wrap large dependency lists on column 80 (with \), and
5553    # we should not choose a depcomp mode which is confused by this.
5554    #
5555    # We need to recreate these files for each test, as the compiler may
5556    # overwrite some of them when testing with obscure command lines.
5557    # This happens at least with the AIX C compiler.
5558    : > sub/conftest.c
5559    for i in 1 2 3 4 5 6; do
5560      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5561      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5562      # Solaris 8's {/usr,}/bin/sh.
5563      touch sub/conftst$i.h
5564    done
5565    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5566
5567    case $depmode in
5568    nosideeffect)
5569      # after this tag, mechanisms are not by side-effect, so they'll
5570      # only be used when explicitly requested
5571      if test "x$enable_dependency_tracking" = xyes; then
5572        continue
5573      else
5574        break
5575      fi
5576      ;;
5577    none) break ;;
5578    esac
5579    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5580    # mode.  It turns out that the SunPro C++ compiler does not properly
5581    # handle `-M -o', and we need to detect this.
5582    if depmode=$depmode \
5583       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5584       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5585       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5586         >/dev/null 2>conftest.err &&
5587       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5588       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5589       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5590      # icc doesn't choke on unknown options, it will just issue warnings
5591      # or remarks (even with -Werror).  So we grep stderr for any message
5592      # that says an option was ignored or not supported.
5593      # When given -MP, icc 7.0 and 7.1 complain thusly:
5594      #   icc: Command line warning: ignoring option '-M'; no argument required
5595      # The diagnosis changed in icc 8.0:
5596      #   icc: Command line remark: option '-MP' not supported
5597      if (grep 'ignoring option' conftest.err ||
5598          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5599        am_cv_CXX_dependencies_compiler_type=$depmode
5600        break
5601      fi
5602    fi
5603  done
5604
5605  cd ..
5606  rm -rf conftest.dir
5607else
5608  am_cv_CXX_dependencies_compiler_type=none
5609fi
5610
5611fi
5612echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5613echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5614CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5615
5616
5617
5618if
5619  test "x$enable_dependency_tracking" != xno \
5620  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5621  am__fastdepCXX_TRUE=
5622  am__fastdepCXX_FALSE='#'
5623else
5624  am__fastdepCXX_TRUE='#'
5625  am__fastdepCXX_FALSE=
5626fi
5627
5628
5629
5630echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5631echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5632    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5633if test "${enable_maintainer_mode+set}" = set; then
5634  enableval="$enable_maintainer_mode"
5635  USE_MAINTAINER_MODE=$enableval
5636else
5637  USE_MAINTAINER_MODE=no
5638fi;
5639  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5640echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5641
5642
5643if test $USE_MAINTAINER_MODE = yes; then
5644  MAINTAINER_MODE_TRUE=
5645  MAINTAINER_MODE_FALSE='#'
5646else
5647  MAINTAINER_MODE_TRUE='#'
5648  MAINTAINER_MODE_FALSE=
5649fi
5650
5651  MAINT=$MAINTAINER_MODE_TRUE
5652
5653
5654
5655coin_have_externals=no
5656if test "$enable_maintainer_mode" = yes; then
5657
5658  # If maintainer mode is chosen, we make sure that the correct versions
5659  # of the tools are used, and that we know where libtool.m4 is (to
5660  # recreate acinclude.m4)
5661
5662
5663  LIBTOOLM4=
5664  # Normally, $HOME
5665  AUTOTOOLS_DFLT=$HOME
5666
5667  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5668echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5669if test "${ac_cv_use_correct_autotools+set}" = set; then
5670  echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672  ac_cv_use_correct_autotools=check
5673fi
5674echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5675echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5676
5677  if test $ac_cv_use_correct_autotools = check; then
5678    ac_cv_use_correct_autotools=yes
5679    # Check if we have autoconf
5680    # Extract the first word of "autoconf", so it can be a program name with args.
5681set dummy autoconf; ac_word=$2
5682echo "$as_me:$LINENO: checking for $ac_word" >&5
5683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5684if test "${ac_cv_prog_have_autoconf+set}" = set; then
5685  echo $ECHO_N "(cached) $ECHO_C" >&6
5686else
5687  if test -n "$have_autoconf"; then
5688  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5689else
5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691for as_dir in $PATH
5692do
5693  IFS=$as_save_IFS
5694  test -z "$as_dir" && as_dir=.
5695  for ac_exec_ext in '' $ac_executable_extensions; do
5696  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697    ac_cv_prog_have_autoconf="yes"
5698    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699    break 2
5700  fi
5701done
5702done
5703
5704  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5705fi
5706fi
5707have_autoconf=$ac_cv_prog_have_autoconf
5708if test -n "$have_autoconf"; then
5709  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5710echo "${ECHO_T}$have_autoconf" >&6
5711else
5712  echo "$as_me:$LINENO: result: no" >&5
5713echo "${ECHO_T}no" >&6
5714fi
5715
5716    if test $have_autoconf = no; then
5717      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5718echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5719   { (exit 1); exit 1; }; }
5720    fi
5721
5722    # Check whether autoconf is the correct version
5723    correct_version='2.59'
5724    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5725    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5726echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5727    autoconf --version > confauto.out 2>&1
5728    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5729      echo "$as_me:$LINENO: result: yes" >&5
5730echo "${ECHO_T}yes" >&6
5731    else
5732      rm -f confauto.out
5733      echo "$as_me:$LINENO: result: no" >&5
5734echo "${ECHO_T}no" >&6
5735      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5736echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5737   { (exit 1); exit 1; }; }
5738    fi
5739    rm -f confauto.out
5740
5741    # Check if the executable autoconf is picked up from the correct location
5742    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5743echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5744    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5745    autoconf_dir=`cd $autoconf_dir; pwd`
5746    if test x$AUTOTOOLS_DIR = x; then
5747      want_dir=$AUTOTOOLS_DFLT/bin
5748    else
5749      want_dir=$AUTOTOOLS_DIR/bin
5750    fi
5751    if test $autoconf_dir = `cd $want_dir; pwd`; then
5752      echo "$as_me:$LINENO: result: yes" >&5
5753echo "${ECHO_T}yes" >&6
5754    else
5755      rm -f confauto.out
5756      echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5759echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5760   { (exit 1); exit 1; }; }
5761    fi
5762
5763    # Check if we have automake
5764    # Extract the first word of "automake", so it can be a program name with args.
5765set dummy automake; ac_word=$2
5766echo "$as_me:$LINENO: checking for $ac_word" >&5
5767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768if test "${ac_cv_prog_have_automake+set}" = set; then
5769  echo $ECHO_N "(cached) $ECHO_C" >&6
5770else
5771  if test -n "$have_automake"; then
5772  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5773else
5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in $PATH
5776do
5777  IFS=$as_save_IFS
5778  test -z "$as_dir" && as_dir=.
5779  for ac_exec_ext in '' $ac_executable_extensions; do
5780  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781    ac_cv_prog_have_automake="yes"
5782    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783    break 2
5784  fi
5785done
5786done
5787
5788  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5789fi
5790fi
5791have_automake=$ac_cv_prog_have_automake
5792if test -n "$have_automake"; then
5793  echo "$as_me:$LINENO: result: $have_automake" >&5
5794echo "${ECHO_T}$have_automake" >&6
5795else
5796  echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
5798fi
5799
5800    if test $have_automake = no; then
5801      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5802echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5803   { (exit 1); exit 1; }; }
5804    fi
5805
5806    # Check whether automake is the correct version
5807    correct_version='1.9.6'
5808    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5809    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5810echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5811    automake --version > confauto.out 2>&1
5812    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5813      echo "$as_me:$LINENO: result: yes" >&5
5814echo "${ECHO_T}yes" >&6
5815    else
5816      rm -f confauto.out
5817      echo "$as_me:$LINENO: result: no" >&5
5818echo "${ECHO_T}no" >&6
5819      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5820echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5821   { (exit 1); exit 1; }; }
5822    fi
5823    rm -f confauto.out
5824
5825    # Check if the executable automake is picked up from the correct location
5826    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5827echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5828    automake_dir=`which automake | sed -e 's=/automake=='`
5829    automake_dir=`cd $automake_dir; pwd`
5830    if test x$AUTOTOOLS_DIR = x; then
5831      want_dir=$AUTOTOOLS_DFLT/bin
5832    else
5833      want_dir=$AUTOTOOLS_DIR/bin
5834    fi
5835    if test $automake_dir = `cd $want_dir; pwd`; then
5836      echo "$as_me:$LINENO: result: yes" >&5
5837echo "${ECHO_T}yes" >&6
5838    else
5839      rm -f confauto.out
5840      echo "$as_me:$LINENO: result: no" >&5
5841echo "${ECHO_T}no" >&6
5842      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5843echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5844   { (exit 1); exit 1; }; }
5845    fi
5846
5847    # Check if this is the correct version of libtool (with escaped dots)
5848    if test x$AUTOTOOLS_DIR = x; then
5849      want_dir=$AUTOTOOLS_DFLT/share
5850    else
5851      want_dir=$AUTOTOOLS_DIR/share
5852    fi
5853    correct_version='1.5.22'
5854    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5855    if test -r $want_dir/libtool/ltmain.sh; then
5856  have_ltmain=yes
5857  :
5858else
5859  have_ltmain=no
5860  :
5861fi
5862
5863    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5864echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5865    if test $have_ltmain = yes; then
5866    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5867        echo "$as_me:$LINENO: result: yes" >&5
5868echo "${ECHO_T}yes" >&6
5869      else
5870        echo "$as_me:$LINENO: result: no" >&5
5871echo "${ECHO_T}no" >&6
5872        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5873echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5874   { (exit 1); exit 1; }; }
5875      fi
5876    else
5877      echo "$as_me:$LINENO: result: no" >&5
5878echo "${ECHO_T}no" >&6
5879      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5880echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5881   { (exit 1); exit 1; }; }
5882    fi
5883  fi
5884
5885  # Check if we can find the libtool file
5886  if test x$AUTOTOOLS_DIR = x; then
5887    want_dir=$AUTOTOOLS_DFLT/share
5888  else
5889    want_dir=$AUTOTOOLS_DIR/share
5890  fi
5891  if test -r $want_dir/aclocal/libtool.m4; then
5892  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5893  :
5894else
5895  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5896echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5897   { (exit 1); exit 1; }; }
5898  :
5899fi
5900
5901
5902  # Check if we have an Dependencies file
5903  if test -r $srcdir/Dependencies; then
5904    coin_have_externals=yes
5905  fi
5906  # Check if subversion is installed and understands https
5907  # Extract the first word of "svn", so it can be a program name with args.
5908set dummy svn; ac_word=$2
5909echo "$as_me:$LINENO: checking for $ac_word" >&5
5910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5911if test "${ac_cv_prog_have_svn+set}" = set; then
5912  echo $ECHO_N "(cached) $ECHO_C" >&6
5913else
5914  if test -n "$have_svn"; then
5915  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5916else
5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH
5919do
5920  IFS=$as_save_IFS
5921  test -z "$as_dir" && as_dir=.
5922  for ac_exec_ext in '' $ac_executable_extensions; do
5923  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924    ac_cv_prog_have_svn="yes"
5925    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926    break 2
5927  fi
5928done
5929done
5930
5931  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5932fi
5933fi
5934have_svn=$ac_cv_prog_have_svn
5935if test -n "$have_svn"; then
5936  echo "$as_me:$LINENO: result: $have_svn" >&5
5937echo "${ECHO_T}$have_svn" >&6
5938else
5939  echo "$as_me:$LINENO: result: no" >&5
5940echo "${ECHO_T}no" >&6
5941fi
5942
5943  if test x$have_svn = xyes; then
5944    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5945echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5946if test "${ac_cv_svn_understands_https+set}" = set; then
5947  echo $ECHO_N "(cached) $ECHO_C" >&6
5948else
5949  svn --version > confauto.out 2>&1
5950                    if $EGREP https confauto.out >/dev/null 2>&1; then
5951                      ac_cv_svn_understands_https=yes
5952                    else
5953                      ac_cv_svn_understands_https=no
5954                      have_svn=no
5955                      ac_cv_prog_have_svn=no
5956                    fi
5957                    rm -f confauto.out
5958fi
5959echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5960echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5961  fi
5962
5963  # Find the location of the BuildTools directory
5964  BUILDTOOLSDIR=
5965  if test -r $srcdir/BuildTools/coin.m4; then
5966    BUILDTOOLSDIR=$srcdir/BuildTools
5967  else
5968    if test -r $srcdir/../BuildTools/coin.m4; then
5969      BUILDTOOLSDIR=$srcdir/../BuildTools
5970    else
5971      if test -r $srcdir/../../BuildTools/coin.m4; then
5972        BUILDTOOLSDIR=$srcdir/../../BuildTools
5973      else
5974        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5975echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5976   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5977      fi
5978    fi
5979  fi
5980
5981
5982  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5983  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5984    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5985  fi
5986
5987  # The following variable is set to the name of the directory where
5988  # the autotool scripts are located
5989
5990  AUX_DIR=$ac_aux_dir
5991fi
5992
5993# helpful variable for the base directory of this package
5994abs_source_dir=`cd $srcdir; pwd`
5995
5996
5997# Stuff for example Makefiles
5998if test x$prefix = xNONE; then
5999  full_prefix=$ac_default_prefix
6000else
6001  full_prefix=$prefix
6002fi
6003full_prefix=`cd $full_prefix ; pwd`
6004
6005abs_lib_dir=$full_prefix/lib
6006
6007abs_include_dir=$full_prefix/include
6008
6009abs_bin_dir=$full_prefix/bin
6010
6011
6012
6013if test $coin_have_externals = yes && test x$have_svn = xyes; then
6014  HAVE_EXTERNALS_TRUE=
6015  HAVE_EXTERNALS_FALSE='#'
6016else
6017  HAVE_EXTERNALS_TRUE='#'
6018  HAVE_EXTERNALS_FALSE=
6019fi
6020
6021
6022# AC_MSG_NOTICE([End automake initialisation.])
6023
6024
6025
6026LIBTOOL=
6027if test -r ../libtool; then
6028  coin_config_dir=..
6029  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6030fi
6031if test "x$LIBTOOL" = x; then
6032  if test -r ../../libtool; then
6033    coin_config_dir=../..
6034    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6035  fi
6036fi
6037
6038if test "x$LIBTOOL" = x; then
6039# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6040  # Stuff for libtool
6041  # Check whether --enable-shared or --disable-shared was given.
6042if test "${enable_shared+set}" = set; then
6043  enableval="$enable_shared"
6044  p=${PACKAGE-default}
6045    case $enableval in
6046    yes) enable_shared=yes ;;
6047    no) enable_shared=no ;;
6048    *)
6049      enable_shared=no
6050      # Look at the argument we got.  We use all the common list separators.
6051      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6052      for pkg in $enableval; do
6053        IFS="$lt_save_ifs"
6054        if test "X$pkg" = "X$p"; then
6055          enable_shared=yes
6056        fi
6057      done
6058      IFS="$lt_save_ifs"
6059      ;;
6060    esac
6061else
6062  enable_shared=yes
6063fi;
6064
6065# Check whether --enable-fast-install or --disable-fast-install was given.
6066if test "${enable_fast_install+set}" = set; then
6067  enableval="$enable_fast_install"
6068  p=${PACKAGE-default}
6069    case $enableval in
6070    yes) enable_fast_install=yes ;;
6071    no) enable_fast_install=no ;;
6072    *)
6073      enable_fast_install=no
6074      # Look at the argument we got.  We use all the common list separators.
6075      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6076      for pkg in $enableval; do
6077        IFS="$lt_save_ifs"
6078        if test "X$pkg" = "X$p"; then
6079          enable_fast_install=yes
6080        fi
6081      done
6082      IFS="$lt_save_ifs"
6083      ;;
6084    esac
6085else
6086  enable_fast_install=yes
6087fi;
6088
6089echo "$as_me:$LINENO: checking host system type" >&5
6090echo $ECHO_N "checking host system type... $ECHO_C" >&6
6091if test "${ac_cv_host+set}" = set; then
6092  echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094  ac_cv_host_alias=$host_alias
6095test -z "$ac_cv_host_alias" &&
6096  ac_cv_host_alias=$ac_cv_build_alias
6097ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6098  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6099echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6100   { (exit 1); exit 1; }; }
6101
6102fi
6103echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6104echo "${ECHO_T}$ac_cv_host" >&6
6105host=$ac_cv_host
6106host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6107host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6108host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6109
6110
6111echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6112echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6113if test "${lt_cv_path_SED+set}" = set; then
6114  echo $ECHO_N "(cached) $ECHO_C" >&6
6115else
6116  # Loop through the user's path and test for sed and gsed.
6117# Then use that list of sed's as ones to test for truncation.
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121  IFS=$as_save_IFS
6122  test -z "$as_dir" && as_dir=.
6123  for lt_ac_prog in sed gsed; do
6124    for ac_exec_ext in '' $ac_executable_extensions; do
6125      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6126        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6127      fi
6128    done
6129  done
6130done
6131lt_ac_max=0
6132lt_ac_count=0
6133# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6134# along with /bin/sed that truncates output.
6135for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6136  test ! -f $lt_ac_sed && continue
6137  cat /dev/null > conftest.in
6138  lt_ac_count=0
6139  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6140  # Check for GNU sed and select it if it is found.
6141  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6142    lt_cv_path_SED=$lt_ac_sed
6143    break
6144  fi
6145  while true; do
6146    cat conftest.in conftest.in >conftest.tmp
6147    mv conftest.tmp conftest.in
6148    cp conftest.in conftest.nl
6149    echo >>conftest.nl
6150    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6151    cmp -s conftest.out conftest.nl || break
6152    # 10000 chars as input seems more than enough
6153    test $lt_ac_count -gt 10 && break
6154    lt_ac_count=`expr $lt_ac_count + 1`
6155    if test $lt_ac_count -gt $lt_ac_max; then
6156      lt_ac_max=$lt_ac_count
6157      lt_cv_path_SED=$lt_ac_sed
6158    fi
6159  done
6160done
6161
6162fi
6163
6164SED=$lt_cv_path_SED
6165echo "$as_me:$LINENO: result: $SED" >&5
6166echo "${ECHO_T}$SED" >&6
6167
6168
6169# Check whether --with-gnu-ld or --without-gnu-ld was given.
6170if test "${with_gnu_ld+set}" = set; then
6171  withval="$with_gnu_ld"
6172  test "$withval" = no || with_gnu_ld=yes
6173else
6174  with_gnu_ld=no
6175fi;
6176ac_prog=ld
6177if test "$GCC" = yes; then
6178  # Check if gcc -print-prog-name=ld gives a path.
6179  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6180echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6181  case $host in
6182  *-*-mingw*)
6183    # gcc leaves a trailing carriage return which upsets mingw
6184    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6185  *)
6186    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6187  esac
6188  case $ac_prog in
6189    # Accept absolute paths.
6190    [\\/]* | ?:[\\/]*)
6191      re_direlt='/[^/][^/]*/\.\./'
6192      # Canonicalize the pathname of ld
6193      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6194      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6195        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6196      done
6197      test -z "$LD" && LD="$ac_prog"
6198      ;;
6199  "")
6200    # If it fails, then pretend we aren't using GCC.
6201    ac_prog=ld
6202    ;;
6203  *)
6204    # If it is relative, then search for the first ld in PATH.
6205    with_gnu_ld=unknown
6206    ;;
6207  esac
6208elif test "$with_gnu_ld" = yes; then
6209  echo "$as_me:$LINENO: checking for GNU ld" >&5
6210echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6211else
6212  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6213echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6214fi
6215if test "${lt_cv_path_LD+set}" = set; then
6216  echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218  if test -z "$LD"; then
6219  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6220  for ac_dir in $PATH; do
6221    IFS="$lt_save_ifs"
6222    test -z "$ac_dir" && ac_dir=.
6223    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6224      lt_cv_path_LD="$ac_dir/$ac_prog"
6225      # Check to see if the program is GNU ld.  I'd rather use --version,
6226      # but apparently some variants of GNU ld only accept -v.
6227      # Break only if it was the GNU/non-GNU ld that we prefer.
6228      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6229      *GNU* | *'with BFD'*)
6230        test "$with_gnu_ld" != no && break
6231        ;;
6232      *)
6233        test "$with_gnu_ld" != yes && break
6234        ;;
6235      esac
6236    fi
6237  done
6238  IFS="$lt_save_ifs"
6239else
6240  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6241fi
6242fi
6243
6244LD="$lt_cv_path_LD"
6245if test -n "$LD"; then
6246  echo "$as_me:$LINENO: result: $LD" >&5
6247echo "${ECHO_T}$LD" >&6
6248else
6249  echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251fi
6252test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6253echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6254   { (exit 1); exit 1; }; }
6255echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6256echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6257if test "${lt_cv_prog_gnu_ld+set}" = set; then
6258  echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6261case `$LD -v 2>&1 </dev/null` in
6262*GNU* | *'with BFD'*)
6263  lt_cv_prog_gnu_ld=yes
6264  ;;
6265*)
6266  lt_cv_prog_gnu_ld=no
6267  ;;
6268esac
6269fi
6270echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6271echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6272with_gnu_ld=$lt_cv_prog_gnu_ld
6273
6274
6275echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6276echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6277if test "${lt_cv_ld_reload_flag+set}" = set; then
6278  echo $ECHO_N "(cached) $ECHO_C" >&6
6279else
6280  lt_cv_ld_reload_flag='-r'
6281fi
6282echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6283echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6284reload_flag=$lt_cv_ld_reload_flag
6285case $reload_flag in
6286"" | " "*) ;;
6287*) reload_flag=" $reload_flag" ;;
6288esac
6289reload_cmds='$LD$reload_flag -o $output$reload_objs'
6290case $host_os in
6291  darwin*)
6292    if test "$GCC" = yes; then
6293      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6294    else
6295      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6296    fi
6297    ;;
6298esac
6299
6300echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6301echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6302if test "${lt_cv_path_NM+set}" = set; then
6303  echo $ECHO_N "(cached) $ECHO_C" >&6
6304else
6305  if test -n "$NM"; then
6306  # Let the user override the test.
6307  lt_cv_path_NM="$NM"
6308else
6309  lt_nm_to_check="${ac_tool_prefix}nm"
6310  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6311    lt_nm_to_check="$lt_nm_to_check nm"
6312  fi
6313  for lt_tmp_nm in $lt_nm_to_check; do
6314    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6315    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6316      IFS="$lt_save_ifs"
6317      test -z "$ac_dir" && ac_dir=.
6318      tmp_nm="$ac_dir/$lt_tmp_nm"
6319      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6320        # Check to see if the nm accepts a BSD-compat flag.
6321        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6322        #   nm: unknown option "B" ignored
6323        # Tru64's nm complains that /dev/null is an invalid object file
6324        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6325        */dev/null* | *'Invalid file or object type'*)
6326          lt_cv_path_NM="$tmp_nm -B"
6327          break
6328          ;;
6329        *)
6330          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6331          */dev/null*)
6332            lt_cv_path_NM="$tmp_nm -p"
6333            break
6334            ;;
6335          *)
6336            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6337            continue # so that we can try to find one that supports BSD flags
6338            ;;
6339          esac
6340          ;;
6341        esac
6342      fi
6343    done
6344    IFS="$lt_save_ifs"
6345  done
6346  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6347fi
6348fi
6349echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6350echo "${ECHO_T}$lt_cv_path_NM" >&6
6351NM="$lt_cv_path_NM"
6352
6353echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6354echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6355if test "${lt_cv_deplibs_check_method+set}" = set; then
6356  echo $ECHO_N "(cached) $ECHO_C" >&6
6357else
6358  lt_cv_file_magic_cmd='$MAGIC_CMD'
6359lt_cv_file_magic_test_file=
6360lt_cv_deplibs_check_method='unknown'
6361# Need to set the preceding variable on all platforms that support
6362# interlibrary dependencies.
6363# 'none' -- dependencies not supported.
6364# `unknown' -- same as none, but documents that we really don't know.
6365# 'pass_all' -- all dependencies passed with no checks.
6366# 'test_compile' -- check by making test program.
6367# 'file_magic [[regex]]' -- check by looking for files in library path
6368# which responds to the $file_magic_cmd with a given extended regex.
6369# If you have `file' or equivalent on your system and you're not sure
6370# whether `pass_all' will *always* work, you probably want this one.
6371
6372case $host_os in
6373aix4* | aix5*)
6374  lt_cv_deplibs_check_method=pass_all
6375  ;;
6376
6377beos*)
6378  lt_cv_deplibs_check_method=pass_all
6379  ;;
6380
6381bsdi[45]*)
6382  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6383  lt_cv_file_magic_cmd='/usr/bin/file -L'
6384  lt_cv_file_magic_test_file=/shlib/libc.so
6385  ;;
6386
6387cygwin*)
6388  # func_win32_libid is a shell function defined in ltmain.sh
6389  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6390  lt_cv_file_magic_cmd='func_win32_libid'
6391  ;;
6392
6393mingw* | pw32*)
6394  # Base MSYS/MinGW do not provide the 'file' command needed by
6395  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6396  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6397  lt_cv_file_magic_cmd='$OBJDUMP -f'
6398  ;;
6399
6400darwin* | rhapsody*)
6401  lt_cv_deplibs_check_method=pass_all
6402  ;;
6403
6404freebsd* | kfreebsd*-gnu | dragonfly*)
6405  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6406    case $host_cpu in
6407    i*86 )
6408      # Not sure whether the presence of OpenBSD here was a mistake.
6409      # Let's accept both of them until this is cleared up.
6410      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6411      lt_cv_file_magic_cmd=/usr/bin/file
6412      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6413      ;;
6414    esac
6415  else
6416    lt_cv_deplibs_check_method=pass_all
6417  fi
6418  ;;
6419
6420gnu*)
6421  lt_cv_deplibs_check_method=pass_all
6422  ;;
6423
6424hpux10.20* | hpux11*)
6425  lt_cv_file_magic_cmd=/usr/bin/file
6426  case $host_cpu in
6427  ia64*)
6428    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6429    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6430    ;;
6431  hppa*64*)
6432    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]'
6433    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6434    ;;
6435  *)
6436    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6437    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6438    ;;
6439  esac
6440  ;;
6441
6442interix3*)
6443  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6444  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6445  ;;
6446
6447irix5* | irix6* | nonstopux*)
6448  case $LD in
6449  *-32|*"-32 ") libmagic=32-bit;;
6450  *-n32|*"-n32 ") libmagic=N32;;
6451  *-64|*"-64 ") libmagic=64-bit;;
6452  *) libmagic=never-match;;
6453  esac
6454  lt_cv_deplibs_check_method=pass_all
6455  ;;
6456
6457# This must be Linux ELF.
6458linux*)
6459  lt_cv_deplibs_check_method=pass_all
6460  ;;
6461
6462netbsd*)
6463  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6464    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6465  else
6466    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6467  fi
6468  ;;
6469
6470newos6*)
6471  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6472  lt_cv_file_magic_cmd=/usr/bin/file
6473  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6474  ;;
6475
6476nto-qnx*)
6477  lt_cv_deplibs_check_method=unknown
6478  ;;
6479
6480openbsd*)
6481  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6482    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6483  else
6484    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6485  fi
6486  ;;
6487
6488osf3* | osf4* | osf5*)
6489  lt_cv_deplibs_check_method=pass_all
6490  ;;
6491
6492solaris*)
6493  lt_cv_deplibs_check_method=pass_all
6494  ;;
6495
6496sysv4 | sysv4.3*)
6497  case $host_vendor in
6498  motorola)
6499    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]'
6500    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6501    ;;
6502  ncr)
6503    lt_cv_deplibs_check_method=pass_all
6504    ;;
6505  sequent)
6506    lt_cv_file_magic_cmd='/bin/file'
6507    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6508    ;;
6509  sni)
6510    lt_cv_file_magic_cmd='/bin/file'
6511    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6512    lt_cv_file_magic_test_file=/lib/libc.so
6513    ;;
6514  siemens)
6515    lt_cv_deplibs_check_method=pass_all
6516    ;;
6517  pc)
6518    lt_cv_deplibs_check_method=pass_all
6519    ;;
6520  esac
6521  ;;
6522
6523sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6524  lt_cv_deplibs_check_method=pass_all
6525  ;;
6526esac
6527
6528fi
6529echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6530echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6531file_magic_cmd=$lt_cv_file_magic_cmd
6532deplibs_check_method=$lt_cv_deplibs_check_method
6533test -z "$deplibs_check_method" && deplibs_check_method=unknown
6534
6535
6536
6537
6538# If no C compiler was specified, use CC.
6539LTCC=${LTCC-"$CC"}
6540
6541# If no C compiler flags were specified, use CFLAGS.
6542LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6543
6544# Allow CC to be a program name with arguments.
6545compiler=$CC
6546
6547# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6548if test "${enable_libtool_lock+set}" = set; then
6549  enableval="$enable_libtool_lock"
6550
6551fi;
6552test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6553
6554# Some flags need to be propagated to the compiler or linker for good
6555# libtool support.
6556case $host in
6557ia64-*-hpux*)
6558  # Find out which ABI we are using.
6559  echo 'int i;' > conftest.$ac_ext
6560  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6561  (eval $ac_compile) 2>&5
6562  ac_status=$?
6563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564  (exit $ac_status); }; then
6565    case `/usr/bin/file conftest.$ac_objext` in
6566    *ELF-32*)
6567      HPUX_IA64_MODE="32"
6568      ;;
6569    *ELF-64*)
6570      HPUX_IA64_MODE="64"
6571      ;;
6572    esac
6573  fi
6574  rm -rf conftest*
6575  ;;
6576*-*-irix6*)
6577  # Find out which ABI we are using.
6578  echo '#line 6578 "configure"' > conftest.$ac_ext
6579  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580  (eval $ac_compile) 2>&5
6581  ac_status=$?
6582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583  (exit $ac_status); }; then
6584   if test "$lt_cv_prog_gnu_ld" = yes; then
6585    case `/usr/bin/file conftest.$ac_objext` in
6586    *32-bit*)
6587      LD="${LD-ld} -melf32bsmip"
6588      ;;
6589    *N32*)
6590      LD="${LD-ld} -melf32bmipn32"
6591      ;;
6592    *64-bit*)
6593      LD="${LD-ld} -melf64bmip"
6594      ;;
6595    esac
6596   else
6597    case `/usr/bin/file conftest.$ac_objext` in
6598    *32-bit*)
6599      LD="${LD-ld} -32"
6600      ;;
6601    *N32*)
6602      LD="${LD-ld} -n32"
6603      ;;
6604    *64-bit*)
6605      LD="${LD-ld} -64"
6606      ;;
6607    esac
6608   fi
6609  fi
6610  rm -rf conftest*
6611  ;;
6612
6613x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6614  # Find out which ABI we are using.
6615  echo 'int i;' > conftest.$ac_ext
6616  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6617  (eval $ac_compile) 2>&5
6618  ac_status=$?
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); }; then
6621    case `/usr/bin/file conftest.o` in
6622    *32-bit*)
6623      case $host in
6624        x86_64-*linux*)
6625          LD="${LD-ld} -m elf_i386"
6626          ;;
6627        ppc64-*linux*|powerpc64-*linux*)
6628          LD="${LD-ld} -m elf32ppclinux"
6629          ;;
6630        s390x-*linux*)
6631          LD="${LD-ld} -m elf_s390"
6632          ;;
6633        sparc64-*linux*)
6634          LD="${LD-ld} -m elf32_sparc"
6635          ;;
6636      esac
6637      ;;
6638    *64-bit*)
6639      case $host in
6640        x86_64-*linux*)
6641          LD="${LD-ld} -m elf_x86_64"
6642          ;;
6643        ppc*-*linux*|powerpc*-*linux*)
6644          LD="${LD-ld} -m elf64ppc"
6645          ;;
6646        s390*-*linux*)
6647          LD="${LD-ld} -m elf64_s390"
6648          ;;
6649        sparc*-*linux*)
6650          LD="${LD-ld} -m elf64_sparc"
6651          ;;
6652      esac
6653      ;;
6654    esac
6655  fi
6656  rm -rf conftest*
6657  ;;
6658
6659*-*-sco3.2v5*)
6660  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6661  SAVE_CFLAGS="$CFLAGS"
6662  CFLAGS="$CFLAGS -belf"
6663  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6664echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6665if test "${lt_cv_cc_needs_belf+set}" = set; then
6666  echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668  ac_ext=c
6669ac_cpp='$CPP $CPPFLAGS'
6670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6672ac_compiler_gnu=$ac_cv_c_compiler_gnu
6673
6674     cat >conftest.$ac_ext <<_ACEOF
6675/* confdefs.h.  */
6676_ACEOF
6677cat confdefs.h >>conftest.$ac_ext
6678cat >>conftest.$ac_ext <<_ACEOF
6679/* end confdefs.h.  */
6680
6681int
6682main ()
6683{
6684
6685  ;
6686  return 0;
6687}
6688_ACEOF
6689rm -f conftest.$ac_objext conftest$ac_exeext
6690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691  (eval $ac_link) 2>conftest.er1
6692  ac_status=$?
6693  grep -v '^ *+' conftest.er1 >conftest.err
6694  rm -f conftest.er1
6695  cat conftest.err >&5
6696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697  (exit $ac_status); } &&
6698         { ac_try='test -z "$ac_c_werror_flag"
6699                         || test ! -s conftest.err'
6700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701  (eval $ac_try) 2>&5
6702  ac_status=$?
6703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704  (exit $ac_status); }; } &&
6705         { ac_try='test -s conftest$ac_exeext'
6706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707  (eval $ac_try) 2>&5
6708  ac_status=$?
6709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710  (exit $ac_status); }; }; then
6711  lt_cv_cc_needs_belf=yes
6712else
6713  echo "$as_me: failed program was:" >&5
6714sed 's/^/| /' conftest.$ac_ext >&5
6715
6716lt_cv_cc_needs_belf=no
6717fi
6718rm -f conftest.err conftest.$ac_objext \
6719      conftest$ac_exeext conftest.$ac_ext
6720     ac_ext=c
6721ac_cpp='$CPP $CPPFLAGS'
6722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6724ac_compiler_gnu=$ac_cv_c_compiler_gnu
6725
6726fi
6727echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6728echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6729  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6730    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6731    CFLAGS="$SAVE_CFLAGS"
6732  fi
6733  ;;
6734sparc*-*solaris*)
6735  # Find out which ABI we are using.
6736  echo 'int i;' > conftest.$ac_ext
6737  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738  (eval $ac_compile) 2>&5
6739  ac_status=$?
6740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741  (exit $ac_status); }; then
6742    case `/usr/bin/file conftest.o` in
6743    *64-bit*)
6744      case $lt_cv_prog_gnu_ld in
6745      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6746      *)    LD="${LD-ld} -64" ;;
6747      esac
6748      ;;
6749    esac
6750  fi
6751  rm -rf conftest*
6752  ;;
6753
6754
6755esac
6756
6757need_locks="$enable_libtool_lock"
6758
6759
6760ac_ext=c
6761ac_cpp='$CPP $CPPFLAGS'
6762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6766echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6767# On Suns, sometimes $CPP names a directory.
6768if test -n "$CPP" && test -d "$CPP"; then
6769  CPP=
6770fi
6771if test -z "$CPP"; then
6772  if test "${ac_cv_prog_CPP+set}" = set; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775      # Double quotes because CPP needs to be expanded
6776    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6777    do
6778      ac_preproc_ok=false
6779for ac_c_preproc_warn_flag in '' yes
6780do
6781  # Use a header file that comes with gcc, so configuring glibc
6782  # with a fresh cross-compiler works.
6783  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6784  # <limits.h> exists even on freestanding compilers.
6785  # On the NeXT, cc -E runs the code through the compiler's parser,
6786  # not just through cpp. "Syntax error" is here to catch this case.
6787  cat >conftest.$ac_ext <<_ACEOF
6788/* confdefs.h.  */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h.  */
6793#ifdef __STDC__
6794# include <limits.h>
6795#else
6796# include <assert.h>
6797#endif
6798                     Syntax error
6799_ACEOF
6800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6801  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6802  ac_status=$?
6803  grep -v '^ *+' conftest.er1 >conftest.err
6804  rm -f conftest.er1
6805  cat conftest.err >&5
6806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807  (exit $ac_status); } >/dev/null; then
6808  if test -s conftest.err; then
6809    ac_cpp_err=$ac_c_preproc_warn_flag
6810    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6811  else
6812    ac_cpp_err=
6813  fi
6814else
6815  ac_cpp_err=yes
6816fi
6817if test -z "$ac_cpp_err"; then
6818  :
6819else
6820  echo "$as_me: failed program was:" >&5
6821sed 's/^/| /' conftest.$ac_ext >&5
6822
6823  # Broken: fails on valid input.
6824continue
6825fi
6826rm -f conftest.err conftest.$ac_ext
6827
6828  # OK, works on sane cases.  Now check whether non-existent headers
6829  # can be detected and how.
6830  cat >conftest.$ac_ext <<_ACEOF
6831/* confdefs.h.  */
6832_ACEOF
6833cat confdefs.h >>conftest.$ac_ext
6834cat >>conftest.$ac_ext <<_ACEOF
6835/* end confdefs.h.  */
6836#include <ac_nonexistent.h>
6837_ACEOF
6838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6839  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6840  ac_status=$?
6841  grep -v '^ *+' conftest.er1 >conftest.err
6842  rm -f conftest.er1
6843  cat conftest.err >&5
6844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845  (exit $ac_status); } >/dev/null; then
6846  if test -s conftest.err; then
6847    ac_cpp_err=$ac_c_preproc_warn_flag
6848    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6849  else
6850    ac_cpp_err=
6851  fi
6852else
6853  ac_cpp_err=yes
6854fi
6855if test -z "$ac_cpp_err"; then
6856  # Broken: success on invalid input.
6857continue
6858else
6859  echo "$as_me: failed program was:" >&5
6860sed 's/^/| /' conftest.$ac_ext >&5
6861
6862  # Passes both tests.
6863ac_preproc_ok=:
6864break
6865fi
6866rm -f conftest.err conftest.$ac_ext
6867
6868done
6869# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6870rm -f conftest.err conftest.$ac_ext
6871if $ac_preproc_ok; then
6872  break
6873fi
6874
6875    done
6876    ac_cv_prog_CPP=$CPP
6877
6878fi
6879  CPP=$ac_cv_prog_CPP
6880else
6881  ac_cv_prog_CPP=$CPP
6882fi
6883echo "$as_me:$LINENO: result: $CPP" >&5
6884echo "${ECHO_T}$CPP" >&6
6885ac_preproc_ok=false
6886for ac_c_preproc_warn_flag in '' yes
6887do
6888  # Use a header file that comes with gcc, so configuring glibc
6889  # with a fresh cross-compiler works.
6890  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6891  # <limits.h> exists even on freestanding compilers.
6892  # On the NeXT, cc -E runs the code through the compiler's parser,
6893  # not just through cpp. "Syntax error" is here to catch this case.
6894  cat >conftest.$ac_ext <<_ACEOF
6895/* confdefs.h.  */
6896_ACEOF
6897cat confdefs.h >>conftest.$ac_ext
6898cat >>conftest.$ac_ext <<_ACEOF
6899/* end confdefs.h.  */
6900#ifdef __STDC__
6901# include <limits.h>
6902#else
6903# include <assert.h>
6904#endif
6905                     Syntax error
6906_ACEOF
6907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6908  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6909  ac_status=$?
6910  grep -v '^ *+' conftest.er1 >conftest.err
6911  rm -f conftest.er1
6912  cat conftest.err >&5
6913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914  (exit $ac_status); } >/dev/null; then
6915  if test -s conftest.err; then
6916    ac_cpp_err=$ac_c_preproc_warn_flag
6917    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6918  else
6919    ac_cpp_err=
6920  fi
6921else
6922  ac_cpp_err=yes
6923fi
6924if test -z "$ac_cpp_err"; then
6925  :
6926else
6927  echo "$as_me: failed program was:" >&5
6928sed 's/^/| /' conftest.$ac_ext >&5
6929
6930  # Broken: fails on valid input.
6931continue
6932fi
6933rm -f conftest.err conftest.$ac_ext
6934
6935  # OK, works on sane cases.  Now check whether non-existent headers
6936  # can be detected and how.
6937  cat >conftest.$ac_ext <<_ACEOF
6938/* confdefs.h.  */
6939_ACEOF
6940cat confdefs.h >>conftest.$ac_ext
6941cat >>conftest.$ac_ext <<_ACEOF
6942/* end confdefs.h.  */
6943#include <ac_nonexistent.h>
6944_ACEOF
6945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6946  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6947  ac_status=$?
6948  grep -v '^ *+' conftest.er1 >conftest.err
6949  rm -f conftest.er1
6950  cat conftest.err >&5
6951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952  (exit $ac_status); } >/dev/null; then
6953  if test -s conftest.err; then
6954    ac_cpp_err=$ac_c_preproc_warn_flag
6955    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6956  else
6957    ac_cpp_err=
6958  fi
6959else
6960  ac_cpp_err=yes
6961fi
6962if test -z "$ac_cpp_err"; then
6963  # Broken: success on invalid input.
6964continue
6965else
6966  echo "$as_me: failed program was:" >&5
6967sed 's/^/| /' conftest.$ac_ext >&5
6968
6969  # Passes both tests.
6970ac_preproc_ok=:
6971break
6972fi
6973rm -f conftest.err conftest.$ac_ext
6974
6975done
6976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6977rm -f conftest.err conftest.$ac_ext
6978if $ac_preproc_ok; then
6979  :
6980else
6981  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6982See \`config.log' for more details." >&5
6983echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6984See \`config.log' for more details." >&2;}
6985   { (exit 1); exit 1; }; }
6986fi
6987
6988ac_ext=c
6989ac_cpp='$CPP $CPPFLAGS'
6990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992ac_compiler_gnu=$ac_cv_c_compiler_gnu
6993
6994
6995echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6996echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6997if test "${ac_cv_header_stdc+set}" = set; then
6998  echo $ECHO_N "(cached) $ECHO_C" >&6
6999else
7000  cat >conftest.$ac_ext <<_ACEOF
7001/* confdefs.h.  */
7002_ACEOF
7003cat confdefs.h >>conftest.$ac_ext
7004cat >>conftest.$ac_ext <<_ACEOF
7005/* end confdefs.h.  */
7006#include <stdlib.h>
7007#include <stdarg.h>
7008#include <string.h>
7009#include <float.h>
7010
7011int
7012main ()
7013{
7014
7015  ;
7016  return 0;
7017}
7018_ACEOF
7019rm -f conftest.$ac_objext
7020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7021  (eval $ac_compile) 2>conftest.er1
7022  ac_status=$?
7023  grep -v '^ *+' conftest.er1 >conftest.err
7024  rm -f conftest.er1
7025  cat conftest.err >&5
7026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027  (exit $ac_status); } &&
7028         { ac_try='test -z "$ac_c_werror_flag"
7029                         || test ! -s conftest.err'
7030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031  (eval $ac_try) 2>&5
7032  ac_status=$?
7033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034  (exit $ac_status); }; } &&
7035         { ac_try='test -s conftest.$ac_objext'
7036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037  (eval $ac_try) 2>&5
7038  ac_status=$?
7039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040  (exit $ac_status); }; }; then
7041  ac_cv_header_stdc=yes
7042else
7043  echo "$as_me: failed program was:" >&5
7044sed 's/^/| /' conftest.$ac_ext >&5
7045
7046ac_cv_header_stdc=no
7047fi
7048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7049
7050if test $ac_cv_header_stdc = yes; then
7051  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7052  cat >conftest.$ac_ext <<_ACEOF
7053/* confdefs.h.  */
7054_ACEOF
7055cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h.  */
7058#include <string.h>
7059
7060_ACEOF
7061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7062  $EGREP "memchr" >/dev/null 2>&1; then
7063  :
7064else
7065  ac_cv_header_stdc=no
7066fi
7067rm -f conftest*
7068
7069fi
7070
7071if test $ac_cv_header_stdc = yes; then
7072  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7073  cat >conftest.$ac_ext <<_ACEOF
7074/* confdefs.h.  */
7075_ACEOF
7076cat confdefs.h >>conftest.$ac_ext
7077cat >>conftest.$ac_ext <<_ACEOF
7078/* end confdefs.h.  */
7079#include <stdlib.h>
7080
7081_ACEOF
7082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083  $EGREP "free" >/dev/null 2>&1; then
7084  :
7085else
7086  ac_cv_header_stdc=no
7087fi
7088rm -f conftest*
7089
7090fi
7091
7092if test $ac_cv_header_stdc = yes; then
7093  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7094  if test "$cross_compiling" = yes; then
7095  :
7096else
7097  cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h.  */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h.  */
7103#include <ctype.h>
7104#if ((' ' & 0x0FF) == 0x020)
7105# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7106# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7107#else
7108# define ISLOWER(c) \
7109                   (('a' <= (c) && (c) <= 'i') \
7110                     || ('j' <= (c) && (c) <= 'r') \
7111                     || ('s' <= (c) && (c) <= 'z'))
7112# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7113#endif
7114
7115#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7116int
7117main ()
7118{
7119  int i;
7120  for (i = 0; i < 256; i++)
7121    if (XOR (islower (i), ISLOWER (i))
7122        || toupper (i) != TOUPPER (i))
7123      exit(2);
7124  exit (0);
7125}
7126_ACEOF
7127rm -f conftest$ac_exeext
7128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7129  (eval $ac_link) 2>&5
7130  ac_status=$?
7131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134  (eval $ac_try) 2>&5
7135  ac_status=$?
7136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137  (exit $ac_status); }; }; then
7138  :
7139else
7140  echo "$as_me: program exited with status $ac_status" >&5
7141echo "$as_me: failed program was:" >&5
7142sed 's/^/| /' conftest.$ac_ext >&5
7143
7144( exit $ac_status )
7145ac_cv_header_stdc=no
7146fi
7147rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7148fi
7149fi
7150fi
7151echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7152echo "${ECHO_T}$ac_cv_header_stdc" >&6
7153if test $ac_cv_header_stdc = yes; then
7154
7155cat >>confdefs.h <<\_ACEOF
7156#define STDC_HEADERS 1
7157_ACEOF
7158
7159fi
7160
7161# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7172                  inttypes.h stdint.h unistd.h
7173do
7174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7175echo "$as_me:$LINENO: checking for $ac_header" >&5
7176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7177if eval "test \"\${$as_ac_Header+set}\" = set"; then
7178  echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180  cat >conftest.$ac_ext <<_ACEOF
7181/* confdefs.h.  */
7182_ACEOF
7183cat confdefs.h >>conftest.$ac_ext
7184cat >>conftest.$ac_ext <<_ACEOF
7185/* end confdefs.h.  */
7186$ac_includes_default
7187
7188#include <$ac_header>
7189_ACEOF
7190rm -f conftest.$ac_objext
7191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7192  (eval $ac_compile) 2>conftest.er1
7193  ac_status=$?
7194  grep -v '^ *+' conftest.er1 >conftest.err
7195  rm -f conftest.er1
7196  cat conftest.err >&5
7197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198  (exit $ac_status); } &&
7199         { ac_try='test -z "$ac_c_werror_flag"
7200                         || test ! -s conftest.err'
7201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202  (eval $ac_try) 2>&5
7203  ac_status=$?
7204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205  (exit $ac_status); }; } &&
7206         { ac_try='test -s conftest.$ac_objext'
7207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208  (eval $ac_try) 2>&5
7209  ac_status=$?
7210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211  (exit $ac_status); }; }; then
7212  eval "$as_ac_Header=yes"
7213else
7214  echo "$as_me: failed program was:" >&5
7215sed 's/^/| /' conftest.$ac_ext >&5
7216
7217eval "$as_ac_Header=no"
7218fi
7219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7220fi
7221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7223if test `eval echo '${'$as_ac_Header'}'` = yes; then
7224  cat >>confdefs.h <<_ACEOF
7225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7226_ACEOF
7227
7228fi
7229
7230done
7231
7232
7233
7234for ac_header in dlfcn.h
7235do
7236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7237if eval "test \"\${$as_ac_Header+set}\" = set"; then
7238  echo "$as_me:$LINENO: checking for $ac_header" >&5
7239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7240if eval "test \"\${$as_ac_Header+set}\" = set"; then
7241  echo $ECHO_N "(cached) $ECHO_C" >&6
7242fi
7243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7245else
7246  # Is the header compilable?
7247echo "$as_me:$LINENO: checking $ac_header usability" >&5
7248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7249cat >conftest.$ac_ext <<_ACEOF
7250/* confdefs.h.  */
7251_ACEOF
7252cat confdefs.h >>conftest.$ac_ext
7253cat >>conftest.$ac_ext <<_ACEOF
7254/* end confdefs.h.  */
7255$ac_includes_default
7256#include <$ac_header>
7257_ACEOF
7258rm -f conftest.$ac_objext
7259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7260  (eval $ac_compile) 2>conftest.er1
7261  ac_status=$?
7262  grep -v '^ *+' conftest.er1 >conftest.err
7263  rm -f conftest.er1
7264  cat conftest.err >&5
7265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266  (exit $ac_status); } &&
7267         { ac_try='test -z "$ac_c_werror_flag"
7268                         || test ! -s conftest.err'
7269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270  (eval $ac_try) 2>&5
7271  ac_status=$?
7272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273  (exit $ac_status); }; } &&
7274         { ac_try='test -s conftest.$ac_objext'
7275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276  (eval $ac_try) 2>&5
7277  ac_status=$?
7278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279  (exit $ac_status); }; }; then
7280  ac_header_compiler=yes
7281else
7282  echo "$as_me: failed program was:" >&5
7283sed 's/^/| /' conftest.$ac_ext >&5
7284
7285ac_header_compiler=no
7286fi
7287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7289echo "${ECHO_T}$ac_header_compiler" >&6
7290
7291# Is the header present?
7292echo "$as_me:$LINENO: checking $ac_header presence" >&5
7293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7294cat >conftest.$ac_ext <<_ACEOF
7295/* confdefs.h.  */
7296_ACEOF
7297cat confdefs.h >>conftest.$ac_ext
7298cat >>conftest.$ac_ext <<_ACEOF
7299/* end confdefs.h.  */
7300#include <$ac_header>
7301_ACEOF
7302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7303  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7304  ac_status=$?
7305  grep -v '^ *+' conftest.er1 >conftest.err
7306  rm -f conftest.er1
7307  cat conftest.err >&5
7308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309  (exit $ac_status); } >/dev/null; then
7310  if test -s conftest.err; then
7311    ac_cpp_err=$ac_c_preproc_warn_flag
7312    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7313  else
7314    ac_cpp_err=
7315  fi
7316else
7317  ac_cpp_err=yes
7318fi
7319if test -z "$ac_cpp_err"; then
7320  ac_header_preproc=yes
7321else
7322  echo "$as_me: failed program was:" >&5
7323sed 's/^/| /' conftest.$ac_ext >&5
7324
7325  ac_header_preproc=no
7326fi
7327rm -f conftest.err conftest.$ac_ext
7328echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7329echo "${ECHO_T}$ac_header_preproc" >&6
7330
7331# So?  What about this header?
7332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7333  yes:no: )
7334    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7336    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7337echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7338    ac_header_preproc=yes
7339    ;;
7340  no:yes:* )
7341    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7342echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7343    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7344echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7345    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7346echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7347    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7348echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7349    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7351    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7352echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7353    (
7354      cat <<\_ASBOX
7355## ----------------------------------------- ##
7356## Report this to coin-clp@lists.coin-or.org ##
7357## ----------------------------------------- ##
7358_ASBOX
7359    ) |
7360      sed "s/^/$as_me: WARNING:     /" >&2
7361    ;;
7362esac
7363echo "$as_me:$LINENO: checking for $ac_header" >&5
7364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7365if eval "test \"\${$as_ac_Header+set}\" = set"; then
7366  echo $ECHO_N "(cached) $ECHO_C" >&6
7367else
7368  eval "$as_ac_Header=\$ac_header_preproc"
7369fi
7370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7372
7373fi
7374if test `eval echo '${'$as_ac_Header'}'` = yes; then
7375  cat >>confdefs.h <<_ACEOF
7376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7377_ACEOF
7378
7379fi
7380
7381done
7382
7383
7384
7385if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7386    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7387    (test "X$CXX" != "Xg++"))) ; then
7388  ac_ext=cc
7389ac_cpp='$CXXCPP $CPPFLAGS'
7390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7393echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7394echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7395if test -z "$CXXCPP"; then
7396  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7397  echo $ECHO_N "(cached) $ECHO_C" >&6
7398else
7399      # Double quotes because CXXCPP needs to be expanded
7400    for CXXCPP in "$CXX -E" "/lib/cpp"
7401    do
7402      ac_preproc_ok=false
7403for ac_cxx_preproc_warn_flag in '' yes
7404do
7405  # Use a header file that comes with gcc, so configuring glibc
7406  # with a fresh cross-compiler works.
7407  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7408  # <limits.h> exists even on freestanding compilers.
7409  # On the NeXT, cc -E runs the code through the compiler's parser,
7410  # not just through cpp. "Syntax error" is here to catch this case.
7411  cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h.  */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h.  */
7417#ifdef __STDC__
7418# include <limits.h>
7419#else
7420# include <assert.h>
7421#endif
7422                     Syntax error
7423_ACEOF
7424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7425  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7426  ac_status=$?
7427  grep -v '^ *+' conftest.er1 >conftest.err
7428  rm -f conftest.er1
7429  cat conftest.err >&5
7430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431  (exit $ac_status); } >/dev/null; then
7432  if test -s conftest.err; then
7433    ac_cpp_err=$ac_cxx_preproc_warn_flag
7434    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7435  else
7436    ac_cpp_err=
7437  fi
7438else
7439  ac_cpp_err=yes
7440fi
7441if test -z "$ac_cpp_err"; then
7442  :
7443else
7444  echo "$as_me: failed program was:" >&5
7445sed 's/^/| /' conftest.$ac_ext >&5
7446
7447  # Broken: fails on valid input.
7448continue
7449fi
7450rm -f conftest.err conftest.$ac_ext
7451
7452  # OK, works on sane cases.  Now check whether non-existent headers
7453  # can be detected and how.
7454  cat >conftest.$ac_ext <<_ACEOF
7455/* confdefs.h.  */
7456_ACEOF
7457cat confdefs.h >>conftest.$ac_ext
7458cat >>conftest.$ac_ext <<_ACEOF
7459/* end confdefs.h.  */
7460#include <ac_nonexistent.h>
7461_ACEOF
7462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7463  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7464  ac_status=$?
7465  grep -v '^ *+' conftest.er1 >conftest.err
7466  rm -f conftest.er1
7467  cat conftest.err >&5
7468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469  (exit $ac_status); } >/dev/null; then
7470  if test -s conftest.err; then
7471    ac_cpp_err=$ac_cxx_preproc_warn_flag
7472    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7473  else
7474    ac_cpp_err=
7475  fi
7476else
7477  ac_cpp_err=yes
7478fi
7479if test -z "$ac_cpp_err"; then
7480  # Broken: success on invalid input.
7481continue
7482else
7483  echo "$as_me: failed program was:" >&5
7484sed 's/^/| /' conftest.$ac_ext >&5
7485
7486  # Passes both tests.
7487ac_preproc_ok=:
7488break
7489fi
7490rm -f conftest.err conftest.$ac_ext
7491
7492done
7493# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7494rm -f conftest.err conftest.$ac_ext
7495if $ac_preproc_ok; then
7496  break
7497fi
7498
7499    done
7500    ac_cv_prog_CXXCPP=$CXXCPP
7501
7502fi
7503  CXXCPP=$ac_cv_prog_CXXCPP
7504else
7505  ac_cv_prog_CXXCPP=$CXXCPP
7506fi
7507echo "$as_me:$LINENO: result: $CXXCPP" >&5
7508echo "${ECHO_T}$CXXCPP" >&6
7509ac_preproc_ok=false
7510for ac_cxx_preproc_warn_flag in '' yes
7511do
7512  # Use a header file that comes with gcc, so configuring glibc
7513  # with a fresh cross-compiler works.
7514  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7515  # <limits.h> exists even on freestanding compilers.
7516  # On the NeXT, cc -E runs the code through the compiler's parser,
7517  # not just through cpp. "Syntax error" is here to catch this case.
7518  cat >conftest.$ac_ext <<_ACEOF
7519/* confdefs.h.  */
7520_ACEOF
7521cat confdefs.h >>conftest.$ac_ext
7522cat >>conftest.$ac_ext <<_ACEOF
7523/* end confdefs.h.  */
7524#ifdef __STDC__
7525# include <limits.h>
7526#else
7527# include <assert.h>
7528#endif
7529                     Syntax error
7530_ACEOF
7531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7532  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7533  ac_status=$?
7534  grep -v '^ *+' conftest.er1 >conftest.err
7535  rm -f conftest.er1
7536  cat conftest.err >&5
7537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538  (exit $ac_status); } >/dev/null; then
7539  if test -s conftest.err; then
7540    ac_cpp_err=$ac_cxx_preproc_warn_flag
7541    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7542  else
7543    ac_cpp_err=
7544  fi
7545else
7546  ac_cpp_err=yes
7547fi
7548if test -z "$ac_cpp_err"; then
7549  :
7550else
7551  echo "$as_me: failed program was:" >&5
7552sed 's/^/| /' conftest.$ac_ext >&5
7553
7554  # Broken: fails on valid input.
7555continue
7556fi
7557rm -f conftest.err conftest.$ac_ext
7558
7559  # OK, works on sane cases.  Now check whether non-existent headers
7560  # can be detected and how.
7561  cat >conftest.$ac_ext <<_ACEOF
7562/* confdefs.h.  */
7563_ACEOF
7564cat confdefs.h >>conftest.$ac_ext
7565cat >>conftest.$ac_ext <<_ACEOF
7566/* end confdefs.h.  */
7567#include <ac_nonexistent.h>
7568_ACEOF
7569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7570  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7571  ac_status=$?
7572  grep -v '^ *+' conftest.er1 >conftest.err
7573  rm -f conftest.er1
7574  cat conftest.err >&5
7575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576  (exit $ac_status); } >/dev/null; then
7577  if test -s conftest.err; then
7578    ac_cpp_err=$ac_cxx_preproc_warn_flag
7579    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7580  else
7581    ac_cpp_err=
7582  fi
7583else
7584  ac_cpp_err=yes
7585fi
7586if test -z "$ac_cpp_err"; then
7587  # Broken: success on invalid input.
7588continue
7589else
7590  echo "$as_me: failed program was:" >&5
7591sed 's/^/| /' conftest.$ac_ext >&5
7592
7593  # Passes both tests.
7594ac_preproc_ok=:
7595break
7596fi
7597rm -f conftest.err conftest.$ac_ext
7598
7599done
7600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7601rm -f conftest.err conftest.$ac_ext
7602if $ac_preproc_ok; then
7603  :
7604else
7605  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7606See \`config.log' for more details." >&5
7607echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7608See \`config.log' for more details." >&2;}
7609   { (exit 1); exit 1; }; }
7610fi
7611
7612ac_ext=cc
7613ac_cpp='$CXXCPP $CPPFLAGS'
7614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7617
7618fi
7619
7620
7621# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7622
7623# find the maximum length of command line arguments
7624echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7625echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7626if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7627  echo $ECHO_N "(cached) $ECHO_C" >&6
7628else
7629    i=0
7630  teststring="ABCD"
7631
7632  case $build_os in
7633  msdosdjgpp*)
7634    # On DJGPP, this test can blow up pretty badly due to problems in libc
7635    # (any single argument exceeding 2000 bytes causes a buffer overrun
7636    # during glob expansion).  Even if it were fixed, the result of this
7637    # check would be larger than it should be.
7638    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7639    ;;
7640
7641  gnu*)
7642    # Under GNU Hurd, this test is not required because there is
7643    # no limit to the length of command line arguments.
7644    # Libtool will interpret -1 as no limit whatsoever
7645    lt_cv_sys_max_cmd_len=-1;
7646    ;;
7647
7648  cygwin* | mingw*)
7649    # On Win9x/ME, this test blows up -- it succeeds, but takes
7650    # about 5 minutes as the teststring grows exponentially.
7651    # Worse, since 9x/ME are not pre-emptively multitasking,
7652    # you end up with a "frozen" computer, even though with patience
7653    # the test eventually succeeds (with a max line length of 256k).
7654    # Instead, let's just punt: use the minimum linelength reported by
7655    # all of the supported platforms: 8192 (on NT/2K/XP).
7656    lt_cv_sys_max_cmd_len=8192;
7657    ;;
7658
7659  amigaos*)
7660    # On AmigaOS with pdksh, this test takes hours, literally.
7661    # So we just punt and use a minimum line length of 8192.
7662    lt_cv_sys_max_cmd_len=8192;
7663    ;;
7664
7665  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7666    # This has been around since 386BSD, at least.  Likely further.
7667    if test -x /sbin/sysctl; then
7668      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7669    elif test -x /usr/sbin/sysctl; then
7670      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7671    else
7672      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7673    fi
7674    # And add a safety zone
7675    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7676    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7677    ;;
7678
7679  interix*)
7680    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7681    lt_cv_sys_max_cmd_len=196608
7682    ;;
7683
7684  osf*)
7685    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7686    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7687    # nice to cause kernel panics so lets avoid the loop below.
7688    # First set a reasonable default.
7689    lt_cv_sys_max_cmd_len=16384
7690    #
7691    if test -x /sbin/sysconfig; then
7692      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7693        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7694      esac
7695    fi
7696    ;;
7697  sco3.2v5*)
7698    lt_cv_sys_max_cmd_len=102400
7699    ;;
7700  sysv5* | sco5v6* | sysv4.2uw2*)
7701    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7702    if test -n "$kargmax"; then
7703      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7704    else
7705      lt_cv_sys_max_cmd_len=32768
7706    fi
7707    ;;
7708  *)
7709    # If test is not a shell built-in, we'll probably end up computing a
7710    # maximum length that is only half of the actual maximum length, but
7711    # we can't tell.
7712    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7713    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7714               = "XX$teststring") >/dev/null 2>&1 &&
7715            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7716            lt_cv_sys_max_cmd_len=$new_result &&
7717            test $i != 17 # 1/2 MB should be enough
7718    do
7719      i=`expr $i + 1`
7720      teststring=$teststring$teststring
7721    done
7722    teststring=
7723    # Add a significant safety factor because C++ compilers can tack on massive
7724    # amounts of additional arguments before passing them to the linker.
7725    # It appears as though 1/2 is a usable value.
7726    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7727    ;;
7728  esac
7729
7730fi
7731
7732if test -n $lt_cv_sys_max_cmd_len ; then
7733  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7734echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7735else
7736  echo "$as_me:$LINENO: result: none" >&5
7737echo "${ECHO_T}none" >&6
7738fi
7739
7740
7741
7742
7743# Check for command to grab the raw symbol name followed by C symbol from nm.
7744echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7745echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7746if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7747  echo $ECHO_N "(cached) $ECHO_C" >&6
7748else
7749
7750# These are sane defaults that work on at least a few old systems.
7751# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7752
7753# Character class describing NM global symbol codes.
7754symcode='[BCDEGRST]'
7755
7756# Regexp to match symbols that can be accessed directly from C.
7757sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7758
7759# Transform an extracted symbol line into a proper C declaration
7760lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7761
7762# Transform an extracted symbol line into symbol name and symbol address
7763lt_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'"
7764
7765# Define system-specific variables.
7766case $host_os in
7767aix*)
7768  symcode='[BCDT]'
7769  ;;
7770cygwin* | mingw* | pw32*)
7771  symcode='[ABCDGISTW]'
7772  ;;
7773hpux*) # Its linker distinguishes data from code symbols
7774  if test "$host_cpu" = ia64; then
7775    symcode='[ABCDEGRST]'
7776  fi
7777  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7778  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'"
7779  ;;
7780linux*)
7781  if test "$host_cpu" = ia64; then
7782    symcode='[ABCDGIRSTW]'
7783    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7784    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'"
7785  fi
7786  ;;
7787irix* | nonstopux*)
7788  symcode='[BCDEGRST]'
7789  ;;
7790osf*)
7791  symcode='[BCDEGQRST]'
7792  ;;
7793solaris*)
7794  symcode='[BDRT]'
7795  ;;
7796sco3.2v5*)
7797  symcode='[DT]'
7798  ;;
7799sysv4.2uw2*)
7800  symcode='[DT]'
7801  ;;
7802sysv5* | sco5v6* | unixware* | OpenUNIX*)
7803  symcode='[ABDT]'
7804  ;;
7805sysv4)
7806  symcode='[DFNSTU]'
7807  ;;
7808esac
7809
7810# Handle CRLF in mingw tool chain
7811opt_cr=
7812case $build_os in
7813mingw*)
7814  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7815  ;;
7816esac
7817
7818# If we're using GNU nm, then use its standard symbol codes.
7819case `$NM -V 2>&1` in
7820*GNU* | *'with BFD'*)
7821  symcode='[ABCDGIRSTW]' ;;
7822esac
7823
7824# Try without a prefix undercore, then with it.
7825for ac_symprfx in "" "_"; do
7826
7827  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7828  symxfrm="\\1 $ac_symprfx\\2 \\2"
7829
7830  # Write the raw and C identifiers.
7831  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7832
7833  # Check to see that the pipe works correctly.
7834  pipe_works=no
7835
7836  rm -f conftest*
7837  cat > conftest.$ac_ext <<EOF
7838#ifdef __cplusplus
7839extern "C" {
7840#endif
7841char nm_test_var;
7842void nm_test_func(){}
7843#ifdef __cplusplus
7844}
7845#endif
7846int main(){nm_test_var='a';nm_test_func();return(0);}
7847EOF
7848
7849  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7850  (eval $ac_compile) 2>&5
7851  ac_status=$?
7852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853  (exit $ac_status); }; then
7854    # Now try to grab the symbols.
7855    nlist=conftest.nm
7856    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7857  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7858  ac_status=$?
7859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860  (exit $ac_status); } && test -s "$nlist"; then
7861      # Try sorting and uniquifying the output.
7862      if sort "$nlist" | uniq > "$nlist"T; then
7863        mv -f "$nlist"T "$nlist"
7864      else
7865        rm -f "$nlist"T
7866      fi
7867
7868      # Make sure that we snagged all the symbols we need.
7869      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7870        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7871          cat <<EOF > conftest.$ac_ext
7872#ifdef __cplusplus
7873extern "C" {
7874#endif
7875
7876EOF
7877          # Now generate the symbol file.
7878          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7879
7880          cat <<EOF >> conftest.$ac_ext
7881#if defined (__STDC__) && __STDC__
7882# define lt_ptr_t void *
7883#else
7884# define lt_ptr_t char *
7885# define const
7886#endif
7887
7888/* The mapping between symbol names and symbols. */
7889const struct {
7890  const char *name;
7891  lt_ptr_t address;
7892}
7893lt_preloaded_symbols[] =
7894{
7895EOF
7896          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7897          cat <<\EOF >> conftest.$ac_ext
7898  {0, (lt_ptr_t) 0}
7899};
7900
7901#ifdef __cplusplus
7902}
7903#endif
7904EOF
7905          # Now try linking the two files.
7906          mv conftest.$ac_objext conftstm.$ac_objext
7907          lt_save_LIBS="$LIBS"
7908          lt_save_CFLAGS="$CFLAGS"
7909          LIBS="conftstm.$ac_objext"
7910          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7911          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7912  (eval $ac_link) 2>&5
7913  ac_status=$?
7914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7916            pipe_works=yes
7917          fi
7918          LIBS="$lt_save_LIBS"
7919          CFLAGS="$lt_save_CFLAGS"
7920        else
7921          echo "cannot find nm_test_func in $nlist" >&5
7922        fi
7923      else
7924        echo "cannot find nm_test_var in $nlist" >&5
7925      fi
7926    else
7927      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7928    fi
7929  else
7930    echo "$progname: failed program was:" >&5
7931    cat conftest.$ac_ext >&5
7932  fi
7933  rm -f conftest* conftst*
7934
7935  # Do not use the global_symbol_pipe unless it works.
7936  if test "$pipe_works" = yes; then
7937    break
7938  else
7939    lt_cv_sys_global_symbol_pipe=
7940  fi
7941done
7942
7943fi
7944
7945if test -z "$lt_cv_sys_global_symbol_pipe"; then
7946  lt_cv_sys_global_symbol_to_cdecl=
7947fi
7948if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7949  echo "$as_me:$LINENO: result: failed" >&5
7950echo "${ECHO_T}failed" >&6
7951else
7952  echo "$as_me:$LINENO: result: ok" >&5
7953echo "${ECHO_T}ok" >&6
7954fi
7955
7956echo "$as_me:$LINENO: checking for objdir" >&5
7957echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7958if test "${lt_cv_objdir+set}" = set; then
7959  echo $ECHO_N "(cached) $ECHO_C" >&6
7960else
7961  rm -f .libs 2>/dev/null
7962mkdir .libs 2>/dev/null
7963if test -d .libs; then
7964  lt_cv_objdir=.libs
7965else
7966  # MS-DOS does not allow filenames that begin with a dot.
7967  lt_cv_objdir=_libs
7968fi
7969rmdir .libs 2>/dev/null
7970fi
7971echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7972echo "${ECHO_T}$lt_cv_objdir" >&6
7973objdir=$lt_cv_objdir
7974
7975
7976
7977
7978
7979case $host_os in
7980aix3*)
7981  # AIX sometimes has problems with the GCC collect2 program.  For some
7982  # reason, if we set the COLLECT_NAMES environment variable, the problems
7983  # vanish in a puff of smoke.
7984  if test "X${COLLECT_NAMES+set}" != Xset; then
7985    COLLECT_NAMES=
7986    export COLLECT_NAMES
7987  fi
7988  ;;
7989esac
7990
7991# Sed substitution that helps us do robust quoting.  It backslashifies
7992# metacharacters that are still active within double-quoted strings.
7993Xsed='sed -e 1s/^X//'
7994sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7995
7996# Same as above, but do not quote variable references.
7997double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7998
7999# Sed substitution to delay expansion of an escaped shell variable in a
8000# double_quote_subst'ed string.
8001delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8002
8003# Sed substitution to avoid accidental globbing in evaled expressions
8004no_glob_subst='s/\*/\\\*/g'
8005
8006# Constants:
8007rm="rm -f"
8008
8009# Global variables:
8010default_ofile=libtool
8011can_build_shared=yes
8012
8013# All known linkers require a `.a' archive for static linking (except MSVC,
8014# which needs '.lib').
8015libext=a
8016ltmain="$ac_aux_dir/ltmain.sh"
8017ofile="$default_ofile"
8018with_gnu_ld="$lt_cv_prog_gnu_ld"
8019
8020if test -n "$ac_tool_prefix"; then
8021  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8022set dummy ${ac_tool_prefix}ar; ac_word=$2
8023echo "$as_me:$LINENO: checking for $ac_word" >&5
8024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8025if test "${ac_cv_prog_AR+set}" = set; then
8026  echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028  if test -n "$AR"; then
8029  ac_cv_prog_AR="$AR" # Let the user override the test.
8030else
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034  IFS=$as_save_IFS
8035  test -z "$as_dir" && as_dir=.
8036  for ac_exec_ext in '' $ac_executable_extensions; do
8037  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038    ac_cv_prog_AR="${ac_tool_prefix}ar"
8039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8040    break 2
8041  fi
8042done
8043done
8044
8045fi
8046fi
8047AR=$ac_cv_prog_AR
8048if test -n "$AR"; then
8049  echo "$as_me:$LINENO: result: $AR" >&5
8050echo "${ECHO_T}$AR" >&6
8051else
8052  echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6
8054fi
8055
8056fi
8057if test -z "$ac_cv_prog_AR"; then
8058  ac_ct_AR=$AR
8059  # Extract the first word of "ar", so it can be a program name with args.
8060set dummy ar; ac_word=$2
8061echo "$as_me:$LINENO: checking for $ac_word" >&5
8062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8063if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8064  echo $ECHO_N "(cached) $ECHO_C" >&6
8065else
8066  if test -n "$ac_ct_AR"; then
8067  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8068else
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072  IFS=$as_save_IFS
8073  test -z "$as_dir" && as_dir=.
8074  for ac_exec_ext in '' $ac_executable_extensions; do
8075  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076    ac_cv_prog_ac_ct_AR="ar"
8077    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078    break 2
8079  fi
8080done
8081done
8082
8083  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8084fi
8085fi
8086ac_ct_AR=$ac_cv_prog_ac_ct_AR
8087if test -n "$ac_ct_AR"; then
8088  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8089echo "${ECHO_T}$ac_ct_AR" >&6
8090else
8091  echo "$as_me:$LINENO: result: no" >&5
8092echo "${ECHO_T}no" >&6
8093fi
8094
8095  AR=$ac_ct_AR
8096else
8097  AR="$ac_cv_prog_AR"
8098fi
8099
8100if test -n "$ac_tool_prefix"; then
8101  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8102set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8103echo "$as_me:$LINENO: checking for $ac_word" >&5
8104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8105if test "${ac_cv_prog_RANLIB+set}" = set; then
8106  echo $ECHO_N "(cached) $ECHO_C" >&6
8107else
8108  if test -n "$RANLIB"; then
8109  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8110else
8111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112for as_dir in $PATH
8113do
8114  IFS=$as_save_IFS
8115  test -z "$as_dir" && as_dir=.
8116  for ac_exec_ext in '' $ac_executable_extensions; do
8117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120    break 2
8121  fi
8122done
8123done
8124
8125fi
8126fi
8127RANLIB=$ac_cv_prog_RANLIB
8128if test -n "$RANLIB"; then
8129  echo "$as_me:$LINENO: result: $RANLIB" >&5
8130echo "${ECHO_T}$RANLIB" >&6
8131else
8132  echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6
8134fi
8135
8136fi
8137if test -z "$ac_cv_prog_RANLIB"; then
8138  ac_ct_RANLIB=$RANLIB
8139  # Extract the first word of "ranlib", so it can be a program name with args.
8140set dummy ranlib; ac_word=$2
8141echo "$as_me:$LINENO: checking for $ac_word" >&5
8142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8143if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8144  echo $ECHO_N "(cached) $ECHO_C" >&6
8145else
8146  if test -n "$ac_ct_RANLIB"; then
8147  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8148else
8149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152  IFS=$as_save_IFS
8153  test -z "$as_dir" && as_dir=.
8154  for ac_exec_ext in '' $ac_executable_extensions; do
8155  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156    ac_cv_prog_ac_ct_RANLIB="ranlib"
8157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158    break 2
8159  fi
8160done
8161done
8162
8163  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8164fi
8165fi
8166ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8167if test -n "$ac_ct_RANLIB"; then
8168  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8169echo "${ECHO_T}$ac_ct_RANLIB" >&6
8170else
8171  echo "$as_me:$LINENO: result: no" >&5
8172echo "${ECHO_T}no" >&6
8173fi
8174
8175  RANLIB=$ac_ct_RANLIB
8176else
8177  RANLIB="$ac_cv_prog_RANLIB"
8178fi
8179
8180if test -n "$ac_tool_prefix"; then
8181  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8182set dummy ${ac_tool_prefix}strip; ac_word=$2
8183echo "$as_me:$LINENO: checking for $ac_word" >&5
8184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8185if test "${ac_cv_prog_STRIP+set}" = set; then
8186  echo $ECHO_N "(cached) $ECHO_C" >&6
8187else
8188  if test -n "$STRIP"; then
8189  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8190else
8191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192for as_dir in $PATH
8193do
8194  IFS=$as_save_IFS
8195  test -z "$as_dir" && as_dir=.
8196  for ac_exec_ext in '' $ac_executable_extensions; do
8197  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8198    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8199    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200    break 2
8201  fi
8202done
8203done
8204
8205fi
8206fi
8207STRIP=$ac_cv_prog_STRIP
8208if test -n "$STRIP"; then
8209  echo "$as_me:$LINENO: result: $STRIP" >&5
8210echo "${ECHO_T}$STRIP" >&6
8211else
8212  echo "$as_me:$LINENO: result: no" >&5
8213echo "${ECHO_T}no" >&6
8214fi
8215
8216fi
8217if test -z "$ac_cv_prog_STRIP"; then
8218  ac_ct_STRIP=$STRIP
8219  # Extract the first word of "strip", so it can be a program name with args.
8220set dummy strip; ac_word=$2
8221echo "$as_me:$LINENO: checking for $ac_word" >&5
8222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8223if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8224  echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226  if test -n "$ac_ct_STRIP"; then
8227  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8228else
8229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232  IFS=$as_save_IFS
8233  test -z "$as_dir" && as_dir=.
8234  for ac_exec_ext in '' $ac_executable_extensions; do
8235  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8236    ac_cv_prog_ac_ct_STRIP="strip"
8237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8238    break 2
8239  fi
8240done
8241done
8242
8243  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8244fi
8245fi
8246ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8247if test -n "$ac_ct_STRIP"; then
8248  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8249echo "${ECHO_T}$ac_ct_STRIP" >&6
8250else
8251  echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6
8253fi
8254
8255  STRIP=$ac_ct_STRIP
8256else
8257  STRIP="$ac_cv_prog_STRIP"
8258fi
8259
8260
8261old_CC="$CC"
8262old_CFLAGS="$CFLAGS"
8263
8264# Set sane defaults for various variables
8265test -z "$AR" && AR=ar
8266test -z "$AR_FLAGS" && AR_FLAGS=cru
8267test -z "$AS" && AS=as
8268test -z "$CC" && CC=cc
8269test -z "$LTCC" && LTCC=$CC
8270test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8271test -z "$DLLTOOL" && DLLTOOL=dlltool
8272test -z "$LD" && LD=ld
8273test -z "$LN_S" && LN_S="ln -s"
8274test -z "$MAGIC_CMD" && MAGIC_CMD=file
8275test -z "$NM" && NM=nm
8276test -z "$SED" && SED=sed
8277test -z "$OBJDUMP" && OBJDUMP=objdump
8278test -z "$RANLIB" && RANLIB=:
8279test -z "$STRIP" && STRIP=:
8280test -z "$ac_objext" && ac_objext=o
8281
8282# Determine commands to create old-style static archives.
8283old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8284old_postinstall_cmds='chmod 644 $oldlib'
8285old_postuninstall_cmds=
8286
8287if test -n "$RANLIB"; then
8288  case $host_os in
8289  openbsd*)
8290    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8291    ;;
8292  *)
8293    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8294    ;;
8295  esac
8296  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8297fi
8298
8299for cc_temp in $compiler""; do
8300  case $cc_temp in
8301    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8302    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8303    \-*) ;;
8304    *) break;;
8305  esac
8306done
8307cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8308
8309
8310# Only perform the check for file, if the check method requires it
8311case $deplibs_check_method in
8312file_magic*)
8313  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8314    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8315echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8316if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8317  echo $ECHO_N "(cached) $ECHO_C" >&6
8318else
8319  case $MAGIC_CMD in
8320[\\/*] |  ?:[\\/]*)
8321  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8322  ;;
8323*)
8324  lt_save_MAGIC_CMD="$MAGIC_CMD"
8325  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8327  for ac_dir in $ac_dummy; do
8328    IFS="$lt_save_ifs"
8329    test -z "$ac_dir" && ac_dir=.
8330    if test -f $ac_dir/${ac_tool_prefix}file; then
8331      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8332      if test -n "$file_magic_test_file"; then
8333        case $deplibs_check_method in
8334        "file_magic "*)
8335          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8336          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338            $EGREP "$file_magic_regex" > /dev/null; then
8339            :
8340          else
8341            cat <<EOF 1>&2
8342
8343*** Warning: the command libtool uses to detect shared libraries,
8344*** $file_magic_cmd, produces output that libtool cannot recognize.
8345*** The result is that libtool may fail to recognize shared libraries
8346*** as such.  This will affect the creation of libtool libraries that
8347*** depend on shared libraries, but programs linked with such libtool
8348*** libraries will work regardless of this problem.  Nevertheless, you
8349*** may want to report the problem to your system manager and/or to
8350*** bug-libtool@gnu.org
8351
8352EOF
8353          fi ;;
8354        esac
8355      fi
8356      break
8357    fi
8358  done
8359  IFS="$lt_save_ifs"
8360  MAGIC_CMD="$lt_save_MAGIC_CMD"
8361  ;;
8362esac
8363fi
8364
8365MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366if test -n "$MAGIC_CMD"; then
8367  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8368echo "${ECHO_T}$MAGIC_CMD" >&6
8369else
8370  echo "$as_me:$LINENO: result: no" >&5
8371echo "${ECHO_T}no" >&6
8372fi
8373
8374if test -z "$lt_cv_path_MAGIC_CMD"; then
8375  if test -n "$ac_tool_prefix"; then
8376    echo "$as_me:$LINENO: checking for file" >&5
8377echo $ECHO_N "checking for file... $ECHO_C" >&6
8378if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8379  echo $ECHO_N "(cached) $ECHO_C" >&6
8380else
8381  case $MAGIC_CMD in
8382[\\/*] |  ?:[\\/]*)
8383  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8384  ;;
8385*)
8386  lt_save_MAGIC_CMD="$MAGIC_CMD"
8387  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8388  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8389  for ac_dir in $ac_dummy; do
8390    IFS="$lt_save_ifs"
8391    test -z "$ac_dir" && ac_dir=.
8392    if test -f $ac_dir/file; then
8393      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8394      if test -n "$file_magic_test_file"; then
8395        case $deplibs_check_method in
8396        "file_magic "*)
8397          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8398          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8399          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8400            $EGREP "$file_magic_regex" > /dev/null; then
8401            :
8402          else
8403            cat <<EOF 1>&2
8404
8405*** Warning: the command libtool uses to detect shared libraries,
8406*** $file_magic_cmd, produces output that libtool cannot recognize.
8407*** The result is that libtool may fail to recognize shared libraries
8408*** as such.  This will affect the creation of libtool libraries that
8409*** depend on shared libraries, but programs linked with such libtool
8410*** libraries will work regardless of this problem.  Nevertheless, you
8411*** may want to report the problem to your system manager and/or to
8412*** bug-libtool@gnu.org
8413
8414EOF
8415          fi ;;
8416        esac
8417      fi
8418      break
8419    fi
8420  done
8421  IFS="$lt_save_ifs"
8422  MAGIC_CMD="$lt_save_MAGIC_CMD"
8423  ;;
8424esac
8425fi
8426
8427MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8428if test -n "$MAGIC_CMD"; then
8429  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8430echo "${ECHO_T}$MAGIC_CMD" >&6
8431else
8432  echo "$as_me:$LINENO: result: no" >&5
8433echo "${ECHO_T}no" >&6
8434fi
8435
8436  else
8437    MAGIC_CMD=:
8438  fi
8439fi
8440
8441  fi
8442  ;;
8443esac
8444
8445enable_dlopen=no
8446enable_win32_dll=no
8447
8448# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8449if test "${enable_libtool_lock+set}" = set; then
8450  enableval="$enable_libtool_lock"
8451
8452fi;
8453test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8454
8455
8456# Check whether --with-pic or --without-pic was given.
8457if test "${with_pic+set}" = set; then
8458  withval="$with_pic"
8459  pic_mode="$withval"
8460else
8461  pic_mode=default
8462fi;
8463test -z "$pic_mode" && pic_mode=default
8464
8465# Use C for the default configuration in the libtool script
8466tagname=
8467lt_save_CC="$CC"
8468ac_ext=c
8469ac_cpp='$CPP $CPPFLAGS'
8470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8472ac_compiler_gnu=$ac_cv_c_compiler_gnu
8473
8474
8475# Source file extension for C test sources.
8476ac_ext=c
8477
8478# Object file extension for compiled C test sources.
8479objext=o
8480objext=$objext
8481
8482# Code to be used in simple compile tests
8483lt_simple_compile_test_code="int some_variable = 0;\n"
8484
8485# Code to be used in simple link tests
8486lt_simple_link_test_code='int main(){return(0);}\n'
8487
8488
8489# If no C compiler was specified, use CC.
8490LTCC=${LTCC-"$CC"}
8491
8492# If no C compiler flags were specified, use CFLAGS.
8493LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8494
8495# Allow CC to be a program name with arguments.
8496compiler=$CC
8497
8498
8499# save warnings/boilerplate of simple test code
8500ac_outfile=conftest.$ac_objext
8501printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8502eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8503_lt_compiler_boilerplate=`cat conftest.err`
8504$rm conftest*
8505
8506ac_outfile=conftest.$ac_objext
8507printf "$lt_simple_link_test_code" >conftest.$ac_ext
8508eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8509_lt_linker_boilerplate=`cat conftest.err`
8510$rm conftest*
8511
8512
8513## CAVEAT EMPTOR:
8514## There is no encapsulation within the following macros, do not change
8515## the running order or otherwise move them around unless you know exactly
8516## what you are doing...
8517
8518lt_prog_compiler_no_builtin_flag=
8519
8520if test "$GCC" = yes; then
8521  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8522
8523
8524echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8525echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8526if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8527  echo $ECHO_N "(cached) $ECHO_C" >&6
8528else
8529  lt_cv_prog_compiler_rtti_exceptions=no
8530  ac_outfile=conftest.$ac_objext
8531   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8532   lt_compiler_flag="-fno-rtti -fno-exceptions"
8533   # Insert the option either (1) after the last *FLAGS variable, or
8534   # (2) before a word containing "conftest.", or (3) at the end.
8535   # Note that $ac_compile itself does not contain backslashes and begins
8536   # with a dollar sign (not a hyphen), so the echo should work correctly.
8537   # The option is referenced via a variable to avoid confusing sed.
8538   lt_compile=`echo "$ac_compile" | $SED \
8539   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8540   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8541   -e 's:$: $lt_compiler_flag:'`
8542   (eval echo "\"\$as_me:8542: $lt_compile\"" >&5)
8543   (eval "$lt_compile" 2>conftest.err)
8544   ac_status=$?
8545   cat conftest.err >&5
8546   echo "$as_me:8546: \$? = $ac_status" >&5
8547   if (exit $ac_status) && test -s "$ac_outfile"; then
8548     # The compiler can only warn and ignore the option if not recognized
8549     # So say no if there are warnings other than the usual output.
8550     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8551     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8552     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8553       lt_cv_prog_compiler_rtti_exceptions=yes
8554     fi
8555   fi
8556   $rm conftest*
8557
8558fi
8559echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8560echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8561
8562if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8563    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8564else
8565    :
8566fi
8567
8568fi
8569
8570lt_prog_compiler_wl=
8571lt_prog_compiler_pic=
8572lt_prog_compiler_static=
8573
8574echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8575echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8576
8577  if test "$GCC" = yes; then
8578    lt_prog_compiler_wl='-Wl,'
8579    lt_prog_compiler_static='-static'
8580
8581    case $host_os in
8582      aix*)
8583      # All AIX code is PIC.
8584      if test "$host_cpu" = ia64; then
8585        # AIX 5 now supports IA64 processor
8586        lt_prog_compiler_static='-Bstatic'
8587      fi
8588      ;;
8589
8590    amigaos*)
8591      # FIXME: we need at least 68020 code to build shared libraries, but
8592      # adding the `-m68020' flag to GCC prevents building anything better,
8593      # like `-m68040'.
8594      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8595      ;;
8596
8597    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8598      # PIC is the default for these OSes.
8599      ;;
8600
8601    mingw* | pw32* | os2*)
8602      # This hack is so that the source file can tell whether it is being
8603      # built for inclusion in a dll (and should export symbols for example).
8604      lt_prog_compiler_pic='-DDLL_EXPORT'
8605      ;;
8606
8607    darwin* | rhapsody*)
8608      # PIC is the default on this platform
8609      # Common symbols not allowed in MH_DYLIB files
8610      lt_prog_compiler_pic='-fno-common'
8611      ;;
8612
8613    interix3*)
8614      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8615      # Instead, we relocate shared libraries at runtime.
8616      ;;
8617
8618    msdosdjgpp*)
8619      # Just because we use GCC doesn't mean we suddenly get shared libraries
8620      # on systems that don't support them.
8621      lt_prog_compiler_can_build_shared=no
8622      enable_shared=no
8623      ;;
8624
8625    sysv4*MP*)
8626      if test -d /usr/nec; then
8627        lt_prog_compiler_pic=-Kconform_pic
8628      fi
8629      ;;
8630
8631    hpux*)
8632      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8633      # not for PA HP-UX.
8634      case $host_cpu in
8635      hppa*64*|ia64*)
8636        # +Z the default
8637        ;;
8638      *)
8639        lt_prog_compiler_pic='-fPIC'
8640        ;;
8641      esac
8642      ;;
8643
8644    *)
8645      lt_prog_compiler_pic='-fPIC'
8646      ;;
8647    esac
8648  else
8649    # PORTME Check for flag to pass linker flags through the system compiler.
8650    case $host_os in
8651    aix*)
8652      lt_prog_compiler_wl='-Wl,'
8653      if test "$host_cpu" = ia64; then
8654        # AIX 5 now supports IA64 processor
8655        lt_prog_compiler_static='-Bstatic'
8656      else
8657        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8658      fi
8659      ;;
8660      darwin*)
8661        # PIC is the default on this platform
8662        # Common symbols not allowed in MH_DYLIB files
8663       case $cc_basename in
8664         xlc*)
8665         lt_prog_compiler_pic='-qnocommon'
8666         lt_prog_compiler_wl='-Wl,'
8667         ;;
8668       esac
8669       ;;
8670
8671    mingw* | pw32* | os2*)
8672      # This hack is so that the source file can tell whether it is being
8673      # built for inclusion in a dll (and should export symbols for example).
8674      lt_prog_compiler_pic='-DDLL_EXPORT'
8675      ;;
8676
8677    hpux9* | hpux10* | hpux11*)
8678      lt_prog_compiler_wl='-Wl,'
8679      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8680      # not for PA HP-UX.
8681      case $host_cpu in
8682      hppa*64*|ia64*)
8683        # +Z the default
8684        ;;
8685      *)
8686        lt_prog_compiler_pic='+Z'
8687        ;;
8688      esac
8689      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8690      lt_prog_compiler_static='${wl}-a ${wl}archive'
8691      ;;
8692
8693    irix5* | irix6* | nonstopux*)
8694      lt_prog_compiler_wl='-Wl,'
8695      # PIC (with -KPIC) is the default.
8696      lt_prog_compiler_static='-non_shared'
8697      ;;
8698
8699    newsos6)
8700      lt_prog_compiler_pic='-KPIC'
8701      lt_prog_compiler_static='-Bstatic'
8702      ;;
8703
8704    linux*)
8705      case $cc_basename in
8706      icc* | ecc*)
8707        lt_prog_compiler_wl='-Wl,'
8708        lt_prog_compiler_pic='-KPIC'
8709        lt_prog_compiler_static='-static'
8710        ;;
8711      pgcc* | pgf77* | pgf90* | pgf95*)
8712        # Portland Group compilers (*not* the Pentium gcc compiler,
8713        # which looks to be a dead project)
8714        lt_prog_compiler_wl='-Wl,'
8715        lt_prog_compiler_pic='-fpic'
8716        lt_prog_compiler_static='-Bstatic'
8717        ;;
8718      ccc*)
8719        lt_prog_compiler_wl='-Wl,'
8720        # All Alpha code is PIC.
8721        lt_prog_compiler_static='-non_shared'
8722        ;;
8723      esac
8724      ;;
8725
8726    osf3* | osf4* | osf5*)
8727      lt_prog_compiler_wl='-Wl,'
8728      # All OSF/1 code is PIC.
8729      lt_prog_compiler_static='-non_shared'
8730      ;;
8731
8732    solaris*)
8733      lt_prog_compiler_pic='-KPIC'
8734      lt_prog_compiler_static='-Bstatic'
8735      case $cc_basename in
8736      f77* | f90* | f95*)
8737        lt_prog_compiler_wl='-Qoption ld ';;
8738      *)
8739        lt_prog_compiler_wl='-Wl,';;
8740      esac
8741      ;;
8742
8743    sunos4*)
8744      lt_prog_compiler_wl='-Qoption ld '
8745      lt_prog_compiler_pic='-PIC'
8746      lt_prog_compiler_static='-Bstatic'
8747      ;;
8748
8749    sysv4 | sysv4.2uw2* | sysv4.3*)
8750      lt_prog_compiler_wl='-Wl,'
8751      lt_prog_compiler_pic='-KPIC'
8752      lt_prog_compiler_static='-Bstatic'
8753      ;;
8754
8755    sysv4*MP*)
8756      if test -d /usr/nec ;then
8757        lt_prog_compiler_pic='-Kconform_pic'
8758        lt_prog_compiler_static='-Bstatic'
8759      fi
8760      ;;
8761
8762    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8763      lt_prog_compiler_wl='-Wl,'
8764      lt_prog_compiler_pic='-KPIC'
8765      lt_prog_compiler_static='-Bstatic'
8766      ;;
8767
8768    unicos*)
8769      lt_prog_compiler_wl='-Wl,'
8770      lt_prog_compiler_can_build_shared=no
8771      ;;
8772
8773    uts4*)
8774      lt_prog_compiler_pic='-pic'
8775      lt_prog_compiler_static='-Bstatic'
8776      ;;
8777
8778    *)
8779      lt_prog_compiler_can_build_shared=no
8780      ;;
8781    esac
8782  fi
8783
8784echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8785echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8786
8787#
8788# Check to make sure the PIC flag actually works.
8789#
8790if test -n "$lt_prog_compiler_pic"; then
8791
8792echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8793echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8794if test "${lt_prog_compiler_pic_works+set}" = set; then
8795  echo $ECHO_N "(cached) $ECHO_C" >&6
8796else
8797  lt_prog_compiler_pic_works=no
8798  ac_outfile=conftest.$ac_objext
8799   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8800   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8801   # Insert the option either (1) after the last *FLAGS variable, or
8802   # (2) before a word containing "conftest.", or (3) at the end.
8803   # Note that $ac_compile itself does not contain backslashes and begins
8804   # with a dollar sign (not a hyphen), so the echo should work correctly.
8805   # The option is referenced via a variable to avoid confusing sed.
8806   lt_compile=`echo "$ac_compile" | $SED \
8807   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8808   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8809   -e 's:$: $lt_compiler_flag:'`
8810   (eval echo "\"\$as_me:8810: $lt_compile\"" >&5)
8811   (eval "$lt_compile" 2>conftest.err)
8812   ac_status=$?
8813   cat conftest.err >&5
8814   echo "$as_me:8814: \$? = $ac_status" >&5
8815   if (exit $ac_status) && test -s "$ac_outfile"; then
8816     # The compiler can only warn and ignore the option if not recognized
8817     # So say no if there are warnings other than the usual output.
8818     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8819     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8820     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8821       lt_prog_compiler_pic_works=yes
8822     fi
8823   fi
8824   $rm conftest*
8825
8826fi
8827echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8828echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8829
8830if test x"$lt_prog_compiler_pic_works" = xyes; then
8831    case $lt_prog_compiler_pic in
8832     "" | " "*) ;;
8833     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8834     esac
8835else
8836    lt_prog_compiler_pic=
8837     lt_prog_compiler_can_build_shared=no
8838fi
8839
8840fi
8841case $host_os in
8842  # For platforms which do not support PIC, -DPIC is meaningless:
8843  *djgpp*)
8844    lt_prog_compiler_pic=
8845    ;;
8846  *)
8847    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8848    ;;
8849esac
8850
8851#
8852# Check to make sure the static flag actually works.
8853#
8854wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8855echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8856echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8857if test "${lt_prog_compiler_static_works+set}" = set; then
8858  echo $ECHO_N "(cached) $ECHO_C" >&6
8859else
8860  lt_prog_compiler_static_works=no
8861   save_LDFLAGS="$LDFLAGS"
8862   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8863   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8864   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8865     # The linker can only warn and ignore the option if not recognized
8866     # So say no if there are warnings
8867     if test -s conftest.err; then
8868       # Append any errors to the config.log.
8869       cat conftest.err 1>&5
8870       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8871       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8872       if diff conftest.exp conftest.er2 >/dev/null; then
8873         lt_prog_compiler_static_works=yes
8874       fi
8875     else
8876       lt_prog_compiler_static_works=yes
8877     fi
8878   fi
8879   $rm conftest*
8880   LDFLAGS="$save_LDFLAGS"
8881
8882fi
8883echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8884echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8885
8886if test x"$lt_prog_compiler_static_works" = xyes; then
8887    :
8888else
8889    lt_prog_compiler_static=
8890fi
8891
8892
8893echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8894echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8895if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8896  echo $ECHO_N "(cached) $ECHO_C" >&6
8897else
8898  lt_cv_prog_compiler_c_o=no
8899   $rm -r conftest 2>/dev/null
8900   mkdir conftest
8901   cd conftest
8902   mkdir out
8903   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8904
8905   lt_compiler_flag="-o out/conftest2.$ac_objext"
8906   # Insert the option either (1) after the last *FLAGS variable, or
8907   # (2) before a word containing "conftest.", or (3) at the end.
8908   # Note that $ac_compile itself does not contain backslashes and begins
8909   # with a dollar sign (not a hyphen), so the echo should work correctly.
8910   lt_compile=`echo "$ac_compile" | $SED \
8911   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8912   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8913   -e 's:$: $lt_compiler_flag:'`
8914   (eval echo "\"\$as_me:8914: $lt_compile\"" >&5)
8915   (eval "$lt_compile" 2>out/conftest.err)
8916   ac_status=$?
8917   cat out/conftest.err >&5
8918   echo "$as_me:8918: \$? = $ac_status" >&5
8919   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8920   then
8921     # The compiler can only warn and ignore the option if not recognized
8922     # So say no if there are warnings
8923     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8924     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8925     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8926       lt_cv_prog_compiler_c_o=yes
8927     fi
8928   fi
8929   chmod u+w . 2>&5
8930   $rm conftest*
8931   # SGI C++ compiler will create directory out/ii_files/ for
8932   # template instantiation
8933   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8934   $rm out/* && rmdir out
8935   cd ..
8936   rmdir conftest
8937   $rm conftest*
8938
8939fi
8940echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8941echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8942
8943
8944hard_links="nottested"
8945if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8946  # do not overwrite the value of need_locks provided by the user
8947  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8948echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8949  hard_links=yes
8950  $rm conftest*
8951  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8952  touch conftest.a
8953  ln conftest.a conftest.b 2>&5 || hard_links=no
8954  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8955  echo "$as_me:$LINENO: result: $hard_links" >&5
8956echo "${ECHO_T}$hard_links" >&6
8957  if test "$hard_links" = no; then
8958    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8959echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8960    need_locks=warn
8961  fi
8962else
8963  need_locks=no
8964fi
8965
8966echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8967echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8968
8969  runpath_var=
8970  allow_undefined_flag=
8971  enable_shared_with_static_runtimes=no
8972  archive_cmds=
8973  archive_expsym_cmds=
8974  old_archive_From_new_cmds=
8975  old_archive_from_expsyms_cmds=
8976  export_dynamic_flag_spec=
8977  whole_archive_flag_spec=
8978  thread_safe_flag_spec=
8979  hardcode_libdir_flag_spec=
8980  hardcode_libdir_flag_spec_ld=
8981  hardcode_libdir_separator=
8982  hardcode_direct=no
8983  hardcode_minus_L=no
8984  hardcode_shlibpath_var=unsupported
8985  link_all_deplibs=unknown
8986  hardcode_automatic=no
8987  module_cmds=
8988  module_expsym_cmds=
8989  always_export_symbols=no
8990  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8991  # include_expsyms should be a list of space-separated symbols to be *always*
8992  # included in the symbol list
8993  include_expsyms=
8994  # exclude_expsyms can be an extended regexp of symbols to exclude
8995  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8996  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8997  # as well as any symbol that contains `d'.
8998  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8999  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9000  # platforms (ab)use it in PIC code, but their linkers get confused if
9001  # the symbol is explicitly referenced.  Since portable code cannot
9002  # rely on this symbol name, it's probably fine to never include it in
9003  # preloaded symbol tables.
9004  extract_expsyms_cmds=
9005  # Just being paranoid about ensuring that cc_basename is set.
9006  for cc_temp in $compiler""; do
9007  case $cc_temp in
9008    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9009    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9010    \-*) ;;
9011    *) break;;
9012  esac
9013done
9014cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9015
9016  case $host_os in
9017  cygwin* | mingw* | pw32*)
9018    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9019    # When not using gcc, we currently assume that we are using
9020    # Microsoft Visual C++.
9021    if test "$GCC" != yes; then
9022      with_gnu_ld=no
9023    fi
9024    ;;
9025  interix*)
9026    # we just hope/assume this is gcc and not c89 (= MSVC++)
9027    with_gnu_ld=yes
9028    ;;
9029  openbsd*)
9030    with_gnu_ld=no
9031    ;;
9032  esac
9033
9034  ld_shlibs=yes
9035  if test "$with_gnu_ld" = yes; then
9036    # If archive_cmds runs LD, not CC, wlarc should be empty
9037    wlarc='${wl}'
9038
9039    # Set some defaults for GNU ld with shared library support. These
9040    # are reset later if shared libraries are not supported. Putting them
9041    # here allows them to be overridden if necessary.
9042    runpath_var=LD_RUN_PATH
9043    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9044    export_dynamic_flag_spec='${wl}--export-dynamic'
9045    # ancient GNU ld didn't support --whole-archive et. al.
9046    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9047        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9048      else
9049        whole_archive_flag_spec=
9050    fi
9051    supports_anon_versioning=no
9052    case `$LD -v 2>/dev/null` in
9053      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9054      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9055      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9056      *\ 2.11.*) ;; # other 2.11 versions
9057      *) supports_anon_versioning=yes ;;
9058    esac
9059
9060    # See if GNU ld supports shared libraries.
9061    case $host_os in
9062    aix3* | aix4* | aix5*)
9063      # On AIX/PPC, the GNU linker is very broken
9064      if test "$host_cpu" != ia64; then
9065        ld_shlibs=no
9066        cat <<EOF 1>&2
9067
9068*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9069*** to be unable to reliably create shared libraries on AIX.
9070*** Therefore, libtool is disabling shared libraries support.  If you
9071*** really care for shared libraries, you may want to modify your PATH
9072*** so that a non-GNU linker is found, and then restart.
9073
9074EOF
9075      fi
9076      ;;
9077
9078    amigaos*)
9079      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)'
9080      hardcode_libdir_flag_spec='-L$libdir'
9081      hardcode_minus_L=yes
9082
9083      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9084      # that the semantics of dynamic libraries on AmigaOS, at least up
9085      # to version 4, is to share data among multiple programs linked
9086      # with the same dynamic library.  Since this doesn't match the
9087      # behavior of shared libraries on other platforms, we can't use
9088      # them.
9089      ld_shlibs=no
9090      ;;
9091
9092    beos*)
9093      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9094        allow_undefined_flag=unsupported
9095        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9096        # support --undefined.  This deserves some investigation.  FIXME
9097        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098      else
9099        ld_shlibs=no
9100      fi
9101      ;;
9102
9103    cygwin* | mingw* | pw32*)
9104      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9105      # as there is no search path for DLLs.
9106      hardcode_libdir_flag_spec='-L$libdir'
9107      allow_undefined_flag=unsupported
9108      always_export_symbols=no
9109      enable_shared_with_static_runtimes=yes
9110      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9111
9112      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9113        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9114        # If the export-symbols file already is a .def file (1st line
9115        # is EXPORTS), use it as is; otherwise, prepend...
9116        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9117          cp $export_symbols $output_objdir/$soname.def;
9118        else
9119          echo EXPORTS > $output_objdir/$soname.def;
9120          cat $export_symbols >> $output_objdir/$soname.def;
9121        fi~
9122        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9123      else
9124        ld_shlibs=no
9125      fi
9126      ;;
9127
9128    interix3*)
9129      hardcode_direct=no
9130      hardcode_shlibpath_var=no
9131      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9132      export_dynamic_flag_spec='${wl}-E'
9133      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9134      # Instead, shared libraries are loaded at an image base (0x10000000 by
9135      # default) and relocated if they conflict, which is a slow very memory
9136      # consuming and fragmenting process.  To avoid this, we pick a random,
9137      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9138      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9139      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9140      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'
9141      ;;
9142
9143    linux*)
9144      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9145        tmp_addflag=
9146        case $cc_basename,$host_cpu in
9147        pgcc*)                          # Portland Group C compiler
9148          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'
9149          tmp_addflag=' $pic_flag'
9150          ;;
9151        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9152          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'
9153          tmp_addflag=' $pic_flag -Mnomain' ;;
9154        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9155          tmp_addflag=' -i_dynamic' ;;
9156        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9157          tmp_addflag=' -i_dynamic -nofor_main' ;;
9158        ifc* | ifort*)                  # Intel Fortran compiler
9159          tmp_addflag=' -nofor_main' ;;
9160        esac
9161        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162
9163        if test $supports_anon_versioning = yes; then
9164          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9165  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9166  $echo "local: *; };" >> $output_objdir/$libname.ver~
9167          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9168        fi
9169      else
9170        ld_shlibs=no
9171      fi
9172      ;;
9173
9174    netbsd*)
9175      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9176        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9177        wlarc=
9178      else
9179        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9180        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9181      fi
9182      ;;
9183
9184    solaris*)
9185      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9186        ld_shlibs=no
9187        cat <<EOF 1>&2
9188
9189*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9190*** create shared libraries on Solaris systems.  Therefore, libtool
9191*** is disabling shared libraries support.  We urge you to upgrade GNU
9192*** binutils to release 2.9.1 or newer.  Another option is to modify
9193*** your PATH or compiler configuration so that the native linker is
9194*** used, and then restart.
9195
9196EOF
9197      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9198        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9199        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9200      else
9201        ld_shlibs=no
9202      fi
9203      ;;
9204
9205    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9206      case `$LD -v 2>&1` in
9207        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9208        ld_shlibs=no
9209        cat <<_LT_EOF 1>&2
9210
9211*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9212*** reliably create shared libraries on SCO systems.  Therefore, libtool
9213*** is disabling shared libraries support.  We urge you to upgrade GNU
9214*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9215*** your PATH or compiler configuration so that the native linker is
9216*** used, and then restart.
9217
9218_LT_EOF
9219        ;;
9220        *)
9221          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9222            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9223            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9224            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9225          else
9226            ld_shlibs=no
9227          fi
9228        ;;
9229      esac
9230      ;;
9231
9232    sunos4*)
9233      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9234      wlarc=
9235      hardcode_direct=yes
9236      hardcode_shlibpath_var=no
9237      ;;
9238
9239    *)
9240      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9241        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9242        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9243      else
9244        ld_shlibs=no
9245      fi
9246      ;;
9247    esac
9248
9249    if test "$ld_shlibs" = no; then
9250      runpath_var=
9251      hardcode_libdir_flag_spec=
9252      export_dynamic_flag_spec=
9253      whole_archive_flag_spec=
9254    fi
9255  else
9256    # PORTME fill in a description of your system's linker (not GNU ld)
9257    case $host_os in
9258    aix3*)
9259      allow_undefined_flag=unsupported
9260      always_export_symbols=yes
9261      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'
9262      # Note: this linker hardcodes the directories in LIBPATH if there
9263      # are no directories specified by -L.
9264      hardcode_minus_L=yes
9265      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9266        # Neither direct hardcoding nor static linking is supported with a
9267        # broken collect2.
9268        hardcode_direct=unsupported
9269      fi
9270      ;;
9271
9272    aix4* | aix5*)
9273      if test "$host_cpu" = ia64; then
9274        # On IA64, the linker does run time linking by default, so we don't
9275        # have to do anything special.
9276        aix_use_runtimelinking=no
9277        exp_sym_flag='-Bexport'
9278        no_entry_flag=""
9279      else
9280        # If we're using GNU nm, then we don't want the "-C" option.
9281        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9282        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9283          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'
9284        else
9285          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'
9286        fi
9287        aix_use_runtimelinking=no
9288
9289        # Test if we are trying to use run time linking or normal
9290        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9291        # need to do runtime linking.
9292        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9293          for ld_flag in $LDFLAGS; do
9294          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9295            aix_use_runtimelinking=yes
9296            break
9297          fi
9298          done
9299          ;;
9300        esac
9301
9302        exp_sym_flag='-bexport'
9303        no_entry_flag='-bnoentry'
9304      fi
9305
9306      # When large executables or shared objects are built, AIX ld can
9307      # have problems creating the table of contents.  If linking a library
9308      # or program results in "error TOC overflow" add -mminimal-toc to
9309      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9310      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9311
9312      archive_cmds=''
9313      hardcode_direct=yes
9314      hardcode_libdir_separator=':'
9315      link_all_deplibs=yes
9316
9317      if test "$GCC" = yes; then
9318        case $host_os in aix4.[012]|aix4.[012].*)
9319        # We only want to do this on AIX 4.2 and lower, the check
9320        # below for broken collect2 doesn't work under 4.3+
9321          collect2name=`${CC} -print-prog-name=collect2`
9322          if test -f "$collect2name" && \
9323           strings "$collect2name" | grep resolve_lib_name >/dev/null
9324          then
9325          # We have reworked collect2
9326          hardcode_direct=yes
9327          else
9328          # We have old collect2
9329          hardcode_direct=unsupported
9330          # It fails to find uninstalled libraries when the uninstalled
9331          # path is not listed in the libpath.  Setting hardcode_minus_L
9332          # to unsupported forces relinking
9333          hardcode_minus_L=yes
9334          hardcode_libdir_flag_spec='-L$libdir'
9335          hardcode_libdir_separator=
9336          fi
9337          ;;
9338        esac
9339        shared_flag='-shared'
9340        if test "$aix_use_runtimelinking" = yes; then
9341          shared_flag="$shared_flag "'${wl}-G'
9342        fi
9343      else
9344        # not using gcc
9345        if test "$host_cpu" = ia64; then
9346        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9347        # chokes on -Wl,-G. The following line is correct:
9348          shared_flag='-G'
9349        else
9350          if test "$aix_use_runtimelinking" = yes; then
9351            shared_flag='${wl}-G'
9352          else
9353            shared_flag='${wl}-bM:SRE'
9354          fi
9355        fi
9356      fi
9357
9358      # It seems that -bexpall does not export symbols beginning with
9359      # underscore (_), so it is better to generate a list of symbols to export.
9360      always_export_symbols=yes
9361      if test "$aix_use_runtimelinking" = yes; then
9362        # Warning - without using the other runtime loading flags (-brtl),
9363        # -berok will link without error, but may produce a broken library.
9364        allow_undefined_flag='-berok'
9365       # Determine the default libpath from the value encoded in an empty executable.
9366       cat >conftest.$ac_ext <<_ACEOF
9367/* confdefs.h.  */
9368_ACEOF
9369cat confdefs.h >>conftest.$ac_ext
9370cat >>conftest.$ac_ext <<_ACEOF
9371/* end confdefs.h.  */
9372
9373int
9374main ()
9375{
9376
9377  ;
9378  return 0;
9379}
9380_ACEOF
9381rm -f conftest.$ac_objext conftest$ac_exeext
9382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383  (eval $ac_link) 2>conftest.er1
9384  ac_status=$?
9385  grep -v '^ *+' conftest.er1 >conftest.err
9386  rm -f conftest.er1
9387  cat conftest.err >&5
9388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389  (exit $ac_status); } &&
9390         { ac_try='test -z "$ac_c_werror_flag"
9391                         || test ! -s conftest.err'
9392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393  (eval $ac_try) 2>&5
9394  ac_status=$?
9395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396  (exit $ac_status); }; } &&
9397         { ac_try='test -s conftest$ac_exeext'
9398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399  (eval $ac_try) 2>&5
9400  ac_status=$?
9401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402  (exit $ac_status); }; }; then
9403
9404aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9405}'`
9406# Check for a 64-bit object if we didn't find anything.
9407if 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; }
9408}'`; fi
9409else
9410  echo "$as_me: failed program was:" >&5
9411sed 's/^/| /' conftest.$ac_ext >&5
9412
9413fi
9414rm -f conftest.err conftest.$ac_objext \
9415      conftest$ac_exeext conftest.$ac_ext
9416if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9417
9418       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9419        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"
9420       else
9421        if test "$host_cpu" = ia64; then
9422          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9423          allow_undefined_flag="-z nodefs"
9424          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"
9425        else
9426         # Determine the default libpath from the value encoded in an empty executable.
9427         cat >conftest.$ac_ext <<_ACEOF
9428/* confdefs.h.  */
9429_ACEOF
9430cat confdefs.h >>conftest.$ac_ext
9431cat >>conftest.$ac_ext <<_ACEOF
9432/* end confdefs.h.  */
9433
9434int
9435main ()
9436{
9437
9438  ;
9439  return 0;
9440}
9441_ACEOF
9442rm -f conftest.$ac_objext conftest$ac_exeext
9443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9444  (eval $ac_link) 2>conftest.er1
9445  ac_status=$?
9446  grep -v '^ *+' conftest.er1 >conftest.err
9447  rm -f conftest.er1
9448  cat conftest.err >&5
9449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450  (exit $ac_status); } &&
9451         { ac_try='test -z "$ac_c_werror_flag"
9452                         || test ! -s conftest.err'
9453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454  (eval $ac_try) 2>&5
9455  ac_status=$?
9456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457  (exit $ac_status); }; } &&
9458         { ac_try='test -s conftest$ac_exeext'
9459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460  (eval $ac_try) 2>&5
9461  ac_status=$?
9462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463  (exit $ac_status); }; }; then
9464
9465aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9466}'`
9467# Check for a 64-bit object if we didn't find anything.
9468if 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; }
9469}'`; fi
9470else
9471  echo "$as_me: failed program was:" >&5
9472sed 's/^/| /' conftest.$ac_ext >&5
9473
9474fi
9475rm -f conftest.err conftest.$ac_objext \
9476      conftest$ac_exeext conftest.$ac_ext
9477if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9478
9479         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9480          # Warning - without using the other run time loading flags,
9481          # -berok will link without error, but may produce a broken library.
9482          no_undefined_flag=' ${wl}-bernotok'
9483          allow_undefined_flag=' ${wl}-berok'
9484          # Exported symbols can be pulled into shared objects from archives
9485          whole_archive_flag_spec='$convenience'
9486          archive_cmds_need_lc=yes
9487          # This is similar to how AIX traditionally builds its shared libraries.
9488          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'
9489        fi
9490      fi
9491      ;;
9492
9493    amigaos*)
9494      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)'
9495      hardcode_libdir_flag_spec='-L$libdir'
9496      hardcode_minus_L=yes
9497      # see comment about different semantics on the GNU ld section
9498      ld_shlibs=no
9499      ;;
9500
9501    bsdi[45]*)
9502      export_dynamic_flag_spec=-rdynamic
9503      ;;
9504
9505    cygwin* | mingw* | pw32*)
9506      # When not using gcc, we currently assume that we are using
9507      # Microsoft Visual C++.
9508      # hardcode_libdir_flag_spec is actually meaningless, as there is
9509      # no search path for DLLs.
9510      hardcode_libdir_flag_spec=' '
9511      allow_undefined_flag=unsupported
9512      # Tell ltmain to make .lib files, not .a files.
9513      libext=lib
9514      # Tell ltmain to make .dll files, not .so files.
9515      shrext_cmds=".dll"
9516      # FIXME: Setting linknames here is a bad hack.
9517      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9518      # The linker will automatically build a .lib file if we build a DLL.
9519      old_archive_From_new_cmds='true'
9520      # FIXME: Should let the user specify the lib program.
9521      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9522      fix_srcfile_path='`cygpath -w "$srcfile"`'
9523      enable_shared_with_static_runtimes=yes
9524      ;;
9525
9526    darwin* | rhapsody*)
9527      case $host_os in
9528        rhapsody* | darwin1.[012])
9529         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9530         ;;
9531       *) # Darwin 1.3 on
9532         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9533           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9534         else
9535           case ${MACOSX_DEPLOYMENT_TARGET} in
9536             10.[012])
9537               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9538               ;;
9539             10.*)
9540               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9541               ;;
9542           esac
9543         fi
9544         ;;
9545      esac
9546      archive_cmds_need_lc=no
9547      hardcode_direct=no
9548      hardcode_automatic=yes
9549      hardcode_shlibpath_var=unsupported
9550      whole_archive_flag_spec=''
9551      link_all_deplibs=yes
9552    if test "$GCC" = yes ; then
9553        output_verbose_link_cmd='echo'
9554        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9555      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9556      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9557      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}'
9558      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}'
9559    else
9560      case $cc_basename in
9561        xlc*)
9562         output_verbose_link_cmd='echo'
9563         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9564         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9565          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9566         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}'
9567          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}'
9568          ;;
9569       *)
9570         ld_shlibs=no
9571          ;;
9572      esac
9573    fi
9574      ;;
9575
9576    dgux*)
9577      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578      hardcode_libdir_flag_spec='-L$libdir'
9579      hardcode_shlibpath_var=no
9580      ;;
9581
9582    freebsd1*)
9583      ld_shlibs=no
9584      ;;
9585
9586    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9587    # support.  Future versions do this automatically, but an explicit c++rt0.o
9588    # does not break anything, and helps significantly (at the cost of a little
9589    # extra space).
9590    freebsd2.2*)
9591      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9592      hardcode_libdir_flag_spec='-R$libdir'
9593      hardcode_direct=yes
9594      hardcode_shlibpath_var=no
9595      ;;
9596
9597    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9598    freebsd2*)
9599      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9600      hardcode_direct=yes
9601      hardcode_minus_L=yes
9602      hardcode_shlibpath_var=no
9603      ;;
9604
9605    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9606    freebsd* | kfreebsd*-gnu | dragonfly*)
9607      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9608      hardcode_libdir_flag_spec='-R$libdir'
9609      hardcode_direct=yes
9610      hardcode_shlibpath_var=no
9611      ;;
9612
9613    hpux9*)
9614      if test "$GCC" = yes; then
9615        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'
9616      else
9617        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'
9618      fi
9619      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9620      hardcode_libdir_separator=:
9621      hardcode_direct=yes
9622
9623      # hardcode_minus_L: Not really in the search PATH,
9624      # but as the default location of the library.
9625      hardcode_minus_L=yes
9626      export_dynamic_flag_spec='${wl}-E'
9627      ;;
9628
9629    hpux10*)
9630      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9631        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9632      else
9633        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9634      fi
9635      if test "$with_gnu_ld" = no; then
9636        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9637        hardcode_libdir_separator=:
9638
9639        hardcode_direct=yes
9640        export_dynamic_flag_spec='${wl}-E'
9641
9642        # hardcode_minus_L: Not really in the search PATH,
9643        # but as the default location of the library.
9644        hardcode_minus_L=yes
9645      fi
9646      ;;
9647
9648    hpux11*)
9649      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9650        case $host_cpu in
9651        hppa*64*)
9652          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9653          ;;
9654        ia64*)
9655          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9656          ;;
9657        *)
9658          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9659          ;;
9660        esac
9661      else
9662        case $host_cpu in
9663        hppa*64*)
9664          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9665          ;;
9666        ia64*)
9667          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9668          ;;
9669        *)
9670          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9671          ;;
9672        esac
9673      fi
9674      if test "$with_gnu_ld" = no; then
9675        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9676        hardcode_libdir_separator=:
9677
9678        case $host_cpu in
9679        hppa*64*|ia64*)
9680          hardcode_libdir_flag_spec_ld='+b $libdir'
9681          hardcode_direct=no
9682          hardcode_shlibpath_var=no
9683          ;;
9684        *)
9685          hardcode_direct=yes
9686          export_dynamic_flag_spec='${wl}-E'
9687
9688          # hardcode_minus_L: Not really in the search PATH,
9689          # but as the default location of the library.
9690          hardcode_minus_L=yes
9691          ;;
9692        esac
9693      fi
9694      ;;
9695
9696    irix5* | irix6* | nonstopux*)
9697      if test "$GCC" = yes; then
9698        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'
9699      else
9700        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'
9701        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9702      fi
9703      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9704      hardcode_libdir_separator=:
9705      link_all_deplibs=yes
9706      ;;
9707
9708    netbsd*)
9709      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9710        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9711      else
9712        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9713      fi
9714      hardcode_libdir_flag_spec='-R$libdir'
9715      hardcode_direct=yes
9716      hardcode_shlibpath_var=no
9717      ;;
9718
9719    newsos6)
9720      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721      hardcode_direct=yes
9722      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9723      hardcode_libdir_separator=:
9724      hardcode_shlibpath_var=no
9725      ;;
9726
9727    openbsd*)
9728      hardcode_direct=yes
9729      hardcode_shlibpath_var=no
9730      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9731        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9732        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9733        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9734        export_dynamic_flag_spec='${wl}-E'
9735      else
9736       case $host_os in
9737         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9738           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9739           hardcode_libdir_flag_spec='-R$libdir'
9740           ;;
9741         *)
9742           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9743           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9744           ;;
9745       esac
9746      fi
9747      ;;
9748
9749    os2*)
9750      hardcode_libdir_flag_spec='-L$libdir'
9751      hardcode_minus_L=yes
9752      allow_undefined_flag=unsupported
9753      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'
9754      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9755      ;;
9756
9757    osf3*)
9758      if test "$GCC" = yes; then
9759        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9760        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'
9761      else
9762        allow_undefined_flag=' -expect_unresolved \*'
9763        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'
9764      fi
9765      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9766      hardcode_libdir_separator=:
9767      ;;
9768
9769    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9770      if test "$GCC" = yes; then
9771        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9772        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'
9773        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9774      else
9775        allow_undefined_flag=' -expect_unresolved \*'
9776        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'
9777        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9778        $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'
9779
9780        # Both c and cxx compiler support -rpath directly
9781        hardcode_libdir_flag_spec='-rpath $libdir'
9782      fi
9783      hardcode_libdir_separator=:
9784      ;;
9785
9786    solaris*)
9787      no_undefined_flag=' -z text'
9788      if test "$GCC" = yes; then
9789        wlarc='${wl}'
9790        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9791        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9792          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9793      else
9794        wlarc=''
9795        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9797        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9798      fi
9799      hardcode_libdir_flag_spec='-R$libdir'
9800      hardcode_shlibpath_var=no
9801      case $host_os in
9802      solaris2.[0-5] | solaris2.[0-5].*) ;;
9803      *)
9804        # The compiler driver will combine linker options so we
9805        # cannot just pass the convience library names through
9806        # without $wl, iff we do not link with $LD.
9807        # Luckily, gcc supports the same syntax we need for Sun Studio.
9808        # Supported since Solaris 2.6 (maybe 2.5.1?)
9809        case $wlarc in
9810        '')
9811          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9812        *)
9813          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' ;;
9814        esac ;;
9815      esac
9816      link_all_deplibs=yes
9817      ;;
9818
9819    sunos4*)
9820      if test "x$host_vendor" = xsequent; then
9821        # Use $CC to link under sequent, because it throws in some extra .o
9822        # files that make .init and .fini sections work.
9823        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9824      else
9825        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9826      fi
9827      hardcode_libdir_flag_spec='-L$libdir'
9828      hardcode_direct=yes
9829      hardcode_minus_L=yes
9830      hardcode_shlibpath_var=no
9831      ;;
9832
9833    sysv4)
9834      case $host_vendor in
9835        sni)
9836          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9837          hardcode_direct=yes # is this really true???
9838        ;;
9839        siemens)
9840          ## LD is ld it makes a PLAMLIB
9841          ## CC just makes a GrossModule.
9842          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9843          reload_cmds='$CC -r -o $output$reload_objs'
9844          hardcode_direct=no
9845        ;;
9846        motorola)
9847          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9849        ;;
9850      esac
9851      runpath_var='LD_RUN_PATH'
9852      hardcode_shlibpath_var=no
9853      ;;
9854
9855    sysv4.3*)
9856      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857      hardcode_shlibpath_var=no
9858      export_dynamic_flag_spec='-Bexport'
9859      ;;
9860
9861    sysv4*MP*)
9862      if test -d /usr/nec; then
9863        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9864        hardcode_shlibpath_var=no
9865        runpath_var=LD_RUN_PATH
9866        hardcode_runpath_var=yes
9867        ld_shlibs=yes
9868      fi
9869      ;;
9870
9871    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9872      no_undefined_flag='${wl}-z,text'
9873      archive_cmds_need_lc=no
9874      hardcode_shlibpath_var=no
9875      runpath_var='LD_RUN_PATH'
9876
9877      if test "$GCC" = yes; then
9878        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9879        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9880      else
9881        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9882        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9883      fi
9884      ;;
9885
9886    sysv5* | sco3.2v5* | sco5v6*)
9887      # Note: We can NOT use -z defs as we might desire, because we do not
9888      # link with -lc, and that would cause any symbols used from libc to
9889      # always be unresolved, which means just about no library would
9890      # ever link correctly.  If we're not using GNU ld we use -z text
9891      # though, which does catch some bad symbols but isn't as heavy-handed
9892      # as -z defs.
9893      no_undefined_flag='${wl}-z,text'
9894      allow_undefined_flag='${wl}-z,nodefs'
9895      archive_cmds_need_lc=no
9896      hardcode_shlibpath_var=no
9897      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9898      hardcode_libdir_separator=':'
9899      link_all_deplibs=yes
9900      export_dynamic_flag_spec='${wl}-Bexport'
9901      runpath_var='LD_RUN_PATH'
9902
9903      if test "$GCC" = yes; then
9904        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9905        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9906      else
9907        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9908        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9909      fi
9910      ;;
9911
9912    uts4*)
9913      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914      hardcode_libdir_flag_spec='-L$libdir'
9915      hardcode_shlibpath_var=no
9916      ;;
9917
9918    *)
9919      ld_shlibs=no
9920      ;;
9921    esac
9922  fi
9923
9924echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9925echo "${ECHO_T}$ld_shlibs" >&6
9926test "$ld_shlibs" = no && can_build_shared=no
9927
9928#
9929# Do we need to explicitly link libc?
9930#
9931case "x$archive_cmds_need_lc" in
9932x|xyes)
9933  # Assume -lc should be added
9934  archive_cmds_need_lc=yes
9935
9936  if test "$enable_shared" = yes && test "$GCC" = yes; then
9937    case $archive_cmds in
9938    *'~'*)
9939      # FIXME: we may have to deal with multi-command sequences.
9940      ;;
9941    '$CC '*)
9942      # Test whether the compiler implicitly links with -lc since on some
9943      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9944      # to ld, don't add -lc before -lgcc.
9945      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9946echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9947      $rm conftest*
9948      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9949
9950      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9951  (eval $ac_compile) 2>&5
9952  ac_status=$?
9953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954  (exit $ac_status); } 2>conftest.err; then
9955        soname=conftest
9956        lib=conftest
9957        libobjs=conftest.$ac_objext
9958        deplibs=
9959        wl=$lt_prog_compiler_wl
9960        pic_flag=$lt_prog_compiler_pic
9961        compiler_flags=-v
9962        linker_flags=-v
9963        verstring=
9964        output_objdir=.
9965        libname=conftest
9966        lt_save_allow_undefined_flag=$allow_undefined_flag
9967        allow_undefined_flag=
9968        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9969  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9970  ac_status=$?
9971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972  (exit $ac_status); }
9973        then
9974          archive_cmds_need_lc=no
9975        else
9976          archive_cmds_need_lc=yes
9977        fi
9978        allow_undefined_flag=$lt_save_allow_undefined_flag
9979      else
9980        cat conftest.err 1>&5
9981      fi
9982      $rm conftest*
9983      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9984echo "${ECHO_T}$archive_cmds_need_lc" >&6
9985      ;;
9986    esac
9987  fi
9988  ;;
9989esac
9990
9991echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9992echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9993library_names_spec=
9994libname_spec='lib$name'
9995soname_spec=
9996shrext_cmds=".so"
9997postinstall_cmds=
9998postuninstall_cmds=
9999finish_cmds=
10000finish_eval=
10001shlibpath_var=
10002shlibpath_overrides_runpath=unknown
10003version_type=none
10004dynamic_linker="$host_os ld.so"
10005sys_lib_dlsearch_path_spec="/lib /usr/lib"
10006if test "$GCC" = yes; then
10007  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10008  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10009    # if the path contains ";" then we assume it to be the separator
10010    # otherwise default to the standard path separator (i.e. ":") - it is
10011    # assumed that no part of a normal pathname contains ";" but that should
10012    # okay in the real world where ";" in dirpaths is itself problematic.
10013    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10014  else
10015    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10016  fi
10017else
10018  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10019fi
10020need_lib_prefix=unknown
10021hardcode_into_libs=no
10022
10023# when you set need_version to no, make sure it does not cause -set_version
10024# flags to be left without arguments
10025need_version=unknown
10026
10027case $host_os in
10028aix3*)
10029  version_type=linux
10030  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10031  shlibpath_var=LIBPATH
10032
10033  # AIX 3 has no versioning support, so we append a major version to the name.
10034  soname_spec='${libname}${release}${shared_ext}$major'
10035  ;;
10036
10037aix4* | aix5*)
10038  version_type=linux
10039  need_lib_prefix=no
10040  need_version=no
10041  hardcode_into_libs=yes
10042  if test "$host_cpu" = ia64; then
10043    # AIX 5 supports IA64
10044    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10045    shlibpath_var=LD_LIBRARY_PATH
10046  else
10047    # With GCC up to 2.95.x, collect2 would create an import file
10048    # for dependence libraries.  The import file would start with
10049    # the line `#! .'.  This would cause the generated library to
10050    # depend on `.', always an invalid library.  This was fixed in
10051    # development snapshots of GCC prior to 3.0.
10052    case $host_os in
10053      aix4 | aix4.[01] | aix4.[01].*)
10054      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10055           echo ' yes '
10056           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10057        :
10058      else
10059        can_build_shared=no
10060      fi
10061      ;;
10062    esac
10063    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10064    # soname into executable. Probably we can add versioning support to
10065    # collect2, so additional links can be useful in future.
10066    if test "$aix_use_runtimelinking" = yes; then
10067      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10068      # instead of lib<name>.a to let people know that these are not
10069      # typical AIX shared libraries.
10070      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071    else
10072      # We preserve .a as extension for shared libraries through AIX4.2
10073      # and later when we are not doing run time linking.
10074      library_names_spec='${libname}${release}.a $libname.a'
10075      soname_spec='${libname}${release}${shared_ext}$major'
10076    fi
10077    shlibpath_var=LIBPATH
10078  fi
10079  ;;
10080
10081amigaos*)
10082  library_names_spec='$libname.ixlibrary $libname.a'
10083  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10084  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'
10085  ;;
10086
10087beos*)
10088  library_names_spec='${libname}${shared_ext}'
10089  dynamic_linker="$host_os ld.so"
10090  shlibpath_var=LIBRARY_PATH
10091  ;;
10092
10093bsdi[45]*)
10094  version_type=linux
10095  need_version=no
10096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097  soname_spec='${libname}${release}${shared_ext}$major'
10098  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10099  shlibpath_var=LD_LIBRARY_PATH
10100  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10101  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10102  # the default ld.so.conf also contains /usr/contrib/lib and
10103  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10104  # libtool to hard-code these into programs
10105  ;;
10106
10107cygwin* | mingw* | pw32*)
10108  version_type=windows
10109  shrext_cmds=".dll"
10110  need_version=no
10111  need_lib_prefix=no
10112
10113  case $GCC,$host_os in
10114  yes,cygwin* | yes,mingw* | yes,pw32*)
10115    library_names_spec='$libname.dll.a'
10116    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10117    postinstall_cmds='base_file=`basename \${file}`~
10118      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10119      dldir=$destdir/`dirname \$dlpath`~
10120      test -d \$dldir || mkdir -p \$dldir~
10121      $install_prog $dir/$dlname \$dldir/$dlname~
10122      chmod a+x \$dldir/$dlname'
10123    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10124      dlpath=$dir/\$dldll~
10125       $rm \$dlpath'
10126    shlibpath_overrides_runpath=yes
10127
10128    case $host_os in
10129    cygwin*)
10130      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10131      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10132      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10133      ;;
10134    mingw*)
10135      # MinGW DLLs use traditional 'lib' prefix
10136      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10137      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10138      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10139        # It is most probably a Windows format PATH printed by
10140        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10141        # path with ; separators, and with drive letters. We can handle the
10142        # drive letters (cygwin fileutils understands them), so leave them,
10143        # especially as we might pass files found there to a mingw objdump,
10144        # which wouldn't understand a cygwinified path. Ahh.
10145        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10146      else
10147        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10148      fi
10149      ;;
10150    pw32*)
10151      # pw32 DLLs use 'pw' prefix rather than 'lib'
10152      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10153      ;;
10154    esac
10155    ;;
10156
10157  *)
10158    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10159    ;;
10160  esac
10161  dynamic_linker='Win32 ld.exe'
10162  # FIXME: first we should search . and the directory the executable is in
10163  shlibpath_var=PATH
10164  ;;
10165
10166darwin* | rhapsody*)
10167  dynamic_linker="$host_os dyld"
10168  version_type=darwin
10169  need_lib_prefix=no
10170  need_version=no
10171  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10172  soname_spec='${libname}${release}${major}$shared_ext'
10173  shlibpath_overrides_runpath=yes
10174  shlibpath_var=DYLD_LIBRARY_PATH
10175  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10176  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10177  if test "$GCC" = yes; then
10178    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"`
10179  else
10180    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10181  fi
10182  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10183  ;;
10184
10185dgux*)
10186  version_type=linux
10187  need_lib_prefix=no
10188  need_version=no
10189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10190  soname_spec='${libname}${release}${shared_ext}$major'
10191  shlibpath_var=LD_LIBRARY_PATH
10192  ;;
10193
10194freebsd1*)
10195  dynamic_linker=no
10196  ;;
10197
10198kfreebsd*-gnu)
10199  version_type=linux
10200  need_lib_prefix=no
10201  need_version=no
10202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10203  soname_spec='${libname}${release}${shared_ext}$major'
10204  shlibpath_var=LD_LIBRARY_PATH
10205  shlibpath_overrides_runpath=no
10206  hardcode_into_libs=yes
10207  dynamic_linker='GNU ld.so'
10208  ;;
10209
10210freebsd* | dragonfly*)
10211  # DragonFly does not have aout.  When/if they implement a new
10212  # versioning mechanism, adjust this.
10213  if test -x /usr/bin/objformat; then
10214    objformat=`/usr/bin/objformat`
10215  else
10216    case $host_os in
10217    freebsd[123]*) objformat=aout ;;
10218    *) objformat=elf ;;
10219    esac
10220  fi
10221  version_type=freebsd-$objformat
10222  case $version_type in
10223    freebsd-elf*)
10224      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10225      need_version=no
10226      need_lib_prefix=no
10227      ;;
10228    freebsd-*)
10229      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10230      need_version=yes
10231      ;;
10232  esac
10233  shlibpath_var=LD_LIBRARY_PATH
10234  case $host_os in
10235  freebsd2*)
10236    shlibpath_overrides_runpath=yes
10237    ;;
10238  freebsd3.[01]* | freebsdelf3.[01]*)
10239    shlibpath_overrides_runpath=yes
10240    hardcode_into_libs=yes
10241    ;;
10242  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10243  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10244    shlibpath_overrides_runpath=no
10245    hardcode_into_libs=yes
10246    ;;
10247  freebsd*) # from 4.6 on
10248    shlibpath_overrides_runpath=yes
10249    hardcode_into_libs=yes
10250    ;;
10251  esac
10252  ;;
10253
10254gnu*)
10255  version_type=linux
10256  need_lib_prefix=no
10257  need_version=no
10258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10259  soname_spec='${libname}${release}${shared_ext}$major'
10260  shlibpath_var=LD_LIBRARY_PATH
10261  hardcode_into_libs=yes
10262  ;;
10263
10264hpux9* | hpux10* | hpux11*)
10265  # Give a soname corresponding to the major version so that dld.sl refuses to
10266  # link against other versions.
10267  version_type=sunos
10268  need_lib_prefix=no
10269  need_version=no
10270  case $host_cpu in
10271  ia64*)
10272    shrext_cmds='.so'
10273    hardcode_into_libs=yes
10274    dynamic_linker="$host_os dld.so"
10275    shlibpath_var=LD_LIBRARY_PATH
10276    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10277    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278    soname_spec='${libname}${release}${shared_ext}$major'
10279    if test "X$HPUX_IA64_MODE" = X32; then
10280      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10281    else
10282      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10283    fi
10284    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10285    ;;
10286   hppa*64*)
10287     shrext_cmds='.sl'
10288     hardcode_into_libs=yes
10289     dynamic_linker="$host_os dld.sl"
10290     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10291     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293     soname_spec='${libname}${release}${shared_ext}$major'
10294     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10295     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10296     ;;
10297   *)
10298    shrext_cmds='.sl'
10299    dynamic_linker="$host_os dld.sl"
10300    shlibpath_var=SHLIB_PATH
10301    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10302    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303    soname_spec='${libname}${release}${shared_ext}$major'
10304    ;;
10305  esac
10306  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10307  postinstall_cmds='chmod 555 $lib'
10308  ;;
10309
10310interix3*)
10311  version_type=linux
10312  need_lib_prefix=no
10313  need_version=no
10314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10315  soname_spec='${libname}${release}${shared_ext}$major'
10316  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10317  shlibpath_var=LD_LIBRARY_PATH
10318  shlibpath_overrides_runpath=no
10319  hardcode_into_libs=yes
10320  ;;
10321
10322irix5* | irix6* | nonstopux*)
10323  case $host_os in
10324    nonstopux*) version_type=nonstopux ;;
10325    *)
10326        if test "$lt_cv_prog_gnu_ld" = yes; then
10327                version_type=linux
10328        else
10329                version_type=irix
10330        fi ;;
10331  esac
10332  need_lib_prefix=no
10333  need_version=no
10334  soname_spec='${libname}${release}${shared_ext}$major'
10335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10336  case $host_os in
10337  irix5* | nonstopux*)
10338    libsuff= shlibsuff=
10339    ;;
10340  *)
10341    case $LD in # libtool.m4 will add one of these switches to LD
10342    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10343      libsuff= shlibsuff= libmagic=32-bit;;
10344    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10345      libsuff=32 shlibsuff=N32 libmagic=N32;;
10346    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10347      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10348    *) libsuff= shlibsuff= libmagic=never-match;;
10349    esac
10350    ;;
10351  esac
10352  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10353  shlibpath_overrides_runpath=no
10354  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10355  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10356  hardcode_into_libs=yes
10357  ;;
10358
10359# No shared lib support for Linux oldld, aout, or coff.
10360linux*oldld* | linux*aout* | linux*coff*)
10361  dynamic_linker=no
10362  ;;
10363
10364# This must be Linux ELF.
10365linux*)
10366  version_type=linux
10367  need_lib_prefix=no
10368  need_version=no
10369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370  soname_spec='${libname}${release}${shared_ext}$major'
10371  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10372  shlibpath_var=LD_LIBRARY_PATH
10373  shlibpath_overrides_runpath=no
10374  # This implies no fast_install, which is unacceptable.
10375  # Some rework will be needed to allow for fast_install
10376  # before this can be enabled.
10377  hardcode_into_libs=yes
10378
10379  # Append ld.so.conf contents to the search path
10380  if test -f /etc/ld.so.conf; then
10381    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' ' '`
10382    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10383  fi
10384
10385  # We used to test for /lib/ld.so.1 and disable shared libraries on
10386  # powerpc, because MkLinux only supported shared libraries with the
10387  # GNU dynamic linker.  Since this was broken with cross compilers,
10388  # most powerpc-linux boxes support dynamic linking these days and
10389  # people can always --disable-shared, the test was removed, and we
10390  # assume the GNU/Linux dynamic linker is in use.
10391  dynamic_linker='GNU/Linux ld.so'
10392  ;;
10393
10394knetbsd*-gnu)
10395  version_type=linux
10396  need_lib_prefix=no
10397  need_version=no
10398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10399  soname_spec='${libname}${release}${shared_ext}$major'
10400  shlibpath_var=LD_LIBRARY_PATH
10401  shlibpath_overrides_runpath=no
10402  hardcode_into_libs=yes
10403  dynamic_linker='GNU ld.so'
10404  ;;
10405
10406netbsd*)
10407  version_type=sunos
10408  need_lib_prefix=no
10409  need_version=no
10410  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10411    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10412    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10413    dynamic_linker='NetBSD (a.out) ld.so'
10414  else
10415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10416    soname_spec='${libname}${release}${shared_ext}$major'
10417    dynamic_linker='NetBSD ld.elf_so'
10418  fi
10419  shlibpath_var=LD_LIBRARY_PATH
10420  shlibpath_overrides_runpath=yes
10421  hardcode_into_libs=yes
10422  ;;
10423
10424newsos6)
10425  version_type=linux
10426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427  shlibpath_var=LD_LIBRARY_PATH
10428  shlibpath_overrides_runpath=yes
10429  ;;
10430
10431nto-qnx*)
10432  version_type=linux
10433  need_lib_prefix=no
10434  need_version=no
10435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436  soname_spec='${libname}${release}${shared_ext}$major'
10437  shlibpath_var=LD_LIBRARY_PATH
10438  shlibpath_overrides_runpath=yes
10439  ;;
10440
10441openbsd*)
10442  version_type=sunos
10443  sys_lib_dlsearch_path_spec="/usr/lib"
10444  need_lib_prefix=no
10445  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10446  case $host_os in
10447    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10448    *)                         need_version=no  ;;
10449  esac
10450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10451  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10452  shlibpath_var=LD_LIBRARY_PATH
10453  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10454    case $host_os in
10455      openbsd2.[89] | openbsd2.[89].*)
10456        shlibpath_overrides_runpath=no
10457        ;;
10458      *)
10459        shlibpath_overrides_runpath=yes
10460        ;;
10461      esac
10462  else
10463    shlibpath_overrides_runpath=yes
10464  fi
10465  ;;
10466
10467os2*)
10468  libname_spec='$name'
10469  shrext_cmds=".dll"
10470  need_lib_prefix=no
10471  library_names_spec='$libname${shared_ext} $libname.a'
10472  dynamic_linker='OS/2 ld.exe'
10473  shlibpath_var=LIBPATH
10474  ;;
10475
10476osf3* | osf4* | osf5*)
10477  version_type=osf
10478  need_lib_prefix=no
10479  need_version=no
10480  soname_spec='${libname}${release}${shared_ext}$major'
10481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482  shlibpath_var=LD_LIBRARY_PATH
10483  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10484  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10485  ;;
10486
10487solaris*)
10488  version_type=linux
10489  need_lib_prefix=no
10490  need_version=no
10491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492  soname_spec='${libname}${release}${shared_ext}$major'
10493  shlibpath_var=LD_LIBRARY_PATH
10494  shlibpath_overrides_runpath=yes
10495  hardcode_into_libs=yes
10496  # ldd complains unless libraries are executable
10497  postinstall_cmds='chmod +x $lib'
10498  ;;
10499
10500sunos4*)
10501  version_type=sunos
10502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10503  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10504  shlibpath_var=LD_LIBRARY_PATH
10505  shlibpath_overrides_runpath=yes
10506  if test "$with_gnu_ld" = yes; then
10507    need_lib_prefix=no
10508  fi
10509  need_version=yes
10510  ;;
10511
10512sysv4 | sysv4.3*)
10513  version_type=linux
10514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515  soname_spec='${libname}${release}${shared_ext}$major'
10516  shlibpath_var=LD_LIBRARY_PATH
10517  case $host_vendor in
10518    sni)
10519      shlibpath_overrides_runpath=no
10520      need_lib_prefix=no
10521      export_dynamic_flag_spec='${wl}-Blargedynsym'
10522      runpath_var=LD_RUN_PATH
10523      ;;
10524    siemens)
10525      need_lib_prefix=no
10526      ;;
10527    motorola)
10528      need_lib_prefix=no
10529      need_version=no
10530      shlibpath_overrides_runpath=no
10531      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10532      ;;
10533  esac
10534  ;;
10535
10536sysv4*MP*)
10537  if test -d /usr/nec ;then
10538    version_type=linux
10539    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10540    soname_spec='$libname${shared_ext}.$major'
10541    shlibpath_var=LD_LIBRARY_PATH
10542  fi
10543  ;;
10544
10545sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10546  version_type=freebsd-elf
10547  need_lib_prefix=no
10548  need_version=no
10549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10550  soname_spec='${libname}${release}${shared_ext}$major'
10551  shlibpath_var=LD_LIBRARY_PATH
10552  hardcode_into_libs=yes
10553  if test "$with_gnu_ld" = yes; then
10554    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10555    shlibpath_overrides_runpath=no
10556  else
10557    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10558    shlibpath_overrides_runpath=yes
10559    case $host_os in
10560      sco3.2v5*)
10561        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10562        ;;
10563    esac
10564  fi
10565  sys_lib_dlsearch_path_spec='/usr/lib'
10566  ;;
10567
10568uts4*)
10569  version_type=linux
10570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571  soname_spec='${libname}${release}${shared_ext}$major'
10572  shlibpath_var=LD_LIBRARY_PATH
10573  ;;
10574
10575*)
10576  dynamic_linker=no
10577  ;;
10578esac
10579echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10580echo "${ECHO_T}$dynamic_linker" >&6
10581test "$dynamic_linker" = no && can_build_shared=no
10582
10583variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10584if test "$GCC" = yes; then
10585  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10586fi
10587
10588echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10589echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10590hardcode_action=
10591if test -n "$hardcode_libdir_flag_spec" || \
10592   test -n "$runpath_var" || \
10593   test "X$hardcode_automatic" = "Xyes" ; then
10594
10595  # We can hardcode non-existant directories.
10596  if test "$hardcode_direct" != no &&
10597     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10598     # have to relink, otherwise we might link with an installed library
10599     # when we should be linking with a yet-to-be-installed one
10600     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10601     test "$hardcode_minus_L" != no; then
10602    # Linking always hardcodes the temporary library directory.
10603    hardcode_action=relink
10604  else
10605    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10606    hardcode_action=immediate
10607  fi
10608else
10609  # We cannot hardcode anything, or else we can only hardcode existing
10610  # directories.
10611  hardcode_action=unsupported
10612fi
10613echo "$as_me:$LINENO: result: $hardcode_action" >&5
10614echo "${ECHO_T}$hardcode_action" >&6
10615
10616if test "$hardcode_action" = relink; then
10617  # Fast installation is not supported
10618  enable_fast_install=no
10619elif test "$shlibpath_overrides_runpath" = yes ||
10620     test "$enable_shared" = no; then
10621  # Fast installation is not necessary
10622  enable_fast_install=needless
10623fi
10624
10625striplib=
10626old_striplib=
10627echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10628echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10629if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10630  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10631  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10632  echo "$as_me:$LINENO: result: yes" >&5
10633echo "${ECHO_T}yes" >&6
10634else
10635# FIXME - insert some real tests, host_os isn't really good enough
10636  case $host_os in
10637   darwin*)
10638       if test -n "$STRIP" ; then
10639         striplib="$STRIP -x"
10640         echo "$as_me:$LINENO: result: yes" >&5
10641echo "${ECHO_T}yes" >&6
10642       else
10643  echo "$as_me:$LINENO: result: no" >&5
10644echo "${ECHO_T}no" >&6
10645fi
10646       ;;
10647   *)
10648  echo "$as_me:$LINENO: result: no" >&5
10649echo "${ECHO_T}no" >&6
10650    ;;
10651  esac
10652fi
10653
10654if test "x$enable_dlopen" != xyes; then
10655  enable_dlopen=unknown
10656  enable_dlopen_self=unknown
10657  enable_dlopen_self_static=unknown
10658else
10659  lt_cv_dlopen=no
10660  lt_cv_dlopen_libs=
10661
10662  case $host_os in
10663  beos*)
10664    lt_cv_dlopen="load_add_on"
10665    lt_cv_dlopen_libs=
10666    lt_cv_dlopen_self=yes
10667    ;;
10668
10669  mingw* | pw32*)
10670    lt_cv_dlopen="LoadLibrary"
10671    lt_cv_dlopen_libs=
10672   ;;
10673
10674  cygwin*)
10675    lt_cv_dlopen="dlopen"
10676    lt_cv_dlopen_libs=
10677   ;;
10678
10679  darwin*)
10680  # if libdl is installed we need to link against it
10681    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10682echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10683if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10684  echo $ECHO_N "(cached) $ECHO_C" >&6
10685else
10686  ac_check_lib_save_LIBS=$LIBS
10687LIBS="-ldl  $LIBS"
10688cat >conftest.$ac_ext <<_ACEOF
10689/* confdefs.h.  */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h.  */
10694
10695/* Override any gcc2 internal prototype to avoid an error.  */
10696#ifdef __cplusplus
10697extern "C"
10698#endif
10699/* We use char because int might match the return type of a gcc2
10700   builtin and then its argument prototype would still apply.  */
10701char dlopen ();
10702int
10703main ()
10704{
10705dlopen ();
10706  ;
10707  return 0;
10708}
10709_ACEOF
10710rm -f conftest.$ac_objext conftest$ac_exeext
10711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10712  (eval $ac_link) 2>conftest.er1
10713  ac_status=$?
10714  grep -v '^ *+' conftest.er1 >conftest.err
10715  rm -f conftest.er1
10716  cat conftest.err >&5
10717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718  (exit $ac_status); } &&
10719         { ac_try='test -z "$ac_c_werror_flag"
10720                         || test ! -s conftest.err'
10721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722  (eval $ac_try) 2>&5
10723  ac_status=$?
10724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725  (exit $ac_status); }; } &&
10726         { ac_try='test -s conftest$ac_exeext'
10727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728  (eval $ac_try) 2>&5
10729  ac_status=$?
10730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731  (exit $ac_status); }; }; then
10732  ac_cv_lib_dl_dlopen=yes
10733else
10734  echo "$as_me: failed program was:" >&5
10735sed 's/^/| /' conftest.$ac_ext >&5
10736
10737ac_cv_lib_dl_dlopen=no
10738fi
10739rm -f conftest.err conftest.$ac_objext \
10740      conftest$ac_exeext conftest.$ac_ext
10741LIBS=$ac_check_lib_save_LIBS
10742fi
10743echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10744echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10745if test $ac_cv_lib_dl_dlopen = yes; then
10746  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10747else
10748
10749    lt_cv_dlopen="dyld"
10750    lt_cv_dlopen_libs=
10751    lt_cv_dlopen_self=yes
10752