source: stable/0.106/configure @ 1905

Last change on this file since 1905 was 1905, checked in by stefan, 9 years ago

restoring Osi/stable/0.106

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