source: trunk/configure @ 1576

Last change on this file since 1576 was 1576, checked in by lou, 8 years ago

temporarily committing stable candidate

  • Property svn:executable set to *
File size: 794.0 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Cbc 2.7.
5#
6# Report bugs to <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 Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Cbc'
432PACKAGE_TARNAME='cbc'
433PACKAGE_VERSION='2.7'
434PACKAGE_STRING='Cbc 2.7'
435PACKAGE_BUGREPORT='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 Data/Sample"
481ac_subdirs_all="$ac_subdirs_all Data/Netlib"
482ac_subdirs_all="$ac_subdirs_all Data/miplib3"
483ac_subdirs_all="$ac_subdirs_all CoinUtils"
484ac_subdirs_all="$ac_subdirs_all Osi"
485ac_subdirs_all="$ac_subdirs_all Clp"
486ac_subdirs_all="$ac_subdirs_all DyLP"
487ac_subdirs_all="$ac_subdirs_all Vol"
488ac_subdirs_all="$ac_subdirs_all Cgl"
489ac_subdirs_all="$ac_subdirs_all Cbc"
490ac_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 COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE 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 COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
491ac_subst_files=''
492
493# Initialize some variables set by options.
494ac_init_help=
495ac_init_version=false
496# The variables have the same names as the options, with
497# dashes changed to underlines.
498cache_file=/dev/null
499exec_prefix=NONE
500no_create=
501no_recursion=
502prefix=NONE
503program_prefix=NONE
504program_suffix=NONE
505program_transform_name=s,x,x,
506silent=
507site=
508srcdir=
509verbose=
510x_includes=NONE
511x_libraries=NONE
512
513# Installation directory options.
514# These are left unexpanded so users can "make install exec_prefix=/foo"
515# and all the variables that are supposed to be based on exec_prefix
516# by default will actually change.
517# Use braces instead of parens because sh, perl, etc. also accept them.
518bindir='${exec_prefix}/bin'
519sbindir='${exec_prefix}/sbin'
520libexecdir='${exec_prefix}/libexec'
521datadir='${prefix}/share'
522sysconfdir='${prefix}/etc'
523sharedstatedir='${prefix}/com'
524localstatedir='${prefix}/var'
525libdir='${exec_prefix}/lib'
526includedir='${prefix}/include'
527oldincludedir='/usr/include'
528infodir='${prefix}/info'
529mandir='${prefix}/man'
530
531ac_prev=
532for ac_option
533do
534  # If the previous option needs an argument, assign it.
535  if test -n "$ac_prev"; then
536    eval "$ac_prev=\$ac_option"
537    ac_prev=
538    continue
539  fi
540
541  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
542
543  # Accept the important Cygnus configure options, so we can diagnose typos.
544
545  case $ac_option in
546
547  -bindir | --bindir | --bindi | --bind | --bin | --bi)
548    ac_prev=bindir ;;
549  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
550    bindir=$ac_optarg ;;
551
552  -build | --build | --buil | --bui | --bu)
553    ac_prev=build_alias ;;
554  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
555    build_alias=$ac_optarg ;;
556
557  -cache-file | --cache-file | --cache-fil | --cache-fi \
558  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
559    ac_prev=cache_file ;;
560  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
561  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
562    cache_file=$ac_optarg ;;
563
564  --config-cache | -C)
565    cache_file=config.cache ;;
566
567  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
568    ac_prev=datadir ;;
569  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
570  | --da=*)
571    datadir=$ac_optarg ;;
572
573  -disable-* | --disable-*)
574    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
575    # Reject names that are not valid shell variable names.
576    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
578   { (exit 1); exit 1; }; }
579    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
580    eval "enable_$ac_feature=no" ;;
581
582  -enable-* | --enable-*)
583    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
584    # Reject names that are not valid shell variable names.
585    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
587   { (exit 1); exit 1; }; }
588    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
589    case $ac_option in
590      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591      *) ac_optarg=yes ;;
592    esac
593    eval "enable_$ac_feature='$ac_optarg'" ;;
594
595  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
596  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
597  | --exec | --exe | --ex)
598    ac_prev=exec_prefix ;;
599  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
600  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
601  | --exec=* | --exe=* | --ex=*)
602    exec_prefix=$ac_optarg ;;
603
604  -gas | --gas | --ga | --g)
605    # Obsolete; use --with-gas.
606    with_gas=yes ;;
607
608  -help | --help | --hel | --he | -h)
609    ac_init_help=long ;;
610  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
611    ac_init_help=recursive ;;
612  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
613    ac_init_help=short ;;
614
615  -host | --host | --hos | --ho)
616    ac_prev=host_alias ;;
617  -host=* | --host=* | --hos=* | --ho=*)
618    host_alias=$ac_optarg ;;
619
620  -includedir | --includedir | --includedi | --included | --include \
621  | --includ | --inclu | --incl | --inc)
622    ac_prev=includedir ;;
623  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
624  | --includ=* | --inclu=* | --incl=* | --inc=*)
625    includedir=$ac_optarg ;;
626
627  -infodir | --infodir | --infodi | --infod | --info | --inf)
628    ac_prev=infodir ;;
629  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
630    infodir=$ac_optarg ;;
631
632  -libdir | --libdir | --libdi | --libd)
633    ac_prev=libdir ;;
634  -libdir=* | --libdir=* | --libdi=* | --libd=*)
635    libdir=$ac_optarg ;;
636
637  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
638  | --libexe | --libex | --libe)
639    ac_prev=libexecdir ;;
640  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
641  | --libexe=* | --libex=* | --libe=*)
642    libexecdir=$ac_optarg ;;
643
644  -localstatedir | --localstatedir | --localstatedi | --localstated \
645  | --localstate | --localstat | --localsta | --localst \
646  | --locals | --local | --loca | --loc | --lo)
647    ac_prev=localstatedir ;;
648  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
649  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
650  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
651    localstatedir=$ac_optarg ;;
652
653  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
654    ac_prev=mandir ;;
655  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
656    mandir=$ac_optarg ;;
657
658  -nfp | --nfp | --nf)
659    # Obsolete; use --without-fp.
660    with_fp=no ;;
661
662  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
663  | --no-cr | --no-c | -n)
664    no_create=yes ;;
665
666  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
667  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
668    no_recursion=yes ;;
669
670  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
671  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
672  | --oldin | --oldi | --old | --ol | --o)
673    ac_prev=oldincludedir ;;
674  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
675  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
676  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
677    oldincludedir=$ac_optarg ;;
678
679  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
680    ac_prev=prefix ;;
681  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
682    prefix=$ac_optarg ;;
683
684  -program-prefix | --program-prefix | --program-prefi | --program-pref \
685  | --program-pre | --program-pr | --program-p)
686    ac_prev=program_prefix ;;
687  -program-prefix=* | --program-prefix=* | --program-prefi=* \
688  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
689    program_prefix=$ac_optarg ;;
690
691  -program-suffix | --program-suffix | --program-suffi | --program-suff \
692  | --program-suf | --program-su | --program-s)
693    ac_prev=program_suffix ;;
694  -program-suffix=* | --program-suffix=* | --program-suffi=* \
695  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
696    program_suffix=$ac_optarg ;;
697
698  -program-transform-name | --program-transform-name \
699  | --program-transform-nam | --program-transform-na \
700  | --program-transform-n | --program-transform- \
701  | --program-transform | --program-transfor \
702  | --program-transfo | --program-transf \
703  | --program-trans | --program-tran \
704  | --progr-tra | --program-tr | --program-t)
705    ac_prev=program_transform_name ;;
706  -program-transform-name=* | --program-transform-name=* \
707  | --program-transform-nam=* | --program-transform-na=* \
708  | --program-transform-n=* | --program-transform-=* \
709  | --program-transform=* | --program-transfor=* \
710  | --program-transfo=* | --program-transf=* \
711  | --program-trans=* | --program-tran=* \
712  | --progr-tra=* | --program-tr=* | --program-t=*)
713    program_transform_name=$ac_optarg ;;
714
715  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
716  | -silent | --silent | --silen | --sile | --sil)
717    silent=yes ;;
718
719  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
720    ac_prev=sbindir ;;
721  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
722  | --sbi=* | --sb=*)
723    sbindir=$ac_optarg ;;
724
725  -sharedstatedir | --sharedstatedir | --sharedstatedi \
726  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
727  | --sharedst | --shareds | --shared | --share | --shar \
728  | --sha | --sh)
729    ac_prev=sharedstatedir ;;
730  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
731  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
732  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
733  | --sha=* | --sh=*)
734    sharedstatedir=$ac_optarg ;;
735
736  -site | --site | --sit)
737    ac_prev=site ;;
738  -site=* | --site=* | --sit=*)
739    site=$ac_optarg ;;
740
741  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
742    ac_prev=srcdir ;;
743  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
744    srcdir=$ac_optarg ;;
745
746  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
747  | --syscon | --sysco | --sysc | --sys | --sy)
748    ac_prev=sysconfdir ;;
749  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
750  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
751    sysconfdir=$ac_optarg ;;
752
753  -target | --target | --targe | --targ | --tar | --ta | --t)
754    ac_prev=target_alias ;;
755  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
756    target_alias=$ac_optarg ;;
757
758  -v | -verbose | --verbose | --verbos | --verbo | --verb)
759    verbose=yes ;;
760
761  -version | --version | --versio | --versi | --vers | -V)
762    ac_init_version=: ;;
763
764  -with-* | --with-*)
765    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
766    # Reject names that are not valid shell variable names.
767    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768      { echo "$as_me: error: invalid package name: $ac_package" >&2
769   { (exit 1); exit 1; }; }
770    ac_package=`echo $ac_package| sed 's/-/_/g'`
771    case $ac_option in
772      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
773      *) ac_optarg=yes ;;
774    esac
775    eval "with_$ac_package='$ac_optarg'" ;;
776
777  -without-* | --without-*)
778    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
779    # Reject names that are not valid shell variable names.
780    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
781      { echo "$as_me: error: invalid package name: $ac_package" >&2
782   { (exit 1); exit 1; }; }
783    ac_package=`echo $ac_package | sed 's/-/_/g'`
784    eval "with_$ac_package=no" ;;
785
786  --x)
787    # Obsolete; use --with-x.
788    with_x=yes ;;
789
790  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
791  | --x-incl | --x-inc | --x-in | --x-i)
792    ac_prev=x_includes ;;
793  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
794  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
795    x_includes=$ac_optarg ;;
796
797  -x-libraries | --x-libraries | --x-librarie | --x-librari \
798  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
799    ac_prev=x_libraries ;;
800  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
801  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
802    x_libraries=$ac_optarg ;;
803
804  -*) { echo "$as_me: error: unrecognized option: $ac_option
805Try \`$0 --help' for more information." >&2
806   { (exit 1); exit 1; }; }
807    ;;
808
809  *=*)
810    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
811    # Reject names that are not valid shell variable names.
812    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
813      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
814   { (exit 1); exit 1; }; }
815    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
816    eval "$ac_envvar='$ac_optarg'"
817    export $ac_envvar ;;
818
819  *)
820    # FIXME: should be removed in autoconf 3.0.
821    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
822    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
824    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
825    ;;
826
827  esac
828done
829
830if test -n "$ac_prev"; then
831  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
832  { echo "$as_me: error: missing argument to $ac_option" >&2
833   { (exit 1); exit 1; }; }
834fi
835
836# Be sure to have absolute paths.
837for ac_var in exec_prefix prefix
838do
839  eval ac_val=$`echo $ac_var`
840  case $ac_val in
841    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
842    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843   { (exit 1); exit 1; }; };;
844  esac
845done
846
847# Be sure to have absolute paths.
848for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
849              localstatedir libdir includedir oldincludedir infodir mandir
850do
851  eval ac_val=$`echo $ac_var`
852  case $ac_val in
853    [\\/$]* | ?:[\\/]* ) ;;
854    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
855   { (exit 1); exit 1; }; };;
856  esac
857done
858
859# There might be people who depend on the old broken behavior: `$host'
860# used to hold the argument of --host etc.
861# FIXME: To remove some day.
862build=$build_alias
863host=$host_alias
864target=$target_alias
865
866# FIXME: To remove some day.
867if test "x$host_alias" != x; then
868  if test "x$build_alias" = x; then
869    cross_compiling=maybe
870    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
871    If a cross compiler is detected then cross compile mode will be used." >&2
872  elif test "x$build_alias" != "x$host_alias"; then
873    cross_compiling=yes
874  fi
875fi
876
877ac_tool_prefix=
878test -n "$host_alias" && ac_tool_prefix=$host_alias-
879
880test "$silent" = yes && exec 6>/dev/null
881
882
883# Find the source files, if location was not specified.
884if test -z "$srcdir"; then
885  ac_srcdir_defaulted=yes
886  # Try the directory containing this script, then its parent.
887  ac_confdir=`(dirname "$0") 2>/dev/null ||
888$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
889         X"$0" : 'X\(//\)[^/]' \| \
890         X"$0" : 'X\(//\)$' \| \
891         X"$0" : 'X\(/\)' \| \
892         .     : '\(.\)' 2>/dev/null ||
893echo X"$0" |
894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
895          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
896          /^X\(\/\/\)$/{ s//\1/; q; }
897          /^X\(\/\).*/{ s//\1/; q; }
898          s/.*/./; q'`
899  srcdir=$ac_confdir
900  if test ! -r $srcdir/$ac_unique_file; then
901    srcdir=..
902  fi
903else
904  ac_srcdir_defaulted=no
905fi
906if test ! -r $srcdir/$ac_unique_file; then
907  if test "$ac_srcdir_defaulted" = yes; then
908    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
909   { (exit 1); exit 1; }; }
910  else
911    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
912   { (exit 1); exit 1; }; }
913  fi
914fi
915(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
916  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
917   { (exit 1); exit 1; }; }
918srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
919ac_env_build_alias_set=${build_alias+set}
920ac_env_build_alias_value=$build_alias
921ac_cv_env_build_alias_set=${build_alias+set}
922ac_cv_env_build_alias_value=$build_alias
923ac_env_host_alias_set=${host_alias+set}
924ac_env_host_alias_value=$host_alias
925ac_cv_env_host_alias_set=${host_alias+set}
926ac_cv_env_host_alias_value=$host_alias
927ac_env_target_alias_set=${target_alias+set}
928ac_env_target_alias_value=$target_alias
929ac_cv_env_target_alias_set=${target_alias+set}
930ac_cv_env_target_alias_value=$target_alias
931ac_env_CDEFS_set=${CDEFS+set}
932ac_env_CDEFS_value=$CDEFS
933ac_cv_env_CDEFS_set=${CDEFS+set}
934ac_cv_env_CDEFS_value=$CDEFS
935ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
936ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
937ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
938ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
939ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
940ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
941ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
942ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
943ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
944ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
945ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
946ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
947ac_env_CC_set=${CC+set}
948ac_env_CC_value=$CC
949ac_cv_env_CC_set=${CC+set}
950ac_cv_env_CC_value=$CC
951ac_env_CFLAGS_set=${CFLAGS+set}
952ac_env_CFLAGS_value=$CFLAGS
953ac_cv_env_CFLAGS_set=${CFLAGS+set}
954ac_cv_env_CFLAGS_value=$CFLAGS
955ac_env_LDFLAGS_set=${LDFLAGS+set}
956ac_env_LDFLAGS_value=$LDFLAGS
957ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
958ac_cv_env_LDFLAGS_value=$LDFLAGS
959ac_env_CPPFLAGS_set=${CPPFLAGS+set}
960ac_env_CPPFLAGS_value=$CPPFLAGS
961ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
962ac_cv_env_CPPFLAGS_value=$CPPFLAGS
963ac_env_MPICC_set=${MPICC+set}
964ac_env_MPICC_value=$MPICC
965ac_cv_env_MPICC_set=${MPICC+set}
966ac_cv_env_MPICC_value=$MPICC
967ac_env_CXXDEFS_set=${CXXDEFS+set}
968ac_env_CXXDEFS_value=$CXXDEFS
969ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
970ac_cv_env_CXXDEFS_value=$CXXDEFS
971ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
972ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
973ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
974ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
975ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
976ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
977ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
978ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
979ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
980ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
981ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
982ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
983ac_env_CXX_set=${CXX+set}
984ac_env_CXX_value=$CXX
985ac_cv_env_CXX_set=${CXX+set}
986ac_cv_env_CXX_value=$CXX
987ac_env_CXXFLAGS_set=${CXXFLAGS+set}
988ac_env_CXXFLAGS_value=$CXXFLAGS
989ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
990ac_cv_env_CXXFLAGS_value=$CXXFLAGS
991ac_env_MPICXX_set=${MPICXX+set}
992ac_env_MPICXX_value=$MPICXX
993ac_cv_env_MPICXX_set=${MPICXX+set}
994ac_cv_env_MPICXX_value=$MPICXX
995ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
996ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
997ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
998ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
999ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1000ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1001ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1002ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1003ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1004ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1005ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1006ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1007ac_env_F77_set=${F77+set}
1008ac_env_F77_value=$F77
1009ac_cv_env_F77_set=${F77+set}
1010ac_cv_env_F77_value=$F77
1011ac_env_FFLAGS_set=${FFLAGS+set}
1012ac_env_FFLAGS_value=$FFLAGS
1013ac_cv_env_FFLAGS_set=${FFLAGS+set}
1014ac_cv_env_FFLAGS_value=$FFLAGS
1015ac_env_MPIF77_set=${MPIF77+set}
1016ac_env_MPIF77_value=$MPIF77
1017ac_cv_env_MPIF77_set=${MPIF77+set}
1018ac_cv_env_MPIF77_value=$MPIF77
1019ac_env_CPP_set=${CPP+set}
1020ac_env_CPP_value=$CPP
1021ac_cv_env_CPP_set=${CPP+set}
1022ac_cv_env_CPP_value=$CPP
1023ac_env_CXXCPP_set=${CXXCPP+set}
1024ac_env_CXXCPP_value=$CXXCPP
1025ac_cv_env_CXXCPP_set=${CXXCPP+set}
1026ac_cv_env_CXXCPP_value=$CXXCPP
1027ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1028ac_env_PKG_CONFIG_value=$PKG_CONFIG
1029ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1030ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1031ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1032ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1033ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1034ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1035
1036#
1037# Report the --help message.
1038#
1039if test "$ac_init_help" = "long"; then
1040  # Omit some internal or obsolete options to make the list less imposing.
1041  # This message is too long to be a string in the A/UX 3.1 sh.
1042  cat <<_ACEOF
1043\`configure' configures Cbc 2.7 to adapt to many kinds of systems.
1044
1045Usage: $0 [OPTION]... [VAR=VALUE]...
1046
1047To assign environment variables (e.g., CC, CFLAGS...), specify them as
1048VAR=VALUE.  See below for descriptions of some of the useful variables.
1049
1050Defaults for the options are specified in brackets.
1051
1052Configuration:
1053  -h, --help              display this help and exit
1054      --help=short        display options specific to this package
1055      --help=recursive    display the short help of all the included packages
1056  -V, --version           display version information and exit
1057  -q, --quiet, --silent   do not print \`checking...' messages
1058      --cache-file=FILE   cache test results in FILE [disabled]
1059  -C, --config-cache      alias for \`--cache-file=config.cache'
1060  -n, --no-create         do not create output files
1061      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1062
1063_ACEOF
1064
1065  cat <<_ACEOF
1066Installation directories:
1067  --prefix=PREFIX         install architecture-independent files in PREFIX
1068                          [$ac_default_prefix]
1069  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1070                          [PREFIX]
1071
1072By default, \`make install' will install all the files in
1073\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1074an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1075for instance \`--prefix=\$HOME'.
1076
1077For better control, use the options below.
1078
1079Fine tuning of the installation directories:
1080  --bindir=DIR           user executables [EPREFIX/bin]
1081  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1082  --libexecdir=DIR       program executables [EPREFIX/libexec]
1083  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1084  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1085  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1086  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1087  --libdir=DIR           object code libraries [EPREFIX/lib]
1088  --includedir=DIR       C header files [PREFIX/include]
1089  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1090  --infodir=DIR          info documentation [PREFIX/info]
1091  --mandir=DIR           man documentation [PREFIX/man]
1092_ACEOF
1093
1094  cat <<\_ACEOF
1095
1096Program names:
1097  --program-prefix=PREFIX            prepend PREFIX to installed program names
1098  --program-suffix=SUFFIX            append SUFFIX to installed program names
1099  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1100
1101System types:
1102  --build=BUILD     configure for building on BUILD [guessed]
1103  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1104_ACEOF
1105fi
1106
1107if test -n "$ac_init_help"; then
1108  case $ac_init_help in
1109     short | recursive ) echo "Configuration of Cbc 2.7:";;
1110   esac
1111  cat <<\_ACEOF
1112
1113Optional Features:
1114  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1115  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1116  --enable-debug          compile all projects with debug options tests
1117  --enable-doscompile     Under Cygwin, compile so that executables run under
1118                          DOS. Set to mingw to use gcc/g++/ld with
1119                          -mno-cygwin. Set to msvc to use cl/link (or
1120                          icl/link). Default when mentioned: mingw. Default
1121                          when not mentioned: disabled.
1122  --enable-static[=PKGS]
1123                          build static libraries [default=no]
1124  --disable-dependency-tracking  speeds up one-time build
1125  --enable-dependency-tracking   do not reject slow dependency extractors
1126  --enable-maintainer-mode  enable make rules and dependencies not useful
1127                          (and sometimes confusing) to the casual installer
1128  --enable-shared[=PKGS]
1129                          build shared libraries [default=yes]
1130  --enable-fast-install[=PKGS]
1131                          optimize for fast installation [default=yes]
1132  --disable-libtool-lock  avoid locking (might break parallel builds)
1133  --enable-pkg-config     use pkg-config if available (default is yes)
1134
1135Optional Packages:
1136  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1137  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1138  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1139  --with-pic              try to use only PIC/non-PIC objects [default=use
1140                          both]
1141  --with-tags[=TAGS]
1142                          include additional configurations [automatic]
1143  --with-coin-instdir     prefix of installation directory for precompiled
1144                          COIN packages
1145  --with-asl-lib linker flags for using project ASL
1146  --with-asl-incdir directory with header files for using project ASL
1147  --with-asl-datadir directory with data files for using project ASL
1148  --with-blas-lib linker flags for using project Blas
1149  --with-blas-incdir directory with header files for using project Blas
1150  --with-blas-datadir directory with data files for using project Blas
1151  --with-blas             specify BLAS library (or BUILD for compilation)
1152  --with-lapack-lib linker flags for using project Lapack
1153  --with-lapack-incdir directory with header files for using project Lapack
1154  --with-lapack-datadir directory with data files for using project Lapack
1155  --with-lapack           specify LAPACK library (or BUILD for compilation)
1156  --with-glpk-lib linker flags for using project Glpk
1157  --with-glpk-incdir directory with header files for using project Glpk
1158  --with-glpk-datadir directory with data files for using project Glpk
1159  --with-sample-lib linker flags for using project Sample
1160  --with-sample-incdir directory with header files for using project Sample
1161  --with-sample-datadir directory with data files for using project Sample
1162  --with-netlib-lib linker flags for using project Netlib
1163  --with-netlib-incdir directory with header files for using project Netlib
1164  --with-netlib-datadir directory with data files for using project Netlib
1165  --with-miplib3-lib linker flags for using project miplib3
1166  --with-miplib3-incdir directory with header files for using project miplib3
1167  --with-miplib3-datadir directory with data files for using project miplib3
1168  --with-coinutils-lib linker flags for using project CoinUtils
1169  --with-coinutils-incdir directory with header files for using project
1170                          CoinUtils
1171  --with-coinutils-datadir
1172                          directory with data files for using project
1173                          CoinUtils
1174  --with-osi-lib linker flags for using project Osi
1175  --with-osi-incdir directory with header files for using project Osi
1176  --with-osi-datadir directory with data files for using project Osi
1177  --with-clp-lib linker flags for using project Clp
1178  --with-clp-incdir directory with header files for using project Clp
1179  --with-clp-datadir directory with data files for using project Clp
1180  --with-dylp-lib linker flags for using project DyLP
1181  --with-dylp-incdir directory with header files for using project DyLP
1182  --with-dylp-datadir directory with data files for using project DyLP
1183  --with-vol-lib linker flags for using project Vol
1184  --with-vol-incdir directory with header files for using project Vol
1185  --with-vol-datadir directory with data files for using project Vol
1186  --with-cgl-lib linker flags for using project Cgl
1187  --with-cgl-incdir directory with header files for using project Cgl
1188  --with-cgl-datadir directory with data files for using project Cgl
1189  --with-cbc-lib linker flags for using project Cbc
1190  --with-cbc-incdir directory with header files for using project Cbc
1191  --with-cbc-datadir directory with data files for using project Cbc
1192  --with-dot              use dot (from graphviz) when creating documentation
1193                          with doxygen if available; --without-dot to disable
1194
1195Some influential environment variables:
1196  CDEFS       Additional -D flags to be used when compiling C code.
1197  ADD_CFLAGS  Additional C compiler options
1198  DBG_CFLAGS  Debug C compiler options
1199  OPT_CFLAGS  Optimize C compiler options
1200  CC          C compiler command
1201  CFLAGS      C compiler flags
1202  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1203              nonstandard directory <lib dir>
1204  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1205              headers in a nonstandard directory <include dir>
1206  MPICC       C MPI Compiler
1207  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1208  ADD_CXXFLAGS
1209              Additional C++ compiler options
1210  DBG_CXXFLAGS
1211              Debug C++ compiler options
1212  OPT_CXXFLAGS
1213              Optimize C++ compiler options
1214  CXX         C++ compiler command
1215  CXXFLAGS    C++ compiler flags
1216  MPICXX      C++ MPI Compiler
1217  ADD_FFLAGS  Additional Fortran compiler options
1218  DBG_FFLAGS  Debug Fortran compiler options
1219  OPT_FFLAGS  Optimize Fortran compiler options
1220  F77         Fortran 77 compiler command
1221  FFLAGS      Fortran 77 compiler flags
1222  MPIF77      Fortran MPI Compiler
1223  CPP         C preprocessor
1224  CXXCPP      C++ preprocessor
1225  PKG_CONFIG  path to pkg-config utility
1226  COIN_SKIP_PROJECTS
1227              Set to the subdirectories of projects that should be skipped in
1228              the configuration
1229
1230Use these variables to override the choices made by `configure' or to help
1231it to find libraries and programs with nonstandard names/locations.
1232
1233Report bugs to <cbc@lists.coin-or.org>.
1234_ACEOF
1235fi
1236
1237if test "$ac_init_help" = "recursive"; then
1238  # If there are subdirs, report their specific --help.
1239  ac_popdir=`pwd`
1240  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1241    test -d $ac_dir || continue
1242    ac_builddir=.
1243
1244if test "$ac_dir" != .; then
1245  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1246  # A "../" for each directory in $ac_dir_suffix.
1247  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1248else
1249  ac_dir_suffix= ac_top_builddir=
1250fi
1251
1252case $srcdir in
1253  .)  # No --srcdir option.  We are building in place.
1254    ac_srcdir=.
1255    if test -z "$ac_top_builddir"; then
1256       ac_top_srcdir=.
1257    else
1258       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1259    fi ;;
1260  [\\/]* | ?:[\\/]* )  # Absolute path.
1261    ac_srcdir=$srcdir$ac_dir_suffix;
1262    ac_top_srcdir=$srcdir ;;
1263  *) # Relative path.
1264    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1265    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1266esac
1267
1268# Do not use `cd foo && pwd` to compute absolute paths, because
1269# the directories may not exist.
1270case `pwd` in
1271.) ac_abs_builddir="$ac_dir";;
1272*)
1273  case "$ac_dir" in
1274  .) ac_abs_builddir=`pwd`;;
1275  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1276  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1277  esac;;
1278esac
1279case $ac_abs_builddir in
1280.) ac_abs_top_builddir=${ac_top_builddir}.;;
1281*)
1282  case ${ac_top_builddir}. in
1283  .) ac_abs_top_builddir=$ac_abs_builddir;;
1284  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1285  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1286  esac;;
1287esac
1288case $ac_abs_builddir in
1289.) ac_abs_srcdir=$ac_srcdir;;
1290*)
1291  case $ac_srcdir in
1292  .) ac_abs_srcdir=$ac_abs_builddir;;
1293  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1294  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1295  esac;;
1296esac
1297case $ac_abs_builddir in
1298.) ac_abs_top_srcdir=$ac_top_srcdir;;
1299*)
1300  case $ac_top_srcdir in
1301  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1302  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1303  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1304  esac;;
1305esac
1306
1307    cd $ac_dir
1308    # Check for guested configure; otherwise get Cygnus style configure.
1309    if test -f $ac_srcdir/configure.gnu; then
1310      echo
1311      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1312    elif test -f $ac_srcdir/configure; then
1313      echo
1314      $SHELL $ac_srcdir/configure  --help=recursive
1315    elif test -f $ac_srcdir/configure.ac ||
1316           test -f $ac_srcdir/configure.in; then
1317      echo
1318      $ac_configure --help
1319    else
1320      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1321    fi
1322    cd $ac_popdir
1323  done
1324fi
1325
1326test -n "$ac_init_help" && exit 0
1327if $ac_init_version; then
1328  cat <<\_ACEOF
1329Cbc configure 2.7
1330generated by GNU Autoconf 2.59
1331
1332Copyright (C) 2003 Free Software Foundation, Inc.
1333This configure script is free software; the Free Software Foundation
1334gives unlimited permission to copy, distribute and modify it.
1335
1336
1337Copyright 2006 International Business Machines and others.
1338All Rights Reserved.
1339This file is part of the open source package Coin which is distributed
1340under the Eclipse Public License.
1341_ACEOF
1342  exit 0
1343fi
1344exec 5>config.log
1345cat >&5 <<_ACEOF
1346This file contains any messages produced by compilers while
1347running configure, to aid debugging if configure makes a mistake.
1348
1349It was created by Cbc $as_me 2.7, which was
1350generated by GNU Autoconf 2.59.  Invocation command line was
1351
1352  $ $0 $@
1353
1354_ACEOF
1355{
1356cat <<_ASUNAME
1357## --------- ##
1358## Platform. ##
1359## --------- ##
1360
1361hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1362uname -m = `(uname -m) 2>/dev/null || echo unknown`
1363uname -r = `(uname -r) 2>/dev/null || echo unknown`
1364uname -s = `(uname -s) 2>/dev/null || echo unknown`
1365uname -v = `(uname -v) 2>/dev/null || echo unknown`
1366
1367/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1368/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1369
1370/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1371/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1372/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1373hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1374/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1375/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1376/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1377
1378_ASUNAME
1379
1380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381for as_dir in $PATH
1382do
1383  IFS=$as_save_IFS
1384  test -z "$as_dir" && as_dir=.
1385  echo "PATH: $as_dir"
1386done
1387
1388} >&5
1389
1390cat >&5 <<_ACEOF
1391
1392
1393## ----------- ##
1394## Core tests. ##
1395## ----------- ##
1396
1397_ACEOF
1398
1399
1400# Keep a trace of the command line.
1401# Strip out --no-create and --no-recursion so they do not pile up.
1402# Strip out --silent because we don't want to record it for future runs.
1403# Also quote any args containing shell meta-characters.
1404# Make two passes to allow for proper duplicate-argument suppression.
1405ac_configure_args=
1406ac_configure_args0=
1407ac_configure_args1=
1408ac_sep=
1409ac_must_keep_next=false
1410for ac_pass in 1 2
1411do
1412  for ac_arg
1413  do
1414    case $ac_arg in
1415    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1416    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1417    | -silent | --silent | --silen | --sile | --sil)
1418      continue ;;
1419    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1420      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1421    esac
1422    case $ac_pass in
1423    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1424    2)
1425      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1426      if test $ac_must_keep_next = true; then
1427        ac_must_keep_next=false # Got value, back to normal.
1428      else
1429        case $ac_arg in
1430          *=* | --config-cache | -C | -disable-* | --disable-* \
1431          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1432          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1433          | -with-* | --with-* | -without-* | --without-* | --x)
1434            case "$ac_configure_args0 " in
1435              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1436            esac
1437            ;;
1438          -* ) ac_must_keep_next=true ;;
1439        esac
1440      fi
1441      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1442      # Get rid of the leading space.
1443      ac_sep=" "
1444      ;;
1445    esac
1446  done
1447done
1448$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1449$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1450
1451# When interrupted or exit'd, cleanup temporary files, and complete
1452# config.log.  We remove comments because anyway the quotes in there
1453# would cause problems or look ugly.
1454# WARNING: Be sure not to use single quotes in there, as some shells,
1455# such as our DU 5.0 friend, will then `close' the trap.
1456trap 'exit_status=$?
1457  # Save into config.log some information that might help in debugging.
1458  {
1459    echo
1460
1461    cat <<\_ASBOX
1462## ---------------- ##
1463## Cache variables. ##
1464## ---------------- ##
1465_ASBOX
1466    echo
1467    # The following way of writing the cache mishandles newlines in values,
1468{
1469  (set) 2>&1 |
1470    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1471    *ac_space=\ *)
1472      sed -n \
1473        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1474          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1475      ;;
1476    *)
1477      sed -n \
1478        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1479      ;;
1480    esac;
1481}
1482    echo
1483
1484    cat <<\_ASBOX
1485## ----------------- ##
1486## Output variables. ##
1487## ----------------- ##
1488_ASBOX
1489    echo
1490    for ac_var in $ac_subst_vars
1491    do
1492      eval ac_val=$`echo $ac_var`
1493      echo "$ac_var='"'"'$ac_val'"'"'"
1494    done | sort
1495    echo
1496
1497    if test -n "$ac_subst_files"; then
1498      cat <<\_ASBOX
1499## ------------- ##
1500## Output files. ##
1501## ------------- ##
1502_ASBOX
1503      echo
1504      for ac_var in $ac_subst_files
1505      do
1506        eval ac_val=$`echo $ac_var`
1507        echo "$ac_var='"'"'$ac_val'"'"'"
1508      done | sort
1509      echo
1510    fi
1511
1512    if test -s confdefs.h; then
1513      cat <<\_ASBOX
1514## ----------- ##
1515## confdefs.h. ##
1516## ----------- ##
1517_ASBOX
1518      echo
1519      sed "/^$/d" confdefs.h | sort
1520      echo
1521    fi
1522    test "$ac_signal" != 0 &&
1523      echo "$as_me: caught signal $ac_signal"
1524    echo "$as_me: exit $exit_status"
1525  } >&5
1526  rm -f core *.core &&
1527  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1528    exit $exit_status
1529     ' 0
1530for ac_signal in 1 2 13 15; do
1531  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1532done
1533ac_signal=0
1534
1535# confdefs.h avoids OS command line length limits that DEFS can exceed.
1536rm -rf conftest* confdefs.h
1537# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1538echo >confdefs.h
1539
1540# Predefined preprocessor variables.
1541
1542cat >>confdefs.h <<_ACEOF
1543#define PACKAGE_NAME "$PACKAGE_NAME"
1544_ACEOF
1545
1546
1547cat >>confdefs.h <<_ACEOF
1548#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1549_ACEOF
1550
1551
1552cat >>confdefs.h <<_ACEOF
1553#define PACKAGE_VERSION "$PACKAGE_VERSION"
1554_ACEOF
1555
1556
1557cat >>confdefs.h <<_ACEOF
1558#define PACKAGE_STRING "$PACKAGE_STRING"
1559_ACEOF
1560
1561
1562cat >>confdefs.h <<_ACEOF
1563#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1564_ACEOF
1565
1566
1567# Let the site file select an alternate cache file if it wants to.
1568# Prefer explicitly selected file to automatically selected ones.
1569if test -z "$CONFIG_SITE"; then
1570  if test "x$prefix" != xNONE; then
1571    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1572  else
1573    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1574  fi
1575fi
1576for ac_site_file in $CONFIG_SITE; do
1577  if test -r "$ac_site_file"; then
1578    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1579echo "$as_me: loading site script $ac_site_file" >&6;}
1580    sed 's/^/| /' "$ac_site_file" >&5
1581    . "$ac_site_file"
1582  fi
1583done
1584
1585if test -r "$cache_file"; then
1586  # Some versions of bash will fail to source /dev/null (special
1587  # files actually), so we avoid doing that.
1588  if test -f "$cache_file"; then
1589    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1590echo "$as_me: loading cache $cache_file" >&6;}
1591    case $cache_file in
1592      [\\/]* | ?:[\\/]* ) . $cache_file;;
1593      *)                      . ./$cache_file;;
1594    esac
1595  fi
1596else
1597  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1598echo "$as_me: creating cache $cache_file" >&6;}
1599  >$cache_file
1600fi
1601
1602# Check that the precious variables saved in the cache have kept the same
1603# value.
1604ac_cache_corrupted=false
1605for ac_var in `(set) 2>&1 |
1606               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1607  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1608  eval ac_new_set=\$ac_env_${ac_var}_set
1609  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1610  eval ac_new_val="\$ac_env_${ac_var}_value"
1611  case $ac_old_set,$ac_new_set in
1612    set,)
1613      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1614echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1615      ac_cache_corrupted=: ;;
1616    ,set)
1617      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1618echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1619      ac_cache_corrupted=: ;;
1620    ,);;
1621    *)
1622      if test "x$ac_old_val" != "x$ac_new_val"; then
1623        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1624echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1625        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1626echo "$as_me:   former value:  $ac_old_val" >&2;}
1627        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1628echo "$as_me:   current value: $ac_new_val" >&2;}
1629        ac_cache_corrupted=:
1630      fi;;
1631  esac
1632  # Pass precious variables to config.status.
1633  if test "$ac_new_set" = set; then
1634    case $ac_new_val in
1635    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1636      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1637    *) ac_arg=$ac_var=$ac_new_val ;;
1638    esac
1639    case " $ac_configure_args " in
1640      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1641      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1642    esac
1643  fi
1644done
1645if $ac_cache_corrupted; then
1646  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1647echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1648  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1649echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1650   { (exit 1); exit 1; }; }
1651fi
1652
1653ac_ext=c
1654ac_cpp='$CPP $CPPFLAGS'
1655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1657ac_compiler_gnu=$ac_cv_c_compiler_gnu
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690# List one file in the package so that the configure script can test
1691# whether the package is actually there
1692
1693
1694# Where should everything be installed by default?  Here, we want it
1695# to be installed directly in 'bin', 'lib', 'include' subdirectories
1696# of the directory where configure is run.  The default would be
1697# /usr/local.
1698
1699
1700#############################################################################
1701#  Do the tests necessary to configure compilers and initialise autotools   #
1702#############################################################################
1703
1704ac_aux_dir=
1705for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1706  if test -f $ac_dir/install-sh; then
1707    ac_aux_dir=$ac_dir
1708    ac_install_sh="$ac_aux_dir/install-sh -c"
1709    break
1710  elif test -f $ac_dir/install.sh; then
1711    ac_aux_dir=$ac_dir
1712    ac_install_sh="$ac_aux_dir/install.sh -c"
1713    break
1714  elif test -f $ac_dir/shtool; then
1715    ac_aux_dir=$ac_dir
1716    ac_install_sh="$ac_aux_dir/shtool install -c"
1717    break
1718  fi
1719done
1720if test -z "$ac_aux_dir"; then
1721  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1722echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1723   { (exit 1); exit 1; }; }
1724fi
1725ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1726ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1727ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1728
1729# Make sure we can run config.sub.
1730$ac_config_sub sun4 >/dev/null 2>&1 ||
1731  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1732echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1733   { (exit 1); exit 1; }; }
1734
1735echo "$as_me:$LINENO: checking build system type" >&5
1736echo $ECHO_N "checking build system type... $ECHO_C" >&6
1737if test "${ac_cv_build+set}" = set; then
1738  echo $ECHO_N "(cached) $ECHO_C" >&6
1739else
1740  ac_cv_build_alias=$build_alias
1741test -z "$ac_cv_build_alias" &&
1742  ac_cv_build_alias=`$ac_config_guess`
1743test -z "$ac_cv_build_alias" &&
1744  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1745echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1746   { (exit 1); exit 1; }; }
1747ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1748  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1749echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1750   { (exit 1); exit 1; }; }
1751
1752fi
1753echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1754echo "${ECHO_T}$ac_cv_build" >&6
1755build=$ac_cv_build
1756build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1757build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1758build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1759
1760
1761
1762# Check if user wants to produce debugging code
1763
1764echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1765echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1766
1767# Check whether --enable-debug or --disable-debug was given.
1768if test "${enable_debug+set}" = set; then
1769  enableval="$enable_debug"
1770  case "${enableval}" in
1771   yes) coin_debug_compile=true
1772        if test "${enable_shared+set}" = set; then :; else
1773          enable_shared=no
1774        fi
1775        ;;
1776   no)  coin_debug_compile=false
1777        ;;
1778   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1779echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1780   { (exit 1); exit 1; }; }
1781        ;;
1782esac
1783else
1784  coin_debug_compile=false
1785fi;
1786
1787 # m4_ifvaln([],
1788
1789if test $coin_debug_compile = true; then
1790  echo "$as_me:$LINENO: result: yes" >&5
1791echo "${ECHO_T}yes" >&6
1792else
1793  echo "$as_me:$LINENO: result: no" >&5
1794echo "${ECHO_T}no" >&6
1795fi
1796
1797 # m4_ifvaln([],
1798
1799
1800
1801# Get the name of the C compiler and appropriate compiler options
1802case $build in
1803  *-mingw*)
1804    if test "${LD+set}" = set; then :; else
1805      LD=link
1806    fi
1807    ;;
1808 esac
1809 case $enable_doscompile in
1810   msvc)
1811     if test "x${LD+set}" = xset; then :; else
1812       LD=link
1813     fi
1814     ;;
1815 esac
1816
1817
1818 # Check whether --enable-doscompile or --disable-doscompile was given.
1819if test "${enable_doscompile+set}" = set; then
1820  enableval="$enable_doscompile"
1821  if test "$enable_doscompile" != no; then
1822     case $build in
1823       *-cygwin* | *-mingw*) ;;
1824       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1825echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1826   { (exit 1); exit 1; }; } ;;
1827     esac
1828   fi
1829else
1830  enable_doscompile=no
1831fi;
1832 case "$enable_doscompile" in
1833   mingw)
1834     case $build in
1835       *-mingw*) enable_doscompile=no ;;
1836     esac
1837     ;;
1838   msvc|no) ;;
1839   yes) enable_doscompile=mingw ;;
1840   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1841                    Try configure --help=recursive." >&5
1842echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1843                    Try configure --help=recursive." >&2;}
1844   { (exit 1); exit 1; }; }
1845      ;;
1846  esac
1847  if test "$enable_doscompile" != no ; then
1848    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1849echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1850  fi
1851
1852
1853
1854
1855ac_ext=c
1856ac_cpp='$CPP $CPPFLAGS'
1857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1859ac_compiler_gnu=$ac_cv_c_compiler_gnu
1860
1861
1862# For consistency, we set the C compiler to the same value of the C++
1863# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1864if test x"$CXX" != x; then
1865  case "$CXX" in
1866    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1867      if test x"$CC" = x; then
1868        CC="$CXX"
1869        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1870echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1871      fi
1872      ;;
1873  esac
1874fi
1875
1876# add automake conditional so we can recognize cl compiler in makefile
1877coin_cc_is_cl=false
1878if test x"$CXX" != x; then
1879  case "$CXX" in
1880    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1881      coin_cc_is_cl=true
1882      ;;
1883  esac
1884fi
1885
1886
1887if test $coin_cc_is_cl = true; then
1888  COIN_CC_IS_CL_TRUE=
1889  COIN_CC_IS_CL_FALSE='#'
1890else
1891  COIN_CC_IS_CL_TRUE='#'
1892  COIN_CC_IS_CL_FALSE=
1893fi
1894
1895
1896
1897
1898
1899
1900
1901coin_has_cc=yes
1902
1903save_cflags="$CFLAGS"
1904
1905# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1906# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1907# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1908# compiler. In this case, put cc after gcc.
1909
1910case $build in
1911  *-cygwin* | *-mingw*)
1912             if test "$enable_doscompile" = msvc ; then
1913               comps="icl cl"
1914             else
1915               comps="gcc cl"
1916             fi ;;
1917  *-*-solaris*)
1918             # Extract the first word of "cc", so it can be a program name with args.
1919set dummy cc; ac_word=$2
1920echo "$as_me:$LINENO: checking for $ac_word" >&5
1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1923  echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925  if test -n "$sol_cc_compiler"; then
1926  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1927else
1928  ac_prog_rejected=no
1929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930for as_dir in $PATH
1931do
1932  IFS=$as_save_IFS
1933  test -z "$as_dir" && as_dir=.
1934  for ac_exec_ext in '' $ac_executable_extensions; do
1935  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1937       ac_prog_rejected=yes
1938       continue
1939     fi
1940    ac_cv_prog_sol_cc_compiler="cc"
1941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942    break 2
1943  fi
1944done
1945done
1946
1947if test $ac_prog_rejected = yes; then
1948  # We found a bogon in the path, so make sure we never use it.
1949  set dummy $ac_cv_prog_sol_cc_compiler
1950  shift
1951  if test $# != 0; then
1952    # We chose a different compiler from the bogus one.
1953    # However, it has the same basename, so the bogon will be chosen
1954    # first if we set sol_cc_compiler to just the basename; use the full file name.
1955    shift
1956    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1957  fi
1958fi
1959fi
1960fi
1961sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1962if test -n "$sol_cc_compiler"; then
1963  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1964echo "${ECHO_T}$sol_cc_compiler" >&6
1965else
1966  echo "$as_me:$LINENO: result: no" >&5
1967echo "${ECHO_T}no" >&6
1968fi
1969
1970             if test "$sol_cc_compiler" = "cc" ; then
1971               comps="cc xlc gcc pgcc icc"
1972             else
1973               comps="xlc gcc pgcc icc cc"
1974             fi
1975             ;;
1976  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1977  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1978  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1979esac
1980
1981# We delete the cached value, since the test might not have been
1982# performed with our choice of compilers earlier
1983$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1984# AC_MSG_NOTICE([C compiler candidates: $comps])
1985ac_ext=c
1986ac_cpp='$CPP $CPPFLAGS'
1987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1989ac_compiler_gnu=$ac_cv_c_compiler_gnu
1990if test -n "$ac_tool_prefix"; then
1991  for ac_prog in $comps
1992  do
1993    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1995echo "$as_me:$LINENO: checking for $ac_word" >&5
1996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997if test "${ac_cv_prog_CC+set}" = set; then
1998  echo $ECHO_N "(cached) $ECHO_C" >&6
1999else
2000  if test -n "$CC"; then
2001  ac_cv_prog_CC="$CC" # Let the user override the test.
2002else
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006  IFS=$as_save_IFS
2007  test -z "$as_dir" && as_dir=.
2008  for ac_exec_ext in '' $ac_executable_extensions; do
2009  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012    break 2
2013  fi
2014done
2015done
2016
2017fi
2018fi
2019CC=$ac_cv_prog_CC
2020if test -n "$CC"; then
2021  echo "$as_me:$LINENO: result: $CC" >&5
2022echo "${ECHO_T}$CC" >&6
2023else
2024  echo "$as_me:$LINENO: result: no" >&5
2025echo "${ECHO_T}no" >&6
2026fi
2027
2028    test -n "$CC" && break
2029  done
2030fi
2031if test -z "$CC"; then
2032  ac_ct_CC=$CC
2033  for ac_prog in $comps
2034do
2035  # Extract the first word of "$ac_prog", so it can be a program name with args.
2036set dummy $ac_prog; ac_word=$2
2037echo "$as_me:$LINENO: checking for $ac_word" >&5
2038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040  echo $ECHO_N "(cached) $ECHO_C" >&6
2041else
2042  if test -n "$ac_ct_CC"; then
2043  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044else
2045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046for as_dir in $PATH
2047do
2048  IFS=$as_save_IFS
2049  test -z "$as_dir" && as_dir=.
2050  for ac_exec_ext in '' $ac_executable_extensions; do
2051  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052    ac_cv_prog_ac_ct_CC="$ac_prog"
2053    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054    break 2
2055  fi
2056done
2057done
2058
2059fi
2060fi
2061ac_ct_CC=$ac_cv_prog_ac_ct_CC
2062if test -n "$ac_ct_CC"; then
2063  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2064echo "${ECHO_T}$ac_ct_CC" >&6
2065else
2066  echo "$as_me:$LINENO: result: no" >&5
2067echo "${ECHO_T}no" >&6
2068fi
2069
2070  test -n "$ac_ct_CC" && break
2071done
2072
2073  CC=$ac_ct_CC
2074fi
2075
2076
2077test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2078See \`config.log' for more details." >&5
2079echo "$as_me: error: no acceptable C compiler found in \$PATH
2080See \`config.log' for more details." >&2;}
2081   { (exit 1); exit 1; }; }
2082
2083# Provide some information about the compiler.
2084echo "$as_me:$LINENO:" \
2085     "checking for C compiler version" >&5
2086ac_compiler=`set X $ac_compile; echo $2`
2087{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2088  (eval $ac_compiler --version </dev/null >&5) 2>&5
2089  ac_status=$?
2090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091  (exit $ac_status); }
2092{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2093  (eval $ac_compiler -v </dev/null >&5) 2>&5
2094  ac_status=$?
2095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096  (exit $ac_status); }
2097{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2098  (eval $ac_compiler -V </dev/null >&5) 2>&5
2099  ac_status=$?
2100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101  (exit $ac_status); }
2102
2103cat >conftest.$ac_ext <<_ACEOF
2104/* confdefs.h.  */
2105_ACEOF
2106cat confdefs.h >>conftest.$ac_ext
2107cat >>conftest.$ac_ext <<_ACEOF
2108/* end confdefs.h.  */
2109
2110int
2111main ()
2112{
2113
2114  ;
2115  return 0;
2116}
2117_ACEOF
2118ac_clean_files_save=$ac_clean_files
2119ac_clean_files="$ac_clean_files a.out a.exe b.out"
2120# Try to create an executable without -o first, disregard a.out.
2121# It will help us diagnose broken compilers, and finding out an intuition
2122# of exeext.
2123echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2124echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2125ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2126if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2127  (eval $ac_link_default) 2>&5
2128  ac_status=$?
2129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130  (exit $ac_status); }; then
2131  # Find the output, starting from the most likely.  This scheme is
2132# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2133# resort.
2134
2135# Be careful to initialize this variable, since it used to be cached.
2136# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2137ac_cv_exeext=
2138# b.out is created by i960 compilers.
2139for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2140do
2141  test -f "$ac_file" || continue
2142  case $ac_file in
2143    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2144        ;;
2145    conftest.$ac_ext )
2146        # This is the source file.
2147        ;;
2148    [ab].out )
2149        # We found the default executable, but exeext='' is most
2150        # certainly right.
2151        break;;
2152    *.* )
2153        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2154        # FIXME: I believe we export ac_cv_exeext for Libtool,
2155        # but it would be cool to find out if it's true.  Does anybody
2156        # maintain Libtool? --akim.
2157        export ac_cv_exeext
2158        break;;
2159    * )
2160        break;;
2161  esac
2162done
2163else
2164  echo "$as_me: failed program was:" >&5
2165sed 's/^/| /' conftest.$ac_ext >&5
2166
2167{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2168See \`config.log' for more details." >&5
2169echo "$as_me: error: C compiler cannot create executables
2170See \`config.log' for more details." >&2;}
2171   { (exit 77); exit 77; }; }
2172fi
2173
2174ac_exeext=$ac_cv_exeext
2175echo "$as_me:$LINENO: result: $ac_file" >&5
2176echo "${ECHO_T}$ac_file" >&6
2177
2178# Check the compiler produces executables we can run.  If not, either
2179# the compiler is broken, or we cross compile.
2180echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2181echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2182# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2183# If not cross compiling, check that we can run a simple program.
2184if test "$cross_compiling" != yes; then
2185  if { ac_try='./$ac_file'
2186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187  (eval $ac_try) 2>&5
2188  ac_status=$?
2189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190  (exit $ac_status); }; }; then
2191    cross_compiling=no
2192  else
2193    if test "$cross_compiling" = maybe; then
2194        cross_compiling=yes
2195    else
2196        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2197If you meant to cross compile, use \`--host'.
2198See \`config.log' for more details." >&5
2199echo "$as_me: error: cannot run C compiled programs.
2200If you meant to cross compile, use \`--host'.
2201See \`config.log' for more details." >&2;}
2202   { (exit 1); exit 1; }; }
2203    fi
2204  fi
2205fi
2206echo "$as_me:$LINENO: result: yes" >&5
2207echo "${ECHO_T}yes" >&6
2208
2209rm -f a.out a.exe conftest$ac_cv_exeext b.out
2210ac_clean_files=$ac_clean_files_save
2211# Check the compiler produces executables we can run.  If not, either
2212# the compiler is broken, or we cross compile.
2213echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2214echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2215echo "$as_me:$LINENO: result: $cross_compiling" >&5
2216echo "${ECHO_T}$cross_compiling" >&6
2217
2218echo "$as_me:$LINENO: checking for suffix of executables" >&5
2219echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2221  (eval $ac_link) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }; then
2225  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2226# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2227# work properly (i.e., refer to `conftest.exe'), while it won't with
2228# `rm'.
2229for ac_file in conftest.exe conftest conftest.*; do
2230  test -f "$ac_file" || continue
2231  case $ac_file in
2232    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2233    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2234          export ac_cv_exeext
2235          break;;
2236    * ) break;;
2237  esac
2238done
2239else
2240  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2241See \`config.log' for more details." >&5
2242echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2243See \`config.log' for more details." >&2;}
2244   { (exit 1); exit 1; }; }
2245fi
2246
2247rm -f conftest$ac_cv_exeext
2248echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2249echo "${ECHO_T}$ac_cv_exeext" >&6
2250
2251rm -f conftest.$ac_ext
2252EXEEXT=$ac_cv_exeext
2253ac_exeext=$EXEEXT
2254echo "$as_me:$LINENO: checking for suffix of object files" >&5
2255echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2256if test "${ac_cv_objext+set}" = set; then
2257  echo $ECHO_N "(cached) $ECHO_C" >&6
2258else
2259  cat >conftest.$ac_ext <<_ACEOF
2260/* confdefs.h.  */
2261_ACEOF
2262cat confdefs.h >>conftest.$ac_ext
2263cat >>conftest.$ac_ext <<_ACEOF
2264/* end confdefs.h.  */
2265
2266int
2267main ()
2268{
2269
2270  ;
2271  return 0;
2272}
2273_ACEOF
2274rm -f conftest.o conftest.obj
2275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276  (eval $ac_compile) 2>&5
2277  ac_status=$?
2278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279  (exit $ac_status); }; then
2280  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2281  case $ac_file in
2282    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2283    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2284       break;;
2285  esac
2286done
2287else
2288  echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2292See \`config.log' for more details." >&5
2293echo "$as_me: error: cannot compute suffix of object files: cannot compile
2294See \`config.log' for more details." >&2;}
2295   { (exit 1); exit 1; }; }
2296fi
2297
2298rm -f conftest.$ac_cv_objext conftest.$ac_ext
2299fi
2300echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2301echo "${ECHO_T}$ac_cv_objext" >&6
2302OBJEXT=$ac_cv_objext
2303ac_objext=$OBJEXT
2304echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2305echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2306if test "${ac_cv_c_compiler_gnu+set}" = set; then
2307  echo $ECHO_N "(cached) $ECHO_C" >&6
2308else
2309  cat >conftest.$ac_ext <<_ACEOF
2310/* confdefs.h.  */
2311_ACEOF
2312cat confdefs.h >>conftest.$ac_ext
2313cat >>conftest.$ac_ext <<_ACEOF
2314/* end confdefs.h.  */
2315
2316int
2317main ()
2318{
2319#ifndef __GNUC__
2320       choke me
2321#endif
2322
2323  ;
2324  return 0;
2325}
2326_ACEOF
2327rm -f conftest.$ac_objext
2328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329  (eval $ac_compile) 2>conftest.er1
2330  ac_status=$?
2331  grep -v '^ *+' conftest.er1 >conftest.err
2332  rm -f conftest.er1
2333  cat conftest.err >&5
2334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335  (exit $ac_status); } &&
2336         { ac_try='test -z "$ac_c_werror_flag"
2337                         || test ! -s conftest.err'
2338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339  (eval $ac_try) 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }; } &&
2343         { ac_try='test -s conftest.$ac_objext'
2344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345  (eval $ac_try) 2>&5
2346  ac_status=$?
2347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348  (exit $ac_status); }; }; then
2349  ac_compiler_gnu=yes
2350else
2351  echo "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354ac_compiler_gnu=no
2355fi
2356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357ac_cv_c_compiler_gnu=$ac_compiler_gnu
2358
2359fi
2360echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2361echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2362GCC=`test $ac_compiler_gnu = yes && echo yes`
2363ac_test_CFLAGS=${CFLAGS+set}
2364ac_save_CFLAGS=$CFLAGS
2365CFLAGS="-g"
2366echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2367echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2368if test "${ac_cv_prog_cc_g+set}" = set; then
2369  echo $ECHO_N "(cached) $ECHO_C" >&6
2370else
2371  cat >conftest.$ac_ext <<_ACEOF
2372/* confdefs.h.  */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h.  */
2377
2378int
2379main ()
2380{
2381
2382  ;
2383  return 0;
2384}
2385_ACEOF
2386rm -f conftest.$ac_objext
2387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388  (eval $ac_compile) 2>conftest.er1
2389  ac_status=$?
2390  grep -v '^ *+' conftest.er1 >conftest.err
2391  rm -f conftest.er1
2392  cat conftest.err >&5
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); } &&
2395         { ac_try='test -z "$ac_c_werror_flag"
2396                         || test ! -s conftest.err'
2397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398  (eval $ac_try) 2>&5
2399  ac_status=$?
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); }; } &&
2402         { ac_try='test -s conftest.$ac_objext'
2403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404  (eval $ac_try) 2>&5
2405  ac_status=$?
2406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407  (exit $ac_status); }; }; then
2408  ac_cv_prog_cc_g=yes
2409else
2410  echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
2412
2413ac_cv_prog_cc_g=no
2414fi
2415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2416fi
2417echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2418echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2419if test "$ac_test_CFLAGS" = set; then
2420  CFLAGS=$ac_save_CFLAGS
2421elif test $ac_cv_prog_cc_g = yes; then
2422  if test "$GCC" = yes; then
2423    CFLAGS="-g -O2"
2424  else
2425    CFLAGS="-g"
2426  fi
2427else
2428  if test "$GCC" = yes; then
2429    CFLAGS="-O2"
2430  else
2431    CFLAGS=
2432  fi
2433fi
2434echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2435echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2436if test "${ac_cv_prog_cc_stdc+set}" = set; then
2437  echo $ECHO_N "(cached) $ECHO_C" >&6
2438else
2439  ac_cv_prog_cc_stdc=no
2440ac_save_CC=$CC
2441cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h.  */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h.  */
2447#include <stdarg.h>
2448#include <stdio.h>
2449#include <sys/types.h>
2450#include <sys/stat.h>
2451/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2452struct buf { int x; };
2453FILE * (*rcsopen) (struct buf *, struct stat *, int);
2454static char *e (p, i)
2455     char **p;
2456     int i;
2457{
2458  return p[i];
2459}
2460static char *f (char * (*g) (char **, int), char **p, ...)
2461{
2462  char *s;
2463  va_list v;
2464  va_start (v,p);
2465  s = g (p, va_arg (v,int));
2466  va_end (v);
2467  return s;
2468}
2469
2470/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2471   function prototypes and stuff, but not '\xHH' hex character constants.
2472   These don't provoke an error unfortunately, instead are silently treated
2473   as 'x'.  The following induces an error, until -std1 is added to get
2474   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2475   array size at least.  It's necessary to write '\x00'==0 to get something
2476   that's true only with -std1.  */
2477int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2478
2479int test (int i, double x);
2480struct s1 {int (*f) (int a);};
2481struct s2 {int (*f) (double a);};
2482int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2483int argc;
2484char **argv;
2485int
2486main ()
2487{
2488return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2489  ;
2490  return 0;
2491}
2492_ACEOF
2493# Don't try gcc -ansi; that turns off useful extensions and
2494# breaks some systems' header files.
2495# AIX                   -qlanglvl=ansi
2496# Ultrix and OSF/1      -std1
2497# HP-UX 10.20 and later -Ae
2498# HP-UX older versions  -Aa -D_HPUX_SOURCE
2499# SVR4                  -Xc -D__EXTENSIONS__
2500for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2501do
2502  CC="$ac_save_CC $ac_arg"
2503  rm -f conftest.$ac_objext
2504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505  (eval $ac_compile) 2>conftest.er1
2506  ac_status=$?
2507  grep -v '^ *+' conftest.er1 >conftest.err
2508  rm -f conftest.er1
2509  cat conftest.err >&5
2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511  (exit $ac_status); } &&
2512         { ac_try='test -z "$ac_c_werror_flag"
2513                         || test ! -s conftest.err'
2514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515  (eval $ac_try) 2>&5
2516  ac_status=$?
2517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518  (exit $ac_status); }; } &&
2519         { ac_try='test -s conftest.$ac_objext'
2520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521  (eval $ac_try) 2>&5
2522  ac_status=$?
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); }; }; then
2525  ac_cv_prog_cc_stdc=$ac_arg
2526break
2527else
2528  echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531fi
2532rm -f conftest.err conftest.$ac_objext
2533done
2534rm -f conftest.$ac_ext conftest.$ac_objext
2535CC=$ac_save_CC
2536
2537fi
2538
2539case "x$ac_cv_prog_cc_stdc" in
2540  x|xno)
2541    echo "$as_me:$LINENO: result: none needed" >&5
2542echo "${ECHO_T}none needed" >&6 ;;
2543  *)
2544    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2545echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2546    CC="$CC $ac_cv_prog_cc_stdc" ;;
2547esac
2548
2549# Some people use a C++ compiler to compile C.  Since we use `exit',
2550# in C++ we need to declare it.  In case someone uses the same compiler
2551# for both compiling C and C++ we need to have the C++ compiler decide
2552# the declaration of exit, since it's the most demanding environment.
2553cat >conftest.$ac_ext <<_ACEOF
2554#ifndef __cplusplus
2555  choke me
2556#endif
2557_ACEOF
2558rm -f conftest.$ac_objext
2559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560  (eval $ac_compile) 2>conftest.er1
2561  ac_status=$?
2562  grep -v '^ *+' conftest.er1 >conftest.err
2563  rm -f conftest.er1
2564  cat conftest.err >&5
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); } &&
2567         { ac_try='test -z "$ac_c_werror_flag"
2568                         || test ! -s conftest.err'
2569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570  (eval $ac_try) 2>&5
2571  ac_status=$?
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); }; } &&
2574         { ac_try='test -s conftest.$ac_objext'
2575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576  (eval $ac_try) 2>&5
2577  ac_status=$?
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); }; }; then
2580  for ac_declaration in \
2581   '' \
2582   'extern "C" void std::exit (int) throw (); using std::exit;' \
2583   'extern "C" void std::exit (int); using std::exit;' \
2584   'extern "C" void exit (int) throw ();' \
2585   'extern "C" void exit (int);' \
2586   'void exit (int);'
2587do
2588  cat >conftest.$ac_ext <<_ACEOF
2589/* confdefs.h.  */
2590_ACEOF
2591cat confdefs.h >>conftest.$ac_ext
2592cat >>conftest.$ac_ext <<_ACEOF
2593/* end confdefs.h.  */
2594$ac_declaration
2595#include <stdlib.h>
2596int
2597main ()
2598{
2599exit (42);
2600  ;
2601  return 0;
2602}
2603_ACEOF
2604rm -f conftest.$ac_objext
2605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606  (eval $ac_compile) 2>conftest.er1
2607  ac_status=$?
2608  grep -v '^ *+' conftest.er1 >conftest.err
2609  rm -f conftest.er1
2610  cat conftest.err >&5
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); } &&
2613         { ac_try='test -z "$ac_c_werror_flag"
2614                         || test ! -s conftest.err'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; } &&
2620         { ac_try='test -s conftest.$ac_objext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  :
2627else
2628  echo "$as_me: failed program was:" >&5
2629sed 's/^/| /' conftest.$ac_ext >&5
2630
2631continue
2632fi
2633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2634  cat >conftest.$ac_ext <<_ACEOF
2635/* confdefs.h.  */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>conftest.$ac_ext <<_ACEOF
2639/* end confdefs.h.  */
2640$ac_declaration
2641int
2642main ()
2643{
2644exit (42);
2645  ;
2646  return 0;
2647}
2648_ACEOF
2649rm -f conftest.$ac_objext
2650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2651  (eval $ac_compile) 2>conftest.er1
2652  ac_status=$?
2653  grep -v '^ *+' conftest.er1 >conftest.err
2654  rm -f conftest.er1
2655  cat conftest.err >&5
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); } &&
2658         { ac_try='test -z "$ac_c_werror_flag"
2659                         || test ! -s conftest.err'
2660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661  (eval $ac_try) 2>&5
2662  ac_status=$?
2663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664  (exit $ac_status); }; } &&
2665         { ac_try='test -s conftest.$ac_objext'
2666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667  (eval $ac_try) 2>&5
2668  ac_status=$?
2669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670  (exit $ac_status); }; }; then
2671  break
2672else
2673  echo "$as_me: failed program was:" >&5
2674sed 's/^/| /' conftest.$ac_ext >&5
2675
2676fi
2677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678done
2679rm -f conftest*
2680if test -n "$ac_declaration"; then
2681  echo '#ifdef __cplusplus' >>confdefs.h
2682  echo $ac_declaration      >>confdefs.h
2683  echo '#endif'             >>confdefs.h
2684fi
2685
2686else
2687  echo "$as_me: failed program was:" >&5
2688sed 's/^/| /' conftest.$ac_ext >&5
2689
2690fi
2691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692ac_ext=c
2693ac_cpp='$CPP $CPPFLAGS'
2694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697
2698if test -z "$CC" ; then
2699  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2700echo "$as_me: error: Failed to find a C compiler!" >&2;}
2701   { (exit 1); exit 1; }; }
2702fi
2703# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2704case "$CC" in
2705  cl* | */cl* | CL* | */CL* )
2706    if test "$ac_cv_prog_cc_g" = yes ; then
2707      ac_cv_prog_cc_g=no
2708      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2709echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2710    fi ;;
2711esac
2712CFLAGS="$save_cflags"
2713
2714# Check if a project specific CFLAGS variable has been set
2715if test x$COIN_PRJCT != x; then
2716  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2717  if test x$coin_tmp = xset; then
2718    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2719  fi
2720fi
2721
2722if test x"$CFLAGS" = x; then
2723
2724  coin_add_cflags=
2725  coin_opt_cflags=
2726  coin_dbg_cflags=
2727  coin_warn_cflags=
2728
2729  if test "$GCC" = "yes"; then
2730    case "$CC" in
2731      icc* | */icc*)
2732        ;;
2733      *)
2734        coin_opt_cflags="-O3"
2735        coin_add_cflags="-pipe"
2736        coin_dbg_cflags="-g"
2737        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2738        case $build in
2739          *-darwin*)
2740            ;;
2741          *)
2742            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2743            ;;
2744        esac
2745        case $enable_doscompile in
2746          mingw)
2747            CFLAGS="-mno-cygwin"
2748            cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h.  */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h.  */
2754
2755int
2756main ()
2757{
2758int i=0; i++;
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext conftest$ac_exeext
2764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2765  (eval $ac_link) 2>conftest.er1
2766  ac_status=$?
2767  grep -v '^ *+' conftest.er1 >conftest.err
2768  rm -f conftest.er1
2769  cat conftest.err >&5
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); } &&
2772         { ac_try='test -z "$ac_c_werror_flag"
2773                         || test ! -s conftest.err'
2774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775  (eval $ac_try) 2>&5
2776  ac_status=$?
2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); }; } &&
2779         { ac_try='test -s conftest$ac_exeext'
2780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781  (eval $ac_try) 2>&5
2782  ac_status=$?
2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); }; }; then
2785  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2786else
2787  echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790fi
2791rm -f conftest.err conftest.$ac_objext \
2792      conftest$ac_exeext conftest.$ac_ext
2793            CFLAGS=
2794          ;;
2795        esac
2796    esac
2797  fi
2798  if test -z "$coin_opt_cflags"; then
2799    case $build in
2800      *-cygwin* | *-mingw*)
2801        case "$CC" in
2802          cl* | */cl* | CL* | */CL*)
2803            coin_opt_cflags='-MT -O2'
2804            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2805            coin_dbg_cflags='-MTd'
2806            ;;
2807          icl* | */icl* | ICL* | */ICL*)
2808            coin_opt_cflags='-MT -Ox'
2809            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2810            coin_dbg_cflags='-MTd -debug'
2811            ;;
2812        esac
2813        ;;
2814      *-linux-*)
2815        case "$CC" in
2816          icc* | */icc*)
2817            coin_opt_cflags="-O3 -ip -mp1"
2818            coin_add_cflags=""
2819            coin_dbg_cflags="-g"
2820            # Check if -i_dynamic is necessary (for new glibc library)
2821            CFLAGS=
2822            cat >conftest.$ac_ext <<_ACEOF
2823/* confdefs.h.  */
2824_ACEOF
2825cat confdefs.h >>conftest.$ac_ext
2826cat >>conftest.$ac_ext <<_ACEOF
2827/* end confdefs.h.  */
2828
2829int
2830main ()
2831{
2832int i=0; i++;
2833  ;
2834  return 0;
2835}
2836_ACEOF
2837rm -f conftest.$ac_objext conftest$ac_exeext
2838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2839  (eval $ac_link) 2>conftest.er1
2840  ac_status=$?
2841  grep -v '^ *+' conftest.er1 >conftest.err
2842  rm -f conftest.er1
2843  cat conftest.err >&5
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); } &&
2846         { ac_try='test -z "$ac_c_werror_flag"
2847                         || test ! -s conftest.err'
2848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849  (eval $ac_try) 2>&5
2850  ac_status=$?
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); }; } &&
2853         { ac_try='test -s conftest$ac_exeext'
2854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855  (eval $ac_try) 2>&5
2856  ac_status=$?
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); }; }; then
2859  :
2860else
2861  echo "$as_me: failed program was:" >&5
2862sed 's/^/| /' conftest.$ac_ext >&5
2863
2864coin_add_cflags="-i_dynamic $coin_add_cflags"
2865fi
2866rm -f conftest.err conftest.$ac_objext \
2867      conftest$ac_exeext conftest.$ac_ext
2868            ;;
2869          pgcc* | */pgcc*)
2870            coin_opt_cflags="-fast"
2871            coin_add_cflags="-Kieee -pc 64"
2872            coin_dbg_cflags="-g"
2873            ;;
2874        esac
2875        ;;
2876      *-ibm-*)
2877        case "$CC" in
2878          xlc* | */xlc* | mpxlc* | */mpxlc*)
2879            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2880            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2881            coin_dbg_cflags="-g"
2882          ;;
2883        esac
2884        ;;
2885      *-hp-*)
2886        coin_opt_cflags="-O"
2887        coin_add_cflags="-Ae"
2888        coin_dbg_cflags="-g"
2889        ;;
2890      *-*-solaris*)
2891        coin_opt_cflags="-xO4"
2892        coin_dbg_cflags="-g"
2893        ;;
2894      *-sgi-*)
2895        coin_opt_cflags="-O -OPT:Olimit=0"
2896        coin_dbg_cflags="-g"
2897        ;;
2898    esac
2899  fi
2900
2901  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2902    coin_dbg_cflags="-g"
2903  fi
2904
2905  if test -z "$coin_opt_cflags"; then
2906    # Try if -O option works if nothing else is set
2907    CFLAGS="-O"
2908    cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h.  */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h.  */
2914
2915int
2916main ()
2917{
2918int i=0; i++;
2919  ;
2920  return 0;
2921}
2922_ACEOF
2923rm -f conftest.$ac_objext conftest$ac_exeext
2924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2925  (eval $ac_link) 2>conftest.er1
2926  ac_status=$?
2927  grep -v '^ *+' conftest.er1 >conftest.err
2928  rm -f conftest.er1
2929  cat conftest.err >&5
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); } &&
2932         { ac_try='test -z "$ac_c_werror_flag"
2933                         || test ! -s conftest.err'
2934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935  (eval $ac_try) 2>&5
2936  ac_status=$?
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); }; } &&
2939         { ac_try='test -s conftest$ac_exeext'
2940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941  (eval $ac_try) 2>&5
2942  ac_status=$?
2943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); }; }; then
2945  coin_opt_cflags="-O"
2946else
2947  echo "$as_me: failed program was:" >&5
2948sed 's/^/| /' conftest.$ac_ext >&5
2949
2950fi
2951rm -f conftest.err conftest.$ac_objext \
2952      conftest$ac_exeext conftest.$ac_ext
2953  fi
2954
2955  # if PM doesn't want the warning messages, take them out
2956  if test x"$coin_skip_warn_cflags" = xyes; then
2957    coin_warn_cflags=
2958  fi
2959
2960  if test x${DBG_CFLAGS+set} != xset; then
2961    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2962  fi
2963  if test x${OPT_CFLAGS+set} != xset; then
2964    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2965  fi
2966
2967  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2968  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2969
2970  if test "$coin_debug_compile" = "true"; then
2971    CFLAGS="$DBG_CFLAGS"
2972  else
2973    CFLAGS="$OPT_CFLAGS"
2974  fi
2975else
2976  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2977  if test x${DBG_CFLAGS+set} != xset; then
2978    DBG_CFLAGS="$CFLAGS"
2979  fi
2980  if test x${OPT_CFLAGS+set} != xset; then
2981    OPT_CFLAGS="$CFLAGS"
2982  fi
2983fi
2984
2985# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2986
2987case "$CFLAGS" in
2988  *-mno-cygwin*)
2989    if test x${CPPFLAGS+set} != xset ; then
2990      CPPFLAGS="-mno-cygwin"
2991    else
2992      case "$CPPFLAGS" in
2993        *-mno-cygwin*)
2994          ;;
2995        *)
2996          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2997          ;;
2998      esac
2999    fi ;;
3000esac
3001
3002# Try if CFLAGS works
3003save_CFLAGS="$CFLAGS"
3004cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h.  */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h.  */
3010
3011int
3012main ()
3013{
3014int i=0; i++;
3015  ;
3016  return 0;
3017}
3018_ACEOF
3019rm -f conftest.$ac_objext conftest$ac_exeext
3020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3021  (eval $ac_link) 2>conftest.er1
3022  ac_status=$?
3023  grep -v '^ *+' conftest.er1 >conftest.err
3024  rm -f conftest.er1
3025  cat conftest.err >&5
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); } &&
3028         { ac_try='test -z "$ac_c_werror_flag"
3029                         || test ! -s conftest.err'
3030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031  (eval $ac_try) 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; } &&
3035         { ac_try='test -s conftest$ac_exeext'
3036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037  (eval $ac_try) 2>&5
3038  ac_status=$?
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); }; }; then
3041  :
3042else
3043  echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046CFLAGS=
3047fi
3048rm -f conftest.err conftest.$ac_objext \
3049      conftest$ac_exeext conftest.$ac_ext
3050if test -z "$CFLAGS"; then
3051  { 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
3052echo "$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;}
3053  CFLAGS='-O'
3054  cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h.  */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h.  */
3060
3061int
3062main ()
3063{
3064int i=0; i++;
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext conftest$ac_exeext
3070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071  (eval $ac_link) 2>conftest.er1
3072  ac_status=$?
3073  grep -v '^ *+' conftest.er1 >conftest.err
3074  rm -f conftest.er1
3075  cat conftest.err >&5
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); } &&
3078         { ac_try='test -z "$ac_c_werror_flag"
3079                         || test ! -s conftest.err'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; } &&
3085         { ac_try='test -s conftest$ac_exeext'
3086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087  (eval $ac_try) 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; }; then
3091  :
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096CFLAGS=
3097fi
3098rm -f conftest.err conftest.$ac_objext \
3099      conftest$ac_exeext conftest.$ac_ext
3100  if test -z "$CFLAGS"; then
3101    { 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
3102echo "$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;}
3103  fi
3104fi
3105
3106{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3107echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3108
3109
3110if test x"$MPICC" = x; then :; else
3111  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3112echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3113  CC="$MPICC"
3114fi
3115
3116# Correct the LD variable if we are using the MS or Intel-windows compiler
3117case "$CC" in
3118  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3119    case $build in
3120  *-mingw*)
3121    if test "${LD+set}" = set; then :; else
3122      LD=link
3123    fi
3124    ;;
3125 esac
3126 case $enable_doscompile in
3127   msvc)
3128     if test "x${LD+set}" = xset; then :; else
3129       LD=link
3130     fi
3131     ;;
3132 esac
3133
3134    ;;
3135esac
3136
3137ac_ext=c
3138ac_cpp='$CPP $CPPFLAGS'
3139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143
3144
3145# Get the name of the C++ compiler and appropriate compiler options
3146
3147 #Let's try if that overcomes configuration problem with VC++ 6.0
3148
3149ac_ext=cc
3150ac_cpp='$CXXCPP $CPPFLAGS'
3151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3154
3155
3156
3157
3158
3159
3160
3161coin_has_cxx=yes
3162
3163save_cxxflags="$CXXFLAGS"
3164# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3165case $build in
3166  *-cygwin* | *-mingw*)
3167             if test "$enable_doscompile" = msvc ; then
3168               comps="icl cl"
3169             else
3170               comps="g++ cl"
3171             fi ;;
3172  *-*-solaris*)
3173             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3174  *-darwin*) comps="g++ c++ CC" ;;
3175  *-linux-gnu*)
3176             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3177          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3178esac
3179
3180# We delete the cached value, since the test might not have been
3181# performed with our choice of compilers earlier
3182$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3183# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3184ac_ext=cc
3185ac_cpp='$CXXCPP $CPPFLAGS'
3186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3189if test -n "$ac_tool_prefix"; then
3190  for ac_prog in $CCC $comps
3191  do
3192    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3194echo "$as_me:$LINENO: checking for $ac_word" >&5
3195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196if test "${ac_cv_prog_CXX+set}" = set; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  if test -n "$CXX"; then
3200  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205  IFS=$as_save_IFS
3206  test -z "$as_dir" && as_dir=.
3207  for ac_exec_ext in '' $ac_executable_extensions; do
3208  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214done
3215
3216fi
3217fi
3218CXX=$ac_cv_prog_CXX
3219if test -n "$CXX"; then
3220  echo "$as_me:$LINENO: result: $CXX" >&5
3221echo "${ECHO_T}$CXX" >&6
3222else
3223  echo "$as_me:$LINENO: result: no" >&5
3224echo "${ECHO_T}no" >&6
3225fi
3226
3227    test -n "$CXX" && break
3228  done
3229fi
3230if test -z "$CXX"; then
3231  ac_ct_CXX=$CXX
3232  for ac_prog in $CCC $comps
3233do
3234  # Extract the first word of "$ac_prog", so it can be a program name with args.
3235set dummy $ac_prog; ac_word=$2
3236echo "$as_me:$LINENO: checking for $ac_word" >&5
3237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3239  echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241  if test -n "$ac_ct_CXX"; then
3242  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3243else
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247  IFS=$as_save_IFS
3248  test -z "$as_dir" && as_dir=.
3249  for ac_exec_ext in '' $ac_executable_extensions; do
3250  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251    ac_cv_prog_ac_ct_CXX="$ac_prog"
3252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253    break 2
3254  fi
3255done
3256done
3257
3258fi
3259fi
3260ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3261if test -n "$ac_ct_CXX"; then
3262  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3263echo "${ECHO_T}$ac_ct_CXX" >&6
3264else
3265  echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
3267fi
3268
3269  test -n "$ac_ct_CXX" && break
3270done
3271test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3272
3273  CXX=$ac_ct_CXX
3274fi
3275
3276
3277# Provide some information about the compiler.
3278echo "$as_me:$LINENO:" \
3279     "checking for C++ compiler version" >&5
3280ac_compiler=`set X $ac_compile; echo $2`
3281{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3282  (eval $ac_compiler --version </dev/null >&5) 2>&5
3283  ac_status=$?
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); }
3286{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3287  (eval $ac_compiler -v </dev/null >&5) 2>&5
3288  ac_status=$?
3289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290  (exit $ac_status); }
3291{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3292  (eval $ac_compiler -V </dev/null >&5) 2>&5
3293  ac_status=$?
3294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295  (exit $ac_status); }
3296
3297echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3298echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3299if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3300  echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302  cat >conftest.$ac_ext <<_ACEOF
3303/* confdefs.h.  */
3304_ACEOF
3305cat confdefs.h >>conftest.$ac_ext
3306cat >>conftest.$ac_ext <<_ACEOF
3307/* end confdefs.h.  */
3308
3309int
3310main ()
3311{
3312#ifndef __GNUC__
3313       choke me
3314#endif
3315
3316  ;
3317  return 0;
3318}
3319_ACEOF
3320rm -f conftest.$ac_objext
3321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322  (eval $ac_compile) 2>conftest.er1
3323  ac_status=$?
3324  grep -v '^ *+' conftest.er1 >conftest.err
3325  rm -f conftest.er1
3326  cat conftest.err >&5
3327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328  (exit $ac_status); } &&
3329         { ac_try='test -z "$ac_cxx_werror_flag"
3330                         || test ! -s conftest.err'
3331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332  (eval $ac_try) 2>&5
3333  ac_status=$?
3334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); }; } &&
3336         { ac_try='test -s conftest.$ac_objext'
3337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338  (eval $ac_try) 2>&5
3339  ac_status=$?
3340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); }; }; then
3342  ac_compiler_gnu=yes
3343else
3344  echo "$as_me: failed program was:" >&5
3345sed 's/^/| /' conftest.$ac_ext >&5
3346
3347ac_compiler_gnu=no
3348fi
3349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3350ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3351
3352fi
3353echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3354echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3355GXX=`test $ac_compiler_gnu = yes && echo yes`
3356ac_test_CXXFLAGS=${CXXFLAGS+set}
3357ac_save_CXXFLAGS=$CXXFLAGS
3358CXXFLAGS="-g"
3359echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3360echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3361if test "${ac_cv_prog_cxx_g+set}" = set; then
3362  echo $ECHO_N "(cached) $ECHO_C" >&6
3363else
3364  cat >conftest.$ac_ext <<_ACEOF
3365/* confdefs.h.  */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h.  */
3370
3371int
3372main ()
3373{
3374
3375  ;
3376  return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext
3380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381  (eval $ac_compile) 2>conftest.er1
3382  ac_status=$?
3383  grep -v '^ *+' conftest.er1 >conftest.err
3384  rm -f conftest.er1
3385  cat conftest.err >&5
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); } &&
3388         { ac_try='test -z "$ac_cxx_werror_flag"
3389                         || test ! -s conftest.err'
3390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391  (eval $ac_try) 2>&5
3392  ac_status=$?
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); }; } &&
3395         { ac_try='test -s conftest.$ac_objext'
3396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397  (eval $ac_try) 2>&5
3398  ac_status=$?
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }; }; then
3401  ac_cv_prog_cxx_g=yes
3402else
3403  echo "$as_me: failed program was:" >&5
3404sed 's/^/| /' conftest.$ac_ext >&5
3405
3406ac_cv_prog_cxx_g=no
3407fi
3408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409fi
3410echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3411echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3412if test "$ac_test_CXXFLAGS" = set; then
3413  CXXFLAGS=$ac_save_CXXFLAGS
3414elif test $ac_cv_prog_cxx_g = yes; then
3415  if test "$GXX" = yes; then
3416    CXXFLAGS="-g -O2"
3417  else
3418    CXXFLAGS="-g"
3419  fi
3420else
3421  if test "$GXX" = yes; then
3422    CXXFLAGS="-O2"
3423  else
3424    CXXFLAGS=
3425  fi
3426fi
3427for ac_declaration in \
3428   '' \
3429   'extern "C" void std::exit (int) throw (); using std::exit;' \
3430   'extern "C" void std::exit (int); using std::exit;' \
3431   'extern "C" void exit (int) throw ();' \
3432   'extern "C" void exit (int);' \
3433   'void exit (int);'
3434do
3435  cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h.  */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h.  */
3441$ac_declaration
3442#include <stdlib.h>
3443int
3444main ()
3445{
3446exit (42);
3447  ;
3448  return 0;
3449}
3450_ACEOF
3451rm -f conftest.$ac_objext
3452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453  (eval $ac_compile) 2>conftest.er1
3454  ac_status=$?
3455  grep -v '^ *+' conftest.er1 >conftest.err
3456  rm -f conftest.er1
3457  cat conftest.err >&5
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); } &&
3460         { ac_try='test -z "$ac_cxx_werror_flag"
3461                         || test ! -s conftest.err'
3462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463  (eval $ac_try) 2>&5
3464  ac_status=$?
3465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); }; } &&
3467         { ac_try='test -s conftest.$ac_objext'
3468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469  (eval $ac_try) 2>&5
3470  ac_status=$?
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); }; }; then
3473  :
3474else
3475  echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478continue
3479fi
3480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3481  cat >conftest.$ac_ext <<_ACEOF
3482/* confdefs.h.  */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
3486/* end confdefs.h.  */
3487$ac_declaration
3488int
3489main ()
3490{
3491exit (42);
3492  ;
3493  return 0;
3494}
3495_ACEOF
3496rm -f conftest.$ac_objext
3497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498  (eval $ac_compile) 2>conftest.er1
3499  ac_status=$?
3500  grep -v '^ *+' conftest.er1 >conftest.err
3501  rm -f conftest.er1
3502  cat conftest.err >&5
3503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504  (exit $ac_status); } &&
3505         { ac_try='test -z "$ac_cxx_werror_flag"
3506                         || test ! -s conftest.err'
3507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508  (eval $ac_try) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; } &&
3512         { ac_try='test -s conftest.$ac_objext'
3513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514  (eval $ac_try) 2>&5
3515  ac_status=$?
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); }; }; then
3518  break
3519else
3520  echo "$as_me: failed program was:" >&5
3521sed 's/^/| /' conftest.$ac_ext >&5
3522
3523fi
3524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3525done
3526rm -f conftest*
3527if test -n "$ac_declaration"; then
3528  echo '#ifdef __cplusplus' >>confdefs.h
3529  echo $ac_declaration      >>confdefs.h
3530  echo '#endif'             >>confdefs.h
3531fi
3532
3533ac_ext=cc
3534ac_cpp='$CXXCPP $CPPFLAGS'
3535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3538
3539
3540#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3541#thus, we test here whether $CXX is actually working
3542ac_ext=cc
3543ac_cpp='$CXXCPP $CPPFLAGS'
3544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3547
3548echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3549echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3550cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h.  */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h.  */
3556
3557int
3558main ()
3559{
3560int i=0;
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565rm -f conftest.$ac_objext
3566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3567  (eval $ac_compile) 2>conftest.er1
3568  ac_status=$?
3569  grep -v '^ *+' conftest.er1 >conftest.err
3570  rm -f conftest.er1
3571  cat conftest.err >&5
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); } &&
3574         { ac_try='test -z "$ac_cxx_werror_flag"
3575                         || test ! -s conftest.err'
3576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577  (eval $ac_try) 2>&5
3578  ac_status=$?
3579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); }; } &&
3581         { ac_try='test -s conftest.$ac_objext'
3582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583  (eval $ac_try) 2>&5
3584  ac_status=$?
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); }; }; then
3587  echo "$as_me:$LINENO: result: yes" >&5
3588echo "${ECHO_T}yes" >&6
3589else
3590  echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593echo "$as_me:$LINENO: result: no" >&5
3594echo "${ECHO_T}no" >&6
3595   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3596echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3597   { (exit 1); exit 1; }; }
3598
3599fi
3600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3601ac_ext=cc
3602ac_cpp='$CXXCPP $CPPFLAGS'
3603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3606
3607
3608coin_cxx_is_cl=false
3609# It seems that we need to cleanup something here for the Windows
3610case "$CXX" in
3611  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3612    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3613    mv confdefs.hh confdefs.h
3614    coin_cxx_is_cl=true
3615    ;;
3616esac
3617
3618# add automake conditional so we can recognize cl compiler in makefile
3619
3620
3621if test $coin_cxx_is_cl = true; then
3622  COIN_CXX_IS_CL_TRUE=
3623  COIN_CXX_IS_CL_FALSE='#'
3624else
3625  COIN_CXX_IS_CL_TRUE='#'
3626  COIN_CXX_IS_CL_FALSE=
3627fi
3628
3629
3630# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3631case "$CXX" in
3632  cl* | */cl* | CL* | */CL* )
3633    if test "$ac_cv_prog_cxx_g" = yes ; then
3634      ac_cv_prog_cxx_g=no
3635      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3636echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3637    fi ;;
3638esac
3639CXXFLAGS="$save_cxxflags"
3640
3641# Check if a project specific CXXFLAGS variable has been set
3642if test x$COIN_PRJCT != x; then
3643  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3644  if test x$coin_tmp = xset; then
3645    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3646  fi
3647fi
3648
3649if test x"$CXXFLAGS" = x; then
3650
3651# ToDo decide whether we want -DNDEBUG for optimization
3652  coin_add_cxxflags=
3653  coin_opt_cxxflags=
3654  coin_dbg_cxxflags=
3655  coin_warn_cxxflags=
3656
3657  if test "$GXX" = "yes"; then
3658    case "$CXX" in
3659      icpc* | */icpc*)
3660        ;;
3661      *)
3662# ToDo decide about unroll-loops
3663        coin_opt_cxxflags="-O3"
3664        coin_add_cxxflags="-pipe"
3665        coin_dbg_cxxflags="-g"
3666        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3667        case $build in
3668          *-darwin*)
3669            ;;
3670          *)
3671            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3672            ;;
3673        esac
3674
3675        case $enable_doscompile in
3676          mingw)
3677            CXXFLAGS="-mno-cygwin"
3678            cat >conftest.$ac_ext <<_ACEOF
3679/* confdefs.h.  */
3680_ACEOF
3681cat confdefs.h >>conftest.$ac_ext
3682cat >>conftest.$ac_ext <<_ACEOF
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688int i=0; i++;
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693rm -f conftest.$ac_objext conftest$ac_exeext
3694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3695  (eval $ac_link) 2>conftest.er1
3696  ac_status=$?
3697  grep -v '^ *+' conftest.er1 >conftest.err
3698  rm -f conftest.er1
3699  cat conftest.err >&5
3700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701  (exit $ac_status); } &&
3702         { ac_try='test -z "$ac_cxx_werror_flag"
3703                         || test ! -s conftest.err'
3704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705  (eval $ac_try) 2>&5
3706  ac_status=$?
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); }; } &&
3709         { ac_try='test -s conftest$ac_exeext'
3710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711  (eval $ac_try) 2>&5
3712  ac_status=$?
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); }; }; then
3715  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3716else
3717  echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720fi
3721rm -f conftest.err conftest.$ac_objext \
3722      conftest$ac_exeext conftest.$ac_ext
3723            CXXFLAGS=
3724          ;;
3725        esac
3726    esac
3727  fi
3728
3729# Note that we do not need to cover GCC in the following tests.
3730
3731  if test -z "$coin_opt_cxxflags"; then
3732    case $build in
3733      *-cygwin* | *-mingw*)
3734        case "$CXX" in
3735          cl* | */cl* | CL* | */CL*)
3736            # The MT and MTd options are mutually exclusive
3737            coin_opt_cxxflags='-MT -O2'
3738            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3739            coin_dbg_cxxflags='-MTd'
3740            ;;
3741          icl* | */icl* | ICL* | */ICL*)
3742            # The MT and MTd options are mutually exclusive
3743            coin_opt_cxxflags='-MT -Ox'
3744            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3745            coin_dbg_cxxflags='-MTd -debug'
3746            ;;
3747        esac
3748        ;;
3749      *-linux-*)
3750        case "$CXX" in
3751          icpc* | */icpc*)
3752            coin_opt_cxxflags="-O3 -ip -mp1"
3753            coin_add_cxxflags=""
3754            coin_dbg_cxxflags="-g"
3755            # Check if -i_dynamic is necessary (for new glibc library)
3756            CXXFLAGS=
3757            cat >conftest.$ac_ext <<_ACEOF
3758/* confdefs.h.  */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h.  */
3763
3764int
3765main ()
3766{
3767int i=0; i++;
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772rm -f conftest.$ac_objext conftest$ac_exeext
3773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3774  (eval $ac_link) 2>conftest.er1
3775  ac_status=$?
3776  grep -v '^ *+' conftest.er1 >conftest.err
3777  rm -f conftest.er1
3778  cat conftest.err >&5
3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780  (exit $ac_status); } &&
3781         { ac_try='test -z "$ac_cxx_werror_flag"
3782                         || test ! -s conftest.err'
3783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784  (eval $ac_try) 2>&5
3785  ac_status=$?
3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787  (exit $ac_status); }; } &&
3788         { ac_try='test -s conftest$ac_exeext'
3789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790  (eval $ac_try) 2>&5
3791  ac_status=$?
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); }; }; then
3794  :
3795else
3796  echo "$as_me: failed program was:" >&5
3797sed 's/^/| /' conftest.$ac_ext >&5
3798
3799coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3800fi
3801rm -f conftest.err conftest.$ac_objext \
3802      conftest$ac_exeext conftest.$ac_ext
3803            ;;
3804          pgCC* | */pgCC*)
3805            coin_opt_cxxflags="-fast"
3806            coin_add_cxxflags="-Kieee -pc 64"
3807            coin_dbg_cxxflags="-g"
3808            ;;
3809        esac
3810        ;;
3811      *-ibm-*)
3812        case "$CXX" in
3813          xlC* | */xlC* | mpxlC* | */mpxlC*)
3814            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3815            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3816            coin_dbg_cxxflags="-g"
3817            ;;
3818        esac
3819        ;;
3820      *-hp-*)
3821        case "$CXX" in
3822          aCC* | */aCC* )
3823            coin_opt_cxxflags="-O"
3824            coin_add_cxxflags="-AA"
3825            coin_dbg_cxxflags="-g"
3826            ;;
3827        esac
3828        ;;
3829      *-*-solaris*)
3830          coin_opt_cxxflags="-O4"
3831          coin_dbg_cxxflags="-g"
3832        ;;
3833    esac
3834  fi
3835
3836# Generic flag settings. If these don't work, add a case above.
3837
3838  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3839    coin_dbg_cxxflags="-g"
3840  fi
3841
3842  if test -z "$coin_opt_cxxflags"; then
3843    # Try if -O option works if nothing else is set
3844    CXXFLAGS=-O
3845    cat >conftest.$ac_ext <<_ACEOF
3846/* confdefs.h.  */
3847_ACEOF
3848cat confdefs.h >>conftest.$ac_ext
3849cat >>conftest.$ac_ext <<_ACEOF
3850/* end confdefs.h.  */
3851
3852int
3853main ()
3854{
3855int i=0; i++;
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860rm -f conftest.$ac_objext conftest$ac_exeext
3861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3862  (eval $ac_link) 2>conftest.er1
3863  ac_status=$?
3864  grep -v '^ *+' conftest.er1 >conftest.err
3865  rm -f conftest.er1
3866  cat conftest.err >&5
3867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868  (exit $ac_status); } &&
3869         { ac_try='test -z "$ac_cxx_werror_flag"
3870                         || test ! -s conftest.err'
3871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872  (eval $ac_try) 2>&5
3873  ac_status=$?
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); }; } &&
3876         { ac_try='test -s conftest$ac_exeext'
3877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878  (eval $ac_try) 2>&5
3879  ac_status=$?
3880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881  (exit $ac_status); }; }; then
3882  coin_opt_cxxflags="-O"
3883else
3884  echo "$as_me: failed program was:" >&5
3885sed 's/^/| /' conftest.$ac_ext >&5
3886
3887fi
3888rm -f conftest.err conftest.$ac_objext \
3889      conftest$ac_exeext conftest.$ac_ext
3890  fi
3891
3892  # if PM doesn't want the warning messages, take them out
3893  if test x"$coin_skip_warn_cxxflags" = xyes; then
3894    coin_warn_cxxflags=
3895  fi
3896
3897# Do final setup of flags based on values determined above.
3898
3899  if test x${DBG_CXXFLAGS+set} != xset; then
3900    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3901  fi
3902  if test x${OPT_CXXFLAGS+set} != xset; then
3903    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3904  fi
3905
3906  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3907  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3908
3909  if test "$coin_debug_compile" = "true"; then
3910    CXXFLAGS="$DBG_CXXFLAGS"
3911  else
3912    CXXFLAGS="$OPT_CXXFLAGS"
3913  fi
3914
3915# Handle the case where CXXFLAGS was set externally.
3916else
3917  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3918  if test x${DBG_CXXFLAGS+set} != xset; then
3919    DBG_CXXFLAGS="$CXXFLAGS"
3920  fi
3921  if test x${OPT_CXXFLAGS+set} != xset; then
3922    OPT_CXXFLAGS="$CXXFLAGS"
3923  fi
3924fi
3925
3926# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3927
3928case "$CXXFLAGS" in
3929  *-mno-cygwin*)
3930    if test x${CPPFLAGS+set} != xset ; then
3931      CPPFLAGS="-mno-cygwin"
3932    else
3933      case "$CPPFLAGS" in
3934        *-mno-cygwin*)
3935          ;;
3936        *)
3937          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3938          ;;
3939      esac
3940    fi ;;
3941esac
3942
3943# Try if CXXFLAGS works
3944save_CXXFLAGS="$CXXFLAGS"
3945cat >conftest.$ac_ext <<_ACEOF
3946/* confdefs.h.  */
3947_ACEOF
3948cat confdefs.h >>conftest.$ac_ext
3949cat >>conftest.$ac_ext <<_ACEOF
3950/* end confdefs.h.  */
3951
3952int
3953main ()
3954{
3955int i=0; i++;
3956  ;
3957  return 0;
3958}
3959_ACEOF
3960rm -f conftest.$ac_objext conftest$ac_exeext
3961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3962  (eval $ac_link) 2>conftest.er1
3963  ac_status=$?
3964  grep -v '^ *+' conftest.er1 >conftest.err
3965  rm -f conftest.er1
3966  cat conftest.err >&5
3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968  (exit $ac_status); } &&
3969         { ac_try='test -z "$ac_cxx_werror_flag"
3970                         || test ! -s conftest.err'
3971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972  (eval $ac_try) 2>&5
3973  ac_status=$?
3974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975  (exit $ac_status); }; } &&
3976         { ac_try='test -s conftest$ac_exeext'
3977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978  (eval $ac_try) 2>&5
3979  ac_status=$?
3980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981  (exit $ac_status); }; }; then
3982  :
3983else
3984  echo "$as_me: failed program was:" >&5
3985sed 's/^/| /' conftest.$ac_ext >&5
3986
3987CXXFLAGS=
3988fi
3989rm -f conftest.err conftest.$ac_objext \
3990      conftest$ac_exeext conftest.$ac_ext
3991if test -z "$CXXFLAGS"; then
3992  { 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
3993echo "$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;}
3994  CXXFLAGS='-O'
3995  cat >conftest.$ac_ext <<_ACEOF
3996/* confdefs.h.  */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h.  */
4001
4002int
4003main ()
4004{
4005int i=0; i++;
4006  ;
4007  return 0;
4008}
4009_ACEOF
4010rm -f conftest.$ac_objext conftest$ac_exeext
4011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012  (eval $ac_link) 2>conftest.er1
4013  ac_status=$?
4014  grep -v '^ *+' conftest.er1 >conftest.err
4015  rm -f conftest.er1
4016  cat conftest.err >&5
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); } &&
4019         { ac_try='test -z "$ac_cxx_werror_flag"
4020                         || test ! -s conftest.err'
4021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022  (eval $ac_try) 2>&5
4023  ac_status=$?
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); }; } &&
4026         { ac_try='test -s conftest$ac_exeext'
4027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028  (eval $ac_try) 2>&5
4029  ac_status=$?
4030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031  (exit $ac_status); }; }; then
4032  :
4033else
4034  echo "$as_me: failed program was:" >&5
4035sed 's/^/| /' conftest.$ac_ext >&5
4036
4037CXXFLAGS=
4038fi
4039rm -f conftest.err conftest.$ac_objext \
4040      conftest$ac_exeext conftest.$ac_ext
4041  if test -z "$CXXFLAGS"; then
4042    { 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
4043echo "$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;}
4044  fi
4045fi
4046
4047{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4048echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4049
4050
4051if test x"$MPICXX" = x; then :; else
4052  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4053echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4054  CXX="$MPICXX"
4055fi
4056
4057# correct the LD variable in a mingw build with MS or intel compiler
4058case "$CXX" in
4059  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4060    case $build in
4061  *-mingw*)
4062    if test "${LD+set}" = set; then :; else
4063      LD=link
4064    fi
4065    ;;
4066 esac
4067 case $enable_doscompile in
4068   msvc)
4069     if test "x${LD+set}" = xset; then :; else
4070       LD=link
4071     fi
4072     ;;
4073 esac
4074
4075    ;;
4076esac
4077
4078ac_ext=c
4079ac_cpp='$CPP $CPPFLAGS'
4080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083
4084
4085
4086# Get the name of the Fortran compiler and appropriate compiler options
4087case $build in
4088  *-cygwin* | *-mingw*)
4089     if test "$enable_doscompile" = msvc ; then
4090       coin_f77_comps="ifort fl32 compile_f2c"
4091     else
4092       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
4093     fi ;;
4094  *-*-solaris*)
4095     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4096  *-linux-gnu*)
4097     coin_f77_comps="gfortran fort77 f77 g77 pgf90 pgf77 ifort ifc frt af77 xlf_r" ;;
4098  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
4099 esac
4100
4101
4102
4103
4104
4105
4106ac_ext=f
4107ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4108ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4110
4111
4112
4113
4114
4115
4116coin_has_f77=yes
4117
4118save_fflags="$FFLAGS"
4119
4120# We delete the cached value, since the test might not have been
4121# performed with our choice of compilers earlier
4122$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4123
4124# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4125# coin_f77_comps to see if there's a program that matches one of the names.
4126# If there's no such program, F77 = unavailable. If we match the name,
4127# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4128# compiler.
4129# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4130
4131
4132{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4133echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4134for ac_prog in $coin_f77_comps
4135do
4136  # Extract the first word of "$ac_prog", so it can be a program name with args.
4137set dummy $ac_prog; ac_word=$2
4138echo "$as_me:$LINENO: checking for $ac_word" >&5
4139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4140if test "${ac_cv_prog_F77+set}" = set; then
4141  echo $ECHO_N "(cached) $ECHO_C" >&6
4142else
4143  if test -n "$F77"; then
4144  ac_cv_prog_F77="$F77" # Let the user override the test.
4145else
4146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147for as_dir in $PATH
4148do
4149  IFS=$as_save_IFS
4150  test -z "$as_dir" && as_dir=.
4151  for ac_exec_ext in '' $ac_executable_extensions; do
4152  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153    ac_cv_prog_F77="$ac_prog"
4154    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155    break 2
4156  fi
4157done
4158done
4159
4160fi
4161fi
4162F77=$ac_cv_prog_F77
4163if test -n "$F77"; then
4164  echo "$as_me:$LINENO: result: $F77" >&5
4165echo "${ECHO_T}$F77" >&6
4166else
4167  echo "$as_me:$LINENO: result: no" >&5
4168echo "${ECHO_T}no" >&6
4169fi
4170
4171  test -n "$F77" && break
4172done
4173test -n "$F77" || F77="unavailable"
4174
4175
4176if test "$F77" != "unavailable" ; then
4177  ac_ext=f
4178ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4179ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4181if test -n "$ac_tool_prefix"; then
4182  for ac_prog in $coin_f77_comps
4183  do
4184    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4185set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4186echo "$as_me:$LINENO: checking for $ac_word" >&5
4187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188if test "${ac_cv_prog_F77+set}" = set; then
4189  echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191  if test -n "$F77"; then
4192  ac_cv_prog_F77="$F77" # Let the user override the test.
4193else
4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197  IFS=$as_save_IFS
4198  test -z "$as_dir" && as_dir=.
4199  for ac_exec_ext in '' $ac_executable_extensions; do
4200  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203    break 2
4204  fi
4205done
4206done
4207
4208fi
4209fi
4210F77=$ac_cv_prog_F77
4211if test -n "$F77"; then
4212  echo "$as_me:$LINENO: result: $F77" >&5
4213echo "${ECHO_T}$F77" >&6
4214else
4215  echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
4217fi
4218
4219    test -n "$F77" && break
4220  done
4221fi
4222if test -z "$F77"; then
4223  ac_ct_F77=$F77
4224  for ac_prog in $coin_f77_comps
4225do
4226  # Extract the first word of "$ac_prog", so it can be a program name with args.
4227set dummy $ac_prog; ac_word=$2
4228echo "$as_me:$LINENO: checking for $ac_word" >&5
4229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4231  echo $ECHO_N "(cached) $ECHO_C" >&6
4232else
4233  if test -n "$ac_ct_F77"; then
4234  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4235else
4236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH
4238do
4239  IFS=$as_save_IFS
4240  test -z "$as_dir" && as_dir=.
4241  for ac_exec_ext in '' $ac_executable_extensions; do
4242  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243    ac_cv_prog_ac_ct_F77="$ac_prog"
4244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245    break 2
4246  fi
4247done
4248done
4249
4250fi
4251fi
4252ac_ct_F77=$ac_cv_prog_ac_ct_F77
4253if test -n "$ac_ct_F77"; then
4254  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4255echo "${ECHO_T}$ac_ct_F77" >&6
4256else
4257  echo "$as_me:$LINENO: result: no" >&5
4258echo "${ECHO_T}no" >&6
4259fi
4260
4261  test -n "$ac_ct_F77" && break
4262done
4263
4264  F77=$ac_ct_F77
4265fi
4266
4267
4268# Provide some information about the compiler.
4269echo "$as_me:4269:" \
4270     "checking for Fortran 77 compiler version" >&5
4271ac_compiler=`set X $ac_compile; echo $2`
4272{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4273  (eval $ac_compiler --version </dev/null >&5) 2>&5
4274  ac_status=$?
4275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276  (exit $ac_status); }
4277{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4278  (eval $ac_compiler -v </dev/null >&5) 2>&5
4279  ac_status=$?
4280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281  (exit $ac_status); }
4282{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4283  (eval $ac_compiler -V </dev/null >&5) 2>&5
4284  ac_status=$?
4285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286  (exit $ac_status); }
4287rm -f a.out
4288
4289# If we don't use `.F' as extension, the preprocessor is not run on the
4290# input file.  (Note that this only needs to work for GNU compilers.)
4291ac_save_ext=$ac_ext
4292ac_ext=F
4293echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4294echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4295if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4296  echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298  cat >conftest.$ac_ext <<_ACEOF
4299      program main
4300#ifndef __GNUC__
4301       choke me
4302#endif
4303
4304      end
4305_ACEOF
4306rm -f conftest.$ac_objext
4307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308  (eval $ac_compile) 2>conftest.er1
4309  ac_status=$?
4310  grep -v '^ *+' conftest.er1 >conftest.err
4311  rm -f conftest.er1
4312  cat conftest.err >&5
4313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314  (exit $ac_status); } &&
4315         { ac_try='test -z "$ac_f77_werror_flag"
4316                         || test ! -s conftest.err'
4317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318  (eval $ac_try) 2>&5
4319  ac_status=$?
4320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321  (exit $ac_status); }; } &&
4322         { ac_try='test -s conftest.$ac_objext'
4323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324  (eval $ac_try) 2>&5
4325  ac_status=$?
4326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327  (exit $ac_status); }; }; then
4328  ac_compiler_gnu=yes
4329else
4330  echo "$as_me: failed program was:" >&5
4331sed 's/^/| /' conftest.$ac_ext >&5
4332
4333ac_compiler_gnu=no
4334fi
4335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4336ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4337
4338fi
4339echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4340echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4341ac_ext=$ac_save_ext
4342ac_test_FFLAGS=${FFLAGS+set}
4343ac_save_FFLAGS=$FFLAGS
4344FFLAGS=
4345echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4346echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4347if test "${ac_cv_prog_f77_g+set}" = set; then
4348  echo $ECHO_N "(cached) $ECHO_C" >&6
4349else
4350  FFLAGS=-g
4351cat >conftest.$ac_ext <<_ACEOF
4352      program main
4353
4354      end
4355_ACEOF
4356rm -f conftest.$ac_objext
4357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358  (eval $ac_compile) 2>conftest.er1
4359  ac_status=$?
4360  grep -v '^ *+' conftest.er1 >conftest.err
4361  rm -f conftest.er1
4362  cat conftest.err >&5
4363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364  (exit $ac_status); } &&
4365         { ac_try='test -z "$ac_f77_werror_flag"
4366                         || test ! -s conftest.err'
4367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368  (eval $ac_try) 2>&5
4369  ac_status=$?
4370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371  (exit $ac_status); }; } &&
4372         { ac_try='test -s conftest.$ac_objext'
4373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374  (eval $ac_try) 2>&5
4375  ac_status=$?
4376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377  (exit $ac_status); }; }; then
4378  ac_cv_prog_f77_g=yes
4379else
4380  echo "$as_me: failed program was:" >&5
4381sed 's/^/| /' conftest.$ac_ext >&5
4382
4383ac_cv_prog_f77_g=no
4384fi
4385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4386
4387fi
4388echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4389echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4390if test "$ac_test_FFLAGS" = set; then
4391  FFLAGS=$ac_save_FFLAGS
4392elif test $ac_cv_prog_f77_g = yes; then
4393  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4394    FFLAGS="-g -O2"
4395  else
4396    FFLAGS="-g"
4397  fi
4398else
4399  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4400    FFLAGS="-O2"
4401  else
4402    FFLAGS=
4403  fi
4404fi
4405
4406G77=`test $ac_compiler_gnu = yes && echo yes`
4407ac_ext=f
4408ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4409ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4411
4412else
4413  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4414echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4415fi
4416
4417FFLAGS="$save_fflags"
4418
4419# Check if a project specific FFLAGS variable has been set
4420if test x$COIN_PRJCT != x; then
4421  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4422  if test x$coin_tmp = xset; then
4423    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4424  fi
4425fi
4426
4427if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4428
4429  coin_add_fflags=
4430  coin_opt_fflags=
4431  coin_dbg_fflags=
4432  coin_warn_fflags=
4433
4434  if test "$G77" = "yes"; then
4435    coin_opt_fflags="-O3"
4436    coin_add_fflags="-pipe"
4437    coin_dbg_fflags="-g"
4438    case $enable_doscompile in
4439      mingw)
4440        FFLAGS="-mno-cygwin"
4441        cat >conftest.$ac_ext <<_ACEOF
4442      program main
4443      write(*,*) 'Hello world'
4444      end
4445_ACEOF
4446rm -f conftest.$ac_objext conftest$ac_exeext
4447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4448  (eval $ac_link) 2>conftest.er1
4449  ac_status=$?
4450  grep -v '^ *+' conftest.er1 >conftest.err
4451  rm -f conftest.er1
4452  cat conftest.err >&5
4453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454  (exit $ac_status); } &&
4455         { ac_try='test -z "$ac_f77_werror_flag"
4456                         || test ! -s conftest.err'
4457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458  (eval $ac_try) 2>&5
4459  ac_status=$?
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); }; } &&
4462         { ac_try='test -s conftest$ac_exeext'
4463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464  (eval $ac_try) 2>&5
4465  ac_status=$?
4466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467  (exit $ac_status); }; }; then
4468  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4469else
4470  echo "$as_me: failed program was:" >&5
4471sed 's/^/| /' conftest.$ac_ext >&5
4472
4473fi
4474rm -f conftest.err conftest.$ac_objext \
4475      conftest$ac_exeext conftest.$ac_ext
4476        FFLAGS=
4477      ;;
4478    esac
4479  else
4480    case $build in
4481      *-cygwin* | *-mingw*)
4482        case $F77 in
4483          ifort* | */ifort* | IFORT* | */IFORT* )
4484            coin_opt_fflags='-MT -O3'
4485            coin_add_fflags='-fpp -nologo'
4486            coin_dbg_fflags='-MTd -debug'
4487          ;;
4488          compile_f2c*)
4489            coin_opt_fflags='-MT -O2'
4490            coin_add_fflags='-nologo -wd4996'
4491            coin_dbg_fflags='-MTd'
4492          ;;
4493        esac
4494        ;;
4495      *-linux-*)
4496        case $F77 in
4497          ifc* | */ifc* | ifort* | */ifort*)
4498            coin_opt_fflags="-O3 -ip"
4499            coin_add_fflags="-cm -w90 -w95"
4500            coin_dbg_fflags="-g -CA -CB -CS"
4501            # Check if -i_dynamic is necessary (for new glibc library)
4502            FFLAGS=
4503            cat >conftest.$ac_ext <<_ACEOF
4504      program main
4505      write(*,*) 'Hello world'
4506      end
4507_ACEOF
4508rm -f conftest.$ac_objext conftest$ac_exeext
4509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4510  (eval $ac_link) 2>conftest.er1
4511  ac_status=$?
4512  grep -v '^ *+' conftest.er1 >conftest.err
4513  rm -f conftest.er1
4514  cat conftest.err >&5
4515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516  (exit $ac_status); } &&
4517         { ac_try='test -z "$ac_f77_werror_flag"
4518                         || test ! -s conftest.err'
4519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520  (eval $ac_try) 2>&5
4521  ac_status=$?
4522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523  (exit $ac_status); }; } &&
4524         { ac_try='test -s conftest$ac_exeext'
4525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526  (eval $ac_try) 2>&5
4527  ac_status=$?
4528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529  (exit $ac_status); }; }; then
4530  :
4531else
4532  echo "$as_me: failed program was:" >&5
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
4535coin_add_fflags="-i_dynamic $coin_add_fflags"
4536fi
4537rm -f conftest.err conftest.$ac_objext \
4538      conftest$ac_exeext conftest.$ac_ext
4539            ;;
4540          pgf77* | */pgf77* | pgf90* | */pgf90*)
4541            coin_opt_fflags="-fast"
4542            coin_add_fflags="-Kieee -pc 64"
4543            coin_dbg_fflags="-g"
4544          ;;
4545        esac
4546        ;;
4547      *-ibm-*)
4548        case "$F77" in
4549          xlf* | */xlf* | mpxlf* | */mpxlf* )
4550            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4551            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4552            coin_dbg_fflags="-g -C"
4553            ;;
4554        esac
4555        ;;
4556      *-hp-*)
4557        coin_opt_fflags="+O3"
4558        coin_add_fflags="+U77"
4559        coin_dbg_fflags="-C -g"
4560        ;;
4561      *-*-solaris*)
4562        coin_opt_fflags="-O4"
4563        coin_dbg_fflags="-g"
4564        ;;
4565      *-sgi-*)
4566        coin_opt_fflags="-O5 -OPT:Olimit=0"
4567        coin_dbg_fflags="-g"
4568        ;;
4569    esac
4570  fi
4571
4572  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4573    coin_dbg_fflags="-g"
4574  fi
4575
4576  if test -z "$coin_opt_fflags"; then
4577    # Try if -O option works if nothing else is set
4578    FFLAGS=-O
4579    cat >conftest.$ac_ext <<_ACEOF
4580      program main
4581      integer i
4582      end
4583_ACEOF
4584rm -f conftest.$ac_objext conftest$ac_exeext
4585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4586  (eval $ac_link) 2>conftest.er1
4587  ac_status=$?
4588  grep -v '^ *+' conftest.er1 >conftest.err
4589  rm -f conftest.er1
4590  cat conftest.err >&5
4591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592  (exit $ac_status); } &&
4593         { ac_try='test -z "$ac_f77_werror_flag"
4594                         || test ! -s conftest.err'
4595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596  (eval $ac_try) 2>&5
4597  ac_status=$?
4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); }; } &&
4600         { ac_try='test -s conftest$ac_exeext'
4601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602  (eval $ac_try) 2>&5
4603  ac_status=$?
4604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605  (exit $ac_status); }; }; then
4606  coin_opt_fflags="-O"
4607else
4608  echo "$as_me: failed program was:" >&5
4609sed 's/^/| /' conftest.$ac_ext >&5
4610
4611fi
4612rm -f conftest.err conftest.$ac_objext \
4613      conftest$ac_exeext conftest.$ac_ext
4614  fi
4615
4616  # if PM doesn't want the warning messages, take them out
4617  if test x"$coin_skip_warn_fflags" = xyes; then
4618    coin_warn_fflags=
4619  fi
4620
4621  if test x${DBG_FFLAGS+set} != xset; then
4622    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4623  fi
4624  if test x${OPT_FFLAGS+set} != xset; then
4625    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4626  fi
4627
4628  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4629  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4630
4631  if test "$coin_debug_compile" = "true"; then
4632    FFLAGS="$DBG_FFLAGS"
4633  else
4634    FFLAGS="$OPT_FFLAGS"
4635  fi
4636else
4637  FFLAGS="$FFLAGS $ADD_FFLAGS"
4638  if test x${DBG_FFLAGS+set} != xset; then
4639    DBG_FFLAGS="$FFLAGS"
4640  fi
4641  if test x${OPT_FFLAGS+set} != xset; then
4642    OPT_FFLAGS="$FFLAGS"
4643  fi
4644fi
4645
4646# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4647case "$FFLAGS" in
4648  *-mno-cygwin*)
4649    if test x${CPPFLAGS+set} != xset ; then
4650      CPPFLAGS="-mno-cygwin"
4651    else
4652      case "$CPPFLAGS" in
4653        *-mno-cygwin*)
4654          ;;
4655        *)
4656          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4657          ;;
4658      esac
4659    fi ;;
4660esac
4661
4662# Try if FFLAGS works
4663if test "$F77" != "unavailable" ; then
4664  cat >conftest.$ac_ext <<_ACEOF
4665      program main
4666      integer i
4667      end
4668_ACEOF
4669rm -f conftest.$ac_objext conftest$ac_exeext
4670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4671  (eval $ac_link) 2>conftest.er1
4672  ac_status=$?
4673  grep -v '^ *+' conftest.er1 >conftest.err
4674  rm -f conftest.er1
4675  cat conftest.err >&5
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); } &&
4678         { ac_try='test -z "$ac_f77_werror_flag"
4679                         || test ! -s conftest.err'
4680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681  (eval $ac_try) 2>&5
4682  ac_status=$?
4683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684  (exit $ac_status); }; } &&
4685         { ac_try='test -s conftest$ac_exeext'
4686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687  (eval $ac_try) 2>&5
4688  ac_status=$?
4689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690  (exit $ac_status); }; }; then
4691  :
4692else
4693  echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696FFLAGS=
4697fi
4698rm -f conftest.err conftest.$ac_objext \
4699      conftest$ac_exeext conftest.$ac_ext
4700  if test -z "$FFLAGS"; then
4701    { 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
4702echo "$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;}
4703    FFLAGS='-O'
4704    cat >conftest.$ac_ext <<_ACEOF
4705      program main
4706      integer i
4707      end
4708_ACEOF
4709rm -f conftest.$ac_objext conftest$ac_exeext
4710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4711  (eval $ac_link) 2>conftest.er1
4712  ac_status=$?
4713  grep -v '^ *+' conftest.er1 >conftest.err
4714  rm -f conftest.er1
4715  cat conftest.err >&5
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); } &&
4718         { ac_try='test -z "$ac_f77_werror_flag"
4719                         || test ! -s conftest.err'
4720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721  (eval $ac_try) 2>&5
4722  ac_status=$?
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); }; } &&
4725         { ac_try='test -s conftest$ac_exeext'
4726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727  (eval $ac_try) 2>&5
4728  ac_status=$?
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); }; }; then
4731  :
4732else
4733  echo "$as_me: failed program was:" >&5
4734sed 's/^/| /' conftest.$ac_ext >&5
4735
4736FFLAGS=
4737fi
4738rm -f conftest.err conftest.$ac_objext \
4739      conftest$ac_exeext conftest.$ac_ext
4740    if test -z "$FFLAGS"; then
4741      { 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
4742echo "$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;}
4743    fi
4744  fi
4745fi
4746
4747{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4748echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4749
4750
4751if test x"$MPIF77" = x; then :; else
4752  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4753echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4754  F77="$MPIF77"
4755fi
4756
4757# correct the LD variable if we use the intel fortran compiler in windows
4758case "$F77" in
4759  ifort* | */ifort* | IFORT* | */IFORT*)
4760    case $build in
4761  *-mingw*)
4762    if test "${LD+set}" = set; then :; else
4763      LD=link
4764    fi
4765    ;;
4766 esac
4767 case $enable_doscompile in
4768   msvc)
4769     if test "x${LD+set}" = xset; then :; else
4770       LD=link
4771     fi
4772     ;;
4773 esac
4774
4775    ;;
4776esac
4777
4778ac_ext=c
4779ac_cpp='$CPP $CPPFLAGS'
4780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782ac_compiler_gnu=$ac_cv_c_compiler_gnu
4783
4784
4785
4786# Initialize automake and libtool
4787# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4788{
4789
4790
4791
4792# START
4793
4794# Test if force_shared has been set
4795if test "x" = xforce_shared; then
4796  if test x$enable_shared = xno; then
4797    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4798echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4799   { (exit 1); exit 1; }; }
4800  fi
4801  enable_shared=yes;
4802else
4803  # On Cygwin and AIX, building DLLs doesn't work
4804  case $build in
4805    *-cygwin*)
4806      coin_disable_shared=yes
4807      platform=Cygwin
4808    ;;
4809    *-aix*)
4810      coin_disable_shared=yes
4811      platform=AIX
4812    ;;
4813    *-mingw*)
4814      coin_disable_shared=yes
4815      platform="Msys"
4816#      case "$CXX" in
4817#        cl*)
4818#          coin_disable_shared=yes
4819#          platform="Msys with cl"
4820#      ;;
4821#      esac
4822    ;;
4823  esac
4824fi
4825if test x"$coin_disable_shared" = xyes; then
4826  if test x"$enable_shared" = xyes; then
4827    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4828echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4829  fi
4830  enable_shared=no
4831fi
4832# By default, we only want the shared objects to be compiled
4833# Check whether --enable-static or --disable-static was given.
4834if test "${enable_static+set}" = set; then
4835  enableval="$enable_static"
4836  p=${PACKAGE-default}
4837    case $enableval in
4838    yes) enable_static=yes ;;
4839    no) enable_static=no ;;
4840    *)
4841     enable_static=no
4842      # Look at the argument we got.  We use all the common list separators.
4843      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4844      for pkg in $enableval; do
4845        IFS="$lt_save_ifs"
4846        if test "X$pkg" = "X$p"; then
4847          enable_static=yes
4848        fi
4849      done
4850      IFS="$lt_save_ifs"
4851      ;;
4852    esac
4853else
4854  enable_static=no
4855fi;
4856
4857
4858
4859
4860# Initialize automake
4861echo "$as_me:$LINENO: checking for egrep" >&5
4862echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4863if test "${ac_cv_prog_egrep+set}" = set; then
4864  echo $ECHO_N "(cached) $ECHO_C" >&6
4865else
4866  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4867    then ac_cv_prog_egrep='grep -E'
4868    else ac_cv_prog_egrep='egrep'
4869    fi
4870fi
4871echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4872echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4873 EGREP=$ac_cv_prog_egrep
4874
4875
4876am__api_version="1.9"
4877# Find a good install program.  We prefer a C program (faster),
4878# so one script is as good as another.  But avoid the broken or
4879# incompatible versions:
4880# SysV /etc/install, /usr/sbin/install
4881# SunOS /usr/etc/install
4882# IRIX /sbin/install
4883# AIX /bin/install
4884# AmigaOS /C/install, which installs bootblocks on floppy discs
4885# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4886# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4887# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4888# OS/2's system install, which has a completely different semantic
4889# ./install, which can be erroneously created by make from ./install.sh.
4890echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4891echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4892if test -z "$INSTALL"; then
4893if test "${ac_cv_path_install+set}" = set; then
4894  echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897for as_dir in $PATH
4898do
4899  IFS=$as_save_IFS
4900  test -z "$as_dir" && as_dir=.
4901  # Account for people who put trailing slashes in PATH elements.
4902case $as_dir/ in
4903  ./ | .// | /cC/* | \
4904  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4905  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4906  /usr/ucb/* ) ;;
4907  *)
4908    # OSF1 and SCO ODT 3.0 have their own names for install.
4909    # Don't use installbsd from OSF since it installs stuff as root
4910    # by default.
4911    for ac_prog in ginstall scoinst install; do
4912      for ac_exec_ext in '' $ac_executable_extensions; do
4913        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4914          if test $ac_prog = install &&
4915            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4916            # AIX install.  It has an incompatible calling convention.
4917            :
4918          elif test $ac_prog = install &&
4919            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4920            # program-specific install script used by HP pwplus--don't use.
4921            :
4922          else
4923            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4924            break 3
4925          fi
4926        fi
4927      done
4928    done
4929    ;;
4930esac
4931done
4932
4933
4934fi
4935  if test "${ac_cv_path_install+set}" = set; then
4936    INSTALL=$ac_cv_path_install
4937  else
4938    # As a last resort, use the slow shell script.  We don't cache a
4939    # path for INSTALL within a source directory, because that will
4940    # break other packages using the cache if that directory is
4941    # removed, or if the path is relative.
4942    INSTALL=$ac_install_sh
4943  fi
4944fi
4945echo "$as_me:$LINENO: result: $INSTALL" >&5
4946echo "${ECHO_T}$INSTALL" >&6
4947
4948# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4949# It thinks the first close brace ends the variable substitution.
4950test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4951
4952test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4953
4954test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4955
4956echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4957echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4958# Just in case
4959sleep 1
4960echo timestamp > conftest.file
4961# Do `set' in a subshell so we don't clobber the current shell's
4962# arguments.  Must try -L first in case configure is actually a
4963# symlink; some systems play weird games with the mod time of symlinks
4964# (eg FreeBSD returns the mod time of the symlink's containing
4965# directory).
4966if (
4967   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4968   if test "$*" = "X"; then
4969      # -L didn't work.
4970      set X `ls -t $srcdir/configure conftest.file`
4971   fi
4972   rm -f conftest.file
4973   if test "$*" != "X $srcdir/configure conftest.file" \
4974      && test "$*" != "X conftest.file $srcdir/configure"; then
4975
4976      # If neither matched, then we have a broken ls.  This can happen
4977      # if, for instance, CONFIG_SHELL is bash and it inherits a
4978      # broken ls alias from the environment.  This has actually
4979      # happened.  Such a system could not be considered "sane".
4980      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4981alias in your environment" >&5
4982echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4983alias in your environment" >&2;}
4984   { (exit 1); exit 1; }; }
4985   fi
4986
4987   test "$2" = conftest.file
4988   )
4989then
4990   # Ok.
4991   :
4992else
4993   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4994Check your system clock" >&5
4995echo "$as_me: error: newly created file is older than distributed files!
4996Check your system clock" >&2;}
4997   { (exit 1); exit 1; }; }
4998fi
4999echo "$as_me:$LINENO: result: yes" >&5
5000echo "${ECHO_T}yes" >&6
5001test "$program_prefix" != NONE &&
5002  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5003# Use a double $ so make ignores it.
5004test "$program_suffix" != NONE &&
5005  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5006# Double any \ or $.  echo might interpret backslashes.
5007# By default was `s,x,x', remove it if useless.
5008cat <<\_ACEOF >conftest.sed
5009s/[\\$]/&&/g;s/;s,x,x,$//
5010_ACEOF
5011program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5012rm conftest.sed
5013
5014# expand $ac_aux_dir to an absolute path
5015am_aux_dir=`cd $ac_aux_dir && pwd`
5016
5017test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5018# Use eval to expand $SHELL
5019if eval "$MISSING --run true"; then
5020  am_missing_run="$MISSING --run "
5021else
5022  am_missing_run=
5023  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5024echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5025fi
5026
5027if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5028  # We used to keeping the `.' as first argument, in order to
5029  # allow $(mkdir_p) to be used without argument.  As in
5030  #   $(mkdir_p) $(somedir)
5031  # where $(somedir) is conditionally defined.  However this is wrong
5032  # for two reasons:
5033  #  1. if the package is installed by a user who cannot write `.'
5034  #     make install will fail,
5035  #  2. the above comment should most certainly read
5036  #     $(mkdir_p) $(DESTDIR)$(somedir)
5037  #     so it does not work when $(somedir) is undefined and
5038  #     $(DESTDIR) is not.
5039  #  To support the latter case, we have to write
5040  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5041  #  so the `.' trick is pointless.
5042  mkdir_p='mkdir -p --'
5043else
5044  # On NextStep and OpenStep, the `mkdir' command does not
5045  # recognize any option.  It will interpret all options as
5046  # directories to create, and then abort because `.' already
5047  # exists.
5048  for d in ./-p ./--version;
5049  do
5050    test -d $d && rmdir $d
5051  done
5052  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5053  if test -f "$ac_aux_dir/mkinstalldirs"; then
5054    mkdir_p='$(mkinstalldirs)'
5055  else
5056    mkdir_p='$(install_sh) -d'
5057  fi
5058fi
5059
5060for ac_prog in gawk mawk nawk awk
5061do
5062  # Extract the first word of "$ac_prog", so it can be a program name with args.
5063set dummy $ac_prog; ac_word=$2
5064echo "$as_me:$LINENO: checking for $ac_word" >&5
5065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5066if test "${ac_cv_prog_AWK+set}" = set; then
5067  echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069  if test -n "$AWK"; then
5070  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5071else
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075  IFS=$as_save_IFS
5076  test -z "$as_dir" && as_dir=.
5077  for ac_exec_ext in '' $ac_executable_extensions; do
5078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079    ac_cv_prog_AWK="$ac_prog"
5080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081    break 2
5082  fi
5083done
5084done
5085
5086fi
5087fi
5088AWK=$ac_cv_prog_AWK
5089if test -n "$AWK"; then
5090  echo "$as_me:$LINENO: result: $AWK" >&5
5091echo "${ECHO_T}$AWK" >&6
5092else
5093  echo "$as_me:$LINENO: result: no" >&5
5094echo "${ECHO_T}no" >&6
5095fi
5096
5097  test -n "$AWK" && break
5098done
5099
5100echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5101echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5102set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5103if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5104  echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106  cat >conftest.make <<\_ACEOF
5107all:
5108        @echo 'ac_maketemp="$(MAKE)"'
5109_ACEOF
5110# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5111eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5112if test -n "$ac_maketemp"; then
5113  eval ac_cv_prog_make_${ac_make}_set=yes
5114else
5115  eval ac_cv_prog_make_${ac_make}_set=no
5116fi
5117rm -f conftest.make
5118fi
5119if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5120  echo "$as_me:$LINENO: result: yes" >&5
5121echo "${ECHO_T}yes" >&6
5122  SET_MAKE=
5123else
5124  echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126  SET_MAKE="MAKE=${MAKE-make}"
5127fi
5128
5129rm -rf .tst 2>/dev/null
5130mkdir .tst 2>/dev/null
5131if test -d .tst; then
5132  am__leading_dot=.
5133else
5134  am__leading_dot=_
5135fi
5136rmdir .tst 2>/dev/null
5137
5138DEPDIR="${am__leading_dot}deps"
5139
5140          ac_config_commands="$ac_config_commands depfiles"
5141
5142
5143am_make=${MAKE-make}
5144cat > confinc << 'END'
5145am__doit:
5146        @echo done
5147.PHONY: am__doit
5148END
5149# If we don't find an include directive, just comment out the code.
5150echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5151echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5152am__include="#"
5153am__quote=
5154_am_result=none
5155# First try GNU make style include.
5156echo "include confinc" > confmf
5157# We grep out `Entering directory' and `Leaving directory'
5158# messages which can occur if `w' ends up in MAKEFLAGS.
5159# In particular we don't look at `^make:' because GNU make might
5160# be invoked under some other name (usually "gmake"), in which
5161# case it prints its new name instead of `make'.
5162if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5163   am__include=include
5164   am__quote=
5165   _am_result=GNU
5166fi
5167# Now try BSD make style include.
5168if test "$am__include" = "#"; then
5169   echo '.include "confinc"' > confmf
5170   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5171      am__include=.include
5172      am__quote="\""
5173      _am_result=BSD
5174   fi
5175fi
5176
5177
5178echo "$as_me:$LINENO: result: $_am_result" >&5
5179echo "${ECHO_T}$_am_result" >&6
5180rm -f confinc confmf
5181
5182# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5183if test "${enable_dependency_tracking+set}" = set; then
5184  enableval="$enable_dependency_tracking"
5185
5186fi;
5187if test "x$enable_dependency_tracking" != xno; then
5188  am_depcomp="$ac_aux_dir/depcomp"
5189  AMDEPBACKSLASH='\'
5190fi
5191
5192
5193if test "x$enable_dependency_tracking" != xno; then
5194  AMDEP_TRUE=
5195  AMDEP_FALSE='#'
5196else
5197  AMDEP_TRUE='#'
5198  AMDEP_FALSE=
5199fi
5200
5201
5202
5203
5204
5205# AC_MSG_NOTICE([Beginning automake initialisation.])
5206# Stuff for automake
5207# test to see if srcdir already configured
5208if test "`cd $srcdir && pwd`" != "`pwd`" &&
5209   test -f $srcdir/config.status; then
5210  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5211echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5212   { (exit 1); exit 1; }; }
5213fi
5214
5215# test whether we have cygpath
5216if test -z "$CYGPATH_W"; then
5217  if (cygpath --version) >/dev/null 2>/dev/null; then
5218    CYGPATH_W='cygpath -w'
5219  else
5220    CYGPATH_W=echo
5221  fi
5222fi
5223
5224
5225# Define the identity of the package.
5226 PACKAGE='cbc'
5227 VERSION='2.7'
5228
5229
5230cat >>confdefs.h <<_ACEOF
5231#define PACKAGE "$PACKAGE"
5232_ACEOF
5233
5234
5235cat >>confdefs.h <<_ACEOF
5236#define VERSION "$VERSION"
5237_ACEOF
5238
5239# Some tools Automake needs.
5240
5241ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5242
5243
5244AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5245
5246
5247AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5248
5249
5250AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5251
5252
5253MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5254
5255install_sh=${install_sh-"$am_aux_dir/install-sh"}
5256
5257# Installed binaries are usually stripped using `strip' when the user
5258# run `make install-strip'.  However `strip' might not be the right
5259# tool to use in cross-compilation environments, therefore Automake
5260# will honor the `STRIP' environment variable to overrule this program.
5261if test "$cross_compiling" != no; then
5262  if test -n "$ac_tool_prefix"; then
5263  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5264set dummy ${ac_tool_prefix}strip; ac_word=$2
5265echo "$as_me:$LINENO: checking for $ac_word" >&5
5266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267if test "${ac_cv_prog_STRIP+set}" = set; then
5268  echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270  if test -n "$STRIP"; then
5271  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5272else
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276  IFS=$as_save_IFS
5277  test -z "$as_dir" && as_dir=.
5278  for ac_exec_ext in '' $ac_executable_extensions; do
5279  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282    break 2
5283  fi
5284done
5285done
5286
5287fi
5288fi
5289STRIP=$ac_cv_prog_STRIP
5290if test -n "$STRIP"; then
5291  echo "$as_me:$LINENO: result: $STRIP" >&5
5292echo "${ECHO_T}$STRIP" >&6
5293else
5294  echo "$as_me:$LINENO: result: no" >&5
5295echo "${ECHO_T}no" >&6
5296fi
5297
5298fi
5299if test -z "$ac_cv_prog_STRIP"; then
5300  ac_ct_STRIP=$STRIP
5301  # Extract the first word of "strip", so it can be a program name with args.
5302set dummy strip; ac_word=$2
5303echo "$as_me:$LINENO: checking for $ac_word" >&5
5304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5305if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5306  echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308  if test -n "$ac_ct_STRIP"; then
5309  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5310else
5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314  IFS=$as_save_IFS
5315  test -z "$as_dir" && as_dir=.
5316  for ac_exec_ext in '' $ac_executable_extensions; do
5317  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318    ac_cv_prog_ac_ct_STRIP="strip"
5319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320    break 2
5321  fi
5322done
5323done
5324
5325  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5326fi
5327fi
5328ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5329if test -n "$ac_ct_STRIP"; then
5330  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5331echo "${ECHO_T}$ac_ct_STRIP" >&6
5332else
5333  echo "$as_me:$LINENO: result: no" >&5
5334echo "${ECHO_T}no" >&6
5335fi
5336
5337  STRIP=$ac_ct_STRIP
5338else
5339  STRIP="$ac_cv_prog_STRIP"
5340fi
5341
5342fi
5343INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5344
5345# We need awk for the "check" target.  The system "awk" is bad on
5346# some platforms.
5347# Always define AMTAR for backward compatibility.
5348
5349AMTAR=${AMTAR-"${am_missing_run}tar"}
5350
5351am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5352
5353
5354
5355
5356depcc="$CC"   am_compiler_list=
5357
5358echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5359echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5360if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5361  echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
5363  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5364  # We make a subdir and do the tests there.  Otherwise we can end up
5365  # making bogus files that we don't know about and never remove.  For
5366  # instance it was reported that on HP-UX the gcc test will end up
5367  # making a dummy file named `D' -- because `-MD' means `put the output
5368  # in D'.
5369  mkdir conftest.dir
5370  # Copy depcomp to subdir because otherwise we won't find it if we're
5371  # using a relative directory.
5372  cp "$am_depcomp" conftest.dir
5373  cd conftest.dir
5374  # We will build objects and dependencies in a subdirectory because
5375  # it helps to detect inapplicable dependency modes.  For instance
5376  # both Tru64's cc and ICC support -MD to output dependencies as a
5377  # side effect of compilation, but ICC will put the dependencies in
5378  # the current directory while Tru64 will put them in the object
5379  # directory.
5380  mkdir sub
5381
5382  am_cv_CC_dependencies_compiler_type=none
5383  if test "$am_compiler_list" = ""; then
5384     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5385  fi
5386  for depmode in $am_compiler_list; do
5387    # Setup a source with many dependencies, because some compilers
5388    # like to wrap large dependency lists on column 80 (with \), and
5389    # we should not choose a depcomp mode which is confused by this.
5390    #
5391    # We need to recreate these files for each test, as the compiler may
5392    # overwrite some of them when testing with obscure command lines.
5393    # This happens at least with the AIX C compiler.
5394    : > sub/conftest.c
5395    for i in 1 2 3 4 5 6; do
5396      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5397      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5398      # Solaris 8's {/usr,}/bin/sh.
5399      touch sub/conftst$i.h
5400    done
5401    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5402
5403    case $depmode in
5404    nosideeffect)
5405      # after this tag, mechanisms are not by side-effect, so they'll
5406      # only be used when explicitly requested
5407      if test "x$enable_dependency_tracking" = xyes; then
5408        continue
5409      else
5410        break
5411      fi
5412      ;;
5413    none) break ;;
5414    esac
5415    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5416    # mode.  It turns out that the SunPro C++ compiler does not properly
5417    # handle `-M -o', and we need to detect this.
5418    if depmode=$depmode \
5419       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5420       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5421       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5422         >/dev/null 2>conftest.err &&
5423       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5424       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5425       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5426      # icc doesn't choke on unknown options, it will just issue warnings
5427      # or remarks (even with -Werror).  So we grep stderr for any message
5428      # that says an option was ignored or not supported.
5429      # When given -MP, icc 7.0 and 7.1 complain thusly:
5430      #   icc: Command line warning: ignoring option '-M'; no argument required
5431      # The diagnosis changed in icc 8.0:
5432      #   icc: Command line remark: option '-MP' not supported
5433      if (grep 'ignoring option' conftest.err ||
5434          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5435        am_cv_CC_dependencies_compiler_type=$depmode
5436        break
5437      fi
5438    fi
5439  done
5440
5441  cd ..
5442  rm -rf conftest.dir
5443else
5444  am_cv_CC_dependencies_compiler_type=none
5445fi
5446
5447fi
5448echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5449echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5450CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5451
5452
5453
5454if
5455  test "x$enable_dependency_tracking" != xno \
5456  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5457  am__fastdepCC_TRUE=
5458  am__fastdepCC_FALSE='#'
5459else
5460  am__fastdepCC_TRUE='#'
5461  am__fastdepCC_FALSE=
5462fi
5463
5464
5465depcc="$CXX"  am_compiler_list=
5466
5467echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5468echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5469if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5470  echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5473  # We make a subdir and do the tests there.  Otherwise we can end up
5474  # making bogus files that we don't know about and never remove.  For
5475  # instance it was reported that on HP-UX the gcc test will end up
5476  # making a dummy file named `D' -- because `-MD' means `put the output
5477  # in D'.
5478  mkdir conftest.dir
5479  # Copy depcomp to subdir because otherwise we won't find it if we're
5480  # using a relative directory.
5481  cp "$am_depcomp" conftest.dir
5482  cd conftest.dir
5483  # We will build objects and dependencies in a subdirectory because
5484  # it helps to detect inapplicable dependency modes.  For instance
5485  # both Tru64's cc and ICC support -MD to output dependencies as a
5486  # side effect of compilation, but ICC will put the dependencies in
5487  # the current directory while Tru64 will put them in the object
5488  # directory.
5489  mkdir sub
5490
5491  am_cv_CXX_dependencies_compiler_type=none
5492  if test "$am_compiler_list" = ""; then
5493     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5494  fi
5495  for depmode in $am_compiler_list; do
5496    # Setup a source with many dependencies, because some compilers
5497    # like to wrap large dependency lists on column 80 (with \), and
5498    # we should not choose a depcomp mode which is confused by this.
5499    #
5500    # We need to recreate these files for each test, as the compiler may
5501    # overwrite some of them when testing with obscure command lines.
5502    # This happens at least with the AIX C compiler.
5503    : > sub/conftest.c
5504    for i in 1 2 3 4 5 6; do
5505      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5506      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5507      # Solaris 8's {/usr,}/bin/sh.
5508      touch sub/conftst$i.h
5509    done
5510    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5511
5512    case $depmode in
5513    nosideeffect)
5514      # after this tag, mechanisms are not by side-effect, so they'll
5515      # only be used when explicitly requested
5516      if test "x$enable_dependency_tracking" = xyes; then
5517        continue
5518      else
5519        break
5520      fi
5521      ;;
5522    none) break ;;
5523    esac
5524    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5525    # mode.  It turns out that the SunPro C++ compiler does not properly
5526    # handle `-M -o', and we need to detect this.
5527    if depmode=$depmode \
5528       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5529       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5530       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5531         >/dev/null 2>conftest.err &&
5532       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5533       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5534       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5535      # icc doesn't choke on unknown options, it will just issue warnings
5536      # or remarks (even with -Werror).  So we grep stderr for any message
5537      # that says an option was ignored or not supported.
5538      # When given -MP, icc 7.0 and 7.1 complain thusly:
5539      #   icc: Command line warning: ignoring option '-M'; no argument required
5540      # The diagnosis changed in icc 8.0:
5541      #   icc: Command line remark: option '-MP' not supported
5542      if (grep 'ignoring option' conftest.err ||
5543          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5544        am_cv_CXX_dependencies_compiler_type=$depmode
5545        break
5546      fi
5547    fi
5548  done
5549
5550  cd ..
5551  rm -rf conftest.dir
5552else
5553  am_cv_CXX_dependencies_compiler_type=none
5554fi
5555
5556fi
5557echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5558echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5559CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5560
5561
5562
5563if
5564  test "x$enable_dependency_tracking" != xno \
5565  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5566  am__fastdepCXX_TRUE=
5567  am__fastdepCXX_FALSE='#'
5568else
5569  am__fastdepCXX_TRUE='#'
5570  am__fastdepCXX_FALSE=
5571fi
5572
5573
5574
5575echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5576echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5577    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5578if test "${enable_maintainer_mode+set}" = set; then
5579  enableval="$enable_maintainer_mode"
5580  USE_MAINTAINER_MODE=$enableval
5581else
5582  USE_MAINTAINER_MODE=no
5583fi;
5584  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5585echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5586
5587
5588if test $USE_MAINTAINER_MODE = yes; then
5589  MAINTAINER_MODE_TRUE=
5590  MAINTAINER_MODE_FALSE='#'
5591else
5592  MAINTAINER_MODE_TRUE='#'
5593  MAINTAINER_MODE_FALSE=
5594fi
5595
5596  MAINT=$MAINTAINER_MODE_TRUE
5597
5598
5599
5600coin_have_externals=no
5601if test "$enable_maintainer_mode" = yes; then
5602
5603  # If maintainer mode is chosen, we make sure that the correct versions
5604  # of the tools are used, and that we know where libtool.m4 is (to
5605  # recreate acinclude.m4)
5606
5607
5608  LIBTOOLM4=
5609  # Normally, $HOME
5610  AUTOTOOLS_DFLT=$HOME
5611
5612  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5613echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5614if test "${ac_cv_use_correct_autotools+set}" = set; then
5615  echo $ECHO_N "(cached) $ECHO_C" >&6
5616else
5617  ac_cv_use_correct_autotools=check
5618fi
5619echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5620echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5621
5622  if test $ac_cv_use_correct_autotools = check; then
5623    ac_cv_use_correct_autotools=yes
5624    # Check if we have autoconf
5625    # Extract the first word of "autoconf", so it can be a program name with args.
5626set dummy autoconf; ac_word=$2
5627echo "$as_me:$LINENO: checking for $ac_word" >&5
5628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5629if test "${ac_cv_prog_have_autoconf+set}" = set; then
5630  echo $ECHO_N "(cached) $ECHO_C" >&6
5631else
5632  if test -n "$have_autoconf"; then
5633  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5634else
5635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636for as_dir in $PATH
5637do
5638  IFS=$as_save_IFS
5639  test -z "$as_dir" && as_dir=.
5640  for ac_exec_ext in '' $ac_executable_extensions; do
5641  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642    ac_cv_prog_have_autoconf="yes"
5643    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5644    break 2
5645  fi
5646done
5647done
5648
5649  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5650fi
5651fi
5652have_autoconf=$ac_cv_prog_have_autoconf
5653if test -n "$have_autoconf"; then
5654  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5655echo "${ECHO_T}$have_autoconf" >&6
5656else
5657  echo "$as_me:$LINENO: result: no" >&5
5658echo "${ECHO_T}no" >&6
5659fi
5660
5661    if test $have_autoconf = no; then
5662      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5663echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5664   { (exit 1); exit 1; }; }
5665    fi
5666
5667    # Check whether autoconf is the correct version
5668    correct_version='2.59'
5669    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5670    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5671echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5672    autoconf --version > confauto.out 2>&1
5673    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5674      echo "$as_me:$LINENO: result: yes" >&5
5675echo "${ECHO_T}yes" >&6
5676    else
5677      rm -f confauto.out
5678      echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6
5680      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5681echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5682   { (exit 1); exit 1; }; }
5683    fi
5684    rm -f confauto.out
5685
5686    # Check if the executable autoconf is picked up from the correct location
5687    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5688echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5689    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5690    autoconf_dir=`cd $autoconf_dir; pwd`
5691    if test x$AUTOTOOLS_DIR = x; then
5692      want_dir=$AUTOTOOLS_DFLT/bin
5693    else
5694      want_dir=$AUTOTOOLS_DIR/bin
5695    fi
5696    if test $autoconf_dir = `cd $want_dir; pwd`; then
5697      echo "$as_me:$LINENO: result: yes" >&5
5698echo "${ECHO_T}yes" >&6
5699    else
5700      rm -f confauto.out
5701      echo "$as_me:$LINENO: result: no" >&5
5702echo "${ECHO_T}no" >&6
5703      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5704echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5705   { (exit 1); exit 1; }; }
5706    fi
5707
5708    # Check if we have automake
5709    # Extract the first word of "automake", so it can be a program name with args.
5710set dummy automake; ac_word=$2
5711echo "$as_me:$LINENO: checking for $ac_word" >&5
5712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713if test "${ac_cv_prog_have_automake+set}" = set; then
5714  echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716  if test -n "$have_automake"; then
5717  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722  IFS=$as_save_IFS
5723  test -z "$as_dir" && as_dir=.
5724  for ac_exec_ext in '' $ac_executable_extensions; do
5725  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726    ac_cv_prog_have_automake="yes"
5727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728    break 2
5729  fi
5730done
5731done
5732
5733  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5734fi
5735fi
5736have_automake=$ac_cv_prog_have_automake
5737if test -n "$have_automake"; then
5738  echo "$as_me:$LINENO: result: $have_automake" >&5
5739echo "${ECHO_T}$have_automake" >&6
5740else
5741  echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6
5743fi
5744
5745    if test $have_automake = no; then
5746      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5747echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5748   { (exit 1); exit 1; }; }
5749    fi
5750
5751    # Check whether automake is the correct version
5752    correct_version='1.9.6'
5753    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5754    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5755echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5756    automake --version > confauto.out 2>&1
5757    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5758      echo "$as_me:$LINENO: result: yes" >&5
5759echo "${ECHO_T}yes" >&6
5760    else
5761      rm -f confauto.out
5762      echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
5764      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5765echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5766   { (exit 1); exit 1; }; }
5767    fi
5768    rm -f confauto.out
5769
5770    # Check if the executable automake is picked up from the correct location
5771    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5772echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5773    automake_dir=`which automake | sed -e 's=/automake=='`
5774    automake_dir=`cd $automake_dir; pwd`
5775    if test x$AUTOTOOLS_DIR = x; then
5776      want_dir=$AUTOTOOLS_DFLT/bin
5777    else
5778      want_dir=$AUTOTOOLS_DIR/bin
5779    fi
5780    if test $automake_dir = `cd $want_dir; pwd`; then
5781      echo "$as_me:$LINENO: result: yes" >&5
5782echo "${ECHO_T}yes" >&6
5783    else
5784      rm -f confauto.out
5785      echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6
5787      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5788echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5789   { (exit 1); exit 1; }; }
5790    fi
5791
5792    # Check if this is the correct version of libtool (with escaped dots)
5793    if test x$AUTOTOOLS_DIR = x; then
5794      want_dir=$AUTOTOOLS_DFLT/share
5795    else
5796      want_dir=$AUTOTOOLS_DIR/share
5797    fi
5798    correct_version='1.5.22'
5799    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5800    if test -r $want_dir/libtool/ltmain.sh; then
5801  have_ltmain=yes
5802  :
5803else
5804  have_ltmain=no
5805  :
5806fi
5807
5808    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5809echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5810    if test $have_ltmain = yes; then
5811    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5812        echo "$as_me:$LINENO: result: yes" >&5
5813echo "${ECHO_T}yes" >&6
5814      else
5815        echo "$as_me:$LINENO: result: no" >&5
5816echo "${ECHO_T}no" >&6
5817        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5818echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5819   { (exit 1); exit 1; }; }
5820      fi
5821    else
5822      echo "$as_me:$LINENO: result: no" >&5
5823echo "${ECHO_T}no" >&6
5824      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5825echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5826   { (exit 1); exit 1; }; }
5827    fi
5828  fi
5829
5830  # Check if we can find the libtool file
5831  if test x$AUTOTOOLS_DIR = x; then
5832    want_dir=$AUTOTOOLS_DFLT/share
5833  else
5834    want_dir=$AUTOTOOLS_DIR/share
5835  fi
5836  if test -r $want_dir/aclocal/libtool.m4; then
5837  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5838  :
5839else
5840  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5841echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5842   { (exit 1); exit 1; }; }
5843  :
5844fi
5845
5846
5847  # Check if we have an Externals file
5848  if test -r $srcdir/Externals; then
5849    coin_have_externals=yes
5850  fi
5851  # Check if subversion is installed and understands https
5852  # Extract the first word of "svn", so it can be a program name with args.
5853set dummy svn; ac_word=$2
5854echo "$as_me:$LINENO: checking for $ac_word" >&5
5855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5856if test "${ac_cv_prog_have_svn+set}" = set; then
5857  echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
5859  if test -n "$have_svn"; then
5860  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5861else
5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH
5864do
5865  IFS=$as_save_IFS
5866  test -z "$as_dir" && as_dir=.
5867  for ac_exec_ext in '' $ac_executable_extensions; do
5868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869    ac_cv_prog_have_svn="yes"
5870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871    break 2
5872  fi
5873done
5874done
5875
5876  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5877fi
5878fi
5879have_svn=$ac_cv_prog_have_svn
5880if test -n "$have_svn"; then
5881  echo "$as_me:$LINENO: result: $have_svn" >&5
5882echo "${ECHO_T}$have_svn" >&6
5883else
5884  echo "$as_me:$LINENO: result: no" >&5
5885echo "${ECHO_T}no" >&6
5886fi
5887
5888  if test x$have_svn = xyes; then
5889    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5890echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5891if test "${ac_cv_svn_understands_https+set}" = set; then
5892  echo $ECHO_N "(cached) $ECHO_C" >&6
5893else
5894  svn --version > confauto.out 2>&1
5895                    if $EGREP https confauto.out >/dev/null 2>&1; then
5896                      ac_cv_svn_understands_https=yes
5897                    else
5898                      ac_cv_svn_understands_https=no
5899                      have_svn=no
5900                      ac_cv_prog_have_svn=no
5901                    fi
5902                    rm -f confauto.out
5903fi
5904echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5905echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5906  fi
5907
5908  # Find the location of the BuildTools directory
5909  BUILDTOOLSDIR=
5910  if test -r $srcdir/BuildTools/coin.m4; then
5911    BUILDTOOLSDIR=$srcdir/BuildTools
5912  else
5913    if test -r $srcdir/../BuildTools/coin.m4; then
5914      BUILDTOOLSDIR=$srcdir/../BuildTools
5915    else
5916      if test -r $srcdir/../../BuildTools/coin.m4; then
5917        BUILDTOOLSDIR=$srcdir/../../BuildTools
5918      else
5919        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5920echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5921   { (exit 1); exit 1; }; }
5922      fi
5923    fi
5924  fi
5925
5926
5927  # The following variable is set to the name of the directory where
5928  # the autotool scripts are located
5929
5930  AUX_DIR=$ac_aux_dir
5931fi
5932
5933# helpful variable for the base directory of this package
5934abs_source_dir=`cd $srcdir; pwd`
5935
5936
5937# Stuff for example Makefiles
5938if test x$prefix = xNONE; then
5939  full_prefix=$ac_default_prefix
5940else
5941  full_prefix=$prefix
5942fi
5943full_prefix=`cd $full_prefix ; pwd`
5944
5945abs_lib_dir=$full_prefix/lib
5946
5947abs_include_dir=$full_prefix/include
5948
5949abs_bin_dir=$full_prefix/bin
5950
5951
5952
5953if test $coin_have_externals = yes && test x$have_svn = xyes; then
5954  HAVE_EXTERNALS_TRUE=
5955  HAVE_EXTERNALS_FALSE='#'
5956else
5957  HAVE_EXTERNALS_TRUE='#'
5958  HAVE_EXTERNALS_FALSE=
5959fi
5960
5961
5962# AC_MSG_NOTICE([End automake initialisation.])
5963
5964
5965
5966LIBTOOL=
5967if test -r ../libtool; then
5968  coin_config_dir=..
5969  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5970fi
5971if test "x$LIBTOOL" = x; then
5972  if test -r ../../libtool; then
5973    coin_config_dir=../..
5974    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5975  fi
5976fi
5977
5978if test "x$LIBTOOL" = x; then
5979# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5980  # Stuff for libtool
5981  # Check whether --enable-shared or --disable-shared was given.
5982if test "${enable_shared+set}" = set; then
5983  enableval="$enable_shared"
5984  p=${PACKAGE-default}
5985    case $enableval in
5986    yes) enable_shared=yes ;;
5987    no) enable_shared=no ;;
5988    *)
5989      enable_shared=no
5990      # Look at the argument we got.  We use all the common list separators.
5991      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5992      for pkg in $enableval; do
5993        IFS="$lt_save_ifs"
5994        if test "X$pkg" = "X$p"; then
5995          enable_shared=yes
5996        fi
5997      done
5998      IFS="$lt_save_ifs"
5999      ;;
6000    esac
6001else
6002  enable_shared=yes
6003fi;
6004
6005# Check whether --enable-fast-install or --disable-fast-install was given.
6006if test "${enable_fast_install+set}" = set; then
6007  enableval="$enable_fast_install"
6008  p=${PACKAGE-default}
6009    case $enableval in
6010    yes) enable_fast_install=yes ;;
6011    no) enable_fast_install=no ;;
6012    *)
6013      enable_fast_install=no
6014      # Look at the argument we got.  We use all the common list separators.
6015      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6016      for pkg in $enableval; do
6017        IFS="$lt_save_ifs"
6018        if test "X$pkg" = "X$p"; then
6019          enable_fast_install=yes
6020        fi
6021      done
6022      IFS="$lt_save_ifs"
6023      ;;
6024    esac
6025else
6026  enable_fast_install=yes
6027fi;
6028
6029echo "$as_me:$LINENO: checking host system type" >&5
6030echo $ECHO_N "checking host system type... $ECHO_C" >&6
6031if test "${ac_cv_host+set}" = set; then
6032  echo $ECHO_N "(cached) $ECHO_C" >&6
6033else
6034  ac_cv_host_alias=$host_alias
6035test -z "$ac_cv_host_alias" &&
6036  ac_cv_host_alias=$ac_cv_build_alias
6037ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6038  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6039echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6040   { (exit 1); exit 1; }; }
6041
6042fi
6043echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6044echo "${ECHO_T}$ac_cv_host" >&6
6045host=$ac_cv_host
6046host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6047host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6048host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6049
6050
6051echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6052echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6053if test "${lt_cv_path_SED+set}" = set; then
6054  echo $ECHO_N "(cached) $ECHO_C" >&6
6055else
6056  # Loop through the user's path and test for sed and gsed.
6057# Then use that list of sed's as ones to test for truncation.
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061  IFS=$as_save_IFS
6062  test -z "$as_dir" && as_dir=.
6063  for lt_ac_prog in sed gsed; do
6064    for ac_exec_ext in '' $ac_executable_extensions; do
6065      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6066        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6067      fi
6068    done
6069  done
6070done
6071lt_ac_max=0
6072lt_ac_count=0
6073# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6074# along with /bin/sed that truncates output.
6075for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6076  test ! -f $lt_ac_sed && continue
6077  cat /dev/null > conftest.in
6078  lt_ac_count=0
6079  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6080  # Check for GNU sed and select it if it is found.
6081  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6082    lt_cv_path_SED=$lt_ac_sed
6083    break
6084  fi
6085  while true; do
6086    cat conftest.in conftest.in >conftest.tmp
6087    mv conftest.tmp conftest.in
6088    cp conftest.in conftest.nl
6089    echo >>conftest.nl
6090    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6091    cmp -s conftest.out conftest.nl || break
6092    # 10000 chars as input seems more than enough
6093    test $lt_ac_count -gt 10 && break
6094    lt_ac_count=`expr $lt_ac_count + 1`
6095    if test $lt_ac_count -gt $lt_ac_max; then
6096      lt_ac_max=$lt_ac_count
6097      lt_cv_path_SED=$lt_ac_sed
6098    fi
6099  done
6100done
6101
6102fi
6103
6104SED=$lt_cv_path_SED
6105echo "$as_me:$LINENO: result: $SED" >&5
6106echo "${ECHO_T}$SED" >&6
6107
6108
6109# Check whether --with-gnu-ld or --without-gnu-ld was given.
6110if test "${with_gnu_ld+set}" = set; then
6111  withval="$with_gnu_ld"
6112  test "$withval" = no || with_gnu_ld=yes
6113else
6114  with_gnu_ld=no
6115fi;
6116ac_prog=ld
6117if test "$GCC" = yes; then
6118  # Check if gcc -print-prog-name=ld gives a path.
6119  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6120echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6121  case $host in
6122  *-*-mingw*)
6123    # gcc leaves a trailing carriage return which upsets mingw
6124    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6125  *)
6126    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6127  esac
6128  case $ac_prog in
6129    # Accept absolute paths.
6130    [\\/]* | ?:[\\/]*)
6131      re_direlt='/[^/][^/]*/\.\./'
6132      # Canonicalize the pathname of ld
6133      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6134      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6135        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6136      done
6137      test -z "$LD" && LD="$ac_prog"
6138      ;;
6139  "")
6140    # If it fails, then pretend we aren't using GCC.
6141    ac_prog=ld
6142    ;;
6143  *)
6144    # If it is relative, then search for the first ld in PATH.
6145    with_gnu_ld=unknown
6146    ;;
6147  esac
6148elif test "$with_gnu_ld" = yes; then
6149  echo "$as_me:$LINENO: checking for GNU ld" >&5
6150echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6151else
6152  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6153echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6154fi
6155if test "${lt_cv_path_LD+set}" = set; then
6156  echo $ECHO_N "(cached) $ECHO_C" >&6
6157else
6158  if test -z "$LD"; then
6159  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6160  for ac_dir in $PATH; do
6161    IFS="$lt_save_ifs"
6162    test -z "$ac_dir" && ac_dir=.
6163    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6164      lt_cv_path_LD="$ac_dir/$ac_prog"
6165      # Check to see if the program is GNU ld.  I'd rather use --version,
6166      # but apparently some variants of GNU ld only accept -v.
6167      # Break only if it was the GNU/non-GNU ld that we prefer.
6168      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6169      *GNU* | *'with BFD'*)
6170        test "$with_gnu_ld" != no && break
6171        ;;
6172      *)
6173        test "$with_gnu_ld" != yes && break
6174        ;;
6175      esac
6176    fi
6177  done
6178  IFS="$lt_save_ifs"
6179else
6180  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6181fi
6182fi
6183
6184LD="$lt_cv_path_LD"
6185if test -n "$LD"; then
6186  echo "$as_me:$LINENO: result: $LD" >&5
6187echo "${ECHO_T}$LD" >&6
6188else
6189  echo "$as_me:$LINENO: result: no" >&5
6190echo "${ECHO_T}no" >&6
6191fi
6192test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6193echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6194   { (exit 1); exit 1; }; }
6195echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6196echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6197if test "${lt_cv_prog_gnu_ld+set}" = set; then
6198  echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6201case `$LD -v 2>&1 </dev/null` in
6202*GNU* | *'with BFD'*)
6203  lt_cv_prog_gnu_ld=yes
6204  ;;
6205*)
6206  lt_cv_prog_gnu_ld=no
6207  ;;
6208esac
6209fi
6210echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6211echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6212with_gnu_ld=$lt_cv_prog_gnu_ld
6213
6214
6215echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6216echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6217if test "${lt_cv_ld_reload_flag+set}" = set; then
6218  echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220  lt_cv_ld_reload_flag='-r'
6221fi
6222echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6223echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6224reload_flag=$lt_cv_ld_reload_flag
6225case $reload_flag in
6226"" | " "*) ;;
6227*) reload_flag=" $reload_flag" ;;
6228esac
6229reload_cmds='$LD$reload_flag -o $output$reload_objs'
6230case $host_os in
6231  darwin*)
6232    if test "$GCC" = yes; then
6233      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6234    else
6235      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6236    fi
6237    ;;
6238esac
6239
6240echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6241echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6242if test "${lt_cv_path_NM+set}" = set; then
6243  echo $ECHO_N "(cached) $ECHO_C" >&6
6244else
6245  if test -n "$NM"; then
6246  # Let the user override the test.
6247  lt_cv_path_NM="$NM"
6248else
6249  lt_nm_to_check="${ac_tool_prefix}nm"
6250  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6251    lt_nm_to_check="$lt_nm_to_check nm"
6252  fi
6253  for lt_tmp_nm in $lt_nm_to_check; do
6254    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6255    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6256      IFS="$lt_save_ifs"
6257      test -z "$ac_dir" && ac_dir=.
6258      tmp_nm="$ac_dir/$lt_tmp_nm"
6259      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6260        # Check to see if the nm accepts a BSD-compat flag.
6261        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6262        #   nm: unknown option "B" ignored
6263        # Tru64's nm complains that /dev/null is an invalid object file
6264        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6265        */dev/null* | *'Invalid file or object type'*)
6266          lt_cv_path_NM="$tmp_nm -B"
6267          break
6268          ;;
6269        *)
6270          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6271          */dev/null*)
6272            lt_cv_path_NM="$tmp_nm -p"
6273            break
6274            ;;
6275          *)
6276            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6277            continue # so that we can try to find one that supports BSD flags
6278            ;;
6279          esac
6280          ;;
6281        esac
6282      fi
6283    done
6284    IFS="$lt_save_ifs"
6285  done
6286  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6287fi
6288fi
6289echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6290echo "${ECHO_T}$lt_cv_path_NM" >&6
6291NM="$lt_cv_path_NM"
6292
6293echo "$as_me:$LINENO: checking whether ln -s works" >&5
6294echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6295LN_S=$as_ln_s
6296if test "$LN_S" = "ln -s"; then
6297  echo "$as_me:$LINENO: result: yes" >&5
6298echo "${ECHO_T}yes" >&6
6299else
6300  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6301echo "${ECHO_T}no, using $LN_S" >&6
6302fi
6303
6304echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6305echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6306if test "${lt_cv_deplibs_check_method+set}" = set; then
6307  echo $ECHO_N "(cached) $ECHO_C" >&6
6308else
6309  lt_cv_file_magic_cmd='$MAGIC_CMD'
6310lt_cv_file_magic_test_file=
6311lt_cv_deplibs_check_method='unknown'
6312# Need to set the preceding variable on all platforms that support
6313# interlibrary dependencies.
6314# 'none' -- dependencies not supported.
6315# `unknown' -- same as none, but documents that we really don't know.
6316# 'pass_all' -- all dependencies passed with no checks.
6317# 'test_compile' -- check by making test program.
6318# 'file_magic [[regex]]' -- check by looking for files in library path
6319# which responds to the $file_magic_cmd with a given extended regex.
6320# If you have `file' or equivalent on your system and you're not sure
6321# whether `pass_all' will *always* work, you probably want this one.
6322
6323case $host_os in
6324aix4* | aix5*)
6325  lt_cv_deplibs_check_method=pass_all
6326  ;;
6327
6328beos*)
6329  lt_cv_deplibs_check_method=pass_all
6330  ;;
6331
6332bsdi[45]*)
6333  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6334  lt_cv_file_magic_cmd='/usr/bin/file -L'
6335  lt_cv_file_magic_test_file=/shlib/libc.so
6336  ;;
6337
6338cygwin*)
6339  # func_win32_libid is a shell function defined in ltmain.sh
6340  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6341  lt_cv_file_magic_cmd='func_win32_libid'
6342  ;;
6343
6344mingw* | pw32*)
6345  # Base MSYS/MinGW do not provide the 'file' command needed by
6346  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6347  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6348  lt_cv_file_magic_cmd='$OBJDUMP -f'
6349  ;;
6350
6351darwin* | rhapsody*)
6352  lt_cv_deplibs_check_method=pass_all
6353  ;;
6354
6355freebsd* | kfreebsd*-gnu | dragonfly*)
6356  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6357    case $host_cpu in
6358    i*86 )
6359      # Not sure whether the presence of OpenBSD here was a mistake.
6360      # Let's accept both of them until this is cleared up.
6361      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6362      lt_cv_file_magic_cmd=/usr/bin/file
6363      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6364      ;;
6365    esac
6366  else
6367    lt_cv_deplibs_check_method=pass_all
6368  fi
6369  ;;
6370
6371gnu*)
6372  lt_cv_deplibs_check_method=pass_all
6373  ;;
6374
6375hpux10.20* | hpux11*)
6376  lt_cv_file_magic_cmd=/usr/bin/file
6377  case $host_cpu in
6378  ia64*)
6379    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6380    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6381    ;;
6382  hppa*64*)
6383    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]'
6384    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6385    ;;
6386  *)
6387    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6388    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6389    ;;
6390  esac
6391  ;;
6392
6393interix3*)
6394  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6395  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6396  ;;
6397
6398irix5* | irix6* | nonstopux*)
6399  case $LD in
6400  *-32|*"-32 ") libmagic=32-bit;;
6401  *-n32|*"-n32 ") libmagic=N32;;
6402  *-64|*"-64 ") libmagic=64-bit;;
6403  *) libmagic=never-match;;
6404  esac
6405  lt_cv_deplibs_check_method=pass_all
6406  ;;
6407
6408# This must be Linux ELF.
6409linux*)
6410  lt_cv_deplibs_check_method=pass_all
6411  ;;
6412
6413netbsd*)
6414  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6415    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6416  else
6417    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6418  fi
6419  ;;
6420
6421newos6*)
6422  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6423  lt_cv_file_magic_cmd=/usr/bin/file
6424  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6425  ;;
6426
6427nto-qnx*)
6428  lt_cv_deplibs_check_method=unknown
6429  ;;
6430
6431openbsd*)
6432  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6433    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6434  else
6435    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6436  fi
6437  ;;
6438
6439osf3* | osf4* | osf5*)
6440  lt_cv_deplibs_check_method=pass_all
6441  ;;
6442
6443solaris*)
6444  lt_cv_deplibs_check_method=pass_all
6445  ;;
6446
6447sysv4 | sysv4.3*)
6448  case $host_vendor in
6449  motorola)
6450    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]'
6451    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6452    ;;
6453  ncr)
6454    lt_cv_deplibs_check_method=pass_all
6455    ;;
6456  sequent)
6457    lt_cv_file_magic_cmd='/bin/file'
6458    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6459    ;;
6460  sni)
6461    lt_cv_file_magic_cmd='/bin/file'
6462    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6463    lt_cv_file_magic_test_file=/lib/libc.so
6464    ;;
6465  siemens)
6466    lt_cv_deplibs_check_method=pass_all
6467    ;;
6468  pc)
6469    lt_cv_deplibs_check_method=pass_all
6470    ;;
6471  esac
6472  ;;
6473
6474sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6475  lt_cv_deplibs_check_method=pass_all
6476  ;;
6477esac
6478
6479fi
6480echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6481echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6482file_magic_cmd=$lt_cv_file_magic_cmd
6483deplibs_check_method=$lt_cv_deplibs_check_method
6484test -z "$deplibs_check_method" && deplibs_check_method=unknown
6485
6486
6487
6488
6489# If no C compiler was specified, use CC.
6490LTCC=${LTCC-"$CC"}
6491
6492# If no C compiler flags were specified, use CFLAGS.
6493LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6494
6495# Allow CC to be a program name with arguments.
6496compiler=$CC
6497
6498# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6499if test "${enable_libtool_lock+set}" = set; then
6500  enableval="$enable_libtool_lock"
6501
6502fi;
6503test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6504
6505# Some flags need to be propagated to the compiler or linker for good
6506# libtool support.
6507case $host in
6508ia64-*-hpux*)
6509  # Find out which ABI we are using.
6510  echo 'int i;' > conftest.$ac_ext
6511  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6512  (eval $ac_compile) 2>&5
6513  ac_status=$?
6514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515  (exit $ac_status); }; then
6516    case `/usr/bin/file conftest.$ac_objext` in
6517    *ELF-32*)
6518      HPUX_IA64_MODE="32"
6519      ;;
6520    *ELF-64*)
6521      HPUX_IA64_MODE="64"
6522      ;;
6523    esac
6524  fi
6525  rm -rf conftest*
6526  ;;
6527*-*-irix6*)
6528  # Find out which ABI we are using.
6529  echo '#line 6529 "configure"' > conftest.$ac_ext
6530  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531  (eval $ac_compile) 2>&5
6532  ac_status=$?
6533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534  (exit $ac_status); }; then
6535   if test "$lt_cv_prog_gnu_ld" = yes; then
6536    case `/usr/bin/file conftest.$ac_objext` in
6537    *32-bit*)
6538      LD="${LD-ld} -melf32bsmip"
6539      ;;
6540    *N32*)
6541      LD="${LD-ld} -melf32bmipn32"
6542      ;;
6543    *64-bit*)
6544      LD="${LD-ld} -melf64bmip"
6545      ;;
6546    esac
6547   else
6548    case `/usr/bin/file conftest.$ac_objext` in
6549    *32-bit*)
6550      LD="${LD-ld} -32"
6551      ;;
6552    *N32*)
6553      LD="${LD-ld} -n32"
6554      ;;
6555    *64-bit*)
6556      LD="${LD-ld} -64"
6557      ;;
6558    esac
6559   fi
6560  fi
6561  rm -rf conftest*
6562  ;;
6563
6564x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6565  # Find out which ABI we are using.
6566  echo 'int i;' > conftest.$ac_ext
6567  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568  (eval $ac_compile) 2>&5
6569  ac_status=$?
6570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571  (exit $ac_status); }; then
6572    case `/usr/bin/file conftest.o` in
6573    *32-bit*)
6574      case $host in
6575        x86_64-*linux*)
6576          LD="${LD-ld} -m elf_i386"
6577          ;;
6578        ppc64-*linux*|powerpc64-*linux*)
6579          LD="${LD-ld} -m elf32ppclinux"
6580          ;;
6581        s390x-*linux*)
6582          LD="${LD-ld} -m elf_s390"
6583          ;;
6584        sparc64-*linux*)
6585          LD="${LD-ld} -m elf32_sparc"
6586          ;;
6587      esac
6588      ;;
6589    *64-bit*)
6590      case $host in
6591        x86_64-*linux*)
6592          LD="${LD-ld} -m elf_x86_64"
6593          ;;
6594        ppc*-*linux*|powerpc*-*linux*)
6595          LD="${LD-ld} -m elf64ppc"
6596          ;;
6597        s390*-*linux*)
6598          LD="${LD-ld} -m elf64_s390"
6599          ;;
6600        sparc*-*linux*)
6601          LD="${LD-ld} -m elf64_sparc"
6602          ;;
6603      esac
6604      ;;
6605    esac
6606  fi
6607  rm -rf conftest*
6608  ;;
6609
6610*-*-sco3.2v5*)
6611  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6612  SAVE_CFLAGS="$CFLAGS"
6613  CFLAGS="$CFLAGS -belf"
6614  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6615echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6616if test "${lt_cv_cc_needs_belf+set}" = set; then
6617  echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619  ac_ext=c
6620ac_cpp='$CPP $CPPFLAGS'
6621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6623ac_compiler_gnu=$ac_cv_c_compiler_gnu
6624
6625     cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h.  */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h.  */
6631
6632int
6633main ()
6634{
6635
6636  ;
6637  return 0;
6638}
6639_ACEOF
6640rm -f conftest.$ac_objext conftest$ac_exeext
6641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6642  (eval $ac_link) 2>conftest.er1
6643  ac_status=$?
6644  grep -v '^ *+' conftest.er1 >conftest.err
6645  rm -f conftest.er1
6646  cat conftest.err >&5
6647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648  (exit $ac_status); } &&
6649         { ac_try='test -z "$ac_c_werror_flag"
6650                         || test ! -s conftest.err'
6651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652  (eval $ac_try) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; } &&
6656         { ac_try='test -s conftest$ac_exeext'
6657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658  (eval $ac_try) 2>&5
6659  ac_status=$?
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); }; }; then
6662  lt_cv_cc_needs_belf=yes
6663else
6664  echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667lt_cv_cc_needs_belf=no
6668fi
6669rm -f conftest.err conftest.$ac_objext \
6670      conftest$ac_exeext conftest.$ac_ext
6671     ac_ext=c
6672ac_cpp='$CPP $CPPFLAGS'
6673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6675ac_compiler_gnu=$ac_cv_c_compiler_gnu
6676
6677fi
6678echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6679echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6680  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6681    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6682    CFLAGS="$SAVE_CFLAGS"
6683  fi
6684  ;;
6685sparc*-*solaris*)
6686  # Find out which ABI we are using.
6687  echo 'int i;' > conftest.$ac_ext
6688  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689  (eval $ac_compile) 2>&5
6690  ac_status=$?
6691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692  (exit $ac_status); }; then
6693    case `/usr/bin/file conftest.o` in
6694    *64-bit*)
6695      case $lt_cv_prog_gnu_ld in
6696      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6697      *)    LD="${LD-ld} -64" ;;
6698      esac
6699      ;;
6700    esac
6701  fi
6702  rm -rf conftest*
6703  ;;
6704
6705
6706esac
6707
6708need_locks="$enable_libtool_lock"
6709
6710
6711ac_ext=c
6712ac_cpp='$CPP $CPPFLAGS'
6713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6715ac_compiler_gnu=$ac_cv_c_compiler_gnu
6716echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6717echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6718# On Suns, sometimes $CPP names a directory.
6719if test -n "$CPP" && test -d "$CPP"; then
6720  CPP=
6721fi
6722if test -z "$CPP"; then
6723  if test "${ac_cv_prog_CPP+set}" = set; then
6724  echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
6726      # Double quotes because CPP needs to be expanded
6727    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6728    do
6729      ac_preproc_ok=false
6730for ac_c_preproc_warn_flag in '' yes
6731do
6732  # Use a header file that comes with gcc, so configuring glibc
6733  # with a fresh cross-compiler works.
6734  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6735  # <limits.h> exists even on freestanding compilers.
6736  # On the NeXT, cc -E runs the code through the compiler's parser,
6737  # not just through cpp. "Syntax error" is here to catch this case.
6738  cat >conftest.$ac_ext <<_ACEOF
6739/* confdefs.h.  */
6740_ACEOF
6741cat confdefs.h >>conftest.$ac_ext
6742cat >>conftest.$ac_ext <<_ACEOF
6743/* end confdefs.h.  */
6744#ifdef __STDC__
6745# include <limits.h>
6746#else
6747# include <assert.h>
6748#endif
6749                     Syntax error
6750_ACEOF
6751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6752  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6753  ac_status=$?
6754  grep -v '^ *+' conftest.er1 >conftest.err
6755  rm -f conftest.er1
6756  cat conftest.err >&5
6757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758  (exit $ac_status); } >/dev/null; then
6759  if test -s conftest.err; then
6760    ac_cpp_err=$ac_c_preproc_warn_flag
6761    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6762  else
6763    ac_cpp_err=
6764  fi
6765else
6766  ac_cpp_err=yes
6767fi
6768if test -z "$ac_cpp_err"; then
6769  :
6770else
6771  echo "$as_me: failed program was:" >&5
6772sed 's/^/| /' conftest.$ac_ext >&5
6773
6774  # Broken: fails on valid input.
6775continue
6776fi
6777rm -f conftest.err conftest.$ac_ext
6778
6779  # OK, works on sane cases.  Now check whether non-existent headers
6780  # can be detected and how.
6781  cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h.  */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h.  */
6787#include <ac_nonexistent.h>
6788_ACEOF
6789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6790  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6791  ac_status=$?
6792  grep -v '^ *+' conftest.er1 >conftest.err
6793  rm -f conftest.er1
6794  cat conftest.err >&5
6795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796  (exit $ac_status); } >/dev/null; then
6797  if test -s conftest.err; then
6798    ac_cpp_err=$ac_c_preproc_warn_flag
6799    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6800  else
6801    ac_cpp_err=
6802  fi
6803else
6804  ac_cpp_err=yes
6805fi
6806if test -z "$ac_cpp_err"; then
6807  # Broken: success on invalid input.
6808continue
6809else
6810  echo "$as_me: failed program was:" >&5
6811sed 's/^/| /' conftest.$ac_ext >&5
6812
6813  # Passes both tests.
6814ac_preproc_ok=:
6815break
6816fi
6817rm -f conftest.err conftest.$ac_ext
6818
6819done
6820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6821rm -f conftest.err conftest.$ac_ext
6822if $ac_preproc_ok; then
6823  break
6824fi
6825
6826    done
6827    ac_cv_prog_CPP=$CPP
6828
6829fi
6830  CPP=$ac_cv_prog_CPP
6831else
6832  ac_cv_prog_CPP=$CPP
6833fi
6834echo "$as_me:$LINENO: result: $CPP" >&5
6835echo "${ECHO_T}$CPP" >&6
6836ac_preproc_ok=false
6837for ac_c_preproc_warn_flag in '' yes
6838do
6839  # Use a header file that comes with gcc, so configuring glibc
6840  # with a fresh cross-compiler works.
6841  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6842  # <limits.h> exists even on freestanding compilers.
6843  # On the NeXT, cc -E runs the code through the compiler's parser,
6844  # not just through cpp. "Syntax error" is here to catch this case.
6845  cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h.  */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h.  */
6851#ifdef __STDC__
6852# include <limits.h>
6853#else
6854# include <assert.h>
6855#endif
6856                     Syntax error
6857_ACEOF
6858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6859  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6860  ac_status=$?
6861  grep -v '^ *+' conftest.er1 >conftest.err
6862  rm -f conftest.er1
6863  cat conftest.err >&5
6864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865  (exit $ac_status); } >/dev/null; then
6866  if test -s conftest.err; then
6867    ac_cpp_err=$ac_c_preproc_warn_flag
6868    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6869  else
6870    ac_cpp_err=
6871  fi
6872else
6873  ac_cpp_err=yes
6874fi
6875if test -z "$ac_cpp_err"; then
6876  :
6877else
6878  echo "$as_me: failed program was:" >&5
6879sed 's/^/| /' conftest.$ac_ext >&5
6880
6881  # Broken: fails on valid input.
6882continue
6883fi
6884rm -f conftest.err conftest.$ac_ext
6885
6886  # OK, works on sane cases.  Now check whether non-existent headers
6887  # can be detected and how.
6888  cat >conftest.$ac_ext <<_ACEOF
6889/* confdefs.h.  */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h.  */
6894#include <ac_nonexistent.h>
6895_ACEOF
6896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6897  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6898  ac_status=$?
6899  grep -v '^ *+' conftest.er1 >conftest.err
6900  rm -f conftest.er1
6901  cat conftest.err >&5
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); } >/dev/null; then
6904  if test -s conftest.err; then
6905    ac_cpp_err=$ac_c_preproc_warn_flag
6906    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6907  else
6908    ac_cpp_err=
6909  fi
6910else
6911  ac_cpp_err=yes
6912fi
6913if test -z "$ac_cpp_err"; then
6914  # Broken: success on invalid input.
6915continue
6916else
6917  echo "$as_me: failed program was:" >&5
6918sed 's/^/| /' conftest.$ac_ext >&5
6919
6920  # Passes both tests.
6921ac_preproc_ok=:
6922break
6923fi
6924rm -f conftest.err conftest.$ac_ext
6925
6926done
6927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6928rm -f conftest.err conftest.$ac_ext
6929if $ac_preproc_ok; then
6930  :
6931else
6932  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6933See \`config.log' for more details." >&5
6934echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6935See \`config.log' for more details." >&2;}
6936   { (exit 1); exit 1; }; }
6937fi
6938
6939ac_ext=c
6940ac_cpp='$CPP $CPPFLAGS'
6941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944
6945
6946echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6947echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6948if test "${ac_cv_header_stdc+set}" = set; then
6949  echo $ECHO_N "(cached) $ECHO_C" >&6
6950else
6951  cat >conftest.$ac_ext <<_ACEOF
6952/* confdefs.h.  */
6953_ACEOF
6954cat confdefs.h >>conftest.$ac_ext
6955cat >>conftest.$ac_ext <<_ACEOF
6956/* end confdefs.h.  */
6957#include <stdlib.h>
6958#include <stdarg.h>
6959#include <string.h>
6960#include <float.h>
6961
6962int
6963main ()
6964{
6965
6966  ;
6967  return 0;
6968}
6969_ACEOF
6970rm -f conftest.$ac_objext
6971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972  (eval $ac_compile) 2>conftest.er1
6973  ac_status=$?
6974  grep -v '^ *+' conftest.er1 >conftest.err
6975  rm -f conftest.er1
6976  cat conftest.err >&5
6977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978  (exit $ac_status); } &&
6979         { ac_try='test -z "$ac_c_werror_flag"
6980                         || test ! -s conftest.err'
6981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982  (eval $ac_try) 2>&5
6983  ac_status=$?
6984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985  (exit $ac_status); }; } &&
6986         { ac_try='test -s conftest.$ac_objext'
6987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988  (eval $ac_try) 2>&5
6989  ac_status=$?
6990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991  (exit $ac_status); }; }; then
6992  ac_cv_header_stdc=yes
6993else
6994  echo "$as_me: failed program was:" >&5
6995sed 's/^/| /' conftest.$ac_ext >&5
6996
6997ac_cv_header_stdc=no
6998fi
6999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7000
7001if test $ac_cv_header_stdc = yes; then
7002  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7003  cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h.  */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h.  */
7009#include <string.h>
7010
7011_ACEOF
7012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7013  $EGREP "memchr" >/dev/null 2>&1; then
7014  :
7015else
7016  ac_cv_header_stdc=no
7017fi
7018rm -f conftest*
7019
7020fi
7021
7022if test $ac_cv_header_stdc = yes; then
7023  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7024  cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h.  */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h.  */
7030#include <stdlib.h>
7031
7032_ACEOF
7033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7034  $EGREP "free" >/dev/null 2>&1; then
7035  :
7036else
7037  ac_cv_header_stdc=no
7038fi
7039rm -f conftest*
7040
7041fi
7042
7043if test $ac_cv_header_stdc = yes; then
7044  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7045  if test "$cross_compiling" = yes; then
7046  :
7047else
7048  cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h.  */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h.  */
7054#include <ctype.h>
7055#if ((' ' & 0x0FF) == 0x020)
7056# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7057# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7058#else
7059# define ISLOWER(c) \
7060                   (('a' <= (c) && (c) <= 'i') \
7061                     || ('j' <= (c) && (c) <= 'r') \
7062                     || ('s' <= (c) && (c) <= 'z'))
7063# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7064#endif
7065
7066#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7067int
7068main ()
7069{
7070  int i;
7071  for (i = 0; i < 256; i++)
7072    if (XOR (islower (i), ISLOWER (i))
7073        || toupper (i) != TOUPPER (i))
7074      exit(2);
7075  exit (0);
7076}
7077_ACEOF
7078rm -f conftest$ac_exeext
7079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7080  (eval $ac_link) 2>&5
7081  ac_status=$?
7082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085  (eval $ac_try) 2>&5
7086  ac_status=$?
7087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088  (exit $ac_status); }; }; then
7089  :
7090else
7091  echo "$as_me: program exited with status $ac_status" >&5
7092echo "$as_me: failed program was:" >&5
7093sed 's/^/| /' conftest.$ac_ext >&5
7094
7095( exit $ac_status )
7096ac_cv_header_stdc=no
7097fi
7098rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7099fi
7100fi
7101fi
7102echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7103echo "${ECHO_T}$ac_cv_header_stdc" >&6
7104if test $ac_cv_header_stdc = yes; then
7105
7106cat >>confdefs.h <<\_ACEOF
7107#define STDC_HEADERS 1
7108_ACEOF
7109
7110fi
7111
7112# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7123                  inttypes.h stdint.h unistd.h
7124do
7125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7126echo "$as_me:$LINENO: checking for $ac_header" >&5
7127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7128if eval "test \"\${$as_ac_Header+set}\" = set"; then
7129  echo $ECHO_N "(cached) $ECHO_C" >&6
7130else
7131  cat >conftest.$ac_ext <<_ACEOF
7132/* confdefs.h.  */
7133_ACEOF
7134cat confdefs.h >>conftest.$ac_ext
7135cat >>conftest.$ac_ext <<_ACEOF
7136/* end confdefs.h.  */
7137$ac_includes_default
7138
7139#include <$ac_header>
7140_ACEOF
7141rm -f conftest.$ac_objext
7142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143  (eval $ac_compile) 2>conftest.er1
7144  ac_status=$?
7145  grep -v '^ *+' conftest.er1 >conftest.err
7146  rm -f conftest.er1
7147  cat conftest.err >&5
7148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149  (exit $ac_status); } &&
7150         { ac_try='test -z "$ac_c_werror_flag"
7151                         || test ! -s conftest.err'
7152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153  (eval $ac_try) 2>&5
7154  ac_status=$?
7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156  (exit $ac_status); }; } &&
7157         { ac_try='test -s conftest.$ac_objext'
7158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159  (eval $ac_try) 2>&5
7160  ac_status=$?
7161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162  (exit $ac_status); }; }; then
7163  eval "$as_ac_Header=yes"
7164else
7165  echo "$as_me: failed program was:" >&5
7166sed 's/^/| /' conftest.$ac_ext >&5
7167
7168eval "$as_ac_Header=no"
7169fi
7170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7171fi
7172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7174if test `eval echo '${'$as_ac_Header'}'` = yes; then
7175  cat >>confdefs.h <<_ACEOF
7176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7177_ACEOF
7178
7179fi
7180
7181done
7182
7183
7184
7185for ac_header in dlfcn.h
7186do
7187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7188if eval "test \"\${$as_ac_Header+set}\" = set"; then
7189  echo "$as_me:$LINENO: checking for $ac_header" >&5
7190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7191if eval "test \"\${$as_ac_Header+set}\" = set"; then
7192  echo $ECHO_N "(cached) $ECHO_C" >&6
7193fi
7194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7196else
7197  # Is the header compilable?
7198echo "$as_me:$LINENO: checking $ac_header usability" >&5
7199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7200cat >conftest.$ac_ext <<_ACEOF
7201/* confdefs.h.  */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h.  */
7206$ac_includes_default
7207#include <$ac_header>
7208_ACEOF
7209rm -f conftest.$ac_objext
7210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211  (eval $ac_compile) 2>conftest.er1
7212  ac_status=$?
7213  grep -v '^ *+' conftest.er1 >conftest.err
7214  rm -f conftest.er1
7215  cat conftest.err >&5
7216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217  (exit $ac_status); } &&
7218         { ac_try='test -z "$ac_c_werror_flag"
7219                         || test ! -s conftest.err'
7220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221  (eval $ac_try) 2>&5
7222  ac_status=$?
7223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224  (exit $ac_status); }; } &&
7225         { ac_try='test -s conftest.$ac_objext'
7226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227  (eval $ac_try) 2>&5
7228  ac_status=$?
7229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230  (exit $ac_status); }; }; then
7231  ac_header_compiler=yes
7232else
7233  echo "$as_me: failed program was:" >&5
7234sed 's/^/| /' conftest.$ac_ext >&5
7235
7236ac_header_compiler=no
7237fi
7238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7239echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7240echo "${ECHO_T}$ac_header_compiler" >&6
7241
7242# Is the header present?
7243echo "$as_me:$LINENO: checking $ac_header presence" >&5
7244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7245cat >conftest.$ac_ext <<_ACEOF
7246/* confdefs.h.  */
7247_ACEOF
7248cat confdefs.h >>conftest.$ac_ext
7249cat >>conftest.$ac_ext <<_ACEOF
7250/* end confdefs.h.  */
7251#include <$ac_header>
7252_ACEOF
7253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7255  ac_status=$?
7256  grep -v '^ *+' conftest.er1 >conftest.err
7257  rm -f conftest.er1
7258  cat conftest.err >&5
7259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260  (exit $ac_status); } >/dev/null; then
7261  if test -s conftest.err; then
7262    ac_cpp_err=$ac_c_preproc_warn_flag
7263    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7264  else
7265    ac_cpp_err=
7266  fi
7267else
7268  ac_cpp_err=yes
7269fi
7270if test -z "$ac_cpp_err"; then
7271  ac_header_preproc=yes
7272else
7273  echo "$as_me: failed program was:" >&5
7274sed 's/^/| /' conftest.$ac_ext >&5
7275
7276  ac_header_preproc=no
7277fi
7278rm -f conftest.err conftest.$ac_ext
7279echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7280echo "${ECHO_T}$ac_header_preproc" >&6
7281
7282# So?  What about this header?
7283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7284  yes:no: )
7285    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7286echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7287    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7288echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7289    ac_header_preproc=yes
7290    ;;
7291  no:yes:* )
7292    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7294    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7295echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7296    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7297echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7298    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7299echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7300    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7301echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7302    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7303echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7304    (
7305      cat <<\_ASBOX
7306## ------------------------------------ ##
7307## Report this to cbc@lists.coin-or.org ##
7308## ------------------------------------ ##
7309_ASBOX
7310    ) |
7311      sed "s/^/$as_me: WARNING:     /" >&2
7312    ;;
7313esac
7314echo "$as_me:$LINENO: checking for $ac_header" >&5
7315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7316if eval "test \"\${$as_ac_Header+set}\" = set"; then
7317  echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319  eval "$as_ac_Header=\$ac_header_preproc"
7320fi
7321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7323
7324fi
7325if test `eval echo '${'$as_ac_Header'}'` = yes; then
7326  cat >>confdefs.h <<_ACEOF
7327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7328_ACEOF
7329
7330fi
7331
7332done
7333
7334
7335
7336if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7337    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7338    (test "X$CXX" != "Xg++"))) ; then
7339  ac_ext=cc
7340ac_cpp='$CXXCPP $CPPFLAGS'
7341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7344echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7345echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7346if test -z "$CXXCPP"; then
7347  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7348  echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350      # Double quotes because CXXCPP needs to be expanded
7351    for CXXCPP in "$CXX -E" "/lib/cpp"
7352    do
7353      ac_preproc_ok=false
7354for ac_cxx_preproc_warn_flag in '' yes
7355do
7356  # Use a header file that comes with gcc, so configuring glibc
7357  # with a fresh cross-compiler works.
7358  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7359  # <limits.h> exists even on freestanding compilers.
7360  # On the NeXT, cc -E runs the code through the compiler's parser,
7361  # not just through cpp. "Syntax error" is here to catch this case.
7362  cat >conftest.$ac_ext <<_ACEOF
7363/* confdefs.h.  */
7364_ACEOF
7365cat confdefs.h >>conftest.$ac_ext
7366cat >>conftest.$ac_ext <<_ACEOF
7367/* end confdefs.h.  */
7368#ifdef __STDC__
7369# include <limits.h>
7370#else
7371# include <assert.h>
7372#endif
7373                     Syntax error
7374_ACEOF
7375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7376  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7377  ac_status=$?
7378  grep -v '^ *+' conftest.er1 >conftest.err
7379  rm -f conftest.er1
7380  cat conftest.err >&5
7381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382  (exit $ac_status); } >/dev/null; then
7383  if test -s conftest.err; then
7384    ac_cpp_err=$ac_cxx_preproc_warn_flag
7385    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7386  else
7387    ac_cpp_err=
7388  fi
7389else
7390  ac_cpp_err=yes
7391fi
7392if test -z "$ac_cpp_err"; then
7393  :
7394else
7395  echo "$as_me: failed program was:" >&5
7396sed 's/^/| /' conftest.$ac_ext >&5
7397
7398  # Broken: fails on valid input.
7399continue
7400fi
7401rm -f conftest.err conftest.$ac_ext
7402
7403  # OK, works on sane cases.  Now check whether non-existent headers
7404  # can be detected and how.
7405  cat >conftest.$ac_ext <<_ACEOF
7406/* confdefs.h.  */
7407_ACEOF
7408cat confdefs.h >>conftest.$ac_ext
7409cat >>conftest.$ac_ext <<_ACEOF
7410/* end confdefs.h.  */
7411#include <ac_nonexistent.h>
7412_ACEOF
7413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7414  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7415  ac_status=$?
7416  grep -v '^ *+' conftest.er1 >conftest.err
7417  rm -f conftest.er1
7418  cat conftest.err >&5
7419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420  (exit $ac_status); } >/dev/null; then
7421  if test -s conftest.err; then
7422    ac_cpp_err=$ac_cxx_preproc_warn_flag
7423    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7424  else
7425    ac_cpp_err=
7426  fi
7427else
7428  ac_cpp_err=yes
7429fi
7430if test -z "$ac_cpp_err"; then
7431  # Broken: success on invalid input.
7432continue
7433else
7434  echo "$as_me: failed program was:" >&5
7435sed 's/^/| /' conftest.$ac_ext >&5
7436
7437  # Passes both tests.
7438ac_preproc_ok=:
7439break
7440fi
7441rm -f conftest.err conftest.$ac_ext
7442
7443done
7444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7445rm -f conftest.err conftest.$ac_ext
7446if $ac_preproc_ok; then
7447  break
7448fi
7449
7450    done
7451    ac_cv_prog_CXXCPP=$CXXCPP
7452
7453fi
7454  CXXCPP=$ac_cv_prog_CXXCPP
7455else
7456  ac_cv_prog_CXXCPP=$CXXCPP
7457fi
7458echo "$as_me:$LINENO: result: $CXXCPP" >&5
7459echo "${ECHO_T}$CXXCPP" >&6
7460ac_preproc_ok=false
7461for ac_cxx_preproc_warn_flag in '' yes
7462do
7463  # Use a header file that comes with gcc, so configuring glibc
7464  # with a fresh cross-compiler works.
7465  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7466  # <limits.h> exists even on freestanding compilers.
7467  # On the NeXT, cc -E runs the code through the compiler's parser,
7468  # not just through cpp. "Syntax error" is here to catch this case.
7469  cat >conftest.$ac_ext <<_ACEOF
7470/* confdefs.h.  */
7471_ACEOF
7472cat confdefs.h >>conftest.$ac_ext
7473cat >>conftest.$ac_ext <<_ACEOF
7474/* end confdefs.h.  */
7475#ifdef __STDC__
7476# include <limits.h>
7477#else
7478# include <assert.h>
7479#endif
7480                     Syntax error
7481_ACEOF
7482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7483  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7484  ac_status=$?
7485  grep -v '^ *+' conftest.er1 >conftest.err
7486  rm -f conftest.er1
7487  cat conftest.err >&5
7488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489  (exit $ac_status); } >/dev/null; then
7490  if test -s conftest.err; then
7491    ac_cpp_err=$ac_cxx_preproc_warn_flag
7492    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7493  else
7494    ac_cpp_err=
7495  fi
7496else
7497  ac_cpp_err=yes
7498fi
7499if test -z "$ac_cpp_err"; then
7500  :
7501else
7502  echo "$as_me: failed program was:" >&5
7503sed 's/^/| /' conftest.$ac_ext >&5
7504
7505  # Broken: fails on valid input.
7506continue
7507fi
7508rm -f conftest.err conftest.$ac_ext
7509
7510  # OK, works on sane cases.  Now check whether non-existent headers
7511  # can be detected and how.
7512  cat >conftest.$ac_ext <<_ACEOF
7513/* confdefs.h.  */
7514_ACEOF
7515cat confdefs.h >>conftest.$ac_ext
7516cat >>conftest.$ac_ext <<_ACEOF
7517/* end confdefs.h.  */
7518#include <ac_nonexistent.h>
7519_ACEOF
7520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7521  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7522  ac_status=$?
7523  grep -v '^ *+' conftest.er1 >conftest.err
7524  rm -f conftest.er1
7525  cat conftest.err >&5
7526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527  (exit $ac_status); } >/dev/null; then
7528  if test -s conftest.err; then
7529    ac_cpp_err=$ac_cxx_preproc_warn_flag
7530    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7531  else
7532    ac_cpp_err=
7533  fi
7534else
7535  ac_cpp_err=yes
7536fi
7537if test -z "$ac_cpp_err"; then
7538  # Broken: success on invalid input.
7539continue
7540else
7541  echo "$as_me: failed program was:" >&5
7542sed 's/^/| /' conftest.$ac_ext >&5
7543
7544  # Passes both tests.
7545ac_preproc_ok=:
7546break
7547fi
7548rm -f conftest.err conftest.$ac_ext
7549
7550done
7551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7552rm -f conftest.err conftest.$ac_ext
7553if $ac_preproc_ok; then
7554  :
7555else
7556  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7557See \`config.log' for more details." >&5
7558echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7559See \`config.log' for more details." >&2;}
7560   { (exit 1); exit 1; }; }
7561fi
7562
7563ac_ext=cc
7564ac_cpp='$CXXCPP $CPPFLAGS'
7565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7568
7569fi
7570
7571
7572# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7573
7574# find the maximum length of command line arguments
7575echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7576echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7577if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7578  echo $ECHO_N "(cached) $ECHO_C" >&6
7579else
7580    i=0
7581  teststring="ABCD"
7582
7583  case $build_os in
7584  msdosdjgpp*)
7585    # On DJGPP, this test can blow up pretty badly due to problems in libc
7586    # (any single argument exceeding 2000 bytes causes a buffer overrun
7587    # during glob expansion).  Even if it were fixed, the result of this
7588    # check would be larger than it should be.
7589    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7590    ;;
7591
7592  gnu*)
7593    # Under GNU Hurd, this test is not required because there is
7594    # no limit to the length of command line arguments.
7595    # Libtool will interpret -1 as no limit whatsoever
7596    lt_cv_sys_max_cmd_len=-1;
7597    ;;
7598
7599  cygwin* | mingw*)
7600    # On Win9x/ME, this test blows up -- it succeeds, but takes
7601    # about 5 minutes as the teststring grows exponentially.
7602    # Worse, since 9x/ME are not pre-emptively multitasking,
7603    # you end up with a "frozen" computer, even though with patience
7604    # the test eventually succeeds (with a max line length of 256k).
7605    # Instead, let's just punt: use the minimum linelength reported by
7606    # all of the supported platforms: 8192 (on NT/2K/XP).
7607    lt_cv_sys_max_cmd_len=8192;
7608    ;;
7609
7610  amigaos*)
7611    # On AmigaOS with pdksh, this test takes hours, literally.
7612    # So we just punt and use a minimum line length of 8192.
7613    lt_cv_sys_max_cmd_len=8192;
7614    ;;
7615
7616  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7617    # This has been around since 386BSD, at least.  Likely further.
7618    if test -x /sbin/sysctl; then
7619      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7620    elif test -x /usr/sbin/sysctl; then
7621      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7622    else
7623      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7624    fi
7625    # And add a safety zone
7626    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7627    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7628    ;;
7629
7630  interix*)
7631    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7632    lt_cv_sys_max_cmd_len=196608
7633    ;;
7634
7635  osf*)
7636    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7637    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7638    # nice to cause kernel panics so lets avoid the loop below.
7639    # First set a reasonable default.
7640    lt_cv_sys_max_cmd_len=16384
7641    #
7642    if test -x /sbin/sysconfig; then
7643      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7644        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7645      esac
7646    fi
7647    ;;
7648  sco3.2v5*)
7649    lt_cv_sys_max_cmd_len=102400
7650    ;;
7651  sysv5* | sco5v6* | sysv4.2uw2*)
7652    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7653    if test -n "$kargmax"; then
7654      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7655    else
7656      lt_cv_sys_max_cmd_len=32768
7657    fi
7658    ;;
7659  *)
7660    # If test is not a shell built-in, we'll probably end up computing a
7661    # maximum length that is only half of the actual maximum length, but
7662    # we can't tell.
7663    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7664    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7665               = "XX$teststring") >/dev/null 2>&1 &&
7666            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7667            lt_cv_sys_max_cmd_len=$new_result &&
7668            test $i != 17 # 1/2 MB should be enough
7669    do
7670      i=`expr $i + 1`
7671      teststring=$teststring$teststring
7672    done
7673    teststring=
7674    # Add a significant safety factor because C++ compilers can tack on massive
7675    # amounts of additional arguments before passing them to the linker.
7676    # It appears as though 1/2 is a usable value.
7677    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7678    ;;
7679  esac
7680
7681fi
7682
7683if test -n $lt_cv_sys_max_cmd_len ; then
7684  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7685echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7686else
7687  echo "$as_me:$LINENO: result: none" >&5
7688echo "${ECHO_T}none" >&6
7689fi
7690
7691
7692
7693
7694# Check for command to grab the raw symbol name followed by C symbol from nm.
7695echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7696echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7697if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7698  echo $ECHO_N "(cached) $ECHO_C" >&6
7699else
7700
7701# These are sane defaults that work on at least a few old systems.
7702# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7703
7704# Character class describing NM global symbol codes.
7705symcode='[BCDEGRST]'
7706
7707# Regexp to match symbols that can be accessed directly from C.
7708sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7709
7710# Transform an extracted symbol line into a proper C declaration
7711lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7712
7713# Transform an extracted symbol line into symbol name and symbol address
7714lt_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'"
7715
7716# Define system-specific variables.
7717case $host_os in
7718aix*)
7719  symcode='[BCDT]'
7720  ;;
7721cygwin* | mingw* | pw32*)
7722  symcode='[ABCDGISTW]'
7723  ;;
7724hpux*) # Its linker distinguishes data from code symbols
7725  if test "$host_cpu" = ia64; then
7726    symcode='[ABCDEGRST]'
7727  fi
7728  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7729  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'"
7730  ;;
7731linux*)
7732  if test "$host_cpu" = ia64; then
7733    symcode='[ABCDGIRSTW]'
7734    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7735    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'"
7736  fi
7737  ;;
7738irix* | nonstopux*)
7739  symcode='[BCDEGRST]'
7740  ;;
7741osf*)
7742  symcode='[BCDEGQRST]'
7743  ;;
7744solaris*)
7745  symcode='[BDRT]'
7746  ;;
7747sco3.2v5*)
7748  symcode='[DT]'
7749  ;;
7750sysv4.2uw2*)
7751  symcode='[DT]'
7752  ;;
7753sysv5* | sco5v6* | unixware* | OpenUNIX*)
7754  symcode='[ABDT]'
7755  ;;
7756sysv4)
7757  symcode='[DFNSTU]'
7758  ;;
7759esac
7760
7761# Handle CRLF in mingw tool chain
7762opt_cr=
7763case $build_os in
7764mingw*)
7765  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7766  ;;
7767esac
7768
7769# If we're using GNU nm, then use its standard symbol codes.
7770case `$NM -V 2>&1` in
7771*GNU* | *'with BFD'*)
7772  symcode='[ABCDGIRSTW]' ;;
7773esac
7774
7775# Try without a prefix undercore, then with it.
7776for ac_symprfx in "" "_"; do
7777
7778  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7779  symxfrm="\\1 $ac_symprfx\\2 \\2"
7780
7781  # Write the raw and C identifiers.
7782  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7783
7784  # Check to see that the pipe works correctly.
7785  pipe_works=no
7786
7787  rm -f conftest*
7788  cat > conftest.$ac_ext <<EOF
7789#ifdef __cplusplus
7790extern "C" {
7791#endif
7792char nm_test_var;
7793void nm_test_func(){}
7794#ifdef __cplusplus
7795}
7796#endif
7797int main(){nm_test_var='a';nm_test_func();return(0);}
7798EOF
7799
7800  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7801  (eval $ac_compile) 2>&5
7802  ac_status=$?
7803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804  (exit $ac_status); }; then
7805    # Now try to grab the symbols.
7806    nlist=conftest.nm
7807    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7808  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7809  ac_status=$?
7810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811  (exit $ac_status); } && test -s "$nlist"; then
7812      # Try sorting and uniquifying the output.
7813      if sort "$nlist" | uniq > "$nlist"T; then
7814        mv -f "$nlist"T "$nlist"
7815      else
7816        rm -f "$nlist"T
7817      fi
7818
7819      # Make sure that we snagged all the symbols we need.
7820      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7821        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7822          cat <<EOF > conftest.$ac_ext
7823#ifdef __cplusplus
7824extern "C" {
7825#endif
7826
7827EOF
7828          # Now generate the symbol file.
7829          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7830
7831          cat <<EOF >> conftest.$ac_ext
7832#if defined (__STDC__) && __STDC__
7833# define lt_ptr_t void *
7834#else
7835# define lt_ptr_t char *
7836# define const
7837#endif
7838
7839/* The mapping between symbol names and symbols. */
7840const struct {
7841  const char *name;
7842  lt_ptr_t address;
7843}
7844lt_preloaded_symbols[] =
7845{
7846EOF
7847          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7848          cat <<\EOF >> conftest.$ac_ext
7849  {0, (lt_ptr_t) 0}
7850};
7851
7852#ifdef __cplusplus
7853}
7854#endif
7855EOF
7856          # Now try linking the two files.
7857          mv conftest.$ac_objext conftstm.$ac_objext
7858          lt_save_LIBS="$LIBS"
7859          lt_save_CFLAGS="$CFLAGS"
7860          LIBS="conftstm.$ac_objext"
7861          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7862          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863  (eval $ac_link) 2>&5
7864  ac_status=$?
7865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7867            pipe_works=yes
7868          fi
7869          LIBS="$lt_save_LIBS"
7870          CFLAGS="$lt_save_CFLAGS"
7871        else
7872          echo "cannot find nm_test_func in $nlist" >&5
7873        fi
7874      else
7875        echo "cannot find nm_test_var in $nlist" >&5
7876      fi
7877    else
7878      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7879    fi
7880  else
7881    echo "$progname: failed program was:" >&5
7882    cat conftest.$ac_ext >&5
7883  fi
7884  rm -f conftest* conftst*
7885
7886  # Do not use the global_symbol_pipe unless it works.
7887  if test "$pipe_works" = yes; then
7888    break
7889  else
7890    lt_cv_sys_global_symbol_pipe=
7891  fi
7892done
7893
7894fi
7895
7896if test -z "$lt_cv_sys_global_symbol_pipe"; then
7897  lt_cv_sys_global_symbol_to_cdecl=
7898fi
7899if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7900  echo "$as_me:$LINENO: result: failed" >&5
7901echo "${ECHO_T}failed" >&6
7902else
7903  echo "$as_me:$LINENO: result: ok" >&5
7904echo "${ECHO_T}ok" >&6
7905fi
7906
7907echo "$as_me:$LINENO: checking for objdir" >&5
7908echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7909if test "${lt_cv_objdir+set}" = set; then
7910  echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912  rm -f .libs 2>/dev/null
7913mkdir .libs 2>/dev/null
7914if test -d .libs; then
7915  lt_cv_objdir=.libs
7916else
7917  # MS-DOS does not allow filenames that begin with a dot.
7918  lt_cv_objdir=_libs
7919fi
7920rmdir .libs 2>/dev/null
7921fi
7922echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7923echo "${ECHO_T}$lt_cv_objdir" >&6
7924objdir=$lt_cv_objdir
7925
7926
7927
7928
7929
7930case $host_os in
7931aix3*)
7932  # AIX sometimes has problems with the GCC collect2 program.  For some
7933  # reason, if we set the COLLECT_NAMES environment variable, the problems
7934  # vanish in a puff of smoke.
7935  if test "X${COLLECT_NAMES+set}" != Xset; then
7936    COLLECT_NAMES=
7937    export COLLECT_NAMES
7938  fi
7939  ;;
7940esac
7941
7942# Sed substitution that helps us do robust quoting.  It backslashifies
7943# metacharacters that are still active within double-quoted strings.
7944Xsed='sed -e 1s/^X//'
7945sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7946
7947# Same as above, but do not quote variable references.
7948double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7949
7950# Sed substitution to delay expansion of an escaped shell variable in a
7951# double_quote_subst'ed string.
7952delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7953
7954# Sed substitution to avoid accidental globbing in evaled expressions
7955no_glob_subst='s/\*/\\\*/g'
7956
7957# Constants:
7958rm="rm -f"
7959
7960# Global variables:
7961default_ofile=libtool
7962can_build_shared=yes
7963
7964# All known linkers require a `.a' archive for static linking (except MSVC,
7965# which needs '.lib').
7966libext=a
7967ltmain="$ac_aux_dir/ltmain.sh"
7968ofile="$default_ofile"
7969with_gnu_ld="$lt_cv_prog_gnu_ld"
7970
7971if test -n "$ac_tool_prefix"; then
7972  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7973set dummy ${ac_tool_prefix}ar; ac_word=$2
7974echo "$as_me:$LINENO: checking for $ac_word" >&5
7975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7976if test "${ac_cv_prog_AR+set}" = set; then
7977  echo $ECHO_N "(cached) $ECHO_C" >&6
7978else
7979  if test -n "$AR"; then
7980  ac_cv_prog_AR="$AR" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985  IFS=$as_save_IFS
7986  test -z "$as_dir" && as_dir=.
7987  for ac_exec_ext in '' $ac_executable_extensions; do
7988  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989    ac_cv_prog_AR="${ac_tool_prefix}ar"
7990    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991    break 2
7992  fi
7993done
7994done
7995
7996fi
7997fi
7998AR=$ac_cv_prog_AR
7999if test -n "$AR"; then
8000  echo "$as_me:$LINENO: result: $AR" >&5
8001echo "${ECHO_T}$AR" >&6
8002else
8003  echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6
8005fi
8006
8007fi
8008if test -z "$ac_cv_prog_AR"; then
8009  ac_ct_AR=$AR
8010  # Extract the first word of "ar", so it can be a program name with args.
8011set dummy ar; ac_word=$2
8012echo "$as_me:$LINENO: checking for $ac_word" >&5
8013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8014if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8015  echo $ECHO_N "(cached) $ECHO_C" >&6
8016else
8017  if test -n "$ac_ct_AR"; then
8018  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8019else
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023  IFS=$as_save_IFS
8024  test -z "$as_dir" && as_dir=.
8025  for ac_exec_ext in '' $ac_executable_extensions; do
8026  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027    ac_cv_prog_ac_ct_AR="ar"
8028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029    break 2
8030  fi
8031done
8032done
8033
8034  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8035fi
8036fi
8037ac_ct_AR=$ac_cv_prog_ac_ct_AR
8038if test -n "$ac_ct_AR"; then
8039  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8040echo "${ECHO_T}$ac_ct_AR" >&6
8041else
8042  echo "$as_me:$LINENO: result: no" >&5
8043echo "${ECHO_T}no" >&6
8044fi
8045
8046  AR=$ac_ct_AR
8047else
8048  AR="$ac_cv_prog_AR"
8049fi
8050
8051if test -n "$ac_tool_prefix"; then
8052  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8053set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8054echo "$as_me:$LINENO: checking for $ac_word" >&5
8055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8056if test "${ac_cv_prog_RANLIB+set}" = set; then
8057  echo $ECHO_N "(cached) $ECHO_C" >&6
8058else
8059  if test -n "$RANLIB"; then
8060  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8061else
8062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063for as_dir in $PATH
8064do
8065  IFS=$as_save_IFS
8066  test -z "$as_dir" && as_dir=.
8067  for ac_exec_ext in '' $ac_executable_extensions; do
8068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8070    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071    break 2
8072  fi
8073done
8074done
8075
8076fi
8077fi
8078RANLIB=$ac_cv_prog_RANLIB
8079if test -n "$RANLIB"; then
8080  echo "$as_me:$LINENO: result: $RANLIB" >&5
8081echo "${ECHO_T}$RANLIB" >&6
8082else
8083  echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6
8085fi
8086
8087fi
8088if test -z "$ac_cv_prog_RANLIB"; then
8089  ac_ct_RANLIB=$RANLIB
8090  # Extract the first word of "ranlib", so it can be a program name with args.
8091set dummy ranlib; ac_word=$2
8092echo "$as_me:$LINENO: checking for $ac_word" >&5
8093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8094if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8095  echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097  if test -n "$ac_ct_RANLIB"; then
8098  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8099else
8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103  IFS=$as_save_IFS
8104  test -z "$as_dir" && as_dir=.
8105  for ac_exec_ext in '' $ac_executable_extensions; do
8106  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107    ac_cv_prog_ac_ct_RANLIB="ranlib"
8108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8109    break 2
8110  fi
8111done
8112done
8113
8114  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8115fi
8116fi
8117ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8118if test -n "$ac_ct_RANLIB"; then
8119  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8120echo "${ECHO_T}$ac_ct_RANLIB" >&6
8121else
8122  echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
8124fi
8125
8126  RANLIB=$ac_ct_RANLIB
8127else
8128  RANLIB="$ac_cv_prog_RANLIB"
8129fi
8130
8131if test -n "$ac_tool_prefix"; then
8132  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8133set dummy ${ac_tool_prefix}strip; ac_word=$2
8134echo "$as_me:$LINENO: checking for $ac_word" >&5
8135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8136if test "${ac_cv_prog_STRIP+set}" = set; then
8137  echo $ECHO_N "(cached) $ECHO_C" >&6
8138else
8139  if test -n "$STRIP"; then
8140  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8141else
8142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143for as_dir in $PATH
8144do
8145  IFS=$as_save_IFS
8146  test -z "$as_dir" && as_dir=.
8147  for ac_exec_ext in '' $ac_executable_extensions; do
8148  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8151    break 2
8152  fi
8153done
8154done
8155
8156fi
8157fi
8158STRIP=$ac_cv_prog_STRIP
8159if test -n "$STRIP"; then
8160  echo "$as_me:$LINENO: result: $STRIP" >&5
8161echo "${ECHO_T}$STRIP" >&6
8162else
8163  echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6
8165fi
8166
8167fi
8168if test -z "$ac_cv_prog_STRIP"; then
8169  ac_ct_STRIP=$STRIP
8170  # Extract the first word of "strip", so it can be a program name with args.
8171set dummy strip; ac_word=$2
8172echo "$as_me:$LINENO: checking for $ac_word" >&5
8173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8174if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8175  echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177  if test -n "$ac_ct_STRIP"; then
8178  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8179else
8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183  IFS=$as_save_IFS
8184  test -z "$as_dir" && as_dir=.
8185  for ac_exec_ext in '' $ac_executable_extensions; do
8186  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8187    ac_cv_prog_ac_ct_STRIP="strip"
8188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189    break 2
8190  fi
8191done
8192done
8193
8194  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8195fi
8196fi
8197ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8198if test -n "$ac_ct_STRIP"; then
8199  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8200echo "${ECHO_T}$ac_ct_STRIP" >&6
8201else
8202  echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6
8204fi
8205
8206  STRIP=$ac_ct_STRIP
8207else
8208  STRIP="$ac_cv_prog_STRIP"
8209fi
8210
8211
8212old_CC="$CC"
8213old_CFLAGS="$CFLAGS"
8214
8215# Set sane defaults for various variables
8216test -z "$AR" && AR=ar
8217test -z "$AR_FLAGS" && AR_FLAGS=cru
8218test -z "$AS" && AS=as
8219test -z "$CC" && CC=cc
8220test -z "$LTCC" && LTCC=$CC
8221test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8222test -z "$DLLTOOL" && DLLTOOL=dlltool
8223test -z "$LD" && LD=ld
8224test -z "$LN_S" && LN_S="ln -s"
8225test -z "$MAGIC_CMD" && MAGIC_CMD=file
8226test -z "$NM" && NM=nm
8227test -z "$SED" && SED=sed
8228test -z "$OBJDUMP" && OBJDUMP=objdump
8229test -z "$RANLIB" && RANLIB=:
8230test -z "$STRIP" && STRIP=:
8231test -z "$ac_objext" && ac_objext=o
8232
8233# Determine commands to create old-style static archives.
8234old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8235old_postinstall_cmds='chmod 644 $oldlib'
8236old_postuninstall_cmds=
8237
8238if test -n "$RANLIB"; then
8239  case $host_os in
8240  openbsd*)
8241    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8242    ;;
8243  *)
8244    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8245    ;;
8246  esac
8247  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8248fi
8249
8250for cc_temp in $compiler""; do
8251  case $cc_temp in
8252    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8253    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8254    \-*) ;;
8255    *) break;;
8256  esac
8257done
8258cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8259
8260
8261# Only perform the check for file, if the check method requires it
8262case $deplibs_check_method in
8263file_magic*)
8264  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8266echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8267if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8268  echo $ECHO_N "(cached) $ECHO_C" >&6
8269else
8270  case $MAGIC_CMD in
8271[\\/*] |  ?:[\\/]*)
8272  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8273  ;;
8274*)
8275  lt_save_MAGIC_CMD="$MAGIC_CMD"
8276  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278  for ac_dir in $ac_dummy; do
8279    IFS="$lt_save_ifs"
8280    test -z "$ac_dir" && ac_dir=.
8281    if test -f $ac_dir/${ac_tool_prefix}file; then
8282      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283      if test -n "$file_magic_test_file"; then
8284        case $deplibs_check_method in
8285        "file_magic "*)
8286          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289            $EGREP "$file_magic_regex" > /dev/null; then
8290            :
8291          else
8292            cat <<EOF 1>&2
8293
8294*** Warning: the command libtool uses to detect shared libraries,
8295*** $file_magic_cmd, produces output that libtool cannot recognize.
8296*** The result is that libtool may fail to recognize shared libraries
8297*** as such.  This will affect the creation of libtool libraries that
8298*** depend on shared libraries, but programs linked with such libtool
8299*** libraries will work regardless of this problem.  Nevertheless, you
8300*** may want to report the problem to your system manager and/or to
8301*** bug-libtool@gnu.org
8302
8303EOF
8304          fi ;;
8305        esac
8306      fi
8307      break
8308    fi
8309  done
8310  IFS="$lt_save_ifs"
8311  MAGIC_CMD="$lt_save_MAGIC_CMD"
8312  ;;
8313esac
8314fi
8315
8316MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317if test -n "$MAGIC_CMD"; then
8318  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8319echo "${ECHO_T}$MAGIC_CMD" >&6
8320else
8321  echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
8323fi
8324
8325if test -z "$lt_cv_path_MAGIC_CMD"; then
8326  if test -n "$ac_tool_prefix"; then
8327    echo "$as_me:$LINENO: checking for file" >&5
8328echo $ECHO_N "checking for file... $ECHO_C" >&6
8329if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8330  echo $ECHO_N "(cached) $ECHO_C" >&6
8331else
8332  case $MAGIC_CMD in
8333[\\/*] |  ?:[\\/]*)
8334  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8335  ;;
8336*)
8337  lt_save_MAGIC_CMD="$MAGIC_CMD"
8338  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8339  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8340  for ac_dir in $ac_dummy; do
8341    IFS="$lt_save_ifs"
8342    test -z "$ac_dir" && ac_dir=.
8343    if test -f $ac_dir/file; then
8344      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8345      if test -n "$file_magic_test_file"; then
8346        case $deplibs_check_method in
8347        "file_magic "*)
8348          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8349          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8350          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8351            $EGREP "$file_magic_regex" > /dev/null; then
8352            :
8353          else
8354            cat <<EOF 1>&2
8355
8356*** Warning: the command libtool uses to detect shared libraries,
8357*** $file_magic_cmd, produces output that libtool cannot recognize.
8358*** The result is that libtool may fail to recognize shared libraries
8359*** as such.  This will affect the creation of libtool libraries that
8360*** depend on shared libraries, but programs linked with such libtool
8361*** libraries will work regardless of this problem.  Nevertheless, you
8362*** may want to report the problem to your system manager and/or to
8363*** bug-libtool@gnu.org
8364
8365EOF
8366          fi ;;
8367        esac
8368      fi
8369      break
8370    fi
8371  done
8372  IFS="$lt_save_ifs"
8373  MAGIC_CMD="$lt_save_MAGIC_CMD"
8374  ;;
8375esac
8376fi
8377
8378MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8379if test -n "$MAGIC_CMD"; then
8380  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8381echo "${ECHO_T}$MAGIC_CMD" >&6
8382else
8383  echo "$as_me:$LINENO: result: no" >&5
8384echo "${ECHO_T}no" >&6
8385fi
8386
8387  else
8388    MAGIC_CMD=:
8389  fi
8390fi
8391
8392  fi
8393  ;;
8394esac
8395
8396enable_dlopen=no
8397enable_win32_dll=no
8398
8399# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8400if test "${enable_libtool_lock+set}" = set; then
8401  enableval="$enable_libtool_lock"
8402
8403fi;
8404test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8405
8406
8407# Check whether --with-pic or --without-pic was given.
8408if test "${with_pic+set}" = set; then
8409  withval="$with_pic"
8410  pic_mode="$withval"
8411else
8412  pic_mode=default
8413fi;
8414test -z "$pic_mode" && pic_mode=default
8415
8416# Use C for the default configuration in the libtool script
8417tagname=
8418lt_save_CC="$CC"
8419ac_ext=c
8420ac_cpp='$CPP $CPPFLAGS'
8421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423ac_compiler_gnu=$ac_cv_c_compiler_gnu
8424
8425
8426# Source file extension for C test sources.
8427ac_ext=c
8428
8429# Object file extension for compiled C test sources.
8430objext=o
8431objext=$objext
8432
8433# Code to be used in simple compile tests
8434lt_simple_compile_test_code="int some_variable = 0;\n"
8435
8436# Code to be used in simple link tests
8437lt_simple_link_test_code='int main(){return(0);}\n'
8438
8439
8440# If no C compiler was specified, use CC.
8441LTCC=${LTCC-"$CC"}
8442
8443# If no C compiler flags were specified, use CFLAGS.
8444LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8445
8446# Allow CC to be a program name with arguments.
8447compiler=$CC
8448
8449
8450# save warnings/boilerplate of simple test code
8451ac_outfile=conftest.$ac_objext
8452printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8453eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8454_lt_compiler_boilerplate=`cat conftest.err`
8455$rm conftest*
8456
8457ac_outfile=conftest.$ac_objext
8458printf "$lt_simple_link_test_code" >conftest.$ac_ext
8459eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8460_lt_linker_boilerplate=`cat conftest.err`
8461$rm conftest*
8462
8463
8464## CAVEAT EMPTOR:
8465## There is no encapsulation within the following macros, do not change
8466## the running order or otherwise move them around unless you know exactly
8467## what you are doing...
8468
8469lt_prog_compiler_no_builtin_flag=
8470
8471if test "$GCC" = yes; then
8472  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8473
8474
8475echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8476echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8477if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8478  echo $ECHO_N "(cached) $ECHO_C" >&6
8479else
8480  lt_cv_prog_compiler_rtti_exceptions=no
8481  ac_outfile=conftest.$ac_objext
8482   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8483   lt_compiler_flag="-fno-rtti -fno-exceptions"
8484   # Insert the option either (1) after the last *FLAGS variable, or
8485   # (2) before a word containing "conftest.", or (3) at the end.
8486   # Note that $ac_compile itself does not contain backslashes and begins
8487   # with a dollar sign (not a hyphen), so the echo should work correctly.
8488   # The option is referenced via a variable to avoid confusing sed.
8489   lt_compile=`echo "$ac_compile" | $SED \
8490   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8492   -e 's:$: $lt_compiler_flag:'`
8493   (eval echo "\"\$as_me:8493: $lt_compile\"" >&5)
8494   (eval "$lt_compile" 2>conftest.err)
8495   ac_status=$?
8496   cat conftest.err >&5
8497   echo "$as_me:8497: \$? = $ac_status" >&5
8498   if (exit $ac_status) && test -s "$ac_outfile"; then
8499     # The compiler can only warn and ignore the option if not recognized
8500     # So say no if there are warnings other than the usual output.
8501     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8502     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8503     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8504       lt_cv_prog_compiler_rtti_exceptions=yes
8505     fi
8506   fi
8507   $rm conftest*
8508
8509fi
8510echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8511echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8512
8513if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8514    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8515else
8516    :
8517fi
8518
8519fi
8520
8521lt_prog_compiler_wl=
8522lt_prog_compiler_pic=
8523lt_prog_compiler_static=
8524
8525echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8526echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8527
8528  if test "$GCC" = yes; then
8529    lt_prog_compiler_wl='-Wl,'
8530    lt_prog_compiler_static='-static'
8531
8532    case $host_os in
8533      aix*)
8534      # All AIX code is PIC.
8535      if test "$host_cpu" = ia64; then
8536        # AIX 5 now supports IA64 processor
8537        lt_prog_compiler_static='-Bstatic'
8538      fi
8539      ;;
8540
8541    amigaos*)
8542      # FIXME: we need at least 68020 code to build shared libraries, but
8543      # adding the `-m68020' flag to GCC prevents building anything better,
8544      # like `-m68040'.
8545      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8546      ;;
8547
8548    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8549      # PIC is the default for these OSes.
8550      ;;
8551
8552    mingw* | pw32* | os2*)
8553      # This hack is so that the source file can tell whether it is being
8554      # built for inclusion in a dll (and should export symbols for example).
8555      lt_prog_compiler_pic='-DDLL_EXPORT'
8556      ;;
8557
8558    darwin* | rhapsody*)
8559      # PIC is the default on this platform
8560      # Common symbols not allowed in MH_DYLIB files
8561      lt_prog_compiler_pic='-fno-common'
8562      ;;
8563
8564    interix3*)
8565      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8566      # Instead, we relocate shared libraries at runtime.
8567      ;;
8568
8569    msdosdjgpp*)
8570      # Just because we use GCC doesn't mean we suddenly get shared libraries
8571      # on systems that don't support them.
8572      lt_prog_compiler_can_build_shared=no
8573      enable_shared=no
8574      ;;
8575
8576    sysv4*MP*)
8577      if test -d /usr/nec; then
8578        lt_prog_compiler_pic=-Kconform_pic
8579      fi
8580      ;;
8581
8582    hpux*)
8583      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8584      # not for PA HP-UX.
8585      case $host_cpu in
8586      hppa*64*|ia64*)
8587        # +Z the default
8588        ;;
8589      *)
8590        lt_prog_compiler_pic='-fPIC'
8591        ;;
8592      esac
8593      ;;
8594
8595    *)
8596      lt_prog_compiler_pic='-fPIC'
8597      ;;
8598    esac
8599  else
8600    # PORTME Check for flag to pass linker flags through the system compiler.
8601    case $host_os in
8602    aix*)
8603      lt_prog_compiler_wl='-Wl,'
8604      if test "$host_cpu" = ia64; then
8605        # AIX 5 now supports IA64 processor
8606        lt_prog_compiler_static='-Bstatic'
8607      else
8608        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8609      fi
8610      ;;
8611      darwin*)
8612        # PIC is the default on this platform
8613        # Common symbols not allowed in MH_DYLIB files
8614       case $cc_basename in
8615         xlc*)
8616         lt_prog_compiler_pic='-qnocommon'
8617         lt_prog_compiler_wl='-Wl,'
8618         ;;
8619       esac
8620       ;;
8621
8622    mingw* | pw32* | os2*)
8623      # This hack is so that the source file can tell whether it is being
8624      # built for inclusion in a dll (and should export symbols for example).
8625      lt_prog_compiler_pic='-DDLL_EXPORT'
8626      ;;
8627
8628    hpux9* | hpux10* | hpux11*)
8629      lt_prog_compiler_wl='-Wl,'
8630      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8631      # not for PA HP-UX.
8632      case $host_cpu in
8633      hppa*64*|ia64*)
8634        # +Z the default
8635        ;;
8636      *)
8637        lt_prog_compiler_pic='+Z'
8638        ;;
8639      esac
8640      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8641      lt_prog_compiler_static='${wl}-a ${wl}archive'
8642      ;;
8643
8644    irix5* | irix6* | nonstopux*)
8645      lt_prog_compiler_wl='-Wl,'
8646      # PIC (with -KPIC) is the default.
8647      lt_prog_compiler_static='-non_shared'
8648      ;;
8649
8650    newsos6)
8651      lt_prog_compiler_pic='-KPIC'
8652      lt_prog_compiler_static='-Bstatic'
8653      ;;
8654
8655    linux*)
8656      case $cc_basename in
8657      icc* | ecc*)
8658        lt_prog_compiler_wl='-Wl,'
8659        lt_prog_compiler_pic='-KPIC'
8660        lt_prog_compiler_static='-static'
8661        ;;
8662      pgcc* | pgf77* | pgf90* | pgf95*)
8663        # Portland Group compilers (*not* the Pentium gcc compiler,
8664        # which looks to be a dead project)
8665        lt_prog_compiler_wl='-Wl,'
8666        lt_prog_compiler_pic='-fpic'
8667        lt_prog_compiler_static='-Bstatic'
8668        ;;
8669      ccc*)
8670        lt_prog_compiler_wl='-Wl,'
8671        # All Alpha code is PIC.
8672        lt_prog_compiler_static='-non_shared'
8673        ;;
8674      esac
8675      ;;
8676
8677    osf3* | osf4* | osf5*)
8678      lt_prog_compiler_wl='-Wl,'
8679      # All OSF/1 code is PIC.
8680      lt_prog_compiler_static='-non_shared'
8681      ;;
8682
8683    solaris*)
8684      lt_prog_compiler_pic='-KPIC'
8685      lt_prog_compiler_static='-Bstatic'
8686      case $cc_basename in
8687      f77* | f90* | f95*)
8688        lt_prog_compiler_wl='-Qoption ld ';;
8689      *)
8690        lt_prog_compiler_wl='-Wl,';;
8691      esac
8692      ;;
8693
8694    sunos4*)
8695      lt_prog_compiler_wl='-Qoption ld '
8696      lt_prog_compiler_pic='-PIC'
8697      lt_prog_compiler_static='-Bstatic'
8698      ;;
8699
8700    sysv4 | sysv4.2uw2* | sysv4.3*)
8701      lt_prog_compiler_wl='-Wl,'
8702      lt_prog_compiler_pic='-KPIC'
8703      lt_prog_compiler_static='-Bstatic'
8704      ;;
8705
8706    sysv4*MP*)
8707      if test -d /usr/nec ;then
8708        lt_prog_compiler_pic='-Kconform_pic'
8709        lt_prog_compiler_static='-Bstatic'
8710      fi
8711      ;;
8712
8713    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8714      lt_prog_compiler_wl='-Wl,'
8715      lt_prog_compiler_pic='-KPIC'
8716      lt_prog_compiler_static='-Bstatic'
8717      ;;
8718
8719    unicos*)
8720      lt_prog_compiler_wl='-Wl,'
8721      lt_prog_compiler_can_build_shared=no
8722      ;;
8723
8724    uts4*)
8725      lt_prog_compiler_pic='-pic'
8726      lt_prog_compiler_static='-Bstatic'
8727      ;;
8728
8729    *)
8730      lt_prog_compiler_can_build_shared=no
8731      ;;
8732    esac
8733  fi
8734
8735echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8736echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8737
8738#
8739# Check to make sure the PIC flag actually works.
8740#
8741if test -n "$lt_prog_compiler_pic"; then
8742
8743echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8744echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8745if test "${lt_prog_compiler_pic_works+set}" = set; then
8746  echo $ECHO_N "(cached) $ECHO_C" >&6
8747else
8748  lt_prog_compiler_pic_works=no
8749  ac_outfile=conftest.$ac_objext
8750   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8751   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8752   # Insert the option either (1) after the last *FLAGS variable, or
8753   # (2) before a word containing "conftest.", or (3) at the end.
8754   # Note that $ac_compile itself does not contain backslashes and begins
8755   # with a dollar sign (not a hyphen), so the echo should work correctly.
8756   # The option is referenced via a variable to avoid confusing sed.
8757   lt_compile=`echo "$ac_compile" | $SED \
8758   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8759   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8760   -e 's:$: $lt_compiler_flag:'`
8761   (eval echo "\"\$as_me:8761: $lt_compile\"" >&5)
8762   (eval "$lt_compile" 2>conftest.err)
8763   ac_status=$?
8764   cat conftest.err >&5
8765   echo "$as_me:8765: \$? = $ac_status" >&5
8766   if (exit $ac_status) && test -s "$ac_outfile"; then
8767     # The compiler can only warn and ignore the option if not recognized
8768     # So say no if there are warnings other than the usual output.
8769     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8770     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8771     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8772       lt_prog_compiler_pic_works=yes
8773     fi
8774   fi
8775   $rm conftest*
8776
8777fi
8778echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8779echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8780
8781if test x"$lt_prog_compiler_pic_works" = xyes; then
8782    case $lt_prog_compiler_pic in
8783     "" | " "*) ;;
8784     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8785     esac
8786else
8787    lt_prog_compiler_pic=
8788     lt_prog_compiler_can_build_shared=no
8789fi
8790
8791fi
8792case $host_os in
8793  # For platforms which do not support PIC, -DPIC is meaningless:
8794  *djgpp*)
8795    lt_prog_compiler_pic=
8796    ;;
8797  *)
8798    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8799    ;;
8800esac
8801
8802#
8803# Check to make sure the static flag actually works.
8804#
8805wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8806echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8807echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8808if test "${lt_prog_compiler_static_works+set}" = set; then
8809  echo $ECHO_N "(cached) $ECHO_C" >&6
8810else
8811  lt_prog_compiler_static_works=no
8812   save_LDFLAGS="$LDFLAGS"
8813   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8814   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8815   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8816     # The linker can only warn and ignore the option if not recognized
8817     # So say no if there are warnings
8818     if test -s conftest.err; then
8819       # Append any errors to the config.log.
8820       cat conftest.err 1>&5
8821       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8822       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8823       if diff conftest.exp conftest.er2 >/dev/null; then
8824         lt_prog_compiler_static_works=yes
8825       fi
8826     else
8827       lt_prog_compiler_static_works=yes
8828     fi
8829   fi
8830   $rm conftest*
8831   LDFLAGS="$save_LDFLAGS"
8832
8833fi
8834echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8835echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8836
8837if test x"$lt_prog_compiler_static_works" = xyes; then
8838    :
8839else
8840    lt_prog_compiler_static=
8841fi
8842
8843
8844echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8845echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8846if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8847  echo $ECHO_N "(cached) $ECHO_C" >&6
8848else
8849  lt_cv_prog_compiler_c_o=no
8850   $rm -r conftest 2>/dev/null
8851   mkdir conftest
8852   cd conftest
8853   mkdir out
8854   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8855
8856   lt_compiler_flag="-o out/conftest2.$ac_objext"
8857   # Insert the option either (1) after the last *FLAGS variable, or
8858   # (2) before a word containing "conftest.", or (3) at the end.
8859   # Note that $ac_compile itself does not contain backslashes and begins
8860   # with a dollar sign (not a hyphen), so the echo should work correctly.
8861   lt_compile=`echo "$ac_compile" | $SED \
8862   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8863   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8864   -e 's:$: $lt_compiler_flag:'`
8865   (eval echo "\"\$as_me:8865: $lt_compile\"" >&5)
8866   (eval "$lt_compile" 2>out/conftest.err)
8867   ac_status=$?
8868   cat out/conftest.err >&5
8869   echo "$as_me:8869: \$? = $ac_status" >&5
8870   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8871   then
8872     # The compiler can only warn and ignore the option if not recognized
8873     # So say no if there are warnings
8874     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8875     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8876     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8877       lt_cv_prog_compiler_c_o=yes
8878     fi
8879   fi
8880   chmod u+w . 2>&5
8881   $rm conftest*
8882   # SGI C++ compiler will create directory out/ii_files/ for
8883   # template instantiation
8884   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8885   $rm out/* && rmdir out
8886   cd ..
8887   rmdir conftest
8888   $rm conftest*
8889
8890fi
8891echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8892echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8893
8894
8895hard_links="nottested"
8896if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8897  # do not overwrite the value of need_locks provided by the user
8898  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8899echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8900  hard_links=yes
8901  $rm conftest*
8902  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8903  touch conftest.a
8904  ln conftest.a conftest.b 2>&5 || hard_links=no
8905  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8906  echo "$as_me:$LINENO: result: $hard_links" >&5
8907echo "${ECHO_T}$hard_links" >&6
8908  if test "$hard_links" = no; then
8909    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8910echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8911    need_locks=warn
8912  fi
8913else
8914  need_locks=no
8915fi
8916
8917echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8918echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8919
8920  runpath_var=
8921  allow_undefined_flag=
8922  enable_shared_with_static_runtimes=no
8923  archive_cmds=
8924  archive_expsym_cmds=
8925  old_archive_From_new_cmds=
8926  old_archive_from_expsyms_cmds=
8927  export_dynamic_flag_spec=
8928  whole_archive_flag_spec=
8929  thread_safe_flag_spec=
8930  hardcode_libdir_flag_spec=
8931  hardcode_libdir_flag_spec_ld=
8932  hardcode_libdir_separator=
8933  hardcode_direct=no
8934  hardcode_minus_L=no
8935  hardcode_shlibpath_var=unsupported
8936  link_all_deplibs=unknown
8937  hardcode_automatic=no
8938  module_cmds=
8939  module_expsym_cmds=
8940  always_export_symbols=no
8941  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8942  # include_expsyms should be a list of space-separated symbols to be *always*
8943  # included in the symbol list
8944  include_expsyms=
8945  # exclude_expsyms can be an extended regexp of symbols to exclude
8946  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8947  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8948  # as well as any symbol that contains `d'.
8949  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8950  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8951  # platforms (ab)use it in PIC code, but their linkers get confused if
8952  # the symbol is explicitly referenced.  Since portable code cannot
8953  # rely on this symbol name, it's probably fine to never include it in
8954  # preloaded symbol tables.
8955  extract_expsyms_cmds=
8956  # Just being paranoid about ensuring that cc_basename is set.
8957  for cc_temp in $compiler""; do
8958  case $cc_temp in
8959    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8960    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8961    \-*) ;;
8962    *) break;;
8963  esac
8964done
8965cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8966
8967  case $host_os in
8968  cygwin* | mingw* | pw32*)
8969    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8970    # When not using gcc, we currently assume that we are using
8971    # Microsoft Visual C++.
8972    if test "$GCC" != yes; then
8973      with_gnu_ld=no
8974    fi
8975    ;;
8976  interix*)
8977    # we just hope/assume this is gcc and not c89 (= MSVC++)
8978    with_gnu_ld=yes
8979    ;;
8980  openbsd*)
8981    with_gnu_ld=no
8982    ;;
8983  esac
8984
8985  ld_shlibs=yes
8986  if test "$with_gnu_ld" = yes; then
8987    # If archive_cmds runs LD, not CC, wlarc should be empty
8988    wlarc='${wl}'
8989
8990    # Set some defaults for GNU ld with shared library support. These
8991    # are reset later if shared libraries are not supported. Putting them
8992    # here allows them to be overridden if necessary.
8993    runpath_var=LD_RUN_PATH
8994    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8995    export_dynamic_flag_spec='${wl}--export-dynamic'
8996    # ancient GNU ld didn't support --whole-archive et. al.
8997    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8998        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8999      else
9000        whole_archive_flag_spec=
9001    fi
9002    supports_anon_versioning=no
9003    case `$LD -v 2>/dev/null` in
9004      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9005      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9006      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9007      *\ 2.11.*) ;; # other 2.11 versions
9008      *) supports_anon_versioning=yes ;;
9009    esac
9010
9011    # See if GNU ld supports shared libraries.
9012    case $host_os in
9013    aix3* | aix4* | aix5*)
9014      # On AIX/PPC, the GNU linker is very broken
9015      if test "$host_cpu" != ia64; then
9016        ld_shlibs=no
9017        cat <<EOF 1>&2
9018
9019*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9020*** to be unable to reliably create shared libraries on AIX.
9021*** Therefore, libtool is disabling shared libraries support.  If you
9022*** really care for shared libraries, you may want to modify your PATH
9023*** so that a non-GNU linker is found, and then restart.
9024
9025EOF
9026      fi
9027      ;;
9028
9029    amigaos*)
9030      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)'
9031      hardcode_libdir_flag_spec='-L$libdir'
9032      hardcode_minus_L=yes
9033
9034      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9035      # that the semantics of dynamic libraries on AmigaOS, at least up
9036      # to version 4, is to share data among multiple programs linked
9037      # with the same dynamic library.  Since this doesn't match the
9038      # behavior of shared libraries on other platforms, we can't use
9039      # them.
9040      ld_shlibs=no
9041      ;;
9042
9043    beos*)
9044      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9045        allow_undefined_flag=unsupported
9046        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9047        # support --undefined.  This deserves some investigation.  FIXME
9048        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9049      else
9050        ld_shlibs=no
9051      fi
9052      ;;
9053
9054    cygwin* | mingw* | pw32*)
9055      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9056      # as there is no search path for DLLs.
9057      hardcode_libdir_flag_spec='-L$libdir'
9058      allow_undefined_flag=unsupported
9059      always_export_symbols=no
9060      enable_shared_with_static_runtimes=yes
9061      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9062
9063      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9064        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9065        # If the export-symbols file already is a .def file (1st line
9066        # is EXPORTS), use it as is; otherwise, prepend...
9067        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9068          cp $export_symbols $output_objdir/$soname.def;
9069        else
9070          echo EXPORTS > $output_objdir/$soname.def;
9071          cat $export_symbols >> $output_objdir/$soname.def;
9072        fi~
9073        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9074      else
9075        ld_shlibs=no
9076      fi
9077      ;;
9078
9079    interix3*)
9080      hardcode_direct=no
9081      hardcode_shlibpath_var=no
9082      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9083      export_dynamic_flag_spec='${wl}-E'
9084      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9085      # Instead, shared libraries are loaded at an image base (0x10000000 by
9086      # default) and relocated if they conflict, which is a slow very memory
9087      # consuming and fragmenting process.  To avoid this, we pick a random,
9088      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9089      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9090      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9091      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'
9092      ;;
9093
9094    linux*)
9095      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9096        tmp_addflag=
9097        case $cc_basename,$host_cpu in
9098        pgcc*)                          # Portland Group C compiler
9099          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'
9100          tmp_addflag=' $pic_flag'
9101          ;;
9102        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9103          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'
9104          tmp_addflag=' $pic_flag -Mnomain' ;;
9105        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9106          tmp_addflag=' -i_dynamic' ;;
9107        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9108          tmp_addflag=' -i_dynamic -nofor_main' ;;
9109        ifc* | ifort*)                  # Intel Fortran compiler
9110          tmp_addflag=' -nofor_main' ;;
9111        esac
9112        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9113
9114        if test $supports_anon_versioning = yes; then
9115          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9116  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9117  $echo "local: *; };" >> $output_objdir/$libname.ver~
9118          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9119        fi
9120      else
9121        ld_shlibs=no
9122      fi
9123      ;;
9124
9125    netbsd*)
9126      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9127        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9128        wlarc=
9129      else
9130        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9131        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9132      fi
9133      ;;
9134
9135    solaris*)
9136      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9137        ld_shlibs=no
9138        cat <<EOF 1>&2
9139
9140*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9141*** create shared libraries on Solaris systems.  Therefore, libtool
9142*** is disabling shared libraries support.  We urge you to upgrade GNU
9143*** binutils to release 2.9.1 or newer.  Another option is to modify
9144*** your PATH or compiler configuration so that the native linker is
9145*** used, and then restart.
9146
9147EOF
9148      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9149        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9150        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9151      else
9152        ld_shlibs=no
9153      fi
9154      ;;
9155
9156    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9157      case `$LD -v 2>&1` in
9158        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9159        ld_shlibs=no
9160        cat <<_LT_EOF 1>&2
9161
9162*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9163*** reliably create shared libraries on SCO systems.  Therefore, libtool
9164*** is disabling shared libraries support.  We urge you to upgrade GNU
9165*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9166*** your PATH or compiler configuration so that the native linker is
9167*** used, and then restart.
9168
9169_LT_EOF
9170        ;;
9171        *)
9172          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9173            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9174            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9175            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9176          else
9177            ld_shlibs=no
9178          fi
9179        ;;
9180      esac
9181      ;;
9182
9183    sunos4*)
9184      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9185      wlarc=
9186      hardcode_direct=yes
9187      hardcode_shlibpath_var=no
9188      ;;
9189
9190    *)
9191      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9192        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9194      else
9195        ld_shlibs=no
9196      fi
9197      ;;
9198    esac
9199
9200    if test "$ld_shlibs" = no; then
9201      runpath_var=
9202      hardcode_libdir_flag_spec=
9203      export_dynamic_flag_spec=
9204      whole_archive_flag_spec=
9205    fi
9206  else
9207    # PORTME fill in a description of your system's linker (not GNU ld)
9208    case $host_os in
9209    aix3*)
9210      allow_undefined_flag=unsupported
9211      always_export_symbols=yes
9212      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'
9213      # Note: this linker hardcodes the directories in LIBPATH if there
9214      # are no directories specified by -L.
9215      hardcode_minus_L=yes
9216      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9217        # Neither direct hardcoding nor static linking is supported with a
9218        # broken collect2.
9219        hardcode_direct=unsupported
9220      fi
9221      ;;
9222
9223    aix4* | aix5*)
9224      if test "$host_cpu" = ia64; then
9225        # On IA64, the linker does run time linking by default, so we don't
9226        # have to do anything special.
9227        aix_use_runtimelinking=no
9228        exp_sym_flag='-Bexport'
9229        no_entry_flag=""
9230      else
9231        # If we're using GNU nm, then we don't want the "-C" option.
9232        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9233        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9234          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'
9235        else
9236          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'
9237        fi
9238        aix_use_runtimelinking=no
9239
9240        # Test if we are trying to use run time linking or normal
9241        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9242        # need to do runtime linking.
9243        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9244          for ld_flag in $LDFLAGS; do
9245          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9246            aix_use_runtimelinking=yes
9247            break
9248          fi
9249          done
9250          ;;
9251        esac
9252
9253        exp_sym_flag='-bexport'
9254        no_entry_flag='-bnoentry'
9255      fi
9256
9257      # When large executables or shared objects are built, AIX ld can
9258      # have problems creating the table of contents.  If linking a library
9259      # or program results in "error TOC overflow" add -mminimal-toc to
9260      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9261      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9262
9263      archive_cmds=''
9264      hardcode_direct=yes
9265      hardcode_libdir_separator=':'
9266      link_all_deplibs=yes
9267
9268      if test "$GCC" = yes; then
9269        case $host_os in aix4.[012]|aix4.[012].*)
9270        # We only want to do this on AIX 4.2 and lower, the check
9271        # below for broken collect2 doesn't work under 4.3+
9272          collect2name=`${CC} -print-prog-name=collect2`
9273          if test -f "$collect2name" && \
9274           strings "$collect2name" | grep resolve_lib_name >/dev/null
9275          then
9276          # We have reworked collect2
9277          hardcode_direct=yes
9278          else
9279          # We have old collect2
9280          hardcode_direct=unsupported
9281          # It fails to find uninstalled libraries when the uninstalled
9282          # path is not listed in the libpath.  Setting hardcode_minus_L
9283          # to unsupported forces relinking
9284          hardcode_minus_L=yes
9285          hardcode_libdir_flag_spec='-L$libdir'
9286          hardcode_libdir_separator=
9287          fi
9288          ;;
9289        esac
9290        shared_flag='-shared'
9291        if test "$aix_use_runtimelinking" = yes; then
9292          shared_flag="$shared_flag "'${wl}-G'
9293        fi
9294      else
9295        # not using gcc
9296        if test "$host_cpu" = ia64; then
9297        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9298        # chokes on -Wl,-G. The following line is correct:
9299          shared_flag='-G'
9300        else
9301          if test "$aix_use_runtimelinking" = yes; then
9302            shared_flag='${wl}-G'
9303          else
9304            shared_flag='${wl}-bM:SRE'
9305          fi
9306        fi
9307      fi
9308
9309      # It seems that -bexpall does not export symbols beginning with
9310      # underscore (_), so it is better to generate a list of symbols to export.
9311      always_export_symbols=yes
9312      if test "$aix_use_runtimelinking" = yes; then
9313        # Warning - without using the other runtime loading flags (-brtl),
9314        # -berok will link without error, but may produce a broken library.
9315        allow_undefined_flag='-berok'
9316       # Determine the default libpath from the value encoded in an empty executable.
9317       cat >conftest.$ac_ext <<_ACEOF
9318/* confdefs.h.  */
9319_ACEOF
9320cat confdefs.h >>conftest.$ac_ext
9321cat >>conftest.$ac_ext <<_ACEOF
9322/* end confdefs.h.  */
9323
9324int
9325main ()
9326{
9327
9328  ;
9329  return 0;
9330}
9331_ACEOF
9332rm -f conftest.$ac_objext conftest$ac_exeext
9333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334  (eval $ac_link) 2>conftest.er1
9335  ac_status=$?
9336  grep -v '^ *+' conftest.er1 >conftest.err
9337  rm -f conftest.er1
9338  cat conftest.err >&5
9339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340  (exit $ac_status); } &&
9341         { ac_try='test -z "$ac_c_werror_flag"
9342                         || test ! -s conftest.err'
9343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344  (eval $ac_try) 2>&5
9345  ac_status=$?
9346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347  (exit $ac_status); }; } &&
9348         { ac_try='test -s conftest$ac_exeext'
9349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350  (eval $ac_try) 2>&5
9351  ac_status=$?
9352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353  (exit $ac_status); }; }; then
9354
9355aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9356}'`
9357# Check for a 64-bit object if we didn't find anything.
9358if 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; }
9359}'`; fi
9360else
9361  echo "$as_me: failed program was:" >&5
9362sed 's/^/| /' conftest.$ac_ext >&5
9363
9364fi
9365rm -f conftest.err conftest.$ac_objext \
9366      conftest$ac_exeext conftest.$ac_ext
9367if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9368
9369       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9370        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"
9371       else
9372        if test "$host_cpu" = ia64; then
9373          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9374          allow_undefined_flag="-z nodefs"
9375          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"
9376        else
9377         # Determine the default libpath from the value encoded in an empty executable.
9378         cat >conftest.$ac_ext <<_ACEOF
9379/* confdefs.h.  */
9380_ACEOF
9381cat confdefs.h >>conftest.$ac_ext
9382cat >>conftest.$ac_ext <<_ACEOF
9383/* end confdefs.h.  */
9384
9385int
9386main ()
9387{
9388
9389  ;
9390  return 0;
9391}
9392_ACEOF
9393rm -f conftest.$ac_objext conftest$ac_exeext
9394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395  (eval $ac_link) 2>conftest.er1
9396  ac_status=$?
9397  grep -v '^ *+' conftest.er1 >conftest.err
9398  rm -f conftest.er1
9399  cat conftest.err >&5
9400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401  (exit $ac_status); } &&
9402         { ac_try='test -z "$ac_c_werror_flag"
9403                         || test ! -s conftest.err'
9404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405  (eval $ac_try) 2>&5
9406  ac_status=$?
9407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408  (exit $ac_status); }; } &&
9409         { ac_try='test -s conftest$ac_exeext'
9410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411  (eval $ac_try) 2>&5
9412  ac_status=$?
9413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414  (exit $ac_status); }; }; then
9415
9416aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9417}'`
9418# Check for a 64-bit object if we didn't find anything.
9419if 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; }
9420}'`; fi
9421else
9422  echo "$as_me: failed program was:" >&5
9423sed 's/^/| /' conftest.$ac_ext >&5
9424
9425fi
9426rm -f conftest.err conftest.$ac_objext \
9427      conftest$ac_exeext conftest.$ac_ext
9428if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9429
9430         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9431          # Warning - without using the other run time loading flags,
9432          # -berok will link without error, but may produce a broken library.
9433          no_undefined_flag=' ${wl}-bernotok'
9434          allow_undefined_flag=' ${wl}-berok'
9435          # Exported symbols can be pulled into shared objects from archives
9436          whole_archive_flag_spec='$convenience'
9437          archive_cmds_need_lc=yes
9438          # This is similar to how AIX traditionally builds its shared libraries.
9439          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'
9440        fi
9441      fi
9442      ;;
9443
9444    amigaos*)
9445      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)'
9446      hardcode_libdir_flag_spec='-L$libdir'
9447      hardcode_minus_L=yes
9448      # see comment about different semantics on the GNU ld section
9449      ld_shlibs=no
9450      ;;
9451
9452    bsdi[45]*)
9453      export_dynamic_flag_spec=-rdynamic
9454      ;;
9455
9456    cygwin* | mingw* | pw32*)
9457      # When not using gcc, we currently assume that we are using
9458      # Microsoft Visual C++.
9459      # hardcode_libdir_flag_spec is actually meaningless, as there is
9460      # no search path for DLLs.
9461      hardcode_libdir_flag_spec=' '
9462      allow_undefined_flag=unsupported
9463      # Tell ltmain to make .lib files, not .a files.
9464      libext=lib
9465      # Tell ltmain to make .dll files, not .so files.
9466      shrext_cmds=".dll"
9467      # FIXME: Setting linknames here is a bad hack.
9468      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9469      # The linker will automatically build a .lib file if we build a DLL.
9470      old_archive_From_new_cmds='true'
9471      # FIXME: Should let the user specify the lib program.
9472      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9473      fix_srcfile_path='`cygpath -w "$srcfile"`'
9474      enable_shared_with_static_runtimes=yes
9475      ;;
9476
9477    darwin* | rhapsody*)
9478      case $host_os in
9479        rhapsody* | darwin1.[012])
9480         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9481         ;;
9482       *) # Darwin 1.3 on
9483         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9484           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9485         else
9486           case ${MACOSX_DEPLOYMENT_TARGET} in
9487             10.[012])
9488               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9489               ;;
9490             10.*)
9491               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9492               ;;
9493           esac
9494         fi
9495         ;;
9496      esac
9497      archive_cmds_need_lc=no
9498      hardcode_direct=no
9499      hardcode_automatic=yes
9500      hardcode_shlibpath_var=unsupported
9501      whole_archive_flag_spec=''
9502      link_all_deplibs=yes
9503    if test "$GCC" = yes ; then
9504        output_verbose_link_cmd='echo'
9505        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9506      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9507      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9508      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}'
9509      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}'
9510    else
9511      case $cc_basename in
9512        xlc*)
9513         output_verbose_link_cmd='echo'
9514         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9515         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9516          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9517         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}'
9518          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}'
9519          ;;
9520       *)
9521         ld_shlibs=no
9522          ;;
9523      esac
9524    fi
9525      ;;
9526
9527    dgux*)
9528      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529      hardcode_libdir_flag_spec='-L$libdir'
9530      hardcode_shlibpath_var=no
9531      ;;
9532
9533    freebsd1*)
9534      ld_shlibs=no
9535      ;;
9536
9537    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9538    # support.  Future versions do this automatically, but an explicit c++rt0.o
9539    # does not break anything, and helps significantly (at the cost of a little
9540    # extra space).
9541    freebsd2.2*)
9542      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9543      hardcode_libdir_flag_spec='-R$libdir'
9544      hardcode_direct=yes
9545      hardcode_shlibpath_var=no
9546      ;;
9547
9548    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9549    freebsd2*)
9550      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9551      hardcode_direct=yes
9552      hardcode_minus_L=yes
9553      hardcode_shlibpath_var=no
9554      ;;
9555
9556    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9557    freebsd* | kfreebsd*-gnu | dragonfly*)
9558      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9559      hardcode_libdir_flag_spec='-R$libdir'
9560      hardcode_direct=yes
9561      hardcode_shlibpath_var=no
9562      ;;
9563
9564    hpux9*)
9565      if test "$GCC" = yes; then
9566        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'
9567      else
9568        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'
9569      fi
9570      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9571      hardcode_libdir_separator=:
9572      hardcode_direct=yes
9573
9574      # hardcode_minus_L: Not really in the search PATH,
9575      # but as the default location of the library.
9576      hardcode_minus_L=yes
9577      export_dynamic_flag_spec='${wl}-E'
9578      ;;
9579
9580    hpux10*)
9581      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9582        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9583      else
9584        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9585      fi
9586      if test "$with_gnu_ld" = no; then
9587        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9588        hardcode_libdir_separator=:
9589
9590        hardcode_direct=yes
9591        export_dynamic_flag_spec='${wl}-E'
9592
9593        # hardcode_minus_L: Not really in the search PATH,
9594        # but as the default location of the library.
9595        hardcode_minus_L=yes
9596      fi
9597      ;;
9598
9599    hpux11*)
9600      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9601        case $host_cpu in
9602        hppa*64*)
9603          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604          ;;
9605        ia64*)
9606          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9607          ;;
9608        *)
9609          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9610          ;;
9611        esac
9612      else
9613        case $host_cpu in
9614        hppa*64*)
9615          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9616          ;;
9617        ia64*)
9618          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9619          ;;
9620        *)
9621          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9622          ;;
9623        esac
9624      fi
9625      if test "$with_gnu_ld" = no; then
9626        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9627        hardcode_libdir_separator=:
9628
9629        case $host_cpu in
9630        hppa*64*|ia64*)
9631          hardcode_libdir_flag_spec_ld='+b $libdir'
9632          hardcode_direct=no
9633          hardcode_shlibpath_var=no
9634          ;;
9635        *)
9636          hardcode_direct=yes
9637          export_dynamic_flag_spec='${wl}-E'
9638
9639          # hardcode_minus_L: Not really in the search PATH,
9640          # but as the default location of the library.
9641          hardcode_minus_L=yes
9642          ;;
9643        esac
9644      fi
9645      ;;
9646
9647    irix5* | irix6* | nonstopux*)
9648      if test "$GCC" = yes; then
9649        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'
9650      else
9651        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'
9652        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9653      fi
9654      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655      hardcode_libdir_separator=:
9656      link_all_deplibs=yes
9657      ;;
9658
9659    netbsd*)
9660      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9661        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9662      else
9663        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9664      fi
9665      hardcode_libdir_flag_spec='-R$libdir'
9666      hardcode_direct=yes
9667      hardcode_shlibpath_var=no
9668      ;;
9669
9670    newsos6)
9671      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672      hardcode_direct=yes
9673      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9674      hardcode_libdir_separator=:
9675      hardcode_shlibpath_var=no
9676      ;;
9677
9678    openbsd*)
9679      hardcode_direct=yes
9680      hardcode_shlibpath_var=no
9681      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9682        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9683        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9684        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9685        export_dynamic_flag_spec='${wl}-E'
9686      else
9687       case $host_os in
9688         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9689           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9690           hardcode_libdir_flag_spec='-R$libdir'
9691           ;;
9692         *)
9693           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9694           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9695           ;;
9696       esac
9697      fi
9698      ;;
9699
9700    os2*)
9701      hardcode_libdir_flag_spec='-L$libdir'
9702      hardcode_minus_L=yes
9703      allow_undefined_flag=unsupported
9704      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'
9705      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9706      ;;
9707
9708    osf3*)
9709      if test "$GCC" = yes; then
9710        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9711        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'
9712      else
9713        allow_undefined_flag=' -expect_unresolved \*'
9714        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'
9715      fi
9716      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9717      hardcode_libdir_separator=:
9718      ;;
9719
9720    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9721      if test "$GCC" = yes; then
9722        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9723        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'
9724        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725      else
9726        allow_undefined_flag=' -expect_unresolved \*'
9727        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'
9728        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9729        $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'
9730
9731        # Both c and cxx compiler support -rpath directly
9732        hardcode_libdir_flag_spec='-rpath $libdir'
9733      fi
9734      hardcode_libdir_separator=:
9735      ;;
9736
9737    solaris*)
9738      no_undefined_flag=' -z text'
9739      if test "$GCC" = yes; then
9740        wlarc='${wl}'
9741        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9742        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9743          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9744      else
9745        wlarc=''
9746        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9748        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9749      fi
9750      hardcode_libdir_flag_spec='-R$libdir'
9751      hardcode_shlibpath_var=no
9752      case $host_os in
9753      solaris2.[0-5] | solaris2.[0-5].*) ;;
9754      *)
9755        # The compiler driver will combine linker options so we
9756        # cannot just pass the convience library names through
9757        # without $wl, iff we do not link with $LD.
9758        # Luckily, gcc supports the same syntax we need for Sun Studio.
9759        # Supported since Solaris 2.6 (maybe 2.5.1?)
9760        case $wlarc in
9761        '')
9762          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9763        *)
9764          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' ;;
9765        esac ;;
9766      esac
9767      link_all_deplibs=yes
9768      ;;
9769
9770    sunos4*)
9771      if test "x$host_vendor" = xsequent; then
9772        # Use $CC to link under sequent, because it throws in some extra .o
9773        # files that make .init and .fini sections work.
9774        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9775      else
9776        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9777      fi
9778      hardcode_libdir_flag_spec='-L$libdir'
9779      hardcode_direct=yes
9780      hardcode_minus_L=yes
9781      hardcode_shlibpath_var=no
9782      ;;
9783
9784    sysv4)
9785      case $host_vendor in
9786        sni)
9787          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9788          hardcode_direct=yes # is this really true???
9789        ;;
9790        siemens)
9791          ## LD is ld it makes a PLAMLIB
9792          ## CC just makes a GrossModule.
9793          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9794          reload_cmds='$CC -r -o $output$reload_objs'
9795          hardcode_direct=no
9796        ;;
9797        motorola)
9798          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9800        ;;
9801      esac
9802      runpath_var='LD_RUN_PATH'
9803      hardcode_shlibpath_var=no
9804      ;;
9805
9806    sysv4.3*)
9807      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9808      hardcode_shlibpath_var=no
9809      export_dynamic_flag_spec='-Bexport'
9810      ;;
9811
9812    sysv4*MP*)
9813      if test -d /usr/nec; then
9814        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9815        hardcode_shlibpath_var=no
9816        runpath_var=LD_RUN_PATH
9817        hardcode_runpath_var=yes
9818        ld_shlibs=yes
9819      fi
9820      ;;
9821
9822    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9823      no_undefined_flag='${wl}-z,text'
9824      archive_cmds_need_lc=no
9825      hardcode_shlibpath_var=no
9826      runpath_var='LD_RUN_PATH'
9827
9828      if test "$GCC" = yes; then
9829        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9831      else
9832        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9833        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834      fi
9835      ;;
9836
9837    sysv5* | sco3.2v5* | sco5v6*)
9838      # Note: We can NOT use -z defs as we might desire, because we do not
9839      # link with -lc, and that would cause any symbols used from libc to
9840      # always be unresolved, which means just about no library would
9841      # ever link correctly.  If we're not using GNU ld we use -z text
9842      # though, which does catch some bad symbols but isn't as heavy-handed
9843      # as -z defs.
9844      no_undefined_flag='${wl}-z,text'
9845      allow_undefined_flag='${wl}-z,nodefs'
9846      archive_cmds_need_lc=no
9847      hardcode_shlibpath_var=no
9848      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9849      hardcode_libdir_separator=':'
9850      link_all_deplibs=yes
9851      export_dynamic_flag_spec='${wl}-Bexport'
9852      runpath_var='LD_RUN_PATH'
9853
9854      if test "$GCC" = yes; then
9855        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9856        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9857      else
9858        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9859        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9860      fi
9861      ;;
9862
9863    uts4*)
9864      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9865      hardcode_libdir_flag_spec='-L$libdir'
9866      hardcode_shlibpath_var=no
9867      ;;
9868
9869    *)
9870      ld_shlibs=no
9871      ;;
9872    esac
9873  fi
9874
9875echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9876echo "${ECHO_T}$ld_shlibs" >&6
9877test "$ld_shlibs" = no && can_build_shared=no
9878
9879#
9880# Do we need to explicitly link libc?
9881#
9882case "x$archive_cmds_need_lc" in
9883x|xyes)
9884  # Assume -lc should be added
9885  archive_cmds_need_lc=yes
9886
9887  if test "$enable_shared" = yes && test "$GCC" = yes; then
9888    case $archive_cmds in
9889    *'~'*)
9890      # FIXME: we may have to deal with multi-command sequences.
9891      ;;
9892    '$CC '*)
9893      # Test whether the compiler implicitly links with -lc since on some
9894      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9895      # to ld, don't add -lc before -lgcc.
9896      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9897echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9898      $rm conftest*
9899      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9900
9901      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9902  (eval $ac_compile) 2>&5
9903  ac_status=$?
9904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905  (exit $ac_status); } 2>conftest.err; then
9906        soname=conftest
9907        lib=conftest
9908        libobjs=conftest.$ac_objext
9909        deplibs=
9910        wl=$lt_prog_compiler_wl
9911        pic_flag=$lt_prog_compiler_pic
9912        compiler_flags=-v
9913        linker_flags=-v
9914        verstring=
9915        output_objdir=.
9916        libname=conftest
9917        lt_save_allow_undefined_flag=$allow_undefined_flag
9918        allow_undefined_flag=
9919        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9920  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9921  ac_status=$?
9922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923  (exit $ac_status); }
9924        then
9925          archive_cmds_need_lc=no
9926        else
9927          archive_cmds_need_lc=yes
9928        fi
9929        allow_undefined_flag=$lt_save_allow_undefined_flag
9930      else
9931        cat conftest.err 1>&5
9932      fi
9933      $rm conftest*
9934      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9935echo "${ECHO_T}$archive_cmds_need_lc" >&6
9936      ;;
9937    esac
9938  fi
9939  ;;
9940esac
9941
9942echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9943echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9944library_names_spec=
9945libname_spec='lib$name'
9946soname_spec=
9947shrext_cmds=".so"
9948postinstall_cmds=
9949postuninstall_cmds=
9950finish_cmds=
9951finish_eval=
9952shlibpath_var=
9953shlibpath_overrides_runpath=unknown
9954version_type=none
9955dynamic_linker="$host_os ld.so"
9956sys_lib_dlsearch_path_spec="/lib /usr/lib"
9957if test "$GCC" = yes; then
9958  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9959  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9960    # if the path contains ";" then we assume it to be the separator
9961    # otherwise default to the standard path separator (i.e. ":") - it is
9962    # assumed that no part of a normal pathname contains ";" but that should
9963    # okay in the real world where ";" in dirpaths is itself problematic.
9964    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9965  else
9966    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9967  fi
9968else
9969  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9970fi
9971need_lib_prefix=unknown
9972hardcode_into_libs=no
9973
9974# when you set need_version to no, make sure it does not cause -set_version
9975# flags to be left without arguments
9976need_version=unknown
9977
9978case $host_os in
9979aix3*)
9980  version_type=linux
9981  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9982  shlibpath_var=LIBPATH
9983
9984  # AIX 3 has no versioning support, so we append a major version to the name.
9985  soname_spec='${libname}${release}${shared_ext}$major'
9986  ;;
9987
9988aix4* | aix5*)
9989  version_type=linux
9990  need_lib_prefix=no
9991  need_version=no
9992  hardcode_into_libs=yes
9993  if test "$host_cpu" = ia64; then
9994    # AIX 5 supports IA64
9995    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9996    shlibpath_var=LD_LIBRARY_PATH
9997  else
9998    # With GCC up to 2.95.x, collect2 would create an import file
9999    # for dependence libraries.  The import file would start with
10000    # the line `#! .'.  This would cause the generated library to
10001    # depend on `.', always an invalid library.  This was fixed in
10002    # development snapshots of GCC prior to 3.0.
10003    case $host_os in
10004      aix4 | aix4.[01] | aix4.[01].*)
10005      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10006           echo ' yes '
10007           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10008        :
10009      else
10010        can_build_shared=no
10011      fi
10012      ;;
10013    esac
10014    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10015    # soname into executable. Probably we can add versioning support to
10016    # collect2, so additional links can be useful in future.
10017    if test "$aix_use_runtimelinking" = yes; then
10018      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10019      # instead of lib<name>.a to let people know that these are not
10020      # typical AIX shared libraries.
10021      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022    else
10023      # We preserve .a as extension for shared libraries through AIX4.2
10024      # and later when we are not doing run time linking.
10025      library_names_spec='${libname}${release}.a $libname.a'
10026      soname_spec='${libname}${release}${shared_ext}$major'
10027    fi
10028    shlibpath_var=LIBPATH
10029  fi
10030  ;;
10031
10032amigaos*)
10033  library_names_spec='$libname.ixlibrary $libname.a'
10034  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10035  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'
10036  ;;
10037
10038beos*)
10039  library_names_spec='${libname}${shared_ext}'
10040  dynamic_linker="$host_os ld.so"
10041  shlibpath_var=LIBRARY_PATH
10042  ;;
10043
10044bsdi[45]*)
10045  version_type=linux
10046  need_version=no
10047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048  soname_spec='${libname}${release}${shared_ext}$major'
10049  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10050  shlibpath_var=LD_LIBRARY_PATH
10051  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10052  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10053  # the default ld.so.conf also contains /usr/contrib/lib and
10054  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10055  # libtool to hard-code these into programs
10056  ;;
10057
10058cygwin* | mingw* | pw32*)
10059  version_type=windows
10060  shrext_cmds=".dll"
10061  need_version=no
10062  need_lib_prefix=no
10063
10064  case $GCC,$host_os in
10065  yes,cygwin* | yes,mingw* | yes,pw32*)
10066    library_names_spec='$libname.dll.a'
10067    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10068    postinstall_cmds='base_file=`basename \${file}`~
10069      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10070      dldir=$destdir/`dirname \$dlpath`~
10071      test -d \$dldir || mkdir -p \$dldir~
10072      $install_prog $dir/$dlname \$dldir/$dlname~
10073      chmod a+x \$dldir/$dlname'
10074    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10075      dlpath=$dir/\$dldll~
10076       $rm \$dlpath'
10077    shlibpath_overrides_runpath=yes
10078
10079    case $host_os in
10080    cygwin*)
10081      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10082      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10083      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10084      ;;
10085    mingw*)
10086      # MinGW DLLs use traditional 'lib' prefix
10087      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10088      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10089      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10090        # It is most probably a Windows format PATH printed by
10091        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10092        # path with ; separators, and with drive letters. We can handle the
10093        # drive letters (cygwin fileutils understands them), so leave them,
10094        # especially as we might pass files found there to a mingw objdump,
10095        # which wouldn't understand a cygwinified path. Ahh.
10096        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10097      else
10098        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10099      fi
10100      ;;
10101    pw32*)
10102      # pw32 DLLs use 'pw' prefix rather than 'lib'
10103      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10104      ;;
10105    esac
10106    ;;
10107
10108  *)
10109    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10110    ;;
10111  esac
10112  dynamic_linker='Win32 ld.exe'
10113  # FIXME: first we should search . and the directory the executable is in
10114  shlibpath_var=PATH
10115  ;;
10116
10117darwin* | rhapsody*)
10118  dynamic_linker="$host_os dyld"
10119  version_type=darwin
10120  need_lib_prefix=no
10121  need_version=no
10122  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10123  soname_spec='${libname}${release}${major}$shared_ext'
10124  shlibpath_overrides_runpath=yes
10125  shlibpath_var=DYLD_LIBRARY_PATH
10126  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10127  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10128  if test "$GCC" = yes; then
10129    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"`
10130  else
10131    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10132  fi
10133  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10134  ;;
10135
10136dgux*)
10137  version_type=linux
10138  need_lib_prefix=no
10139  need_version=no
10140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10141  soname_spec='${libname}${release}${shared_ext}$major'
10142  shlibpath_var=LD_LIBRARY_PATH
10143  ;;
10144
10145freebsd1*)
10146  dynamic_linker=no
10147  ;;
10148
10149kfreebsd*-gnu)
10150  version_type=linux
10151  need_lib_prefix=no
10152  need_version=no
10153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154  soname_spec='${libname}${release}${shared_ext}$major'
10155  shlibpath_var=LD_LIBRARY_PATH
10156  shlibpath_overrides_runpath=no
10157  hardcode_into_libs=yes
10158  dynamic_linker='GNU ld.so'
10159  ;;
10160
10161freebsd* | dragonfly*)
10162  # DragonFly does not have aout.  When/if they implement a new
10163  # versioning mechanism, adjust this.
10164  if test -x /usr/bin/objformat; then
10165    objformat=`/usr/bin/objformat`
10166  else
10167    case $host_os in
10168    freebsd[123]*) objformat=aout ;;
10169    *) objformat=elf ;;
10170    esac
10171  fi
10172  version_type=freebsd-$objformat
10173  case $version_type in
10174    freebsd-elf*)
10175      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10176      need_version=no
10177      need_lib_prefix=no
10178      ;;
10179    freebsd-*)
10180      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10181      need_version=yes
10182      ;;
10183  esac
10184  shlibpath_var=LD_LIBRARY_PATH
10185  case $host_os in
10186  freebsd2*)
10187    shlibpath_overrides_runpath=yes
10188    ;;
10189  freebsd3.[01]* | freebsdelf3.[01]*)
10190    shlibpath_overrides_runpath=yes
10191    hardcode_into_libs=yes
10192    ;;
10193  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10194  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10195    shlibpath_overrides_runpath=no
10196    hardcode_into_libs=yes
10197    ;;
10198  freebsd*) # from 4.6 on
10199    shlibpath_overrides_runpath=yes
10200    hardcode_into_libs=yes
10201    ;;
10202  esac
10203  ;;
10204
10205gnu*)
10206  version_type=linux
10207  need_lib_prefix=no
10208  need_version=no
10209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10210  soname_spec='${libname}${release}${shared_ext}$major'
10211  shlibpath_var=LD_LIBRARY_PATH
10212  hardcode_into_libs=yes
10213  ;;
10214
10215hpux9* | hpux10* | hpux11*)
10216  # Give a soname corresponding to the major version so that dld.sl refuses to
10217  # link against other versions.
10218  version_type=sunos
10219  need_lib_prefix=no
10220  need_version=no
10221  case $host_cpu in
10222  ia64*)
10223    shrext_cmds='.so'
10224    hardcode_into_libs=yes
10225    dynamic_linker="$host_os dld.so"
10226    shlibpath_var=LD_LIBRARY_PATH
10227    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10228    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229    soname_spec='${libname}${release}${shared_ext}$major'
10230    if test "X$HPUX_IA64_MODE" = X32; then
10231      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10232    else
10233      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10234    fi
10235    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10236    ;;
10237   hppa*64*)
10238     shrext_cmds='.sl'
10239     hardcode_into_libs=yes
10240     dynamic_linker="$host_os dld.sl"
10241     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10242     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244     soname_spec='${libname}${release}${shared_ext}$major'
10245     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10246     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10247     ;;
10248   *)
10249    shrext_cmds='.sl'
10250    dynamic_linker="$host_os dld.sl"
10251    shlibpath_var=SHLIB_PATH
10252    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10253    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254    soname_spec='${libname}${release}${shared_ext}$major'
10255    ;;
10256  esac
10257  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10258  postinstall_cmds='chmod 555 $lib'
10259  ;;
10260
10261interix3*)
10262  version_type=linux
10263  need_lib_prefix=no
10264  need_version=no
10265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266  soname_spec='${libname}${release}${shared_ext}$major'
10267  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10268  shlibpath_var=LD_LIBRARY_PATH
10269  shlibpath_overrides_runpath=no
10270  hardcode_into_libs=yes
10271  ;;
10272
10273irix5* | irix6* | nonstopux*)
10274  case $host_os in
10275    nonstopux*) version_type=nonstopux ;;
10276    *)
10277        if test "$lt_cv_prog_gnu_ld" = yes; then
10278                version_type=linux
10279        else
10280                version_type=irix
10281        fi ;;
10282  esac
10283  need_lib_prefix=no
10284  need_version=no
10285  soname_spec='${libname}${release}${shared_ext}$major'
10286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10287  case $host_os in
10288  irix5* | nonstopux*)
10289    libsuff= shlibsuff=
10290    ;;
10291  *)
10292    case $LD in # libtool.m4 will add one of these switches to LD
10293    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10294      libsuff= shlibsuff= libmagic=32-bit;;
10295    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10296      libsuff=32 shlibsuff=N32 libmagic=N32;;
10297    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10298      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10299    *) libsuff= shlibsuff= libmagic=never-match;;
10300    esac
10301    ;;
10302  esac
10303  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10304  shlibpath_overrides_runpath=no
10305  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10306  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10307  hardcode_into_libs=yes
10308  ;;
10309
10310# No shared lib support for Linux oldld, aout, or coff.
10311linux*oldld* | linux*aout* | linux*coff*)
10312  dynamic_linker=no
10313  ;;
10314
10315# This must be Linux ELF.
10316linux*)
10317  version_type=linux
10318  need_lib_prefix=no
10319  need_version=no
10320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321  soname_spec='${libname}${release}${shared_ext}$major'
10322  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10323  shlibpath_var=LD_LIBRARY_PATH
10324  shlibpath_overrides_runpath=no
10325  # This implies no fast_install, which is unacceptable.
10326  # Some rework will be needed to allow for fast_install
10327  # before this can be enabled.
10328  hardcode_into_libs=yes
10329
10330  # Append ld.so.conf contents to the search path
10331  if test -f /etc/ld.so.conf; then
10332    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' ' '`
10333    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10334  fi
10335
10336  # We used to test for /lib/ld.so.1 and disable shared libraries on
10337  # powerpc, because MkLinux only supported shared libraries with the
10338  # GNU dynamic linker.  Since this was broken with cross compilers,
10339  # most powerpc-linux boxes support dynamic linking these days and
10340  # people can always --disable-shared, the test was removed, and we
10341  # assume the GNU/Linux dynamic linker is in use.
10342  dynamic_linker='GNU/Linux ld.so'
10343  ;;
10344
10345knetbsd*-gnu)
10346  version_type=linux
10347  need_lib_prefix=no
10348  need_version=no
10349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10350  soname_spec='${libname}${release}${shared_ext}$major'
10351  shlibpath_var=LD_LIBRARY_PATH
10352  shlibpath_overrides_runpath=no
10353  hardcode_into_libs=yes
10354  dynamic_linker='GNU ld.so'
10355  ;;
10356
10357netbsd*)
10358  version_type=sunos
10359  need_lib_prefix=no
10360  need_version=no
10361  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10362    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10363    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10364    dynamic_linker='NetBSD (a.out) ld.so'
10365  else
10366    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10367    soname_spec='${libname}${release}${shared_ext}$major'
10368    dynamic_linker='NetBSD ld.elf_so'
10369  fi
10370  shlibpath_var=LD_LIBRARY_PATH
10371  shlibpath_overrides_runpath=yes
10372  hardcode_into_libs=yes
10373  ;;
10374
10375newsos6)
10376  version_type=linux
10377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378  shlibpath_var=LD_LIBRARY_PATH
10379  shlibpath_overrides_runpath=yes
10380  ;;
10381
10382nto-qnx*)
10383  version_type=linux
10384  need_lib_prefix=no
10385  need_version=no
10386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387  soname_spec='${libname}${release}${shared_ext}$major'
10388  shlibpath_var=LD_LIBRARY_PATH
10389  shlibpath_overrides_runpath=yes
10390  ;;
10391
10392openbsd*)
10393  version_type=sunos
10394  sys_lib_dlsearch_path_spec="/usr/lib"
10395  need_lib_prefix=no
10396  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10397  case $host_os in
10398    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10399    *)                         need_version=no  ;;
10400  esac
10401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10402  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10403  shlibpath_var=LD_LIBRARY_PATH
10404  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10405    case $host_os in
10406      openbsd2.[89] | openbsd2.[89].*)
10407        shlibpath_overrides_runpath=no
10408        ;;
10409      *)
10410        shlibpath_overrides_runpath=yes
10411        ;;
10412      esac
10413  else
10414    shlibpath_overrides_runpath=yes
10415  fi
10416  ;;
10417
10418os2*)
10419  libname_spec='$name'
10420  shrext_cmds=".dll"
10421  need_lib_prefix=no
10422  library_names_spec='$libname${shared_ext} $libname.a'
10423  dynamic_linker='OS/2 ld.exe'
10424  shlibpath_var=LIBPATH
10425  ;;
10426
10427osf3* | osf4* | osf5*)
10428  version_type=osf
10429  need_lib_prefix=no
10430  need_version=no
10431  soname_spec='${libname}${release}${shared_ext}$major'
10432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433  shlibpath_var=LD_LIBRARY_PATH
10434  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10435  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10436  ;;
10437
10438solaris*)
10439  version_type=linux
10440  need_lib_prefix=no
10441  need_version=no
10442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443  soname_spec='${libname}${release}${shared_ext}$major'
10444  shlibpath_var=LD_LIBRARY_PATH
10445  shlibpath_overrides_runpath=yes
10446  hardcode_into_libs=yes
10447  # ldd complains unless libraries are executable
10448  postinstall_cmds='chmod +x $lib'
10449  ;;
10450
10451sunos4*)
10452  version_type=sunos
10453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10454  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10455  shlibpath_var=LD_LIBRARY_PATH
10456  shlibpath_overrides_runpath=yes
10457  if test "$with_gnu_ld" = yes; then
10458    need_lib_prefix=no
10459  fi
10460  need_version=yes
10461  ;;
10462
10463sysv4 | sysv4.3*)
10464  version_type=linux
10465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466  soname_spec='${libname}${release}${shared_ext}$major'
10467  shlibpath_var=LD_LIBRARY_PATH
10468  case $host_vendor in
10469    sni)
10470      shlibpath_overrides_runpath=no
10471      need_lib_prefix=no
10472      export_dynamic_flag_spec='${wl}-Blargedynsym'
10473      runpath_var=LD_RUN_PATH
10474      ;;
10475    siemens)
10476      need_lib_prefix=no
10477      ;;
10478    motorola)
10479      need_lib_prefix=no
10480      need_version=no
10481      shlibpath_overrides_runpath=no
10482      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10483      ;;
10484  esac
10485  ;;
10486
10487sysv4*MP*)
10488  if test -d /usr/nec ;then
10489    version_type=linux
10490    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10491    soname_spec='$libname${shared_ext}.$major'
10492    shlibpath_var=LD_LIBRARY_PATH
10493  fi
10494  ;;
10495
10496sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10497  version_type=freebsd-elf
10498  need_lib_prefix=no
10499  need_version=no
10500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10501  soname_spec='${libname}${release}${shared_ext}$major'
10502  shlibpath_var=LD_LIBRARY_PATH
10503  hardcode_into_libs=yes
10504  if test "$with_gnu_ld" = yes; then
10505    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10506    shlibpath_overrides_runpath=no
10507  else
10508    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10509    shlibpath_overrides_runpath=yes
10510    case $host_os in
10511      sco3.2v5*)
10512        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10513        ;;
10514    esac
10515  fi
10516  sys_lib_dlsearch_path_spec='/usr/lib'
10517  ;;
10518
10519uts4*)
10520  version_type=linux
10521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522  soname_spec='${libname}${release}${shared_ext}$major'
10523  shlibpath_var=LD_LIBRARY_PATH
10524  ;;
10525
10526*)
10527  dynamic_linker=no
10528  ;;
10529esac
10530echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10531echo "${ECHO_T}$dynamic_linker" >&6
10532test "$dynamic_linker" = no && can_build_shared=no
10533
10534variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10535if test "$GCC" = yes; then
10536  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10537fi
10538
10539echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10540echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10541hardcode_action=
10542if test -n "$hardcode_libdir_flag_spec" || \
10543   test -n "$runpath_var" || \
10544   test "X$hardcode_automatic" = "Xyes" ; then
10545
10546  # We can hardcode non-existant directories.
10547  if test "$hardcode_direct" != no &&
10548     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10549     # have to relink, otherwise we might link with an installed library
10550     # when we should be linking with a yet-to-be-installed one
10551     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10552     test "$hardcode_minus_L" != no; then
10553    # Linking always hardcodes the temporary library directory.
10554    hardcode_action=relink
10555  else
10556    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10557    hardcode_action=immediate
10558  fi
10559else
10560  # We cannot hardcode anything, or else we can only hardcode existing
10561  # directories.
10562  hardcode_action=unsupported
10563fi
10564echo "$as_me:$LINENO: result: $hardcode_action" >&5
10565echo "${ECHO_T}$hardcode_action" >&6
10566
10567if test "$hardcode_action" = relink; then
10568  # Fast installation is not supported
10569  enable_fast_install=no
10570elif test "$shlibpath_overrides_runpath" = yes ||
10571     test "$enable_shared" = no; then
10572  # Fast installation is not necessary
10573  enable_fast_install=needless
10574fi
10575
10576striplib=
10577old_striplib=
10578echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10579echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10580if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10581  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10582  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10583  echo "$as_me:$LINENO: result: yes" >&5
10584echo "${ECHO_T}yes" >&6
10585else
10586# FIXME - insert some real tests, host_os isn't really good enough
10587  case $host_os in
10588   darwin*)
10589       if test -n "$STRIP" ; then
10590         striplib="$STRIP -x"
10591         echo "$as_me:$LINENO: result: yes" >&5
10592echo "${ECHO_T}yes" >&6
10593       else
10594  echo "$as_me:$LINENO: result: no" >&5
10595echo "${ECHO_T}no" >&6
10596fi
10597       ;;
10598   *)
10599  echo "$as_me:$LINENO: result: no" >&5
10600echo "${ECHO_T}no" >&6
10601    ;;
10602  esac
10603fi
10604
10605if test "x$enable_dlopen" != xyes; then
10606  enable_dlopen=unknown
10607  enable_dlopen_self=unknown
10608  enable_dlopen_self_static=unknown
10609else
10610  lt_cv_dlopen=no
10611  lt_cv_dlopen_libs=
10612
10613  case $host_os in
10614  beos*)
10615    lt_cv_dlopen="load_add_on"
10616    lt_cv_dlopen_libs=
10617    lt_cv_dlopen_self=yes
10618    ;;
10619
10620  mingw* | pw32*)
10621    lt_cv_dlopen="LoadLibrary"
10622    lt_cv_dlopen_libs=
10623   ;;
10624
10625  cygwin*)
10626    lt_cv_dlopen="dlopen"
10627    lt_cv_dlopen_libs=
10628   ;;
10629
10630  darwin*)
10631  # if libdl is installed we need to link against it
10632    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10633echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10634if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10635  echo $ECHO_N "(cached) $ECHO_C" >&6
10636else
10637  ac_check_lib_save_LIBS=$LIBS
10638LIBS="-ldl  $LIBS"
10639cat >conftest.$ac_ext <<_ACEOF
10640/* confdefs.h.  */
10641_ACEOF
10642cat confdefs.h >>conftest.$ac_ext
10643cat >>conftest.$ac_ext <<_ACEOF
10644/* end confdefs.h.  */
10645
10646/* Override any gcc2 internal prototype to avoid an error.  */
10647#ifdef __cplusplus
10648extern "C"
10649#endif
10650/* We use char because int might match the return type of a gcc2
10651   builtin and then its argument prototype would still apply.  */
10652char dlopen ();
10653int
10654main ()
10655{
10656dlopen ();
10657  ;
10658  return 0;
10659}
10660_ACEOF
10661rm -f conftest.$ac_objext conftest$ac_exeext
10662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663  (eval $ac_link) 2>conftest.er1
10664  ac_status=$?
10665  grep -v '^ *+' conftest.er1 >conftest.err
10666  rm -f conftest.er1
10667  cat conftest.err >&5
10668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669  (exit $ac_status); } &&
10670         { ac_try='test -z "$ac_c_werror_flag"
10671                         || test ! -s conftest.err'
10672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673  (eval $ac_try) 2>&5
10674  ac_status=$?
10675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676  (exit $ac_status); }; } &&
10677         { ac_try='test -s conftest$ac_exeext'
10678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679  (eval $ac_try) 2>&5
10680  ac_status=$?
10681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682  (exit $ac_status); }; }; then
10683  ac_cv_lib_dl_dlopen=yes
10684else
10685  echo "$as_me: failed program was:" >&5
10686sed 's/^/| /' conftest.$ac_ext >&5
10687
10688ac_cv_lib_dl_dlopen=no
10689fi
10690rm -f conftest.err conftest.$ac_objext \
10691      conftest$ac_exeext conftest.$ac_ext
10692LIBS=$ac_check_lib_save_LIBS
10693fi
10694echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10695echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10696if test $ac_cv_lib_dl_dlopen = yes; then
10697  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10698else
10699
10700    lt_cv_dlopen="dyld"
10701    lt_cv_dlopen_libs=
10702    lt_cv_dlopen_self=yes
10703
10704fi
10705
10706   ;;
10707
10708  *)
10709    echo "$as_me:$LINENO: checking for shl_load" >&5
10710echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10711if test "${ac_cv_func_shl_load+set}" = set; then
10712  echo $ECHO_N "(cached) $ECHO_C" >&6
10713else
10714  cat >conftest.$ac_ext <<_ACEOF
10715/* confdefs.h.  */
10716_ACEOF
10717cat confdefs.h >>conftest.$ac_ext
10718cat >>conftest.$ac_ext <<_ACEOF
10719/* end confdefs.h.  */
10720/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10721   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10722#define shl_load innocuous_shl_load
10723
10724/* System header to define __stub macros and hopefully few prototypes,
10725    which can conflict with char shl_load (); below.
10726    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10727    <limits.h> exists even on freestanding compilers.  */
10728
10729#ifdef __STDC__
10730# include <limits.h>
10731#else
10732# include <assert.h>
10733#endif
10734
10735#undef shl_load
10736
10737/* Override any gcc2 internal prototype to avoid an error.  */
10738#ifdef __cplusplus
10739extern "C"
10740{
10741#endif
10742/* We use char because int might match the return type of a gcc2
10743   builtin and then its argument prototype would still apply.  */
10744char shl_load ();
10745/* The GNU C library defines this for functions which it implements
10746    to always fail with ENOSYS.  Some functions are actually named
10747    something starting with __ and the normal name is an alias.  */
10748#if defined (__stub_shl_load) || defined (__stub___shl_load)
10749choke me
10750#else
10751char (*f) () = shl_load;
10752#endif