source: branches/heur/configure @ 1298

Last change on this file since 1298 was 871, checked in by forrest, 11 years ago

add diving heuristics

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