source: trunk/configure @ 1578

Last change on this file since 1578 was 1574, checked in by stefan, 10 years ago

check for Osi in base dir too; fix some comments in Makefile.am

  • Property svn:executable set to *
File size: 761.7 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Clp trunk.
5#
6# Report bugs to <coin-clp@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Common Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
433PACKAGE_VERSION='trunk'
434PACKAGE_STRING='Clp trunk'
435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
478ac_subdirs_all="$ac_subdirs_all Data/Sample"
479ac_subdirs_all="$ac_subdirs_all Data/Netlib"
480ac_subdirs_all="$ac_subdirs_all CoinUtils"
481ac_subdirs_all="$ac_subdirs_all Osi"
482ac_subdirs_all="$ac_subdirs_all Clp"
483ac_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 MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP 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 LN_S 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 PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
484ac_subst_files=''
485
486# Initialize some variables set by options.
487ac_init_help=
488ac_init_version=false
489# The variables have the same names as the options, with
490# dashes changed to underlines.
491cache_file=/dev/null
492exec_prefix=NONE
493no_create=
494no_recursion=
495prefix=NONE
496program_prefix=NONE
497program_suffix=NONE
498program_transform_name=s,x,x,
499silent=
500site=
501srcdir=
502verbose=
503x_includes=NONE
504x_libraries=NONE
505
506# Installation directory options.
507# These are left unexpanded so users can "make install exec_prefix=/foo"
508# and all the variables that are supposed to be based on exec_prefix
509# by default will actually change.
510# Use braces instead of parens because sh, perl, etc. also accept them.
511bindir='${exec_prefix}/bin'
512sbindir='${exec_prefix}/sbin'
513libexecdir='${exec_prefix}/libexec'
514datadir='${prefix}/share'
515sysconfdir='${prefix}/etc'
516sharedstatedir='${prefix}/com'
517localstatedir='${prefix}/var'
518libdir='${exec_prefix}/lib'
519includedir='${prefix}/include'
520oldincludedir='/usr/include'
521infodir='${prefix}/info'
522mandir='${prefix}/man'
523
524ac_prev=
525for ac_option
526do
527  # If the previous option needs an argument, assign it.
528  if test -n "$ac_prev"; then
529    eval "$ac_prev=\$ac_option"
530    ac_prev=
531    continue
532  fi
533
534  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
535
536  # Accept the important Cygnus configure options, so we can diagnose typos.
537
538  case $ac_option in
539
540  -bindir | --bindir | --bindi | --bind | --bin | --bi)
541    ac_prev=bindir ;;
542  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
543    bindir=$ac_optarg ;;
544
545  -build | --build | --buil | --bui | --bu)
546    ac_prev=build_alias ;;
547  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
548    build_alias=$ac_optarg ;;
549
550  -cache-file | --cache-file | --cache-fil | --cache-fi \
551  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
552    ac_prev=cache_file ;;
553  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
554  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
555    cache_file=$ac_optarg ;;
556
557  --config-cache | -C)
558    cache_file=config.cache ;;
559
560  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
561    ac_prev=datadir ;;
562  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
563  | --da=*)
564    datadir=$ac_optarg ;;
565
566  -disable-* | --disable-*)
567    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
568    # Reject names that are not valid shell variable names.
569    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
570      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
571   { (exit 1); exit 1; }; }
572    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
573    eval "enable_$ac_feature=no" ;;
574
575  -enable-* | --enable-*)
576    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
577    # Reject names that are not valid shell variable names.
578    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
579      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
580   { (exit 1); exit 1; }; }
581    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
582    case $ac_option in
583      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
584      *) ac_optarg=yes ;;
585    esac
586    eval "enable_$ac_feature='$ac_optarg'" ;;
587
588  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
589  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
590  | --exec | --exe | --ex)
591    ac_prev=exec_prefix ;;
592  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
593  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
594  | --exec=* | --exe=* | --ex=*)
595    exec_prefix=$ac_optarg ;;
596
597  -gas | --gas | --ga | --g)
598    # Obsolete; use --with-gas.
599    with_gas=yes ;;
600
601  -help | --help | --hel | --he | -h)
602    ac_init_help=long ;;
603  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
604    ac_init_help=recursive ;;
605  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
606    ac_init_help=short ;;
607
608  -host | --host | --hos | --ho)
609    ac_prev=host_alias ;;
610  -host=* | --host=* | --hos=* | --ho=*)
611    host_alias=$ac_optarg ;;
612
613  -includedir | --includedir | --includedi | --included | --include \
614  | --includ | --inclu | --incl | --inc)
615    ac_prev=includedir ;;
616  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
617  | --includ=* | --inclu=* | --incl=* | --inc=*)
618    includedir=$ac_optarg ;;
619
620  -infodir | --infodir | --infodi | --infod | --info | --inf)
621    ac_prev=infodir ;;
622  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
623    infodir=$ac_optarg ;;
624
625  -libdir | --libdir | --libdi | --libd)
626    ac_prev=libdir ;;
627  -libdir=* | --libdir=* | --libdi=* | --libd=*)
628    libdir=$ac_optarg ;;
629
630  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
631  | --libexe | --libex | --libe)
632    ac_prev=libexecdir ;;
633  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
634  | --libexe=* | --libex=* | --libe=*)
635    libexecdir=$ac_optarg ;;
636
637  -localstatedir | --localstatedir | --localstatedi | --localstated \
638  | --localstate | --localstat | --localsta | --localst \
639  | --locals | --local | --loca | --loc | --lo)
640    ac_prev=localstatedir ;;
641  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
642  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
643  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
644    localstatedir=$ac_optarg ;;
645
646  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
647    ac_prev=mandir ;;
648  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
649    mandir=$ac_optarg ;;
650
651  -nfp | --nfp | --nf)
652    # Obsolete; use --without-fp.
653    with_fp=no ;;
654
655  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
656  | --no-cr | --no-c | -n)
657    no_create=yes ;;
658
659  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
660  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
661    no_recursion=yes ;;
662
663  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
664  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
665  | --oldin | --oldi | --old | --ol | --o)
666    ac_prev=oldincludedir ;;
667  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
668  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
669  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
670    oldincludedir=$ac_optarg ;;
671
672  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
673    ac_prev=prefix ;;
674  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
675    prefix=$ac_optarg ;;
676
677  -program-prefix | --program-prefix | --program-prefi | --program-pref \
678  | --program-pre | --program-pr | --program-p)
679    ac_prev=program_prefix ;;
680  -program-prefix=* | --program-prefix=* | --program-prefi=* \
681  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
682    program_prefix=$ac_optarg ;;
683
684  -program-suffix | --program-suffix | --program-suffi | --program-suff \
685  | --program-suf | --program-su | --program-s)
686    ac_prev=program_suffix ;;
687  -program-suffix=* | --program-suffix=* | --program-suffi=* \
688  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
689    program_suffix=$ac_optarg ;;
690
691  -program-transform-name | --program-transform-name \
692  | --program-transform-nam | --program-transform-na \
693  | --program-transform-n | --program-transform- \
694  | --program-transform | --program-transfor \
695  | --program-transfo | --program-transf \
696  | --program-trans | --program-tran \
697  | --progr-tra | --program-tr | --program-t)
698    ac_prev=program_transform_name ;;
699  -program-transform-name=* | --program-transform-name=* \
700  | --program-transform-nam=* | --program-transform-na=* \
701  | --program-transform-n=* | --program-transform-=* \
702  | --program-transform=* | --program-transfor=* \
703  | --program-transfo=* | --program-transf=* \
704  | --program-trans=* | --program-tran=* \
705  | --progr-tra=* | --program-tr=* | --program-t=*)
706    program_transform_name=$ac_optarg ;;
707
708  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
709  | -silent | --silent | --silen | --sile | --sil)
710    silent=yes ;;
711
712  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
713    ac_prev=sbindir ;;
714  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
715  | --sbi=* | --sb=*)
716    sbindir=$ac_optarg ;;
717
718  -sharedstatedir | --sharedstatedir | --sharedstatedi \
719  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
720  | --sharedst | --shareds | --shared | --share | --shar \
721  | --sha | --sh)
722    ac_prev=sharedstatedir ;;
723  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
724  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
725  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
726  | --sha=* | --sh=*)
727    sharedstatedir=$ac_optarg ;;
728
729  -site | --site | --sit)
730    ac_prev=site ;;
731  -site=* | --site=* | --sit=*)
732    site=$ac_optarg ;;
733
734  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
735    ac_prev=srcdir ;;
736  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
737    srcdir=$ac_optarg ;;
738
739  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
740  | --syscon | --sysco | --sysc | --sys | --sy)
741    ac_prev=sysconfdir ;;
742  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
743  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
744    sysconfdir=$ac_optarg ;;
745
746  -target | --target | --targe | --targ | --tar | --ta | --t)
747    ac_prev=target_alias ;;
748  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
749    target_alias=$ac_optarg ;;
750
751  -v | -verbose | --verbose | --verbos | --verbo | --verb)
752    verbose=yes ;;
753
754  -version | --version | --versio | --versi | --vers | -V)
755    ac_init_version=: ;;
756
757  -with-* | --with-*)
758    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
759    # Reject names that are not valid shell variable names.
760    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761      { echo "$as_me: error: invalid package name: $ac_package" >&2
762   { (exit 1); exit 1; }; }
763    ac_package=`echo $ac_package| sed 's/-/_/g'`
764    case $ac_option in
765      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
766      *) ac_optarg=yes ;;
767    esac
768    eval "with_$ac_package='$ac_optarg'" ;;
769
770  -without-* | --without-*)
771    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
772    # Reject names that are not valid shell variable names.
773    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
774      { echo "$as_me: error: invalid package name: $ac_package" >&2
775   { (exit 1); exit 1; }; }
776    ac_package=`echo $ac_package | sed 's/-/_/g'`
777    eval "with_$ac_package=no" ;;
778
779  --x)
780    # Obsolete; use --with-x.
781    with_x=yes ;;
782
783  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
784  | --x-incl | --x-inc | --x-in | --x-i)
785    ac_prev=x_includes ;;
786  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
787  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
788    x_includes=$ac_optarg ;;
789
790  -x-libraries | --x-libraries | --x-librarie | --x-librari \
791  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
792    ac_prev=x_libraries ;;
793  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
794  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
795    x_libraries=$ac_optarg ;;
796
797  -*) { echo "$as_me: error: unrecognized option: $ac_option
798Try \`$0 --help' for more information." >&2
799   { (exit 1); exit 1; }; }
800    ;;
801
802  *=*)
803    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
804    # Reject names that are not valid shell variable names.
805    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
806      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
807   { (exit 1); exit 1; }; }
808    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
809    eval "$ac_envvar='$ac_optarg'"
810    export $ac_envvar ;;
811
812  *)
813    # FIXME: should be removed in autoconf 3.0.
814    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
815    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
816      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
817    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
818    ;;
819
820  esac
821done
822
823if test -n "$ac_prev"; then
824  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
825  { echo "$as_me: error: missing argument to $ac_option" >&2
826   { (exit 1); exit 1; }; }
827fi
828
829# Be sure to have absolute paths.
830for ac_var in exec_prefix prefix
831do
832  eval ac_val=$`echo $ac_var`
833  case $ac_val in
834    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
835    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836   { (exit 1); exit 1; }; };;
837  esac
838done
839
840# Be sure to have absolute paths.
841for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
842              localstatedir libdir includedir oldincludedir infodir mandir
843do
844  eval ac_val=$`echo $ac_var`
845  case $ac_val in
846    [\\/$]* | ?:[\\/]* ) ;;
847    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
848   { (exit 1); exit 1; }; };;
849  esac
850done
851
852# There might be people who depend on the old broken behavior: `$host'
853# used to hold the argument of --host etc.
854# FIXME: To remove some day.
855build=$build_alias
856host=$host_alias
857target=$target_alias
858
859# FIXME: To remove some day.
860if test "x$host_alias" != x; then
861  if test "x$build_alias" = x; then
862    cross_compiling=maybe
863    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
864    If a cross compiler is detected then cross compile mode will be used." >&2
865  elif test "x$build_alias" != "x$host_alias"; then
866    cross_compiling=yes
867  fi
868fi
869
870ac_tool_prefix=
871test -n "$host_alias" && ac_tool_prefix=$host_alias-
872
873test "$silent" = yes && exec 6>/dev/null
874
875
876# Find the source files, if location was not specified.
877if test -z "$srcdir"; then
878  ac_srcdir_defaulted=yes
879  # Try the directory containing this script, then its parent.
880  ac_confdir=`(dirname "$0") 2>/dev/null ||
881$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
882         X"$0" : 'X\(//\)[^/]' \| \
883         X"$0" : 'X\(//\)$' \| \
884         X"$0" : 'X\(/\)' \| \
885         .     : '\(.\)' 2>/dev/null ||
886echo X"$0" |
887    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
888          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
889          /^X\(\/\/\)$/{ s//\1/; q; }
890          /^X\(\/\).*/{ s//\1/; q; }
891          s/.*/./; q'`
892  srcdir=$ac_confdir
893  if test ! -r $srcdir/$ac_unique_file; then
894    srcdir=..
895  fi
896else
897  ac_srcdir_defaulted=no
898fi
899if test ! -r $srcdir/$ac_unique_file; then
900  if test "$ac_srcdir_defaulted" = yes; then
901    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
902   { (exit 1); exit 1; }; }
903  else
904    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
905   { (exit 1); exit 1; }; }
906  fi
907fi
908(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
909  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
910   { (exit 1); exit 1; }; }
911srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
912ac_env_build_alias_set=${build_alias+set}
913ac_env_build_alias_value=$build_alias
914ac_cv_env_build_alias_set=${build_alias+set}
915ac_cv_env_build_alias_value=$build_alias
916ac_env_host_alias_set=${host_alias+set}
917ac_env_host_alias_value=$host_alias
918ac_cv_env_host_alias_set=${host_alias+set}
919ac_cv_env_host_alias_value=$host_alias
920ac_env_target_alias_set=${target_alias+set}
921ac_env_target_alias_value=$target_alias
922ac_cv_env_target_alias_set=${target_alias+set}
923ac_cv_env_target_alias_value=$target_alias
924ac_env_CDEFS_set=${CDEFS+set}
925ac_env_CDEFS_value=$CDEFS
926ac_cv_env_CDEFS_set=${CDEFS+set}
927ac_cv_env_CDEFS_value=$CDEFS
928ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
929ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
930ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
931ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
932ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
933ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
934ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
935ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
936ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
937ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
938ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
939ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
940ac_env_CC_set=${CC+set}
941ac_env_CC_value=$CC
942ac_cv_env_CC_set=${CC+set}
943ac_cv_env_CC_value=$CC
944ac_env_CFLAGS_set=${CFLAGS+set}
945ac_env_CFLAGS_value=$CFLAGS
946ac_cv_env_CFLAGS_set=${CFLAGS+set}
947ac_cv_env_CFLAGS_value=$CFLAGS
948ac_env_LDFLAGS_set=${LDFLAGS+set}
949ac_env_LDFLAGS_value=$LDFLAGS
950ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
951ac_cv_env_LDFLAGS_value=$LDFLAGS
952ac_env_CPPFLAGS_set=${CPPFLAGS+set}
953ac_env_CPPFLAGS_value=$CPPFLAGS
954ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
955ac_cv_env_CPPFLAGS_value=$CPPFLAGS
956ac_env_MPICC_set=${MPICC+set}
957ac_env_MPICC_value=$MPICC
958ac_cv_env_MPICC_set=${MPICC+set}
959ac_cv_env_MPICC_value=$MPICC
960ac_env_CXXDEFS_set=${CXXDEFS+set}
961ac_env_CXXDEFS_value=$CXXDEFS
962ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
963ac_cv_env_CXXDEFS_value=$CXXDEFS
964ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
965ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
966ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
967ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
968ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
969ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
970ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
971ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
972ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
973ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
974ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
975ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
976ac_env_CXX_set=${CXX+set}
977ac_env_CXX_value=$CXX
978ac_cv_env_CXX_set=${CXX+set}
979ac_cv_env_CXX_value=$CXX
980ac_env_CXXFLAGS_set=${CXXFLAGS+set}
981ac_env_CXXFLAGS_value=$CXXFLAGS
982ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
983ac_cv_env_CXXFLAGS_value=$CXXFLAGS
984ac_env_MPICXX_set=${MPICXX+set}
985ac_env_MPICXX_value=$MPICXX
986ac_cv_env_MPICXX_set=${MPICXX+set}
987ac_cv_env_MPICXX_value=$MPICXX
988ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
989ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
990ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
991ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
992ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
993ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
994ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
995ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
996ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
997ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
998ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
999ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1000ac_env_F77_set=${F77+set}
1001ac_env_F77_value=$F77
1002ac_cv_env_F77_set=${F77+set}
1003ac_cv_env_F77_value=$F77
1004ac_env_FFLAGS_set=${FFLAGS+set}
1005ac_env_FFLAGS_value=$FFLAGS
1006ac_cv_env_FFLAGS_set=${FFLAGS+set}
1007ac_cv_env_FFLAGS_value=$FFLAGS
1008ac_env_MPIF77_set=${MPIF77+set}
1009ac_env_MPIF77_value=$MPIF77
1010ac_cv_env_MPIF77_set=${MPIF77+set}
1011ac_cv_env_MPIF77_value=$MPIF77
1012ac_env_CPP_set=${CPP+set}
1013ac_env_CPP_value=$CPP
1014ac_cv_env_CPP_set=${CPP+set}
1015ac_cv_env_CPP_value=$CPP
1016ac_env_CXXCPP_set=${CXXCPP+set}
1017ac_env_CXXCPP_value=$CXXCPP
1018ac_cv_env_CXXCPP_set=${CXXCPP+set}
1019ac_cv_env_CXXCPP_value=$CXXCPP
1020ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1021ac_env_PKG_CONFIG_value=$PKG_CONFIG
1022ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1023ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1024ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1025ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1026ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1027ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1028
1029#
1030# Report the --help message.
1031#
1032if test "$ac_init_help" = "long"; then
1033  # Omit some internal or obsolete options to make the list less imposing.
1034  # This message is too long to be a string in the A/UX 3.1 sh.
1035  cat <<_ACEOF
1036\`configure' configures Clp trunk to adapt to many kinds of systems.
1037
1038Usage: $0 [OPTION]... [VAR=VALUE]...
1039
1040To assign environment variables (e.g., CC, CFLAGS...), specify them as
1041VAR=VALUE.  See below for descriptions of some of the useful variables.
1042
1043Defaults for the options are specified in brackets.
1044
1045Configuration:
1046  -h, --help              display this help and exit
1047      --help=short        display options specific to this package
1048      --help=recursive    display the short help of all the included packages
1049  -V, --version           display version information and exit
1050  -q, --quiet, --silent   do not print \`checking...' messages
1051      --cache-file=FILE   cache test results in FILE [disabled]
1052  -C, --config-cache      alias for \`--cache-file=config.cache'
1053  -n, --no-create         do not create output files
1054      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1055
1056_ACEOF
1057
1058  cat <<_ACEOF
1059Installation directories:
1060  --prefix=PREFIX         install architecture-independent files in PREFIX
1061                          [$ac_default_prefix]
1062  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1063                          [PREFIX]
1064
1065By default, \`make install' will install all the files in
1066\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1067an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1068for instance \`--prefix=\$HOME'.
1069
1070For better control, use the options below.
1071
1072Fine tuning of the installation directories:
1073  --bindir=DIR           user executables [EPREFIX/bin]
1074  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1075  --libexecdir=DIR       program executables [EPREFIX/libexec]
1076  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1077  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1078  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1079  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1080  --libdir=DIR           object code libraries [EPREFIX/lib]
1081  --includedir=DIR       C header files [PREFIX/include]
1082  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1083  --infodir=DIR          info documentation [PREFIX/info]
1084  --mandir=DIR           man documentation [PREFIX/man]
1085_ACEOF
1086
1087  cat <<\_ACEOF
1088
1089Program names:
1090  --program-prefix=PREFIX            prepend PREFIX to installed program names
1091  --program-suffix=SUFFIX            append SUFFIX to installed program names
1092  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1093
1094System types:
1095  --build=BUILD     configure for building on BUILD [guessed]
1096  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1097_ACEOF
1098fi
1099
1100if test -n "$ac_init_help"; then
1101  case $ac_init_help in
1102     short | recursive ) echo "Configuration of Clp trunk:";;
1103   esac
1104  cat <<\_ACEOF
1105
1106Optional Features:
1107  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1108  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1109  --enable-debug          compile all projects with debug options tests
1110  --enable-doscompile     Under Cygwin, compile so that executables run under
1111                          DOS. Set to mingw to use gcc/g++/ld with
1112                          -mno-cygwin. Set to msvc to use cl/link (or
1113                          icl/link). Default when mentioned: mingw. Default
1114                          when not mentioned: disabled.
1115  --enable-static[=PKGS]
1116                          build static libraries [default=no]
1117  --disable-dependency-tracking  speeds up one-time build
1118  --enable-dependency-tracking   do not reject slow dependency extractors
1119  --enable-maintainer-mode  enable make rules and dependencies not useful
1120                          (and sometimes confusing) to the casual installer
1121  --enable-shared[=PKGS]
1122                          build shared libraries [default=yes]
1123  --enable-fast-install[=PKGS]
1124                          optimize for fast installation [default=yes]
1125  --disable-libtool-lock  avoid locking (might break parallel builds)
1126  --enable-pkg-config     use pkg-config if available (default is yes)
1127
1128Optional Packages:
1129  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1130  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1131  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1132  --with-pic              try to use only PIC/non-PIC objects [default=use
1133                          both]
1134  --with-tags[=TAGS]
1135                          include additional configurations [automatic]
1136  --with-coin-instdir     prefix of installation directory for precompiled
1137                          COIN packages
1138  --with-blas-lib linker flags for using project Blas
1139  --with-blas-incdir directory with header files for using project Blas
1140  --with-blas-datadir directory with data files for using project Blas
1141  --with-blas             specify BLAS library (or BUILD for compilation)
1142  --with-lapack-lib linker flags for using project Lapack
1143  --with-lapack-incdir directory with header files for using project Lapack
1144  --with-lapack-datadir directory with data files for using project Lapack
1145  --with-lapack           specify LAPACK library (or BUILD for compilation)
1146  --with-sample-lib linker flags for using project Sample
1147  --with-sample-incdir directory with header files for using project Sample
1148  --with-sample-datadir directory with data files for using project Sample
1149  --with-netlib-lib linker flags for using project Netlib
1150  --with-netlib-incdir directory with header files for using project Netlib
1151  --with-netlib-datadir directory with data files for using project Netlib
1152  --with-coinutils-lib linker flags for using project CoinUtils
1153  --with-coinutils-incdir directory with header files for using project
1154                          CoinUtils
1155  --with-coinutils-datadir
1156                          directory with data files for using project
1157                          CoinUtils
1158  --with-osi-lib linker flags for using project Osi
1159  --with-osi-incdir directory with header files for using project Osi
1160  --with-osi-datadir directory with data files for using project Osi
1161  --with-clp-lib linker flags for using project Clp
1162  --with-clp-incdir directory with header files for using project Clp
1163  --with-clp-datadir directory with data files for using project Clp
1164
1165Some influential environment variables:
1166  CDEFS       Additional -D flags to be used when compiling C code.
1167  ADD_CFLAGS  Additional C compiler options
1168  DBG_CFLAGS  Debug C compiler options
1169  OPT_CFLAGS  Optimize C compiler options
1170  CC          C compiler command
1171  CFLAGS      C compiler flags
1172  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1173              nonstandard directory <lib dir>
1174  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1175              headers in a nonstandard directory <include dir>
1176  MPICC       C MPI Compiler
1177  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1178  ADD_CXXFLAGS
1179              Additional C++ compiler options
1180  DBG_CXXFLAGS
1181              Debug C++ compiler options
1182  OPT_CXXFLAGS
1183              Optimize C++ compiler options
1184  CXX         C++ compiler command
1185  CXXFLAGS    C++ compiler flags
1186  MPICXX      C++ MPI Compiler
1187  ADD_FFLAGS  Additional Fortran compiler options
1188  DBG_FFLAGS  Debug Fortran compiler options
1189  OPT_FFLAGS  Optimize Fortran compiler options
1190  F77         Fortran 77 compiler command
1191  FFLAGS      Fortran 77 compiler flags
1192  MPIF77      Fortran MPI Compiler
1193  CPP         C preprocessor
1194  CXXCPP      C++ preprocessor
1195  PKG_CONFIG  path to pkg-config utility
1196  COIN_SKIP_PROJECTS
1197              Set to the subdirectories of projects that should be skipped in
1198              the configuration
1199
1200Use these variables to override the choices made by `configure' or to help
1201it to find libraries and programs with nonstandard names/locations.
1202
1203Report bugs to <coin-clp@lists.coin-or.org>.
1204_ACEOF
1205fi
1206
1207if test "$ac_init_help" = "recursive"; then
1208  # If there are subdirs, report their specific --help.
1209  ac_popdir=`pwd`
1210  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1211    test -d $ac_dir || continue
1212    ac_builddir=.
1213
1214if test "$ac_dir" != .; then
1215  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1216  # A "../" for each directory in $ac_dir_suffix.
1217  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1218else
1219  ac_dir_suffix= ac_top_builddir=
1220fi
1221
1222case $srcdir in
1223  .)  # No --srcdir option.  We are building in place.
1224    ac_srcdir=.
1225    if test -z "$ac_top_builddir"; then
1226       ac_top_srcdir=.
1227    else
1228       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1229    fi ;;
1230  [\\/]* | ?:[\\/]* )  # Absolute path.
1231    ac_srcdir=$srcdir$ac_dir_suffix;
1232    ac_top_srcdir=$srcdir ;;
1233  *) # Relative path.
1234    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1235    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1236esac
1237
1238# Do not use `cd foo && pwd` to compute absolute paths, because
1239# the directories may not exist.
1240case `pwd` in
1241.) ac_abs_builddir="$ac_dir";;
1242*)
1243  case "$ac_dir" in
1244  .) ac_abs_builddir=`pwd`;;
1245  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1246  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1247  esac;;
1248esac
1249case $ac_abs_builddir in
1250.) ac_abs_top_builddir=${ac_top_builddir}.;;
1251*)
1252  case ${ac_top_builddir}. in
1253  .) ac_abs_top_builddir=$ac_abs_builddir;;
1254  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1255  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1256  esac;;
1257esac
1258case $ac_abs_builddir in
1259.) ac_abs_srcdir=$ac_srcdir;;
1260*)
1261  case $ac_srcdir in
1262  .) ac_abs_srcdir=$ac_abs_builddir;;
1263  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1264  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1265  esac;;
1266esac
1267case $ac_abs_builddir in
1268.) ac_abs_top_srcdir=$ac_top_srcdir;;
1269*)
1270  case $ac_top_srcdir in
1271  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1272  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1273  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1274  esac;;
1275esac
1276
1277    cd $ac_dir
1278    # Check for guested configure; otherwise get Cygnus style configure.
1279    if test -f $ac_srcdir/configure.gnu; then
1280      echo
1281      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1282    elif test -f $ac_srcdir/configure; then
1283      echo
1284      $SHELL $ac_srcdir/configure  --help=recursive
1285    elif test -f $ac_srcdir/configure.ac ||
1286           test -f $ac_srcdir/configure.in; then
1287      echo
1288      $ac_configure --help
1289    else
1290      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1291    fi
1292    cd $ac_popdir
1293  done
1294fi
1295
1296test -n "$ac_init_help" && exit 0
1297if $ac_init_version; then
1298  cat <<\_ACEOF
1299Clp configure trunk
1300generated by GNU Autoconf 2.59
1301
1302Copyright (C) 2003 Free Software Foundation, Inc.
1303This configure script is free software; the Free Software Foundation
1304gives unlimited permission to copy, distribute and modify it.
1305
1306
1307Copyright 2006 International Business Machines and others.
1308All Rights Reserved.
1309This file is part of the open source package Coin which is distributed
1310under the Common Public License.
1311_ACEOF
1312  exit 0
1313fi
1314exec 5>config.log
1315cat >&5 <<_ACEOF
1316This file contains any messages produced by compilers while
1317running configure, to aid debugging if configure makes a mistake.
1318
1319It was created by Clp $as_me trunk, which was
1320generated by GNU Autoconf 2.59.  Invocation command line was
1321
1322  $ $0 $@
1323
1324_ACEOF
1325{
1326cat <<_ASUNAME
1327## --------- ##
1328## Platform. ##
1329## --------- ##
1330
1331hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1332uname -m = `(uname -m) 2>/dev/null || echo unknown`
1333uname -r = `(uname -r) 2>/dev/null || echo unknown`
1334uname -s = `(uname -s) 2>/dev/null || echo unknown`
1335uname -v = `(uname -v) 2>/dev/null || echo unknown`
1336
1337/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1338/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1339
1340/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1341/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1342/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1343hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1344/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1345/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1346/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1347
1348_ASUNAME
1349
1350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1351for as_dir in $PATH
1352do
1353  IFS=$as_save_IFS
1354  test -z "$as_dir" && as_dir=.
1355  echo "PATH: $as_dir"
1356done
1357
1358} >&5
1359
1360cat >&5 <<_ACEOF
1361
1362
1363## ----------- ##
1364## Core tests. ##
1365## ----------- ##
1366
1367_ACEOF
1368
1369
1370# Keep a trace of the command line.
1371# Strip out --no-create and --no-recursion so they do not pile up.
1372# Strip out --silent because we don't want to record it for future runs.
1373# Also quote any args containing shell meta-characters.
1374# Make two passes to allow for proper duplicate-argument suppression.
1375ac_configure_args=
1376ac_configure_args0=
1377ac_configure_args1=
1378ac_sep=
1379ac_must_keep_next=false
1380for ac_pass in 1 2
1381do
1382  for ac_arg
1383  do
1384    case $ac_arg in
1385    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1386    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1387    | -silent | --silent | --silen | --sile | --sil)
1388      continue ;;
1389    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1390      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1391    esac
1392    case $ac_pass in
1393    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1394    2)
1395      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1396      if test $ac_must_keep_next = true; then
1397        ac_must_keep_next=false # Got value, back to normal.
1398      else
1399        case $ac_arg in
1400          *=* | --config-cache | -C | -disable-* | --disable-* \
1401          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1402          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1403          | -with-* | --with-* | -without-* | --without-* | --x)
1404            case "$ac_configure_args0 " in
1405              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1406            esac
1407            ;;
1408          -* ) ac_must_keep_next=true ;;
1409        esac
1410      fi
1411      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1412      # Get rid of the leading space.
1413      ac_sep=" "
1414      ;;
1415    esac
1416  done
1417done
1418$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1419$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1420
1421# When interrupted or exit'd, cleanup temporary files, and complete
1422# config.log.  We remove comments because anyway the quotes in there
1423# would cause problems or look ugly.
1424# WARNING: Be sure not to use single quotes in there, as some shells,
1425# such as our DU 5.0 friend, will then `close' the trap.
1426trap 'exit_status=$?
1427  # Save into config.log some information that might help in debugging.
1428  {
1429    echo
1430
1431    cat <<\_ASBOX
1432## ---------------- ##
1433## Cache variables. ##
1434## ---------------- ##
1435_ASBOX
1436    echo
1437    # The following way of writing the cache mishandles newlines in values,
1438{
1439  (set) 2>&1 |
1440    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1441    *ac_space=\ *)
1442      sed -n \
1443        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1444          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1445      ;;
1446    *)
1447      sed -n \
1448        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1449      ;;
1450    esac;
1451}
1452    echo
1453
1454    cat <<\_ASBOX
1455## ----------------- ##
1456## Output variables. ##
1457## ----------------- ##
1458_ASBOX
1459    echo
1460    for ac_var in $ac_subst_vars
1461    do
1462      eval ac_val=$`echo $ac_var`
1463      echo "$ac_var='"'"'$ac_val'"'"'"
1464    done | sort
1465    echo
1466
1467    if test -n "$ac_subst_files"; then
1468      cat <<\_ASBOX
1469## ------------- ##
1470## Output files. ##
1471## ------------- ##
1472_ASBOX
1473      echo
1474      for ac_var in $ac_subst_files
1475      do
1476        eval ac_val=$`echo $ac_var`
1477        echo "$ac_var='"'"'$ac_val'"'"'"
1478      done | sort
1479      echo
1480    fi
1481
1482    if test -s confdefs.h; then
1483      cat <<\_ASBOX
1484## ----------- ##
1485## confdefs.h. ##
1486## ----------- ##
1487_ASBOX
1488      echo
1489      sed "/^$/d" confdefs.h | sort
1490      echo
1491    fi
1492    test "$ac_signal" != 0 &&
1493      echo "$as_me: caught signal $ac_signal"
1494    echo "$as_me: exit $exit_status"
1495  } >&5
1496  rm -f core *.core &&
1497  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1498    exit $exit_status
1499     ' 0
1500for ac_signal in 1 2 13 15; do
1501  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1502done
1503ac_signal=0
1504
1505# confdefs.h avoids OS command line length limits that DEFS can exceed.
1506rm -rf conftest* confdefs.h
1507# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1508echo >confdefs.h
1509
1510# Predefined preprocessor variables.
1511
1512cat >>confdefs.h <<_ACEOF
1513#define PACKAGE_NAME "$PACKAGE_NAME"
1514_ACEOF
1515
1516
1517cat >>confdefs.h <<_ACEOF
1518#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1519_ACEOF
1520
1521
1522cat >>confdefs.h <<_ACEOF
1523#define PACKAGE_VERSION "$PACKAGE_VERSION"
1524_ACEOF
1525
1526
1527cat >>confdefs.h <<_ACEOF
1528#define PACKAGE_STRING "$PACKAGE_STRING"
1529_ACEOF
1530
1531
1532cat >>confdefs.h <<_ACEOF
1533#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1534_ACEOF
1535
1536
1537# Let the site file select an alternate cache file if it wants to.
1538# Prefer explicitly selected file to automatically selected ones.
1539if test -z "$CONFIG_SITE"; then
1540  if test "x$prefix" != xNONE; then
1541    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1542  else
1543    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1544  fi
1545fi
1546for ac_site_file in $CONFIG_SITE; do
1547  if test -r "$ac_site_file"; then
1548    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1549echo "$as_me: loading site script $ac_site_file" >&6;}
1550    sed 's/^/| /' "$ac_site_file" >&5
1551    . "$ac_site_file"
1552  fi
1553done
1554
1555if test -r "$cache_file"; then
1556  # Some versions of bash will fail to source /dev/null (special
1557  # files actually), so we avoid doing that.
1558  if test -f "$cache_file"; then
1559    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1560echo "$as_me: loading cache $cache_file" >&6;}
1561    case $cache_file in
1562      [\\/]* | ?:[\\/]* ) . $cache_file;;
1563      *)                      . ./$cache_file;;
1564    esac
1565  fi
1566else
1567  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1568echo "$as_me: creating cache $cache_file" >&6;}
1569  >$cache_file
1570fi
1571
1572# Check that the precious variables saved in the cache have kept the same
1573# value.
1574ac_cache_corrupted=false
1575for ac_var in `(set) 2>&1 |
1576               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1577  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1578  eval ac_new_set=\$ac_env_${ac_var}_set
1579  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1580  eval ac_new_val="\$ac_env_${ac_var}_value"
1581  case $ac_old_set,$ac_new_set in
1582    set,)
1583      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1584echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1585      ac_cache_corrupted=: ;;
1586    ,set)
1587      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1588echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1589      ac_cache_corrupted=: ;;
1590    ,);;
1591    *)
1592      if test "x$ac_old_val" != "x$ac_new_val"; then
1593        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1594echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1595        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1596echo "$as_me:   former value:  $ac_old_val" >&2;}
1597        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1598echo "$as_me:   current value: $ac_new_val" >&2;}
1599        ac_cache_corrupted=:
1600      fi;;
1601  esac
1602  # Pass precious variables to config.status.
1603  if test "$ac_new_set" = set; then
1604    case $ac_new_val in
1605    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1606      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1607    *) ac_arg=$ac_var=$ac_new_val ;;
1608    esac
1609    case " $ac_configure_args " in
1610      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1611      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1612    esac
1613  fi
1614done
1615if $ac_cache_corrupted; then
1616  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1617echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1618  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1619echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1620   { (exit 1); exit 1; }; }
1621fi
1622
1623ac_ext=c
1624ac_cpp='$CPP $CPPFLAGS'
1625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1627ac_compiler_gnu=$ac_cv_c_compiler_gnu
1628
1629
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# List one file in the package so that the configure script can test
1661# whether the package is actually there
1662
1663
1664# Where should everything be installed by default?  Here, we want it
1665# to be installed directly in 'bin', 'lib', 'include' subdirectories
1666# of the directory where configure is run.  The default would be
1667# /usr/local.
1668
1669
1670#############################################################################
1671#              Create the libtool script for the subdirectories             #
1672#############################################################################
1673
1674ac_aux_dir=
1675for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1676  if test -f $ac_dir/install-sh; then
1677    ac_aux_dir=$ac_dir
1678    ac_install_sh="$ac_aux_dir/install-sh -c"
1679    break
1680  elif test -f $ac_dir/install.sh; then
1681    ac_aux_dir=$ac_dir
1682    ac_install_sh="$ac_aux_dir/install.sh -c"
1683    break
1684  elif test -f $ac_dir/shtool; then
1685    ac_aux_dir=$ac_dir
1686    ac_install_sh="$ac_aux_dir/shtool install -c"
1687    break
1688  fi
1689done
1690if test -z "$ac_aux_dir"; then
1691  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1692echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1693   { (exit 1); exit 1; }; }
1694fi
1695ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1696ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1697ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1698
1699# Make sure we can run config.sub.
1700$ac_config_sub sun4 >/dev/null 2>&1 ||
1701  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1702echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1703   { (exit 1); exit 1; }; }
1704
1705echo "$as_me:$LINENO: checking build system type" >&5
1706echo $ECHO_N "checking build system type... $ECHO_C" >&6
1707if test "${ac_cv_build+set}" = set; then
1708  echo $ECHO_N "(cached) $ECHO_C" >&6
1709else
1710  ac_cv_build_alias=$build_alias
1711test -z "$ac_cv_build_alias" &&
1712  ac_cv_build_alias=`$ac_config_guess`
1713test -z "$ac_cv_build_alias" &&
1714  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1715echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1716   { (exit 1); exit 1; }; }
1717ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1718  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1719echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1720   { (exit 1); exit 1; }; }
1721
1722fi
1723echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1724echo "${ECHO_T}$ac_cv_build" >&6
1725build=$ac_cv_build
1726build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1727build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1728build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1729
1730
1731
1732# Check if user wants to produce debugging code
1733
1734echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1735echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1736
1737# Check whether --enable-debug or --disable-debug was given.
1738if test "${enable_debug+set}" = set; then
1739  enableval="$enable_debug"
1740  case "${enableval}" in
1741   yes) coin_debug_compile=true
1742        if test "${enable_shared+set}" = set; then :; else
1743          enable_shared=no
1744        fi
1745        ;;
1746   no)  coin_debug_compile=false
1747        ;;
1748   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1749echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1750   { (exit 1); exit 1; }; }
1751        ;;
1752esac
1753else
1754  coin_debug_compile=false
1755fi;
1756
1757 # m4_ifvaln([],
1758
1759if test $coin_debug_compile = true; then
1760  echo "$as_me:$LINENO: result: yes" >&5
1761echo "${ECHO_T}yes" >&6
1762else
1763  echo "$as_me:$LINENO: result: no" >&5
1764echo "${ECHO_T}no" >&6
1765fi
1766
1767 # m4_ifvaln([],
1768
1769
1770
1771# Get the name of the C compiler and appropriate compiler options
1772case $build in
1773  *-mingw*)
1774    if test "${LD+set}" = set; then :; else
1775      LD=link
1776    fi
1777    ;;
1778 esac
1779 case $enable_doscompile in
1780   msvc)
1781     if test "x${LD+set}" = xset; then :; else
1782       LD=link
1783     fi
1784     ;;
1785 esac
1786
1787
1788 # Check whether --enable-doscompile or --disable-doscompile was given.
1789if test "${enable_doscompile+set}" = set; then
1790  enableval="$enable_doscompile"
1791  if test "$enable_doscompile" != no; then
1792     case $build in
1793       *-cygwin* | *-mingw*) ;;
1794       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1795echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1796   { (exit 1); exit 1; }; } ;;
1797     esac
1798   fi
1799else
1800  enable_doscompile=no
1801fi;
1802 case "$enable_doscompile" in
1803   mingw)
1804     case $build in
1805       *-mingw*) enable_doscompile=no ;;
1806     esac
1807     ;;
1808   msvc|no) ;;
1809   yes) enable_doscompile=mingw ;;
1810   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1811                    Try configure --help=recursive." >&5
1812echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1813                    Try configure --help=recursive." >&2;}
1814   { (exit 1); exit 1; }; }
1815      ;;
1816  esac
1817  if test "$enable_doscompile" != no ; then
1818    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1819echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1820  fi
1821
1822
1823
1824
1825ac_ext=c
1826ac_cpp='$CPP $CPPFLAGS'
1827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830
1831
1832# For consistency, we set the C compiler to the same value of the C++
1833# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1834if test x"$CXX" != x; then
1835  case "$CXX" in
1836    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1837      if test x"$CC" = x; then
1838        CC="$CXX"
1839        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1840echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1841      fi
1842      ;;
1843  esac
1844fi
1845
1846
1847
1848
1849
1850
1851coin_has_cc=yes
1852
1853save_cflags="$CFLAGS"
1854
1855# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1856# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1857# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1858# compiler. In this case, put cc after gcc.
1859
1860case $build in
1861  *-cygwin* | *-mingw*)
1862             if test "$enable_doscompile" = msvc ; then
1863               comps="icl cl"
1864             else
1865               comps="gcc cl"
1866             fi ;;
1867  *-*-solaris*)
1868             # Extract the first word of "cc", so it can be a program name with args.
1869set dummy cc; ac_word=$2
1870echo "$as_me:$LINENO: checking for $ac_word" >&5
1871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1873  echo $ECHO_N "(cached) $ECHO_C" >&6
1874else
1875  if test -n "$sol_cc_compiler"; then
1876  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1877else
1878  ac_prog_rejected=no
1879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880for as_dir in $PATH
1881do
1882  IFS=$as_save_IFS
1883  test -z "$as_dir" && as_dir=.
1884  for ac_exec_ext in '' $ac_executable_extensions; do
1885  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1887       ac_prog_rejected=yes
1888       continue
1889     fi
1890    ac_cv_prog_sol_cc_compiler="cc"
1891    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892    break 2
1893  fi
1894done
1895done
1896
1897if test $ac_prog_rejected = yes; then
1898  # We found a bogon in the path, so make sure we never use it.
1899  set dummy $ac_cv_prog_sol_cc_compiler
1900  shift
1901  if test $# != 0; then
1902    # We chose a different compiler from the bogus one.
1903    # However, it has the same basename, so the bogon will be chosen
1904    # first if we set sol_cc_compiler to just the basename; use the full file name.
1905    shift
1906    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1907  fi
1908fi
1909fi
1910fi
1911sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1912if test -n "$sol_cc_compiler"; then
1913  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1914echo "${ECHO_T}$sol_cc_compiler" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920             if test "$sol_cc_compiler" = "cc" ; then
1921               comps="cc xlc gcc pgcc icc"
1922             else
1923               comps="xlc gcc pgcc icc cc"
1924             fi
1925             ;;
1926  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1927  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1928esac
1929
1930# We delete the cached value, since the test might not have been
1931# performed with our choice of compilers earlier
1932$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1933# AC_MSG_NOTICE([C compiler candidates: $comps])
1934ac_ext=c
1935ac_cpp='$CPP $CPPFLAGS'
1936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939if test -n "$ac_tool_prefix"; then
1940  for ac_prog in $comps
1941  do
1942    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1943set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1944echo "$as_me:$LINENO: checking for $ac_word" >&5
1945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946if test "${ac_cv_prog_CC+set}" = set; then
1947  echo $ECHO_N "(cached) $ECHO_C" >&6
1948else
1949  if test -n "$CC"; then
1950  ac_cv_prog_CC="$CC" # Let the user override the test.
1951else
1952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955  IFS=$as_save_IFS
1956  test -z "$as_dir" && as_dir=.
1957  for ac_exec_ext in '' $ac_executable_extensions; do
1958  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1960    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961    break 2
1962  fi
1963done
1964done
1965
1966fi
1967fi
1968CC=$ac_cv_prog_CC
1969if test -n "$CC"; then
1970  echo "$as_me:$LINENO: result: $CC" >&5
1971echo "${ECHO_T}$CC" >&6
1972else
1973  echo "$as_me:$LINENO: result: no" >&5
1974echo "${ECHO_T}no" >&6
1975fi
1976
1977    test -n "$CC" && break
1978  done
1979fi
1980if test -z "$CC"; then
1981  ac_ct_CC=$CC
1982  for ac_prog in $comps
1983do
1984  # Extract the first word of "$ac_prog", so it can be a program name with args.
1985set dummy $ac_prog; ac_word=$2
1986echo "$as_me:$LINENO: checking for $ac_word" >&5
1987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1989  echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991  if test -n "$ac_ct_CC"; then
1992  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1993else
1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997  IFS=$as_save_IFS
1998  test -z "$as_dir" && as_dir=.
1999  for ac_exec_ext in '' $ac_executable_extensions; do
2000  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001    ac_cv_prog_ac_ct_CC="$ac_prog"
2002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003    break 2
2004  fi
2005done
2006done
2007
2008fi
2009fi
2010ac_ct_CC=$ac_cv_prog_ac_ct_CC
2011if test -n "$ac_ct_CC"; then
2012  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2013echo "${ECHO_T}$ac_ct_CC" >&6
2014else
2015  echo "$as_me:$LINENO: result: no" >&5
2016echo "${ECHO_T}no" >&6
2017fi
2018
2019  test -n "$ac_ct_CC" && break
2020done
2021
2022  CC=$ac_ct_CC
2023fi
2024
2025
2026test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2027See \`config.log' for more details." >&5
2028echo "$as_me: error: no acceptable C compiler found in \$PATH
2029See \`config.log' for more details." >&2;}
2030   { (exit 1); exit 1; }; }
2031
2032# Provide some information about the compiler.
2033echo "$as_me:$LINENO:" \
2034     "checking for C compiler version" >&5
2035ac_compiler=`set X $ac_compile; echo $2`
2036{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2037  (eval $ac_compiler --version </dev/null >&5) 2>&5
2038  ac_status=$?
2039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040  (exit $ac_status); }
2041{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2042  (eval $ac_compiler -v </dev/null >&5) 2>&5
2043  ac_status=$?
2044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045  (exit $ac_status); }
2046{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2047  (eval $ac_compiler -V </dev/null >&5) 2>&5
2048  ac_status=$?
2049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050  (exit $ac_status); }
2051
2052cat >conftest.$ac_ext <<_ACEOF
2053/* confdefs.h.  */
2054_ACEOF
2055cat confdefs.h >>conftest.$ac_ext
2056cat >>conftest.$ac_ext <<_ACEOF
2057/* end confdefs.h.  */
2058
2059int
2060main ()
2061{
2062
2063  ;
2064  return 0;
2065}
2066_ACEOF
2067ac_clean_files_save=$ac_clean_files
2068ac_clean_files="$ac_clean_files a.out a.exe b.out"
2069# Try to create an executable without -o first, disregard a.out.
2070# It will help us diagnose broken compilers, and finding out an intuition
2071# of exeext.
2072echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2073echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2074ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2075if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2076  (eval $ac_link_default) 2>&5
2077  ac_status=$?
2078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079  (exit $ac_status); }; then
2080  # Find the output, starting from the most likely.  This scheme is
2081# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2082# resort.
2083
2084# Be careful to initialize this variable, since it used to be cached.
2085# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2086ac_cv_exeext=
2087# b.out is created by i960 compilers.
2088for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2089do
2090  test -f "$ac_file" || continue
2091  case $ac_file in
2092    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2093        ;;
2094    conftest.$ac_ext )
2095        # This is the source file.
2096        ;;
2097    [ab].out )
2098        # We found the default executable, but exeext='' is most
2099        # certainly right.
2100        break;;
2101    *.* )
2102        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2103        # FIXME: I believe we export ac_cv_exeext for Libtool,
2104        # but it would be cool to find out if it's true.  Does anybody
2105        # maintain Libtool? --akim.
2106        export ac_cv_exeext
2107        break;;
2108    * )
2109        break;;
2110  esac
2111done
2112else
2113  echo "$as_me: failed program was:" >&5
2114sed 's/^/| /' conftest.$ac_ext >&5
2115
2116{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2117See \`config.log' for more details." >&5
2118echo "$as_me: error: C compiler cannot create executables
2119See \`config.log' for more details." >&2;}
2120   { (exit 77); exit 77; }; }
2121fi
2122
2123ac_exeext=$ac_cv_exeext
2124echo "$as_me:$LINENO: result: $ac_file" >&5
2125echo "${ECHO_T}$ac_file" >&6
2126
2127# Check the compiler produces executables we can run.  If not, either
2128# the compiler is broken, or we cross compile.
2129echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2130echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2131# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2132# If not cross compiling, check that we can run a simple program.
2133if test "$cross_compiling" != yes; then
2134  if { ac_try='./$ac_file'
2135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136  (eval $ac_try) 2>&5
2137  ac_status=$?
2138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139  (exit $ac_status); }; }; then
2140    cross_compiling=no
2141  else
2142    if test "$cross_compiling" = maybe; then
2143        cross_compiling=yes
2144    else
2145        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2146If you meant to cross compile, use \`--host'.
2147See \`config.log' for more details." >&5
2148echo "$as_me: error: cannot run C compiled programs.
2149If you meant to cross compile, use \`--host'.
2150See \`config.log' for more details." >&2;}
2151   { (exit 1); exit 1; }; }
2152    fi
2153  fi
2154fi
2155echo "$as_me:$LINENO: result: yes" >&5
2156echo "${ECHO_T}yes" >&6
2157
2158rm -f a.out a.exe conftest$ac_cv_exeext b.out
2159ac_clean_files=$ac_clean_files_save
2160# Check the compiler produces executables we can run.  If not, either
2161# the compiler is broken, or we cross compile.
2162echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2163echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2164echo "$as_me:$LINENO: result: $cross_compiling" >&5
2165echo "${ECHO_T}$cross_compiling" >&6
2166
2167echo "$as_me:$LINENO: checking for suffix of executables" >&5
2168echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2170  (eval $ac_link) 2>&5
2171  ac_status=$?
2172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173  (exit $ac_status); }; then
2174  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2175# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2176# work properly (i.e., refer to `conftest.exe'), while it won't with
2177# `rm'.
2178for ac_file in conftest.exe conftest conftest.*; do
2179  test -f "$ac_file" || continue
2180  case $ac_file in
2181    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2182    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183          export ac_cv_exeext
2184          break;;
2185    * ) break;;
2186  esac
2187done
2188else
2189  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2190See \`config.log' for more details." >&5
2191echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2192See \`config.log' for more details." >&2;}
2193   { (exit 1); exit 1; }; }
2194fi
2195
2196rm -f conftest$ac_cv_exeext
2197echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2198echo "${ECHO_T}$ac_cv_exeext" >&6
2199
2200rm -f conftest.$ac_ext
2201EXEEXT=$ac_cv_exeext
2202ac_exeext=$EXEEXT
2203echo "$as_me:$LINENO: checking for suffix of object files" >&5
2204echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2205if test "${ac_cv_objext+set}" = set; then
2206  echo $ECHO_N "(cached) $ECHO_C" >&6
2207else
2208  cat >conftest.$ac_ext <<_ACEOF
2209/* confdefs.h.  */
2210_ACEOF
2211cat confdefs.h >>conftest.$ac_ext
2212cat >>conftest.$ac_ext <<_ACEOF
2213/* end confdefs.h.  */
2214
2215int
2216main ()
2217{
2218
2219  ;
2220  return 0;
2221}
2222_ACEOF
2223rm -f conftest.o conftest.obj
2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225  (eval $ac_compile) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }; then
2229  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2230  case $ac_file in
2231    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2232    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2233       break;;
2234  esac
2235done
2236else
2237  echo "$as_me: failed program was:" >&5
2238sed 's/^/| /' conftest.$ac_ext >&5
2239
2240{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2241See \`config.log' for more details." >&5
2242echo "$as_me: error: cannot compute suffix of object files: cannot compile
2243See \`config.log' for more details." >&2;}
2244   { (exit 1); exit 1; }; }
2245fi
2246
2247rm -f conftest.$ac_cv_objext conftest.$ac_ext
2248fi
2249echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2250echo "${ECHO_T}$ac_cv_objext" >&6
2251OBJEXT=$ac_cv_objext
2252ac_objext=$OBJEXT
2253echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2254echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2255if test "${ac_cv_c_compiler_gnu+set}" = set; then
2256  echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258  cat >conftest.$ac_ext <<_ACEOF
2259/* confdefs.h.  */
2260_ACEOF
2261cat confdefs.h >>conftest.$ac_ext
2262cat >>conftest.$ac_ext <<_ACEOF
2263/* end confdefs.h.  */
2264
2265int
2266main ()
2267{
2268#ifndef __GNUC__
2269       choke me
2270#endif
2271
2272  ;
2273  return 0;
2274}
2275_ACEOF
2276rm -f conftest.$ac_objext
2277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278  (eval $ac_compile) 2>conftest.er1
2279  ac_status=$?
2280  grep -v '^ *+' conftest.er1 >conftest.err
2281  rm -f conftest.er1
2282  cat conftest.err >&5
2283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284  (exit $ac_status); } &&
2285         { ac_try='test -z "$ac_c_werror_flag"
2286                         || test ! -s conftest.err'
2287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288  (eval $ac_try) 2>&5
2289  ac_status=$?
2290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291  (exit $ac_status); }; } &&
2292         { ac_try='test -s conftest.$ac_objext'
2293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294  (eval $ac_try) 2>&5
2295  ac_status=$?
2296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297  (exit $ac_status); }; }; then
2298  ac_compiler_gnu=yes
2299else
2300  echo "$as_me: failed program was:" >&5
2301sed 's/^/| /' conftest.$ac_ext >&5
2302
2303ac_compiler_gnu=no
2304fi
2305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2306ac_cv_c_compiler_gnu=$ac_compiler_gnu
2307
2308fi
2309echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2310echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2311GCC=`test $ac_compiler_gnu = yes && echo yes`
2312ac_test_CFLAGS=${CFLAGS+set}
2313ac_save_CFLAGS=$CFLAGS
2314CFLAGS="-g"
2315echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2316echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2317if test "${ac_cv_prog_cc_g+set}" = set; then
2318  echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320  cat >conftest.$ac_ext <<_ACEOF
2321/* confdefs.h.  */
2322_ACEOF
2323cat confdefs.h >>conftest.$ac_ext
2324cat >>conftest.$ac_ext <<_ACEOF
2325/* end confdefs.h.  */
2326
2327int
2328main ()
2329{
2330
2331  ;
2332  return 0;
2333}
2334_ACEOF
2335rm -f conftest.$ac_objext
2336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337  (eval $ac_compile) 2>conftest.er1
2338  ac_status=$?
2339  grep -v '^ *+' conftest.er1 >conftest.err
2340  rm -f conftest.er1
2341  cat conftest.err >&5
2342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343  (exit $ac_status); } &&
2344         { ac_try='test -z "$ac_c_werror_flag"
2345                         || test ! -s conftest.err'
2346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347  (eval $ac_try) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; } &&
2351         { ac_try='test -s conftest.$ac_objext'
2352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353  (eval $ac_try) 2>&5
2354  ac_status=$?
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); }; }; then
2357  ac_cv_prog_cc_g=yes
2358else
2359  echo "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362ac_cv_prog_cc_g=no
2363fi
2364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2365fi
2366echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2367echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2368if test "$ac_test_CFLAGS" = set; then
2369  CFLAGS=$ac_save_CFLAGS
2370elif test $ac_cv_prog_cc_g = yes; then
2371  if test "$GCC" = yes; then
2372    CFLAGS="-g -O2"
2373  else
2374    CFLAGS="-g"
2375  fi
2376else
2377  if test "$GCC" = yes; then
2378    CFLAGS="-O2"
2379  else
2380    CFLAGS=
2381  fi
2382fi
2383echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2384echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2385if test "${ac_cv_prog_cc_stdc+set}" = set; then
2386  echo $ECHO_N "(cached) $ECHO_C" >&6
2387else
2388  ac_cv_prog_cc_stdc=no
2389ac_save_CC=$CC
2390cat >conftest.$ac_ext <<_ACEOF
2391/* confdefs.h.  */
2392_ACEOF
2393cat confdefs.h >>conftest.$ac_ext
2394cat >>conftest.$ac_ext <<_ACEOF
2395/* end confdefs.h.  */
2396#include <stdarg.h>
2397#include <stdio.h>
2398#include <sys/types.h>
2399#include <sys/stat.h>
2400/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2401struct buf { int x; };
2402FILE * (*rcsopen) (struct buf *, struct stat *, int);
2403static char *e (p, i)
2404     char **p;
2405     int i;
2406{
2407  return p[i];
2408}
2409static char *f (char * (*g) (char **, int), char **p, ...)
2410{
2411  char *s;
2412  va_list v;
2413  va_start (v,p);
2414  s = g (p, va_arg (v,int));
2415  va_end (v);
2416  return s;
2417}
2418
2419/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2420   function prototypes and stuff, but not '\xHH' hex character constants.
2421   These don't provoke an error unfortunately, instead are silently treated
2422   as 'x'.  The following induces an error, until -std1 is added to get
2423   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2424   array size at least.  It's necessary to write '\x00'==0 to get something
2425   that's true only with -std1.  */
2426int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2427
2428int test (int i, double x);
2429struct s1 {int (*f) (int a);};
2430struct s2 {int (*f) (double a);};
2431int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2432int argc;
2433char **argv;
2434int
2435main ()
2436{
2437return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442# Don't try gcc -ansi; that turns off useful extensions and
2443# breaks some systems' header files.
2444# AIX                   -qlanglvl=ansi
2445# Ultrix and OSF/1      -std1
2446# HP-UX 10.20 and later -Ae
2447# HP-UX older versions  -Aa -D_HPUX_SOURCE
2448# SVR4                  -Xc -D__EXTENSIONS__
2449for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2450do
2451  CC="$ac_save_CC $ac_arg"
2452  rm -f conftest.$ac_objext
2453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454  (eval $ac_compile) 2>conftest.er1
2455  ac_status=$?
2456  grep -v '^ *+' conftest.er1 >conftest.err
2457  rm -f conftest.er1
2458  cat conftest.err >&5
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); } &&
2461         { ac_try='test -z "$ac_c_werror_flag"
2462                         || test ! -s conftest.err'
2463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464  (eval $ac_try) 2>&5
2465  ac_status=$?
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); }; } &&
2468         { ac_try='test -s conftest.$ac_objext'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; }; then
2474  ac_cv_prog_cc_stdc=$ac_arg
2475break
2476else
2477  echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480fi
2481rm -f conftest.err conftest.$ac_objext
2482done
2483rm -f conftest.$ac_ext conftest.$ac_objext
2484CC=$ac_save_CC
2485
2486fi
2487
2488case "x$ac_cv_prog_cc_stdc" in
2489  x|xno)
2490    echo "$as_me:$LINENO: result: none needed" >&5
2491echo "${ECHO_T}none needed" >&6 ;;
2492  *)
2493    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2494echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2495    CC="$CC $ac_cv_prog_cc_stdc" ;;
2496esac
2497
2498# Some people use a C++ compiler to compile C.  Since we use `exit',
2499# in C++ we need to declare it.  In case someone uses the same compiler
2500# for both compiling C and C++ we need to have the C++ compiler decide
2501# the declaration of exit, since it's the most demanding environment.
2502cat >conftest.$ac_ext <<_ACEOF
2503#ifndef __cplusplus
2504  choke me
2505#endif
2506_ACEOF
2507rm -f conftest.$ac_objext
2508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509  (eval $ac_compile) 2>conftest.er1
2510  ac_status=$?
2511  grep -v '^ *+' conftest.er1 >conftest.err
2512  rm -f conftest.er1
2513  cat conftest.err >&5
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); } &&
2516         { ac_try='test -z "$ac_c_werror_flag"
2517                         || test ! -s conftest.err'
2518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519  (eval $ac_try) 2>&5
2520  ac_status=$?
2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522  (exit $ac_status); }; } &&
2523         { ac_try='test -s conftest.$ac_objext'
2524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525  (eval $ac_try) 2>&5
2526  ac_status=$?
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); }; }; then
2529  for ac_declaration in \
2530   '' \
2531   'extern "C" void std::exit (int) throw (); using std::exit;' \
2532   'extern "C" void std::exit (int); using std::exit;' \
2533   'extern "C" void exit (int) throw ();' \
2534   'extern "C" void exit (int);' \
2535   'void exit (int);'
2536do
2537  cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h.  */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h.  */
2543$ac_declaration
2544#include <stdlib.h>
2545int
2546main ()
2547{
2548exit (42);
2549  ;
2550  return 0;
2551}
2552_ACEOF
2553rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555  (eval $ac_compile) 2>conftest.er1
2556  ac_status=$?
2557  grep -v '^ *+' conftest.er1 >conftest.err
2558  rm -f conftest.er1
2559  cat conftest.err >&5
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); } &&
2562         { ac_try='test -z "$ac_c_werror_flag"
2563                         || test ! -s conftest.err'
2564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565  (eval $ac_try) 2>&5
2566  ac_status=$?
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); }; } &&
2569         { ac_try='test -s conftest.$ac_objext'
2570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571  (eval $ac_try) 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); }; }; then
2575  :
2576else
2577  echo "$as_me: failed program was:" >&5
2578sed 's/^/| /' conftest.$ac_ext >&5
2579
2580continue
2581fi
2582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583  cat >conftest.$ac_ext <<_ACEOF
2584/* confdefs.h.  */
2585_ACEOF
2586cat confdefs.h >>conftest.$ac_ext
2587cat >>conftest.$ac_ext <<_ACEOF
2588/* end confdefs.h.  */
2589$ac_declaration
2590int
2591main ()
2592{
2593exit (42);
2594  ;
2595  return 0;
2596}
2597_ACEOF
2598rm -f conftest.$ac_objext
2599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600  (eval $ac_compile) 2>conftest.er1
2601  ac_status=$?
2602  grep -v '^ *+' conftest.er1 >conftest.err
2603  rm -f conftest.er1
2604  cat conftest.err >&5
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); } &&
2607         { ac_try='test -z "$ac_c_werror_flag"
2608                         || test ! -s conftest.err'
2609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610  (eval $ac_try) 2>&5
2611  ac_status=$?
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); }; } &&
2614         { ac_try='test -s conftest.$ac_objext'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; }; then
2620  break
2621else
2622  echo "$as_me: failed program was:" >&5
2623sed 's/^/| /' conftest.$ac_ext >&5
2624
2625fi
2626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2627done
2628rm -f conftest*
2629if test -n "$ac_declaration"; then
2630  echo '#ifdef __cplusplus' >>confdefs.h
2631  echo $ac_declaration      >>confdefs.h
2632  echo '#endif'             >>confdefs.h
2633fi
2634
2635else
2636  echo "$as_me: failed program was:" >&5
2637sed 's/^/| /' conftest.$ac_ext >&5
2638
2639fi
2640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641ac_ext=c
2642ac_cpp='$CPP $CPPFLAGS'
2643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645ac_compiler_gnu=$ac_cv_c_compiler_gnu
2646
2647if test -z "$CC" ; then
2648  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2649echo "$as_me: error: Failed to find a C compiler!" >&2;}
2650   { (exit 1); exit 1; }; }
2651fi
2652# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2653case "$CC" in
2654  cl* | */cl* | CL* | */CL* )
2655    if test "$ac_cv_prog_cc_g" = yes ; then
2656      ac_cv_prog_cc_g=no
2657      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2658echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2659    fi ;;
2660esac
2661CFLAGS="$save_cflags"
2662
2663# Check if a project specific CFLAGS variable has been set
2664if test x$COIN_PRJCT != x; then
2665  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2666  if test x$coin_tmp = xset; then
2667    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2668  fi
2669fi
2670
2671if test x"$CFLAGS" = x; then
2672
2673  coin_add_cflags=
2674  coin_opt_cflags=
2675  coin_dbg_cflags=
2676  coin_warn_cflags=
2677
2678  if test "$GCC" = "yes"; then
2679    case "$CC" in
2680      icc* | */icc*)
2681        ;;
2682      *)
2683        coin_opt_cflags="-O3"
2684        coin_add_cflags="-pipe"
2685        coin_dbg_cflags="-g"
2686        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2687        case $build in
2688          *-darwin*)
2689            ;;
2690          *)
2691            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2692            ;;
2693        esac
2694        case $enable_doscompile in
2695          mingw)
2696            CFLAGS="-mno-cygwin"
2697            cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h.  */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h.  */
2703
2704int
2705main ()
2706{
2707int i=0; i++;
2708  ;
2709  return 0;
2710}
2711_ACEOF
2712rm -f conftest.$ac_objext conftest$ac_exeext
2713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2714  (eval $ac_link) 2>conftest.er1
2715  ac_status=$?
2716  grep -v '^ *+' conftest.er1 >conftest.err
2717  rm -f conftest.er1
2718  cat conftest.err >&5
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); } &&
2721         { ac_try='test -z "$ac_c_werror_flag"
2722                         || test ! -s conftest.err'
2723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724  (eval $ac_try) 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }; } &&
2728         { ac_try='test -s conftest$ac_exeext'
2729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730  (eval $ac_try) 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }; }; then
2734  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2735else
2736  echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739fi
2740rm -f conftest.err conftest.$ac_objext \
2741      conftest$ac_exeext conftest.$ac_ext
2742            CFLAGS=
2743          ;;
2744        esac
2745    esac
2746  fi
2747  if test -z "$coin_opt_cflags"; then
2748    case $build in
2749      *-cygwin* | *-mingw*)
2750        case "$CC" in
2751          cl* | */cl* | CL* | */CL*)
2752            coin_opt_cflags='-MT -O2'
2753            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2754            coin_dbg_cflags='-MTd'
2755            ;;
2756          icl* | */icl* | ICL* | */ICL*)
2757            coin_opt_cflags='-MT -Ox'
2758            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2759            coin_dbg_cflags='-MTd -debug'
2760            ;;
2761        esac
2762        ;;
2763      *-linux-*)
2764        case "$CC" in
2765          icc* | */icc*)
2766            coin_opt_cflags="-O3 -ip -mp1"
2767            coin_add_cflags=""
2768            coin_dbg_cflags="-g"
2769            # Check if -i_dynamic is necessary (for new glibc library)
2770            CFLAGS=
2771            cat >conftest.$ac_ext <<_ACEOF
2772/* confdefs.h.  */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
2776/* end confdefs.h.  */
2777
2778int
2779main ()
2780{
2781int i=0; i++;
2782  ;
2783  return 0;
2784}
2785_ACEOF
2786rm -f conftest.$ac_objext conftest$ac_exeext
2787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2788  (eval $ac_link) 2>conftest.er1
2789  ac_status=$?
2790  grep -v '^ *+' conftest.er1 >conftest.err
2791  rm -f conftest.er1
2792  cat conftest.err >&5
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); } &&
2795         { ac_try='test -z "$ac_c_werror_flag"
2796                         || test ! -s conftest.err'
2797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798  (eval $ac_try) 2>&5
2799  ac_status=$?
2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801  (exit $ac_status); }; } &&
2802         { ac_try='test -s conftest$ac_exeext'
2803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804  (eval $ac_try) 2>&5
2805  ac_status=$?
2806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807  (exit $ac_status); }; }; then
2808  :
2809else
2810  echo "$as_me: failed program was:" >&5
2811sed 's/^/| /' conftest.$ac_ext >&5
2812
2813coin_add_cflags="-i_dynamic $coin_add_cflags"
2814fi
2815rm -f conftest.err conftest.$ac_objext \
2816      conftest$ac_exeext conftest.$ac_ext
2817            ;;
2818          pgcc* | */pgcc*)
2819            coin_opt_cflags="-fast"
2820            coin_add_cflags="-Kieee -pc 64"
2821            coin_dbg_cflags="-g"
2822            ;;
2823        esac
2824        ;;
2825      *-ibm-*)
2826        case "$CC" in
2827          xlc* | */xlc* | mpxlc* | */mpxlc*)
2828            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2829            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2830            coin_dbg_cflags="-g"
2831          ;;
2832        esac
2833        ;;
2834      *-hp-*)
2835        coin_opt_cflags="-O"
2836        coin_add_cflags="-Ae"
2837        coin_dbg_cflags="-g"
2838        ;;
2839      *-*-solaris*)
2840        coin_opt_cflags="-xO4"
2841        coin_dbg_cflags="-g"
2842        ;;
2843      *-sgi-*)
2844        coin_opt_cflags="-O -OPT:Olimit=0"
2845        coin_dbg_cflags="-g"
2846        ;;
2847    esac
2848  fi
2849
2850  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2851    coin_dbg_cflags="-g"
2852  fi
2853
2854  if test -z "$coin_opt_cflags"; then
2855    # Try if -O option works if nothing else is set
2856    CFLAGS="-O"
2857    cat >conftest.$ac_ext <<_ACEOF
2858/* confdefs.h.  */
2859_ACEOF
2860cat confdefs.h >>conftest.$ac_ext
2861cat >>conftest.$ac_ext <<_ACEOF
2862/* end confdefs.h.  */
2863
2864int
2865main ()
2866{
2867int i=0; i++;
2868  ;
2869  return 0;
2870}
2871_ACEOF
2872rm -f conftest.$ac_objext conftest$ac_exeext
2873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2874  (eval $ac_link) 2>conftest.er1
2875  ac_status=$?
2876  grep -v '^ *+' conftest.er1 >conftest.err
2877  rm -f conftest.er1
2878  cat conftest.err >&5
2879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880  (exit $ac_status); } &&
2881         { ac_try='test -z "$ac_c_werror_flag"
2882                         || test ! -s conftest.err'
2883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884  (eval $ac_try) 2>&5
2885  ac_status=$?
2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887  (exit $ac_status); }; } &&
2888         { ac_try='test -s conftest$ac_exeext'
2889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890  (eval $ac_try) 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }; }; then
2894  coin_opt_cflags="-O"
2895else
2896  echo "$as_me: failed program was:" >&5
2897sed 's/^/| /' conftest.$ac_ext >&5
2898
2899fi
2900rm -f conftest.err conftest.$ac_objext \
2901      conftest$ac_exeext conftest.$ac_ext
2902  fi
2903
2904  # if PM doesn't want the warning messages, take them out
2905  if test x"$coin_skip_warn_cflags" = xyes; then
2906    coin_warn_cflags=
2907  fi
2908
2909  if test x${DBG_CFLAGS+set} != xset; then
2910    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2911  fi
2912  if test x${OPT_CFLAGS+set} != xset; then
2913    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2914  fi
2915
2916  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2917  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2918
2919  if test "$coin_debug_compile" = "true"; then
2920    CFLAGS="$DBG_CFLAGS"
2921  else
2922    CFLAGS="$OPT_CFLAGS"
2923  fi
2924else
2925  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2926  if test x${DBG_CFLAGS+set} != xset; then
2927    DBG_CFLAGS="$CFLAGS"
2928  fi
2929  if test x${OPT_CFLAGS+set} != xset; then
2930    OPT_CFLAGS="$CFLAGS"
2931  fi
2932fi
2933
2934# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2935
2936case "$CFLAGS" in
2937  *-mno-cygwin*)
2938    if test x${CPPFLAGS+set} != xset ; then
2939      CPPFLAGS="-mno-cygwin"
2940    else
2941      case "$CPPFLAGS" in
2942        *-mno-cygwin*)
2943          ;;
2944        *)
2945          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2946          ;;
2947      esac
2948    fi ;;
2949esac
2950
2951# Try if CFLAGS works
2952save_CFLAGS="$CFLAGS"
2953cat >conftest.$ac_ext <<_ACEOF
2954/* confdefs.h.  */
2955_ACEOF
2956cat confdefs.h >>conftest.$ac_ext
2957cat >>conftest.$ac_ext <<_ACEOF
2958/* end confdefs.h.  */
2959
2960int
2961main ()
2962{
2963int i=0; i++;
2964  ;
2965  return 0;
2966}
2967_ACEOF
2968rm -f conftest.$ac_objext conftest$ac_exeext
2969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2970  (eval $ac_link) 2>conftest.er1
2971  ac_status=$?
2972  grep -v '^ *+' conftest.er1 >conftest.err
2973  rm -f conftest.er1
2974  cat conftest.err >&5
2975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976  (exit $ac_status); } &&
2977         { ac_try='test -z "$ac_c_werror_flag"
2978                         || test ! -s conftest.err'
2979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980  (eval $ac_try) 2>&5
2981  ac_status=$?
2982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983  (exit $ac_status); }; } &&
2984         { ac_try='test -s conftest$ac_exeext'
2985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986  (eval $ac_try) 2>&5
2987  ac_status=$?
2988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989  (exit $ac_status); }; }; then
2990  :
2991else
2992  echo "$as_me: failed program was:" >&5
2993sed 's/^/| /' conftest.$ac_ext >&5
2994
2995CFLAGS=
2996fi
2997rm -f conftest.err conftest.$ac_objext \
2998      conftest$ac_exeext conftest.$ac_ext
2999if test -z "$CFLAGS"; then
3000  { 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
3001echo "$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;}
3002  CFLAGS='-O'
3003  cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h.  */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h.  */
3009
3010int
3011main ()
3012{
3013int i=0; i++;
3014  ;
3015  return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext conftest$ac_exeext
3019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020  (eval $ac_link) 2>conftest.er1
3021  ac_status=$?
3022  grep -v '^ *+' conftest.er1 >conftest.err
3023  rm -f conftest.er1
3024  cat conftest.err >&5
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); } &&
3027         { ac_try='test -z "$ac_c_werror_flag"
3028                         || test ! -s conftest.err'
3029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030  (eval $ac_try) 2>&5
3031  ac_status=$?
3032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033  (exit $ac_status); }; } &&
3034         { ac_try='test -s conftest$ac_exeext'
3035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036  (eval $ac_try) 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }; }; then
3040  :
3041else
3042  echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
3045CFLAGS=
3046fi
3047rm -f conftest.err conftest.$ac_objext \
3048      conftest$ac_exeext conftest.$ac_ext
3049  if test -z "$CFLAGS"; then
3050    { 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
3051echo "$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;}
3052  fi
3053fi
3054
3055{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3056echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3057
3058
3059if test x"$MPICC" = x; then :; else
3060  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3061echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3062  CC="$MPICC"
3063fi
3064
3065# Correct ADDLIBS initialization if we are using the MS compiler
3066case "$CC" in
3067  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3068    ADDLIBS=
3069    case $build in
3070  *-mingw*)
3071    if test "${LD+set}" = set; then :; else
3072      LD=link
3073    fi
3074    ;;
3075 esac
3076 case $enable_doscompile in
3077   msvc)
3078     if test "x${LD+set}" = xset; then :; else
3079       LD=link
3080     fi
3081     ;;
3082 esac
3083
3084    ;;
3085esac
3086
3087ac_ext=c
3088ac_cpp='$CPP $CPPFLAGS'
3089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092
3093
3094
3095# Get the name of the C++ compiler and appropriate compiler options
3096
3097 #Let's try if that overcomes configuration problem with VC++ 6.0
3098
3099ac_ext=cc
3100ac_cpp='$CXXCPP $CPPFLAGS'
3101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3104
3105
3106
3107
3108
3109
3110
3111coin_has_cxx=yes
3112
3113save_cxxflags="$CXXFLAGS"
3114# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3115case $build in
3116  *-cygwin* | *-mingw*)
3117             if test "$enable_doscompile" = msvc ; then
3118               comps="icl cl"
3119             else
3120               comps="g++ cl"
3121             fi ;;
3122  *-*-solaris*)
3123             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3124  *-darwin*) comps="g++ c++ CC" ;;
3125          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3126esac
3127
3128# We delete the cached value, since the test might not have been
3129# performed with our choice of compilers earlier
3130$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3131# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3132ac_ext=cc
3133ac_cpp='$CXXCPP $CPPFLAGS'
3134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3137if test -n "$ac_tool_prefix"; then
3138  for ac_prog in $CCC $comps
3139  do
3140    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3141set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3142echo "$as_me:$LINENO: checking for $ac_word" >&5
3143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144if test "${ac_cv_prog_CXX+set}" = set; then
3145  echo $ECHO_N "(cached) $ECHO_C" >&6
3146else
3147  if test -n "$CXX"; then
3148  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3149else
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153  IFS=$as_save_IFS
3154  test -z "$as_dir" && as_dir=.
3155  for ac_exec_ext in '' $ac_executable_extensions; do
3156  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159    break 2
3160  fi
3161done
3162done
3163
3164fi
3165fi
3166CXX=$ac_cv_prog_CXX
3167if test -n "$CXX"; then
3168  echo "$as_me:$LINENO: result: $CXX" >&5
3169echo "${ECHO_T}$CXX" >&6
3170else
3171  echo "$as_me:$LINENO: result: no" >&5
3172echo "${ECHO_T}no" >&6
3173fi
3174
3175    test -n "$CXX" && break
3176  done
3177fi
3178if test -z "$CXX"; then
3179  ac_ct_CXX=$CXX
3180  for ac_prog in $CCC $comps
3181do
3182  # Extract the first word of "$ac_prog", so it can be a program name with args.
3183set dummy $ac_prog; ac_word=$2
3184echo "$as_me:$LINENO: checking for $ac_word" >&5
3185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3186if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3187  echo $ECHO_N "(cached) $ECHO_C" >&6
3188else
3189  if test -n "$ac_ct_CXX"; then
3190  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3191else
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197  for ac_exec_ext in '' $ac_executable_extensions; do
3198  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199    ac_cv_prog_ac_ct_CXX="$ac_prog"
3200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201    break 2
3202  fi
3203done
3204done
3205
3206fi
3207fi
3208ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3209if test -n "$ac_ct_CXX"; then
3210  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3211echo "${ECHO_T}$ac_ct_CXX" >&6
3212else
3213  echo "$as_me:$LINENO: result: no" >&5
3214echo "${ECHO_T}no" >&6
3215fi
3216
3217  test -n "$ac_ct_CXX" && break
3218done
3219test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3220
3221  CXX=$ac_ct_CXX
3222fi
3223
3224
3225# Provide some information about the compiler.
3226echo "$as_me:$LINENO:" \
3227     "checking for C++ compiler version" >&5
3228ac_compiler=`set X $ac_compile; echo $2`
3229{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3230  (eval $ac_compiler --version </dev/null >&5) 2>&5
3231  ac_status=$?
3232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233  (exit $ac_status); }
3234{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3235  (eval $ac_compiler -v </dev/null >&5) 2>&5
3236  ac_status=$?
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); }
3239{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3240  (eval $ac_compiler -V </dev/null >&5) 2>&5
3241  ac_status=$?
3242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243  (exit $ac_status); }
3244
3245echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3246echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3247if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3248  echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250  cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h.  */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h.  */
3256
3257int
3258main ()
3259{
3260#ifndef __GNUC__
3261       choke me
3262#endif
3263
3264  ;
3265  return 0;
3266}
3267_ACEOF
3268rm -f conftest.$ac_objext
3269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270  (eval $ac_compile) 2>conftest.er1
3271  ac_status=$?
3272  grep -v '^ *+' conftest.er1 >conftest.err
3273  rm -f conftest.er1
3274  cat conftest.err >&5
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); } &&
3277         { ac_try='test -z "$ac_cxx_werror_flag"
3278                         || test ! -s conftest.err'
3279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280  (eval $ac_try) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }; } &&
3284         { ac_try='test -s conftest.$ac_objext'
3285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286  (eval $ac_try) 2>&5
3287  ac_status=$?
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); }; }; then
3290  ac_compiler_gnu=yes
3291else
3292  echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295ac_compiler_gnu=no
3296fi
3297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3298ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3299
3300fi
3301echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3302echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3303GXX=`test $ac_compiler_gnu = yes && echo yes`
3304ac_test_CXXFLAGS=${CXXFLAGS+set}
3305ac_save_CXXFLAGS=$CXXFLAGS
3306CXXFLAGS="-g"
3307echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3308echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3309if test "${ac_cv_prog_cxx_g+set}" = set; then
3310  echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312  cat >conftest.$ac_ext <<_ACEOF
3313/* confdefs.h.  */
3314_ACEOF
3315cat confdefs.h >>conftest.$ac_ext
3316cat >>conftest.$ac_ext <<_ACEOF
3317/* end confdefs.h.  */
3318
3319int
3320main ()
3321{
3322
3323  ;
3324  return 0;
3325}
3326_ACEOF
3327rm -f conftest.$ac_objext
3328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3329  (eval $ac_compile) 2>conftest.er1
3330  ac_status=$?
3331  grep -v '^ *+' conftest.er1 >conftest.err
3332  rm -f conftest.er1
3333  cat conftest.err >&5
3334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); } &&
3336         { ac_try='test -z "$ac_cxx_werror_flag"
3337                         || test ! -s conftest.err'
3338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339  (eval $ac_try) 2>&5
3340  ac_status=$?
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); }; } &&
3343         { ac_try='test -s conftest.$ac_objext'
3344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345  (eval $ac_try) 2>&5
3346  ac_status=$?
3347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348  (exit $ac_status); }; }; then
3349  ac_cv_prog_cxx_g=yes
3350else
3351  echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354ac_cv_prog_cxx_g=no
3355fi
3356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3357fi
3358echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3359echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3360if test "$ac_test_CXXFLAGS" = set; then
3361  CXXFLAGS=$ac_save_CXXFLAGS
3362elif test $ac_cv_prog_cxx_g = yes; then
3363  if test "$GXX" = yes; then
3364    CXXFLAGS="-g -O2"
3365  else
3366    CXXFLAGS="-g"
3367  fi
3368else
3369  if test "$GXX" = yes; then
3370    CXXFLAGS="-O2"
3371  else
3372    CXXFLAGS=
3373  fi
3374fi
3375for ac_declaration in \
3376   '' \
3377   'extern "C" void std::exit (int) throw (); using std::exit;' \
3378   'extern "C" void std::exit (int); using std::exit;' \
3379   'extern "C" void exit (int) throw ();' \
3380   'extern "C" void exit (int);' \
3381   'void exit (int);'
3382do
3383  cat >conftest.$ac_ext <<_ACEOF
3384/* confdefs.h.  */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
3388/* end confdefs.h.  */
3389$ac_declaration
3390#include <stdlib.h>
3391int
3392main ()
3393{
3394exit (42);
3395  ;
3396  return 0;
3397}
3398_ACEOF
3399rm -f conftest.$ac_objext
3400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401  (eval $ac_compile) 2>conftest.er1
3402  ac_status=$?
3403  grep -v '^ *+' conftest.er1 >conftest.err
3404  rm -f conftest.er1
3405  cat conftest.err >&5
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); } &&
3408         { ac_try='test -z "$ac_cxx_werror_flag"
3409                         || test ! -s conftest.err'
3410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411  (eval $ac_try) 2>&5
3412  ac_status=$?
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); }; } &&
3415         { ac_try='test -s conftest.$ac_objext'
3416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417  (eval $ac_try) 2>&5
3418  ac_status=$?
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); }; }; then
3421  :
3422else
3423  echo "$as_me: failed program was:" >&5
3424sed 's/^/| /' conftest.$ac_ext >&5
3425
3426continue
3427fi
3428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3429  cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h.  */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h.  */
3435$ac_declaration
3436int
3437main ()
3438{
3439exit (42);
3440  ;
3441  return 0;
3442}
3443_ACEOF
3444rm -f conftest.$ac_objext
3445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3446  (eval $ac_compile) 2>conftest.er1
3447  ac_status=$?
3448  grep -v '^ *+' conftest.er1 >conftest.err
3449  rm -f conftest.er1
3450  cat conftest.err >&5
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); } &&
3453         { ac_try='test -z "$ac_cxx_werror_flag"
3454                         || test ! -s conftest.err'
3455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456  (eval $ac_try) 2>&5
3457  ac_status=$?
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); }; } &&
3460         { ac_try='test -s conftest.$ac_objext'
3461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462  (eval $ac_try) 2>&5
3463  ac_status=$?
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); }; }; then
3466  break
3467else
3468  echo "$as_me: failed program was:" >&5
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
3471fi
3472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473done
3474rm -f conftest*
3475if test -n "$ac_declaration"; then
3476  echo '#ifdef __cplusplus' >>confdefs.h
3477  echo $ac_declaration      >>confdefs.h
3478  echo '#endif'             >>confdefs.h
3479fi
3480
3481ac_ext=cc
3482ac_cpp='$CXXCPP $CPPFLAGS'
3483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3486
3487
3488#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3489#thus, we test here whether $CXX is actually working
3490ac_ext=cc
3491ac_cpp='$CXXCPP $CPPFLAGS'
3492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3495
3496echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3497echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3498cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h.  */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h.  */
3504
3505int
3506main ()
3507{
3508int i=0;
3509  ;
3510  return 0;
3511}
3512_ACEOF
3513rm -f conftest.$ac_objext
3514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515  (eval $ac_compile) 2>conftest.er1
3516  ac_status=$?
3517  grep -v '^ *+' conftest.er1 >conftest.err
3518  rm -f conftest.er1
3519  cat conftest.err >&5
3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521  (exit $ac_status); } &&
3522         { ac_try='test -z "$ac_cxx_werror_flag"
3523                         || test ! -s conftest.err'
3524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525  (eval $ac_try) 2>&5
3526  ac_status=$?
3527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528  (exit $ac_status); }; } &&
3529         { ac_try='test -s conftest.$ac_objext'
3530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531  (eval $ac_try) 2>&5
3532  ac_status=$?
3533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534  (exit $ac_status); }; }; then
3535  echo "$as_me:$LINENO: result: yes" >&5
3536echo "${ECHO_T}yes" >&6
3537else
3538  echo "$as_me: failed program was:" >&5
3539sed 's/^/| /' conftest.$ac_ext >&5
3540
3541echo "$as_me:$LINENO: result: no" >&5
3542echo "${ECHO_T}no" >&6
3543   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3544echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3545   { (exit 1); exit 1; }; }
3546
3547fi
3548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3549ac_ext=cc
3550ac_cpp='$CXXCPP $CPPFLAGS'
3551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3554
3555
3556# It seems that we need to cleanup something here for the Windows
3557case "$CXX" in
3558  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3559    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3560    mv confdefs.hh confdefs.h
3561    ;;
3562esac
3563
3564# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3565case "$CXX" in
3566  cl* | */cl* | CL* | */CL* )
3567    if test "$ac_cv_prog_cxx_g" = yes ; then
3568      ac_cv_prog_cxx_g=no
3569      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3570echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3571    fi ;;
3572esac
3573CXXFLAGS="$save_cxxflags"
3574
3575# Check if a project specific CXXFLAGS variable has been set
3576if test x$COIN_PRJCT != x; then
3577  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3578  if test x$coin_tmp = xset; then
3579    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3580  fi
3581fi
3582
3583if test x"$CXXFLAGS" = x; then
3584
3585# ToDo decide whether we want -DNDEBUG for optimization
3586  coin_add_cxxflags=
3587  coin_opt_cxxflags=
3588  coin_dbg_cxxflags=
3589  coin_warn_cxxflags=
3590
3591  if test "$GXX" = "yes"; then
3592    case "$CXX" in
3593      icpc* | */icpc*)
3594        ;;
3595      *)
3596# ToDo decide about unroll-loops
3597        coin_opt_cxxflags="-O3"
3598        coin_add_cxxflags="-pipe"
3599        coin_dbg_cxxflags="-g"
3600        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3601        case $build in
3602          *-darwin*)
3603            ;;
3604          *)
3605            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3606            ;;
3607        esac
3608
3609        case $enable_doscompile in
3610          mingw)
3611            CXXFLAGS="-mno-cygwin"
3612            cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h.  */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h.  */
3618
3619int
3620main ()
3621{
3622int i=0; i++;
3623  ;
3624  return 0;
3625}
3626_ACEOF
3627rm -f conftest.$ac_objext conftest$ac_exeext
3628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3629  (eval $ac_link) 2>conftest.er1
3630  ac_status=$?
3631  grep -v '^ *+' conftest.er1 >conftest.err
3632  rm -f conftest.er1
3633  cat conftest.err >&5
3634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635  (exit $ac_status); } &&
3636         { ac_try='test -z "$ac_cxx_werror_flag"
3637                         || test ! -s conftest.err'
3638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639  (eval $ac_try) 2>&5
3640  ac_status=$?
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); }; } &&
3643         { ac_try='test -s conftest$ac_exeext'
3644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645  (eval $ac_try) 2>&5
3646  ac_status=$?
3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648  (exit $ac_status); }; }; then
3649  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3650else
3651  echo "$as_me: failed program was:" >&5
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654fi
3655rm -f conftest.err conftest.$ac_objext \
3656      conftest$ac_exeext conftest.$ac_ext
3657            CXXFLAGS=
3658          ;;
3659        esac
3660    esac
3661  fi
3662
3663# Note that we do not need to cover GCC in the following tests.
3664
3665  if test -z "$coin_opt_cxxflags"; then
3666    case $build in
3667      *-cygwin* | *-mingw*)
3668        case "$CXX" in
3669          cl* | */cl* | CL* | */CL*)
3670            # The MT and MTd options are mutually exclusive
3671            coin_opt_cxxflags='-MT -O2'
3672            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3673            coin_dbg_cxxflags='-MTd'
3674            ;;
3675          icl* | */icl* | ICL* | */ICL*)
3676            # The MT and MTd options are mutually exclusive
3677            coin_opt_cxxflags='-MT -Ox'
3678            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3679            coin_dbg_cxxflags='-MTd -debug'
3680            ;;
3681        esac
3682        ;;
3683      *-linux-*)
3684        case "$CXX" in
3685          icpc* | */icpc*)
3686            coin_opt_cxxflags="-O3 -ip -mp1"
3687            coin_add_cxxflags=""
3688            coin_dbg_cxxflags="-g"
3689            # Check if -i_dynamic is necessary (for new glibc library)
3690            CXXFLAGS=
3691            cat >conftest.$ac_ext <<_ACEOF
3692/* confdefs.h.  */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h.  */
3697
3698int
3699main ()
3700{
3701int i=0; i++;
3702  ;
3703  return 0;
3704}
3705_ACEOF
3706rm -f conftest.$ac_objext conftest$ac_exeext
3707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708  (eval $ac_link) 2>conftest.er1
3709  ac_status=$?
3710  grep -v '^ *+' conftest.er1 >conftest.err
3711  rm -f conftest.er1
3712  cat conftest.err >&5
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); } &&
3715         { ac_try='test -z "$ac_cxx_werror_flag"
3716                         || test ! -s conftest.err'
3717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718  (eval $ac_try) 2>&5
3719  ac_status=$?
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); }; } &&
3722         { ac_try='test -s conftest$ac_exeext'
3723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724  (eval $ac_try) 2>&5
3725  ac_status=$?
3726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727  (exit $ac_status); }; }; then
3728  :
3729else
3730  echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3734fi
3735rm -f conftest.err conftest.$ac_objext \
3736      conftest$ac_exeext conftest.$ac_ext
3737            ;;
3738          pgCC* | */pgCC*)
3739            coin_opt_cxxflags="-fast"
3740            coin_add_cxxflags="-Kieee -pc 64"
3741            coin_dbg_cxxflags="-g"
3742            ;;
3743        esac
3744        ;;
3745      *-ibm-*)
3746        case "$CXX" in
3747          xlC* | */xlC* | mpxlC* | */mpxlC*)
3748            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3749            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3750            coin_dbg_cxxflags="-g"
3751            ;;
3752        esac
3753        ;;
3754      *-hp-*)
3755        case "$CXX" in
3756          aCC* | */aCC* )
3757            coin_opt_cxxflags="-O"
3758            coin_add_cxxflags="-AA"
3759            coin_dbg_cxxflags="-g"
3760            ;;
3761        esac
3762        ;;
3763      *-*-solaris*)
3764          coin_opt_cxxflags="-O4"
3765          coin_dbg_cxxflags="-g"
3766        ;;
3767    esac
3768  fi
3769
3770# Generic flag settings. If these don't work, add a case above.
3771
3772  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3773    coin_dbg_cxxflags="-g"
3774  fi
3775
3776  if test -z "$coin_opt_cxxflags"; then
3777    # Try if -O option works if nothing else is set
3778    CXXFLAGS=-O
3779    cat >conftest.$ac_ext <<_ACEOF
3780/* confdefs.h.  */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h.  */
3785
3786int
3787main ()
3788{
3789int i=0; i++;
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794rm -f conftest.$ac_objext conftest$ac_exeext
3795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3796  (eval $ac_link) 2>conftest.er1
3797  ac_status=$?
3798  grep -v '^ *+' conftest.er1 >conftest.err
3799  rm -f conftest.er1
3800  cat conftest.err >&5
3801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802  (exit $ac_status); } &&
3803         { ac_try='test -z "$ac_cxx_werror_flag"
3804                         || test ! -s conftest.err'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; } &&
3810         { ac_try='test -s conftest$ac_exeext'
3811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812  (eval $ac_try) 2>&5
3813  ac_status=$?
3814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815  (exit $ac_status); }; }; then
3816  coin_opt_cxxflags="-O"
3817else
3818  echo "$as_me: failed program was:" >&5
3819sed 's/^/| /' conftest.$ac_ext >&5
3820
3821fi
3822rm -f conftest.err conftest.$ac_objext \
3823      conftest$ac_exeext conftest.$ac_ext
3824  fi
3825
3826  # if PM doesn't want the warning messages, take them out
3827  if test x"$coin_skip_warn_cxxflags" = xyes; then
3828    coin_warn_cxxflags=
3829  fi
3830
3831# Do final setup of flags based on values determined above.
3832
3833  if test x${DBG_CXXFLAGS+set} != xset; then
3834    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3835  fi
3836  if test x${OPT_CXXFLAGS+set} != xset; then
3837    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3838  fi
3839
3840  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3841  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3842
3843  if test "$coin_debug_compile" = "true"; then
3844    CXXFLAGS="$DBG_CXXFLAGS"
3845  else
3846    CXXFLAGS="$OPT_CXXFLAGS"
3847  fi
3848
3849# Handle the case where CXXFLAGS was set externally.
3850else
3851  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3852  if test x${DBG_CXXFLAGS+set} != xset; then
3853    DBG_CXXFLAGS="$CXXFLAGS"
3854  fi
3855  if test x${OPT_CXXFLAGS+set} != xset; then
3856    OPT_CXXFLAGS="$CXXFLAGS"
3857  fi
3858fi
3859
3860# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3861
3862case "$CXXFLAGS" in
3863  *-mno-cygwin*)
3864    if test x${CPPFLAGS+set} != xset ; then
3865      CPPFLAGS="-mno-cygwin"
3866    else
3867      case "$CPPFLAGS" in
3868        *-mno-cygwin*)
3869          ;;
3870        *)
3871          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3872          ;;
3873      esac
3874    fi ;;
3875esac
3876
3877# Try if CXXFLAGS works
3878save_CXXFLAGS="$CXXFLAGS"
3879cat >conftest.$ac_ext <<_ACEOF
3880/* confdefs.h.  */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
3884/* end confdefs.h.  */
3885
3886int
3887main ()
3888{
3889int i=0; i++;
3890  ;
3891  return 0;
3892}
3893_ACEOF
3894rm -f conftest.$ac_objext conftest$ac_exeext
3895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896  (eval $ac_link) 2>conftest.er1
3897  ac_status=$?
3898  grep -v '^ *+' conftest.er1 >conftest.err
3899  rm -f conftest.er1
3900  cat conftest.err >&5
3901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902  (exit $ac_status); } &&
3903         { ac_try='test -z "$ac_cxx_werror_flag"
3904                         || test ! -s conftest.err'
3905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906  (eval $ac_try) 2>&5
3907  ac_status=$?
3908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909  (exit $ac_status); }; } &&
3910         { ac_try='test -s conftest$ac_exeext'
3911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912  (eval $ac_try) 2>&5
3913  ac_status=$?
3914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915  (exit $ac_status); }; }; then
3916  :
3917else
3918  echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921CXXFLAGS=
3922fi
3923rm -f conftest.err conftest.$ac_objext \
3924      conftest$ac_exeext conftest.$ac_ext
3925if test -z "$CXXFLAGS"; then
3926  { 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
3927echo "$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;}
3928  CXXFLAGS='-O'
3929  cat >conftest.$ac_ext <<_ACEOF
3930/* confdefs.h.  */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
3934/* end confdefs.h.  */
3935
3936int
3937main ()
3938{
3939int i=0; i++;
3940  ;
3941  return 0;
3942}
3943_ACEOF
3944rm -f conftest.$ac_objext conftest$ac_exeext
3945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946  (eval $ac_link) 2>conftest.er1
3947  ac_status=$?
3948  grep -v '^ *+' conftest.er1 >conftest.err
3949  rm -f conftest.er1
3950  cat conftest.err >&5
3951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952  (exit $ac_status); } &&
3953         { ac_try='test -z "$ac_cxx_werror_flag"
3954                         || test ! -s conftest.err'
3955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956  (eval $ac_try) 2>&5
3957  ac_status=$?
3958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959  (exit $ac_status); }; } &&
3960         { ac_try='test -s conftest$ac_exeext'
3961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962  (eval $ac_try) 2>&5
3963  ac_status=$?
3964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965  (exit $ac_status); }; }; then
3966  :
3967else
3968  echo "$as_me: failed program was:" >&5
3969sed 's/^/| /' conftest.$ac_ext >&5
3970
3971CXXFLAGS=
3972fi
3973rm -f conftest.err conftest.$ac_objext \
3974      conftest$ac_exeext conftest.$ac_ext
3975  if test -z "$CXXFLAGS"; then
3976    { 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
3977echo "$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;}
3978  fi
3979fi
3980
3981{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3982echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3983
3984
3985if test x"$MPICXX" = x; then :; else
3986  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3987echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3988  CXX="$MPICXX"
3989fi
3990
3991case "$CXX" in
3992  cl* | */cl* | CL* | */CL* )
3993    case $build in
3994  *-mingw*)
3995    if test "${LD+set}" = set; then :; else
3996      LD=link
3997    fi
3998    ;;
3999 esac
4000 case $enable_doscompile in
4001   msvc)
4002     if test "x${LD+set}" = xset; then :; else
4003       LD=link
4004     fi
4005     ;;
4006 esac
4007
4008    ;;
4009esac
4010
4011ac_ext=c
4012ac_cpp='$CPP $CPPFLAGS'
4013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016
4017
4018
4019# Get the name of the Fortran compiler and appropriate compiler options
4020case $build in
4021  *-cygwin* | *-mingw*)
4022     if test "$enable_doscompile" = msvc ; then
4023       coin_f77_comps="ifort fl32 compile_f2c"
4024     else
4025       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
4026     fi ;;
4027  *-*-solaris*)
4028     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4029  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
4030 esac
4031
4032
4033
4034
4035
4036
4037ac_ext=f
4038ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4039ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4041
4042
4043
4044
4045
4046
4047coin_has_f77=yes
4048
4049save_fflags="$FFLAGS"
4050
4051# We delete the cached value, since the test might not have been
4052# performed with our choice of compilers earlier
4053$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4054
4055# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4056# coin_f77_comps to see if there's a program that matches one of the names.
4057# If there's no such program, F77 = unavailable. If we match the name,
4058# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4059# compiler.
4060# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4061
4062
4063{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4064echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4065for ac_prog in $coin_f77_comps
4066do
4067  # Extract the first word of "$ac_prog", so it can be a program name with args.
4068set dummy $ac_prog; ac_word=$2
4069echo "$as_me:$LINENO: checking for $ac_word" >&5
4070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071if test "${ac_cv_prog_F77+set}" = set; then
4072  echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074  if test -n "$F77"; then
4075  ac_cv_prog_F77="$F77" # Let the user override the test.
4076else
4077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH
4079do
4080  IFS=$as_save_IFS
4081  test -z "$as_dir" && as_dir=.
4082  for ac_exec_ext in '' $ac_executable_extensions; do
4083  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084    ac_cv_prog_F77="$ac_prog"
4085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086    break 2
4087  fi
4088done
4089done
4090
4091fi
4092fi
4093F77=$ac_cv_prog_F77
4094if test -n "$F77"; then
4095  echo "$as_me:$LINENO: result: $F77" >&5
4096echo "${ECHO_T}$F77" >&6
4097else
4098  echo "$as_me:$LINENO: result: no" >&5
4099echo "${ECHO_T}no" >&6
4100fi
4101
4102  test -n "$F77" && break
4103done
4104test -n "$F77" || F77="unavailable"
4105
4106
4107if test "$F77" != "unavailable" ; then
4108  ac_ext=f
4109ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4110ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4112if test -n "$ac_tool_prefix"; then
4113  for ac_prog in $coin_f77_comps
4114  do
4115    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4116set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4117echo "$as_me:$LINENO: checking for $ac_word" >&5
4118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119if test "${ac_cv_prog_F77+set}" = set; then
4120  echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122  if test -n "$F77"; then
4123  ac_cv_prog_F77="$F77" # Let the user override the test.
4124else
4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128  IFS=$as_save_IFS
4129  test -z "$as_dir" && as_dir=.
4130  for ac_exec_ext in '' $ac_executable_extensions; do
4131  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134    break 2
4135  fi
4136done
4137done
4138
4139fi
4140fi
4141F77=$ac_cv_prog_F77
4142if test -n "$F77"; then
4143  echo "$as_me:$LINENO: result: $F77" >&5
4144echo "${ECHO_T}$F77" >&6
4145else
4146  echo "$as_me:$LINENO: result: no" >&5
4147echo "${ECHO_T}no" >&6
4148fi
4149
4150    test -n "$F77" && break
4151  done
4152fi
4153if test -z "$F77"; then
4154  ac_ct_F77=$F77
4155  for ac_prog in $coin_f77_comps
4156do
4157  # Extract the first word of "$ac_prog", so it can be a program name with args.
4158set dummy $ac_prog; ac_word=$2
4159echo "$as_me:$LINENO: checking for $ac_word" >&5
4160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4162  echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164  if test -n "$ac_ct_F77"; then
4165  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4166else
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170  IFS=$as_save_IFS
4171  test -z "$as_dir" && as_dir=.
4172  for ac_exec_ext in '' $ac_executable_extensions; do
4173  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174    ac_cv_prog_ac_ct_F77="$ac_prog"
4175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176    break 2
4177  fi
4178done
4179done
4180
4181fi
4182fi
4183ac_ct_F77=$ac_cv_prog_ac_ct_F77
4184if test -n "$ac_ct_F77"; then
4185  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4186echo "${ECHO_T}$ac_ct_F77" >&6
4187else
4188  echo "$as_me:$LINENO: result: no" >&5
4189echo "${ECHO_T}no" >&6
4190fi
4191
4192  test -n "$ac_ct_F77" && break
4193done
4194
4195  F77=$ac_ct_F77
4196fi
4197
4198
4199# Provide some information about the compiler.
4200echo "$as_me:4200:" \
4201     "checking for Fortran 77 compiler version" >&5
4202ac_compiler=`set X $ac_compile; echo $2`
4203{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4204  (eval $ac_compiler --version </dev/null >&5) 2>&5
4205  ac_status=$?
4206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207  (exit $ac_status); }
4208{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4209  (eval $ac_compiler -v </dev/null >&5) 2>&5
4210  ac_status=$?
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); }
4213{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4214  (eval $ac_compiler -V </dev/null >&5) 2>&5
4215  ac_status=$?
4216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217  (exit $ac_status); }
4218rm -f a.out
4219
4220# If we don't use `.F' as extension, the preprocessor is not run on the
4221# input file.  (Note that this only needs to work for GNU compilers.)
4222ac_save_ext=$ac_ext
4223ac_ext=F
4224echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4225echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4226if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4227  echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229  cat >conftest.$ac_ext <<_ACEOF
4230      program main
4231#ifndef __GNUC__
4232       choke me
4233#endif
4234
4235      end
4236_ACEOF
4237rm -f conftest.$ac_objext
4238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239  (eval $ac_compile) 2>conftest.er1
4240  ac_status=$?
4241  grep -v '^ *+' conftest.er1 >conftest.err
4242  rm -f conftest.er1
4243  cat conftest.err >&5
4244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245  (exit $ac_status); } &&
4246         { ac_try='test -z "$ac_f77_werror_flag"
4247                         || test ! -s conftest.err'
4248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249  (eval $ac_try) 2>&5
4250  ac_status=$?
4251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252  (exit $ac_status); }; } &&
4253         { ac_try='test -s conftest.$ac_objext'
4254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255  (eval $ac_try) 2>&5
4256  ac_status=$?
4257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258  (exit $ac_status); }; }; then
4259  ac_compiler_gnu=yes
4260else
4261  echo "$as_me: failed program was:" >&5
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
4264ac_compiler_gnu=no
4265fi
4266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4267ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4268
4269fi
4270echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4271echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4272ac_ext=$ac_save_ext
4273ac_test_FFLAGS=${FFLAGS+set}
4274ac_save_FFLAGS=$FFLAGS
4275FFLAGS=
4276echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4277echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4278if test "${ac_cv_prog_f77_g+set}" = set; then
4279  echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281  FFLAGS=-g
4282cat >conftest.$ac_ext <<_ACEOF
4283      program main
4284
4285      end
4286_ACEOF
4287rm -f conftest.$ac_objext
4288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289  (eval $ac_compile) 2>conftest.er1
4290  ac_status=$?
4291  grep -v '^ *+' conftest.er1 >conftest.err
4292  rm -f conftest.er1
4293  cat conftest.err >&5
4294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295  (exit $ac_status); } &&
4296         { ac_try='test -z "$ac_f77_werror_flag"
4297                         || test ! -s conftest.err'
4298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299  (eval $ac_try) 2>&5
4300  ac_status=$?
4301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302  (exit $ac_status); }; } &&
4303         { ac_try='test -s conftest.$ac_objext'
4304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305  (eval $ac_try) 2>&5
4306  ac_status=$?
4307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308  (exit $ac_status); }; }; then
4309  ac_cv_prog_f77_g=yes
4310else
4311  echo "$as_me: failed program was:" >&5
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
4314ac_cv_prog_f77_g=no
4315fi
4316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4317
4318fi
4319echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4320echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4321if test "$ac_test_FFLAGS" = set; then
4322  FFLAGS=$ac_save_FFLAGS
4323elif test $ac_cv_prog_f77_g = yes; then
4324  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4325    FFLAGS="-g -O2"
4326  else
4327    FFLAGS="-g"
4328  fi
4329else
4330  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4331    FFLAGS="-O2"
4332  else
4333    FFLAGS=
4334  fi
4335fi
4336
4337G77=`test $ac_compiler_gnu = yes && echo yes`
4338ac_ext=f
4339ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4340ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4342
4343else
4344  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4345echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4346fi
4347
4348FFLAGS="$save_fflags"
4349
4350# Check if a project specific FFLAGS variable has been set
4351if test x$COIN_PRJCT != x; then
4352  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4353  if test x$coin_tmp = xset; then
4354    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4355  fi
4356fi
4357
4358if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4359
4360  coin_add_fflags=
4361  coin_opt_fflags=
4362  coin_dbg_fflags=
4363  coin_warn_fflags=
4364
4365  if test "$G77" = "yes"; then
4366    coin_opt_fflags="-O3"
4367    coin_add_fflags="-pipe"
4368    coin_dbg_fflags="-g"
4369    case $enable_doscompile in
4370      mingw)
4371        FFLAGS="-mno-cygwin"
4372        cat >conftest.$ac_ext <<_ACEOF
4373      program main
4374      write(*,*) 'Hello world'
4375      end
4376_ACEOF
4377rm -f conftest.$ac_objext conftest$ac_exeext
4378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4379  (eval $ac_link) 2>conftest.er1
4380  ac_status=$?
4381  grep -v '^ *+' conftest.er1 >conftest.err
4382  rm -f conftest.er1
4383  cat conftest.err >&5
4384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385  (exit $ac_status); } &&
4386         { ac_try='test -z "$ac_f77_werror_flag"
4387                         || test ! -s conftest.err'
4388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389  (eval $ac_try) 2>&5
4390  ac_status=$?
4391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392  (exit $ac_status); }; } &&
4393         { ac_try='test -s conftest$ac_exeext'
4394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395  (eval $ac_try) 2>&5
4396  ac_status=$?
4397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398  (exit $ac_status); }; }; then
4399  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4400else
4401  echo "$as_me: failed program was:" >&5
4402sed 's/^/| /' conftest.$ac_ext >&5
4403
4404fi
4405rm -f conftest.err conftest.$ac_objext \
4406      conftest$ac_exeext conftest.$ac_ext
4407        FFLAGS=
4408      ;;
4409    esac
4410  else
4411    case $build in
4412      *-cygwin* | *-mingw*)
4413        case $F77 in
4414          ifort* | */ifort* | IFORT* | */IFORT* )
4415            coin_opt_fflags='-MT -O3'
4416            coin_add_fflags='-fpp -nologo'
4417            coin_dbg_fflags='-MTd -debug'
4418          ;;
4419          compile_f2c*)
4420            coin_opt_fflags='-MT -O2'
4421            coin_add_fflags='-nologo -wd4996'
4422            coin_dbg_fflags='-MTd'
4423          ;;
4424        esac
4425        ;;
4426      *-linux-*)
4427        case $F77 in
4428          ifc* | */ifc* | ifort* | */ifort*)
4429            coin_opt_fflags="-O3 -ip"
4430            coin_add_fflags="-cm -w90 -w95"
4431            coin_dbg_fflags="-g -CA -CB -CS"
4432            # Check if -i_dynamic is necessary (for new glibc library)
4433            FFLAGS=
4434            cat >conftest.$ac_ext <<_ACEOF
4435      program main
4436      write(*,*) 'Hello world'
4437      end
4438_ACEOF
4439rm -f conftest.$ac_objext conftest$ac_exeext
4440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441  (eval $ac_link) 2>conftest.er1
4442  ac_status=$?
4443  grep -v '^ *+' conftest.er1 >conftest.err
4444  rm -f conftest.er1
4445  cat conftest.err >&5
4446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447  (exit $ac_status); } &&
4448         { ac_try='test -z "$ac_f77_werror_flag"
4449                         || test ! -s conftest.err'
4450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451  (eval $ac_try) 2>&5
4452  ac_status=$?
4453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454  (exit $ac_status); }; } &&
4455         { ac_try='test -s conftest$ac_exeext'
4456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457  (eval $ac_try) 2>&5
4458  ac_status=$?
4459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460  (exit $ac_status); }; }; then
4461  :
4462else
4463  echo "$as_me: failed program was:" >&5
4464sed 's/^/| /' conftest.$ac_ext >&5
4465
4466coin_add_fflags="-i_dynamic $coin_add_fflags"
4467fi
4468rm -f conftest.err conftest.$ac_objext \
4469      conftest$ac_exeext conftest.$ac_ext
4470            ;;
4471          pgf77* | */pgf77* | pgf90* | */pgf90*)
4472            coin_opt_fflags="-fast"
4473            coin_add_fflags="-Kieee -pc 64"
4474            coin_dbg_fflags="-g"
4475          ;;
4476        esac
4477        ;;
4478      *-ibm-*)
4479        case "$F77" in
4480          xlf* | */xlf* | mpxlf* | */mpxlf* )
4481            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4482            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4483            coin_dbg_fflags="-g -C"
4484            ;;
4485        esac
4486        ;;
4487      *-hp-*)
4488        coin_opt_fflags="+O3"
4489        coin_add_fflags="+U77"
4490        coin_dbg_fflags="-C -g"
4491        ;;
4492      *-*-solaris*)
4493        coin_opt_fflags="-O4"
4494        coin_dbg_fflags="-g"
4495        ;;
4496      *-sgi-*)
4497        coin_opt_fflags="-O5 -OPT:Olimit=0"
4498        coin_dbg_fflags="-g"
4499        ;;
4500    esac
4501  fi
4502
4503  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4504    coin_dbg_fflags="-g"
4505  fi
4506
4507  if test -z "$coin_opt_fflags"; then
4508    # Try if -O option works if nothing else is set
4509    FFLAGS=-O
4510    cat >conftest.$ac_ext <<_ACEOF
4511      program main
4512      integer i
4513      end
4514_ACEOF
4515rm -f conftest.$ac_objext conftest$ac_exeext
4516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4517  (eval $ac_link) 2>conftest.er1
4518  ac_status=$?
4519  grep -v '^ *+' conftest.er1 >conftest.err
4520  rm -f conftest.er1
4521  cat conftest.err >&5
4522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523  (exit $ac_status); } &&
4524         { ac_try='test -z "$ac_f77_werror_flag"
4525                         || test ! -s conftest.err'
4526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527  (eval $ac_try) 2>&5
4528  ac_status=$?
4529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530  (exit $ac_status); }; } &&
4531         { ac_try='test -s conftest$ac_exeext'
4532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533  (eval $ac_try) 2>&5
4534  ac_status=$?
4535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536  (exit $ac_status); }; }; then
4537  coin_opt_fflags="-O"
4538else
4539  echo "$as_me: failed program was:" >&5
4540sed 's/^/| /' conftest.$ac_ext >&5
4541
4542fi
4543rm -f conftest.err conftest.$ac_objext \
4544      conftest$ac_exeext conftest.$ac_ext
4545  fi
4546
4547  # if PM doesn't want the warning messages, take them out
4548  if test x"$coin_skip_warn_fflags" = xyes; then
4549    coin_warn_fflags=
4550  fi
4551
4552  if test x${DBG_FFLAGS+set} != xset; then
4553    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4554  fi
4555  if test x${OPT_FFLAGS+set} != xset; then
4556    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4557  fi
4558
4559  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4560  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4561
4562  if test "$coin_debug_compile" = "true"; then
4563    FFLAGS="$DBG_FFLAGS"
4564  else
4565    FFLAGS="$OPT_FFLAGS"
4566  fi
4567else
4568  FFLAGS="$FFLAGS $ADD_FFLAGS"
4569  if test x${DBG_FFLAGS+set} != xset; then
4570    DBG_FFLAGS="$FFLAGS"
4571  fi
4572  if test x${OPT_FFLAGS+set} != xset; then
4573    OPT_FFLAGS="$FFLAGS"
4574  fi
4575fi
4576
4577# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4578case "$FFLAGS" in
4579  *-mno-cygwin*)
4580    if test x${CPPFLAGS+set} != xset ; then
4581      CPPFLAGS="-mno-cygwin"
4582    else
4583      case "$CPPFLAGS" in
4584        *-mno-cygwin*)
4585          ;;
4586        *)
4587          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4588          ;;
4589      esac
4590    fi ;;
4591esac
4592
4593# Try if FFLAGS works
4594if test "$F77" != "unavailable" ; then
4595  cat >conftest.$ac_ext <<_ACEOF
4596      program main
4597      integer i
4598      end
4599_ACEOF
4600rm -f conftest.$ac_objext conftest$ac_exeext
4601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4602  (eval $ac_link) 2>conftest.er1
4603  ac_status=$?
4604  grep -v '^ *+' conftest.er1 >conftest.err
4605  rm -f conftest.er1
4606  cat conftest.err >&5
4607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608  (exit $ac_status); } &&
4609         { ac_try='test -z "$ac_f77_werror_flag"
4610                         || test ! -s conftest.err'
4611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612  (eval $ac_try) 2>&5
4613  ac_status=$?
4614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615  (exit $ac_status); }; } &&
4616         { ac_try='test -s conftest$ac_exeext'
4617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618  (eval $ac_try) 2>&5
4619  ac_status=$?
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); }; }; then
4622  :
4623else
4624  echo "$as_me: failed program was:" >&5
4625sed 's/^/| /' conftest.$ac_ext >&5
4626
4627FFLAGS=
4628fi
4629rm -f conftest.err conftest.$ac_objext \
4630      conftest$ac_exeext conftest.$ac_ext
4631  if test -z "$FFLAGS"; then
4632    { 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
4633echo "$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;}
4634    FFLAGS='-O'
4635    cat >conftest.$ac_ext <<_ACEOF
4636      program main
4637      integer i
4638      end
4639_ACEOF
4640rm -f conftest.$ac_objext conftest$ac_exeext
4641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4642  (eval $ac_link) 2>conftest.er1
4643  ac_status=$?
4644  grep -v '^ *+' conftest.er1 >conftest.err
4645  rm -f conftest.er1
4646  cat conftest.err >&5
4647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648  (exit $ac_status); } &&
4649         { ac_try='test -z "$ac_f77_werror_flag"
4650                         || test ! -s conftest.err'
4651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652  (eval $ac_try) 2>&5
4653  ac_status=$?
4654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655  (exit $ac_status); }; } &&
4656         { ac_try='test -s conftest$ac_exeext'
4657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658  (eval $ac_try) 2>&5
4659  ac_status=$?
4660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661  (exit $ac_status); }; }; then
4662  :
4663else
4664  echo "$as_me: failed program was:" >&5
4665sed 's/^/| /' conftest.$ac_ext >&5
4666
4667FFLAGS=
4668fi
4669rm -f conftest.err conftest.$ac_objext \
4670      conftest$ac_exeext conftest.$ac_ext
4671    if test -z "$FFLAGS"; then
4672      { 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
4673echo "$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;}
4674    fi
4675  fi
4676fi
4677
4678{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4679echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4680
4681
4682if test x"$MPIF77" = x; then :; else
4683  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4684echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4685  F77="$MPIF77"
4686fi
4687
4688case "$F77" in
4689  ifort* | */ifort* | IFORT* | */IFORT*)
4690    case $build in
4691  *-mingw*)
4692    if test "${LD+set}" = set; then :; else
4693      LD=link
4694    fi
4695    ;;
4696 esac
4697 case $enable_doscompile in
4698   msvc)
4699     if test "x${LD+set}" = xset; then :; else
4700       LD=link
4701     fi
4702     ;;
4703 esac
4704
4705    ;;
4706esac
4707
4708ac_ext=c
4709ac_cpp='$CPP $CPPFLAGS'
4710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712ac_compiler_gnu=$ac_cv_c_compiler_gnu
4713
4714
4715
4716# Initialize automake and libtool
4717# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4718{
4719
4720
4721
4722# START
4723
4724# Test if force_shared has been set
4725if test "x" = xforce_shared; then
4726  if test x$enable_shared = xno; then
4727    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4728echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4729   { (exit 1); exit 1; }; }
4730  fi
4731  enable_shared=yes;
4732else
4733  # On Cygwin and AIX, building DLLs doesn't work
4734  case $build in
4735    *-cygwin*)
4736      coin_disable_shared=yes
4737      platform=Cygwin
4738    ;;
4739    *-aix*)
4740      coin_disable_shared=yes
4741      platform=AIX
4742    ;;
4743    *-mingw*)
4744      coin_disable_shared=yes
4745      platform="Msys"
4746#      case "$CXX" in
4747#        cl*)
4748#          coin_disable_shared=yes
4749#          platform="Msys with cl"
4750#      ;;
4751#      esac
4752    ;;
4753  esac
4754fi
4755if test x"$coin_disable_shared" = xyes; then
4756  if test x"$enable_shared" = xyes; then
4757    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4758echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4759  fi
4760  enable_shared=no
4761fi
4762# By default, we only want the shared objects to be compiled
4763# Check whether --enable-static or --disable-static was given.
4764if test "${enable_static+set}" = set; then
4765  enableval="$enable_static"
4766  p=${PACKAGE-default}
4767    case $enableval in
4768    yes) enable_static=yes ;;
4769    no) enable_static=no ;;
4770    *)
4771     enable_static=no
4772      # Look at the argument we got.  We use all the common list separators.
4773      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4774      for pkg in $enableval; do
4775        IFS="$lt_save_ifs"
4776        if test "X$pkg" = "X$p"; then
4777          enable_static=yes
4778        fi
4779      done
4780      IFS="$lt_save_ifs"
4781      ;;
4782    esac
4783else
4784  enable_static=no
4785fi;
4786
4787
4788
4789
4790# Initialize automake
4791echo "$as_me:$LINENO: checking for egrep" >&5
4792echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4793if test "${ac_cv_prog_egrep+set}" = set; then
4794  echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4797    then ac_cv_prog_egrep='grep -E'
4798    else ac_cv_prog_egrep='egrep'
4799    fi
4800fi
4801echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4802echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4803 EGREP=$ac_cv_prog_egrep
4804
4805
4806am__api_version="1.9"
4807# Find a good install program.  We prefer a C program (faster),
4808# so one script is as good as another.  But avoid the broken or
4809# incompatible versions:
4810# SysV /etc/install, /usr/sbin/install
4811# SunOS /usr/etc/install
4812# IRIX /sbin/install
4813# AIX /bin/install
4814# AmigaOS /C/install, which installs bootblocks on floppy discs
4815# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4816# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4817# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4818# OS/2's system install, which has a completely different semantic
4819# ./install, which can be erroneously created by make from ./install.sh.
4820echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4821echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4822if test -z "$INSTALL"; then
4823if test "${ac_cv_path_install+set}" = set; then
4824  echo $ECHO_N "(cached) $ECHO_C" >&6
4825else
4826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829  IFS=$as_save_IFS
4830  test -z "$as_dir" && as_dir=.
4831  # Account for people who put trailing slashes in PATH elements.
4832case $as_dir/ in
4833  ./ | .// | /cC/* | \
4834  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4835  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4836  /usr/ucb/* ) ;;
4837  *)
4838    # OSF1 and SCO ODT 3.0 have their own names for install.
4839    # Don't use installbsd from OSF since it installs stuff as root
4840    # by default.
4841    for ac_prog in ginstall scoinst install; do
4842      for ac_exec_ext in '' $ac_executable_extensions; do
4843        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4844          if test $ac_prog = install &&
4845            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4846            # AIX install.  It has an incompatible calling convention.
4847            :
4848          elif test $ac_prog = install &&
4849            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4850            # program-specific install script used by HP pwplus--don't use.
4851            :
4852          else
4853            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4854            break 3
4855          fi
4856        fi
4857      done
4858    done
4859    ;;
4860esac
4861done
4862
4863
4864fi
4865  if test "${ac_cv_path_install+set}" = set; then
4866    INSTALL=$ac_cv_path_install
4867  else
4868    # As a last resort, use the slow shell script.  We don't cache a
4869    # path for INSTALL within a source directory, because that will
4870    # break other packages using the cache if that directory is
4871    # removed, or if the path is relative.
4872    INSTALL=$ac_install_sh
4873  fi
4874fi
4875echo "$as_me:$LINENO: result: $INSTALL" >&5
4876echo "${ECHO_T}$INSTALL" >&6
4877
4878# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4879# It thinks the first close brace ends the variable substitution.
4880test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4881
4882test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4883
4884test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4885
4886echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4887echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4888# Just in case
4889sleep 1
4890echo timestamp > conftest.file
4891# Do `set' in a subshell so we don't clobber the current shell's
4892# arguments.  Must try -L first in case configure is actually a
4893# symlink; some systems play weird games with the mod time of symlinks
4894# (eg FreeBSD returns the mod time of the symlink's containing
4895# directory).
4896if (
4897   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4898   if test "$*" = "X"; then
4899      # -L didn't work.
4900      set X `ls -t $srcdir/configure conftest.file`
4901   fi
4902   rm -f conftest.file
4903   if test "$*" != "X $srcdir/configure conftest.file" \
4904      && test "$*" != "X conftest.file $srcdir/configure"; then
4905
4906      # If neither matched, then we have a broken ls.  This can happen
4907      # if, for instance, CONFIG_SHELL is bash and it inherits a
4908      # broken ls alias from the environment.  This has actually
4909      # happened.  Such a system could not be considered "sane".
4910      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4911alias in your environment" >&5
4912echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4913alias in your environment" >&2;}
4914   { (exit 1); exit 1; }; }
4915   fi
4916
4917   test "$2" = conftest.file
4918   )
4919then
4920   # Ok.
4921   :
4922else
4923   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4924Check your system clock" >&5
4925echo "$as_me: error: newly created file is older than distributed files!
4926Check your system clock" >&2;}
4927   { (exit 1); exit 1; }; }
4928fi
4929echo "$as_me:$LINENO: result: yes" >&5
4930echo "${ECHO_T}yes" >&6
4931test "$program_prefix" != NONE &&
4932  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4933# Use a double $ so make ignores it.
4934test "$program_suffix" != NONE &&
4935  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4936# Double any \ or $.  echo might interpret backslashes.
4937# By default was `s,x,x', remove it if useless.
4938cat <<\_ACEOF >conftest.sed
4939s/[\\$]/&&/g;s/;s,x,x,$//
4940_ACEOF
4941program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4942rm conftest.sed
4943
4944# expand $ac_aux_dir to an absolute path
4945am_aux_dir=`cd $ac_aux_dir && pwd`
4946
4947test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4948# Use eval to expand $SHELL
4949if eval "$MISSING --run true"; then
4950  am_missing_run="$MISSING --run "
4951else
4952  am_missing_run=
4953  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4954echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4955fi
4956
4957if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4958  # We used to keeping the `.' as first argument, in order to
4959  # allow $(mkdir_p) to be used without argument.  As in
4960  #   $(mkdir_p) $(somedir)
4961  # where $(somedir) is conditionally defined.  However this is wrong
4962  # for two reasons:
4963  #  1. if the package is installed by a user who cannot write `.'
4964  #     make install will fail,
4965  #  2. the above comment should most certainly read
4966  #     $(mkdir_p) $(DESTDIR)$(somedir)
4967  #     so it does not work when $(somedir) is undefined and
4968  #     $(DESTDIR) is not.
4969  #  To support the latter case, we have to write
4970  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4971  #  so the `.' trick is pointless.
4972  mkdir_p='mkdir -p --'
4973else
4974  # On NextStep and OpenStep, the `mkdir' command does not
4975  # recognize any option.  It will interpret all options as
4976  # directories to create, and then abort because `.' already
4977  # exists.
4978  for d in ./-p ./--version;
4979  do
4980    test -d $d && rmdir $d
4981  done
4982  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4983  if test -f "$ac_aux_dir/mkinstalldirs"; then
4984    mkdir_p='$(mkinstalldirs)'
4985  else
4986    mkdir_p='$(install_sh) -d'
4987  fi
4988fi
4989
4990for ac_prog in gawk mawk nawk awk
4991do
4992  # Extract the first word of "$ac_prog", so it can be a program name with args.
4993set dummy $ac_prog; ac_word=$2
4994echo "$as_me:$LINENO: checking for $ac_word" >&5
4995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4996if test "${ac_cv_prog_AWK+set}" = set; then
4997  echo $ECHO_N "(cached) $ECHO_C" >&6
4998else
4999  if test -n "$AWK"; then
5000  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5001else
5002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003for as_dir in $PATH
5004do
5005  IFS=$as_save_IFS
5006  test -z "$as_dir" && as_dir=.
5007  for ac_exec_ext in '' $ac_executable_extensions; do
5008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009    ac_cv_prog_AWK="$ac_prog"
5010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011    break 2
5012  fi
5013done
5014done
5015
5016fi
5017fi
5018AWK=$ac_cv_prog_AWK
5019if test -n "$AWK"; then
5020  echo "$as_me:$LINENO: result: $AWK" >&5
5021echo "${ECHO_T}$AWK" >&6
5022else
5023  echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6
5025fi
5026
5027  test -n "$AWK" && break
5028done
5029
5030echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5031echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5032set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5033if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5034  echo $ECHO_N "(cached) $ECHO_C" >&6
5035else
5036  cat >conftest.make <<\_ACEOF
5037all:
5038        @echo 'ac_maketemp="$(MAKE)"'
5039_ACEOF
5040# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5041eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5042if test -n "$ac_maketemp"; then
5043  eval ac_cv_prog_make_${ac_make}_set=yes
5044else
5045  eval ac_cv_prog_make_${ac_make}_set=no
5046fi
5047rm -f conftest.make
5048fi
5049if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5050  echo "$as_me:$LINENO: result: yes" >&5
5051echo "${ECHO_T}yes" >&6
5052  SET_MAKE=
5053else
5054  echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6
5056  SET_MAKE="MAKE=${MAKE-make}"
5057fi
5058
5059rm -rf .tst 2>/dev/null
5060mkdir .tst 2>/dev/null
5061if test -d .tst; then
5062  am__leading_dot=.
5063else
5064  am__leading_dot=_
5065fi
5066rmdir .tst 2>/dev/null
5067
5068DEPDIR="${am__leading_dot}deps"
5069
5070          ac_config_commands="$ac_config_commands depfiles"
5071
5072
5073am_make=${MAKE-make}
5074cat > confinc << 'END'
5075am__doit:
5076        @echo done
5077.PHONY: am__doit
5078END
5079# If we don't find an include directive, just comment out the code.
5080echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5081echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5082am__include="#"
5083am__quote=
5084_am_result=none
5085# First try GNU make style include.
5086echo "include confinc" > confmf
5087# We grep out `Entering directory' and `Leaving directory'
5088# messages which can occur if `w' ends up in MAKEFLAGS.
5089# In particular we don't look at `^make:' because GNU make might
5090# be invoked under some other name (usually "gmake"), in which
5091# case it prints its new name instead of `make'.
5092if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5093   am__include=include
5094   am__quote=
5095   _am_result=GNU
5096fi
5097# Now try BSD make style include.
5098if test "$am__include" = "#"; then
5099   echo '.include "confinc"' > confmf
5100   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5101      am__include=.include
5102      am__quote="\""
5103      _am_result=BSD
5104   fi
5105fi
5106
5107
5108echo "$as_me:$LINENO: result: $_am_result" >&5
5109echo "${ECHO_T}$_am_result" >&6
5110rm -f confinc confmf
5111
5112# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5113if test "${enable_dependency_tracking+set}" = set; then
5114  enableval="$enable_dependency_tracking"
5115
5116fi;
5117if test "x$enable_dependency_tracking" != xno; then
5118  am_depcomp="$ac_aux_dir/depcomp"
5119  AMDEPBACKSLASH='\'
5120fi
5121
5122
5123if test "x$enable_dependency_tracking" != xno; then
5124  AMDEP_TRUE=
5125  AMDEP_FALSE='#'
5126else
5127  AMDEP_TRUE='#'
5128  AMDEP_FALSE=
5129fi
5130
5131
5132
5133
5134
5135# AC_MSG_NOTICE([Beginning automake initialisation.])
5136# Stuff for automake
5137# test to see if srcdir already configured
5138if test "`cd $srcdir && pwd`" != "`pwd`" &&
5139   test -f $srcdir/config.status; then
5140  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5141echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5142   { (exit 1); exit 1; }; }
5143fi
5144
5145# test whether we have cygpath
5146if test -z "$CYGPATH_W"; then
5147  if (cygpath --version) >/dev/null 2>/dev/null; then
5148    CYGPATH_W='cygpath -w'
5149  else
5150    CYGPATH_W=echo
5151  fi
5152fi
5153
5154
5155# Define the identity of the package.
5156 PACKAGE='clp'
5157 VERSION='trunk'
5158
5159
5160cat >>confdefs.h <<_ACEOF
5161#define PACKAGE "$PACKAGE"
5162_ACEOF
5163
5164
5165cat >>confdefs.h <<_ACEOF
5166#define VERSION "$VERSION"
5167_ACEOF
5168
5169# Some tools Automake needs.
5170
5171ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5172
5173
5174AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5175
5176
5177AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5178
5179
5180AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5181
5182
5183MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5184
5185install_sh=${install_sh-"$am_aux_dir/install-sh"}
5186
5187# Installed binaries are usually stripped using `strip' when the user
5188# run `make install-strip'.  However `strip' might not be the right
5189# tool to use in cross-compilation environments, therefore Automake
5190# will honor the `STRIP' environment variable to overrule this program.
5191if test "$cross_compiling" != no; then
5192  if test -n "$ac_tool_prefix"; then
5193  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5194set dummy ${ac_tool_prefix}strip; ac_word=$2
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197if test "${ac_cv_prog_STRIP+set}" = set; then
5198  echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200  if test -n "$STRIP"; then
5201  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206  IFS=$as_save_IFS
5207  test -z "$as_dir" && as_dir=.
5208  for ac_exec_ext in '' $ac_executable_extensions; do
5209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212    break 2
5213  fi
5214done
5215done
5216
5217fi
5218fi
5219STRIP=$ac_cv_prog_STRIP
5220if test -n "$STRIP"; then
5221  echo "$as_me:$LINENO: result: $STRIP" >&5
5222echo "${ECHO_T}$STRIP" >&6
5223else
5224  echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226fi
5227
5228fi
5229if test -z "$ac_cv_prog_STRIP"; then
5230  ac_ct_STRIP=$STRIP
5231  # Extract the first word of "strip", so it can be a program name with args.
5232set dummy strip; ac_word=$2
5233echo "$as_me:$LINENO: checking for $ac_word" >&5
5234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5235if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5236  echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238  if test -n "$ac_ct_STRIP"; then
5239  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244  IFS=$as_save_IFS
5245  test -z "$as_dir" && as_dir=.
5246  for ac_exec_ext in '' $ac_executable_extensions; do
5247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248    ac_cv_prog_ac_ct_STRIP="strip"
5249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250    break 2
5251  fi
5252done
5253done
5254
5255  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5256fi
5257fi
5258ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5259if test -n "$ac_ct_STRIP"; then
5260  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5261echo "${ECHO_T}$ac_ct_STRIP" >&6
5262else
5263  echo "$as_me:$LINENO: result: no" >&5
5264echo "${ECHO_T}no" >&6
5265fi
5266
5267  STRIP=$ac_ct_STRIP
5268else
5269  STRIP="$ac_cv_prog_STRIP"
5270fi
5271
5272fi
5273INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5274
5275# We need awk for the "check" target.  The system "awk" is bad on
5276# some platforms.
5277# Always define AMTAR for backward compatibility.
5278
5279AMTAR=${AMTAR-"${am_missing_run}tar"}
5280
5281am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5282
5283
5284
5285
5286depcc="$CC"   am_compiler_list=
5287
5288echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5289echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5290if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5291  echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5294  # We make a subdir and do the tests there.  Otherwise we can end up
5295  # making bogus files that we don't know about and never remove.  For
5296  # instance it was reported that on HP-UX the gcc test will end up
5297  # making a dummy file named `D' -- because `-MD' means `put the output
5298  # in D'.
5299  mkdir conftest.dir
5300  # Copy depcomp to subdir because otherwise we won't find it if we're
5301  # using a relative directory.
5302  cp "$am_depcomp" conftest.dir
5303  cd conftest.dir
5304  # We will build objects and dependencies in a subdirectory because
5305  # it helps to detect inapplicable dependency modes.  For instance
5306  # both Tru64's cc and ICC support -MD to output dependencies as a
5307  # side effect of compilation, but ICC will put the dependencies in
5308  # the current directory while Tru64 will put them in the object
5309  # directory.
5310  mkdir sub
5311
5312  am_cv_CC_dependencies_compiler_type=none
5313  if test "$am_compiler_list" = ""; then
5314     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5315  fi
5316  for depmode in $am_compiler_list; do
5317    # Setup a source with many dependencies, because some compilers
5318    # like to wrap large dependency lists on column 80 (with \), and
5319    # we should not choose a depcomp mode which is confused by this.
5320    #
5321    # We need to recreate these files for each test, as the compiler may
5322    # overwrite some of them when testing with obscure command lines.
5323    # This happens at least with the AIX C compiler.
5324    : > sub/conftest.c
5325    for i in 1 2 3 4 5 6; do
5326      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5327      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5328      # Solaris 8's {/usr,}/bin/sh.
5329      touch sub/conftst$i.h
5330    done
5331    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5332
5333    case $depmode in
5334    nosideeffect)
5335      # after this tag, mechanisms are not by side-effect, so they'll
5336      # only be used when explicitly requested
5337      if test "x$enable_dependency_tracking" = xyes; then
5338        continue
5339      else
5340        break
5341      fi
5342      ;;
5343    none) break ;;
5344    esac
5345    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5346    # mode.  It turns out that the SunPro C++ compiler does not properly
5347    # handle `-M -o', and we need to detect this.
5348    if depmode=$depmode \
5349       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5350       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5351       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5352         >/dev/null 2>conftest.err &&
5353       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5354       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5355       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5356      # icc doesn't choke on unknown options, it will just issue warnings
5357      # or remarks (even with -Werror).  So we grep stderr for any message
5358      # that says an option was ignored or not supported.
5359      # When given -MP, icc 7.0 and 7.1 complain thusly:
5360      #   icc: Command line warning: ignoring option '-M'; no argument required
5361      # The diagnosis changed in icc 8.0:
5362      #   icc: Command line remark: option '-MP' not supported
5363      if (grep 'ignoring option' conftest.err ||
5364          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5365        am_cv_CC_dependencies_compiler_type=$depmode
5366        break
5367      fi
5368    fi
5369  done
5370
5371  cd ..
5372  rm -rf conftest.dir
5373else
5374  am_cv_CC_dependencies_compiler_type=none
5375fi
5376
5377fi
5378echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5379echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5380CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5381
5382
5383
5384if
5385  test "x$enable_dependency_tracking" != xno \
5386  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5387  am__fastdepCC_TRUE=
5388  am__fastdepCC_FALSE='#'
5389else
5390  am__fastdepCC_TRUE='#'
5391  am__fastdepCC_FALSE=
5392fi
5393
5394
5395depcc="$CXX"  am_compiler_list=
5396
5397echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5398echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5399if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5400  echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5403  # We make a subdir and do the tests there.  Otherwise we can end up
5404  # making bogus files that we don't know about and never remove.  For
5405  # instance it was reported that on HP-UX the gcc test will end up
5406  # making a dummy file named `D' -- because `-MD' means `put the output
5407  # in D'.
5408  mkdir conftest.dir
5409  # Copy depcomp to subdir because otherwise we won't find it if we're
5410  # using a relative directory.
5411  cp "$am_depcomp" conftest.dir
5412  cd conftest.dir
5413  # We will build objects and dependencies in a subdirectory because
5414  # it helps to detect inapplicable dependency modes.  For instance
5415  # both Tru64's cc and ICC support -MD to output dependencies as a
5416  # side effect of compilation, but ICC will put the dependencies in
5417  # the current directory while Tru64 will put them in the object
5418  # directory.
5419  mkdir sub
5420
5421  am_cv_CXX_dependencies_compiler_type=none
5422  if test "$am_compiler_list" = ""; then
5423     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5424  fi
5425  for depmode in $am_compiler_list; do
5426    # Setup a source with many dependencies, because some compilers
5427    # like to wrap large dependency lists on column 80 (with \), and
5428    # we should not choose a depcomp mode which is confused by this.
5429    #
5430    # We need to recreate these files for each test, as the compiler may
5431    # overwrite some of them when testing with obscure command lines.
5432    # This happens at least with the AIX C compiler.
5433    : > sub/conftest.c
5434    for i in 1 2 3 4 5 6; do
5435      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5436      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5437      # Solaris 8's {/usr,}/bin/sh.
5438      touch sub/conftst$i.h
5439    done
5440    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5441
5442    case $depmode in
5443    nosideeffect)
5444      # after this tag, mechanisms are not by side-effect, so they'll
5445      # only be used when explicitly requested
5446      if test "x$enable_dependency_tracking" = xyes; then
5447        continue
5448      else
5449        break
5450      fi
5451      ;;
5452    none) break ;;
5453    esac
5454    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5455    # mode.  It turns out that the SunPro C++ compiler does not properly
5456    # handle `-M -o', and we need to detect this.
5457    if depmode=$depmode \
5458       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5459       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5460       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5461         >/dev/null 2>conftest.err &&
5462       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5463       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5464       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5465      # icc doesn't choke on unknown options, it will just issue warnings
5466      # or remarks (even with -Werror).  So we grep stderr for any message
5467      # that says an option was ignored or not supported.
5468      # When given -MP, icc 7.0 and 7.1 complain thusly:
5469      #   icc: Command line warning: ignoring option '-M'; no argument required
5470      # The diagnosis changed in icc 8.0:
5471      #   icc: Command line remark: option '-MP' not supported
5472      if (grep 'ignoring option' conftest.err ||
5473          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5474        am_cv_CXX_dependencies_compiler_type=$depmode
5475        break
5476      fi
5477    fi
5478  done
5479
5480  cd ..
5481  rm -rf conftest.dir
5482else
5483  am_cv_CXX_dependencies_compiler_type=none
5484fi
5485
5486fi
5487echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5488echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5489CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5490
5491
5492
5493if
5494  test "x$enable_dependency_tracking" != xno \
5495  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5496  am__fastdepCXX_TRUE=
5497  am__fastdepCXX_FALSE='#'
5498else
5499  am__fastdepCXX_TRUE='#'
5500  am__fastdepCXX_FALSE=
5501fi
5502
5503
5504
5505echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5506echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5507    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5508if test "${enable_maintainer_mode+set}" = set; then
5509  enableval="$enable_maintainer_mode"
5510  USE_MAINTAINER_MODE=$enableval
5511else
5512  USE_MAINTAINER_MODE=no
5513fi;
5514  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5515echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5516
5517
5518if test $USE_MAINTAINER_MODE = yes; then
5519  MAINTAINER_MODE_TRUE=
5520  MAINTAINER_MODE_FALSE='#'
5521else
5522  MAINTAINER_MODE_TRUE='#'
5523  MAINTAINER_MODE_FALSE=
5524fi
5525
5526  MAINT=$MAINTAINER_MODE_TRUE
5527
5528
5529
5530coin_have_externals=no
5531if test "$enable_maintainer_mode" = yes; then
5532
5533  # If maintainer mode is chosen, we make sure that the correct versions
5534  # of the tools are used, and that we know where libtool.m4 is (to
5535  # recreate acinclude.m4)
5536
5537
5538  LIBTOOLM4=
5539  # Normally, $HOME
5540  AUTOTOOLS_DFLT=$HOME
5541
5542  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5543echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5544if test "${ac_cv_use_correct_autotools+set}" = set; then
5545  echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547  ac_cv_use_correct_autotools=check
5548fi
5549echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5550echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5551
5552  if test $ac_cv_use_correct_autotools = check; then
5553    ac_cv_use_correct_autotools=yes
5554    # Check if we have autoconf
5555    # Extract the first word of "autoconf", so it can be a program name with args.
5556set dummy autoconf; ac_word=$2
5557echo "$as_me:$LINENO: checking for $ac_word" >&5
5558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5559if test "${ac_cv_prog_have_autoconf+set}" = set; then
5560  echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562  if test -n "$have_autoconf"; then
5563  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5564else
5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568  IFS=$as_save_IFS
5569  test -z "$as_dir" && as_dir=.
5570  for ac_exec_ext in '' $ac_executable_extensions; do
5571  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572    ac_cv_prog_have_autoconf="yes"
5573    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574    break 2
5575  fi
5576done
5577done
5578
5579  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5580fi
5581fi
5582have_autoconf=$ac_cv_prog_have_autoconf
5583if test -n "$have_autoconf"; then
5584  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5585echo "${ECHO_T}$have_autoconf" >&6
5586else
5587  echo "$as_me:$LINENO: result: no" >&5
5588echo "${ECHO_T}no" >&6
5589fi
5590
5591    if test $have_autoconf = no; then
5592      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5593echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5594   { (exit 1); exit 1; }; }
5595    fi
5596
5597    # Check whether autoconf is the correct version
5598    correct_version='2.59'
5599    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5600    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5601echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5602    autoconf --version > confauto.out 2>&1
5603    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5604      echo "$as_me:$LINENO: result: yes" >&5
5605echo "${ECHO_T}yes" >&6
5606    else
5607      rm -f confauto.out
5608      echo "$as_me:$LINENO: result: no" >&5
5609echo "${ECHO_T}no" >&6
5610      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5611echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5612   { (exit 1); exit 1; }; }
5613    fi
5614    rm -f confauto.out
5615
5616    # Check if the executable autoconf is picked up from the correct location
5617    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5618echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5619    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5620    autoconf_dir=`cd $autoconf_dir; pwd`
5621    if test x$AUTOTOOLS_DIR = x; then
5622      want_dir=$AUTOTOOLS_DFLT/bin
5623    else
5624      want_dir=$AUTOTOOLS_DIR/bin
5625    fi
5626    if test $autoconf_dir = `cd $want_dir; pwd`; then
5627      echo "$as_me:$LINENO: result: yes" >&5
5628echo "${ECHO_T}yes" >&6
5629    else
5630      rm -f confauto.out
5631      echo "$as_me:$LINENO: result: no" >&5
5632echo "${ECHO_T}no" >&6
5633      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5634echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5635   { (exit 1); exit 1; }; }
5636    fi
5637
5638    # Check if we have automake
5639    # Extract the first word of "automake", so it can be a program name with args.
5640set dummy automake; ac_word=$2
5641echo "$as_me:$LINENO: checking for $ac_word" >&5
5642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5643if test "${ac_cv_prog_have_automake+set}" = set; then
5644  echo $ECHO_N "(cached) $ECHO_C" >&6
5645else
5646  if test -n "$have_automake"; then
5647  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5648else
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652  IFS=$as_save_IFS
5653  test -z "$as_dir" && as_dir=.
5654  for ac_exec_ext in '' $ac_executable_extensions; do
5655  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656    ac_cv_prog_have_automake="yes"
5657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5658    break 2
5659  fi
5660done
5661done
5662
5663  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5664fi
5665fi
5666have_automake=$ac_cv_prog_have_automake
5667if test -n "$have_automake"; then
5668  echo "$as_me:$LINENO: result: $have_automake" >&5
5669echo "${ECHO_T}$have_automake" >&6
5670else
5671  echo "$as_me:$LINENO: result: no" >&5
5672echo "${ECHO_T}no" >&6
5673fi
5674
5675    if test $have_automake = no; then
5676      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5677echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5678   { (exit 1); exit 1; }; }
5679    fi
5680
5681    # Check whether automake is the correct version
5682    correct_version='1.9.6'
5683    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5684    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5685echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5686    automake --version > confauto.out 2>&1
5687    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5688      echo "$as_me:$LINENO: result: yes" >&5
5689echo "${ECHO_T}yes" >&6
5690    else
5691      rm -f confauto.out
5692      echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6
5694      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5695echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5696   { (exit 1); exit 1; }; }
5697    fi
5698    rm -f confauto.out
5699
5700    # Check if the executable automake is picked up from the correct location
5701    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5702echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5703    automake_dir=`which automake | sed -e 's=/automake=='`
5704    automake_dir=`cd $automake_dir; pwd`
5705    if test x$AUTOTOOLS_DIR = x; then
5706      want_dir=$AUTOTOOLS_DFLT/bin
5707    else
5708      want_dir=$AUTOTOOLS_DIR/bin
5709    fi
5710    if test $automake_dir = `cd $want_dir; pwd`; then
5711      echo "$as_me:$LINENO: result: yes" >&5
5712echo "${ECHO_T}yes" >&6
5713    else
5714      rm -f confauto.out
5715      echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5718echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5719   { (exit 1); exit 1; }; }
5720    fi
5721
5722    # Check if this is the correct version of libtool (with escaped dots)
5723    if test x$AUTOTOOLS_DIR = x; then
5724      want_dir=$AUTOTOOLS_DFLT/share
5725    else
5726      want_dir=$AUTOTOOLS_DIR/share
5727    fi
5728    correct_version='1.5.22'
5729    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5730    if test -r $want_dir/libtool/ltmain.sh; then
5731  have_ltmain=yes
5732  :
5733else
5734  have_ltmain=no
5735  :
5736fi
5737
5738    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5739echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5740    if test $have_ltmain = yes; then
5741    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5742        echo "$as_me:$LINENO: result: yes" >&5
5743echo "${ECHO_T}yes" >&6
5744      else
5745        echo "$as_me:$LINENO: result: no" >&5
5746echo "${ECHO_T}no" >&6
5747        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5748echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5749   { (exit 1); exit 1; }; }
5750      fi
5751    else
5752      echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5755echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5756   { (exit 1); exit 1; }; }
5757    fi
5758  fi
5759
5760  # Check if we can find the libtool file
5761  if test x$AUTOTOOLS_DIR = x; then
5762    want_dir=$AUTOTOOLS_DFLT/share
5763  else
5764    want_dir=$AUTOTOOLS_DIR/share
5765  fi
5766  if test -r $want_dir/aclocal/libtool.m4; then
5767  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5768  :
5769else
5770  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5771echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5772   { (exit 1); exit 1; }; }
5773  :
5774fi
5775
5776
5777  # Check if we have an Externals file
5778  if test -r $srcdir/Externals; then
5779    coin_have_externals=yes
5780  fi
5781  # Check if subversion is installed and understands https
5782  # Extract the first word of "svn", so it can be a program name with args.
5783set dummy svn; ac_word=$2
5784echo "$as_me:$LINENO: checking for $ac_word" >&5
5785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5786if test "${ac_cv_prog_have_svn+set}" = set; then
5787  echo $ECHO_N "(cached) $ECHO_C" >&6
5788else
5789  if test -n "$have_svn"; then
5790  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5791else
5792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793for as_dir in $PATH
5794do
5795  IFS=$as_save_IFS
5796  test -z "$as_dir" && as_dir=.
5797  for ac_exec_ext in '' $ac_executable_extensions; do
5798  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799    ac_cv_prog_have_svn="yes"
5800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801    break 2
5802  fi
5803done
5804done
5805
5806  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5807fi
5808fi
5809have_svn=$ac_cv_prog_have_svn
5810if test -n "$have_svn"; then
5811  echo "$as_me:$LINENO: result: $have_svn" >&5
5812echo "${ECHO_T}$have_svn" >&6
5813else
5814  echo "$as_me:$LINENO: result: no" >&5
5815echo "${ECHO_T}no" >&6
5816fi
5817
5818  if test x$have_svn = xyes; then
5819    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5820echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5821if test "${ac_cv_svn_understands_https+set}" = set; then
5822  echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824  svn --version > confauto.out 2>&1
5825                    if $EGREP https confauto.out >/dev/null 2>&1; then
5826                      ac_cv_svn_understands_https=yes
5827                    else
5828                      ac_cv_svn_understands_https=no
5829                      have_svn=no
5830                      ac_cv_prog_have_svn=no
5831                    fi
5832                    rm -f confauto.out
5833fi
5834echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5835echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5836  fi
5837
5838  # Find the location of the BuildTools directory
5839  BUILDTOOLSDIR=
5840  if test -r $srcdir/BuildTools/coin.m4; then
5841    BUILDTOOLSDIR=$srcdir/BuildTools
5842  else
5843    if test -r $srcdir/../BuildTools/coin.m4; then
5844      BUILDTOOLSDIR=$srcdir/../BuildTools
5845    else
5846      if test -r $srcdir/../../BuildTools/coin.m4; then
5847        BUILDTOOLSDIR=$srcdir/../../BuildTools
5848      else
5849        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5850echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5851   { (exit 1); exit 1; }; }
5852      fi
5853    fi
5854  fi
5855
5856
5857  # The following variable is set to the name of the directory where
5858  # the autotool scripts are located
5859
5860  AUX_DIR=$ac_aux_dir
5861fi
5862
5863# helpful variable for the base directory of this package
5864abs_source_dir=`cd $srcdir; pwd`
5865
5866
5867# Stuff for example Makefiles
5868if test x$prefix = xNONE; then
5869  full_prefix=$ac_default_prefix
5870else
5871  full_prefix=$prefix
5872fi
5873full_prefix=`cd $full_prefix ; pwd`
5874
5875abs_lib_dir=$full_prefix/lib
5876
5877abs_include_dir=$full_prefix/include
5878
5879abs_bin_dir=$full_prefix/bin
5880
5881
5882
5883if test $coin_have_externals = yes && test x$have_svn = xyes; then
5884  HAVE_EXTERNALS_TRUE=
5885  HAVE_EXTERNALS_FALSE='#'
5886else
5887  HAVE_EXTERNALS_TRUE='#'
5888  HAVE_EXTERNALS_FALSE=
5889fi
5890
5891
5892# AC_MSG_NOTICE([End automake initialisation.])
5893
5894
5895
5896LIBTOOL=
5897if test -r ../libtool; then
5898  coin_config_dir=..
5899  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5900fi
5901if test "x$LIBTOOL" = x; then
5902  if test -r ../../libtool; then
5903    coin_config_dir=../..
5904    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5905  fi
5906fi
5907
5908if test "x$LIBTOOL" = x; then
5909# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5910  # Stuff for libtool
5911  # Check whether --enable-shared or --disable-shared was given.
5912if test "${enable_shared+set}" = set; then
5913  enableval="$enable_shared"
5914  p=${PACKAGE-default}
5915    case $enableval in
5916    yes) enable_shared=yes ;;
5917    no) enable_shared=no ;;
5918    *)
5919      enable_shared=no
5920      # Look at the argument we got.  We use all the common list separators.
5921      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5922      for pkg in $enableval; do
5923        IFS="$lt_save_ifs"
5924        if test "X$pkg" = "X$p"; then
5925          enable_shared=yes
5926        fi
5927      done
5928      IFS="$lt_save_ifs"
5929      ;;
5930    esac
5931else
5932  enable_shared=yes
5933fi;
5934
5935# Check whether --enable-fast-install or --disable-fast-install was given.
5936if test "${enable_fast_install+set}" = set; then
5937  enableval="$enable_fast_install"
5938  p=${PACKAGE-default}
5939    case $enableval in
5940    yes) enable_fast_install=yes ;;
5941    no) enable_fast_install=no ;;
5942    *)
5943      enable_fast_install=no
5944      # Look at the argument we got.  We use all the common list separators.
5945      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5946      for pkg in $enableval; do
5947        IFS="$lt_save_ifs"
5948        if test "X$pkg" = "X$p"; then
5949          enable_fast_install=yes
5950        fi
5951      done
5952      IFS="$lt_save_ifs"
5953      ;;
5954    esac
5955else
5956  enable_fast_install=yes
5957fi;
5958
5959echo "$as_me:$LINENO: checking host system type" >&5
5960echo $ECHO_N "checking host system type... $ECHO_C" >&6
5961if test "${ac_cv_host+set}" = set; then
5962  echo $ECHO_N "(cached) $ECHO_C" >&6
5963else
5964  ac_cv_host_alias=$host_alias
5965test -z "$ac_cv_host_alias" &&
5966  ac_cv_host_alias=$ac_cv_build_alias
5967ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5968  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5969echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5970   { (exit 1); exit 1; }; }
5971
5972fi
5973echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5974echo "${ECHO_T}$ac_cv_host" >&6
5975host=$ac_cv_host
5976host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5977host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5978host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5979
5980
5981echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5982echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5983if test "${lt_cv_path_SED+set}" = set; then
5984  echo $ECHO_N "(cached) $ECHO_C" >&6
5985else
5986  # Loop through the user's path and test for sed and gsed.
5987# Then use that list of sed's as ones to test for truncation.
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991  IFS=$as_save_IFS
5992  test -z "$as_dir" && as_dir=.
5993  for lt_ac_prog in sed gsed; do
5994    for ac_exec_ext in '' $ac_executable_extensions; do
5995      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5996        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5997      fi
5998    done
5999  done
6000done
6001lt_ac_max=0
6002lt_ac_count=0
6003# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6004# along with /bin/sed that truncates output.
6005for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6006  test ! -f $lt_ac_sed && continue
6007  cat /dev/null > conftest.in
6008  lt_ac_count=0
6009  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6010  # Check for GNU sed and select it if it is found.
6011  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6012    lt_cv_path_SED=$lt_ac_sed
6013    break
6014  fi
6015  while true; do
6016    cat conftest.in conftest.in >conftest.tmp
6017    mv conftest.tmp conftest.in
6018    cp conftest.in conftest.nl
6019    echo >>conftest.nl
6020    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6021    cmp -s conftest.out conftest.nl || break
6022    # 10000 chars as input seems more than enough
6023    test $lt_ac_count -gt 10 && break
6024    lt_ac_count=`expr $lt_ac_count + 1`
6025    if test $lt_ac_count -gt $lt_ac_max; then
6026      lt_ac_max=$lt_ac_count
6027      lt_cv_path_SED=$lt_ac_sed
6028    fi
6029  done
6030done
6031
6032fi
6033
6034SED=$lt_cv_path_SED
6035echo "$as_me:$LINENO: result: $SED" >&5
6036echo "${ECHO_T}$SED" >&6
6037
6038
6039# Check whether --with-gnu-ld or --without-gnu-ld was given.
6040if test "${with_gnu_ld+set}" = set; then
6041  withval="$with_gnu_ld"
6042  test "$withval" = no || with_gnu_ld=yes
6043else
6044  with_gnu_ld=no
6045fi;
6046ac_prog=ld
6047if test "$GCC" = yes; then
6048  # Check if gcc -print-prog-name=ld gives a path.
6049  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6050echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6051  case $host in
6052  *-*-mingw*)
6053    # gcc leaves a trailing carriage return which upsets mingw
6054    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6055  *)
6056    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6057  esac
6058  case $ac_prog in
6059    # Accept absolute paths.
6060    [\\/]* | ?:[\\/]*)
6061      re_direlt='/[^/][^/]*/\.\./'
6062      # Canonicalize the pathname of ld
6063      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6064      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6065        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6066      done
6067      test -z "$LD" && LD="$ac_prog"
6068      ;;
6069  "")
6070    # If it fails, then pretend we aren't using GCC.
6071    ac_prog=ld
6072    ;;
6073  *)
6074    # If it is relative, then search for the first ld in PATH.
6075    with_gnu_ld=unknown
6076    ;;
6077  esac
6078elif test "$with_gnu_ld" = yes; then
6079  echo "$as_me:$LINENO: checking for GNU ld" >&5
6080echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6081else
6082  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6083echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6084fi
6085if test "${lt_cv_path_LD+set}" = set; then
6086  echo $ECHO_N "(cached) $ECHO_C" >&6
6087else
6088  if test -z "$LD"; then
6089  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6090  for ac_dir in $PATH; do
6091    IFS="$lt_save_ifs"
6092    test -z "$ac_dir" && ac_dir=.
6093    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6094      lt_cv_path_LD="$ac_dir/$ac_prog"
6095      # Check to see if the program is GNU ld.  I'd rather use --version,
6096      # but apparently some variants of GNU ld only accept -v.
6097      # Break only if it was the GNU/non-GNU ld that we prefer.
6098      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6099      *GNU* | *'with BFD'*)
6100        test "$with_gnu_ld" != no && break
6101        ;;
6102      *)
6103        test "$with_gnu_ld" != yes && break
6104        ;;
6105      esac
6106    fi
6107  done
6108  IFS="$lt_save_ifs"
6109else
6110  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6111fi
6112fi
6113
6114LD="$lt_cv_path_LD"
6115if test -n "$LD"; then
6116  echo "$as_me:$LINENO: result: $LD" >&5
6117echo "${ECHO_T}$LD" >&6
6118else
6119  echo "$as_me:$LINENO: result: no" >&5
6120echo "${ECHO_T}no" >&6
6121fi
6122test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6123echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6124   { (exit 1); exit 1; }; }
6125echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6126echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6127if test "${lt_cv_prog_gnu_ld+set}" = set; then
6128  echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6131case `$LD -v 2>&1 </dev/null` in
6132*GNU* | *'with BFD'*)
6133  lt_cv_prog_gnu_ld=yes
6134  ;;
6135*)
6136  lt_cv_prog_gnu_ld=no
6137  ;;
6138esac
6139fi
6140echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6141echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6142with_gnu_ld=$lt_cv_prog_gnu_ld
6143
6144
6145echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6146echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6147if test "${lt_cv_ld_reload_flag+set}" = set; then
6148  echo $ECHO_N "(cached) $ECHO_C" >&6
6149else
6150  lt_cv_ld_reload_flag='-r'
6151fi
6152echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6153echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6154reload_flag=$lt_cv_ld_reload_flag
6155case $reload_flag in
6156"" | " "*) ;;
6157*) reload_flag=" $reload_flag" ;;
6158esac
6159reload_cmds='$LD$reload_flag -o $output$reload_objs'
6160case $host_os in
6161  darwin*)
6162    if test "$GCC" = yes; then
6163      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6164    else
6165      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6166    fi
6167    ;;
6168esac
6169
6170echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6171echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6172if test "${lt_cv_path_NM+set}" = set; then
6173  echo $ECHO_N "(cached) $ECHO_C" >&6
6174else
6175  if test -n "$NM"; then
6176  # Let the user override the test.
6177  lt_cv_path_NM="$NM"
6178else
6179  lt_nm_to_check="${ac_tool_prefix}nm"
6180  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6181    lt_nm_to_check="$lt_nm_to_check nm"
6182  fi
6183  for lt_tmp_nm in $lt_nm_to_check; do
6184    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6185    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6186      IFS="$lt_save_ifs"
6187      test -z "$ac_dir" && ac_dir=.
6188      tmp_nm="$ac_dir/$lt_tmp_nm"
6189      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6190        # Check to see if the nm accepts a BSD-compat flag.
6191        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6192        #   nm: unknown option "B" ignored
6193        # Tru64's nm complains that /dev/null is an invalid object file
6194        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6195        */dev/null* | *'Invalid file or object type'*)
6196          lt_cv_path_NM="$tmp_nm -B"
6197          break
6198          ;;
6199        *)
6200          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6201          */dev/null*)
6202            lt_cv_path_NM="$tmp_nm -p"
6203            break
6204            ;;
6205          *)
6206            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6207            continue # so that we can try to find one that supports BSD flags
6208            ;;
6209          esac
6210          ;;
6211        esac
6212      fi
6213    done
6214    IFS="$lt_save_ifs"
6215  done
6216  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6217fi
6218fi
6219echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6220echo "${ECHO_T}$lt_cv_path_NM" >&6
6221NM="$lt_cv_path_NM"
6222
6223echo "$as_me:$LINENO: checking whether ln -s works" >&5
6224echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6225LN_S=$as_ln_s
6226if test "$LN_S" = "ln -s"; then
6227  echo "$as_me:$LINENO: result: yes" >&5
6228echo "${ECHO_T}yes" >&6
6229else
6230  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6231echo "${ECHO_T}no, using $LN_S" >&6
6232fi
6233
6234echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6235echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6236if test "${lt_cv_deplibs_check_method+set}" = set; then
6237  echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239  lt_cv_file_magic_cmd='$MAGIC_CMD'
6240lt_cv_file_magic_test_file=
6241lt_cv_deplibs_check_method='unknown'
6242# Need to set the preceding variable on all platforms that support
6243# interlibrary dependencies.
6244# 'none' -- dependencies not supported.
6245# `unknown' -- same as none, but documents that we really don't know.
6246# 'pass_all' -- all dependencies passed with no checks.
6247# 'test_compile' -- check by making test program.
6248# 'file_magic [[regex]]' -- check by looking for files in library path
6249# which responds to the $file_magic_cmd with a given extended regex.
6250# If you have `file' or equivalent on your system and you're not sure
6251# whether `pass_all' will *always* work, you probably want this one.
6252
6253case $host_os in
6254aix4* | aix5*)
6255  lt_cv_deplibs_check_method=pass_all
6256  ;;
6257
6258beos*)
6259  lt_cv_deplibs_check_method=pass_all
6260  ;;
6261
6262bsdi[45]*)
6263  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6264  lt_cv_file_magic_cmd='/usr/bin/file -L'
6265  lt_cv_file_magic_test_file=/shlib/libc.so
6266  ;;
6267
6268cygwin*)
6269  # func_win32_libid is a shell function defined in ltmain.sh
6270  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6271  lt_cv_file_magic_cmd='func_win32_libid'
6272  ;;
6273
6274mingw* | pw32*)
6275  # Base MSYS/MinGW do not provide the 'file' command needed by
6276  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6277  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6278  lt_cv_file_magic_cmd='$OBJDUMP -f'
6279  ;;
6280
6281darwin* | rhapsody*)
6282  lt_cv_deplibs_check_method=pass_all
6283  ;;
6284
6285freebsd* | kfreebsd*-gnu | dragonfly*)
6286  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6287    case $host_cpu in
6288    i*86 )
6289      # Not sure whether the presence of OpenBSD here was a mistake.
6290      # Let's accept both of them until this is cleared up.
6291      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6292      lt_cv_file_magic_cmd=/usr/bin/file
6293      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6294      ;;
6295    esac
6296  else
6297    lt_cv_deplibs_check_method=pass_all
6298  fi
6299  ;;
6300
6301gnu*)
6302  lt_cv_deplibs_check_method=pass_all
6303  ;;
6304
6305hpux10.20* | hpux11*)
6306  lt_cv_file_magic_cmd=/usr/bin/file
6307  case $host_cpu in
6308  ia64*)
6309    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6310    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6311    ;;
6312  hppa*64*)
6313    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]'
6314    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6315    ;;
6316  *)
6317    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6318    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6319    ;;
6320  esac
6321  ;;
6322
6323interix3*)
6324  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6325  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6326  ;;
6327
6328irix5* | irix6* | nonstopux*)
6329  case $LD in
6330  *-32|*"-32 ") libmagic=32-bit;;
6331  *-n32|*"-n32 ") libmagic=N32;;
6332  *-64|*"-64 ") libmagic=64-bit;;
6333  *) libmagic=never-match;;
6334  esac
6335  lt_cv_deplibs_check_method=pass_all
6336  ;;
6337
6338# This must be Linux ELF.
6339linux*)
6340  lt_cv_deplibs_check_method=pass_all
6341  ;;
6342
6343netbsd*)
6344  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6345    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6346  else
6347    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6348  fi
6349  ;;
6350
6351newos6*)
6352  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6353  lt_cv_file_magic_cmd=/usr/bin/file
6354  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6355  ;;
6356
6357nto-qnx*)
6358  lt_cv_deplibs_check_method=unknown
6359  ;;
6360
6361openbsd*)
6362  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6363    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6364  else
6365    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6366  fi
6367  ;;
6368
6369osf3* | osf4* | osf5*)
6370  lt_cv_deplibs_check_method=pass_all
6371  ;;
6372
6373solaris*)
6374  lt_cv_deplibs_check_method=pass_all
6375  ;;
6376
6377sysv4 | sysv4.3*)
6378  case $host_vendor in
6379  motorola)
6380    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]'
6381    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6382    ;;
6383  ncr)
6384    lt_cv_deplibs_check_method=pass_all
6385    ;;
6386  sequent)
6387    lt_cv_file_magic_cmd='/bin/file'
6388    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6389    ;;
6390  sni)
6391    lt_cv_file_magic_cmd='/bin/file'
6392    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6393    lt_cv_file_magic_test_file=/lib/libc.so
6394    ;;
6395  siemens)
6396    lt_cv_deplibs_check_method=pass_all
6397    ;;
6398  pc)
6399    lt_cv_deplibs_check_method=pass_all
6400    ;;
6401  esac
6402  ;;
6403
6404sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6405  lt_cv_deplibs_check_method=pass_all
6406  ;;
6407esac
6408
6409fi
6410echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6411echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6412file_magic_cmd=$lt_cv_file_magic_cmd
6413deplibs_check_method=$lt_cv_deplibs_check_method
6414test -z "$deplibs_check_method" && deplibs_check_method=unknown
6415
6416
6417
6418
6419# If no C compiler was specified, use CC.
6420LTCC=${LTCC-"$CC"}
6421
6422# If no C compiler flags were specified, use CFLAGS.
6423LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6424
6425# Allow CC to be a program name with arguments.
6426compiler=$CC
6427
6428# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6429if test "${enable_libtool_lock+set}" = set; then
6430  enableval="$enable_libtool_lock"
6431
6432fi;
6433test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6434
6435# Some flags need to be propagated to the compiler or linker for good
6436# libtool support.
6437case $host in
6438ia64-*-hpux*)
6439  # Find out which ABI we are using.
6440  echo 'int i;' > conftest.$ac_ext
6441  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442  (eval $ac_compile) 2>&5
6443  ac_status=$?
6444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445  (exit $ac_status); }; then
6446    case `/usr/bin/file conftest.$ac_objext` in
6447    *ELF-32*)
6448      HPUX_IA64_MODE="32"
6449      ;;
6450    *ELF-64*)
6451      HPUX_IA64_MODE="64"
6452      ;;
6453    esac
6454  fi
6455  rm -rf conftest*
6456  ;;
6457*-*-irix6*)
6458  # Find out which ABI we are using.
6459  echo '#line 6459 "configure"' > conftest.$ac_ext
6460  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6461  (eval $ac_compile) 2>&5
6462  ac_status=$?
6463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464  (exit $ac_status); }; then
6465   if test "$lt_cv_prog_gnu_ld" = yes; then
6466    case `/usr/bin/file conftest.$ac_objext` in
6467    *32-bit*)
6468      LD="${LD-ld} -melf32bsmip"
6469      ;;
6470    *N32*)
6471      LD="${LD-ld} -melf32bmipn32"
6472      ;;
6473    *64-bit*)
6474      LD="${LD-ld} -melf64bmip"
6475      ;;
6476    esac
6477   else
6478    case `/usr/bin/file conftest.$ac_objext` in
6479    *32-bit*)
6480      LD="${LD-ld} -32"
6481      ;;
6482    *N32*)
6483      LD="${LD-ld} -n32"
6484      ;;
6485    *64-bit*)
6486      LD="${LD-ld} -64"
6487      ;;
6488    esac
6489   fi
6490  fi
6491  rm -rf conftest*
6492  ;;
6493
6494x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6495  # Find out which ABI we are using.
6496  echo 'int i;' > conftest.$ac_ext
6497  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6498  (eval $ac_compile) 2>&5
6499  ac_status=$?
6500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501  (exit $ac_status); }; then
6502    case `/usr/bin/file conftest.o` in
6503    *32-bit*)
6504      case $host in
6505        x86_64-*linux*)
6506          LD="${LD-ld} -m elf_i386"
6507          ;;
6508        ppc64-*linux*|powerpc64-*linux*)
6509          LD="${LD-ld} -m elf32ppclinux"
6510          ;;
6511        s390x-*linux*)
6512          LD="${LD-ld} -m elf_s390"
6513          ;;
6514        sparc64-*linux*)
6515          LD="${LD-ld} -m elf32_sparc"
6516          ;;
6517      esac
6518      ;;
6519    *64-bit*)
6520      case $host in
6521        x86_64-*linux*)
6522          LD="${LD-ld} -m elf_x86_64"
6523          ;;
6524        ppc*-*linux*|powerpc*-*linux*)
6525          LD="${LD-ld} -m elf64ppc"
6526          ;;
6527        s390*-*linux*)
6528          LD="${LD-ld} -m elf64_s390"
6529          ;;
6530        sparc*-*linux*)
6531          LD="${LD-ld} -m elf64_sparc"
6532          ;;
6533      esac
6534      ;;
6535    esac
6536  fi
6537  rm -rf conftest*
6538  ;;
6539
6540*-*-sco3.2v5*)
6541  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6542  SAVE_CFLAGS="$CFLAGS"
6543  CFLAGS="$CFLAGS -belf"
6544  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6545echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6546if test "${lt_cv_cc_needs_belf+set}" = set; then
6547  echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
6549  ac_ext=c
6550ac_cpp='$CPP $CPPFLAGS'
6551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553ac_compiler_gnu=$ac_cv_c_compiler_gnu
6554
6555     cat >conftest.$ac_ext <<_ACEOF
6556/* confdefs.h.  */
6557_ACEOF
6558cat confdefs.h >>conftest.$ac_ext
6559cat >>conftest.$ac_ext <<_ACEOF
6560/* end confdefs.h.  */
6561
6562int
6563main ()
6564{
6565
6566  ;
6567  return 0;
6568}
6569_ACEOF
6570rm -f conftest.$ac_objext conftest$ac_exeext
6571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572  (eval $ac_link) 2>conftest.er1
6573  ac_status=$?
6574  grep -v '^ *+' conftest.er1 >conftest.err
6575  rm -f conftest.er1
6576  cat conftest.err >&5
6577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578  (exit $ac_status); } &&
6579         { ac_try='test -z "$ac_c_werror_flag"
6580                         || test ! -s conftest.err'
6581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582  (eval $ac_try) 2>&5
6583  ac_status=$?
6584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585  (exit $ac_status); }; } &&
6586         { ac_try='test -s conftest$ac_exeext'
6587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588  (eval $ac_try) 2>&5
6589  ac_status=$?
6590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591  (exit $ac_status); }; }; then
6592  lt_cv_cc_needs_belf=yes
6593else
6594  echo "$as_me: failed program was:" >&5
6595sed 's/^/| /' conftest.$ac_ext >&5
6596
6597lt_cv_cc_needs_belf=no
6598fi
6599rm -f conftest.err conftest.$ac_objext \
6600      conftest$ac_exeext conftest.$ac_ext
6601     ac_ext=c
6602ac_cpp='$CPP $CPPFLAGS'
6603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605ac_compiler_gnu=$ac_cv_c_compiler_gnu
6606
6607fi
6608echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6609echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6610  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6611    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6612    CFLAGS="$SAVE_CFLAGS"
6613  fi
6614  ;;
6615sparc*-*solaris*)
6616  # Find out which ABI we are using.
6617  echo 'int i;' > conftest.$ac_ext
6618  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619  (eval $ac_compile) 2>&5
6620  ac_status=$?
6621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622  (exit $ac_status); }; then
6623    case `/usr/bin/file conftest.o` in
6624    *64-bit*)
6625      case $lt_cv_prog_gnu_ld in
6626      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6627      *)    LD="${LD-ld} -64" ;;
6628      esac
6629      ;;
6630    esac
6631  fi
6632  rm -rf conftest*
6633  ;;
6634
6635
6636esac
6637
6638need_locks="$enable_libtool_lock"
6639
6640
6641ac_ext=c
6642ac_cpp='$CPP $CPPFLAGS'
6643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645ac_compiler_gnu=$ac_cv_c_compiler_gnu
6646echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6647echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6648# On Suns, sometimes $CPP names a directory.
6649if test -n "$CPP" && test -d "$CPP"; then
6650  CPP=
6651fi
6652if test -z "$CPP"; then
6653  if test "${ac_cv_prog_CPP+set}" = set; then
6654  echo $ECHO_N "(cached) $ECHO_C" >&6
6655else
6656      # Double quotes because CPP needs to be expanded
6657    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6658    do
6659      ac_preproc_ok=false
6660for ac_c_preproc_warn_flag in '' yes
6661do
6662  # Use a header file that comes with gcc, so configuring glibc
6663  # with a fresh cross-compiler works.
6664  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6665  # <limits.h> exists even on freestanding compilers.
6666  # On the NeXT, cc -E runs the code through the compiler's parser,
6667  # not just through cpp. "Syntax error" is here to catch this case.
6668  cat >conftest.$ac_ext <<_ACEOF
6669/* confdefs.h.  */
6670_ACEOF
6671cat confdefs.h >>conftest.$ac_ext
6672cat >>conftest.$ac_ext <<_ACEOF
6673/* end confdefs.h.  */
6674#ifdef __STDC__
6675# include <limits.h>
6676#else
6677# include <assert.h>
6678#endif
6679                     Syntax error
6680_ACEOF
6681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6682  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6683  ac_status=$?
6684  grep -v '^ *+' conftest.er1 >conftest.err
6685  rm -f conftest.er1
6686  cat conftest.err >&5
6687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); } >/dev/null; then
6689  if test -s conftest.err; then
6690    ac_cpp_err=$ac_c_preproc_warn_flag
6691    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6692  else
6693    ac_cpp_err=
6694  fi
6695else
6696  ac_cpp_err=yes
6697fi
6698if test -z "$ac_cpp_err"; then
6699  :
6700else
6701  echo "$as_me: failed program was:" >&5
6702sed 's/^/| /' conftest.$ac_ext >&5
6703
6704  # Broken: fails on valid input.
6705continue
6706fi
6707rm -f conftest.err conftest.$ac_ext
6708
6709  # OK, works on sane cases.  Now check whether non-existent headers
6710  # can be detected and how.
6711  cat >conftest.$ac_ext <<_ACEOF
6712/* confdefs.h.  */
6713_ACEOF
6714cat confdefs.h >>conftest.$ac_ext
6715cat >>conftest.$ac_ext <<_ACEOF
6716/* end confdefs.h.  */
6717#include <ac_nonexistent.h>
6718_ACEOF
6719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6720  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6721  ac_status=$?
6722  grep -v '^ *+' conftest.er1 >conftest.err
6723  rm -f conftest.er1
6724  cat conftest.err >&5
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); } >/dev/null; then
6727  if test -s conftest.err; then
6728    ac_cpp_err=$ac_c_preproc_warn_flag
6729    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6730  else
6731    ac_cpp_err=
6732  fi
6733else
6734  ac_cpp_err=yes
6735fi
6736if test -z "$ac_cpp_err"; then
6737  # Broken: success on invalid input.
6738continue
6739else
6740  echo "$as_me: failed program was:" >&5
6741sed 's/^/| /' conftest.$ac_ext >&5
6742
6743  # Passes both tests.
6744ac_preproc_ok=:
6745break
6746fi
6747rm -f conftest.err conftest.$ac_ext
6748
6749done
6750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6751rm -f conftest.err conftest.$ac_ext
6752if $ac_preproc_ok; then
6753  break
6754fi
6755
6756    done
6757    ac_cv_prog_CPP=$CPP
6758
6759fi
6760  CPP=$ac_cv_prog_CPP
6761else
6762  ac_cv_prog_CPP=$CPP
6763fi
6764echo "$as_me:$LINENO: result: $CPP" >&5
6765echo "${ECHO_T}$CPP" >&6
6766ac_preproc_ok=false
6767for ac_c_preproc_warn_flag in '' yes
6768do
6769  # Use a header file that comes with gcc, so configuring glibc
6770  # with a fresh cross-compiler works.
6771  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6772  # <limits.h> exists even on freestanding compilers.
6773  # On the NeXT, cc -E runs the code through the compiler's parser,
6774  # not just through cpp. "Syntax error" is here to catch this case.
6775  cat >conftest.$ac_ext <<_ACEOF
6776/* confdefs.h.  */
6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h.  */
6781#ifdef __STDC__
6782# include <limits.h>
6783#else
6784# include <assert.h>
6785#endif
6786                     Syntax error
6787_ACEOF
6788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6789  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6790  ac_status=$?
6791  grep -v '^ *+' conftest.er1 >conftest.err
6792  rm -f conftest.er1
6793  cat conftest.err >&5
6794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795  (exit $ac_status); } >/dev/null; then
6796  if test -s conftest.err; then
6797    ac_cpp_err=$ac_c_preproc_warn_flag
6798    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6799  else
6800    ac_cpp_err=
6801  fi
6802else
6803  ac_cpp_err=yes
6804fi
6805if test -z "$ac_cpp_err"; then
6806  :
6807else
6808  echo "$as_me: failed program was:" >&5
6809sed 's/^/| /' conftest.$ac_ext >&5
6810
6811  # Broken: fails on valid input.
6812continue
6813fi
6814rm -f conftest.err conftest.$ac_ext
6815
6816  # OK, works on sane cases.  Now check whether non-existent headers
6817  # can be detected and how.
6818  cat >conftest.$ac_ext <<_ACEOF
6819/* confdefs.h.  */
6820_ACEOF
6821cat confdefs.h >>conftest.$ac_ext
6822cat >>conftest.$ac_ext <<_ACEOF
6823/* end confdefs.h.  */
6824#include <ac_nonexistent.h>
6825_ACEOF
6826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6827  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6828  ac_status=$?
6829  grep -v '^ *+' conftest.er1 >conftest.err
6830  rm -f conftest.er1
6831  cat conftest.err >&5
6832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833  (exit $ac_status); } >/dev/null; then
6834  if test -s conftest.err; then
6835    ac_cpp_err=$ac_c_preproc_warn_flag
6836    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6837  else
6838    ac_cpp_err=
6839  fi
6840else
6841  ac_cpp_err=yes
6842fi
6843if test -z "$ac_cpp_err"; then
6844  # Broken: success on invalid input.
6845continue
6846else
6847  echo "$as_me: failed program was:" >&5
6848sed 's/^/| /' conftest.$ac_ext >&5
6849
6850  # Passes both tests.
6851ac_preproc_ok=:
6852break
6853fi
6854rm -f conftest.err conftest.$ac_ext
6855
6856done
6857# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6858rm -f conftest.err conftest.$ac_ext
6859if $ac_preproc_ok; then
6860  :
6861else
6862  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6863See \`config.log' for more details." >&5
6864echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6865See \`config.log' for more details." >&2;}
6866   { (exit 1); exit 1; }; }
6867fi
6868
6869ac_ext=c
6870ac_cpp='$CPP $CPPFLAGS'
6871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873ac_compiler_gnu=$ac_cv_c_compiler_gnu
6874
6875
6876echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6877echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6878if test "${ac_cv_header_stdc+set}" = set; then
6879  echo $ECHO_N "(cached) $ECHO_C" >&6
6880else
6881  cat >conftest.$ac_ext <<_ACEOF
6882/* confdefs.h.  */
6883_ACEOF
6884cat confdefs.h >>conftest.$ac_ext
6885cat >>conftest.$ac_ext <<_ACEOF
6886/* end confdefs.h.  */
6887#include <stdlib.h>
6888#include <stdarg.h>
6889#include <string.h>
6890#include <float.h>
6891
6892int
6893main ()
6894{
6895
6896  ;
6897  return 0;
6898}
6899_ACEOF
6900rm -f conftest.$ac_objext
6901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902  (eval $ac_compile) 2>conftest.er1
6903  ac_status=$?
6904  grep -v '^ *+' conftest.er1 >conftest.err
6905  rm -f conftest.er1
6906  cat conftest.err >&5
6907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908  (exit $ac_status); } &&
6909         { ac_try='test -z "$ac_c_werror_flag"
6910                         || test ! -s conftest.err'
6911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912  (eval $ac_try) 2>&5
6913  ac_status=$?
6914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915  (exit $ac_status); }; } &&
6916         { ac_try='test -s conftest.$ac_objext'
6917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918  (eval $ac_try) 2>&5
6919  ac_status=$?
6920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921  (exit $ac_status); }; }; then
6922  ac_cv_header_stdc=yes
6923else
6924  echo "$as_me: failed program was:" >&5
6925sed 's/^/| /' conftest.$ac_ext >&5
6926
6927ac_cv_header_stdc=no
6928fi
6929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6930
6931if test $ac_cv_header_stdc = yes; then
6932  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6933  cat >conftest.$ac_ext <<_ACEOF
6934/* confdefs.h.  */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h.  */
6939#include <string.h>
6940
6941_ACEOF
6942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6943  $EGREP "memchr" >/dev/null 2>&1; then
6944  :
6945else
6946  ac_cv_header_stdc=no
6947fi
6948rm -f conftest*
6949
6950fi
6951
6952if test $ac_cv_header_stdc = yes; then
6953  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6954  cat >conftest.$ac_ext <<_ACEOF
6955/* confdefs.h.  */
6956_ACEOF
6957cat confdefs.h >>conftest.$ac_ext
6958cat >>conftest.$ac_ext <<_ACEOF
6959/* end confdefs.h.  */
6960#include <stdlib.h>
6961
6962_ACEOF
6963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6964  $EGREP "free" >/dev/null 2>&1; then
6965  :
6966else
6967  ac_cv_header_stdc=no
6968fi
6969rm -f conftest*
6970
6971fi
6972
6973if test $ac_cv_header_stdc = yes; then
6974  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6975  if test "$cross_compiling" = yes; then
6976  :
6977else
6978  cat >conftest.$ac_ext <<_ACEOF
6979/* confdefs.h.  */
6980_ACEOF
6981cat confdefs.h >>conftest.$ac_ext
6982cat >>conftest.$ac_ext <<_ACEOF
6983/* end confdefs.h.  */
6984#include <ctype.h>
6985#if ((' ' & 0x0FF) == 0x020)
6986# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6987# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6988#else
6989# define ISLOWER(c) \
6990                   (('a' <= (c) && (c) <= 'i') \
6991                     || ('j' <= (c) && (c) <= 'r') \
6992                     || ('s' <= (c) && (c) <= 'z'))
6993# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6994#endif
6995
6996#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6997int
6998main ()
6999{
7000  int i;
7001  for (i = 0; i < 256; i++)
7002    if (XOR (islower (i), ISLOWER (i))
7003        || toupper (i) != TOUPPER (i))
7004      exit(2);
7005  exit (0);
7006}
7007_ACEOF
7008rm -f conftest$ac_exeext
7009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010  (eval $ac_link) 2>&5
7011  ac_status=$?
7012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015  (eval $ac_try) 2>&5
7016  ac_status=$?
7017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018  (exit $ac_status); }; }; then
7019  :
7020else
7021  echo "$as_me: program exited with status $ac_status" >&5
7022echo "$as_me: failed program was:" >&5
7023sed 's/^/| /' conftest.$ac_ext >&5
7024
7025( exit $ac_status )
7026ac_cv_header_stdc=no
7027fi
7028rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7029fi
7030fi
7031fi
7032echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7033echo "${ECHO_T}$ac_cv_header_stdc" >&6
7034if test $ac_cv_header_stdc = yes; then
7035
7036cat >>confdefs.h <<\_ACEOF
7037#define STDC_HEADERS 1
7038_ACEOF
7039
7040fi
7041
7042# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7053                  inttypes.h stdint.h unistd.h
7054do
7055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7056echo "$as_me:$LINENO: checking for $ac_header" >&5
7057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7058if eval "test \"\${$as_ac_Header+set}\" = set"; then
7059  echo $ECHO_N "(cached) $ECHO_C" >&6
7060else
7061  cat >conftest.$ac_ext <<_ACEOF
7062/* confdefs.h.  */
7063_ACEOF
7064cat confdefs.h >>conftest.$ac_ext
7065cat >>conftest.$ac_ext <<_ACEOF
7066/* end confdefs.h.  */
7067$ac_includes_default
7068
7069#include <$ac_header>
7070_ACEOF
7071rm -f conftest.$ac_objext
7072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7073  (eval $ac_compile) 2>conftest.er1
7074  ac_status=$?
7075  grep -v '^ *+' conftest.er1 >conftest.err
7076  rm -f conftest.er1
7077  cat conftest.err >&5
7078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079  (exit $ac_status); } &&
7080         { ac_try='test -z "$ac_c_werror_flag"
7081                         || test ! -s conftest.err'
7082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083  (eval $ac_try) 2>&5
7084  ac_status=$?
7085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086  (exit $ac_status); }; } &&
7087         { ac_try='test -s conftest.$ac_objext'
7088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089  (eval $ac_try) 2>&5
7090  ac_status=$?
7091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092  (exit $ac_status); }; }; then
7093  eval "$as_ac_Header=yes"
7094else
7095  echo "$as_me: failed program was:" >&5
7096sed 's/^/| /' conftest.$ac_ext >&5
7097
7098eval "$as_ac_Header=no"
7099fi
7100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101fi
7102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7104if test `eval echo '${'$as_ac_Header'}'` = yes; then
7105  cat >>confdefs.h <<_ACEOF
7106#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7107_ACEOF
7108
7109fi
7110
7111done
7112
7113
7114
7115for ac_header in dlfcn.h
7116do
7117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7118if eval "test \"\${$as_ac_Header+set}\" = set"; then
7119  echo "$as_me:$LINENO: checking for $ac_header" >&5
7120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7121if eval "test \"\${$as_ac_Header+set}\" = set"; then
7122  echo $ECHO_N "(cached) $ECHO_C" >&6
7123fi
7124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7125echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7126else
7127  # Is the header compilable?
7128echo "$as_me:$LINENO: checking $ac_header usability" >&5
7129echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7130cat >conftest.$ac_ext <<_ACEOF
7131/* confdefs.h.  */
7132_ACEOF
7133cat confdefs.h >>conftest.$ac_ext
7134cat >>conftest.$ac_ext <<_ACEOF
7135/* end confdefs.h.  */
7136$ac_includes_default
7137#include <$ac_header>
7138_ACEOF
7139rm -f conftest.$ac_objext
7140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141  (eval $ac_compile) 2>conftest.er1
7142  ac_status=$?
7143  grep -v '^ *+' conftest.er1 >conftest.err
7144  rm -f conftest.er1
7145  cat conftest.err >&5
7146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147  (exit $ac_status); } &&
7148         { ac_try='test -z "$ac_c_werror_flag"
7149                         || test ! -s conftest.err'
7150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151  (eval $ac_try) 2>&5
7152  ac_status=$?
7153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154  (exit $ac_status); }; } &&
7155         { ac_try='test -s conftest.$ac_objext'
7156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157  (eval $ac_try) 2>&5
7158  ac_status=$?
7159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160  (exit $ac_status); }; }; then
7161  ac_header_compiler=yes
7162else
7163  echo "$as_me: failed program was:" >&5
7164sed 's/^/| /' conftest.$ac_ext >&5
7165
7166ac_header_compiler=no
7167fi
7168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7169echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7170echo "${ECHO_T}$ac_header_compiler" >&6
7171
7172# Is the header present?
7173echo "$as_me:$LINENO: checking $ac_header presence" >&5
7174echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7175cat >conftest.$ac_ext <<_ACEOF
7176/* confdefs.h.  */
7177_ACEOF
7178cat confdefs.h >>conftest.$ac_ext
7179cat >>conftest.$ac_ext <<_ACEOF
7180/* end confdefs.h.  */
7181#include <$ac_header>
7182_ACEOF
7183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7184  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
7191  if test -s conftest.err; then
7192    ac_cpp_err=$ac_c_preproc_warn_flag
7193    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7194  else
7195    ac_cpp_err=
7196  fi
7197else
7198  ac_cpp_err=yes
7199fi
7200if test -z "$ac_cpp_err"; then
7201  ac_header_preproc=yes
7202else
7203  echo "$as_me: failed program was:" >&5
7204sed 's/^/| /' conftest.$ac_ext >&5
7205
7206  ac_header_preproc=no
7207fi
7208rm -f conftest.err conftest.$ac_ext
7209echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7210echo "${ECHO_T}$ac_header_preproc" >&6
7211
7212# So?  What about this header?
7213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7214  yes:no: )
7215    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7217    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7219    ac_header_preproc=yes
7220    ;;
7221  no:yes:* )
7222    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7224    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7225echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7226    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7228    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7229echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7230    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7232    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7234    (
7235      cat <<\_ASBOX
7236## ----------------------------------------- ##
7237## Report this to coin-clp@lists.coin-or.org ##
7238## ----------------------------------------- ##
7239_ASBOX
7240    ) |
7241      sed "s/^/$as_me: WARNING:     /" >&2
7242    ;;
7243esac
7244echo "$as_me:$LINENO: checking for $ac_header" >&5
7245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7246if eval "test \"\${$as_ac_Header+set}\" = set"; then
7247  echo $ECHO_N "(cached) $ECHO_C" >&6
7248else
7249  eval "$as_ac_Header=\$ac_header_preproc"
7250fi
7251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7253
7254fi
7255if test `eval echo '${'$as_ac_Header'}'` = yes; then
7256  cat >>confdefs.h <<_ACEOF
7257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7258_ACEOF
7259
7260fi
7261
7262done
7263
7264
7265
7266if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7267    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7268    (test "X$CXX" != "Xg++"))) ; then
7269  ac_ext=cc
7270ac_cpp='$CXXCPP $CPPFLAGS'
7271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7274echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7275echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7276if test -z "$CXXCPP"; then
7277  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7278  echo $ECHO_N "(cached) $ECHO_C" >&6
7279else
7280      # Double quotes because CXXCPP needs to be expanded
7281    for CXXCPP in "$CXX -E" "/lib/cpp"
7282    do
7283      ac_preproc_ok=false
7284for ac_cxx_preproc_warn_flag in '' yes
7285do
7286  # Use a header file that comes with gcc, so configuring glibc
7287  # with a fresh cross-compiler works.
7288  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7289  # <limits.h> exists even on freestanding compilers.
7290  # On the NeXT, cc -E runs the code through the compiler's parser,
7291  # not just through cpp. "Syntax error" is here to catch this case.
7292  cat >conftest.$ac_ext <<_ACEOF
7293/* confdefs.h.  */
7294_ACEOF
7295cat confdefs.h >>conftest.$ac_ext
7296cat >>conftest.$ac_ext <<_ACEOF
7297/* end confdefs.h.  */
7298#ifdef __STDC__
7299# include <limits.h>
7300#else
7301# include <assert.h>
7302#endif
7303                     Syntax error
7304_ACEOF
7305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7306  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7307  ac_status=$?
7308  grep -v '^ *+' conftest.er1 >conftest.err
7309  rm -f conftest.er1
7310  cat conftest.err >&5
7311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312  (exit $ac_status); } >/dev/null; then
7313  if test -s conftest.err; then
7314    ac_cpp_err=$ac_cxx_preproc_warn_flag
7315    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7316  else
7317    ac_cpp_err=
7318  fi
7319else
7320  ac_cpp_err=yes
7321fi
7322if test -z "$ac_cpp_err"; then
7323  :
7324else
7325  echo "$as_me: failed program was:" >&5
7326sed 's/^/| /' conftest.$ac_ext >&5
7327
7328  # Broken: fails on valid input.
7329continue
7330fi
7331rm -f conftest.err conftest.$ac_ext
7332
7333  # OK, works on sane cases.  Now check whether non-existent headers
7334  # can be detected and how.
7335  cat >conftest.$ac_ext <<_ACEOF
7336/* confdefs.h.  */
7337_ACEOF
7338cat confdefs.h >>conftest.$ac_ext
7339cat >>conftest.$ac_ext <<_ACEOF
7340/* end confdefs.h.  */
7341#include <ac_nonexistent.h>
7342_ACEOF
7343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7344  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7345  ac_status=$?
7346  grep -v '^ *+' conftest.er1 >conftest.err
7347  rm -f conftest.er1
7348  cat conftest.err >&5
7349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350  (exit $ac_status); } >/dev/null; then
7351  if test -s conftest.err; then
7352    ac_cpp_err=$ac_cxx_preproc_warn_flag
7353    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7354  else
7355    ac_cpp_err=
7356  fi
7357else
7358  ac_cpp_err=yes
7359fi
7360if test -z "$ac_cpp_err"; then
7361  # Broken: success on invalid input.
7362continue
7363else
7364  echo "$as_me: failed program was:" >&5
7365sed 's/^/| /' conftest.$ac_ext >&5
7366
7367  # Passes both tests.
7368ac_preproc_ok=:
7369break
7370fi
7371rm -f conftest.err conftest.$ac_ext
7372
7373done
7374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7375rm -f conftest.err conftest.$ac_ext
7376if $ac_preproc_ok; then
7377  break
7378fi
7379
7380    done
7381    ac_cv_prog_CXXCPP=$CXXCPP
7382
7383fi
7384  CXXCPP=$ac_cv_prog_CXXCPP
7385else
7386  ac_cv_prog_CXXCPP=$CXXCPP
7387fi
7388echo "$as_me:$LINENO: result: $CXXCPP" >&5
7389echo "${ECHO_T}$CXXCPP" >&6
7390ac_preproc_ok=false
7391for ac_cxx_preproc_warn_flag in '' yes
7392do
7393  # Use a header file that comes with gcc, so configuring glibc
7394  # with a fresh cross-compiler works.
7395  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7396  # <limits.h> exists even on freestanding compilers.
7397  # On the NeXT, cc -E runs the code through the compiler's parser,
7398  # not just through cpp. "Syntax error" is here to catch this case.
7399  cat >conftest.$ac_ext <<_ACEOF
7400/* confdefs.h.  */
7401_ACEOF
7402cat confdefs.h >>conftest.$ac_ext
7403cat >>conftest.$ac_ext <<_ACEOF
7404/* end confdefs.h.  */
7405#ifdef __STDC__
7406# include <limits.h>
7407#else
7408# include <assert.h>
7409#endif
7410                     Syntax error
7411_ACEOF
7412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7413  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7414  ac_status=$?
7415  grep -v '^ *+' conftest.er1 >conftest.err
7416  rm -f conftest.er1
7417  cat conftest.err >&5
7418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419  (exit $ac_status); } >/dev/null; then
7420  if test -s conftest.err; then
7421    ac_cpp_err=$ac_cxx_preproc_warn_flag
7422    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7423  else
7424    ac_cpp_err=
7425  fi
7426else
7427  ac_cpp_err=yes
7428fi
7429if test -z "$ac_cpp_err"; then
7430  :
7431else
7432  echo "$as_me: failed program was:" >&5
7433sed 's/^/| /' conftest.$ac_ext >&5
7434
7435  # Broken: fails on valid input.
7436continue
7437fi
7438rm -f conftest.err conftest.$ac_ext
7439
7440  # OK, works on sane cases.  Now check whether non-existent headers
7441  # can be detected and how.
7442  cat >conftest.$ac_ext <<_ACEOF
7443/* confdefs.h.  */
7444_ACEOF
7445cat confdefs.h >>conftest.$ac_ext
7446cat >>conftest.$ac_ext <<_ACEOF
7447/* end confdefs.h.  */
7448#include <ac_nonexistent.h>
7449_ACEOF
7450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7451  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7452  ac_status=$?
7453  grep -v '^ *+' conftest.er1 >conftest.err
7454  rm -f conftest.er1
7455  cat conftest.err >&5
7456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457  (exit $ac_status); } >/dev/null; then
7458  if test -s conftest.err; then
7459    ac_cpp_err=$ac_cxx_preproc_warn_flag
7460    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7461  else
7462    ac_cpp_err=
7463  fi
7464else
7465  ac_cpp_err=yes
7466fi
7467if test -z "$ac_cpp_err"; then
7468  # Broken: success on invalid input.
7469continue
7470else
7471  echo "$as_me: failed program was:" >&5
7472sed 's/^/| /' conftest.$ac_ext >&5
7473
7474  # Passes both tests.
7475ac_preproc_ok=:
7476break
7477fi
7478rm -f conftest.err conftest.$ac_ext
7479
7480done
7481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7482rm -f conftest.err conftest.$ac_ext
7483if $ac_preproc_ok; then
7484  :
7485else
7486  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7487See \`config.log' for more details." >&5
7488echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7489See \`config.log' for more details." >&2;}
7490   { (exit 1); exit 1; }; }
7491fi
7492
7493ac_ext=cc
7494ac_cpp='$CXXCPP $CPPFLAGS'
7495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7498
7499fi
7500
7501
7502# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7503
7504# find the maximum length of command line arguments
7505echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7506echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7507if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7508  echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510    i=0
7511  teststring="ABCD"
7512
7513  case $build_os in
7514  msdosdjgpp*)
7515    # On DJGPP, this test can blow up pretty badly due to problems in libc
7516    # (any single argument exceeding 2000 bytes causes a buffer overrun
7517    # during glob expansion).  Even if it were fixed, the result of this
7518    # check would be larger than it should be.
7519    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7520    ;;
7521
7522  gnu*)
7523    # Under GNU Hurd, this test is not required because there is
7524    # no limit to the length of command line arguments.
7525    # Libtool will interpret -1 as no limit whatsoever
7526    lt_cv_sys_max_cmd_len=-1;
7527    ;;
7528
7529  cygwin* | mingw*)
7530    # On Win9x/ME, this test blows up -- it succeeds, but takes
7531    # about 5 minutes as the teststring grows exponentially.
7532    # Worse, since 9x/ME are not pre-emptively multitasking,
7533    # you end up with a "frozen" computer, even though with patience
7534    # the test eventually succeeds (with a max line length of 256k).
7535    # Instead, let's just punt: use the minimum linelength reported by
7536    # all of the supported platforms: 8192 (on NT/2K/XP).
7537    lt_cv_sys_max_cmd_len=8192;
7538    ;;
7539
7540  amigaos*)
7541    # On AmigaOS with pdksh, this test takes hours, literally.
7542    # So we just punt and use a minimum line length of 8192.
7543    lt_cv_sys_max_cmd_len=8192;
7544    ;;
7545
7546  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7547    # This has been around since 386BSD, at least.  Likely further.
7548    if test -x /sbin/sysctl; then
7549      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7550    elif test -x /usr/sbin/sysctl; then
7551      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7552    else
7553      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7554    fi
7555    # And add a safety zone
7556    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7557    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7558    ;;
7559
7560  interix*)
7561    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7562    lt_cv_sys_max_cmd_len=196608
7563    ;;
7564
7565  osf*)
7566    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7567    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7568    # nice to cause kernel panics so lets avoid the loop below.
7569    # First set a reasonable default.
7570    lt_cv_sys_max_cmd_len=16384
7571    #
7572    if test -x /sbin/sysconfig; then
7573      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7574        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7575      esac
7576    fi
7577    ;;
7578  sco3.2v5*)
7579    lt_cv_sys_max_cmd_len=102400
7580    ;;
7581  sysv5* | sco5v6* | sysv4.2uw2*)
7582    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7583    if test -n "$kargmax"; then
7584      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7585    else
7586      lt_cv_sys_max_cmd_len=32768
7587    fi
7588    ;;
7589  *)
7590    # If test is not a shell built-in, we'll probably end up computing a
7591    # maximum length that is only half of the actual maximum length, but
7592    # we can't tell.
7593    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7594    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7595               = "XX$teststring") >/dev/null 2>&1 &&
7596            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7597            lt_cv_sys_max_cmd_len=$new_result &&
7598            test $i != 17 # 1/2 MB should be enough
7599    do
7600      i=`expr $i + 1`
7601      teststring=$teststring$teststring
7602    done
7603    teststring=
7604    # Add a significant safety factor because C++ compilers can tack on massive
7605    # amounts of additional arguments before passing them to the linker.
7606    # It appears as though 1/2 is a usable value.
7607    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7608    ;;
7609  esac
7610
7611fi
7612
7613if test -n $lt_cv_sys_max_cmd_len ; then
7614  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7615echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7616else
7617  echo "$as_me:$LINENO: result: none" >&5
7618echo "${ECHO_T}none" >&6
7619fi
7620
7621
7622
7623
7624# Check for command to grab the raw symbol name followed by C symbol from nm.
7625echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7626echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7627if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7628  echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630
7631# These are sane defaults that work on at least a few old systems.
7632# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7633
7634# Character class describing NM global symbol codes.
7635symcode='[BCDEGRST]'
7636
7637# Regexp to match symbols that can be accessed directly from C.
7638sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7639
7640# Transform an extracted symbol line into a proper C declaration
7641lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7642
7643# Transform an extracted symbol line into symbol name and symbol address
7644lt_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'"
7645
7646# Define system-specific variables.
7647case $host_os in
7648aix*)
7649  symcode='[BCDT]'
7650  ;;
7651cygwin* | mingw* | pw32*)
7652  symcode='[ABCDGISTW]'
7653  ;;
7654hpux*) # Its linker distinguishes data from code symbols
7655  if test "$host_cpu" = ia64; then
7656    symcode='[ABCDEGRST]'
7657  fi
7658  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7659  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'"
7660  ;;
7661linux*)
7662  if test "$host_cpu" = ia64; then
7663    symcode='[ABCDGIRSTW]'
7664    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7665    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'"
7666  fi
7667  ;;
7668irix* | nonstopux*)
7669  symcode='[BCDEGRST]'
7670  ;;
7671osf*)
7672  symcode='[BCDEGQRST]'
7673  ;;
7674solaris*)
7675  symcode='[BDRT]'
7676  ;;
7677sco3.2v5*)
7678  symcode='[DT]'
7679  ;;
7680sysv4.2uw2*)
7681  symcode='[DT]'
7682  ;;
7683sysv5* | sco5v6* | unixware* | OpenUNIX*)
7684  symcode='[ABDT]'
7685  ;;
7686sysv4)
7687  symcode='[DFNSTU]'
7688  ;;
7689esac
7690
7691# Handle CRLF in mingw tool chain
7692opt_cr=
7693case $build_os in
7694mingw*)
7695  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7696  ;;
7697esac
7698
7699# If we're using GNU nm, then use its standard symbol codes.
7700case `$NM -V 2>&1` in
7701*GNU* | *'with BFD'*)
7702  symcode='[ABCDGIRSTW]' ;;
7703esac
7704
7705# Try without a prefix undercore, then with it.
7706for ac_symprfx in "" "_"; do
7707
7708  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7709  symxfrm="\\1 $ac_symprfx\\2 \\2"
7710
7711  # Write the raw and C identifiers.
7712  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7713
7714  # Check to see that the pipe works correctly.
7715  pipe_works=no
7716
7717  rm -f conftest*
7718  cat > conftest.$ac_ext <<EOF
7719#ifdef __cplusplus
7720extern "C" {
7721#endif
7722char nm_test_var;
7723void nm_test_func(){}
7724#ifdef __cplusplus
7725}
7726#endif
7727int main(){nm_test_var='a';nm_test_func();return(0);}
7728EOF
7729
7730  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7731  (eval $ac_compile) 2>&5
7732  ac_status=$?
7733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734  (exit $ac_status); }; then
7735    # Now try to grab the symbols.
7736    nlist=conftest.nm
7737    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7738  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7739  ac_status=$?
7740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741  (exit $ac_status); } && test -s "$nlist"; then
7742      # Try sorting and uniquifying the output.
7743      if sort "$nlist" | uniq > "$nlist"T; then
7744        mv -f "$nlist"T "$nlist"
7745      else
7746        rm -f "$nlist"T
7747      fi
7748
7749      # Make sure that we snagged all the symbols we need.
7750      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7751        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7752          cat <<EOF > conftest.$ac_ext
7753#ifdef __cplusplus
7754extern "C" {
7755#endif
7756
7757EOF
7758          # Now generate the symbol file.
7759          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7760
7761          cat <<EOF >> conftest.$ac_ext
7762#if defined (__STDC__) && __STDC__
7763# define lt_ptr_t void *
7764#else
7765# define lt_ptr_t char *
7766# define const
7767#endif
7768
7769/* The mapping between symbol names and symbols. */
7770const struct {
7771  const char *name;
7772  lt_ptr_t address;
7773}
7774lt_preloaded_symbols[] =
7775{
7776EOF
7777          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7778          cat <<\EOF >> conftest.$ac_ext
7779  {0, (lt_ptr_t) 0}
7780};
7781
7782#ifdef __cplusplus
7783}
7784#endif
7785EOF
7786          # Now try linking the two files.
7787          mv conftest.$ac_objext conftstm.$ac_objext
7788          lt_save_LIBS="$LIBS"
7789          lt_save_CFLAGS="$CFLAGS"
7790          LIBS="conftstm.$ac_objext"
7791          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7792          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7793  (eval $ac_link) 2>&5
7794  ac_status=$?
7795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7797            pipe_works=yes
7798          fi
7799          LIBS="$lt_save_LIBS"
7800          CFLAGS="$lt_save_CFLAGS"
7801        else
7802          echo "cannot find nm_test_func in $nlist" >&5
7803        fi
7804      else
7805        echo "cannot find nm_test_var in $nlist" >&5
7806      fi
7807    else
7808      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7809    fi
7810  else
7811    echo "$progname: failed program was:" >&5
7812    cat conftest.$ac_ext >&5
7813  fi
7814  rm -f conftest* conftst*
7815
7816  # Do not use the global_symbol_pipe unless it works.
7817  if test "$pipe_works" = yes; then
7818    break
7819  else
7820    lt_cv_sys_global_symbol_pipe=
7821  fi
7822done
7823
7824fi
7825
7826if test -z "$lt_cv_sys_global_symbol_pipe"; then
7827  lt_cv_sys_global_symbol_to_cdecl=
7828fi
7829if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7830  echo "$as_me:$LINENO: result: failed" >&5
7831echo "${ECHO_T}failed" >&6
7832else
7833  echo "$as_me:$LINENO: result: ok" >&5
7834echo "${ECHO_T}ok" >&6
7835fi
7836
7837echo "$as_me:$LINENO: checking for objdir" >&5
7838echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7839if test "${lt_cv_objdir+set}" = set; then
7840  echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842  rm -f .libs 2>/dev/null
7843mkdir .libs 2>/dev/null
7844if test -d .libs; then
7845  lt_cv_objdir=.libs
7846else
7847  # MS-DOS does not allow filenames that begin with a dot.
7848  lt_cv_objdir=_libs
7849fi
7850rmdir .libs 2>/dev/null
7851fi
7852echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7853echo "${ECHO_T}$lt_cv_objdir" >&6
7854objdir=$lt_cv_objdir
7855
7856
7857
7858
7859
7860case $host_os in
7861aix3*)
7862  # AIX sometimes has problems with the GCC collect2 program.  For some
7863  # reason, if we set the COLLECT_NAMES environment variable, the problems
7864  # vanish in a puff of smoke.
7865  if test "X${COLLECT_NAMES+set}" != Xset; then
7866    COLLECT_NAMES=
7867    export COLLECT_NAMES
7868  fi
7869  ;;
7870esac
7871
7872# Sed substitution that helps us do robust quoting.  It backslashifies
7873# metacharacters that are still active within double-quoted strings.
7874Xsed='sed -e 1s/^X//'
7875sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7876
7877# Same as above, but do not quote variable references.
7878double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7879
7880# Sed substitution to delay expansion of an escaped shell variable in a
7881# double_quote_subst'ed string.
7882delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7883
7884# Sed substitution to avoid accidental globbing in evaled expressions
7885no_glob_subst='s/\*/\\\*/g'
7886
7887# Constants:
7888rm="rm -f"
7889
7890# Global variables:
7891default_ofile=libtool
7892can_build_shared=yes
7893
7894# All known linkers require a `.a' archive for static linking (except MSVC,
7895# which needs '.lib').
7896libext=a
7897ltmain="$ac_aux_dir/ltmain.sh"
7898ofile="$default_ofile"
7899with_gnu_ld="$lt_cv_prog_gnu_ld"
7900
7901if test -n "$ac_tool_prefix"; then
7902  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7903set dummy ${ac_tool_prefix}ar; ac_word=$2
7904echo "$as_me:$LINENO: checking for $ac_word" >&5
7905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7906if test "${ac_cv_prog_AR+set}" = set; then
7907  echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909  if test -n "$AR"; then
7910  ac_cv_prog_AR="$AR" # Let the user override the test.
7911else
7912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913for as_dir in $PATH
7914do
7915  IFS=$as_save_IFS
7916  test -z "$as_dir" && as_dir=.
7917  for ac_exec_ext in '' $ac_executable_extensions; do
7918  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919    ac_cv_prog_AR="${ac_tool_prefix}ar"
7920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7921    break 2
7922  fi
7923done
7924done
7925
7926fi
7927fi
7928AR=$ac_cv_prog_AR
7929if test -n "$AR"; then
7930  echo "$as_me:$LINENO: result: $AR" >&5
7931echo "${ECHO_T}$AR" >&6
7932else
7933  echo "$as_me:$LINENO: result: no" >&5
7934echo "${ECHO_T}no" >&6
7935fi
7936
7937fi
7938if test -z "$ac_cv_prog_AR"; then
7939  ac_ct_AR=$AR
7940  # Extract the first word of "ar", so it can be a program name with args.
7941set dummy ar; ac_word=$2
7942echo "$as_me:$LINENO: checking for $ac_word" >&5
7943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7944if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7945  echo $ECHO_N "(cached) $ECHO_C" >&6
7946else
7947  if test -n "$ac_ct_AR"; then
7948  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7949else
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953  IFS=$as_save_IFS
7954  test -z "$as_dir" && as_dir=.
7955  for ac_exec_ext in '' $ac_executable_extensions; do
7956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957    ac_cv_prog_ac_ct_AR="ar"
7958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959    break 2
7960  fi
7961done
7962done
7963
7964  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7965fi
7966fi
7967ac_ct_AR=$ac_cv_prog_ac_ct_AR
7968if test -n "$ac_ct_AR"; then
7969  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7970echo "${ECHO_T}$ac_ct_AR" >&6
7971else
7972  echo "$as_me:$LINENO: result: no" >&5
7973echo "${ECHO_T}no" >&6
7974fi
7975
7976  AR=$ac_ct_AR
7977else
7978  AR="$ac_cv_prog_AR"
7979fi
7980
7981if test -n "$ac_tool_prefix"; then
7982  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7983set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7984echo "$as_me:$LINENO: checking for $ac_word" >&5
7985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7986if test "${ac_cv_prog_RANLIB+set}" = set; then
7987  echo $ECHO_N "(cached) $ECHO_C" >&6
7988else
7989  if test -n "$RANLIB"; then
7990  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7991else
7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993for as_dir in $PATH
7994do
7995  IFS=$as_save_IFS
7996  test -z "$as_dir" && as_dir=.
7997  for ac_exec_ext in '' $ac_executable_extensions; do
7998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7999    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8001    break 2
8002  fi
8003done
8004done
8005
8006fi
8007fi
8008RANLIB=$ac_cv_prog_RANLIB
8009if test -n "$RANLIB"; then
8010  echo "$as_me:$LINENO: result: $RANLIB" >&5
8011echo "${ECHO_T}$RANLIB" >&6
8012else
8013  echo "$as_me:$LINENO: result: no" >&5
8014echo "${ECHO_T}no" >&6
8015fi
8016
8017fi
8018if test -z "$ac_cv_prog_RANLIB"; then
8019  ac_ct_RANLIB=$RANLIB
8020  # Extract the first word of "ranlib", so it can be a program name with args.
8021set dummy ranlib; ac_word=$2
8022echo "$as_me:$LINENO: checking for $ac_word" >&5
8023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8024if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8025  echo $ECHO_N "(cached) $ECHO_C" >&6
8026else
8027  if test -n "$ac_ct_RANLIB"; then
8028  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8029else
8030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH
8032do
8033  IFS=$as_save_IFS
8034  test -z "$as_dir" && as_dir=.
8035  for ac_exec_ext in '' $ac_executable_extensions; do
8036  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037    ac_cv_prog_ac_ct_RANLIB="ranlib"
8038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039    break 2
8040  fi
8041done
8042done
8043
8044  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8045fi
8046fi
8047ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8048if test -n "$ac_ct_RANLIB"; then
8049  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8050echo "${ECHO_T}$ac_ct_RANLIB" >&6
8051else
8052  echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6
8054fi
8055
8056  RANLIB=$ac_ct_RANLIB
8057else
8058  RANLIB="$ac_cv_prog_RANLIB"
8059fi
8060
8061if test -n "$ac_tool_prefix"; then
8062  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8063set dummy ${ac_tool_prefix}strip; ac_word=$2
8064echo "$as_me:$LINENO: checking for $ac_word" >&5
8065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8066if test "${ac_cv_prog_STRIP+set}" = set; then
8067  echo $ECHO_N "(cached) $ECHO_C" >&6
8068else
8069  if test -n "$STRIP"; then
8070  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8071else
8072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073for as_dir in $PATH
8074do
8075  IFS=$as_save_IFS
8076  test -z "$as_dir" && as_dir=.
8077  for ac_exec_ext in '' $ac_executable_extensions; do
8078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8079    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8081    break 2
8082  fi
8083done
8084done
8085
8086fi
8087fi
8088STRIP=$ac_cv_prog_STRIP
8089if test -n "$STRIP"; then
8090  echo "$as_me:$LINENO: result: $STRIP" >&5
8091echo "${ECHO_T}$STRIP" >&6
8092else
8093  echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6
8095fi
8096
8097fi
8098if test -z "$ac_cv_prog_STRIP"; then
8099  ac_ct_STRIP=$STRIP
8100  # Extract the first word of "strip", so it can be a program name with args.
8101set dummy strip; ac_word=$2
8102echo "$as_me:$LINENO: checking for $ac_word" >&5
8103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8104if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8105  echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107  if test -n "$ac_ct_STRIP"; then
8108  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8109else
8110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111for as_dir in $PATH
8112do
8113  IFS=$as_save_IFS
8114  test -z "$as_dir" && as_dir=.
8115  for ac_exec_ext in '' $ac_executable_extensions; do
8116  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8117    ac_cv_prog_ac_ct_STRIP="strip"
8118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119    break 2
8120  fi
8121done
8122done
8123
8124  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8125fi
8126fi
8127ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8128if test -n "$ac_ct_STRIP"; then
8129  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8130echo "${ECHO_T}$ac_ct_STRIP" >&6
8131else
8132  echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6
8134fi
8135
8136  STRIP=$ac_ct_STRIP
8137else
8138  STRIP="$ac_cv_prog_STRIP"
8139fi
8140
8141
8142old_CC="$CC"
8143old_CFLAGS="$CFLAGS"
8144
8145# Set sane defaults for various variables
8146test -z "$AR" && AR=ar
8147test -z "$AR_FLAGS" && AR_FLAGS=cru
8148test -z "$AS" && AS=as
8149test -z "$CC" && CC=cc
8150test -z "$LTCC" && LTCC=$CC
8151test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8152test -z "$DLLTOOL" && DLLTOOL=dlltool
8153test -z "$LD" && LD=ld
8154test -z "$LN_S" && LN_S="ln -s"
8155test -z "$MAGIC_CMD" && MAGIC_CMD=file
8156test -z "$NM" && NM=nm
8157test -z "$SED" && SED=sed
8158test -z "$OBJDUMP" && OBJDUMP=objdump
8159test -z "$RANLIB" && RANLIB=:
8160test -z "$STRIP" && STRIP=:
8161test -z "$ac_objext" && ac_objext=o
8162
8163# Determine commands to create old-style static archives.
8164old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8165old_postinstall_cmds='chmod 644 $oldlib'
8166old_postuninstall_cmds=
8167
8168if test -n "$RANLIB"; then
8169  case $host_os in
8170  openbsd*)
8171    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8172    ;;
8173  *)
8174    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8175    ;;
8176  esac
8177  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8178fi
8179
8180for cc_temp in $compiler""; do
8181  case $cc_temp in
8182    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8183    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8184    \-*) ;;
8185    *) break;;
8186  esac
8187done
8188cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8189
8190
8191# Only perform the check for file, if the check method requires it
8192case $deplibs_check_method in
8193file_magic*)
8194  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8195    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8196echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8197if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8198  echo $ECHO_N "(cached) $ECHO_C" >&6
8199else
8200  case $MAGIC_CMD in
8201[\\/*] |  ?:[\\/]*)
8202  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8203  ;;
8204*)
8205  lt_save_MAGIC_CMD="$MAGIC_CMD"
8206  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8207  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8208  for ac_dir in $ac_dummy; do
8209    IFS="$lt_save_ifs"
8210    test -z "$ac_dir" && ac_dir=.
8211    if test -f $ac_dir/${ac_tool_prefix}file; then
8212      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8213      if test -n "$file_magic_test_file"; then
8214        case $deplibs_check_method in
8215        "file_magic "*)
8216          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8217          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8218          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8219            $EGREP "$file_magic_regex" > /dev/null; then
8220            :
8221          else
8222            cat <<EOF 1>&2
8223
8224*** Warning: the command libtool uses to detect shared libraries,
8225*** $file_magic_cmd, produces output that libtool cannot recognize.
8226*** The result is that libtool may fail to recognize shared libraries
8227*** as such.  This will affect the creation of libtool libraries that
8228*** depend on shared libraries, but programs linked with such libtool
8229*** libraries will work regardless of this problem.  Nevertheless, you
8230*** may want to report the problem to your system manager and/or to
8231*** bug-libtool@gnu.org
8232
8233EOF
8234          fi ;;
8235        esac
8236      fi
8237      break
8238    fi
8239  done
8240  IFS="$lt_save_ifs"
8241  MAGIC_CMD="$lt_save_MAGIC_CMD"
8242  ;;
8243esac
8244fi
8245
8246MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8247if test -n "$MAGIC_CMD"; then
8248  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8249echo "${ECHO_T}$MAGIC_CMD" >&6
8250else
8251  echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6
8253fi
8254
8255if test -z "$lt_cv_path_MAGIC_CMD"; then
8256  if test -n "$ac_tool_prefix"; then
8257    echo "$as_me:$LINENO: checking for file" >&5
8258echo $ECHO_N "checking for file... $ECHO_C" >&6
8259if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8260  echo $ECHO_N "(cached) $ECHO_C" >&6
8261else
8262  case $MAGIC_CMD in
8263[\\/*] |  ?:[\\/]*)
8264  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8265  ;;
8266*)
8267  lt_save_MAGIC_CMD="$MAGIC_CMD"
8268  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8269  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8270  for ac_dir in $ac_dummy; do
8271    IFS="$lt_save_ifs"
8272    test -z "$ac_dir" && ac_dir=.
8273    if test -f $ac_dir/file; then
8274      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8275      if test -n "$file_magic_test_file"; then
8276        case $deplibs_check_method in
8277        "file_magic "*)
8278          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8279          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8280          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8281            $EGREP "$file_magic_regex" > /dev/null; then
8282            :
8283          else
8284            cat <<EOF 1>&2
8285
8286*** Warning: the command libtool uses to detect shared libraries,
8287*** $file_magic_cmd, produces output that libtool cannot recognize.
8288*** The result is that libtool may fail to recognize shared libraries
8289*** as such.  This will affect the creation of libtool libraries that
8290*** depend on shared libraries, but programs linked with such libtool
8291*** libraries will work regardless of this problem.  Nevertheless, you
8292*** may want to report the problem to your system manager and/or to
8293*** bug-libtool@gnu.org
8294
8295EOF
8296          fi ;;
8297        esac
8298      fi
8299      break
8300    fi
8301  done
8302  IFS="$lt_save_ifs"
8303  MAGIC_CMD="$lt_save_MAGIC_CMD"
8304  ;;
8305esac
8306fi
8307
8308MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8309if test -n "$MAGIC_CMD"; then
8310  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8311echo "${ECHO_T}$MAGIC_CMD" >&6
8312else
8313  echo "$as_me:$LINENO: result: no" >&5
8314echo "${ECHO_T}no" >&6
8315fi
8316
8317  else
8318    MAGIC_CMD=:
8319  fi
8320fi
8321
8322  fi
8323  ;;
8324esac
8325
8326enable_dlopen=no
8327enable_win32_dll=no
8328
8329# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8330if test "${enable_libtool_lock+set}" = set; then
8331  enableval="$enable_libtool_lock"
8332
8333fi;
8334test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8335
8336
8337# Check whether --with-pic or --without-pic was given.
8338if test "${with_pic+set}" = set; then
8339  withval="$with_pic"
8340  pic_mode="$withval"
8341else
8342  pic_mode=default
8343fi;
8344test -z "$pic_mode" && pic_mode=default
8345
8346# Use C for the default configuration in the libtool script
8347tagname=
8348lt_save_CC="$CC"
8349ac_ext=c
8350ac_cpp='$CPP $CPPFLAGS'
8351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8353ac_compiler_gnu=$ac_cv_c_compiler_gnu
8354
8355
8356# Source file extension for C test sources.
8357ac_ext=c
8358
8359# Object file extension for compiled C test sources.
8360objext=o
8361objext=$objext
8362
8363# Code to be used in simple compile tests
8364lt_simple_compile_test_code="int some_variable = 0;\n"
8365
8366# Code to be used in simple link tests
8367lt_simple_link_test_code='int main(){return(0);}\n'
8368
8369
8370# If no C compiler was specified, use CC.
8371LTCC=${LTCC-"$CC"}
8372
8373# If no C compiler flags were specified, use CFLAGS.
8374LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8375
8376# Allow CC to be a program name with arguments.
8377compiler=$CC
8378
8379
8380# save warnings/boilerplate of simple test code
8381ac_outfile=conftest.$ac_objext
8382printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8383eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8384_lt_compiler_boilerplate=`cat conftest.err`
8385$rm conftest*
8386
8387ac_outfile=conftest.$ac_objext
8388printf "$lt_simple_link_test_code" >conftest.$ac_ext
8389eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8390_lt_linker_boilerplate=`cat conftest.err`
8391$rm conftest*
8392
8393
8394## CAVEAT EMPTOR:
8395## There is no encapsulation within the following macros, do not change
8396## the running order or otherwise move them around unless you know exactly
8397## what you are doing...
8398
8399lt_prog_compiler_no_builtin_flag=
8400
8401if test "$GCC" = yes; then
8402  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8403
8404
8405echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8406echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8407if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8408  echo $ECHO_N "(cached) $ECHO_C" >&6
8409else
8410  lt_cv_prog_compiler_rtti_exceptions=no
8411  ac_outfile=conftest.$ac_objext
8412   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8413   lt_compiler_flag="-fno-rtti -fno-exceptions"
8414   # Insert the option either (1) after the last *FLAGS variable, or
8415   # (2) before a word containing "conftest.", or (3) at the end.
8416   # Note that $ac_compile itself does not contain backslashes and begins
8417   # with a dollar sign (not a hyphen), so the echo should work correctly.
8418   # The option is referenced via a variable to avoid confusing sed.
8419   lt_compile=`echo "$ac_compile" | $SED \
8420   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8421   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8422   -e 's:$: $lt_compiler_flag:'`
8423   (eval echo "\"\$as_me:8423: $lt_compile\"" >&5)
8424   (eval "$lt_compile" 2>conftest.err)
8425   ac_status=$?
8426   cat conftest.err >&5
8427   echo "$as_me:8427: \$? = $ac_status" >&5
8428   if (exit $ac_status) && test -s "$ac_outfile"; then
8429     # The compiler can only warn and ignore the option if not recognized
8430     # So say no if there are warnings other than the usual output.
8431     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8432     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8433     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8434       lt_cv_prog_compiler_rtti_exceptions=yes
8435     fi
8436   fi
8437   $rm conftest*
8438
8439fi
8440echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8441echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8442
8443if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8444    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8445else
8446    :
8447fi
8448
8449fi
8450
8451lt_prog_compiler_wl=
8452lt_prog_compiler_pic=
8453lt_prog_compiler_static=
8454
8455echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8456echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8457
8458  if test "$GCC" = yes; then
8459    lt_prog_compiler_wl='-Wl,'
8460    lt_prog_compiler_static='-static'
8461
8462    case $host_os in
8463      aix*)
8464      # All AIX code is PIC.
8465      if test "$host_cpu" = ia64; then
8466        # AIX 5 now supports IA64 processor
8467        lt_prog_compiler_static='-Bstatic'
8468      fi
8469      ;;
8470
8471    amigaos*)
8472      # FIXME: we need at least 68020 code to build shared libraries, but
8473      # adding the `-m68020' flag to GCC prevents building anything better,
8474      # like `-m68040'.
8475      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8476      ;;
8477
8478    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8479      # PIC is the default for these OSes.
8480      ;;
8481
8482    mingw* | pw32* | os2*)
8483      # This hack is so that the source file can tell whether it is being
8484      # built for inclusion in a dll (and should export symbols for example).
8485      lt_prog_compiler_pic='-DDLL_EXPORT'
8486      ;;
8487
8488    darwin* | rhapsody*)
8489      # PIC is the default on this platform
8490      # Common symbols not allowed in MH_DYLIB files
8491      lt_prog_compiler_pic='-fno-common'
8492      ;;
8493
8494    interix3*)
8495      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8496      # Instead, we relocate shared libraries at runtime.
8497      ;;
8498
8499    msdosdjgpp*)
8500      # Just because we use GCC doesn't mean we suddenly get shared libraries
8501      # on systems that don't support them.
8502      lt_prog_compiler_can_build_shared=no
8503      enable_shared=no
8504      ;;
8505
8506    sysv4*MP*)
8507      if test -d /usr/nec; then
8508        lt_prog_compiler_pic=-Kconform_pic
8509      fi
8510      ;;
8511
8512    hpux*)
8513      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8514      # not for PA HP-UX.
8515      case $host_cpu in
8516      hppa*64*|ia64*)
8517        # +Z the default
8518        ;;
8519      *)
8520        lt_prog_compiler_pic='-fPIC'
8521        ;;
8522      esac
8523      ;;
8524
8525    *)
8526      lt_prog_compiler_pic='-fPIC'
8527      ;;
8528    esac
8529  else
8530    # PORTME Check for flag to pass linker flags through the system compiler.
8531    case $host_os in
8532    aix*)
8533      lt_prog_compiler_wl='-Wl,'
8534      if test "$host_cpu" = ia64; then
8535        # AIX 5 now supports IA64 processor
8536        lt_prog_compiler_static='-Bstatic'
8537      else
8538        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8539      fi
8540      ;;
8541      darwin*)
8542        # PIC is the default on this platform
8543        # Common symbols not allowed in MH_DYLIB files
8544       case $cc_basename in
8545         xlc*)
8546         lt_prog_compiler_pic='-qnocommon'
8547         lt_prog_compiler_wl='-Wl,'
8548         ;;
8549       esac
8550       ;;
8551
8552    mingw* | pw32* | os2*)
8553      # This hack is so that the source file can tell whether it is being
8554      # built for inclusion in a dll (and should export symbols for example).
8555      lt_prog_compiler_pic='-DDLL_EXPORT'
8556      ;;
8557
8558    hpux9* | hpux10* | hpux11*)
8559      lt_prog_compiler_wl='-Wl,'
8560      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8561      # not for PA HP-UX.
8562      case $host_cpu in
8563      hppa*64*|ia64*)
8564        # +Z the default
8565        ;;
8566      *)
8567        lt_prog_compiler_pic='+Z'
8568        ;;
8569      esac
8570      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8571      lt_prog_compiler_static='${wl}-a ${wl}archive'
8572      ;;
8573
8574    irix5* | irix6* | nonstopux*)
8575      lt_prog_compiler_wl='-Wl,'
8576      # PIC (with -KPIC) is the default.
8577      lt_prog_compiler_static='-non_shared'
8578      ;;
8579
8580    newsos6)
8581      lt_prog_compiler_pic='-KPIC'
8582      lt_prog_compiler_static='-Bstatic'
8583      ;;
8584
8585    linux*)
8586      case $cc_basename in
8587      icc* | ecc*)
8588        lt_prog_compiler_wl='-Wl,'
8589        lt_prog_compiler_pic='-KPIC'
8590        lt_prog_compiler_static='-static'
8591        ;;
8592      pgcc* | pgf77* | pgf90* | pgf95*)
8593        # Portland Group compilers (*not* the Pentium gcc compiler,
8594        # which looks to be a dead project)
8595        lt_prog_compiler_wl='-Wl,'
8596        lt_prog_compiler_pic='-fpic'
8597        lt_prog_compiler_static='-Bstatic'
8598        ;;
8599      ccc*)
8600        lt_prog_compiler_wl='-Wl,'
8601        # All Alpha code is PIC.
8602        lt_prog_compiler_static='-non_shared'
8603        ;;
8604      esac
8605      ;;
8606
8607    osf3* | osf4* | osf5*)
8608      lt_prog_compiler_wl='-Wl,'
8609      # All OSF/1 code is PIC.
8610      lt_prog_compiler_static='-non_shared'
8611      ;;
8612
8613    solaris*)
8614      lt_prog_compiler_pic='-KPIC'
8615      lt_prog_compiler_static='-Bstatic'
8616      case $cc_basename in
8617      f77* | f90* | f95*)
8618        lt_prog_compiler_wl='-Qoption ld ';;
8619      *)
8620        lt_prog_compiler_wl='-Wl,';;
8621      esac
8622      ;;
8623
8624    sunos4*)
8625      lt_prog_compiler_wl='-Qoption ld '
8626      lt_prog_compiler_pic='-PIC'
8627      lt_prog_compiler_static='-Bstatic'
8628      ;;
8629
8630    sysv4 | sysv4.2uw2* | sysv4.3*)
8631      lt_prog_compiler_wl='-Wl,'
8632      lt_prog_compiler_pic='-KPIC'
8633      lt_prog_compiler_static='-Bstatic'
8634      ;;
8635
8636    sysv4*MP*)
8637      if test -d /usr/nec ;then
8638        lt_prog_compiler_pic='-Kconform_pic'
8639        lt_prog_compiler_static='-Bstatic'
8640      fi
8641      ;;
8642
8643    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8644      lt_prog_compiler_wl='-Wl,'
8645      lt_prog_compiler_pic='-KPIC'
8646      lt_prog_compiler_static='-Bstatic'
8647      ;;
8648
8649    unicos*)
8650      lt_prog_compiler_wl='-Wl,'
8651      lt_prog_compiler_can_build_shared=no
8652      ;;
8653
8654    uts4*)
8655      lt_prog_compiler_pic='-pic'
8656      lt_prog_compiler_static='-Bstatic'
8657      ;;
8658
8659    *)
8660      lt_prog_compiler_can_build_shared=no
8661      ;;
8662    esac
8663  fi
8664
8665echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8666echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8667
8668#
8669# Check to make sure the PIC flag actually works.
8670#
8671if test -n "$lt_prog_compiler_pic"; then
8672
8673echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8674echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8675if test "${lt_prog_compiler_pic_works+set}" = set; then
8676  echo $ECHO_N "(cached) $ECHO_C" >&6
8677else
8678  lt_prog_compiler_pic_works=no
8679  ac_outfile=conftest.$ac_objext
8680   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8681   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8682   # Insert the option either (1) after the last *FLAGS variable, or
8683   # (2) before a word containing "conftest.", or (3) at the end.
8684   # Note that $ac_compile itself does not contain backslashes and begins
8685   # with a dollar sign (not a hyphen), so the echo should work correctly.
8686   # The option is referenced via a variable to avoid confusing sed.
8687   lt_compile=`echo "$ac_compile" | $SED \
8688   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8689   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8690   -e 's:$: $lt_compiler_flag:'`
8691   (eval echo "\"\$as_me:8691: $lt_compile\"" >&5)
8692   (eval "$lt_compile" 2>conftest.err)
8693   ac_status=$?
8694   cat conftest.err >&5
8695   echo "$as_me:8695: \$? = $ac_status" >&5
8696   if (exit $ac_status) && test -s "$ac_outfile"; then
8697     # The compiler can only warn and ignore the option if not recognized
8698     # So say no if there are warnings other than the usual output.
8699     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8700     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8701     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8702       lt_prog_compiler_pic_works=yes
8703     fi
8704   fi
8705   $rm conftest*
8706
8707fi
8708echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8709echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8710
8711if test x"$lt_prog_compiler_pic_works" = xyes; then
8712    case $lt_prog_compiler_pic in
8713     "" | " "*) ;;
8714     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8715     esac
8716else
8717    lt_prog_compiler_pic=
8718     lt_prog_compiler_can_build_shared=no
8719fi
8720
8721fi
8722case $host_os in
8723  # For platforms which do not support PIC, -DPIC is meaningless:
8724  *djgpp*)
8725    lt_prog_compiler_pic=
8726    ;;
8727  *)
8728    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8729    ;;
8730esac
8731
8732#
8733# Check to make sure the static flag actually works.
8734#
8735wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8736echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8737echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8738if test "${lt_prog_compiler_static_works+set}" = set; then
8739  echo $ECHO_N "(cached) $ECHO_C" >&6
8740else
8741  lt_prog_compiler_static_works=no
8742   save_LDFLAGS="$LDFLAGS"
8743   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8744   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8745   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8746     # The linker can only warn and ignore the option if not recognized
8747     # So say no if there are warnings
8748     if test -s conftest.err; then
8749       # Append any errors to the config.log.
8750       cat conftest.err 1>&5
8751       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8752       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8753       if diff conftest.exp conftest.er2 >/dev/null; then
8754         lt_prog_compiler_static_works=yes
8755       fi
8756     else
8757       lt_prog_compiler_static_works=yes
8758     fi
8759   fi
8760   $rm conftest*
8761   LDFLAGS="$save_LDFLAGS"
8762
8763fi
8764echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8765echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8766
8767if test x"$lt_prog_compiler_static_works" = xyes; then
8768    :
8769else
8770    lt_prog_compiler_static=
8771fi
8772
8773
8774echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8775echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8776if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8777  echo $ECHO_N "(cached) $ECHO_C" >&6
8778else
8779  lt_cv_prog_compiler_c_o=no
8780   $rm -r conftest 2>/dev/null
8781   mkdir conftest
8782   cd conftest
8783   mkdir out
8784   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8785
8786   lt_compiler_flag="-o out/conftest2.$ac_objext"
8787   # Insert the option either (1) after the last *FLAGS variable, or
8788   # (2) before a word containing "conftest.", or (3) at the end.
8789   # Note that $ac_compile itself does not contain backslashes and begins
8790   # with a dollar sign (not a hyphen), so the echo should work correctly.
8791   lt_compile=`echo "$ac_compile" | $SED \
8792   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8793   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8794   -e 's:$: $lt_compiler_flag:'`
8795   (eval echo "\"\$as_me:8795: $lt_compile\"" >&5)
8796   (eval "$lt_compile" 2>out/conftest.err)
8797   ac_status=$?
8798   cat out/conftest.err >&5
8799   echo "$as_me:8799: \$? = $ac_status" >&5
8800   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8801   then
8802     # The compiler can only warn and ignore the option if not recognized
8803     # So say no if there are warnings
8804     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8805     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8806     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8807       lt_cv_prog_compiler_c_o=yes
8808     fi
8809   fi
8810   chmod u+w . 2>&5
8811   $rm conftest*
8812   # SGI C++ compiler will create directory out/ii_files/ for
8813   # template instantiation
8814   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8815   $rm out/* && rmdir out
8816   cd ..
8817   rmdir conftest
8818   $rm conftest*
8819
8820fi
8821echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8822echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8823
8824
8825hard_links="nottested"
8826if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8827  # do not overwrite the value of need_locks provided by the user
8828  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8829echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8830  hard_links=yes
8831  $rm conftest*
8832  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8833  touch conftest.a
8834  ln conftest.a conftest.b 2>&5 || hard_links=no
8835  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8836  echo "$as_me:$LINENO: result: $hard_links" >&5
8837echo "${ECHO_T}$hard_links" >&6
8838  if test "$hard_links" = no; then
8839    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8840echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8841    need_locks=warn
8842  fi
8843else
8844  need_locks=no
8845fi
8846
8847echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8848echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8849
8850  runpath_var=
8851  allow_undefined_flag=
8852  enable_shared_with_static_runtimes=no
8853  archive_cmds=
8854  archive_expsym_cmds=
8855  old_archive_From_new_cmds=
8856  old_archive_from_expsyms_cmds=
8857  export_dynamic_flag_spec=
8858  whole_archive_flag_spec=
8859  thread_safe_flag_spec=
8860  hardcode_libdir_flag_spec=
8861  hardcode_libdir_flag_spec_ld=
8862  hardcode_libdir_separator=
8863  hardcode_direct=no
8864  hardcode_minus_L=no
8865  hardcode_shlibpath_var=unsupported
8866  link_all_deplibs=unknown
8867  hardcode_automatic=no
8868  module_cmds=
8869  module_expsym_cmds=
8870  always_export_symbols=no
8871  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8872  # include_expsyms should be a list of space-separated symbols to be *always*
8873  # included in the symbol list
8874  include_expsyms=
8875  # exclude_expsyms can be an extended regexp of symbols to exclude
8876  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8877  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8878  # as well as any symbol that contains `d'.
8879  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8880  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8881  # platforms (ab)use it in PIC code, but their linkers get confused if
8882  # the symbol is explicitly referenced.  Since portable code cannot
8883  # rely on this symbol name, it's probably fine to never include it in
8884  # preloaded symbol tables.
8885  extract_expsyms_cmds=
8886  # Just being paranoid about ensuring that cc_basename is set.
8887  for cc_temp in $compiler""; do
8888  case $cc_temp in
8889    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8890    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8891    \-*) ;;
8892    *) break;;
8893  esac
8894done
8895cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8896
8897  case $host_os in
8898  cygwin* | mingw* | pw32*)
8899    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8900    # When not using gcc, we currently assume that we are using
8901    # Microsoft Visual C++.
8902    if test "$GCC" != yes; then
8903      with_gnu_ld=no
8904    fi
8905    ;;
8906  interix*)
8907    # we just hope/assume this is gcc and not c89 (= MSVC++)
8908    with_gnu_ld=yes
8909    ;;
8910  openbsd*)
8911    with_gnu_ld=no
8912    ;;
8913  esac
8914
8915  ld_shlibs=yes
8916  if test "$with_gnu_ld" = yes; then
8917    # If archive_cmds runs LD, not CC, wlarc should be empty
8918    wlarc='${wl}'
8919
8920    # Set some defaults for GNU ld with shared library support. These
8921    # are reset later if shared libraries are not supported. Putting them
8922    # here allows them to be overridden if necessary.
8923    runpath_var=LD_RUN_PATH
8924    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8925    export_dynamic_flag_spec='${wl}--export-dynamic'
8926    # ancient GNU ld didn't support --whole-archive et. al.
8927    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8928        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8929      else
8930        whole_archive_flag_spec=
8931    fi
8932    supports_anon_versioning=no
8933    case `$LD -v 2>/dev/null` in
8934      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8935      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8936      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8937      *\ 2.11.*) ;; # other 2.11 versions
8938      *) supports_anon_versioning=yes ;;
8939    esac
8940
8941    # See if GNU ld supports shared libraries.
8942    case $host_os in
8943    aix3* | aix4* | aix5*)
8944      # On AIX/PPC, the GNU linker is very broken
8945      if test "$host_cpu" != ia64; then
8946        ld_shlibs=no
8947        cat <<EOF 1>&2
8948
8949*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8950*** to be unable to reliably create shared libraries on AIX.
8951*** Therefore, libtool is disabling shared libraries support.  If you
8952*** really care for shared libraries, you may want to modify your PATH
8953*** so that a non-GNU linker is found, and then restart.
8954
8955EOF
8956      fi
8957      ;;
8958
8959    amigaos*)
8960      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)'
8961      hardcode_libdir_flag_spec='-L$libdir'
8962      hardcode_minus_L=yes
8963
8964      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8965      # that the semantics of dynamic libraries on AmigaOS, at least up
8966      # to version 4, is to share data among multiple programs linked
8967      # with the same dynamic library.  Since this doesn't match the
8968      # behavior of shared libraries on other platforms, we can't use
8969      # them.
8970      ld_shlibs=no
8971      ;;
8972
8973    beos*)
8974      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8975        allow_undefined_flag=unsupported
8976        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8977        # support --undefined.  This deserves some investigation.  FIXME
8978        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979      else
8980        ld_shlibs=no
8981      fi
8982      ;;
8983
8984    cygwin* | mingw* | pw32*)
8985      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8986      # as there is no search path for DLLs.
8987      hardcode_libdir_flag_spec='-L$libdir'
8988      allow_undefined_flag=unsupported
8989      always_export_symbols=no
8990      enable_shared_with_static_runtimes=yes
8991      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8992
8993      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8994        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8995        # If the export-symbols file already is a .def file (1st line
8996        # is EXPORTS), use it as is; otherwise, prepend...
8997        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8998          cp $export_symbols $output_objdir/$soname.def;
8999        else
9000          echo EXPORTS > $output_objdir/$soname.def;
9001          cat $export_symbols >> $output_objdir/$soname.def;
9002        fi~
9003        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9004      else
9005        ld_shlibs=no
9006      fi
9007      ;;
9008
9009    interix3*)
9010      hardcode_direct=no
9011      hardcode_shlibpath_var=no
9012      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9013      export_dynamic_flag_spec='${wl}-E'
9014      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9015      # Instead, shared libraries are loaded at an image base (0x10000000 by
9016      # default) and relocated if they conflict, which is a slow very memory
9017      # consuming and fragmenting process.  To avoid this, we pick a random,
9018      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9019      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9020      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9021      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'
9022      ;;
9023
9024    linux*)
9025      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9026        tmp_addflag=
9027        case $cc_basename,$host_cpu in
9028        pgcc*)                          # Portland Group C compiler
9029          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'
9030          tmp_addflag=' $pic_flag'
9031          ;;
9032        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9033          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'
9034          tmp_addflag=' $pic_flag -Mnomain' ;;
9035        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9036          tmp_addflag=' -i_dynamic' ;;
9037        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9038          tmp_addflag=' -i_dynamic -nofor_main' ;;
9039        ifc* | ifort*)                  # Intel Fortran compiler
9040          tmp_addflag=' -nofor_main' ;;
9041        esac
9042        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9043
9044        if test $supports_anon_versioning = yes; then
9045          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9046  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9047  $echo "local: *; };" >> $output_objdir/$libname.ver~
9048          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9049        fi
9050      else
9051        ld_shlibs=no
9052      fi
9053      ;;
9054
9055    netbsd*)
9056      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9057        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9058        wlarc=
9059      else
9060        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9062      fi
9063      ;;
9064
9065    solaris*)
9066      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9067        ld_shlibs=no
9068        cat <<EOF 1>&2
9069
9070*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9071*** create shared libraries on Solaris systems.  Therefore, libtool
9072*** is disabling shared libraries support.  We urge you to upgrade GNU
9073*** binutils to release 2.9.1 or newer.  Another option is to modify
9074*** your PATH or compiler configuration so that the native linker is
9075*** used, and then restart.
9076
9077EOF
9078      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9079        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9081      else
9082        ld_shlibs=no
9083      fi
9084      ;;
9085
9086    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9087      case `$LD -v 2>&1` in
9088        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9089        ld_shlibs=no
9090        cat <<_LT_EOF 1>&2
9091
9092*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9093*** reliably create shared libraries on SCO systems.  Therefore, libtool
9094*** is disabling shared libraries support.  We urge you to upgrade GNU
9095*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9096*** your PATH or compiler configuration so that the native linker is
9097*** used, and then restart.
9098
9099_LT_EOF
9100        ;;
9101        *)
9102          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9103            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9104            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9105            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9106          else
9107            ld_shlibs=no
9108          fi
9109        ;;
9110      esac
9111      ;;
9112
9113    sunos4*)
9114      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9115      wlarc=
9116      hardcode_direct=yes
9117      hardcode_shlibpath_var=no
9118      ;;
9119
9120    *)
9121      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9122        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9123        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9124      else
9125        ld_shlibs=no
9126      fi
9127      ;;
9128    esac
9129
9130    if test "$ld_shlibs" = no; then
9131      runpath_var=
9132      hardcode_libdir_flag_spec=
9133      export_dynamic_flag_spec=
9134      whole_archive_flag_spec=
9135    fi
9136  else
9137    # PORTME fill in a description of your system's linker (not GNU ld)
9138    case $host_os in
9139    aix3*)
9140      allow_undefined_flag=unsupported
9141      always_export_symbols=yes
9142      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'
9143      # Note: this linker hardcodes the directories in LIBPATH if there
9144      # are no directories specified by -L.
9145      hardcode_minus_L=yes
9146      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9147        # Neither direct hardcoding nor static linking is supported with a
9148        # broken collect2.
9149        hardcode_direct=unsupported
9150      fi
9151      ;;
9152
9153    aix4* | aix5*)
9154      if test "$host_cpu" = ia64; then
9155        # On IA64, the linker does run time linking by default, so we don't
9156        # have to do anything special.
9157        aix_use_runtimelinking=no
9158        exp_sym_flag='-Bexport'
9159        no_entry_flag=""
9160      else
9161        # If we're using GNU nm, then we don't want the "-C" option.
9162        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9163        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9164          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'
9165        else
9166          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'
9167        fi
9168        aix_use_runtimelinking=no
9169
9170        # Test if we are trying to use run time linking or normal
9171        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9172        # need to do runtime linking.
9173        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9174          for ld_flag in $LDFLAGS; do
9175          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9176            aix_use_runtimelinking=yes
9177            break
9178          fi
9179          done
9180          ;;
9181        esac
9182
9183        exp_sym_flag='-bexport'
9184        no_entry_flag='-bnoentry'
9185      fi
9186
9187      # When large executables or shared objects are built, AIX ld can
9188      # have problems creating the table of contents.  If linking a library
9189      # or program results in "error TOC overflow" add -mminimal-toc to
9190      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9191      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9192
9193      archive_cmds=''
9194      hardcode_direct=yes
9195      hardcode_libdir_separator=':'
9196      link_all_deplibs=yes
9197
9198      if test "$GCC" = yes; then
9199        case $host_os in aix4.[012]|aix4.[012].*)
9200        # We only want to do this on AIX 4.2 and lower, the check
9201        # below for broken collect2 doesn't work under 4.3+
9202          collect2name=`${CC} -print-prog-name=collect2`
9203          if test -f "$collect2name" && \
9204           strings "$collect2name" | grep resolve_lib_name >/dev/null
9205          then
9206          # We have reworked collect2
9207          hardcode_direct=yes
9208          else
9209          # We have old collect2
9210          hardcode_direct=unsupported
9211          # It fails to find uninstalled libraries when the uninstalled
9212          # path is not listed in the libpath.  Setting hardcode_minus_L
9213          # to unsupported forces relinking
9214          hardcode_minus_L=yes
9215          hardcode_libdir_flag_spec='-L$libdir'
9216          hardcode_libdir_separator=
9217          fi
9218          ;;
9219        esac
9220        shared_flag='-shared'
9221        if test "$aix_use_runtimelinking" = yes; then
9222          shared_flag="$shared_flag "'${wl}-G'
9223        fi
9224      else
9225        # not using gcc
9226        if test "$host_cpu" = ia64; then
9227        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9228        # chokes on -Wl,-G. The following line is correct:
9229          shared_flag='-G'
9230        else
9231          if test "$aix_use_runtimelinking" = yes; then
9232            shared_flag='${wl}-G'
9233          else
9234            shared_flag='${wl}-bM:SRE'
9235          fi
9236        fi
9237      fi
9238
9239      # It seems that -bexpall does not export symbols beginning with
9240      # underscore (_), so it is better to generate a list of symbols to export.
9241      always_export_symbols=yes
9242      if test "$aix_use_runtimelinking" = yes; then
9243        # Warning - without using the other runtime loading flags (-brtl),
9244        # -berok will link without error, but may produce a broken library.
9245        allow_undefined_flag='-berok'
9246       # Determine the default libpath from the value encoded in an empty executable.
9247       cat >conftest.$ac_ext <<_ACEOF
9248/* confdefs.h.  */
9249_ACEOF
9250cat confdefs.h >>conftest.$ac_ext
9251cat >>conftest.$ac_ext <<_ACEOF
9252/* end confdefs.h.  */
9253
9254int
9255main ()
9256{
9257
9258  ;
9259  return 0;
9260}
9261_ACEOF
9262rm -f conftest.$ac_objext conftest$ac_exeext
9263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264  (eval $ac_link) 2>conftest.er1
9265  ac_status=$?
9266  grep -v '^ *+' conftest.er1 >conftest.err
9267  rm -f conftest.er1
9268  cat conftest.err >&5
9269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270  (exit $ac_status); } &&
9271         { ac_try='test -z "$ac_c_werror_flag"
9272                         || test ! -s conftest.err'
9273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274  (eval $ac_try) 2>&5
9275  ac_status=$?
9276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277  (exit $ac_status); }; } &&
9278         { ac_try='test -s conftest$ac_exeext'
9279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280  (eval $ac_try) 2>&5
9281  ac_status=$?
9282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283  (exit $ac_status); }; }; then
9284
9285aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9286}'`
9287# Check for a 64-bit object if we didn't find anything.
9288if 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; }
9289}'`; fi
9290else
9291  echo "$as_me: failed program was:" >&5
9292sed 's/^/| /' conftest.$ac_ext >&5
9293
9294fi
9295rm -f conftest.err conftest.$ac_objext \
9296      conftest$ac_exeext conftest.$ac_ext
9297if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9298
9299       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9300        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"
9301       else
9302        if test "$host_cpu" = ia64; then
9303          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9304          allow_undefined_flag="-z nodefs"
9305          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"
9306        else
9307         # Determine the default libpath from the value encoded in an empty executable.
9308         cat >conftest.$ac_ext <<_ACEOF
9309/* confdefs.h.  */
9310_ACEOF
9311cat confdefs.h >>conftest.$ac_ext
9312cat >>conftest.$ac_ext <<_ACEOF
9313/* end confdefs.h.  */
9314
9315int
9316main ()
9317{
9318
9319  ;
9320  return 0;
9321}
9322_ACEOF
9323rm -f conftest.$ac_objext conftest$ac_exeext
9324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9325  (eval $ac_link) 2>conftest.er1
9326  ac_status=$?
9327  grep -v '^ *+' conftest.er1 >conftest.err
9328  rm -f conftest.er1
9329  cat conftest.err >&5
9330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331  (exit $ac_status); } &&
9332         { ac_try='test -z "$ac_c_werror_flag"
9333                         || test ! -s conftest.err'
9334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335  (eval $ac_try) 2>&5
9336  ac_status=$?
9337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338  (exit $ac_status); }; } &&
9339         { ac_try='test -s conftest$ac_exeext'
9340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341  (eval $ac_try) 2>&5
9342  ac_status=$?
9343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344  (exit $ac_status); }; }; then
9345
9346aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9347}'`
9348# Check for a 64-bit object if we didn't find anything.
9349if 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; }
9350}'`; fi
9351else
9352  echo "$as_me: failed program was:" >&5
9353sed 's/^/| /' conftest.$ac_ext >&5
9354
9355fi
9356rm -f conftest.err conftest.$ac_objext \
9357      conftest$ac_exeext conftest.$ac_ext
9358if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9359
9360         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9361          # Warning - without using the other run time loading flags,
9362          # -berok will link without error, but may produce a broken library.
9363          no_undefined_flag=' ${wl}-bernotok'
9364          allow_undefined_flag=' ${wl}-berok'
9365          # Exported symbols can be pulled into shared objects from archives
9366          whole_archive_flag_spec='$convenience'
9367          archive_cmds_need_lc=yes
9368          # This is similar to how AIX traditionally builds its shared libraries.
9369          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'
9370        fi
9371      fi
9372      ;;
9373
9374    amigaos*)
9375      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)'
9376      hardcode_libdir_flag_spec='-L$libdir'
9377      hardcode_minus_L=yes
9378      # see comment about different semantics on the GNU ld section
9379      ld_shlibs=no
9380      ;;
9381
9382    bsdi[45]*)
9383      export_dynamic_flag_spec=-rdynamic
9384      ;;
9385
9386    cygwin* | mingw* | pw32*)
9387      # When not using gcc, we currently assume that we are using
9388      # Microsoft Visual C++.
9389      # hardcode_libdir_flag_spec is actually meaningless, as there is
9390      # no search path for DLLs.
9391      hardcode_libdir_flag_spec=' '
9392      allow_undefined_flag=unsupported
9393      # Tell ltmain to make .lib files, not .a files.
9394      libext=lib
9395      # Tell ltmain to make .dll files, not .so files.
9396      shrext_cmds=".dll"
9397      # FIXME: Setting linknames here is a bad hack.
9398      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9399      # The linker will automatically build a .lib file if we build a DLL.
9400      old_archive_From_new_cmds='true'
9401      # FIXME: Should let the user specify the lib program.
9402      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9403      fix_srcfile_path='`cygpath -w "$srcfile"`'
9404      enable_shared_with_static_runtimes=yes
9405      ;;
9406
9407    darwin* | rhapsody*)
9408      case $host_os in
9409        rhapsody* | darwin1.[012])
9410         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9411         ;;
9412       *) # Darwin 1.3 on
9413         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9414           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9415         else
9416           case ${MACOSX_DEPLOYMENT_TARGET} in
9417             10.[012])
9418               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9419               ;;
9420             10.*)
9421               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9422               ;;
9423           esac
9424         fi
9425         ;;
9426      esac
9427      archive_cmds_need_lc=no
9428      hardcode_direct=no
9429      hardcode_automatic=yes
9430      hardcode_shlibpath_var=unsupported
9431      whole_archive_flag_spec=''
9432      link_all_deplibs=yes
9433    if test "$GCC" = yes ; then
9434        output_verbose_link_cmd='echo'
9435        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9436      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9437      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9438      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}'
9439      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}'
9440    else
9441      case $cc_basename in
9442        xlc*)
9443         output_verbose_link_cmd='echo'
9444         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9445         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9446          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9447         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}'
9448          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}'
9449          ;;
9450       *)
9451         ld_shlibs=no
9452          ;;
9453      esac
9454    fi
9455      ;;
9456
9457    dgux*)
9458      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459      hardcode_libdir_flag_spec='-L$libdir'
9460      hardcode_shlibpath_var=no
9461      ;;
9462
9463    freebsd1*)
9464      ld_shlibs=no
9465      ;;
9466
9467    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9468    # support.  Future versions do this automatically, but an explicit c++rt0.o
9469    # does not break anything, and helps significantly (at the cost of a little
9470    # extra space).
9471    freebsd2.2*)
9472      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9473      hardcode_libdir_flag_spec='-R$libdir'
9474      hardcode_direct=yes
9475      hardcode_shlibpath_var=no
9476      ;;
9477
9478    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9479    freebsd2*)
9480      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9481      hardcode_direct=yes
9482      hardcode_minus_L=yes
9483      hardcode_shlibpath_var=no
9484      ;;
9485
9486    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9487    freebsd* | kfreebsd*-gnu | dragonfly*)
9488      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9489      hardcode_libdir_flag_spec='-R$libdir'
9490      hardcode_direct=yes
9491      hardcode_shlibpath_var=no
9492      ;;
9493
9494    hpux9*)
9495      if test "$GCC" = yes; then
9496        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'
9497      else
9498        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'
9499      fi
9500      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9501      hardcode_libdir_separator=:
9502      hardcode_direct=yes
9503
9504      # hardcode_minus_L: Not really in the search PATH,
9505      # but as the default location of the library.
9506      hardcode_minus_L=yes
9507      export_dynamic_flag_spec='${wl}-E'
9508      ;;
9509
9510    hpux10*)
9511      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9512        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9513      else
9514        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9515      fi
9516      if test "$with_gnu_ld" = no; then
9517        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518        hardcode_libdir_separator=:
9519
9520        hardcode_direct=yes
9521        export_dynamic_flag_spec='${wl}-E'
9522
9523        # hardcode_minus_L: Not really in the search PATH,
9524        # but as the default location of the library.
9525        hardcode_minus_L=yes
9526      fi
9527      ;;
9528
9529    hpux11*)
9530      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9531        case $host_cpu in
9532        hppa*64*)
9533          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9534          ;;
9535        ia64*)
9536          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9537          ;;
9538        *)
9539          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9540          ;;
9541        esac
9542      else
9543        case $host_cpu in
9544        hppa*64*)
9545          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9546          ;;
9547        ia64*)
9548          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9549          ;;
9550        *)
9551          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9552          ;;
9553        esac
9554      fi
9555      if test "$with_gnu_ld" = no; then
9556        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9557        hardcode_libdir_separator=:
9558
9559        case $host_cpu in
9560        hppa*64*|ia64*)
9561          hardcode_libdir_flag_spec_ld='+b $libdir'
9562          hardcode_direct=no
9563          hardcode_shlibpath_var=no
9564          ;;
9565        *)
9566          hardcode_direct=yes
9567          export_dynamic_flag_spec='${wl}-E'
9568
9569          # hardcode_minus_L: Not really in the search PATH,
9570          # but as the default location of the library.
9571          hardcode_minus_L=yes
9572          ;;
9573        esac
9574      fi
9575      ;;
9576
9577    irix5* | irix6* | nonstopux*)
9578      if test "$GCC" = yes; then
9579        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'
9580      else
9581        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'
9582        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9583      fi
9584      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585      hardcode_libdir_separator=:
9586      link_all_deplibs=yes
9587      ;;
9588
9589    netbsd*)
9590      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9591        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9592      else
9593        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9594      fi
9595      hardcode_libdir_flag_spec='-R$libdir'
9596      hardcode_direct=yes
9597      hardcode_shlibpath_var=no
9598      ;;
9599
9600    newsos6)
9601      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602      hardcode_direct=yes
9603      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604      hardcode_libdir_separator=:
9605      hardcode_shlibpath_var=no
9606      ;;
9607
9608    openbsd*)
9609      hardcode_direct=yes
9610      hardcode_shlibpath_var=no
9611      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9612        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9613        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9614        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9615        export_dynamic_flag_spec='${wl}-E'
9616      else
9617       case $host_os in
9618         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9619           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9620           hardcode_libdir_flag_spec='-R$libdir'
9621           ;;
9622         *)
9623           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9624           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9625           ;;
9626       esac
9627      fi
9628      ;;
9629
9630    os2*)
9631      hardcode_libdir_flag_spec='-L$libdir'
9632      hardcode_minus_L=yes
9633      allow_undefined_flag=unsupported
9634      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'
9635      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9636      ;;
9637
9638    osf3*)
9639      if test "$GCC" = yes; then
9640        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9641        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'
9642      else
9643        allow_undefined_flag=' -expect_unresolved \*'
9644        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'
9645      fi
9646      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9647      hardcode_libdir_separator=:
9648      ;;
9649
9650    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9651      if test "$GCC" = yes; then
9652        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9653        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'
9654        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655      else
9656        allow_undefined_flag=' -expect_unresolved \*'
9657        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'
9658        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9659        $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'
9660
9661        # Both c and cxx compiler support -rpath directly
9662        hardcode_libdir_flag_spec='-rpath $libdir'
9663      fi
9664      hardcode_libdir_separator=:
9665      ;;
9666
9667    solaris*)
9668      no_undefined_flag=' -z text'
9669      if test "$GCC" = yes; then
9670        wlarc='${wl}'
9671        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9672        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9673          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9674      else
9675        wlarc=''
9676        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9678        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9679      fi
9680      hardcode_libdir_flag_spec='-R$libdir'
9681      hardcode_shlibpath_var=no
9682      case $host_os in
9683      solaris2.[0-5] | solaris2.[0-5].*) ;;
9684      *)
9685        # The compiler driver will combine linker options so we
9686        # cannot just pass the convience library names through
9687        # without $wl, iff we do not link with $LD.
9688        # Luckily, gcc supports the same syntax we need for Sun Studio.
9689        # Supported since Solaris 2.6 (maybe 2.5.1?)
9690        case $wlarc in
9691        '')
9692          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9693        *)
9694          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' ;;
9695        esac ;;
9696      esac
9697      link_all_deplibs=yes
9698      ;;
9699
9700    sunos4*)
9701      if test "x$host_vendor" = xsequent; then
9702        # Use $CC to link under sequent, because it throws in some extra .o
9703        # files that make .init and .fini sections work.
9704        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9705      else
9706        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9707      fi
9708      hardcode_libdir_flag_spec='-L$libdir'
9709      hardcode_direct=yes
9710      hardcode_minus_L=yes
9711      hardcode_shlibpath_var=no
9712      ;;
9713
9714    sysv4)
9715      case $host_vendor in
9716        sni)
9717          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718          hardcode_direct=yes # is this really true???
9719        ;;
9720        siemens)
9721          ## LD is ld it makes a PLAMLIB
9722          ## CC just makes a GrossModule.
9723          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9724          reload_cmds='$CC -r -o $output$reload_objs'
9725          hardcode_direct=no
9726        ;;
9727        motorola)
9728          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9729          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9730        ;;
9731      esac
9732      runpath_var='LD_RUN_PATH'
9733      hardcode_shlibpath_var=no
9734      ;;
9735
9736    sysv4.3*)
9737      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738      hardcode_shlibpath_var=no
9739      export_dynamic_flag_spec='-Bexport'
9740      ;;
9741
9742    sysv4*MP*)
9743      if test -d /usr/nec; then
9744        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9745        hardcode_shlibpath_var=no
9746        runpath_var=LD_RUN_PATH
9747        hardcode_runpath_var=yes
9748        ld_shlibs=yes
9749      fi
9750      ;;
9751
9752    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9753      no_undefined_flag='${wl}-z,text'
9754      archive_cmds_need_lc=no
9755      hardcode_shlibpath_var=no
9756      runpath_var='LD_RUN_PATH'
9757
9758      if test "$GCC" = yes; then
9759        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761      else
9762        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9763        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9764      fi
9765      ;;
9766
9767    sysv5* | sco3.2v5* | sco5v6*)
9768      # Note: We can NOT use -z defs as we might desire, because we do not
9769      # link with -lc, and that would cause any symbols used from libc to
9770      # always be unresolved, which means just about no library would
9771      # ever link correctly.  If we're not using GNU ld we use -z text
9772      # though, which does catch some bad symbols but isn't as heavy-handed
9773      # as -z defs.
9774      no_undefined_flag='${wl}-z,text'
9775      allow_undefined_flag='${wl}-z,nodefs'
9776      archive_cmds_need_lc=no
9777      hardcode_shlibpath_var=no
9778      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9779      hardcode_libdir_separator=':'
9780      link_all_deplibs=yes
9781      export_dynamic_flag_spec='${wl}-Bexport'
9782      runpath_var='LD_RUN_PATH'
9783
9784      if test "$GCC" = yes; then
9785        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9786        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9787      else
9788        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9789        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9790      fi
9791      ;;
9792
9793    uts4*)
9794      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9795      hardcode_libdir_flag_spec='-L$libdir'
9796      hardcode_shlibpath_var=no
9797      ;;
9798
9799    *)
9800      ld_shlibs=no
9801      ;;
9802    esac
9803  fi
9804
9805echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9806echo "${ECHO_T}$ld_shlibs" >&6
9807test "$ld_shlibs" = no && can_build_shared=no
9808
9809#
9810# Do we need to explicitly link libc?
9811#
9812case "x$archive_cmds_need_lc" in
9813x|xyes)
9814  # Assume -lc should be added
9815  archive_cmds_need_lc=yes
9816
9817  if test "$enable_shared" = yes && test "$GCC" = yes; then
9818    case $archive_cmds in
9819    *'~'*)
9820      # FIXME: we may have to deal with multi-command sequences.
9821      ;;
9822    '$CC '*)
9823      # Test whether the compiler implicitly links with -lc since on some
9824      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9825      # to ld, don't add -lc before -lgcc.
9826      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9827echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9828      $rm conftest*
9829      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9830
9831      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9832  (eval $ac_compile) 2>&5
9833  ac_status=$?
9834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835  (exit $ac_status); } 2>conftest.err; then
9836        soname=conftest
9837        lib=conftest
9838        libobjs=conftest.$ac_objext
9839        deplibs=
9840        wl=$lt_prog_compiler_wl
9841        pic_flag=$lt_prog_compiler_pic
9842        compiler_flags=-v
9843        linker_flags=-v
9844        verstring=
9845        output_objdir=.
9846        libname=conftest
9847        lt_save_allow_undefined_flag=$allow_undefined_flag
9848        allow_undefined_flag=
9849        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9850  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9851  ac_status=$?
9852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853  (exit $ac_status); }
9854        then
9855          archive_cmds_need_lc=no
9856        else
9857          archive_cmds_need_lc=yes
9858        fi
9859        allow_undefined_flag=$lt_save_allow_undefined_flag
9860      else
9861        cat conftest.err 1>&5
9862      fi
9863      $rm conftest*
9864      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9865echo "${ECHO_T}$archive_cmds_need_lc" >&6
9866      ;;
9867    esac
9868  fi
9869  ;;
9870esac
9871
9872echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9873echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9874library_names_spec=
9875libname_spec='lib$name'
9876soname_spec=
9877shrext_cmds=".so"
9878postinstall_cmds=
9879postuninstall_cmds=
9880finish_cmds=
9881finish_eval=
9882shlibpath_var=
9883shlibpath_overrides_runpath=unknown
9884version_type=none
9885dynamic_linker="$host_os ld.so"
9886sys_lib_dlsearch_path_spec="/lib /usr/lib"
9887if test "$GCC" = yes; then
9888  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9889  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9890    # if the path contains ";" then we assume it to be the separator
9891    # otherwise default to the standard path separator (i.e. ":") - it is
9892    # assumed that no part of a normal pathname contains ";" but that should
9893    # okay in the real world where ";" in dirpaths is itself problematic.
9894    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9895  else
9896    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9897  fi
9898else
9899  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9900fi
9901need_lib_prefix=unknown
9902hardcode_into_libs=no
9903
9904# when you set need_version to no, make sure it does not cause -set_version
9905# flags to be left without arguments
9906need_version=unknown
9907
9908case $host_os in
9909aix3*)
9910  version_type=linux
9911  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9912  shlibpath_var=LIBPATH
9913
9914  # AIX 3 has no versioning support, so we append a major version to the name.
9915  soname_spec='${libname}${release}${shared_ext}$major'
9916  ;;
9917
9918aix4* | aix5*)
9919  version_type=linux
9920  need_lib_prefix=no
9921  need_version=no
9922  hardcode_into_libs=yes
9923  if test "$host_cpu" = ia64; then
9924    # AIX 5 supports IA64
9925    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9926    shlibpath_var=LD_LIBRARY_PATH
9927  else
9928    # With GCC up to 2.95.x, collect2 would create an import file
9929    # for dependence libraries.  The import file would start with
9930    # the line `#! .'.  This would cause the generated library to
9931    # depend on `.', always an invalid library.  This was fixed in
9932    # development snapshots of GCC prior to 3.0.
9933    case $host_os in
9934      aix4 | aix4.[01] | aix4.[01].*)
9935      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9936           echo ' yes '
9937           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9938        :
9939      else
9940        can_build_shared=no
9941      fi
9942      ;;
9943    esac
9944    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9945    # soname into executable. Probably we can add versioning support to
9946    # collect2, so additional links can be useful in future.
9947    if test "$aix_use_runtimelinking" = yes; then
9948      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9949      # instead of lib<name>.a to let people know that these are not
9950      # typical AIX shared libraries.
9951      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952    else
9953      # We preserve .a as extension for shared libraries through AIX4.2
9954      # and later when we are not doing run time linking.
9955      library_names_spec='${libname}${release}.a $libname.a'
9956      soname_spec='${libname}${release}${shared_ext}$major'
9957    fi
9958    shlibpath_var=LIBPATH
9959  fi
9960  ;;
9961
9962amigaos*)
9963  library_names_spec='$libname.ixlibrary $libname.a'
9964  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9965  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'
9966  ;;
9967
9968beos*)
9969  library_names_spec='${libname}${shared_ext}'
9970  dynamic_linker="$host_os ld.so"
9971  shlibpath_var=LIBRARY_PATH
9972  ;;
9973
9974bsdi[45]*)
9975  version_type=linux
9976  need_version=no
9977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978  soname_spec='${libname}${release}${shared_ext}$major'
9979  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9980  shlibpath_var=LD_LIBRARY_PATH
9981  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9982  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9983  # the default ld.so.conf also contains /usr/contrib/lib and
9984  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9985  # libtool to hard-code these into programs
9986  ;;
9987
9988cygwin* | mingw* | pw32*)
9989  version_type=windows
9990  shrext_cmds=".dll"
9991  need_version=no
9992  need_lib_prefix=no
9993
9994  case $GCC,$host_os in
9995  yes,cygwin* | yes,mingw* | yes,pw32*)
9996    library_names_spec='$libname.dll.a'
9997    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9998    postinstall_cmds='base_file=`basename \${file}`~
9999      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10000      dldir=$destdir/`dirname \$dlpath`~
10001      test -d \$dldir || mkdir -p \$dldir~
10002      $install_prog $dir/$dlname \$dldir/$dlname~
10003      chmod a+x \$dldir/$dlname'
10004    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10005      dlpath=$dir/\$dldll~
10006       $rm \$dlpath'
10007    shlibpath_overrides_runpath=yes
10008
10009    case $host_os in
10010    cygwin*)
10011      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10012      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10013      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10014      ;;
10015    mingw*)
10016      # MinGW DLLs use traditional 'lib' prefix
10017      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10018      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10019      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10020        # It is most probably a Windows format PATH printed by
10021        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10022        # path with ; separators, and with drive letters. We can handle the
10023        # drive letters (cygwin fileutils understands them), so leave them,
10024        # especially as we might pass files found there to a mingw objdump,
10025        # which wouldn't understand a cygwinified path. Ahh.
10026        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10027      else
10028        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10029      fi
10030      ;;
10031    pw32*)
10032      # pw32 DLLs use 'pw' prefix rather than 'lib'
10033      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10034      ;;
10035    esac
10036    ;;
10037
10038  *)
10039    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10040    ;;
10041  esac
10042  dynamic_linker='Win32 ld.exe'
10043  # FIXME: first we should search . and the directory the executable is in
10044  shlibpath_var=PATH
10045  ;;
10046
10047darwin* | rhapsody*)
10048  dynamic_linker="$host_os dyld"
10049  version_type=darwin
10050  need_lib_prefix=no
10051  need_version=no
10052  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10053  soname_spec='${libname}${release}${major}$shared_ext'
10054  shlibpath_overrides_runpath=yes
10055  shlibpath_var=DYLD_LIBRARY_PATH
10056  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10057  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10058  if test "$GCC" = yes; then
10059    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"`
10060  else
10061    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10062  fi
10063  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10064  ;;
10065
10066dgux*)
10067  version_type=linux
10068  need_lib_prefix=no
10069  need_version=no
10070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10071  soname_spec='${libname}${release}${shared_ext}$major'
10072  shlibpath_var=LD_LIBRARY_PATH
10073  ;;
10074
10075freebsd1*)
10076  dynamic_linker=no
10077  ;;
10078
10079kfreebsd*-gnu)
10080  version_type=linux
10081  need_lib_prefix=no
10082  need_version=no
10083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10084  soname_spec='${libname}${release}${shared_ext}$major'
10085  shlibpath_var=LD_LIBRARY_PATH
10086  shlibpath_overrides_runpath=no
10087  hardcode_into_libs=yes
10088  dynamic_linker='GNU ld.so'
10089  ;;
10090
10091freebsd* | dragonfly*)
10092  # DragonFly does not have aout.  When/if they implement a new
10093  # versioning mechanism, adjust this.
10094  if test -x /usr/bin/objformat; then
10095    objformat=`/usr/bin/objformat`
10096  else
10097    case $host_os in
10098    freebsd[123]*) objformat=aout ;;
10099    *) objformat=elf ;;
10100    esac
10101  fi
10102  version_type=freebsd-$objformat
10103  case $version_type in
10104    freebsd-elf*)
10105      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10106      need_version=no
10107      need_lib_prefix=no
10108      ;;
10109    freebsd-*)
10110      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10111      need_version=yes
10112      ;;
10113  esac
10114  shlibpath_var=LD_LIBRARY_PATH
10115  case $host_os in
10116  freebsd2*)
10117    shlibpath_overrides_runpath=yes
10118    ;;
10119  freebsd3.[01]* | freebsdelf3.[01]*)
10120    shlibpath_overrides_runpath=yes
10121    hardcode_into_libs=yes
10122    ;;
10123  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10124  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10125    shlibpath_overrides_runpath=no
10126    hardcode_into_libs=yes
10127    ;;
10128  freebsd*) # from 4.6 on
10129    shlibpath_overrides_runpath=yes
10130    hardcode_into_libs=yes
10131    ;;
10132  esac
10133  ;;
10134
10135gnu*)
10136  version_type=linux
10137  need_lib_prefix=no
10138  need_version=no
10139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10140  soname_spec='${libname}${release}${shared_ext}$major'
10141  shlibpath_var=LD_LIBRARY_PATH
10142  hardcode_into_libs=yes
10143  ;;
10144
10145hpux9* | hpux10* | hpux11*)
10146  # Give a soname corresponding to the major version so that dld.sl refuses to
10147  # link against other versions.
10148  version_type=sunos
10149  need_lib_prefix=no
10150  need_version=no
10151  case $host_cpu in
10152  ia64*)
10153    shrext_cmds='.so'
10154    hardcode_into_libs=yes
10155    dynamic_linker="$host_os dld.so"
10156    shlibpath_var=LD_LIBRARY_PATH
10157    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10158    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159    soname_spec='${libname}${release}${shared_ext}$major'
10160    if test "X$HPUX_IA64_MODE" = X32; then
10161      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10162    else
10163      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10164    fi
10165    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10166    ;;
10167   hppa*64*)
10168     shrext_cmds='.sl'
10169     hardcode_into_libs=yes
10170     dynamic_linker="$host_os dld.sl"
10171     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10172     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174     soname_spec='${libname}${release}${shared_ext}$major'
10175     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10176     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10177     ;;
10178   *)
10179    shrext_cmds='.sl'
10180    dynamic_linker="$host_os dld.sl"
10181    shlibpath_var=SHLIB_PATH
10182    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10183    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184    soname_spec='${libname}${release}${shared_ext}$major'
10185    ;;
10186  esac
10187  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10188  postinstall_cmds='chmod 555 $lib'
10189  ;;
10190
10191interix3*)
10192  version_type=linux
10193  need_lib_prefix=no
10194  need_version=no
10195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10196  soname_spec='${libname}${release}${shared_ext}$major'
10197  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10198  shlibpath_var=LD_LIBRARY_PATH
10199  shlibpath_overrides_runpath=no
10200  hardcode_into_libs=yes
10201  ;;
10202
10203irix5* | irix6* | nonstopux*)
10204  case $host_os in
10205    nonstopux*) version_type=nonstopux ;;
10206    *)
10207        if test "$lt_cv_prog_gnu_ld" = yes; then
10208                version_type=linux
10209        else
10210                version_type=irix
10211        fi ;;
10212  esac
10213  need_lib_prefix=no
10214  need_version=no
10215  soname_spec='${libname}${release}${shared_ext}$major'
10216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10217  case $host_os in
10218  irix5* | nonstopux*)
10219    libsuff= shlibsuff=
10220    ;;
10221  *)
10222    case $LD in # libtool.m4 will add one of these switches to LD
10223    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10224      libsuff= shlibsuff= libmagic=32-bit;;
10225    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10226      libsuff=32 shlibsuff=N32 libmagic=N32;;
10227    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10228      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10229    *) libsuff= shlibsuff= libmagic=never-match;;
10230    esac
10231    ;;
10232  esac
10233  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10234  shlibpath_overrides_runpath=no
10235  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10236  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10237  hardcode_into_libs=yes
10238  ;;
10239
10240# No shared lib support for Linux oldld, aout, or coff.
10241linux*oldld* | linux*aout* | linux*coff*)
10242  dynamic_linker=no
10243  ;;
10244
10245# This must be Linux ELF.
10246linux*)
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10253  shlibpath_var=LD_LIBRARY_PATH
10254  shlibpath_overrides_runpath=no
10255  # This implies no fast_install, which is unacceptable.
10256  # Some rework will be needed to allow for fast_install
10257  # before this can be enabled.
10258  hardcode_into_libs=yes
10259
10260  # Append ld.so.conf contents to the search path
10261  if test -f /etc/ld.so.conf; then
10262    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' ' '`
10263    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10264  fi
10265
10266  # We used to test for /lib/ld.so.1 and disable shared libraries on
10267  # powerpc, because MkLinux only supported shared libraries with the
10268  # GNU dynamic linker.  Since this was broken with cross compilers,
10269  # most powerpc-linux boxes support dynamic linking these days and
10270  # people can always --disable-shared, the test was removed, and we
10271  # assume the GNU/Linux dynamic linker is in use.
10272  dynamic_linker='GNU/Linux ld.so'
10273  ;;
10274
10275knetbsd*-gnu)
10276  version_type=linux
10277  need_lib_prefix=no
10278  need_version=no
10279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10280  soname_spec='${libname}${release}${shared_ext}$major'
10281  shlibpath_var=LD_LIBRARY_PATH
10282  shlibpath_overrides_runpath=no
10283  hardcode_into_libs=yes
10284  dynamic_linker='GNU ld.so'
10285  ;;
10286
10287netbsd*)
10288  version_type=sunos
10289  need_lib_prefix=no
10290  need_version=no
10291  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10292    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10293    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10294    dynamic_linker='NetBSD (a.out) ld.so'
10295  else
10296    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10297    soname_spec='${libname}${release}${shared_ext}$major'
10298    dynamic_linker='NetBSD ld.elf_so'
10299  fi
10300  shlibpath_var=LD_LIBRARY_PATH
10301  shlibpath_overrides_runpath=yes
10302  hardcode_into_libs=yes
10303  ;;
10304
10305newsos6)
10306  version_type=linux
10307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308  shlibpath_var=LD_LIBRARY_PATH
10309  shlibpath_overrides_runpath=yes
10310  ;;
10311
10312nto-qnx*)
10313  version_type=linux
10314  need_lib_prefix=no
10315  need_version=no
10316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317  soname_spec='${libname}${release}${shared_ext}$major'
10318  shlibpath_var=LD_LIBRARY_PATH
10319  shlibpath_overrides_runpath=yes
10320  ;;
10321
10322openbsd*)
10323  version_type=sunos
10324  sys_lib_dlsearch_path_spec="/usr/lib"
10325  need_lib_prefix=no
10326  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10327  case $host_os in
10328    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10329    *)                         need_version=no  ;;
10330  esac
10331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10332  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10333  shlibpath_var=LD_LIBRARY_PATH
10334  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10335    case $host_os in
10336      openbsd2.[89] | openbsd2.[89].*)
10337        shlibpath_overrides_runpath=no
10338        ;;
10339      *)
10340        shlibpath_overrides_runpath=yes
10341        ;;
10342      esac
10343  else
10344    shlibpath_overrides_runpath=yes
10345  fi
10346  ;;
10347
10348os2*)
10349  libname_spec='$name'
10350  shrext_cmds=".dll"
10351  need_lib_prefix=no
10352  library_names_spec='$libname${shared_ext} $libname.a'
10353  dynamic_linker='OS/2 ld.exe'
10354  shlibpath_var=LIBPATH
10355  ;;
10356
10357osf3* | osf4* | osf5*)
10358  version_type=osf
10359  need_lib_prefix=no
10360  need_version=no
10361  soname_spec='${libname}${release}${shared_ext}$major'
10362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363  shlibpath_var=LD_LIBRARY_PATH
10364  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10365  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10366  ;;
10367
10368solaris*)
10369  version_type=linux
10370  need_lib_prefix=no
10371  need_version=no
10372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373  soname_spec='${libname}${release}${shared_ext}$major'
10374  shlibpath_var=LD_LIBRARY_PATH
10375  shlibpath_overrides_runpath=yes
10376  hardcode_into_libs=yes
10377  # ldd complains unless libraries are executable
10378  postinstall_cmds='chmod +x $lib'
10379  ;;
10380
10381sunos4*)
10382  version_type=sunos
10383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10384  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10385  shlibpath_var=LD_LIBRARY_PATH
10386  shlibpath_overrides_runpath=yes
10387  if test "$with_gnu_ld" = yes; then
10388    need_lib_prefix=no
10389  fi
10390  need_version=yes
10391  ;;
10392
10393sysv4 | sysv4.3*)
10394  version_type=linux
10395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396  soname_spec='${libname}${release}${shared_ext}$major'
10397  shlibpath_var=LD_LIBRARY_PATH
10398  case $host_vendor in
10399    sni)
10400      shlibpath_overrides_runpath=no
10401      need_lib_prefix=no
10402      export_dynamic_flag_spec='${wl}-Blargedynsym'
10403      runpath_var=LD_RUN_PATH
10404      ;;
10405    siemens)
10406      need_lib_prefix=no
10407      ;;
10408    motorola)
10409      need_lib_prefix=no
10410      need_version=no
10411      shlibpath_overrides_runpath=no
10412      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10413      ;;
10414  esac
10415  ;;
10416
10417sysv4*MP*)
10418  if test -d /usr/nec ;then
10419    version_type=linux
10420    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10421    soname_spec='$libname${shared_ext}.$major'
10422    shlibpath_var=LD_LIBRARY_PATH
10423  fi
10424  ;;
10425
10426sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10427  version_type=freebsd-elf
10428  need_lib_prefix=no
10429  need_version=no
10430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10431  soname_spec='${libname}${release}${shared_ext}$major'
10432  shlibpath_var=LD_LIBRARY_PATH
10433  hardcode_into_libs=yes
10434  if test "$with_gnu_ld" = yes; then
10435    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10436    shlibpath_overrides_runpath=no
10437  else
10438    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10439    shlibpath_overrides_runpath=yes
10440    case $host_os in
10441      sco3.2v5*)
10442        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10443        ;;
10444    esac
10445  fi
10446  sys_lib_dlsearch_path_spec='/usr/lib'
10447  ;;
10448
10449uts4*)
10450  version_type=linux
10451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452  soname_spec='${libname}${release}${shared_ext}$major'
10453  shlibpath_var=LD_LIBRARY_PATH
10454  ;;
10455
10456*)
10457  dynamic_linker=no
10458  ;;
10459esac
10460echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10461echo "${ECHO_T}$dynamic_linker" >&6
10462test "$dynamic_linker" = no && can_build_shared=no
10463
10464variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10465if test "$GCC" = yes; then
10466  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10467fi
10468
10469echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10470echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10471hardcode_action=
10472if test -n "$hardcode_libdir_flag_spec" || \
10473   test -n "$runpath_var" || \
10474   test "X$hardcode_automatic" = "Xyes" ; then
10475
10476  # We can hardcode non-existant directories.
10477  if test "$hardcode_direct" != no &&
10478     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10479     # have to relink, otherwise we might link with an installed library
10480     # when we should be linking with a yet-to-be-installed one
10481     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10482     test "$hardcode_minus_L" != no; then
10483    # Linking always hardcodes the temporary library directory.
10484    hardcode_action=relink
10485  else
10486    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10487    hardcode_action=immediate
10488  fi
10489else
10490  # We cannot hardcode anything, or else we can only hardcode existing
10491  # directories.
10492  hardcode_action=unsupported
10493fi
10494echo "$as_me:$LINENO: result: $hardcode_action" >&5
10495echo "${ECHO_T}$hardcode_action" >&6
10496
10497if test "$hardcode_action" = relink; then
10498  # Fast installation is not supported
10499  enable_fast_install=no
10500elif test "$shlibpath_overrides_runpath" = yes ||
10501     test "$enable_shared" = no; then
10502  # Fast installation is not necessary
10503  enable_fast_install=needless
10504fi
10505
10506striplib=
10507old_striplib=
10508echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10509echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10510if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10511  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10512  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10513  echo "$as_me:$LINENO: result: yes" >&5
10514echo "${ECHO_T}yes" >&6
10515else
10516# FIXME - insert some real tests, host_os isn't really good enough
10517  case $host_os in
10518   darwin*)
10519       if test -n "$STRIP" ; then
10520         striplib="$STRIP -x"
10521         echo "$as_me:$LINENO: result: yes" >&5
10522echo "${ECHO_T}yes" >&6
10523       else
10524  echo "$as_me:$LINENO: result: no" >&5
10525echo "${ECHO_T}no" >&6
10526fi
10527       ;;
10528   *)
10529  echo "$as_me:$LINENO: result: no" >&5
10530echo "${ECHO_T}no" >&6
10531    ;;
10532  esac
10533fi
10534
10535if test "x$enable_dlopen" != xyes; then
10536  enable_dlopen=unknown
10537  enable_dlopen_self=unknown
10538  enable_dlopen_self_static=unknown
10539else
10540  lt_cv_dlopen=no
10541  lt_cv_dlopen_libs=
10542
10543  case $host_os in
10544  beos*)
10545    lt_cv_dlopen="load_add_on"
10546    lt_cv_dlopen_libs=
10547    lt_cv_dlopen_self=yes
10548    ;;
10549
10550  mingw* | pw32*)
10551    lt_cv_dlopen="LoadLibrary"
10552    lt_cv_dlopen_libs=
10553   ;;
10554
10555  cygwin*)
10556    lt_cv_dlopen="dlopen"
10557    lt_cv_dlopen_libs=
10558   ;;
10559
10560  darwin*)
10561  # if libdl is installed we need to link against it
10562    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10563echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10564if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10565  echo $ECHO_N "(cached) $ECHO_C" >&6
10566else
10567  ac_check_lib_save_LIBS=$LIBS
10568LIBS="-ldl  $LIBS"
10569cat >conftest.$ac_ext <<_ACEOF
10570/* confdefs.h.  */
10571_ACEOF
10572cat confdefs.h >>conftest.$ac_ext
10573cat >>conftest.$ac_ext <<_ACEOF
10574/* end confdefs.h.  */
10575
10576/* Override any gcc2 internal prototype to avoid an error.  */
10577#ifdef __cplusplus
10578extern "C"
10579#endif
10580/* We use char because int might match the return type of a gcc2
10581   builtin and then its argument prototype would still apply.  */
10582char dlopen ();
10583int
10584main ()
10585{
10586dlopen ();
10587  ;
10588  return 0;
10589}
10590_ACEOF
10591rm -f conftest.$ac_objext conftest$ac_exeext
10592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593  (eval $ac_link) 2>conftest.er1
10594  ac_status=$?
10595  grep -v '^ *+' conftest.er1 >conftest.err
10596  rm -f conftest.er1
10597  cat conftest.err >&5
10598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599  (exit $ac_status); } &&
10600         { ac_try='test -z "$ac_c_werror_flag"
10601                         || test ! -s conftest.err'
10602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603  (eval $ac_try) 2>&5
10604  ac_status=$?
10605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606  (exit $ac_status); }; } &&
10607         { ac_try='test -s conftest$ac_exeext'
10608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609  (eval $ac_try) 2>&5
10610  ac_status=$?
10611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612  (exit $ac_status); }; }; then
10613  ac_cv_lib_dl_dlopen=yes
10614else
10615  echo "$as_me: failed program was:" >&5
10616sed 's/^/| /' conftest.$ac_ext >&5
10617
10618ac_cv_lib_dl_dlopen=no
10619fi
10620rm -f conftest.err conftest.$ac_objext \
10621      conftest$ac_exeext conftest.$ac_ext
10622LIBS=$ac_check_lib_save_LIBS
10623fi
10624echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10625echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10626if test $ac_cv_lib_dl_dlopen = yes; then
10627  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10628else
10629
10630    lt_cv_dlopen="dyld"
10631    lt_cv_dlopen_libs=
10632    lt_cv_dlopen_self=yes
10633
10634fi
10635
10636   ;;
10637
10638  *)
10639    echo "$as_me:$LINENO: checking for shl_load" >&5
10640echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10641if test "${ac_cv_func_shl_load+set}" = set; then
10642  echo $ECHO_N "(cached) $ECHO_C" >&6
10643else
10644  cat >conftest.$ac_ext <<_ACEOF
10645/* confdefs.h.  */
10646_ACEOF
10647cat confdefs.h >>conftest.$ac_ext
10648cat >>conftest.$ac_ext <<_ACEOF
10649/* end confdefs.h.  */
10650/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10651   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10652#define shl_load innocuous_shl_load
10653
10654/* System header to define __stub macros and hopefully few prototypes,
10655    which can conflict with char shl_load (); below.
10656    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10657    <limits.h> exists even on freestanding compilers.  */
10658
10659#ifdef __STDC__
10660# include <limits.h>
10661#else
10662# include <assert.h>
10663#endif
10664
10665#undef shl_load
10666
10667/* Override any gcc2 internal prototype to avoid an error.  */
10668#ifdef __cplusplus
10669extern "C"
10670{
10671#endif
10672/* We use char because int might match the return type of a gcc2
10673   builtin and then its argument prototype would still apply.  */
10674char shl_load ();
10675/* The GNU C library defines this for functions which it implements
10676    to always fail with ENOSYS.  Some functions are actually named
10677    something starting with __ and the normal name is an alias.  */
10678#if defined (__stub_shl_load) || defined (__stub___shl_load)
10679choke me
10680#else
10681char (*f) () = shl_load;
10682#endif
10683#ifdef __cplusplus
10684}
10685#endif
10686
10687int
10688main ()
10689{
10690return f != shl_load;
10691  ;
10692  return 0;
10693}
10694_ACEOF
10695rm -f conftest.$ac_objext conftest$ac_exeext
10696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10697  (eval $ac_link) 2>conftest.er1
10698  ac_status=$?
10699  grep -v '^ *+' conftest.er1 >conftest.err
10700  rm -f conftest.er1
10701  cat conftest.err >&5
10702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703  (exit $ac_status); } &&
10704         { ac_try='test -z "$ac_c_werror_flag"
10705                         || test ! -s conftest.err'
10706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707  (eval $ac_try) 2>&5
10708  ac_status=$?
10709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710  (exit $ac_status); }; } &&
10711         { ac_try='test -s conftest$ac_exeext'
10712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713  (eval $ac_try) 2>&5
10714  ac_status=$?
10715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716  (exit $ac_status); }; }; then
10717  ac_cv_func_shl_load=yes
10718else
10719  echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722ac_cv_func_shl_load=no
10723fi
10724rm -f conftest.err conftest.$ac_objext \
10725      conftest$ac_exeext conftest.$ac_ext
10726fi
10727echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10728echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10729if test $ac_cv_func_shl_load = yes; then
10730  lt_cv_dlopen="shl_load"
10731else
10732  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10733echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10734if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10735  echo $ECHO_N "(cached) $ECHO_C" >&6
10736else
10737  ac_check_lib_save_LIBS=$LIBS
10738LIBS="-ldld  $LIBS"
10739cat >conftest.$ac_ext <<_ACEOF
10740/* confdefs.h.  */
10741_ACEOF
10742cat confdefs.h >>conftest.$ac_ext
10743cat >>conftest.$ac_ext <<_ACEOF
10744/* end confdefs.h.  */
10745
10746/* Override any gcc2 internal prototype to avoid an error.  */
10747#ifdef __cplusplus
10748extern "C"
10749#endif
10750/* We use char because int might match the return type of a gcc2
10751   builtin and then its argument prototype would still apply.  */
10752char shl_load ();
10753int
10754main ()
10755{
10756shl_load ();
10757  ;
10758  return 0;
<