source: ThirdParty/Mumps/trunk/configure @ 2023

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

restoring BuildTools/ThirdParty/Mumps?/trunk

File size: 837.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMumps trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMumps'
431PACKAGE_TARNAME='thirdpartymumps'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyMumps trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="MUMPS/src/dmumps_part1.F"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion MUMPS_SVN_REV 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 ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS CPP EGREP MY_DEFS 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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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 BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED MUMPS_CFLAGS MUMPS_LIBS MUMPS_PCLIBS MUMPS_PCREQUIRES MUMPS_DEPENDENCIES MUMPS_CFLAGS_INSTALLED MUMPS_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MUMPSDIR MUMPSOBJDIR MUMPSSRCDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
993ac_env_PKG_CONFIG_value=$PKG_CONFIG
994ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
995ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyMumps trunk to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyMumps trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-mumps compile this project (Mumps) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-pkg-config     use pkg-config if available (default is yes)
1096
1097Optional Packages:
1098  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1099  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1100  --with-mumps-verbosity specify the debug verbosity level for project Mumps
1101  --with-mumps-checklevel specify the sanity check level for project Mumps
1102  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1103  --with-pic              try to use only PIC/non-PIC objects [default=use
1104                          both]
1105  --with-tags[=TAGS]
1106                          include additional configurations [automatic]
1107  --with-blas             specify BLAS library (or BUILD for compilation)
1108
1109  --with-coin-instdir     prefix of installation directory for precompiled
1110                          COIN packages
1111  --with-blas-lib linker flags for using package Blas
1112  --with-blas-incdir directory with header files for using package Blas
1113  --with-blas-datadir directory with data files for using package Blas
1114  --with-metis-lib linker flags for using package Metis
1115  --with-metis-incdir directory with header files for using package Metis
1116  --with-metis-datadir directory with data files for using package Metis
1117
1118Some influential environment variables:
1119  CDEFS       Additional -D flags to be used when compiling C code.
1120  ADD_CFLAGS  Additional C compiler options
1121  DBG_CFLAGS  Debug C compiler options
1122  OPT_CFLAGS  Optimize C compiler options
1123  CC          C compiler command
1124  CFLAGS      C compiler flags
1125  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1126              nonstandard directory <lib dir>
1127  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1128              headers in a nonstandard directory <include dir>
1129  MPICC       C MPI Compiler
1130  ADD_FFLAGS  Additional Fortran compiler options
1131  DBG_FFLAGS  Debug Fortran compiler options
1132  OPT_FFLAGS  Optimize Fortran compiler options
1133  F77         Fortran 77 compiler command
1134  FFLAGS      Fortran 77 compiler flags
1135  MPIF77      Fortran MPI Compiler
1136  CPP         C preprocessor
1137  CXX         C++ compiler command
1138  CXXFLAGS    C++ compiler flags
1139  CXXCPP      C++ preprocessor
1140  PKG_CONFIG  path to pkg-config utility
1141
1142Use these variables to override the choices made by `configure' or to help
1143it to find libraries and programs with nonstandard names/locations.
1144
1145Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1146_ACEOF
1147fi
1148
1149if test "$ac_init_help" = "recursive"; then
1150  # If there are subdirs, report their specific --help.
1151  ac_popdir=`pwd`
1152  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1153    test -d $ac_dir || continue
1154    ac_builddir=.
1155
1156if test "$ac_dir" != .; then
1157  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1158  # A "../" for each directory in $ac_dir_suffix.
1159  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1160else
1161  ac_dir_suffix= ac_top_builddir=
1162fi
1163
1164case $srcdir in
1165  .)  # No --srcdir option.  We are building in place.
1166    ac_srcdir=.
1167    if test -z "$ac_top_builddir"; then
1168       ac_top_srcdir=.
1169    else
1170       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1171    fi ;;
1172  [\\/]* | ?:[\\/]* )  # Absolute path.
1173    ac_srcdir=$srcdir$ac_dir_suffix;
1174    ac_top_srcdir=$srcdir ;;
1175  *) # Relative path.
1176    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1177    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1178esac
1179
1180# Do not use `cd foo && pwd` to compute absolute paths, because
1181# the directories may not exist.
1182case `pwd` in
1183.) ac_abs_builddir="$ac_dir";;
1184*)
1185  case "$ac_dir" in
1186  .) ac_abs_builddir=`pwd`;;
1187  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1188  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1189  esac;;
1190esac
1191case $ac_abs_builddir in
1192.) ac_abs_top_builddir=${ac_top_builddir}.;;
1193*)
1194  case ${ac_top_builddir}. in
1195  .) ac_abs_top_builddir=$ac_abs_builddir;;
1196  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1197  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1198  esac;;
1199esac
1200case $ac_abs_builddir in
1201.) ac_abs_srcdir=$ac_srcdir;;
1202*)
1203  case $ac_srcdir in
1204  .) ac_abs_srcdir=$ac_abs_builddir;;
1205  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1206  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1207  esac;;
1208esac
1209case $ac_abs_builddir in
1210.) ac_abs_top_srcdir=$ac_top_srcdir;;
1211*)
1212  case $ac_top_srcdir in
1213  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1214  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1215  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1216  esac;;
1217esac
1218
1219    cd $ac_dir
1220    # Check for guested configure; otherwise get Cygnus style configure.
1221    if test -f $ac_srcdir/configure.gnu; then
1222      echo
1223      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1224    elif test -f $ac_srcdir/configure; then
1225      echo
1226      $SHELL $ac_srcdir/configure  --help=recursive
1227    elif test -f $ac_srcdir/configure.ac ||
1228           test -f $ac_srcdir/configure.in; then
1229      echo
1230      $ac_configure --help
1231    else
1232      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1233    fi
1234    cd $ac_popdir
1235  done
1236fi
1237
1238test -n "$ac_init_help" && exit 0
1239if $ac_init_version; then
1240  cat <<\_ACEOF
1241ThirdPartyMumps configure trunk
1242generated by GNU Autoconf 2.59
1243
1244Copyright (C) 2003 Free Software Foundation, Inc.
1245This configure script is free software; the Free Software Foundation
1246gives unlimited permission to copy, distribute and modify it.
1247
1248
1249Copyright 2007-2009 International Business Machines and others.
1250All Rights Reserved.
1251This file is part of the open source package Coin which is distributed
1252under the Eclipse Public License.
1253_ACEOF
1254  exit 0
1255fi
1256exec 5>config.log
1257cat >&5 <<_ACEOF
1258This file contains any messages produced by compilers while
1259running configure, to aid debugging if configure makes a mistake.
1260
1261It was created by ThirdPartyMumps $as_me trunk, which was
1262generated by GNU Autoconf 2.59.  Invocation command line was
1263
1264  $ $0 $@
1265
1266_ACEOF
1267{
1268cat <<_ASUNAME
1269## --------- ##
1270## Platform. ##
1271## --------- ##
1272
1273hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1274uname -m = `(uname -m) 2>/dev/null || echo unknown`
1275uname -r = `(uname -r) 2>/dev/null || echo unknown`
1276uname -s = `(uname -s) 2>/dev/null || echo unknown`
1277uname -v = `(uname -v) 2>/dev/null || echo unknown`
1278
1279/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1280/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1281
1282/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1283/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1284/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1285hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1286/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1287/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1288/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1289
1290_ASUNAME
1291
1292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1293for as_dir in $PATH
1294do
1295  IFS=$as_save_IFS
1296  test -z "$as_dir" && as_dir=.
1297  echo "PATH: $as_dir"
1298done
1299
1300} >&5
1301
1302cat >&5 <<_ACEOF
1303
1304
1305## ----------- ##
1306## Core tests. ##
1307## ----------- ##
1308
1309_ACEOF
1310
1311
1312# Keep a trace of the command line.
1313# Strip out --no-create and --no-recursion so they do not pile up.
1314# Strip out --silent because we don't want to record it for future runs.
1315# Also quote any args containing shell meta-characters.
1316# Make two passes to allow for proper duplicate-argument suppression.
1317ac_configure_args=
1318ac_configure_args0=
1319ac_configure_args1=
1320ac_sep=
1321ac_must_keep_next=false
1322for ac_pass in 1 2
1323do
1324  for ac_arg
1325  do
1326    case $ac_arg in
1327    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1328    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1329    | -silent | --silent | --silen | --sile | --sil)
1330      continue ;;
1331    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1332      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1333    esac
1334    case $ac_pass in
1335    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1336    2)
1337      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1338      if test $ac_must_keep_next = true; then
1339        ac_must_keep_next=false # Got value, back to normal.
1340      else
1341        case $ac_arg in
1342          *=* | --config-cache | -C | -disable-* | --disable-* \
1343          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1344          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1345          | -with-* | --with-* | -without-* | --without-* | --x)
1346            case "$ac_configure_args0 " in
1347              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1348            esac
1349            ;;
1350          -* ) ac_must_keep_next=true ;;
1351        esac
1352      fi
1353      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1354      # Get rid of the leading space.
1355      ac_sep=" "
1356      ;;
1357    esac
1358  done
1359done
1360$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1361$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1362
1363# When interrupted or exit'd, cleanup temporary files, and complete
1364# config.log.  We remove comments because anyway the quotes in there
1365# would cause problems or look ugly.
1366# WARNING: Be sure not to use single quotes in there, as some shells,
1367# such as our DU 5.0 friend, will then `close' the trap.
1368trap 'exit_status=$?
1369  # Save into config.log some information that might help in debugging.
1370  {
1371    echo
1372
1373    cat <<\_ASBOX
1374## ---------------- ##
1375## Cache variables. ##
1376## ---------------- ##
1377_ASBOX
1378    echo
1379    # The following way of writing the cache mishandles newlines in values,
1380{
1381  (set) 2>&1 |
1382    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1383    *ac_space=\ *)
1384      sed -n \
1385        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1386          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1387      ;;
1388    *)
1389      sed -n \
1390        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1391      ;;
1392    esac;
1393}
1394    echo
1395
1396    cat <<\_ASBOX
1397## ----------------- ##
1398## Output variables. ##
1399## ----------------- ##
1400_ASBOX
1401    echo
1402    for ac_var in $ac_subst_vars
1403    do
1404      eval ac_val=$`echo $ac_var`
1405      echo "$ac_var='"'"'$ac_val'"'"'"
1406    done | sort
1407    echo
1408
1409    if test -n "$ac_subst_files"; then
1410      cat <<\_ASBOX
1411## ------------- ##
1412## Output files. ##
1413## ------------- ##
1414_ASBOX
1415      echo
1416      for ac_var in $ac_subst_files
1417      do
1418        eval ac_val=$`echo $ac_var`
1419        echo "$ac_var='"'"'$ac_val'"'"'"
1420      done | sort
1421      echo
1422    fi
1423
1424    if test -s confdefs.h; then
1425      cat <<\_ASBOX
1426## ----------- ##
1427## confdefs.h. ##
1428## ----------- ##
1429_ASBOX
1430      echo
1431      sed "/^$/d" confdefs.h | sort
1432      echo
1433    fi
1434    test "$ac_signal" != 0 &&
1435      echo "$as_me: caught signal $ac_signal"
1436    echo "$as_me: exit $exit_status"
1437  } >&5
1438  rm -f core *.core &&
1439  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1440    exit $exit_status
1441     ' 0
1442for ac_signal in 1 2 13 15; do
1443  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1444done
1445ac_signal=0
1446
1447# confdefs.h avoids OS command line length limits that DEFS can exceed.
1448rm -rf conftest* confdefs.h
1449# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1450echo >confdefs.h
1451
1452# Predefined preprocessor variables.
1453
1454cat >>confdefs.h <<_ACEOF
1455#define PACKAGE_NAME "$PACKAGE_NAME"
1456_ACEOF
1457
1458
1459cat >>confdefs.h <<_ACEOF
1460#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1461_ACEOF
1462
1463
1464cat >>confdefs.h <<_ACEOF
1465#define PACKAGE_VERSION "$PACKAGE_VERSION"
1466_ACEOF
1467
1468
1469cat >>confdefs.h <<_ACEOF
1470#define PACKAGE_STRING "$PACKAGE_STRING"
1471_ACEOF
1472
1473
1474cat >>confdefs.h <<_ACEOF
1475#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1476_ACEOF
1477
1478
1479# Let the site file select an alternate cache file if it wants to.
1480# Prefer explicitly selected file to automatically selected ones.
1481if test -z "$CONFIG_SITE"; then
1482  if test "x$prefix" != xNONE; then
1483    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1484  else
1485    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1486  fi
1487fi
1488for ac_site_file in $CONFIG_SITE; do
1489  if test -r "$ac_site_file"; then
1490    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1491echo "$as_me: loading site script $ac_site_file" >&6;}
1492    sed 's/^/| /' "$ac_site_file" >&5
1493    . "$ac_site_file"
1494  fi
1495done
1496
1497if test -r "$cache_file"; then
1498  # Some versions of bash will fail to source /dev/null (special
1499  # files actually), so we avoid doing that.
1500  if test -f "$cache_file"; then
1501    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1502echo "$as_me: loading cache $cache_file" >&6;}
1503    case $cache_file in
1504      [\\/]* | ?:[\\/]* ) . $cache_file;;
1505      *)                      . ./$cache_file;;
1506    esac
1507  fi
1508else
1509  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1510echo "$as_me: creating cache $cache_file" >&6;}
1511  >$cache_file
1512fi
1513
1514# Check that the precious variables saved in the cache have kept the same
1515# value.
1516ac_cache_corrupted=false
1517for ac_var in `(set) 2>&1 |
1518               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1519  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1520  eval ac_new_set=\$ac_env_${ac_var}_set
1521  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1522  eval ac_new_val="\$ac_env_${ac_var}_value"
1523  case $ac_old_set,$ac_new_set in
1524    set,)
1525      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1526echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1527      ac_cache_corrupted=: ;;
1528    ,set)
1529      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1530echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1531      ac_cache_corrupted=: ;;
1532    ,);;
1533    *)
1534      if test "x$ac_old_val" != "x$ac_new_val"; then
1535        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1536echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1537        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1538echo "$as_me:   former value:  $ac_old_val" >&2;}
1539        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1540echo "$as_me:   current value: $ac_new_val" >&2;}
1541        ac_cache_corrupted=:
1542      fi;;
1543  esac
1544  # Pass precious variables to config.status.
1545  if test "$ac_new_set" = set; then
1546    case $ac_new_val in
1547    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1548      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1549    *) ac_arg=$ac_var=$ac_new_val ;;
1550    esac
1551    case " $ac_configure_args " in
1552      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1553      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1554    esac
1555  fi
1556done
1557if $ac_cache_corrupted; then
1558  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1559echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1560  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1561echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1562   { (exit 1); exit 1; }; }
1563fi
1564
1565ac_ext=c
1566ac_cpp='$CPP $CPPFLAGS'
1567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1569ac_compiler_gnu=$ac_cv_c_compiler_gnu
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600# List one file in the package so that the configure script can test
1601# whether the package is actually there
1602
1603
1604# Where should everything be installed by default?  Here, we want it
1605# to be installed directly in 'bin', 'lib', 'include' subdirectories
1606# of the directory where configure is run.  The default would be
1607# /usr/local.
1608
1609
1610# Initialize the ADDLIBS variable
1611ADDLIBS="-lm $LIBS"
1612
1613
1614# Initialize the PCADDLIBS variable.
1615# This variable is used to setup library flags for the "Libs:" section in a .pc file.
1616# In certain cases, it may contain more flags than the ADDLIBS variable.
1617PCADDLIBS=""
1618
1619
1620# As backup, we make sure we don't loose an FLIBS if it has been set
1621# by the user
1622save_FLIBS="$FLIBS"
1623
1624# Initialize the FADDLIBS variable (which is to be used with a fortran
1625# compiler and will not include FLIBS)
1626FADDLIBS="$LIBS"
1627
1628
1629# A useful makefile conditional that is always false
1630
1631
1632if false; then
1633  ALWAYS_FALSE_TRUE=
1634  ALWAYS_FALSE_FALSE='#'
1635else
1636  ALWAYS_FALSE_TRUE='#'
1637  ALWAYS_FALSE_FALSE=
1638fi
1639
1640
1641# We set the following variable so that we know later in AC_COIN_FINALIZE
1642# that we are in a project main directory
1643coin_projectdir=yes
1644
1645# Set the project's version number
1646if test "xMumps" != x; then
1647
1648cat >>confdefs.h <<_ACEOF
1649#define MUMPS_VERSION "$PACKAGE_VERSION"
1650_ACEOF
1651
1652fi
1653
1654# Set the project's SVN revision number. The complicated sed expression
1655# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1656# as a single number.
1657# Extract the first word of "svnversion", so it can be a program name with args.
1658set dummy svnversion; ac_word=$2
1659echo "$as_me:$LINENO: checking for $ac_word" >&5
1660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661if test "${ac_cv_prog_have_svnversion+set}" = set; then
1662  echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
1664  if test -n "$have_svnversion"; then
1665  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1666else
1667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668for as_dir in $PATH
1669do
1670  IFS=$as_save_IFS
1671  test -z "$as_dir" && as_dir=.
1672  for ac_exec_ext in '' $ac_executable_extensions; do
1673  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674    ac_cv_prog_have_svnversion="yes"
1675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676    break 2
1677  fi
1678done
1679done
1680
1681  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1682fi
1683fi
1684have_svnversion=$ac_cv_prog_have_svnversion
1685if test -n "$have_svnversion"; then
1686  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1687echo "${ECHO_T}$have_svnversion" >&6
1688else
1689  echo "$as_me:$LINENO: result: no" >&5
1690echo "${ECHO_T}no" >&6
1691fi
1692
1693if test "x$have_svnversion" = xyes && test "xMumps" != x; then
1694
1695  svn_rev_tmp=`cd $srcdir/$coin_has_mumps ; svnversion`
1696  MUMPS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1697  if test $MUMPS_SVN_REV != exported; then
1698
1699cat >>confdefs.h <<_ACEOF
1700#define MUMPS_SVN_REV $MUMPS_SVN_REV
1701_ACEOF
1702
1703  fi
1704fi
1705
1706# Capture libtool library version, if given.
1707
1708
1709
1710#############################################################################
1711#                         Standard build tool stuff                         #
1712#############################################################################
1713
1714# Get the system type
1715ac_aux_dir=
1716for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1717  if test -f $ac_dir/install-sh; then
1718    ac_aux_dir=$ac_dir
1719    ac_install_sh="$ac_aux_dir/install-sh -c"
1720    break
1721  elif test -f $ac_dir/install.sh; then
1722    ac_aux_dir=$ac_dir
1723    ac_install_sh="$ac_aux_dir/install.sh -c"
1724    break
1725  elif test -f $ac_dir/shtool; then
1726    ac_aux_dir=$ac_dir
1727    ac_install_sh="$ac_aux_dir/shtool install -c"
1728    break
1729  fi
1730done
1731if test -z "$ac_aux_dir"; then
1732  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1733echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1734   { (exit 1); exit 1; }; }
1735fi
1736ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1737ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1738ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1739
1740# Make sure we can run config.sub.
1741$ac_config_sub sun4 >/dev/null 2>&1 ||
1742  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1743echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1744   { (exit 1); exit 1; }; }
1745
1746echo "$as_me:$LINENO: checking build system type" >&5
1747echo $ECHO_N "checking build system type... $ECHO_C" >&6
1748if test "${ac_cv_build+set}" = set; then
1749  echo $ECHO_N "(cached) $ECHO_C" >&6
1750else
1751  ac_cv_build_alias=$build_alias
1752test -z "$ac_cv_build_alias" &&
1753  ac_cv_build_alias=`$ac_config_guess`
1754test -z "$ac_cv_build_alias" &&
1755  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1756echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1757   { (exit 1); exit 1; }; }
1758ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1759  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1760echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1761   { (exit 1); exit 1; }; }
1762
1763fi
1764echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1765echo "${ECHO_T}$ac_cv_build" >&6
1766build=$ac_cv_build
1767build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1768build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1769build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1770
1771
1772
1773#turn off warnings and pedantic mode since they could make trouble on some platforms,
1774#and we couldn't fix them anyway
1775coin_skip_warn_cflags=yes
1776coin_skip_warn_fflags=yes
1777
1778# Check if user wants to produce debugging code
1779
1780echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1781echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1782
1783# Check whether --enable-debug or --disable-debug was given.
1784if test "${enable_debug+set}" = set; then
1785  enableval="$enable_debug"
1786  case "${enableval}" in
1787   yes) coin_debug_compile=true
1788        if test "${enable_shared+set}" = set; then :; else
1789          enable_shared=no
1790        fi
1791        ;;
1792   no)  coin_debug_compile=false
1793        ;;
1794   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1795echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1796   { (exit 1); exit 1; }; }
1797        ;;
1798esac
1799else
1800  coin_debug_compile=false
1801fi;
1802
1803# Check whether --enable-debug-mumps or --disable-debug-mumps was given.
1804if test "${enable_debug_mumps+set}" = set; then
1805  enableval="$enable_debug_mumps"
1806  case "${enableval}" in
1807    yes) coin_debug_compile=true
1808         enable_shared=no
1809         ;;
1810    no)  coin_debug_compile=false
1811         ;;
1812    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-mumps" >&5
1813echo "$as_me: error: bad value ${enableval} for --enable-debug-mumps" >&2;}
1814   { (exit 1); exit 1; }; }
1815         ;;
1816 esac
1817else
1818  :
1819fi;
1820
1821 # m4_ifvaln([Mumps],
1822
1823if test $coin_debug_compile = true; then
1824  echo "$as_me:$LINENO: result: yes" >&5
1825echo "${ECHO_T}yes" >&6
1826else
1827  echo "$as_me:$LINENO: result: no" >&5
1828echo "${ECHO_T}no" >&6
1829fi
1830
1831
1832# Check whether --with-mumps-verbosity or --without-mumps-verbosity was given.
1833if test "${with_mumps_verbosity+set}" = set; then
1834  withval="$with_mumps_verbosity"
1835  if test "$withval" = yes; then
1836                withval=1
1837              fi
1838              coin_mumps_verbosity=$withval
1839else
1840  coin_mumps_verbosity=0
1841fi;
1842
1843cat >>confdefs.h <<_ACEOF
1844#define COIN_MUMPS_VERBOSITY $coin_mumps_verbosity
1845_ACEOF
1846
1847
1848
1849# Check whether --with-mumps-checklevel or --without-mumps-checklevel was given.
1850if test "${with_mumps_checklevel+set}" = set; then
1851  withval="$with_mumps_checklevel"
1852  if test "$withval" = yes; then
1853                withval=1
1854              fi
1855              coin_mumps_checklevel=$withval
1856else
1857  coin_mumps_checklevel=0
1858fi;
1859
1860cat >>confdefs.h <<_ACEOF
1861#define COIN_MUMPS_CHECKLEVEL $coin_mumps_checklevel
1862_ACEOF
1863
1864
1865# We use the following variable to have a string with the upper case
1866# version of the project name
1867COIN_PRJCT=MUMPS
1868
1869
1870 # m4_ifvaln([Mumps],
1871
1872
1873
1874# Get the name of the C compiler
1875case $build in
1876  *-mingw*)
1877    if test "${LD+set}" = set; then :; else
1878      LD=link
1879    fi
1880    ;;
1881 esac
1882 case $enable_doscompile in
1883   msvc)
1884     if test "x${LD+set}" = xset; then :; else
1885       LD=link
1886     fi
1887     ;;
1888 esac
1889
1890
1891 # Check whether --enable-doscompile or --disable-doscompile was given.
1892if test "${enable_doscompile+set}" = set; then
1893  enableval="$enable_doscompile"
1894  if test "$enable_doscompile" != no; then
1895     case $build in
1896       *-cygwin* | *-mingw*) ;;
1897       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1898echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1899   { (exit 1); exit 1; }; } ;;
1900     esac
1901   fi
1902else
1903  enable_doscompile=no
1904fi;
1905 case "$enable_doscompile" in
1906   mingw)
1907     case $build in
1908       *-mingw*) enable_doscompile=no ;;
1909     esac
1910     ;;
1911   msvc|no) ;;
1912   yes) enable_doscompile=mingw ;;
1913   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1914                    Try configure --help=recursive." >&5
1915echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1916                    Try configure --help=recursive." >&2;}
1917   { (exit 1); exit 1; }; }
1918      ;;
1919  esac
1920  if test "$enable_doscompile" != no ; then
1921    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1922echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1923  fi
1924
1925
1926
1927
1928ac_ext=c
1929ac_cpp='$CPP $CPPFLAGS'
1930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933
1934
1935# For consistency, we set the C compiler to the same value of the C++
1936# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1937if test x"$CXX" != x; then
1938  case "$CXX" in
1939    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1940      if test x"$CC" = x; then
1941        CC="$CXX"
1942        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1943echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1944      fi
1945      ;;
1946  esac
1947fi
1948
1949# add automake conditional so we can recognize cl compiler in makefile
1950coin_cc_is_cl=false
1951if test x"$CXX" != x; then
1952  case "$CXX" in
1953    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1954      coin_cc_is_cl=true
1955      ;;
1956  esac
1957fi
1958
1959
1960if test $coin_cc_is_cl = true; then
1961  COIN_CC_IS_CL_TRUE=
1962  COIN_CC_IS_CL_FALSE='#'
1963else
1964  COIN_CC_IS_CL_TRUE='#'
1965  COIN_CC_IS_CL_FALSE=
1966fi
1967
1968
1969
1970
1971
1972
1973
1974coin_has_cc=yes
1975
1976save_cflags="$CFLAGS"
1977
1978# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1979# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1980# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1981# compiler. In this case, put cc after gcc.
1982
1983case $build in
1984  *-cygwin* | *-mingw*)
1985             if test "$enable_doscompile" = msvc ; then
1986               comps="icl cl"
1987             else
1988               comps="gcc cl"
1989             fi ;;
1990  *-*-solaris*)
1991             # Extract the first word of "cc", so it can be a program name with args.
1992set dummy cc; ac_word=$2
1993echo "$as_me:$LINENO: checking for $ac_word" >&5
1994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1996  echo $ECHO_N "(cached) $ECHO_C" >&6
1997else
1998  if test -n "$sol_cc_compiler"; then
1999  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2000else
2001  ac_prog_rejected=no
2002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003for as_dir in $PATH
2004do
2005  IFS=$as_save_IFS
2006  test -z "$as_dir" && as_dir=.
2007  for ac_exec_ext in '' $ac_executable_extensions; do
2008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2010       ac_prog_rejected=yes
2011       continue
2012     fi
2013    ac_cv_prog_sol_cc_compiler="cc"
2014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015    break 2
2016  fi
2017done
2018done
2019
2020if test $ac_prog_rejected = yes; then
2021  # We found a bogon in the path, so make sure we never use it.
2022  set dummy $ac_cv_prog_sol_cc_compiler
2023  shift
2024  if test $# != 0; then
2025    # We chose a different compiler from the bogus one.
2026    # However, it has the same basename, so the bogon will be chosen
2027    # first if we set sol_cc_compiler to just the basename; use the full file name.
2028    shift
2029    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2030  fi
2031fi
2032fi
2033fi
2034sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2035if test -n "$sol_cc_compiler"; then
2036  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2037echo "${ECHO_T}$sol_cc_compiler" >&6
2038else
2039  echo "$as_me:$LINENO: result: no" >&5
2040echo "${ECHO_T}no" >&6
2041fi
2042
2043             if test "$sol_cc_compiler" = "cc" ; then
2044               comps="cc xlc gcc pgcc icc"
2045             else
2046               comps="xlc gcc pgcc icc cc"
2047             fi
2048             ;;
2049  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2050  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2051esac
2052
2053# We delete the cached value, since the test might not have been
2054# performed with our choice of compilers earlier
2055$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2056# AC_MSG_NOTICE([C compiler candidates: $comps])
2057ac_ext=c
2058ac_cpp='$CPP $CPPFLAGS'
2059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062if test -n "$ac_tool_prefix"; then
2063  for ac_prog in $comps
2064  do
2065    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2067echo "$as_me:$LINENO: checking for $ac_word" >&5
2068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069if test "${ac_cv_prog_CC+set}" = set; then
2070  echo $ECHO_N "(cached) $ECHO_C" >&6
2071else
2072  if test -n "$CC"; then
2073  ac_cv_prog_CC="$CC" # Let the user override the test.
2074else
2075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076for as_dir in $PATH
2077do
2078  IFS=$as_save_IFS
2079  test -z "$as_dir" && as_dir=.
2080  for ac_exec_ext in '' $ac_executable_extensions; do
2081  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2083    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084    break 2
2085  fi
2086done
2087done
2088
2089fi
2090fi
2091CC=$ac_cv_prog_CC
2092if test -n "$CC"; then
2093  echo "$as_me:$LINENO: result: $CC" >&5
2094echo "${ECHO_T}$CC" >&6
2095else
2096  echo "$as_me:$LINENO: result: no" >&5
2097echo "${ECHO_T}no" >&6
2098fi
2099
2100    test -n "$CC" && break
2101  done
2102fi
2103if test -z "$CC"; then
2104  ac_ct_CC=$CC
2105  for ac_prog in $comps
2106do
2107  # Extract the first word of "$ac_prog", so it can be a program name with args.
2108set dummy $ac_prog; ac_word=$2
2109echo "$as_me:$LINENO: checking for $ac_word" >&5
2110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2112  echo $ECHO_N "(cached) $ECHO_C" >&6
2113else
2114  if test -n "$ac_ct_CC"; then
2115  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2116else
2117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118for as_dir in $PATH
2119do
2120  IFS=$as_save_IFS
2121  test -z "$as_dir" && as_dir=.
2122  for ac_exec_ext in '' $ac_executable_extensions; do
2123  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2124    ac_cv_prog_ac_ct_CC="$ac_prog"
2125    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126    break 2
2127  fi
2128done
2129done
2130
2131fi
2132fi
2133ac_ct_CC=$ac_cv_prog_ac_ct_CC
2134if test -n "$ac_ct_CC"; then
2135  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2136echo "${ECHO_T}$ac_ct_CC" >&6
2137else
2138  echo "$as_me:$LINENO: result: no" >&5
2139echo "${ECHO_T}no" >&6
2140fi
2141
2142  test -n "$ac_ct_CC" && break
2143done
2144
2145  CC=$ac_ct_CC
2146fi
2147
2148
2149test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2150See \`config.log' for more details." >&5
2151echo "$as_me: error: no acceptable C compiler found in \$PATH
2152See \`config.log' for more details." >&2;}
2153   { (exit 1); exit 1; }; }
2154
2155# Provide some information about the compiler.
2156echo "$as_me:$LINENO:" \
2157     "checking for C compiler version" >&5
2158ac_compiler=`set X $ac_compile; echo $2`
2159{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2160  (eval $ac_compiler --version </dev/null >&5) 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }
2164{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2165  (eval $ac_compiler -v </dev/null >&5) 2>&5
2166  ac_status=$?
2167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168  (exit $ac_status); }
2169{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2170  (eval $ac_compiler -V </dev/null >&5) 2>&5
2171  ac_status=$?
2172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173  (exit $ac_status); }
2174
2175cat >conftest.$ac_ext <<_ACEOF
2176/* confdefs.h.  */
2177_ACEOF
2178cat confdefs.h >>conftest.$ac_ext
2179cat >>conftest.$ac_ext <<_ACEOF
2180/* end confdefs.h.  */
2181
2182int
2183main ()
2184{
2185
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190ac_clean_files_save=$ac_clean_files
2191ac_clean_files="$ac_clean_files a.out a.exe b.out"
2192# Try to create an executable without -o first, disregard a.out.
2193# It will help us diagnose broken compilers, and finding out an intuition
2194# of exeext.
2195echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2196echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2197ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2198if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2199  (eval $ac_link_default) 2>&5
2200  ac_status=$?
2201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202  (exit $ac_status); }; then
2203  # Find the output, starting from the most likely.  This scheme is
2204# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2205# resort.
2206
2207# Be careful to initialize this variable, since it used to be cached.
2208# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2209ac_cv_exeext=
2210# b.out is created by i960 compilers.
2211for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2212do
2213  test -f "$ac_file" || continue
2214  case $ac_file in
2215    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2216        ;;
2217    conftest.$ac_ext )
2218        # This is the source file.
2219        ;;
2220    [ab].out )
2221        # We found the default executable, but exeext='' is most
2222        # certainly right.
2223        break;;
2224    *.* )
2225        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226        # FIXME: I believe we export ac_cv_exeext for Libtool,
2227        # but it would be cool to find out if it's true.  Does anybody
2228        # maintain Libtool? --akim.
2229        export ac_cv_exeext
2230        break;;
2231    * )
2232        break;;
2233  esac
2234done
2235else
2236  echo "$as_me: failed program was:" >&5
2237sed 's/^/| /' conftest.$ac_ext >&5
2238
2239{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2240See \`config.log' for more details." >&5
2241echo "$as_me: error: C compiler cannot create executables
2242See \`config.log' for more details." >&2;}
2243   { (exit 77); exit 77; }; }
2244fi
2245
2246ac_exeext=$ac_cv_exeext
2247echo "$as_me:$LINENO: result: $ac_file" >&5
2248echo "${ECHO_T}$ac_file" >&6
2249
2250# Check the compiler produces executables we can run.  If not, either
2251# the compiler is broken, or we cross compile.
2252echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2253echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2254# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2255# If not cross compiling, check that we can run a simple program.
2256if test "$cross_compiling" != yes; then
2257  if { ac_try='./$ac_file'
2258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259  (eval $ac_try) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; }; then
2263    cross_compiling=no
2264  else
2265    if test "$cross_compiling" = maybe; then
2266        cross_compiling=yes
2267    else
2268        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2269If you meant to cross compile, use \`--host'.
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: cannot run C compiled programs.
2272If you meant to cross compile, use \`--host'.
2273See \`config.log' for more details." >&2;}
2274   { (exit 1); exit 1; }; }
2275    fi
2276  fi
2277fi
2278echo "$as_me:$LINENO: result: yes" >&5
2279echo "${ECHO_T}yes" >&6
2280
2281rm -f a.out a.exe conftest$ac_cv_exeext b.out
2282ac_clean_files=$ac_clean_files_save
2283# Check the compiler produces executables we can run.  If not, either
2284# the compiler is broken, or we cross compile.
2285echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2286echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2287echo "$as_me:$LINENO: result: $cross_compiling" >&5
2288echo "${ECHO_T}$cross_compiling" >&6
2289
2290echo "$as_me:$LINENO: checking for suffix of executables" >&5
2291echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2293  (eval $ac_link) 2>&5
2294  ac_status=$?
2295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296  (exit $ac_status); }; then
2297  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2298# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2299# work properly (i.e., refer to `conftest.exe'), while it won't with
2300# `rm'.
2301for ac_file in conftest.exe conftest conftest.*; do
2302  test -f "$ac_file" || continue
2303  case $ac_file in
2304    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2305    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2306          export ac_cv_exeext
2307          break;;
2308    * ) break;;
2309  esac
2310done
2311else
2312  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313See \`config.log' for more details." >&5
2314echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315See \`config.log' for more details." >&2;}
2316   { (exit 1); exit 1; }; }
2317fi
2318
2319rm -f conftest$ac_cv_exeext
2320echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321echo "${ECHO_T}$ac_cv_exeext" >&6
2322
2323rm -f conftest.$ac_ext
2324EXEEXT=$ac_cv_exeext
2325ac_exeext=$EXEEXT
2326echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2328if test "${ac_cv_objext+set}" = set; then
2329  echo $ECHO_N "(cached) $ECHO_C" >&6
2330else
2331  cat >conftest.$ac_ext <<_ACEOF
2332/* confdefs.h.  */
2333_ACEOF
2334cat confdefs.h >>conftest.$ac_ext
2335cat >>conftest.$ac_ext <<_ACEOF
2336/* end confdefs.h.  */
2337
2338int
2339main ()
2340{
2341
2342  ;
2343  return 0;
2344}
2345_ACEOF
2346rm -f conftest.o conftest.obj
2347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348  (eval $ac_compile) 2>&5
2349  ac_status=$?
2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351  (exit $ac_status); }; then
2352  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2353  case $ac_file in
2354    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2355    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2356       break;;
2357  esac
2358done
2359else
2360  echo "$as_me: failed program was:" >&5
2361sed 's/^/| /' conftest.$ac_ext >&5
2362
2363{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2364See \`config.log' for more details." >&5
2365echo "$as_me: error: cannot compute suffix of object files: cannot compile
2366See \`config.log' for more details." >&2;}
2367   { (exit 1); exit 1; }; }
2368fi
2369
2370rm -f conftest.$ac_cv_objext conftest.$ac_ext
2371fi
2372echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2373echo "${ECHO_T}$ac_cv_objext" >&6
2374OBJEXT=$ac_cv_objext
2375ac_objext=$OBJEXT
2376echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2377echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2378if test "${ac_cv_c_compiler_gnu+set}" = set; then
2379  echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381  cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387
2388int
2389main ()
2390{
2391#ifndef __GNUC__
2392       choke me
2393#endif
2394
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399rm -f conftest.$ac_objext
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401  (eval $ac_compile) 2>conftest.er1
2402  ac_status=$?
2403  grep -v '^ *+' conftest.er1 >conftest.err
2404  rm -f conftest.er1
2405  cat conftest.err >&5
2406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407  (exit $ac_status); } &&
2408         { ac_try='test -z "$ac_c_werror_flag"
2409                         || test ! -s conftest.err'
2410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411  (eval $ac_try) 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; } &&
2415         { ac_try='test -s conftest.$ac_objext'
2416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417  (eval $ac_try) 2>&5
2418  ac_status=$?
2419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420  (exit $ac_status); }; }; then
2421  ac_compiler_gnu=yes
2422else
2423  echo "$as_me: failed program was:" >&5
2424sed 's/^/| /' conftest.$ac_ext >&5
2425
2426ac_compiler_gnu=no
2427fi
2428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429ac_cv_c_compiler_gnu=$ac_compiler_gnu
2430
2431fi
2432echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2434GCC=`test $ac_compiler_gnu = yes && echo yes`
2435ac_test_CFLAGS=${CFLAGS+set}
2436ac_save_CFLAGS=$CFLAGS
2437CFLAGS="-g"
2438echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2439echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2440if test "${ac_cv_prog_cc_g+set}" = set; then
2441  echo $ECHO_N "(cached) $ECHO_C" >&6
2442else
2443  cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h.  */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
2448/* end confdefs.h.  */
2449
2450int
2451main ()
2452{
2453
2454  ;
2455  return 0;
2456}
2457_ACEOF
2458rm -f conftest.$ac_objext
2459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460  (eval $ac_compile) 2>conftest.er1
2461  ac_status=$?
2462  grep -v '^ *+' conftest.er1 >conftest.err
2463  rm -f conftest.er1
2464  cat conftest.err >&5
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); } &&
2467         { ac_try='test -z "$ac_c_werror_flag"
2468                         || test ! -s conftest.err'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; } &&
2474         { ac_try='test -s conftest.$ac_objext'
2475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476  (eval $ac_try) 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }; }; then
2480  ac_cv_prog_cc_g=yes
2481else
2482  echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485ac_cv_prog_cc_g=no
2486fi
2487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488fi
2489echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2490echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2491if test "$ac_test_CFLAGS" = set; then
2492  CFLAGS=$ac_save_CFLAGS
2493elif test $ac_cv_prog_cc_g = yes; then
2494  if test "$GCC" = yes; then
2495    CFLAGS="-g -O2"
2496  else
2497    CFLAGS="-g"
2498  fi
2499else
2500  if test "$GCC" = yes; then
2501    CFLAGS="-O2"
2502  else
2503    CFLAGS=
2504  fi
2505fi
2506echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2507echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2508if test "${ac_cv_prog_cc_stdc+set}" = set; then
2509  echo $ECHO_N "(cached) $ECHO_C" >&6
2510else
2511  ac_cv_prog_cc_stdc=no
2512ac_save_CC=$CC
2513cat >conftest.$ac_ext <<_ACEOF
2514/* confdefs.h.  */
2515_ACEOF
2516cat confdefs.h >>conftest.$ac_ext
2517cat >>conftest.$ac_ext <<_ACEOF
2518/* end confdefs.h.  */
2519#include <stdarg.h>
2520#include <stdio.h>
2521#include <sys/types.h>
2522#include <sys/stat.h>
2523/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2524struct buf { int x; };
2525FILE * (*rcsopen) (struct buf *, struct stat *, int);
2526static char *e (p, i)
2527     char **p;
2528     int i;
2529{
2530  return p[i];
2531}
2532static char *f (char * (*g) (char **, int), char **p, ...)
2533{
2534  char *s;
2535  va_list v;
2536  va_start (v,p);
2537  s = g (p, va_arg (v,int));
2538  va_end (v);
2539  return s;
2540}
2541
2542/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2543   function prototypes and stuff, but not '\xHH' hex character constants.
2544   These don't provoke an error unfortunately, instead are silently treated
2545   as 'x'.  The following induces an error, until -std1 is added to get
2546   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2547   array size at least.  It's necessary to write '\x00'==0 to get something
2548   that's true only with -std1.  */
2549int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2550
2551int test (int i, double x);
2552struct s1 {int (*f) (int a);};
2553struct s2 {int (*f) (double a);};
2554int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2555int argc;
2556char **argv;
2557int
2558main ()
2559{
2560return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2561  ;
2562  return 0;
2563}
2564_ACEOF
2565# Don't try gcc -ansi; that turns off useful extensions and
2566# breaks some systems' header files.
2567# AIX                   -qlanglvl=ansi
2568# Ultrix and OSF/1      -std1
2569# HP-UX 10.20 and later -Ae
2570# HP-UX older versions  -Aa -D_HPUX_SOURCE
2571# SVR4                  -Xc -D__EXTENSIONS__
2572for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2573do
2574  CC="$ac_save_CC $ac_arg"
2575  rm -f conftest.$ac_objext
2576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577  (eval $ac_compile) 2>conftest.er1
2578  ac_status=$?
2579  grep -v '^ *+' conftest.er1 >conftest.err
2580  rm -f conftest.er1
2581  cat conftest.err >&5
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); } &&
2584         { ac_try='test -z "$ac_c_werror_flag"
2585                         || test ! -s conftest.err'
2586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587  (eval $ac_try) 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; } &&
2591         { ac_try='test -s conftest.$ac_objext'
2592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593  (eval $ac_try) 2>&5
2594  ac_status=$?
2595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596  (exit $ac_status); }; }; then
2597  ac_cv_prog_cc_stdc=$ac_arg
2598break
2599else
2600  echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603fi
2604rm -f conftest.err conftest.$ac_objext
2605done
2606rm -f conftest.$ac_ext conftest.$ac_objext
2607CC=$ac_save_CC
2608
2609fi
2610
2611case "x$ac_cv_prog_cc_stdc" in
2612  x|xno)
2613    echo "$as_me:$LINENO: result: none needed" >&5
2614echo "${ECHO_T}none needed" >&6 ;;
2615  *)
2616    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2617echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2618    CC="$CC $ac_cv_prog_cc_stdc" ;;
2619esac
2620
2621# Some people use a C++ compiler to compile C.  Since we use `exit',
2622# in C++ we need to declare it.  In case someone uses the same compiler
2623# for both compiling C and C++ we need to have the C++ compiler decide
2624# the declaration of exit, since it's the most demanding environment.
2625cat >conftest.$ac_ext <<_ACEOF
2626#ifndef __cplusplus
2627  choke me
2628#endif
2629_ACEOF
2630rm -f conftest.$ac_objext
2631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632  (eval $ac_compile) 2>conftest.er1
2633  ac_status=$?
2634  grep -v '^ *+' conftest.er1 >conftest.err
2635  rm -f conftest.er1
2636  cat conftest.err >&5
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); } &&
2639         { ac_try='test -z "$ac_c_werror_flag"
2640                         || test ! -s conftest.err'
2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642  (eval $ac_try) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; } &&
2646         { ac_try='test -s conftest.$ac_objext'
2647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648  (eval $ac_try) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; }; then
2652  for ac_declaration in \
2653   '' \
2654   'extern "C" void std::exit (int) throw (); using std::exit;' \
2655   'extern "C" void std::exit (int); using std::exit;' \
2656   'extern "C" void exit (int) throw ();' \
2657   'extern "C" void exit (int);' \
2658   'void exit (int);'
2659do
2660  cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h.  */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h.  */
2666$ac_declaration
2667#include <stdlib.h>
2668int
2669main ()
2670{
2671exit (42);
2672  ;
2673  return 0;
2674}
2675_ACEOF
2676rm -f conftest.$ac_objext
2677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678  (eval $ac_compile) 2>conftest.er1
2679  ac_status=$?
2680  grep -v '^ *+' conftest.er1 >conftest.err
2681  rm -f conftest.er1
2682  cat conftest.err >&5
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); } &&
2685         { ac_try='test -z "$ac_c_werror_flag"
2686                         || test ! -s conftest.err'
2687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688  (eval $ac_try) 2>&5
2689  ac_status=$?
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); }; } &&
2692         { ac_try='test -s conftest.$ac_objext'
2693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694  (eval $ac_try) 2>&5
2695  ac_status=$?
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); }; }; then
2698  :
2699else
2700  echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703continue
2704fi
2705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2706  cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h.  */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h.  */
2712$ac_declaration
2713int
2714main ()
2715{
2716exit (42);
2717  ;
2718  return 0;
2719}
2720_ACEOF
2721rm -f conftest.$ac_objext
2722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723  (eval $ac_compile) 2>conftest.er1
2724  ac_status=$?
2725  grep -v '^ *+' conftest.er1 >conftest.err
2726  rm -f conftest.er1
2727  cat conftest.err >&5
2728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729  (exit $ac_status); } &&
2730         { ac_try='test -z "$ac_c_werror_flag"
2731                         || test ! -s conftest.err'
2732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733  (eval $ac_try) 2>&5
2734  ac_status=$?
2735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736  (exit $ac_status); }; } &&
2737         { ac_try='test -s conftest.$ac_objext'
2738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739  (eval $ac_try) 2>&5
2740  ac_status=$?
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); }; }; then
2743  break
2744else
2745  echo "$as_me: failed program was:" >&5
2746sed 's/^/| /' conftest.$ac_ext >&5
2747
2748fi
2749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750done
2751rm -f conftest*
2752if test -n "$ac_declaration"; then
2753  echo '#ifdef __cplusplus' >>confdefs.h
2754  echo $ac_declaration      >>confdefs.h
2755  echo '#endif'             >>confdefs.h
2756fi
2757
2758else
2759  echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762fi
2763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764ac_ext=c
2765ac_cpp='$CPP $CPPFLAGS'
2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
2770if test -z "$CC" ; then
2771  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2772echo "$as_me: error: Failed to find a C compiler!" >&2;}
2773   { (exit 1); exit 1; }; }
2774fi
2775# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2776case "$CC" in
2777  cl* | */cl* | CL* | */CL* )
2778    if test "$ac_cv_prog_cc_g" = yes ; then
2779      ac_cv_prog_cc_g=no
2780      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2781echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2782    fi ;;
2783esac
2784CFLAGS="$save_cflags"
2785
2786# Check if a project specific CFLAGS variable has been set
2787if test x$COIN_PRJCT != x; then
2788  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2789  if test x$coin_tmp = xset; then
2790    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2791  fi
2792fi
2793
2794if test x"$CFLAGS" = x; then
2795
2796  coin_add_cflags=
2797  coin_opt_cflags=
2798  coin_dbg_cflags=
2799  coin_warn_cflags=
2800
2801  if test "$GCC" = "yes"; then
2802    case "$CC" in
2803      icc* | */icc*)
2804        ;;
2805      *)
2806        coin_opt_cflags="-O3"
2807        coin_add_cflags="-pipe"
2808        coin_dbg_cflags="-g"
2809        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2810        case $build in
2811          *-darwin*)
2812            ;;
2813          *)
2814            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2815            ;;
2816        esac
2817        case $enable_doscompile in
2818          mingw)
2819            CFLAGS="-mno-cygwin"
2820            cat >conftest.$ac_ext <<_ACEOF
2821/* confdefs.h.  */
2822_ACEOF
2823cat confdefs.h >>conftest.$ac_ext
2824cat >>conftest.$ac_ext <<_ACEOF
2825/* end confdefs.h.  */
2826
2827int
2828main ()
2829{
2830int i=0; i++;
2831  ;
2832  return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext conftest$ac_exeext
2836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2837  (eval $ac_link) 2>conftest.er1
2838  ac_status=$?
2839  grep -v '^ *+' conftest.er1 >conftest.err
2840  rm -f conftest.er1
2841  cat conftest.err >&5
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); } &&
2844         { ac_try='test -z "$ac_c_werror_flag"
2845                         || test ! -s conftest.err'
2846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847  (eval $ac_try) 2>&5
2848  ac_status=$?
2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850  (exit $ac_status); }; } &&
2851         { ac_try='test -s conftest$ac_exeext'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; }; then
2857  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2858else
2859  echo "$as_me: failed program was:" >&5
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
2862fi
2863rm -f conftest.err conftest.$ac_objext \
2864      conftest$ac_exeext conftest.$ac_ext
2865            CFLAGS=
2866          ;;
2867        esac
2868    esac
2869  fi
2870  if test -z "$coin_opt_cflags"; then
2871    case $build in
2872      *-cygwin* | *-mingw*)
2873        case "$CC" in
2874          cl* | */cl* | CL* | */CL*)
2875            coin_opt_cflags='-MT -O2'
2876            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2877            coin_dbg_cflags='-MTd'
2878            ;;
2879          icl* | */icl* | ICL* | */ICL*)
2880            coin_opt_cflags='-MT -Ox'
2881            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2882            coin_dbg_cflags='-MTd -debug'
2883            ;;
2884        esac
2885        ;;
2886      *-linux-*)
2887        case "$CC" in
2888          icc* | */icc*)
2889            coin_opt_cflags="-O3 -ip -mp1"
2890            coin_add_cflags=""
2891            coin_dbg_cflags="-g"
2892            # Check if -i_dynamic is necessary (for new glibc library)
2893            CFLAGS=
2894            cat >conftest.$ac_ext <<_ACEOF
2895/* confdefs.h.  */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h.  */
2900
2901int
2902main ()
2903{
2904int i=0; i++;
2905  ;
2906  return 0;
2907}
2908_ACEOF
2909rm -f conftest.$ac_objext conftest$ac_exeext
2910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911  (eval $ac_link) 2>conftest.er1
2912  ac_status=$?
2913  grep -v '^ *+' conftest.er1 >conftest.err
2914  rm -f conftest.er1
2915  cat conftest.err >&5
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); } &&
2918         { ac_try='test -z "$ac_c_werror_flag"
2919                         || test ! -s conftest.err'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; } &&
2925         { ac_try='test -s conftest$ac_exeext'
2926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927  (eval $ac_try) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }; }; then
2931  :
2932else
2933  echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936coin_add_cflags="-i_dynamic $coin_add_cflags"
2937fi
2938rm -f conftest.err conftest.$ac_objext \
2939      conftest$ac_exeext conftest.$ac_ext
2940            ;;
2941          pgcc* | */pgcc*)
2942            coin_opt_cflags="-fast"
2943            coin_add_cflags="-Kieee -pc 64"
2944            coin_dbg_cflags="-g"
2945            ;;
2946        esac
2947        ;;
2948      *-ibm-*)
2949        case "$CC" in
2950          xlc* | */xlc* | mpxlc* | */mpxlc*)
2951            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2952            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2953            coin_dbg_cflags="-g"
2954          ;;
2955        esac
2956        ;;
2957      *-hp-*)
2958        coin_opt_cflags="-O"
2959        coin_add_cflags="-Ae"
2960        coin_dbg_cflags="-g"
2961        ;;
2962      *-*-solaris*)
2963        coin_opt_cflags="-xO4"
2964        coin_dbg_cflags="-g"
2965        ;;
2966      *-sgi-*)
2967        coin_opt_cflags="-O -OPT:Olimit=0"
2968        coin_dbg_cflags="-g"
2969        ;;
2970    esac
2971  fi
2972
2973  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2974    coin_dbg_cflags="-g"
2975  fi
2976
2977  if test -z "$coin_opt_cflags"; then
2978    # Try if -O option works if nothing else is set
2979    CFLAGS="-O"
2980    cat >conftest.$ac_ext <<_ACEOF
2981/* confdefs.h.  */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h.  */
2986
2987int
2988main ()
2989{
2990int i=0; i++;
2991  ;
2992  return 0;
2993}
2994_ACEOF
2995rm -f conftest.$ac_objext conftest$ac_exeext
2996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2997  (eval $ac_link) 2>conftest.er1
2998  ac_status=$?
2999  grep -v '^ *+' conftest.er1 >conftest.err
3000  rm -f conftest.er1
3001  cat conftest.err >&5
3002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003  (exit $ac_status); } &&
3004         { ac_try='test -z "$ac_c_werror_flag"
3005                         || test ! -s conftest.err'
3006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007  (eval $ac_try) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }; } &&
3011         { ac_try='test -s conftest$ac_exeext'
3012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013  (eval $ac_try) 2>&5
3014  ac_status=$?
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); }; }; then
3017  coin_opt_cflags="-O"
3018else
3019  echo "$as_me: failed program was:" >&5
3020sed 's/^/| /' conftest.$ac_ext >&5
3021
3022fi
3023rm -f conftest.err conftest.$ac_objext \
3024      conftest$ac_exeext conftest.$ac_ext
3025  fi
3026
3027  # if PM doesn't want the warning messages, take them out
3028  if test x"$coin_skip_warn_cflags" = xyes; then
3029    coin_warn_cflags=
3030  fi
3031
3032  if test x${DBG_CFLAGS+set} != xset; then
3033    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3034  fi
3035  if test x${OPT_CFLAGS+set} != xset; then
3036    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3037  fi
3038
3039  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3040  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3041
3042  if test "$coin_debug_compile" = "true"; then
3043    CFLAGS="$DBG_CFLAGS"
3044  else
3045    CFLAGS="$OPT_CFLAGS"
3046  fi
3047else
3048  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3049  if test x${DBG_CFLAGS+set} != xset; then
3050    DBG_CFLAGS="$CFLAGS"
3051  fi
3052  if test x${OPT_CFLAGS+set} != xset; then
3053    OPT_CFLAGS="$CFLAGS"
3054  fi
3055fi
3056
3057# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3058
3059case "$CFLAGS" in
3060  *-mno-cygwin*)
3061    if test x${CPPFLAGS+set} != xset ; then
3062      CPPFLAGS="-mno-cygwin"
3063    else
3064      case "$CPPFLAGS" in
3065        *-mno-cygwin*)
3066          ;;
3067        *)
3068          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3069          ;;
3070      esac
3071    fi ;;
3072esac
3073
3074# Try if CFLAGS works
3075save_CFLAGS="$CFLAGS"
3076cat >conftest.$ac_ext <<_ACEOF
3077/* confdefs.h.  */
3078_ACEOF
3079cat confdefs.h >>conftest.$ac_ext
3080cat >>conftest.$ac_ext <<_ACEOF
3081/* end confdefs.h.  */
3082
3083int
3084main ()
3085{
3086int i=0; i++;
3087  ;
3088  return 0;
3089}
3090_ACEOF
3091rm -f conftest.$ac_objext conftest$ac_exeext
3092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3093  (eval $ac_link) 2>conftest.er1
3094  ac_status=$?
3095  grep -v '^ *+' conftest.er1 >conftest.err
3096  rm -f conftest.er1
3097  cat conftest.err >&5
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); } &&
3100         { ac_try='test -z "$ac_c_werror_flag"
3101                         || test ! -s conftest.err'
3102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103  (eval $ac_try) 2>&5
3104  ac_status=$?
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); }; } &&
3107         { ac_try='test -s conftest$ac_exeext'
3108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109  (eval $ac_try) 2>&5
3110  ac_status=$?
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); }; }; then
3113  :
3114else
3115  echo "$as_me: failed program was:" >&5
3116sed 's/^/| /' conftest.$ac_ext >&5
3117
3118CFLAGS=
3119fi
3120rm -f conftest.err conftest.$ac_objext \
3121      conftest$ac_exeext conftest.$ac_ext
3122if test -z "$CFLAGS"; then
3123  { 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
3124echo "$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;}
3125  CFLAGS='-O'
3126  cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h.  */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h.  */
3132
3133int
3134main ()
3135{
3136int i=0; i++;
3137  ;
3138  return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext conftest$ac_exeext
3142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3143  (eval $ac_link) 2>conftest.er1
3144  ac_status=$?
3145  grep -v '^ *+' conftest.er1 >conftest.err
3146  rm -f conftest.er1
3147  cat conftest.err >&5
3148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149  (exit $ac_status); } &&
3150         { ac_try='test -z "$ac_c_werror_flag"
3151                         || test ! -s conftest.err'
3152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153  (eval $ac_try) 2>&5
3154  ac_status=$?
3155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); }; } &&
3157         { ac_try='test -s conftest$ac_exeext'
3158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159  (eval $ac_try) 2>&5
3160  ac_status=$?
3161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); }; }; then
3163  :
3164else
3165  echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168CFLAGS=
3169fi
3170rm -f conftest.err conftest.$ac_objext \
3171      conftest$ac_exeext conftest.$ac_ext
3172  if test -z "$CFLAGS"; then
3173    { 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
3174echo "$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;}
3175  fi
3176fi
3177
3178{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3179echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3180
3181
3182if test x"$MPICC" = x; then :; else
3183  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3184echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3185  CC="$MPICC"
3186fi
3187
3188# Correct ADDLIBS initialization if we are using the MS compiler
3189case "$CC" in
3190  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3191    ADDLIBS=
3192    case $build in
3193  *-mingw*)
3194    if test "${LD+set}" = set; then :; else
3195      LD=link
3196    fi
3197    ;;
3198 esac
3199 case $enable_doscompile in
3200   msvc)
3201     if test "x${LD+set}" = xset; then :; else
3202       LD=link
3203     fi
3204     ;;
3205 esac
3206
3207    ;;
3208esac
3209
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215
3216
3217
3218# Get the name of the Fortran compiler and appropriate compiler options
3219case $build in
3220  *-cygwin* | *-mingw*)
3221     if test "$enable_doscompile" = msvc ; then
3222       coin_f77_comps="ifort fl32 compile_f2c"
3223     else
3224       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3225     fi ;;
3226  *-*-solaris*)
3227     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3228  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3229 esac
3230
3231
3232
3233
3234
3235
3236ac_ext=f
3237ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3238ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3240
3241
3242
3243
3244
3245
3246coin_has_f77=yes
3247
3248save_fflags="$FFLAGS"
3249
3250# We delete the cached value, since the test might not have been
3251# performed with our choice of compilers earlier
3252$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3253
3254# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3255# coin_f77_comps to see if there's a program that matches one of the names.
3256# If there's no such program, F77 = unavailable. If we match the name,
3257# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3258# compiler.
3259# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3260
3261
3262{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3263echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3264for ac_prog in $coin_f77_comps
3265do
3266  # Extract the first word of "$ac_prog", so it can be a program name with args.
3267set dummy $ac_prog; ac_word=$2
3268echo "$as_me:$LINENO: checking for $ac_word" >&5
3269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270if test "${ac_cv_prog_F77+set}" = set; then
3271  echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
3273  if test -n "$F77"; then
3274  ac_cv_prog_F77="$F77" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279  IFS=$as_save_IFS
3280  test -z "$as_dir" && as_dir=.
3281  for ac_exec_ext in '' $ac_executable_extensions; do
3282  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283    ac_cv_prog_F77="$ac_prog"
3284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285    break 2
3286  fi
3287done
3288done
3289
3290fi
3291fi
3292F77=$ac_cv_prog_F77
3293if test -n "$F77"; then
3294  echo "$as_me:$LINENO: result: $F77" >&5
3295echo "${ECHO_T}$F77" >&6
3296else
3297  echo "$as_me:$LINENO: result: no" >&5
3298echo "${ECHO_T}no" >&6
3299fi
3300
3301  test -n "$F77" && break
3302done
3303test -n "$F77" || F77="unavailable"
3304
3305
3306if test "$F77" != "unavailable" ; then
3307  ac_ext=f
3308ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3309ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3311if test -n "$ac_tool_prefix"; then
3312  for ac_prog in $coin_f77_comps
3313  do
3314    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3315set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_F77+set}" = set; then
3319  echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321  if test -n "$F77"; then
3322  ac_cv_prog_F77="$F77" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329  for ac_exec_ext in '' $ac_executable_extensions; do
3330  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336done
3337
3338fi
3339fi
3340F77=$ac_cv_prog_F77
3341if test -n "$F77"; then
3342  echo "$as_me:$LINENO: result: $F77" >&5
3343echo "${ECHO_T}$F77" >&6
3344else
3345  echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
3348
3349    test -n "$F77" && break
3350  done
3351fi
3352if test -z "$F77"; then
3353  ac_ct_F77=$F77
3354  for ac_prog in $coin_f77_comps
3355do
3356  # Extract the first word of "$ac_prog", so it can be a program name with args.
3357set dummy $ac_prog; ac_word=$2
3358echo "$as_me:$LINENO: checking for $ac_word" >&5
3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3361  echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
3363  if test -n "$ac_ct_F77"; then
3364  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3365else
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369  IFS=$as_save_IFS
3370  test -z "$as_dir" && as_dir=.
3371  for ac_exec_ext in '' $ac_executable_extensions; do
3372  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373    ac_cv_prog_ac_ct_F77="$ac_prog"
3374    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375    break 2
3376  fi
3377done
3378done
3379
3380fi
3381fi
3382ac_ct_F77=$ac_cv_prog_ac_ct_F77
3383if test -n "$ac_ct_F77"; then
3384  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3385echo "${ECHO_T}$ac_ct_F77" >&6
3386else
3387  echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
3389fi
3390
3391  test -n "$ac_ct_F77" && break
3392done
3393
3394  F77=$ac_ct_F77
3395fi
3396
3397
3398# Provide some information about the compiler.
3399echo "$as_me:3399:" \
3400     "checking for Fortran 77 compiler version" >&5
3401ac_compiler=`set X $ac_compile; echo $2`
3402{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3403  (eval $ac_compiler --version </dev/null >&5) 2>&5
3404  ac_status=$?
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); }
3407{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3408  (eval $ac_compiler -v </dev/null >&5) 2>&5
3409  ac_status=$?
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); }
3412{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3413  (eval $ac_compiler -V </dev/null >&5) 2>&5
3414  ac_status=$?
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); }
3417rm -f a.out
3418
3419# If we don't use `.F' as extension, the preprocessor is not run on the
3420# input file.  (Note that this only needs to work for GNU compilers.)
3421ac_save_ext=$ac_ext
3422ac_ext=F
3423echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3424echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3425if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3426  echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428  cat >conftest.$ac_ext <<_ACEOF
3429      program main
3430#ifndef __GNUC__
3431       choke me
3432#endif
3433
3434      end
3435_ACEOF
3436rm -f conftest.$ac_objext
3437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438  (eval $ac_compile) 2>conftest.er1
3439  ac_status=$?
3440  grep -v '^ *+' conftest.er1 >conftest.err
3441  rm -f conftest.er1
3442  cat conftest.err >&5
3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444  (exit $ac_status); } &&
3445         { ac_try='test -z "$ac_f77_werror_flag"
3446                         || test ! -s conftest.err'
3447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448  (eval $ac_try) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }; } &&
3452         { ac_try='test -s conftest.$ac_objext'
3453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454  (eval $ac_try) 2>&5
3455  ac_status=$?
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); }; }; then
3458  ac_compiler_gnu=yes
3459else
3460  echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463ac_compiler_gnu=no
3464fi
3465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3466ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3467
3468fi
3469echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3470echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3471ac_ext=$ac_save_ext
3472ac_test_FFLAGS=${FFLAGS+set}
3473ac_save_FFLAGS=$FFLAGS
3474FFLAGS=
3475echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3476echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3477if test "${ac_cv_prog_f77_g+set}" = set; then
3478  echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
3480  FFLAGS=-g
3481cat >conftest.$ac_ext <<_ACEOF
3482      program main
3483
3484      end
3485_ACEOF
3486rm -f conftest.$ac_objext
3487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488  (eval $ac_compile) 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } &&
3495         { ac_try='test -z "$ac_f77_werror_flag"
3496                         || test ! -s conftest.err'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; } &&
3502         { ac_try='test -s conftest.$ac_objext'
3503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504  (eval $ac_try) 2>&5
3505  ac_status=$?
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); }; }; then
3508  ac_cv_prog_f77_g=yes
3509else
3510  echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513ac_cv_prog_f77_g=no
3514fi
3515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3516
3517fi
3518echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3519echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3520if test "$ac_test_FFLAGS" = set; then
3521  FFLAGS=$ac_save_FFLAGS
3522elif test $ac_cv_prog_f77_g = yes; then
3523  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3524    FFLAGS="-g -O2"
3525  else
3526    FFLAGS="-g"
3527  fi
3528else
3529  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3530    FFLAGS="-O2"
3531  else
3532    FFLAGS=
3533  fi
3534fi
3535
3536G77=`test $ac_compiler_gnu = yes && echo yes`
3537ac_ext=f
3538ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3539ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3541
3542else
3543  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3544echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3545fi
3546
3547FFLAGS="$save_fflags"
3548
3549# Check if a project specific FFLAGS variable has been set
3550if test x$COIN_PRJCT != x; then
3551  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3552  if test x$coin_tmp = xset; then
3553    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3554  fi
3555fi
3556
3557if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3558
3559  coin_add_fflags=
3560  coin_opt_fflags=
3561  coin_dbg_fflags=
3562  coin_warn_fflags=
3563
3564  if test "$G77" = "yes"; then
3565    coin_opt_fflags="-O3"
3566    coin_add_fflags="-pipe"
3567    coin_dbg_fflags="-g"
3568    case $enable_doscompile in
3569      mingw)
3570        FFLAGS="-mno-cygwin"
3571        cat >conftest.$ac_ext <<_ACEOF
3572      program main
3573      write(*,*) 'Hello world'
3574      end
3575_ACEOF
3576rm -f conftest.$ac_objext conftest$ac_exeext
3577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3578  (eval $ac_link) 2>conftest.er1
3579  ac_status=$?
3580  grep -v '^ *+' conftest.er1 >conftest.err
3581  rm -f conftest.er1
3582  cat conftest.err >&5
3583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584  (exit $ac_status); } &&
3585         { ac_try='test -z "$ac_f77_werror_flag"
3586                         || test ! -s conftest.err'
3587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588  (eval $ac_try) 2>&5
3589  ac_status=$?
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); }; } &&
3592         { ac_try='test -s conftest$ac_exeext'
3593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594  (eval $ac_try) 2>&5
3595  ac_status=$?
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); }; }; then
3598  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3599else
3600  echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603fi
3604rm -f conftest.err conftest.$ac_objext \
3605      conftest$ac_exeext conftest.$ac_ext
3606        FFLAGS=
3607      ;;
3608    esac
3609  else
3610    case $build in
3611      *-cygwin* | *-mingw*)
3612        case $F77 in
3613          ifort* | */ifort* | IFORT* | */IFORT* )
3614            coin_opt_fflags='-MT -O3'
3615            coin_add_fflags='-fpp -nologo'
3616            coin_dbg_fflags='-MTd -debug'
3617          ;;
3618          compile_f2c*)
3619            coin_opt_fflags='-MT -O2'
3620            coin_add_fflags='-nologo -wd4996'
3621            coin_dbg_fflags='-MTd'
3622          ;;
3623        esac
3624        ;;
3625      *-linux-*)
3626        case $F77 in
3627          ifc* | */ifc* | ifort* | */ifort*)
3628            coin_opt_fflags="-O3 -ip"
3629            coin_add_fflags="-cm -w90 -w95"
3630            coin_dbg_fflags="-g -CA -CB -CS"
3631            # Check if -i_dynamic is necessary (for new glibc library)
3632            FFLAGS=
3633            cat >conftest.$ac_ext <<_ACEOF
3634      program main
3635      write(*,*) 'Hello world'
3636      end
3637_ACEOF
3638rm -f conftest.$ac_objext conftest$ac_exeext
3639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3640  (eval $ac_link) 2>conftest.er1
3641  ac_status=$?
3642  grep -v '^ *+' conftest.er1 >conftest.err
3643  rm -f conftest.er1
3644  cat conftest.err >&5
3645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646  (exit $ac_status); } &&
3647         { ac_try='test -z "$ac_f77_werror_flag"
3648                         || test ! -s conftest.err'
3649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650  (eval $ac_try) 2>&5
3651  ac_status=$?
3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653  (exit $ac_status); }; } &&
3654         { ac_try='test -s conftest$ac_exeext'
3655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656  (eval $ac_try) 2>&5
3657  ac_status=$?
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); }; }; then
3660  :
3661else
3662  echo "$as_me: failed program was:" >&5
3663sed 's/^/| /' conftest.$ac_ext >&5
3664
3665coin_add_fflags="-i_dynamic $coin_add_fflags"
3666fi
3667rm -f conftest.err conftest.$ac_objext \
3668      conftest$ac_exeext conftest.$ac_ext
3669            ;;
3670          pgf77* | */pgf77* | pgf90* | */pgf90*)
3671            coin_opt_fflags="-fast"
3672            coin_add_fflags="-Kieee -pc 64"
3673            coin_dbg_fflags="-g"
3674          ;;
3675        esac
3676        ;;
3677      *-ibm-*)
3678        case "$F77" in
3679          xlf* | */xlf* | mpxlf* | */mpxlf* )
3680            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3681            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3682            coin_dbg_fflags="-g -C"
3683            ;;
3684        esac
3685        ;;
3686      *-hp-*)
3687        coin_opt_fflags="+O3"
3688        coin_add_fflags="+U77"
3689        coin_dbg_fflags="-C -g"
3690        ;;
3691      *-*-solaris*)
3692        coin_opt_fflags="-O4"
3693        coin_dbg_fflags="-g"
3694        ;;
3695      *-sgi-*)
3696        coin_opt_fflags="-O5 -OPT:Olimit=0"
3697        coin_dbg_fflags="-g"
3698        ;;
3699    esac
3700  fi
3701
3702  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3703    coin_dbg_fflags="-g"
3704  fi
3705
3706  if test -z "$coin_opt_fflags"; then
3707    # Try if -O option works if nothing else is set
3708    FFLAGS=-O
3709    cat >conftest.$ac_ext <<_ACEOF
3710      program main
3711      integer i
3712      end
3713_ACEOF
3714rm -f conftest.$ac_objext conftest$ac_exeext
3715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3716  (eval $ac_link) 2>conftest.er1
3717  ac_status=$?
3718  grep -v '^ *+' conftest.er1 >conftest.err
3719  rm -f conftest.er1
3720  cat conftest.err >&5
3721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722  (exit $ac_status); } &&
3723         { ac_try='test -z "$ac_f77_werror_flag"
3724                         || test ! -s conftest.err'
3725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726  (eval $ac_try) 2>&5
3727  ac_status=$?
3728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729  (exit $ac_status); }; } &&
3730         { ac_try='test -s conftest$ac_exeext'
3731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732  (eval $ac_try) 2>&5
3733  ac_status=$?
3734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735  (exit $ac_status); }; }; then
3736  coin_opt_fflags="-O"
3737else
3738  echo "$as_me: failed program was:" >&5
3739sed 's/^/| /' conftest.$ac_ext >&5
3740
3741fi
3742rm -f conftest.err conftest.$ac_objext \
3743      conftest$ac_exeext conftest.$ac_ext
3744  fi
3745
3746  # if PM doesn't want the warning messages, take them out
3747  if test x"$coin_skip_warn_fflags" = xyes; then
3748    coin_warn_fflags=
3749  fi
3750
3751  if test x${DBG_FFLAGS+set} != xset; then
3752    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3753  fi
3754  if test x${OPT_FFLAGS+set} != xset; then
3755    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3756  fi
3757
3758  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3759  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3760
3761  if test "$coin_debug_compile" = "true"; then
3762    FFLAGS="$DBG_FFLAGS"
3763  else
3764    FFLAGS="$OPT_FFLAGS"
3765  fi
3766else
3767  FFLAGS="$FFLAGS $ADD_FFLAGS"
3768  if test x${DBG_FFLAGS+set} != xset; then
3769    DBG_FFLAGS="$FFLAGS"
3770  fi
3771  if test x${OPT_FFLAGS+set} != xset; then
3772    OPT_FFLAGS="$FFLAGS"
3773  fi
3774fi
3775
3776# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3777case "$FFLAGS" in
3778  *-mno-cygwin*)
3779    if test x${CPPFLAGS+set} != xset ; then
3780      CPPFLAGS="-mno-cygwin"
3781    else
3782      case "$CPPFLAGS" in
3783        *-mno-cygwin*)
3784          ;;
3785        *)
3786          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3787          ;;
3788      esac
3789    fi ;;
3790esac
3791
3792# Try if FFLAGS works
3793if test "$F77" != "unavailable" ; then
3794  cat >conftest.$ac_ext <<_ACEOF
3795      program main
3796      integer i
3797      end
3798_ACEOF
3799rm -f conftest.$ac_objext conftest$ac_exeext
3800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801  (eval $ac_link) 2>conftest.er1
3802  ac_status=$?
3803  grep -v '^ *+' conftest.er1 >conftest.err
3804  rm -f conftest.er1
3805  cat conftest.err >&5
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); } &&
3808         { ac_try='test -z "$ac_f77_werror_flag"
3809                         || test ! -s conftest.err'
3810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811  (eval $ac_try) 2>&5
3812  ac_status=$?
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); }; } &&
3815         { ac_try='test -s conftest$ac_exeext'
3816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817  (eval $ac_try) 2>&5
3818  ac_status=$?
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); }; }; then
3821  :
3822else
3823  echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826FFLAGS=
3827fi
3828rm -f conftest.err conftest.$ac_objext \
3829      conftest$ac_exeext conftest.$ac_ext
3830  if test -z "$FFLAGS"; then
3831    { 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
3832echo "$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;}
3833    FFLAGS='-O'
3834    cat >conftest.$ac_ext <<_ACEOF
3835      program main
3836      integer i
3837      end
3838_ACEOF
3839rm -f conftest.$ac_objext conftest$ac_exeext
3840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3841  (eval $ac_link) 2>conftest.er1
3842  ac_status=$?
3843  grep -v '^ *+' conftest.er1 >conftest.err
3844  rm -f conftest.er1
3845  cat conftest.err >&5
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); } &&
3848         { ac_try='test -z "$ac_f77_werror_flag"
3849                         || test ! -s conftest.err'
3850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851  (eval $ac_try) 2>&5
3852  ac_status=$?
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); }; } &&
3855         { ac_try='test -s conftest$ac_exeext'
3856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857  (eval $ac_try) 2>&5
3858  ac_status=$?
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); }; }; then
3861  :
3862else
3863  echo "$as_me: failed program was:" >&5
3864sed 's/^/| /' conftest.$ac_ext >&5
3865
3866FFLAGS=
3867fi
3868rm -f conftest.err conftest.$ac_objext \
3869      conftest$ac_exeext conftest.$ac_ext
3870    if test -z "$FFLAGS"; then
3871      { 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
3872echo "$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;}
3873    fi
3874  fi
3875fi
3876
3877{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3878echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3879
3880
3881if test x"$MPIF77" = x; then :; else
3882  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3883echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3884  F77="$MPIF77"
3885fi
3886
3887case "$F77" in
3888  ifort* | */ifort* | IFORT* | */IFORT*)
3889    case $build in
3890  *-mingw*)
3891    if test "${LD+set}" = set; then :; else
3892      LD=link
3893    fi
3894    ;;
3895 esac
3896 case $enable_doscompile in
3897   msvc)
3898     if test "x${LD+set}" = xset; then :; else
3899       LD=link
3900     fi
3901     ;;
3902 esac
3903
3904    ;;
3905esac
3906
3907ac_ext=c
3908ac_cpp='$CPP $CPPFLAGS'
3909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912
3913
3914
3915# Find out how to call Fortran from C and determine Fortran runtime libraries
3916ac_ext=f
3917ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3918ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3920echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3921echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3922if test "${ac_cv_prog_f77_v+set}" = set; then
3923  echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925  cat >conftest.$ac_ext <<_ACEOF
3926      program main
3927
3928      end
3929_ACEOF
3930rm -f conftest.$ac_objext
3931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3932  (eval $ac_compile) 2>conftest.er1
3933  ac_status=$?
3934  grep -v '^ *+' conftest.er1 >conftest.err
3935  rm -f conftest.er1
3936  cat conftest.err >&5
3937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938  (exit $ac_status); } &&
3939         { ac_try='test -z "$ac_f77_werror_flag"
3940                         || test ! -s conftest.err'
3941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942  (eval $ac_try) 2>&5
3943  ac_status=$?
3944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945  (exit $ac_status); }; } &&
3946         { ac_try='test -s conftest.$ac_objext'
3947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948  (eval $ac_try) 2>&5
3949  ac_status=$?
3950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951  (exit $ac_status); }; }; then
3952  ac_cv_prog_f77_v=
3953# Try some options frequently used verbose output
3954for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3955  cat >conftest.$ac_ext <<_ACEOF
3956      program main
3957
3958      end
3959_ACEOF
3960
3961# Compile and link our simple test program by passing a flag (argument
3962# 1 to this macro) to the Fortran compiler in order to get
3963# "verbose" output that we can then parse for the Fortran linker
3964# flags.
3965ac_save_FFLAGS=$FFLAGS
3966FFLAGS="$FFLAGS $ac_verb"
3967(eval echo $as_me:3967: \"$ac_link\") >&5
3968ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3969echo "$ac_f77_v_output" >&5
3970FFLAGS=$ac_save_FFLAGS
3971
3972rm -f conftest*
3973
3974# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3975# /foo, /bar, and /baz are search directories for the Fortran linker.
3976# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3977ac_f77_v_output="`echo $ac_f77_v_output |
3978        grep 'LPATH is:' |
3979        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3980
3981case $ac_f77_v_output in
3982  # If we are using xlf then replace all the commas with spaces.
3983  *xlfentry*)
3984    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3985
3986  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3987  # $LIBS confuse us, and the libraries appear later in the output anyway).
3988  *mGLOB_options_string*)
3989    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3990
3991  # If we are using Cray Fortran then delete quotes.
3992  # Use "\"" instead of '"' for font-lock-mode.
3993  # FIXME: a more general fix for quoted arguments with spaces?
3994  *cft90*)
3995    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3996esac
3997
3998
3999  # look for -l* and *.a constructs in the output
4000  for ac_arg in $ac_f77_v_output; do
4001     case $ac_arg in
4002        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4003          ac_cv_prog_f77_v=$ac_verb
4004          break 2 ;;
4005     esac
4006  done
4007done
4008if test -z "$ac_cv_prog_f77_v"; then
4009   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4010echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4011fi
4012else
4013  echo "$as_me: failed program was:" >&5
4014sed 's/^/| /' conftest.$ac_ext >&5
4015
4016{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4017echo "$as_me: WARNING: compilation failed" >&2;}
4018fi
4019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4020
4021fi
4022echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4023echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4024echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4025echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4026if test "${ac_cv_f77_libs+set}" = set; then
4027  echo $ECHO_N "(cached) $ECHO_C" >&6
4028else
4029  if test "x$FLIBS" != "x"; then
4030  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4031else
4032
4033cat >conftest.$ac_ext <<_ACEOF
4034      program main
4035
4036      end
4037_ACEOF
4038
4039# Compile and link our simple test program by passing a flag (argument
4040# 1 to this macro) to the Fortran compiler in order to get
4041# "verbose" output that we can then parse for the Fortran linker
4042# flags.
4043ac_save_FFLAGS=$FFLAGS
4044FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4045(eval echo $as_me:4045: \"$ac_link\") >&5
4046ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4047echo "$ac_f77_v_output" >&5
4048FFLAGS=$ac_save_FFLAGS
4049
4050rm -f conftest*
4051
4052# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4053# /foo, /bar, and /baz are search directories for the Fortran linker.
4054# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4055ac_f77_v_output="`echo $ac_f77_v_output |
4056        grep 'LPATH is:' |
4057        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4058
4059case $ac_f77_v_output in
4060  # If we are using xlf then replace all the commas with spaces.
4061  *xlfentry*)
4062    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4063
4064  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4065  # $LIBS confuse us, and the libraries appear later in the output anyway).
4066  *mGLOB_options_string*)
4067    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4068
4069  # If we are using Cray Fortran then delete quotes.
4070  # Use "\"" instead of '"' for font-lock-mode.
4071  # FIXME: a more general fix for quoted arguments with spaces?
4072  *cft90*)
4073    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4074esac
4075
4076
4077
4078ac_cv_f77_libs=
4079
4080# Save positional arguments (if any)
4081ac_save_positional="$@"
4082
4083set X $ac_f77_v_output
4084while test $# != 1; do
4085  shift
4086  ac_arg=$1
4087  case $ac_arg in
4088        [\\/]*.a | ?:[\\/]*.a)
4089            ac_exists=false
4090  for ac_i in $ac_cv_f77_libs; do
4091    if test x"$ac_arg" = x"$ac_i"; then
4092      ac_exists=true
4093      break
4094    fi
4095  done
4096
4097  if test x"$ac_exists" = xtrue; then
4098  :
4099else
4100  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4101fi
4102
4103          ;;
4104        -bI:*)
4105            ac_exists=false
4106  for ac_i in $ac_cv_f77_libs; do
4107    if test x"$ac_arg" = x"$ac_i"; then
4108      ac_exists=true
4109      break
4110    fi
4111  done
4112
4113  if test x"$ac_exists" = xtrue; then
4114  :
4115else
4116  if test "$ac_compiler_gnu" = yes; then
4117  for ac_link_opt in $ac_arg; do
4118    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4119  done
4120else
4121  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4122fi
4123fi
4124
4125          ;;
4126          # Ignore these flags.
4127        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4128          ;;
4129        -lkernel32)
4130          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4131          ;;
4132        -[LRuY])
4133          # These flags, when seen by themselves, take an argument.
4134          # We remove the space between option and argument and re-iterate
4135          # unless we find an empty arg or a new option (starting with -)
4136          case $2 in
4137             "" | -*);;
4138             *)
4139                ac_arg="$ac_arg$2"
4140                shift; shift
4141                set X $ac_arg "$@"
4142                ;;
4143          esac
4144          ;;
4145        -YP,*)
4146          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4147              ac_exists=false
4148  for ac_i in $ac_cv_f77_libs; do
4149    if test x"$ac_j" = x"$ac_i"; then
4150      ac_exists=true
4151      break
4152    fi
4153  done
4154
4155  if test x"$ac_exists" = xtrue; then
4156  :
4157else
4158  ac_arg="$ac_arg $ac_j"
4159                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4160fi
4161
4162          done
4163          ;;
4164        -[lLR]*)
4165            ac_exists=false
4166  for ac_i in $ac_cv_f77_libs; do
4167    if test x"$ac_arg" = x"$ac_i"; then
4168      ac_exists=true
4169      break
4170    fi
4171  done
4172
4173  if test x"$ac_exists" = xtrue; then
4174  :
4175else
4176  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4177fi
4178
4179          ;;
4180          # Ignore everything else.
4181  esac
4182done
4183# restore positional arguments
4184set X $ac_save_positional; shift
4185
4186# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4187# then we insist that the "run path" must be an absolute path (i.e. it
4188# must begin with a "/").
4189case `(uname -sr) 2>/dev/null` in
4190   "SunOS 5"*)
4191      ac_ld_run_path=`echo $ac_f77_v_output |
4192                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4193      test "x$ac_ld_run_path" != x &&
4194        if test "$ac_compiler_gnu" = yes; then
4195  for ac_link_opt in $ac_ld_run_path; do
4196    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4197  done
4198else
4199  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4200fi
4201      ;;
4202esac
4203fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4204
4205fi
4206echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4207echo "${ECHO_T}$ac_cv_f77_libs" >&6
4208FLIBS="$ac_cv_f77_libs"
4209
4210
4211ac_ext=f
4212ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4213ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4215
4216ac_ext=f
4217ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4218ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4220
4221echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4222echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4223if test "${ac_cv_f77_dummy_main+set}" = set; then
4224  echo $ECHO_N "(cached) $ECHO_C" >&6
4225else
4226  ac_f77_dm_save_LIBS=$LIBS
4227 LIBS="$LIBS $FLIBS"
4228 ac_fortran_dm_var=F77_DUMMY_MAIN
4229 ac_ext=c
4230ac_cpp='$CPP $CPPFLAGS'
4231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234
4235 # First, try linking without a dummy main:
4236 cat >conftest.$ac_ext <<_ACEOF
4237/* confdefs.h.  */
4238_ACEOF
4239cat confdefs.h >>conftest.$ac_ext
4240cat >>conftest.$ac_ext <<_ACEOF
4241/* end confdefs.h.  */
4242
4243#ifdef F77_DUMMY_MAIN
4244
4245#  ifdef __cplusplus
4246     extern "C"
4247#  endif
4248   int F77_DUMMY_MAIN() { return 1; }
4249
4250#endif
4251int
4252main ()
4253{
4254
4255  ;
4256  return 0;
4257}
4258_ACEOF
4259rm -f conftest.$ac_objext conftest$ac_exeext
4260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4261  (eval $ac_link) 2>conftest.er1
4262  ac_status=$?
4263  grep -v '^ *+' conftest.er1 >conftest.err
4264  rm -f conftest.er1
4265  cat conftest.err >&5
4266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267  (exit $ac_status); } &&
4268         { ac_try='test -z "$ac_c_werror_flag"
4269                         || test ! -s conftest.err'
4270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271  (eval $ac_try) 2>&5
4272  ac_status=$?
4273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274  (exit $ac_status); }; } &&
4275         { ac_try='test -s conftest$ac_exeext'
4276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277  (eval $ac_try) 2>&5
4278  ac_status=$?
4279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280  (exit $ac_status); }; }; then
4281  ac_cv_fortran_dummy_main=none
4282else
4283  echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286ac_cv_fortran_dummy_main=unknown
4287fi
4288rm -f conftest.err conftest.$ac_objext \
4289      conftest$ac_exeext conftest.$ac_ext
4290
4291 if test $ac_cv_fortran_dummy_main = unknown; then
4292   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4293     cat >conftest.$ac_ext <<_ACEOF
4294/* confdefs.h.  */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
4298/* end confdefs.h.  */
4299#define $ac_fortran_dm_var $ac_func
4300#ifdef F77_DUMMY_MAIN
4301
4302#  ifdef __cplusplus
4303     extern "C"
4304#  endif
4305   int F77_DUMMY_MAIN() { return 1; }
4306
4307#endif
4308int
4309main ()
4310{
4311
4312  ;
4313  return 0;
4314}
4315_ACEOF
4316rm -f conftest.$ac_objext conftest$ac_exeext
4317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4318  (eval $ac_link) 2>conftest.er1
4319  ac_status=$?
4320  grep -v '^ *+' conftest.er1 >conftest.err
4321  rm -f conftest.er1
4322  cat conftest.err >&5
4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324  (exit $ac_status); } &&
4325         { ac_try='test -z "$ac_c_werror_flag"
4326                         || test ! -s conftest.err'
4327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328  (eval $ac_try) 2>&5
4329  ac_status=$?
4330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331  (exit $ac_status); }; } &&
4332         { ac_try='test -s conftest$ac_exeext'
4333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334  (eval $ac_try) 2>&5
4335  ac_status=$?
4336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337  (exit $ac_status); }; }; then
4338  ac_cv_fortran_dummy_main=$ac_func; break
4339else
4340  echo "$as_me: failed program was:" >&5
4341sed 's/^/| /' conftest.$ac_ext >&5
4342
4343fi
4344rm -f conftest.err conftest.$ac_objext \
4345      conftest$ac_exeext conftest.$ac_ext
4346   done
4347 fi
4348 ac_ext=f
4349ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4350ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4352 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4353 rm -f conftest*
4354 LIBS=$ac_f77_dm_save_LIBS
4355
4356fi
4357echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4358echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4359F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4360if test "$F77_DUMMY_MAIN" != unknown; then
4361  if test $F77_DUMMY_MAIN != none; then
4362
4363cat >>confdefs.h <<_ACEOF
4364#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4365_ACEOF
4366
4367  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4368
4369cat >>confdefs.h <<\_ACEOF
4370#define FC_DUMMY_MAIN_EQ_F77 1
4371_ACEOF
4372
4373  fi
4374fi
4375else
4376  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4377See \`config.log' for more details." >&5
4378echo "$as_me: error: linking to Fortran libraries from C fails
4379See \`config.log' for more details." >&2;}
4380   { (exit 1); exit 1; }; }
4381fi
4382
4383
4384ac_ext=f
4385ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4386ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4388
4389ac_ext=f
4390ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4391ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4393echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4394echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4395if test "${ac_cv_f77_mangling+set}" = set; then
4396  echo $ECHO_N "(cached) $ECHO_C" >&6
4397else
4398  cat >conftest.$ac_ext <<_ACEOF
4399      subroutine foobar()
4400      return
4401      end
4402      subroutine foo_bar()
4403      return
4404      end
4405_ACEOF
4406rm -f conftest.$ac_objext
4407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408  (eval $ac_compile) 2>conftest.er1
4409  ac_status=$?
4410  grep -v '^ *+' conftest.er1 >conftest.err
4411  rm -f conftest.er1
4412  cat conftest.err >&5
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); } &&
4415         { ac_try='test -z "$ac_f77_werror_flag"
4416                         || test ! -s conftest.err'
4417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418  (eval $ac_try) 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); }; } &&
4422         { ac_try='test -s conftest.$ac_objext'
4423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424  (eval $ac_try) 2>&5
4425  ac_status=$?
4426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427  (exit $ac_status); }; }; then
4428  mv conftest.$ac_objext cfortran_test.$ac_objext
4429
4430  ac_save_LIBS=$LIBS
4431  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4432
4433  ac_ext=c
4434ac_cpp='$CPP $CPPFLAGS'
4435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437ac_compiler_gnu=$ac_cv_c_compiler_gnu
4438  ac_success=no
4439  for ac_foobar in foobar FOOBAR; do
4440    for ac_underscore in "" "_"; do
4441      ac_func="$ac_foobar$ac_underscore"
4442      cat >conftest.$ac_ext <<_ACEOF
4443/* confdefs.h.  */
4444_ACEOF
4445cat confdefs.h >>conftest.$ac_ext
4446cat >>conftest.$ac_ext <<_ACEOF
4447/* end confdefs.h.  */
4448
4449/* Override any gcc2 internal prototype to avoid an error.  */
4450#ifdef __cplusplus
4451extern "C"
4452#endif
4453/* We use char because int might match the return type of a gcc2
4454   builtin and then its argument prototype would still apply.  */
4455char $ac_func ();
4456#ifdef F77_DUMMY_MAIN
4457
4458#  ifdef __cplusplus
4459     extern "C"
4460#  endif
4461   int F77_DUMMY_MAIN() { return 1; }
4462
4463#endif
4464int
4465main ()
4466{
4467$ac_func ();
4468  ;
4469  return 0;
4470}
4471_ACEOF
4472rm -f conftest.$ac_objext conftest$ac_exeext
4473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4474  (eval $ac_link) 2>conftest.er1
4475  ac_status=$?
4476  grep -v '^ *+' conftest.er1 >conftest.err
4477  rm -f conftest.er1
4478  cat conftest.err >&5
4479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480  (exit $ac_status); } &&
4481         { ac_try='test -z "$ac_c_werror_flag"
4482                         || test ! -s conftest.err'
4483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484  (eval $ac_try) 2>&5
4485  ac_status=$?
4486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487  (exit $ac_status); }; } &&
4488         { ac_try='test -s conftest$ac_exeext'
4489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490  (eval $ac_try) 2>&5
4491  ac_status=$?
4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); }; }; then
4494  ac_success=yes; break 2
4495else
4496  echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499fi
4500rm -f conftest.err conftest.$ac_objext \
4501      conftest$ac_exeext conftest.$ac_ext
4502    done
4503  done
4504  ac_ext=f
4505ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4506ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4508
4509  if test "$ac_success" = "yes"; then
4510     case $ac_foobar in
4511        foobar)
4512           ac_case=lower
4513           ac_foo_bar=foo_bar
4514           ;;
4515        FOOBAR)
4516           ac_case=upper
4517           ac_foo_bar=FOO_BAR
4518           ;;
4519     esac
4520
4521     ac_ext=c
4522ac_cpp='$CPP $CPPFLAGS'
4523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526     ac_success_extra=no
4527     for ac_extra in "" "_"; do
4528        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4529        cat >conftest.$ac_ext <<_ACEOF
4530/* confdefs.h.  */
4531_ACEOF
4532cat confdefs.h >>conftest.$ac_ext
4533cat >>conftest.$ac_ext <<_ACEOF
4534/* end confdefs.h.  */
4535
4536/* Override any gcc2 internal prototype to avoid an error.  */
4537#ifdef __cplusplus
4538extern "C"
4539#endif
4540/* We use char because int might match the return type of a gcc2
4541   builtin and then its argument prototype would still apply.  */
4542char $ac_func ();
4543#ifdef F77_DUMMY_MAIN
4544
4545#  ifdef __cplusplus
4546     extern "C"
4547#  endif
4548   int F77_DUMMY_MAIN() { return 1; }
4549
4550#endif
4551int
4552main ()
4553{
4554$ac_func ();
4555  ;
4556  return 0;
4557}
4558_ACEOF
4559rm -f conftest.$ac_objext conftest$ac_exeext
4560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4561  (eval $ac_link) 2>conftest.er1
4562  ac_status=$?
4563  grep -v '^ *+' conftest.er1 >conftest.err
4564  rm -f conftest.er1
4565  cat conftest.err >&5
4566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567  (exit $ac_status); } &&
4568         { ac_try='test -z "$ac_c_werror_flag"
4569                         || test ! -s conftest.err'
4570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571  (eval $ac_try) 2>&5
4572  ac_status=$?
4573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574  (exit $ac_status); }; } &&
4575         { ac_try='test -s conftest$ac_exeext'
4576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577  (eval $ac_try) 2>&5
4578  ac_status=$?
4579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580  (exit $ac_status); }; }; then
4581  ac_success_extra=yes; break
4582else
4583  echo "$as_me: failed program was:" >&5
4584sed 's/^/| /' conftest.$ac_ext >&5
4585
4586fi
4587rm -f conftest.err conftest.$ac_objext \
4588      conftest$ac_exeext conftest.$ac_ext
4589     done
4590     ac_ext=f
4591ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4592ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4594
4595     if test "$ac_success_extra" = "yes"; then
4596        ac_cv_f77_mangling="$ac_case case"
4597        if test -z "$ac_underscore"; then
4598           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4599        else
4600           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4601        fi
4602        if test -z "$ac_extra"; then
4603           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4604        else
4605           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4606        fi
4607      else
4608        ac_cv_f77_mangling="unknown"
4609      fi
4610  else
4611     ac_cv_f77_mangling="unknown"
4612  fi
4613
4614  LIBS=$ac_save_LIBS
4615  rm -f cfortran_test* conftest*
4616else
4617  echo "$as_me: failed program was:" >&5
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
4620{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4621See \`config.log' for more details." >&5
4622echo "$as_me: error: cannot compile a simple Fortran program
4623See \`config.log' for more details." >&2;}
4624   { (exit 1); exit 1; }; }
4625fi
4626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627
4628fi
4629echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4630echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4631
4632ac_ext=f
4633ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4634ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4636
4637
4638ac_ext=f
4639ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4640ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4642
4643
4644ac_ext=f
4645ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4646ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4648
4649
4650case $ac_cv_f77_mangling in
4651  "lower case, no underscore, no extra underscore")
4652          cat >>confdefs.h <<\_ACEOF
4653#define F77_FUNC(name,NAME) name
4654_ACEOF
4655
4656          cat >>confdefs.h <<\_ACEOF
4657#define F77_FUNC_(name,NAME) name
4658_ACEOF
4659 ;;
4660  "lower case, no underscore, extra underscore")
4661          cat >>confdefs.h <<\_ACEOF
4662#define F77_FUNC(name,NAME) name
4663_ACEOF
4664
4665          cat >>confdefs.h <<\_ACEOF
4666#define F77_FUNC_(name,NAME) name ## _
4667_ACEOF
4668 ;;
4669  "lower case, underscore, no extra underscore")
4670          cat >>confdefs.h <<\_ACEOF
4671#define F77_FUNC(name,NAME) name ## _
4672_ACEOF
4673
4674          cat >>confdefs.h <<\_ACEOF
4675#define F77_FUNC_(name,NAME) name ## _
4676_ACEOF
4677 ;;
4678  "lower case, underscore, extra underscore")
4679          cat >>confdefs.h <<\_ACEOF
4680#define F77_FUNC(name,NAME) name ## _
4681_ACEOF
4682
4683          cat >>confdefs.h <<\_ACEOF
4684#define F77_FUNC_(name,NAME) name ## __
4685_ACEOF
4686 ;;
4687  "upper case, no underscore, no extra underscore")
4688          cat >>confdefs.h <<\_ACEOF
4689#define F77_FUNC(name,NAME) NAME
4690_ACEOF
4691
4692          cat >>confdefs.h <<\_ACEOF
4693#define F77_FUNC_(name,NAME) NAME
4694_ACEOF
4695 ;;
4696  "upper case, no underscore, extra underscore")
4697          cat >>confdefs.h <<\_ACEOF
4698#define F77_FUNC(name,NAME) NAME
4699_ACEOF
4700
4701          cat >>confdefs.h <<\_ACEOF
4702#define F77_FUNC_(name,NAME) NAME ## _
4703_ACEOF
4704 ;;
4705  "upper case, underscore, no extra underscore")
4706          cat >>confdefs.h <<\_ACEOF
4707#define F77_FUNC(name,NAME) NAME ## _
4708_ACEOF
4709
4710          cat >>confdefs.h <<\_ACEOF
4711#define F77_FUNC_(name,NAME) NAME ## _
4712_ACEOF
4713 ;;
4714  "upper case, underscore, extra underscore")
4715          cat >>confdefs.h <<\_ACEOF
4716#define F77_FUNC(name,NAME) NAME ## _
4717_ACEOF
4718
4719          cat >>confdefs.h <<\_ACEOF
4720#define F77_FUNC_(name,NAME) NAME ## __
4721_ACEOF
4722 ;;
4723  *)
4724          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4725echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4726          ;;
4727esac
4728
4729ac_ext=f
4730ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4731ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4733
4734
4735# If FLIBS has been set by the user, we just restore its value here
4736if test x"$save_FLIBS" != x; then
4737  FLIBS="$save_FLIBS"
4738else
4739  # This is to correct a missing exclusion in autoconf 2.59
4740  if test x"$FLIBS" != x; then
4741    my_flibs=
4742    for flag in $FLIBS; do
4743      case $flag in
4744        -lcrt*.o) ;;
4745        -lcygwin) ;;
4746               *) my_flibs="$my_flibs $flag" ;;
4747      esac
4748    done
4749    FLIBS="$my_flibs"
4750  fi
4751
4752  case $build in
4753  # The following is a fix to define FLIBS for ifort on Windows
4754  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4755  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4756  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4757  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4758  # Since the corresponding flag seems to make more trouble that it avoid, it has been removed now.
4759     *-cygwin* | *-mingw*)
4760       case "$F77" in
4761#         ifort* | */ifort* | IFORT* | */IFORT*)
4762#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4763#           if "$coin_debug_compile" = true ; then
4764#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4765#           else
4766#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4767#           fi
4768#           ;;
4769         compile_f2c*)
4770           FLIBS=`$F77 -FLIBS` ;;
4771       esac;;
4772     *-hp-*)
4773         FLIBS="$FLIBS -lm";;
4774     *-ibm-*)
4775         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4776     *-linux-*)
4777       case "$F77" in
4778         pgf77* | */pgf77* | pgf90* | */pgf90*)
4779# ask linker to go through the archives multiple times
4780# (the Fortran compiler seems to do that automatically...)
4781           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4782       esac
4783  esac
4784  ac_cv_f77_libs="$FLIBS"
4785fi
4786
4787ac_ext=c
4788ac_cpp='$CPP $CPPFLAGS'
4789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791ac_compiler_gnu=$ac_cv_c_compiler_gnu
4792
4793
4794
4795
4796# Add FLIBS to MUMPS_PCLIBS, so that they get into the .pc files
4797MUMPS_PCLIBS="$FLIBS"
4798
4799# We need to translate the result from autoconf to what MUMPS wants
4800case "$ac_cv_f77_mangling" in
4801  "lower case, no underscore, no extra underscore")
4802  ;;
4803  "lower case, underscore, no extra underscore")
4804  MY_DEFS="-DAdd_"
4805  ;;
4806  "lower case, no underscore, extra underscore")
4807  MY_DEFS="-DAdd_"
4808  ;;
4809  "lower case, underscore, extra underscore")
4810  MY_DEFS="-DAdd__"
4811  ;;
4812  "upper case, no underscore, no extra underscore")
4813  MY_DEFS="-DUPPER"
4814  ;;
4815  "upper case, no underscore, extra underscore")
4816  MY_DEFS="-DUPPER"
4817  ;;
4818  "upper case, underscore, no extra underscore")
4819  MY_DEFS="-DUPPER"
4820  ;;
4821  "upper case, underscore, extra underscore")
4822  MY_DEFS="-DUPPER"
4823  ;;
4824esac
4825
4826# check for pthread.h header file
4827ac_ext=c
4828ac_cpp='$CPP $CPPFLAGS'
4829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4833echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4834# On Suns, sometimes $CPP names a directory.
4835if test -n "$CPP" && test -d "$CPP"; then
4836  CPP=
4837fi
4838if test -z "$CPP"; then
4839  if test "${ac_cv_prog_CPP+set}" = set; then
4840  echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842      # Double quotes because CPP needs to be expanded
4843    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4844    do
4845      ac_preproc_ok=false
4846for ac_c_preproc_warn_flag in '' yes
4847do
4848  # Use a header file that comes with gcc, so configuring glibc
4849  # with a fresh cross-compiler works.
4850  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851  # <limits.h> exists even on freestanding compilers.
4852  # On the NeXT, cc -E runs the code through the compiler's parser,
4853  # not just through cpp. "Syntax error" is here to catch this case.
4854  cat >conftest.$ac_ext <<_ACEOF
4855/* confdefs.h.  */
4856_ACEOF
4857cat confdefs.h >>conftest.$ac_ext
4858cat >>conftest.$ac_ext <<_ACEOF
4859/* end confdefs.h.  */
4860#ifdef __STDC__
4861# include <limits.h>
4862#else
4863# include <assert.h>
4864#endif
4865                     Syntax error
4866_ACEOF
4867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4868  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4869  ac_status=$?
4870  grep -v '^ *+' conftest.er1 >conftest.err
4871  rm -f conftest.er1
4872  cat conftest.err >&5
4873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874  (exit $ac_status); } >/dev/null; then
4875  if test -s conftest.err; then
4876    ac_cpp_err=$ac_c_preproc_warn_flag
4877    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4878  else
4879    ac_cpp_err=
4880  fi
4881else
4882  ac_cpp_err=yes
4883fi
4884if test -z "$ac_cpp_err"; then
4885  :
4886else
4887  echo "$as_me: failed program was:" >&5
4888sed 's/^/| /' conftest.$ac_ext >&5
4889
4890  # Broken: fails on valid input.
4891continue
4892fi
4893rm -f conftest.err conftest.$ac_ext
4894
4895  # OK, works on sane cases.  Now check whether non-existent headers
4896  # can be detected and how.
4897  cat >conftest.$ac_ext <<_ACEOF
4898/* confdefs.h.  */
4899_ACEOF
4900cat confdefs.h >>conftest.$ac_ext
4901cat >>conftest.$ac_ext <<_ACEOF
4902/* end confdefs.h.  */
4903#include <ac_nonexistent.h>
4904_ACEOF
4905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4906  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4907  ac_status=$?
4908  grep -v '^ *+' conftest.er1 >conftest.err
4909  rm -f conftest.er1
4910  cat conftest.err >&5
4911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912  (exit $ac_status); } >/dev/null; then
4913  if test -s conftest.err; then
4914    ac_cpp_err=$ac_c_preproc_warn_flag
4915    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4916  else
4917    ac_cpp_err=
4918  fi
4919else
4920  ac_cpp_err=yes
4921fi
4922if test -z "$ac_cpp_err"; then
4923  # Broken: success on invalid input.
4924continue
4925else
4926  echo "$as_me: failed program was:" >&5
4927sed 's/^/| /' conftest.$ac_ext >&5
4928
4929  # Passes both tests.
4930ac_preproc_ok=:
4931break
4932fi
4933rm -f conftest.err conftest.$ac_ext
4934
4935done
4936# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4937rm -f conftest.err conftest.$ac_ext
4938if $ac_preproc_ok; then
4939  break
4940fi
4941
4942    done
4943    ac_cv_prog_CPP=$CPP
4944
4945fi
4946  CPP=$ac_cv_prog_CPP
4947else
4948  ac_cv_prog_CPP=$CPP
4949fi
4950echo "$as_me:$LINENO: result: $CPP" >&5
4951echo "${ECHO_T}$CPP" >&6
4952ac_preproc_ok=false
4953for ac_c_preproc_warn_flag in '' yes
4954do
4955  # Use a header file that comes with gcc, so configuring glibc
4956  # with a fresh cross-compiler works.
4957  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4958  # <limits.h> exists even on freestanding compilers.
4959  # On the NeXT, cc -E runs the code through the compiler's parser,
4960  # not just through cpp. "Syntax error" is here to catch this case.
4961  cat >conftest.$ac_ext <<_ACEOF
4962/* confdefs.h.  */
4963_ACEOF
4964cat confdefs.h >>conftest.$ac_ext
4965cat >>conftest.$ac_ext <<_ACEOF
4966/* end confdefs.h.  */
4967#ifdef __STDC__
4968# include <limits.h>
4969#else
4970# include <assert.h>
4971#endif
4972                     Syntax error
4973_ACEOF
4974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4975  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4976  ac_status=$?
4977  grep -v '^ *+' conftest.er1 >conftest.err
4978  rm -f conftest.er1
4979  cat conftest.err >&5
4980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981  (exit $ac_status); } >/dev/null; then
4982  if test -s conftest.err; then
4983    ac_cpp_err=$ac_c_preproc_warn_flag
4984    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4985  else
4986    ac_cpp_err=
4987  fi
4988else
4989  ac_cpp_err=yes
4990fi
4991if test -z "$ac_cpp_err"; then
4992  :
4993else
4994  echo "$as_me: failed program was:" >&5
4995sed 's/^/| /' conftest.$ac_ext >&5
4996
4997  # Broken: fails on valid input.
4998continue
4999fi
5000rm -f conftest.err conftest.$ac_ext
5001
5002  # OK, works on sane cases.  Now check whether non-existent headers
5003  # can be detected and how.
5004  cat >conftest.$ac_ext <<_ACEOF
5005/* confdefs.h.  */
5006_ACEOF
5007cat confdefs.h >>conftest.$ac_ext
5008cat >>conftest.$ac_ext <<_ACEOF
5009/* end confdefs.h.  */
5010#include <ac_nonexistent.h>
5011_ACEOF
5012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5013  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5014  ac_status=$?
5015  grep -v '^ *+' conftest.er1 >conftest.err
5016  rm -f conftest.er1
5017  cat conftest.err >&5
5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); } >/dev/null; then
5020  if test -s conftest.err; then
5021    ac_cpp_err=$ac_c_preproc_warn_flag
5022    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5023  else
5024    ac_cpp_err=
5025  fi
5026else
5027  ac_cpp_err=yes
5028fi
5029if test -z "$ac_cpp_err"; then
5030  # Broken: success on invalid input.
5031continue
5032else
5033  echo "$as_me: failed program was:" >&5
5034sed 's/^/| /' conftest.$ac_ext >&5
5035
5036  # Passes both tests.
5037ac_preproc_ok=:
5038break
5039fi
5040rm -f conftest.err conftest.$ac_ext
5041
5042done
5043# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5044rm -f conftest.err conftest.$ac_ext
5045if $ac_preproc_ok; then
5046  :
5047else
5048  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5049See \`config.log' for more details." >&5
5050echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5051See \`config.log' for more details." >&2;}
5052   { (exit 1); exit 1; }; }
5053fi
5054
5055ac_ext=c
5056ac_cpp='$CPP $CPPFLAGS'
5057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060
5061
5062echo "$as_me:$LINENO: checking for egrep" >&5
5063echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5064if test "${ac_cv_prog_egrep+set}" = set; then
5065  echo $ECHO_N "(cached) $ECHO_C" >&6
5066else
5067  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5068    then ac_cv_prog_egrep='grep -E'
5069    else ac_cv_prog_egrep='egrep'
5070    fi
5071fi
5072echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5073echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5074 EGREP=$ac_cv_prog_egrep
5075
5076
5077echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5078echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5079if test "${ac_cv_header_stdc+set}" = set; then
5080  echo $ECHO_N "(cached) $ECHO_C" >&6
5081else
5082  cat >conftest.$ac_ext <<_ACEOF
5083/* confdefs.h.  */
5084_ACEOF
5085cat confdefs.h >>conftest.$ac_ext
5086cat >>conftest.$ac_ext <<_ACEOF
5087/* end confdefs.h.  */
5088#include <stdlib.h>
5089#include <stdarg.h>
5090#include <string.h>
5091#include <float.h>
5092
5093#ifdef F77_DUMMY_MAIN
5094
5095#  ifdef __cplusplus
5096     extern "C"
5097#  endif
5098   int F77_DUMMY_MAIN() { return 1; }
5099
5100#endif
5101int
5102main ()
5103{
5104
5105  ;
5106  return 0;
5107}
5108_ACEOF
5109rm -f conftest.$ac_objext
5110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111  (eval $ac_compile) 2>conftest.er1
5112  ac_status=$?
5113  grep -v '^ *+' conftest.er1 >conftest.err
5114  rm -f conftest.er1
5115  cat conftest.err >&5
5116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117  (exit $ac_status); } &&
5118         { ac_try='test -z "$ac_c_werror_flag"
5119                         || test ! -s conftest.err'
5120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121  (eval $ac_try) 2>&5
5122  ac_status=$?
5123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124  (exit $ac_status); }; } &&
5125         { ac_try='test -s conftest.$ac_objext'
5126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127  (eval $ac_try) 2>&5
5128  ac_status=$?
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); }; }; then
5131  ac_cv_header_stdc=yes
5132else
5133  echo "$as_me: failed program was:" >&5
5134sed 's/^/| /' conftest.$ac_ext >&5
5135
5136ac_cv_header_stdc=no
5137fi
5138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5139
5140if test $ac_cv_header_stdc = yes; then
5141  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5142  cat >conftest.$ac_ext <<_ACEOF
5143/* confdefs.h.  */
5144_ACEOF
5145cat confdefs.h >>conftest.$ac_ext
5146cat >>conftest.$ac_ext <<_ACEOF
5147/* end confdefs.h.  */
5148#include <string.h>
5149
5150_ACEOF
5151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5152  $EGREP "memchr" >/dev/null 2>&1; then
5153  :
5154else
5155  ac_cv_header_stdc=no
5156fi
5157rm -f conftest*
5158
5159fi
5160
5161if test $ac_cv_header_stdc = yes; then
5162  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5163  cat >conftest.$ac_ext <<_ACEOF
5164/* confdefs.h.  */
5165_ACEOF
5166cat confdefs.h >>conftest.$ac_ext
5167cat >>conftest.$ac_ext <<_ACEOF
5168/* end confdefs.h.  */
5169#include <stdlib.h>
5170
5171_ACEOF
5172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5173  $EGREP "free" >/dev/null 2>&1; then
5174  :
5175else
5176  ac_cv_header_stdc=no
5177fi
5178rm -f conftest*
5179
5180fi
5181
5182if test $ac_cv_header_stdc = yes; then
5183  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5184  if test "$cross_compiling" = yes; then
5185  :
5186else
5187  cat >conftest.$ac_ext <<_ACEOF
5188/* confdefs.h.  */
5189_ACEOF
5190cat confdefs.h >>conftest.$ac_ext
5191cat >>conftest.$ac_ext <<_ACEOF
5192/* end confdefs.h.  */
5193#include <ctype.h>
5194#if ((' ' & 0x0FF) == 0x020)
5195# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5196# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5197#else
5198# define ISLOWER(c) \
5199                   (('a' <= (c) && (c) <= 'i') \
5200                     || ('j' <= (c) && (c) <= 'r') \
5201                     || ('s' <= (c) && (c) <= 'z'))
5202# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5203#endif
5204
5205#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5206int
5207main ()
5208{
5209  int i;
5210  for (i = 0; i < 256; i++)
5211    if (XOR (islower (i), ISLOWER (i))
5212        || toupper (i) != TOUPPER (i))
5213      exit(2);
5214  exit (0);
5215}
5216_ACEOF
5217rm -f conftest$ac_exeext
5218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5219  (eval $ac_link) 2>&5
5220  ac_status=$?
5221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224  (eval $ac_try) 2>&5
5225  ac_status=$?
5226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227  (exit $ac_status); }; }; then
5228  :
5229else
5230  echo "$as_me: program exited with status $ac_status" >&5
5231echo "$as_me: failed program was:" >&5
5232sed 's/^/| /' conftest.$ac_ext >&5
5233
5234( exit $ac_status )
5235ac_cv_header_stdc=no
5236fi
5237rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5238fi
5239fi
5240fi
5241echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5242echo "${ECHO_T}$ac_cv_header_stdc" >&6
5243if test $ac_cv_header_stdc = yes; then
5244
5245cat >>confdefs.h <<\_ACEOF
5246#define STDC_HEADERS 1
5247_ACEOF
5248
5249fi
5250
5251# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5262                  inttypes.h stdint.h unistd.h
5263do
5264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5265echo "$as_me:$LINENO: checking for $ac_header" >&5
5266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5267if eval "test \"\${$as_ac_Header+set}\" = set"; then
5268  echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270  cat >conftest.$ac_ext <<_ACEOF
5271/* confdefs.h.  */
5272_ACEOF
5273cat confdefs.h >>conftest.$ac_ext
5274cat >>conftest.$ac_ext <<_ACEOF
5275/* end confdefs.h.  */
5276$ac_includes_default
5277
5278#include <$ac_header>
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282  (eval $ac_compile) 2>conftest.er1
5283  ac_status=$?
5284  grep -v '^ *+' conftest.er1 >conftest.err
5285  rm -f conftest.er1
5286  cat conftest.err >&5
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); } &&
5289         { ac_try='test -z "$ac_c_werror_flag"
5290                         || test ! -s conftest.err'
5291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292  (eval $ac_try) 2>&5
5293  ac_status=$?
5294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295  (exit $ac_status); }; } &&
5296         { ac_try='test -s conftest.$ac_objext'
5297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298  (eval $ac_try) 2>&5
5299  ac_status=$?
5300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301  (exit $ac_status); }; }; then
5302  eval "$as_ac_Header=yes"
5303else
5304  echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307eval "$as_ac_Header=no"
5308fi
5309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5310fi
5311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5313if test `eval echo '${'$as_ac_Header'}'` = yes; then
5314  cat >>confdefs.h <<_ACEOF
5315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5316_ACEOF
5317
5318fi
5319
5320done
5321
5322
5323#if test x"" = x; then
5324#  hdr="#include <pthread.h>"
5325#else
5326#  hdr=""
5327#fi
5328#AC_CHECK_HEADERS([pthread.h],[],[MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"],[$hdr])
5329
5330for ac_header in pthread.h
5331do
5332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5333if eval "test \"\${$as_ac_Header+set}\" = set"; then
5334  echo "$as_me:$LINENO: checking for $ac_header" >&5
5335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5336if eval "test \"\${$as_ac_Header+set}\" = set"; then
5337  echo $ECHO_N "(cached) $ECHO_C" >&6
5338fi
5339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5341else
5342  # Is the header compilable?
5343echo "$as_me:$LINENO: checking $ac_header usability" >&5
5344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5345cat >conftest.$ac_ext <<_ACEOF
5346/* confdefs.h.  */
5347_ACEOF
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h.  */
5351$ac_includes_default
5352#include <$ac_header>
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356  (eval $ac_compile) 2>conftest.er1
5357  ac_status=$?
5358  grep -v '^ *+' conftest.er1 >conftest.err
5359  rm -f conftest.er1
5360  cat conftest.err >&5
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); } &&
5363         { ac_try='test -z "$ac_c_werror_flag"
5364                         || test ! -s conftest.err'
5365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366  (eval $ac_try) 2>&5
5367  ac_status=$?
5368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369  (exit $ac_status); }; } &&
5370         { ac_try='test -s conftest.$ac_objext'
5371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372  (eval $ac_try) 2>&5
5373  ac_status=$?
5374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); }; }; then
5376  ac_header_compiler=yes
5377else
5378  echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381ac_header_compiler=no
5382fi
5383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5385echo "${ECHO_T}$ac_header_compiler" >&6
5386
5387# Is the header present?
5388echo "$as_me:$LINENO: checking $ac_header presence" >&5
5389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5390cat >conftest.$ac_ext <<_ACEOF
5391/* confdefs.h.  */
5392_ACEOF
5393cat confdefs.h >>conftest.$ac_ext
5394cat >>conftest.$ac_ext <<_ACEOF
5395/* end confdefs.h.  */
5396#include <$ac_header>
5397_ACEOF
5398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5399  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5400  ac_status=$?
5401  grep -v '^ *+' conftest.er1 >conftest.err
5402  rm -f conftest.er1
5403  cat conftest.err >&5
5404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405  (exit $ac_status); } >/dev/null; then
5406  if test -s conftest.err; then
5407    ac_cpp_err=$ac_c_preproc_warn_flag
5408    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5409  else
5410    ac_cpp_err=
5411  fi
5412else
5413  ac_cpp_err=yes
5414fi
5415if test -z "$ac_cpp_err"; then
5416  ac_header_preproc=yes
5417else
5418  echo "$as_me: failed program was:" >&5
5419sed 's/^/| /' conftest.$ac_ext >&5
5420
5421  ac_header_preproc=no
5422fi
5423rm -f conftest.err conftest.$ac_ext
5424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5425echo "${ECHO_T}$ac_header_preproc" >&6
5426
5427# So?  What about this header?
5428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5429  yes:no: )
5430    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5432    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5434    ac_header_preproc=yes
5435    ;;
5436  no:yes:* )
5437    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5439    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5440echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5441    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5443    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5444echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5445    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5447    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5449    (
5450      cat <<\_ASBOX
5451## --------------------------------------------------------------- ##
5452## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5453## --------------------------------------------------------------- ##
5454_ASBOX
5455    ) |
5456      sed "s/^/$as_me: WARNING:     /" >&2
5457    ;;
5458esac
5459echo "$as_me:$LINENO: checking for $ac_header" >&5
5460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5461if eval "test \"\${$as_ac_Header+set}\" = set"; then
5462  echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464  eval "$as_ac_Header=\$ac_header_preproc"
5465fi
5466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5468
5469fi
5470if test `eval echo '${'$as_ac_Header'}'` = yes; then
5471  cat >>confdefs.h <<_ACEOF
5472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5473_ACEOF
5474
5475else
5476  MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"
5477fi
5478
5479done
5480
5481
5482
5483MY_DEFS="$MY_DEFS -DALLOW_NON_INIT -DMUMPS_ARITH=MUMPS_ARITH_d"
5484
5485
5486# Initialize automake
5487{
5488
5489
5490
5491# START
5492
5493# Test if force_shared has been set
5494if test "x" = xforce_shared; then
5495  if test x$enable_shared = xno; then
5496    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5497echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5498   { (exit 1); exit 1; }; }
5499  fi
5500  enable_shared=yes;
5501else
5502  # On Cygwin and AIX, building DLLs doesn't work
5503  case $build in
5504    *-cygwin*)
5505      coin_disable_shared=yes
5506      platform=Cygwin
5507    ;;
5508    *-aix*)
5509      coin_disable_shared=yes
5510      platform=AIX
5511    ;;
5512    *-mingw*)
5513      coin_disable_shared=yes
5514      platform="Msys"
5515#      case "$CXX" in
5516#        cl*)
5517#          coin_disable_shared=yes
5518#          platform="Msys with cl"
5519#      ;;
5520#      esac
5521    ;;
5522  esac
5523fi
5524if test x"$coin_disable_shared" = xyes; then
5525  if test x"$enable_shared" = xyes; then
5526    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5527echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5528  fi
5529  enable_shared=no
5530fi
5531# By default, we only want the shared objects to be compiled
5532# Check whether --enable-static or --disable-static was given.
5533if test "${enable_static+set}" = set; then
5534  enableval="$enable_static"
5535  p=${PACKAGE-default}
5536    case $enableval in
5537    yes) enable_static=yes ;;
5538    no) enable_static=no ;;
5539    *)
5540     enable_static=no
5541      # Look at the argument we got.  We use all the common list separators.
5542      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5543      for pkg in $enableval; do
5544        IFS="$lt_save_ifs"
5545        if test "X$pkg" = "X$p"; then
5546          enable_static=yes
5547        fi
5548      done
5549      IFS="$lt_save_ifs"
5550      ;;
5551    esac
5552else
5553  enable_static=no
5554fi;
5555
5556
5557
5558
5559# Initialize automake
5560am__api_version="1.9"
5561# Find a good install program.  We prefer a C program (faster),
5562# so one script is as good as another.  But avoid the broken or
5563# incompatible versions:
5564# SysV /etc/install, /usr/sbin/install
5565# SunOS /usr/etc/install
5566# IRIX /sbin/install
5567# AIX /bin/install
5568# AmigaOS /C/install, which installs bootblocks on floppy discs
5569# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5570# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5571# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5572# OS/2's system install, which has a completely different semantic
5573# ./install, which can be erroneously created by make from ./install.sh.
5574echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5575echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5576if test -z "$INSTALL"; then
5577if test "${ac_cv_path_install+set}" = set; then
5578  echo $ECHO_N "(cached) $ECHO_C" >&6
5579else
5580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583  IFS=$as_save_IFS
5584  test -z "$as_dir" && as_dir=.
5585  # Account for people who put trailing slashes in PATH elements.
5586case $as_dir/ in
5587  ./ | .// | /cC/* | \
5588  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5589  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5590  /usr/ucb/* ) ;;
5591  *)
5592    # OSF1 and SCO ODT 3.0 have their own names for install.
5593    # Don't use installbsd from OSF since it installs stuff as root
5594    # by default.
5595    for ac_prog in ginstall scoinst install; do
5596      for ac_exec_ext in '' $ac_executable_extensions; do
5597        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5598          if test $ac_prog = install &&
5599            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5600            # AIX install.  It has an incompatible calling convention.
5601            :
5602          elif test $ac_prog = install &&
5603            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5604            # program-specific install script used by HP pwplus--don't use.
5605            :
5606          else
5607            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5608            break 3
5609          fi
5610        fi
5611      done
5612    done
5613    ;;
5614esac
5615done
5616
5617
5618fi
5619  if test "${ac_cv_path_install+set}" = set; then
5620    INSTALL=$ac_cv_path_install
5621  else
5622    # As a last resort, use the slow shell script.  We don't cache a
5623    # path for INSTALL within a source directory, because that will
5624    # break other packages using the cache if that directory is
5625    # removed, or if the path is relative.
5626    INSTALL=$ac_install_sh
5627  fi
5628fi
5629echo "$as_me:$LINENO: result: $INSTALL" >&5
5630echo "${ECHO_T}$INSTALL" >&6
5631
5632# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5633# It thinks the first close brace ends the variable substitution.
5634test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5635
5636test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5637
5638test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5639
5640echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5641echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5642# Just in case
5643sleep 1
5644echo timestamp > conftest.file
5645# Do `set' in a subshell so we don't clobber the current shell's
5646# arguments.  Must try -L first in case configure is actually a
5647# symlink; some systems play weird games with the mod time of symlinks
5648# (eg FreeBSD returns the mod time of the symlink's containing
5649# directory).
5650if (
5651   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5652   if test "$*" = "X"; then
5653      # -L didn't work.
5654      set X `ls -t $srcdir/configure conftest.file`
5655   fi
5656   rm -f conftest.file
5657   if test "$*" != "X $srcdir/configure conftest.file" \
5658      && test "$*" != "X conftest.file $srcdir/configure"; then
5659
5660      # If neither matched, then we have a broken ls.  This can happen
5661      # if, for instance, CONFIG_SHELL is bash and it inherits a
5662      # broken ls alias from the environment.  This has actually
5663      # happened.  Such a system could not be considered "sane".
5664      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5665alias in your environment" >&5
5666echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5667alias in your environment" >&2;}
5668   { (exit 1); exit 1; }; }
5669   fi
5670
5671   test "$2" = conftest.file
5672   )
5673then
5674   # Ok.
5675   :
5676else
5677   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5678Check your system clock" >&5
5679echo "$as_me: error: newly created file is older than distributed files!
5680Check your system clock" >&2;}
5681   { (exit 1); exit 1; }; }
5682fi
5683echo "$as_me:$LINENO: result: yes" >&5
5684echo "${ECHO_T}yes" >&6
5685test "$program_prefix" != NONE &&
5686  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5687# Use a double $ so make ignores it.
5688test "$program_suffix" != NONE &&
5689  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5690# Double any \ or $.  echo might interpret backslashes.
5691# By default was `s,x,x', remove it if useless.
5692cat <<\_ACEOF >conftest.sed
5693s/[\\$]/&&/g;s/;s,x,x,$//
5694_ACEOF
5695program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5696rm conftest.sed
5697
5698# expand $ac_aux_dir to an absolute path
5699am_aux_dir=`cd $ac_aux_dir && pwd`
5700
5701test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5702# Use eval to expand $SHELL
5703if eval "$MISSING --run true"; then
5704  am_missing_run="$MISSING --run "
5705else
5706  am_missing_run=
5707  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5708echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5709fi
5710
5711if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5712  # We used to keeping the `.' as first argument, in order to
5713  # allow $(mkdir_p) to be used without argument.  As in
5714  #   $(mkdir_p) $(somedir)
5715  # where $(somedir) is conditionally defined.  However this is wrong
5716  # for two reasons:
5717  #  1. if the package is installed by a user who cannot write `.'
5718  #     make install will fail,
5719  #  2. the above comment should most certainly read
5720  #     $(mkdir_p) $(DESTDIR)$(somedir)
5721  #     so it does not work when $(somedir) is undefined and
5722  #     $(DESTDIR) is not.
5723  #  To support the latter case, we have to write
5724  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5725  #  so the `.' trick is pointless.
5726  mkdir_p='mkdir -p --'
5727else
5728  # On NextStep and OpenStep, the `mkdir' command does not
5729  # recognize any option.  It will interpret all options as
5730  # directories to create, and then abort because `.' already
5731  # exists.
5732  for d in ./-p ./--version;
5733  do
5734    test -d $d && rmdir $d
5735  done
5736  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5737  if test -f "$ac_aux_dir/mkinstalldirs"; then
5738    mkdir_p='$(mkinstalldirs)'
5739  else
5740    mkdir_p='$(install_sh) -d'
5741  fi
5742fi
5743
5744for ac_prog in gawk mawk nawk awk
5745do
5746  # Extract the first word of "$ac_prog", so it can be a program name with args.
5747set dummy $ac_prog; ac_word=$2
5748echo "$as_me:$LINENO: checking for $ac_word" >&5
5749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750if test "${ac_cv_prog_AWK+set}" = set; then
5751  echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753  if test -n "$AWK"; then
5754  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5755else
5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH
5758do
5759  IFS=$as_save_IFS
5760  test -z "$as_dir" && as_dir=.
5761  for ac_exec_ext in '' $ac_executable_extensions; do
5762  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763    ac_cv_prog_AWK="$ac_prog"
5764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765    break 2
5766  fi
5767done
5768done
5769
5770fi
5771fi
5772AWK=$ac_cv_prog_AWK
5773if test -n "$AWK"; then
5774  echo "$as_me:$LINENO: result: $AWK" >&5
5775echo "${ECHO_T}$AWK" >&6
5776else
5777  echo "$as_me:$LINENO: result: no" >&5
5778echo "${ECHO_T}no" >&6
5779fi
5780
5781  test -n "$AWK" && break
5782done
5783
5784echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5785echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5786set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5787if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5788  echo $ECHO_N "(cached) $ECHO_C" >&6
5789else
5790  cat >conftest.make <<\_ACEOF
5791all:
5792        @echo 'ac_maketemp="$(MAKE)"'
5793_ACEOF
5794# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5795eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5796if test -n "$ac_maketemp"; then
5797  eval ac_cv_prog_make_${ac_make}_set=yes
5798else
5799  eval ac_cv_prog_make_${ac_make}_set=no
5800fi
5801rm -f conftest.make
5802fi
5803if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5804  echo "$as_me:$LINENO: result: yes" >&5
5805echo "${ECHO_T}yes" >&6
5806  SET_MAKE=
5807else
5808  echo "$as_me:$LINENO: result: no" >&5
5809echo "${ECHO_T}no" >&6
5810  SET_MAKE="MAKE=${MAKE-make}"
5811fi
5812
5813rm -rf .tst 2>/dev/null
5814mkdir .tst 2>/dev/null
5815if test -d .tst; then
5816  am__leading_dot=.
5817else
5818  am__leading_dot=_
5819fi
5820rmdir .tst 2>/dev/null
5821
5822DEPDIR="${am__leading_dot}deps"
5823
5824          ac_config_commands="$ac_config_commands depfiles"
5825
5826
5827am_make=${MAKE-make}
5828cat > confinc << 'END'
5829am__doit:
5830        @echo done
5831.PHONY: am__doit
5832END
5833# If we don't find an include directive, just comment out the code.
5834echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5835echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5836am__include="#"
5837am__quote=
5838_am_result=none
5839# First try GNU make style include.
5840echo "include confinc" > confmf
5841# We grep out `Entering directory' and `Leaving directory'
5842# messages which can occur if `w' ends up in MAKEFLAGS.
5843# In particular we don't look at `^make:' because GNU make might
5844# be invoked under some other name (usually "gmake"), in which
5845# case it prints its new name instead of `make'.
5846if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5847   am__include=include
5848   am__quote=
5849   _am_result=GNU
5850fi
5851# Now try BSD make style include.
5852if test "$am__include" = "#"; then
5853   echo '.include "confinc"' > confmf
5854   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5855      am__include=.include
5856      am__quote="\""
5857      _am_result=BSD
5858   fi
5859fi
5860
5861
5862echo "$as_me:$LINENO: result: $_am_result" >&5
5863echo "${ECHO_T}$_am_result" >&6
5864rm -f confinc confmf
5865
5866# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5867if test "${enable_dependency_tracking+set}" = set; then
5868  enableval="$enable_dependency_tracking"
5869
5870fi;
5871if test "x$enable_dependency_tracking" != xno; then
5872  am_depcomp="$ac_aux_dir/depcomp"
5873  AMDEPBACKSLASH='\'
5874fi
5875
5876
5877if test "x$enable_dependency_tracking" != xno; then
5878  AMDEP_TRUE=
5879  AMDEP_FALSE='#'
5880else
5881  AMDEP_TRUE='#'
5882  AMDEP_FALSE=
5883fi
5884
5885
5886
5887
5888
5889# AC_MSG_NOTICE([Beginning automake initialisation.])
5890# Stuff for automake
5891# test to see if srcdir already configured
5892if test "`cd $srcdir && pwd`" != "`pwd`" &&
5893   test -f $srcdir/config.status; then
5894  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5895echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5896   { (exit 1); exit 1; }; }
5897fi
5898
5899# test whether we have cygpath
5900if test -z "$CYGPATH_W"; then
5901  if (cygpath --version) >/dev/null 2>/dev/null; then
5902    CYGPATH_W='cygpath -w'
5903  else
5904    CYGPATH_W=echo
5905  fi
5906fi
5907
5908
5909# Define the identity of the package.
5910 PACKAGE='thirdpartymumps'
5911 VERSION='trunk'
5912
5913
5914cat >>confdefs.h <<_ACEOF
5915#define PACKAGE "$PACKAGE"
5916_ACEOF
5917
5918
5919cat >>confdefs.h <<_ACEOF
5920#define VERSION "$VERSION"
5921_ACEOF
5922
5923# Some tools Automake needs.
5924
5925ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5926
5927
5928AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5929
5930
5931AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5932
5933
5934AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5935
5936
5937MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5938
5939install_sh=${install_sh-"$am_aux_dir/install-sh"}
5940
5941# Installed binaries are usually stripped using `strip' when the user
5942# run `make install-strip'.  However `strip' might not be the right
5943# tool to use in cross-compilation environments, therefore Automake
5944# will honor the `STRIP' environment variable to overrule this program.
5945if test "$cross_compiling" != no; then
5946  if test -n "$ac_tool_prefix"; then
5947  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5948set dummy ${ac_tool_prefix}strip; ac_word=$2
5949echo "$as_me:$LINENO: checking for $ac_word" >&5
5950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5951if test "${ac_cv_prog_STRIP+set}" = set; then
5952  echo $ECHO_N "(cached) $ECHO_C" >&6
5953else
5954  if test -n "$STRIP"; then
5955  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960  IFS=$as_save_IFS
5961  test -z "$as_dir" && as_dir=.
5962  for ac_exec_ext in '' $ac_executable_extensions; do
5963  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5965    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966    break 2
5967  fi
5968done
5969done
5970
5971fi
5972fi
5973STRIP=$ac_cv_prog_STRIP
5974if test -n "$STRIP"; then
5975  echo "$as_me:$LINENO: result: $STRIP" >&5
5976echo "${ECHO_T}$STRIP" >&6
5977else
5978  echo "$as_me:$LINENO: result: no" >&5
5979echo "${ECHO_T}no" >&6
5980fi
5981
5982fi
5983if test -z "$ac_cv_prog_STRIP"; then
5984  ac_ct_STRIP=$STRIP
5985  # Extract the first word of "strip", so it can be a program name with args.
5986set dummy strip; ac_word=$2
5987echo "$as_me:$LINENO: checking for $ac_word" >&5
5988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5989if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5990  echo $ECHO_N "(cached) $ECHO_C" >&6
5991else
5992  if test -n "$ac_ct_STRIP"; then
5993  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998  IFS=$as_save_IFS
5999  test -z "$as_dir" && as_dir=.
6000  for ac_exec_ext in '' $ac_executable_extensions; do
6001  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6002    ac_cv_prog_ac_ct_STRIP="strip"
6003    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004    break 2
6005  fi
6006done
6007done
6008
6009  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6010fi
6011fi
6012ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6013if test -n "$ac_ct_STRIP"; then
6014  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6015echo "${ECHO_T}$ac_ct_STRIP" >&6
6016else
6017  echo "$as_me:$LINENO: result: no" >&5
6018echo "${ECHO_T}no" >&6
6019fi
6020
6021  STRIP=$ac_ct_STRIP
6022else
6023  STRIP="$ac_cv_prog_STRIP"
6024fi
6025
6026fi
6027INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6028
6029# We need awk for the "check" target.  The system "awk" is bad on
6030# some platforms.
6031# Always define AMTAR for backward compatibility.
6032
6033AMTAR=${AMTAR-"${am_missing_run}tar"}
6034
6035am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6036
6037
6038
6039
6040depcc="$CC"   am_compiler_list=
6041
6042echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6043echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6044if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6045  echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
6047  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6048  # We make a subdir and do the tests there.  Otherwise we can end up
6049  # making bogus files that we don't know about and never remove.  For
6050  # instance it was reported that on HP-UX the gcc test will end up
6051  # making a dummy file named `D' -- because `-MD' means `put the output
6052  # in D'.
6053  mkdir conftest.dir
6054  # Copy depcomp to subdir because otherwise we won't find it if we're
6055  # using a relative directory.
6056  cp "$am_depcomp" conftest.dir
6057  cd conftest.dir
6058  # We will build objects and dependencies in a subdirectory because
6059  # it helps to detect inapplicable dependency modes.  For instance
6060  # both Tru64's cc and ICC support -MD to output dependencies as a
6061  # side effect of compilation, but ICC will put the dependencies in
6062  # the current directory while Tru64 will put them in the object
6063  # directory.
6064  mkdir sub
6065
6066  am_cv_CC_dependencies_compiler_type=none
6067  if test "$am_compiler_list" = ""; then
6068     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6069  fi
6070  for depmode in $am_compiler_list; do
6071    # Setup a source with many dependencies, because some compilers
6072    # like to wrap large dependency lists on column 80 (with \), and
6073    # we should not choose a depcomp mode which is confused by this.
6074    #
6075    # We need to recreate these files for each test, as the compiler may
6076    # overwrite some of them when testing with obscure command lines.
6077    # This happens at least with the AIX C compiler.
6078    : > sub/conftest.c
6079    for i in 1 2 3 4 5 6; do
6080      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6081      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6082      # Solaris 8's {/usr,}/bin/sh.
6083      touch sub/conftst$i.h
6084    done
6085    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6086
6087    case $depmode in
6088    nosideeffect)
6089      # after this tag, mechanisms are not by side-effect, so they'll
6090      # only be used when explicitly requested
6091      if test "x$enable_dependency_tracking" = xyes; then
6092        continue
6093      else
6094        break
6095      fi
6096      ;;
6097    none) break ;;
6098    esac
6099    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6100    # mode.  It turns out that the SunPro C++ compiler does not properly
6101    # handle `-M -o', and we need to detect this.
6102    if depmode=$depmode \
6103       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6104       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6105       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6106         >/dev/null 2>conftest.err &&
6107       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6108       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6109       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6110      # icc doesn't choke on unknown options, it will just issue warnings
6111      # or remarks (even with -Werror).  So we grep stderr for any message
6112      # that says an option was ignored or not supported.
6113      # When given -MP, icc 7.0 and 7.1 complain thusly:
6114      #   icc: Command line warning: ignoring option '-M'; no argument required
6115      # The diagnosis changed in icc 8.0:
6116      #   icc: Command line remark: option '-MP' not supported
6117      if (grep 'ignoring option' conftest.err ||
6118          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6119        am_cv_CC_dependencies_compiler_type=$depmode
6120        break
6121      fi
6122    fi
6123  done
6124
6125  cd ..
6126  rm -rf conftest.dir
6127else
6128  am_cv_CC_dependencies_compiler_type=none
6129fi
6130
6131fi
6132echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6133echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6134CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6135
6136
6137
6138if
6139  test "x$enable_dependency_tracking" != xno \
6140  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6141  am__fastdepCC_TRUE=
6142  am__fastdepCC_FALSE='#'
6143else
6144  am__fastdepCC_TRUE='#'
6145  am__fastdepCC_FALSE=
6146fi
6147
6148
6149
6150echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6151echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6152    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6153if test "${enable_maintainer_mode+set}" = set; then
6154  enableval="$enable_maintainer_mode"
6155  USE_MAINTAINER_MODE=$enableval
6156else
6157  USE_MAINTAINER_MODE=no
6158fi;
6159  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6160echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6161
6162
6163if test $USE_MAINTAINER_MODE = yes; then
6164  MAINTAINER_MODE_TRUE=
6165  MAINTAINER_MODE_FALSE='#'
6166else
6167  MAINTAINER_MODE_TRUE='#'
6168  MAINTAINER_MODE_FALSE=
6169fi
6170
6171  MAINT=$MAINTAINER_MODE_TRUE
6172
6173
6174
6175coin_have_externals=no
6176if test "$enable_maintainer_mode" = yes; then
6177
6178  # If maintainer mode is chosen, we make sure that the correct versions
6179  # of the tools are used, and that we know where libtool.m4 is (to
6180  # recreate acinclude.m4)
6181
6182
6183  LIBTOOLM4=
6184  # Normally, $HOME
6185  AUTOTOOLS_DFLT=$HOME
6186
6187  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6188echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6189if test "${ac_cv_use_correct_autotools+set}" = set; then
6190  echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192  ac_cv_use_correct_autotools=check
6193fi
6194echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6195echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6196
6197  if test $ac_cv_use_correct_autotools = check; then
6198    ac_cv_use_correct_autotools=yes
6199    # Check if we have autoconf
6200    # Extract the first word of "autoconf", so it can be a program name with args.
6201set dummy autoconf; ac_word=$2
6202echo "$as_me:$LINENO: checking for $ac_word" >&5
6203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6204if test "${ac_cv_prog_have_autoconf+set}" = set; then
6205  echo $ECHO_N "(cached) $ECHO_C" >&6
6206else
6207  if test -n "$have_autoconf"; then
6208  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6209else
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213  IFS=$as_save_IFS
6214  test -z "$as_dir" && as_dir=.
6215  for ac_exec_ext in '' $ac_executable_extensions; do
6216  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6217    ac_cv_prog_have_autoconf="yes"
6218    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219    break 2
6220  fi
6221done
6222done
6223
6224  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6225fi
6226fi
6227have_autoconf=$ac_cv_prog_have_autoconf
6228if test -n "$have_autoconf"; then
6229  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6230echo "${ECHO_T}$have_autoconf" >&6
6231else
6232  echo "$as_me:$LINENO: result: no" >&5
6233echo "${ECHO_T}no" >&6
6234fi
6235
6236    if test $have_autoconf = no; then
6237      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6238echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6239   { (exit 1); exit 1; }; }
6240    fi
6241
6242    # Check whether autoconf is the correct version
6243    correct_version='2.59'
6244    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6245    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6246echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6247    autoconf --version > confauto.out 2>&1
6248    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6249      echo "$as_me:$LINENO: result: yes" >&5
6250echo "${ECHO_T}yes" >&6
6251    else
6252      rm -f confauto.out
6253      echo "$as_me:$LINENO: result: no" >&5
6254echo "${ECHO_T}no" >&6
6255      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6256echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6257   { (exit 1); exit 1; }; }
6258    fi
6259    rm -f confauto.out
6260
6261    # Check if the executable autoconf is picked up from the correct location
6262    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6263echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6264    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6265    autoconf_dir=`cd $autoconf_dir; pwd`
6266    if test x$AUTOTOOLS_DIR = x; then
6267      want_dir=$AUTOTOOLS_DFLT/bin
6268    else
6269      want_dir=$AUTOTOOLS_DIR/bin
6270    fi
6271    if test $autoconf_dir = `cd $want_dir; pwd`; then
6272      echo "$as_me:$LINENO: result: yes" >&5
6273echo "${ECHO_T}yes" >&6
6274    else
6275      rm -f confauto.out
6276      echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6
6278      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6279echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6280   { (exit 1); exit 1; }; }
6281    fi
6282
6283    # Check if we have automake
6284    # Extract the first word of "automake", so it can be a program name with args.
6285set dummy automake; ac_word=$2
6286echo "$as_me:$LINENO: checking for $ac_word" >&5
6287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6288if test "${ac_cv_prog_have_automake+set}" = set; then
6289  echo $ECHO_N "(cached) $ECHO_C" >&6
6290else
6291  if test -n "$have_automake"; then
6292  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297  IFS=$as_save_IFS
6298  test -z "$as_dir" && as_dir=.
6299  for ac_exec_ext in '' $ac_executable_extensions; do
6300  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301    ac_cv_prog_have_automake="yes"
6302    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6303    break 2
6304  fi
6305done
6306done
6307
6308  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6309fi
6310fi
6311have_automake=$ac_cv_prog_have_automake
6312if test -n "$have_automake"; then
6313  echo "$as_me:$LINENO: result: $have_automake" >&5
6314echo "${ECHO_T}$have_automake" >&6
6315else
6316  echo "$as_me:$LINENO: result: no" >&5
6317echo "${ECHO_T}no" >&6
6318fi
6319
6320    if test $have_automake = no; then
6321      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6322echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6323   { (exit 1); exit 1; }; }
6324    fi
6325
6326    # Check whether automake is the correct version
6327    correct_version='1.9.6'
6328    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6329    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6330echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6331    automake --version > confauto.out 2>&1
6332    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6333      echo "$as_me:$LINENO: result: yes" >&5
6334echo "${ECHO_T}yes" >&6
6335    else
6336      rm -f confauto.out
6337      echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6
6339      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6340echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6341   { (exit 1); exit 1; }; }
6342    fi
6343    rm -f confauto.out
6344
6345    # Check if the executable automake is picked up from the correct location
6346    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6347echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6348    automake_dir=`which automake | sed -e 's=/automake=='`
6349    automake_dir=`cd $automake_dir; pwd`
6350    if test x$AUTOTOOLS_DIR = x; then
6351      want_dir=$AUTOTOOLS_DFLT/bin
6352    else
6353      want_dir=$AUTOTOOLS_DIR/bin
6354    fi
6355    if test $automake_dir = `cd $want_dir; pwd`; then
6356      echo "$as_me:$LINENO: result: yes" >&5
6357echo "${ECHO_T}yes" >&6
6358    else
6359      rm -f confauto.out
6360      echo "$as_me:$LINENO: result: no" >&5
6361echo "${ECHO_T}no" >&6
6362      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6363echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6364   { (exit 1); exit 1; }; }
6365    fi
6366
6367    # Check if this is the correct version of libtool (with escaped dots)
6368    if test x$AUTOTOOLS_DIR = x; then
6369      want_dir=$AUTOTOOLS_DFLT/share
6370    else
6371      want_dir=$AUTOTOOLS_DIR/share
6372    fi
6373    correct_version='1.5.22'
6374    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6375    if test -r $want_dir/libtool/ltmain.sh; then
6376  have_ltmain=yes
6377  :
6378else
6379  have_ltmain=no
6380  :
6381fi
6382
6383    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6384echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6385    if test $have_ltmain = yes; then
6386    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6387        echo "$as_me:$LINENO: result: yes" >&5
6388echo "${ECHO_T}yes" >&6
6389      else
6390        echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6
6392        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6393echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6394   { (exit 1); exit 1; }; }
6395      fi
6396    else
6397      echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6
6399      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6400echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6401   { (exit 1); exit 1; }; }
6402    fi
6403  fi
6404
6405  # Check if we can find the libtool file
6406  if test x$AUTOTOOLS_DIR = x; then
6407    want_dir=$AUTOTOOLS_DFLT/share
6408  else
6409    want_dir=$AUTOTOOLS_DIR/share
6410  fi
6411  if test -r $want_dir/aclocal/libtool.m4; then
6412  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6413  :
6414else
6415  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6416echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6417   { (exit 1); exit 1; }; }
6418  :
6419fi
6420
6421
6422  # Check if we have an Externals file
6423  if test -r $srcdir/Externals; then
6424    coin_have_externals=yes
6425  fi
6426  # Check if subversion is installed and understands https
6427  # Extract the first word of "svn", so it can be a program name with args.
6428set dummy svn; ac_word=$2
6429echo "$as_me:$LINENO: checking for $ac_word" >&5
6430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6431if test "${ac_cv_prog_have_svn+set}" = set; then
6432  echo $ECHO_N "(cached) $ECHO_C" >&6
6433else
6434  if test -n "$have_svn"; then
6435  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6436else
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440  IFS=$as_save_IFS
6441  test -z "$as_dir" && as_dir=.
6442  for ac_exec_ext in '' $ac_executable_extensions; do
6443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444    ac_cv_prog_have_svn="yes"
6445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446    break 2
6447  fi
6448done
6449done
6450
6451  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6452fi
6453fi
6454have_svn=$ac_cv_prog_have_svn
6455if test -n "$have_svn"; then
6456  echo "$as_me:$LINENO: result: $have_svn" >&5
6457echo "${ECHO_T}$have_svn" >&6
6458else
6459  echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6
6461fi
6462
6463  if test x$have_svn = xyes; then
6464    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6465echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6466if test "${ac_cv_svn_understands_https+set}" = set; then
6467  echo $ECHO_N "(cached) $ECHO_C" >&6
6468else
6469  svn --version > confauto.out 2>&1
6470                    if $EGREP https confauto.out >/dev/null 2>&1; then
6471                      ac_cv_svn_understands_https=yes
6472                    else
6473                      ac_cv_svn_understands_https=no
6474                      have_svn=no
6475                      ac_cv_prog_have_svn=no
6476                    fi
6477                    rm -f confauto.out
6478fi
6479echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6480echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6481  fi
6482
6483  # Find the location of the BuildTools directory
6484  BUILDTOOLSDIR=
6485  if test -r $srcdir/BuildTools/coin.m4; then
6486    BUILDTOOLSDIR=$srcdir/BuildTools
6487  else
6488    if test -r $srcdir/../BuildTools/coin.m4; then
6489      BUILDTOOLSDIR=$srcdir/../BuildTools
6490    else
6491      if test -r $srcdir/../../BuildTools/coin.m4; then
6492        BUILDTOOLSDIR=$srcdir/../../BuildTools
6493      else
6494        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6495echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6496   { (exit 1); exit 1; }; }
6497      fi
6498    fi
6499  fi
6500
6501
6502  # The following variable is set to the name of the directory where
6503  # the autotool scripts are located
6504
6505  AUX_DIR=$ac_aux_dir
6506fi
6507
6508# helpful variable for the base directory of this package
6509abs_source_dir=`cd $srcdir; pwd`
6510
6511
6512# Stuff for example Makefiles
6513if test x$prefix = xNONE; then
6514  full_prefix=$ac_default_prefix
6515else
6516  full_prefix=$prefix
6517fi
6518full_prefix=`cd $full_prefix ; pwd`
6519
6520abs_lib_dir=$full_prefix/lib
6521
6522abs_include_dir=$full_prefix/include
6523
6524abs_bin_dir=$full_prefix/bin
6525
6526
6527
6528if test $coin_have_externals = yes && test x$have_svn = xyes; then
6529  HAVE_EXTERNALS_TRUE=
6530  HAVE_EXTERNALS_FALSE='#'
6531else
6532  HAVE_EXTERNALS_TRUE='#'
6533  HAVE_EXTERNALS_FALSE=
6534fi
6535
6536
6537# AC_MSG_NOTICE([End automake initialisation.])
6538
6539
6540
6541LIBTOOL=
6542if test -r ../libtool; then
6543  coin_config_dir=..
6544  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6545fi
6546if test "x$LIBTOOL" = x; then
6547  if test -r ../../libtool; then
6548    coin_config_dir=../..
6549    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6550  fi
6551fi
6552
6553if test "x$LIBTOOL" = x; then
6554# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6555  # Stuff for libtool
6556  # Check whether --enable-shared or --disable-shared was given.
6557if test "${enable_shared+set}" = set; then
6558  enableval="$enable_shared"
6559  p=${PACKAGE-default}
6560    case $enableval in
6561    yes) enable_shared=yes ;;
6562    no) enable_shared=no ;;
6563    *)
6564      enable_shared=no
6565      # Look at the argument we got.  We use all the common list separators.
6566      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6567      for pkg in $enableval; do
6568        IFS="$lt_save_ifs"
6569        if test "X$pkg" = "X$p"; then
6570          enable_shared=yes
6571        fi
6572      done
6573      IFS="$lt_save_ifs"
6574      ;;
6575    esac
6576else
6577  enable_shared=yes
6578fi;
6579
6580# Check whether --enable-fast-install or --disable-fast-install was given.
6581if test "${enable_fast_install+set}" = set; then
6582  enableval="$enable_fast_install"
6583  p=${PACKAGE-default}
6584    case $enableval in
6585    yes) enable_fast_install=yes ;;
6586    no) enable_fast_install=no ;;
6587    *)
6588      enable_fast_install=no
6589      # Look at the argument we got.  We use all the common list separators.
6590      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6591      for pkg in $enableval; do
6592        IFS="$lt_save_ifs"
6593        if test "X$pkg" = "X$p"; then
6594          enable_fast_install=yes
6595        fi
6596      done
6597      IFS="$lt_save_ifs"
6598      ;;
6599    esac
6600else
6601  enable_fast_install=yes
6602fi;
6603
6604echo "$as_me:$LINENO: checking host system type" >&5
6605echo $ECHO_N "checking host system type... $ECHO_C" >&6
6606if test "${ac_cv_host+set}" = set; then
6607  echo $ECHO_N "(cached) $ECHO_C" >&6
6608else
6609  ac_cv_host_alias=$host_alias
6610test -z "$ac_cv_host_alias" &&
6611  ac_cv_host_alias=$ac_cv_build_alias
6612ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6613  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6614echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6615   { (exit 1); exit 1; }; }
6616
6617fi
6618echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6619echo "${ECHO_T}$ac_cv_host" >&6
6620host=$ac_cv_host
6621host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6622host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6623host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6624
6625
6626echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6627echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6628if test "${lt_cv_path_SED+set}" = set; then
6629  echo $ECHO_N "(cached) $ECHO_C" >&6
6630else
6631  # Loop through the user's path and test for sed and gsed.
6632# Then use that list of sed's as ones to test for truncation.
6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636  IFS=$as_save_IFS
6637  test -z "$as_dir" && as_dir=.
6638  for lt_ac_prog in sed gsed; do
6639    for ac_exec_ext in '' $ac_executable_extensions; do
6640      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6641        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6642      fi
6643    done
6644  done
6645done
6646lt_ac_max=0
6647lt_ac_count=0
6648# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6649# along with /bin/sed that truncates output.
6650for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6651  test ! -f $lt_ac_sed && continue
6652  cat /dev/null > conftest.in
6653  lt_ac_count=0
6654  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6655  # Check for GNU sed and select it if it is found.
6656  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6657    lt_cv_path_SED=$lt_ac_sed
6658    break
6659  fi
6660  while true; do
6661    cat conftest.in conftest.in >conftest.tmp
6662    mv conftest.tmp conftest.in
6663    cp conftest.in conftest.nl
6664    echo >>conftest.nl
6665    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6666    cmp -s conftest.out conftest.nl || break
6667    # 10000 chars as input seems more than enough
6668    test $lt_ac_count -gt 10 && break
6669    lt_ac_count=`expr $lt_ac_count + 1`
6670    if test $lt_ac_count -gt $lt_ac_max; then
6671      lt_ac_max=$lt_ac_count
6672      lt_cv_path_SED=$lt_ac_sed
6673    fi
6674  done
6675done
6676
6677fi
6678
6679SED=$lt_cv_path_SED
6680echo "$as_me:$LINENO: result: $SED" >&5
6681echo "${ECHO_T}$SED" >&6
6682
6683
6684# Check whether --with-gnu-ld or --without-gnu-ld was given.
6685if test "${with_gnu_ld+set}" = set; then
6686  withval="$with_gnu_ld"
6687  test "$withval" = no || with_gnu_ld=yes
6688else
6689  with_gnu_ld=no
6690fi;
6691ac_prog=ld
6692if test "$GCC" = yes; then
6693  # Check if gcc -print-prog-name=ld gives a path.
6694  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6695echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6696  case $host in
6697  *-*-mingw*)
6698    # gcc leaves a trailing carriage return which upsets mingw
6699    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6700  *)
6701    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6702  esac
6703  case $ac_prog in
6704    # Accept absolute paths.
6705    [\\/]* | ?:[\\/]*)
6706      re_direlt='/[^/][^/]*/\.\./'
6707      # Canonicalize the pathname of ld
6708      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6709      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6710        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6711      done
6712      test -z "$LD" && LD="$ac_prog"
6713      ;;
6714  "")
6715    # If it fails, then pretend we aren't using GCC.
6716    ac_prog=ld
6717    ;;
6718  *)
6719    # If it is relative, then search for the first ld in PATH.
6720    with_gnu_ld=unknown
6721    ;;
6722  esac
6723elif test "$with_gnu_ld" = yes; then
6724  echo "$as_me:$LINENO: checking for GNU ld" >&5
6725echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6726else
6727  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6728echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6729fi
6730if test "${lt_cv_path_LD+set}" = set; then
6731  echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733  if test -z "$LD"; then
6734  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6735  for ac_dir in $PATH; do
6736    IFS="$lt_save_ifs"
6737    test -z "$ac_dir" && ac_dir=.
6738    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6739      lt_cv_path_LD="$ac_dir/$ac_prog"
6740      # Check to see if the program is GNU ld.  I'd rather use --version,
6741      # but apparently some variants of GNU ld only accept -v.
6742      # Break only if it was the GNU/non-GNU ld that we prefer.
6743      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6744      *GNU* | *'with BFD'*)
6745        test "$with_gnu_ld" != no && break
6746        ;;
6747      *)
6748        test "$with_gnu_ld" != yes && break
6749        ;;
6750      esac
6751    fi
6752  done
6753  IFS="$lt_save_ifs"
6754else
6755  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6756fi
6757fi
6758
6759LD="$lt_cv_path_LD"
6760if test -n "$LD"; then
6761  echo "$as_me:$LINENO: result: $LD" >&5
6762echo "${ECHO_T}$LD" >&6
6763else
6764  echo "$as_me:$LINENO: result: no" >&5
6765echo "${ECHO_T}no" >&6
6766fi
6767test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6768echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6769   { (exit 1); exit 1; }; }
6770echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6771echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6772if test "${lt_cv_prog_gnu_ld+set}" = set; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6776case `$LD -v 2>&1 </dev/null` in
6777*GNU* | *'with BFD'*)
6778  lt_cv_prog_gnu_ld=yes
6779  ;;
6780*)
6781  lt_cv_prog_gnu_ld=no
6782  ;;
6783esac
6784fi
6785echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6786echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6787with_gnu_ld=$lt_cv_prog_gnu_ld
6788
6789
6790echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6791echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6792if test "${lt_cv_ld_reload_flag+set}" = set; then
6793  echo $ECHO_N "(cached) $ECHO_C" >&6
6794else
6795  lt_cv_ld_reload_flag='-r'
6796fi
6797echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6798echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6799reload_flag=$lt_cv_ld_reload_flag
6800case $reload_flag in
6801"" | " "*) ;;
6802*) reload_flag=" $reload_flag" ;;
6803esac
6804reload_cmds='$LD$reload_flag -o $output$reload_objs'
6805case $host_os in
6806  darwin*)
6807    if test "$GCC" = yes; then
6808      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6809    else
6810      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6811    fi
6812    ;;
6813esac
6814
6815echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6816echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6817if test "${lt_cv_path_NM+set}" = set; then
6818  echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820  if test -n "$NM"; then
6821  # Let the user override the test.
6822  lt_cv_path_NM="$NM"
6823else
6824  lt_nm_to_check="${ac_tool_prefix}nm"
6825  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6826    lt_nm_to_check="$lt_nm_to_check nm"
6827  fi
6828  for lt_tmp_nm in $lt_nm_to_check; do
6829    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6830    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6831      IFS="$lt_save_ifs"
6832      test -z "$ac_dir" && ac_dir=.
6833      tmp_nm="$ac_dir/$lt_tmp_nm"
6834      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6835        # Check to see if the nm accepts a BSD-compat flag.
6836        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6837        #   nm: unknown option "B" ignored
6838        # Tru64's nm complains that /dev/null is an invalid object file
6839        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6840        */dev/null* | *'Invalid file or object type'*)
6841          lt_cv_path_NM="$tmp_nm -B"
6842          break
6843          ;;
6844        *)
6845          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6846          */dev/null*)
6847            lt_cv_path_NM="$tmp_nm -p"
6848            break
6849            ;;
6850          *)
6851            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6852            continue # so that we can try to find one that supports BSD flags
6853            ;;
6854          esac
6855          ;;
6856        esac
6857      fi
6858    done
6859    IFS="$lt_save_ifs"
6860  done
6861  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6862fi
6863fi
6864echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6865echo "${ECHO_T}$lt_cv_path_NM" >&6
6866NM="$lt_cv_path_NM"
6867
6868echo "$as_me:$LINENO: checking whether ln -s works" >&5
6869echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6870LN_S=$as_ln_s
6871if test "$LN_S" = "ln -s"; then
6872  echo "$as_me:$LINENO: result: yes" >&5
6873echo "${ECHO_T}yes" >&6
6874else
6875  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6876echo "${ECHO_T}no, using $LN_S" >&6
6877fi
6878
6879echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6880echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6881if test "${lt_cv_deplibs_check_method+set}" = set; then
6882  echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884  lt_cv_file_magic_cmd='$MAGIC_CMD'
6885lt_cv_file_magic_test_file=
6886lt_cv_deplibs_check_method='unknown'
6887# Need to set the preceding variable on all platforms that support
6888# interlibrary dependencies.
6889# 'none' -- dependencies not supported.
6890# `unknown' -- same as none, but documents that we really don't know.
6891# 'pass_all' -- all dependencies passed with no checks.
6892# 'test_compile' -- check by making test program.
6893# 'file_magic [[regex]]' -- check by looking for files in library path
6894# which responds to the $file_magic_cmd with a given extended regex.
6895# If you have `file' or equivalent on your system and you're not sure
6896# whether `pass_all' will *always* work, you probably want this one.
6897
6898case $host_os in
6899aix4* | aix5*)
6900  lt_cv_deplibs_check_method=pass_all
6901  ;;
6902
6903beos*)
6904  lt_cv_deplibs_check_method=pass_all
6905  ;;
6906
6907bsdi[45]*)
6908  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6909  lt_cv_file_magic_cmd='/usr/bin/file -L'
6910  lt_cv_file_magic_test_file=/shlib/libc.so
6911  ;;
6912
6913cygwin*)
6914  # func_win32_libid is a shell function defined in ltmain.sh
6915  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6916  lt_cv_file_magic_cmd='func_win32_libid'
6917  ;;
6918
6919mingw* | pw32*)
6920  # Base MSYS/MinGW do not provide the 'file' command needed by
6921  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6922  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6923  lt_cv_file_magic_cmd='$OBJDUMP -f'
6924  ;;
6925
6926darwin* | rhapsody*)
6927  lt_cv_deplibs_check_method=pass_all
6928  ;;
6929
6930freebsd* | kfreebsd*-gnu | dragonfly*)
6931  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6932    case $host_cpu in
6933    i*86 )
6934      # Not sure whether the presence of OpenBSD here was a mistake.
6935      # Let's accept both of them until this is cleared up.
6936      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6937      lt_cv_file_magic_cmd=/usr/bin/file
6938      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6939      ;;
6940    esac
6941  else
6942    lt_cv_deplibs_check_method=pass_all
6943  fi
6944  ;;
6945
6946gnu*)
6947  lt_cv_deplibs_check_method=pass_all
6948  ;;
6949
6950hpux10.20* | hpux11*)
6951  lt_cv_file_magic_cmd=/usr/bin/file
6952  case $host_cpu in
6953  ia64*)
6954    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6955    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6956    ;;
6957  hppa*64*)
6958    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]'
6959    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6960    ;;
6961  *)
6962    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6963    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6964    ;;
6965  esac
6966  ;;
6967
6968interix3*)
6969  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6970  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6971  ;;
6972
6973irix5* | irix6* | nonstopux*)
6974  case $LD in
6975  *-32|*"-32 ") libmagic=32-bit;;
6976  *-n32|*"-n32 ") libmagic=N32;;
6977  *-64|*"-64 ") libmagic=64-bit;;
6978  *) libmagic=never-match;;
6979  esac
6980  lt_cv_deplibs_check_method=pass_all
6981  ;;
6982
6983# This must be Linux ELF.
6984linux*)
6985  lt_cv_deplibs_check_method=pass_all
6986  ;;
6987
6988netbsd*)
6989  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6990    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6991  else
6992    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6993  fi
6994  ;;
6995
6996newos6*)
6997  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6998  lt_cv_file_magic_cmd=/usr/bin/file
6999  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7000  ;;
7001
7002nto-qnx*)
7003  lt_cv_deplibs_check_method=unknown
7004  ;;
7005
7006openbsd*)
7007  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7008    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7009  else
7010    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7011  fi
7012  ;;
7013
7014osf3* | osf4* | osf5*)
7015  lt_cv_deplibs_check_method=pass_all
7016  ;;
7017
7018solaris*)
7019  lt_cv_deplibs_check_method=pass_all
7020  ;;
7021
7022sysv4 | sysv4.3*)
7023  case $host_vendor in
7024  motorola)
7025    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]'
7026    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7027    ;;
7028  ncr)
7029    lt_cv_deplibs_check_method=pass_all
7030    ;;
7031  sequent)
7032    lt_cv_file_magic_cmd='/bin/file'
7033    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7034    ;;
7035  sni)
7036    lt_cv_file_magic_cmd='/bin/file'
7037    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7038    lt_cv_file_magic_test_file=/lib/libc.so
7039    ;;
7040  siemens)
7041    lt_cv_deplibs_check_method=pass_all
7042    ;;
7043  pc)
7044    lt_cv_deplibs_check_method=pass_all
7045    ;;
7046  esac
7047  ;;
7048
7049sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7050  lt_cv_deplibs_check_method=pass_all
7051  ;;
7052esac
7053
7054fi
7055echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7056echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7057file_magic_cmd=$lt_cv_file_magic_cmd
7058deplibs_check_method=$lt_cv_deplibs_check_method
7059test -z "$deplibs_check_method" && deplibs_check_method=unknown
7060
7061
7062
7063
7064# If no C compiler was specified, use CC.
7065LTCC=${LTCC-"$CC"}
7066
7067# If no C compiler flags were specified, use CFLAGS.
7068LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7069
7070# Allow CC to be a program name with arguments.
7071compiler=$CC
7072
7073# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7074if test "${enable_libtool_lock+set}" = set; then
7075  enableval="$enable_libtool_lock"
7076
7077fi;
7078test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7079
7080# Some flags need to be propagated to the compiler or linker for good
7081# libtool support.
7082case $host in
7083ia64-*-hpux*)
7084  # Find out which ABI we are using.
7085  echo 'int i;' > conftest.$ac_ext
7086  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087  (eval $ac_compile) 2>&5
7088  ac_status=$?
7089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090  (exit $ac_status); }; then
7091    case `/usr/bin/file conftest.$ac_objext` in
7092    *ELF-32*)
7093      HPUX_IA64_MODE="32"
7094      ;;
7095    *ELF-64*)
7096      HPUX_IA64_MODE="64"
7097      ;;
7098    esac
7099  fi
7100  rm -rf conftest*
7101  ;;
7102*-*-irix6*)
7103  # Find out which ABI we are using.
7104  echo '#line 7104 "configure"' > conftest.$ac_ext
7105  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106  (eval $ac_compile) 2>&5
7107  ac_status=$?
7108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109  (exit $ac_status); }; then
7110   if test "$lt_cv_prog_gnu_ld" = yes; then
7111    case `/usr/bin/file conftest.$ac_objext` in
7112    *32-bit*)
7113      LD="${LD-ld} -melf32bsmip"
7114      ;;
7115    *N32*)
7116      LD="${LD-ld} -melf32bmipn32"
7117      ;;
7118    *64-bit*)
7119      LD="${LD-ld} -melf64bmip"
7120      ;;
7121    esac
7122   else
7123    case `/usr/bin/file conftest.$ac_objext` in
7124    *32-bit*)
7125      LD="${LD-ld} -32"
7126      ;;
7127    *N32*)
7128      LD="${LD-ld} -n32"
7129      ;;
7130    *64-bit*)
7131      LD="${LD-ld} -64"
7132      ;;
7133    esac
7134   fi
7135  fi
7136  rm -rf conftest*
7137  ;;
7138
7139x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7140  # Find out which ABI we are using.
7141  echo 'int i;' > conftest.$ac_ext
7142  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143  (eval $ac_compile) 2>&5
7144  ac_status=$?
7145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146  (exit $ac_status); }; then
7147    case `/usr/bin/file conftest.o` in
7148    *32-bit*)
7149      case $host in
7150        x86_64-*linux*)
7151          LD="${LD-ld} -m elf_i386"
7152          ;;
7153        ppc64-*linux*|powerpc64-*linux*)
7154          LD="${LD-ld} -m elf32ppclinux"
7155          ;;
7156        s390x-*linux*)
7157          LD="${LD-ld} -m elf_s390"
7158          ;;
7159        sparc64-*linux*)
7160          LD="${LD-ld} -m elf32_sparc"
7161          ;;
7162      esac
7163      ;;
7164    *64-bit*)
7165      case $host in
7166        x86_64-*linux*)
7167          LD="${LD-ld} -m elf_x86_64"
7168          ;;
7169        ppc*-*linux*|powerpc*-*linux*)
7170          LD="${LD-ld} -m elf64ppc"
7171          ;;
7172        s390*-*linux*)
7173          LD="${LD-ld} -m elf64_s390"
7174          ;;
7175        sparc*-*linux*)
7176          LD="${LD-ld} -m elf64_sparc"
7177          ;;
7178      esac
7179      ;;
7180    esac
7181  fi
7182  rm -rf conftest*
7183  ;;
7184
7185*-*-sco3.2v5*)
7186  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7187  SAVE_CFLAGS="$CFLAGS"
7188  CFLAGS="$CFLAGS -belf"
7189  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7190echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7191if test "${lt_cv_cc_needs_belf+set}" = set; then
7192  echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194  ac_ext=c
7195ac_cpp='$CPP $CPPFLAGS'
7196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199
7200     cat >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
7207#ifdef F77_DUMMY_MAIN
7208
7209#  ifdef __cplusplus
7210     extern "C"
7211#  endif
7212   int F77_DUMMY_MAIN() { return 1; }
7213
7214#endif
7215int
7216main ()
7217{
7218
7219  ;
7220  return 0;
7221}
7222_ACEOF
7223rm -f conftest.$ac_objext conftest$ac_exeext
7224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7225  (eval $ac_link) 2>conftest.er1
7226  ac_status=$?
7227  grep -v '^ *+' conftest.er1 >conftest.err
7228  rm -f conftest.er1
7229  cat conftest.err >&5
7230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231  (exit $ac_status); } &&
7232         { ac_try='test -z "$ac_c_werror_flag"
7233                         || test ! -s conftest.err'
7234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235  (eval $ac_try) 2>&5
7236  ac_status=$?
7237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238  (exit $ac_status); }; } &&
7239         { ac_try='test -s conftest$ac_exeext'
7240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241  (eval $ac_try) 2>&5
7242  ac_status=$?
7243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244  (exit $ac_status); }; }; then
7245  lt_cv_cc_needs_belf=yes
7246else
7247  echo "$as_me: failed program was:" >&5
7248sed 's/^/| /' conftest.$ac_ext >&5
7249
7250lt_cv_cc_needs_belf=no
7251fi
7252rm -f conftest.err conftest.$ac_objext \
7253      conftest$ac_exeext conftest.$ac_ext
7254     ac_ext=c
7255ac_cpp='$CPP $CPPFLAGS'
7256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7258ac_compiler_gnu=$ac_cv_c_compiler_gnu
7259
7260fi
7261echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7262echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7263  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7264    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7265    CFLAGS="$SAVE_CFLAGS"
7266  fi
7267  ;;
7268sparc*-*solaris*)
7269  # Find out which ABI we are using.
7270  echo 'int i;' > conftest.$ac_ext
7271  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7272  (eval $ac_compile) 2>&5
7273  ac_status=$?
7274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275  (exit $ac_status); }; then
7276    case `/usr/bin/file conftest.o` in
7277    *64-bit*)
7278      case $lt_cv_prog_gnu_ld in
7279      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7280      *)    LD="${LD-ld} -64" ;;
7281      esac
7282      ;;
7283    esac
7284  fi
7285  rm -rf conftest*
7286  ;;
7287
7288
7289esac
7290
7291need_locks="$enable_libtool_lock"
7292
7293
7294
7295for ac_header in dlfcn.h
7296do
7297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7298if eval "test \"\${$as_ac_Header+set}\" = set"; then
7299  echo "$as_me:$LINENO: checking for $ac_header" >&5
7300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7301if eval "test \"\${$as_ac_Header+set}\" = set"; then
7302  echo $ECHO_N "(cached) $ECHO_C" >&6
7303fi
7304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7306else
7307  # Is the header compilable?
7308echo "$as_me:$LINENO: checking $ac_header usability" >&5
7309echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7310cat >conftest.$ac_ext <<_ACEOF
7311/* confdefs.h.  */
7312_ACEOF
7313cat confdefs.h >>conftest.$ac_ext
7314cat >>conftest.$ac_ext <<_ACEOF
7315/* end confdefs.h.  */
7316$ac_includes_default
7317#include <$ac_header>
7318_ACEOF
7319rm -f conftest.$ac_objext
7320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321  (eval $ac_compile) 2>conftest.er1
7322  ac_status=$?
7323  grep -v '^ *+' conftest.er1 >conftest.err
7324  rm -f conftest.er1
7325  cat conftest.err >&5
7326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327  (exit $ac_status); } &&
7328         { ac_try='test -z "$ac_c_werror_flag"
7329                         || test ! -s conftest.err'
7330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331  (eval $ac_try) 2>&5
7332  ac_status=$?
7333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334  (exit $ac_status); }; } &&
7335         { ac_try='test -s conftest.$ac_objext'
7336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337  (eval $ac_try) 2>&5
7338  ac_status=$?
7339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340  (exit $ac_status); }; }; then
7341  ac_header_compiler=yes
7342else
7343  echo "$as_me: failed program was:" >&5
7344sed 's/^/| /' conftest.$ac_ext >&5
7345
7346ac_header_compiler=no
7347fi
7348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7350echo "${ECHO_T}$ac_header_compiler" >&6
7351
7352# Is the header present?
7353echo "$as_me:$LINENO: checking $ac_header presence" >&5
7354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7355cat >conftest.$ac_ext <<_ACEOF
7356/* confdefs.h.  */
7357_ACEOF
7358cat confdefs.h >>conftest.$ac_ext
7359cat >>conftest.$ac_ext <<_ACEOF
7360/* end confdefs.h.  */
7361#include <$ac_header>
7362_ACEOF
7363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7364  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7365  ac_status=$?
7366  grep -v '^ *+' conftest.er1 >conftest.err
7367  rm -f conftest.er1
7368  cat conftest.err >&5
7369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370  (exit $ac_status); } >/dev/null; then
7371  if test -s conftest.err; then
7372    ac_cpp_err=$ac_c_preproc_warn_flag
7373    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7374  else
7375    ac_cpp_err=
7376  fi
7377else
7378  ac_cpp_err=yes
7379fi
7380if test -z "$ac_cpp_err"; then
7381  ac_header_preproc=yes
7382else
7383  echo "$as_me: failed program was:" >&5
7384sed 's/^/| /' conftest.$ac_ext >&5
7385
7386  ac_header_preproc=no
7387fi
7388rm -f conftest.err conftest.$ac_ext
7389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7390echo "${ECHO_T}$ac_header_preproc" >&6
7391
7392# So?  What about this header?
7393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7394  yes:no: )
7395    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7397    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7398echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7399    ac_header_preproc=yes
7400    ;;
7401  no:yes:* )
7402    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7404    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7405echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7406    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7407echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7408    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7409echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7410    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7412    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7413echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7414    (
7415      cat <<\_ASBOX
7416## --------------------------------------------------------------- ##
7417## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7418## --------------------------------------------------------------- ##
7419_ASBOX
7420    ) |
7421      sed "s/^/$as_me: WARNING:     /" >&2
7422    ;;
7423esac
7424echo "$as_me:$LINENO: checking for $ac_header" >&5
7425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7426if eval "test \"\${$as_ac_Header+set}\" = set"; then
7427  echo $ECHO_N "(cached) $ECHO_C" >&6
7428else
7429  eval "$as_ac_Header=\$ac_header_preproc"
7430fi
7431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7433
7434fi
7435if test `eval echo '${'$as_ac_Header'}'` = yes; then
7436  cat >>confdefs.h <<_ACEOF
7437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7438_ACEOF
7439
7440fi
7441
7442done
7443
7444ac_ext=cc
7445ac_cpp='$CXXCPP $CPPFLAGS'
7446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7449if test -n "$ac_tool_prefix"; then
7450  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7451  do
7452    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7453set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7454echo "$as_me:$LINENO: checking for $ac_word" >&5
7455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7456if test "${ac_cv_prog_CXX+set}" = set; then
7457  echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459  if test -n "$CXX"; then
7460  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7461else
7462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465  IFS=$as_save_IFS
7466  test -z "$as_dir" && as_dir=.
7467  for ac_exec_ext in '' $ac_executable_extensions; do
7468  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7469    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7470    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471    break 2
7472  fi
7473done
7474done
7475
7476fi
7477fi
7478CXX=$ac_cv_prog_CXX
7479if test -n "$CXX"; then
7480  echo "$as_me:$LINENO: result: $CXX" >&5
7481echo "${ECHO_T}$CXX" >&6
7482else
7483  echo "$as_me:$LINENO: result: no" >&5
7484echo "${ECHO_T}no" >&6
7485fi
7486
7487    test -n "$CXX" && break
7488  done
7489fi
7490if test -z "$CXX"; then
7491  ac_ct_CXX=$CXX
7492  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7493do
7494  # Extract the first word of "$ac_prog", so it can be a program name with args.
7495set dummy $ac_prog; ac_word=$2
7496echo "$as_me:$LINENO: checking for $ac_word" >&5
7497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7498if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7499  echo $ECHO_N "(cached) $ECHO_C" >&6
7500else
7501  if test -n "$ac_ct_CXX"; then
7502  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7503else
7504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507  IFS=$as_save_IFS
7508  test -z "$as_dir" && as_dir=.
7509  for ac_exec_ext in '' $ac_executable_extensions; do
7510  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511    ac_cv_prog_ac_ct_CXX="$ac_prog"
7512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513    break 2
7514  fi
7515done
7516done
7517
7518fi
7519fi
7520ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7521if test -n "$ac_ct_CXX"; then
7522  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7523echo "${ECHO_T}$ac_ct_CXX" >&6
7524else
7525  echo "$as_me:$LINENO: result: no" >&5
7526echo "${ECHO_T}no" >&6
7527fi
7528
7529  test -n "$ac_ct_CXX" && break
7530done
7531test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7532
7533  CXX=$ac_ct_CXX
7534fi
7535
7536
7537# Provide some information about the compiler.
7538echo "$as_me:$LINENO:" \
7539     "checking for C++ compiler version" >&5
7540ac_compiler=`set X $ac_compile; echo $2`
7541{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7542  (eval $ac_compiler --version </dev/null >&5) 2>&5
7543  ac_status=$?
7544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545  (exit $ac_status); }
7546{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7547  (eval $ac_compiler -v </dev/null >&5) 2>&5
7548  ac_status=$?
7549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550  (exit $ac_status); }
7551{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7552  (eval $ac_compiler -V </dev/null >&5) 2>&5
7553  ac_status=$?
7554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555  (exit $ac_status); }
7556
7557echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7558echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7559if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7560  echo $ECHO_N "(cached) $ECHO_C" >&6
7561else
7562  cat >conftest.$ac_ext <<_ACEOF
7563/* confdefs.h.  */
7564_ACEOF
7565cat confdefs.h >>conftest.$ac_ext
7566cat >>conftest.$ac_ext <<_ACEOF
7567/* end confdefs.h.  */
7568
7569#ifdef F77_DUMMY_MAIN
7570
7571#  ifdef __cplusplus
7572     extern "C"
7573#  endif
7574   int F77_DUMMY_MAIN() { return 1; }
7575
7576#endif
7577int
7578main ()
7579{
7580#ifndef __GNUC__
7581       choke me
7582#endif
7583
7584  ;
7585  return 0;
7586}
7587_ACEOF
7588rm -f conftest.$ac_objext
7589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7590  (eval $ac_compile) 2>conftest.er1
7591  ac_status=$?
7592  grep -v '^ *+' conftest.er1 >conftest.err
7593  rm -f conftest.er1
7594  cat conftest.err >&5
7595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596  (exit $ac_status); } &&
7597         { ac_try='test -z "$ac_cxx_werror_flag"
7598                         || test ! -s conftest.err'
7599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600  (eval $ac_try) 2>&5
7601  ac_status=$?
7602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603  (exit $ac_status); }; } &&
7604         { ac_try='test -s conftest.$ac_objext'
7605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606  (eval $ac_try) 2>&5
7607  ac_status=$?
7608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609  (exit $ac_status); }; }; then
7610  ac_compiler_gnu=yes
7611else
7612  echo "$as_me: failed program was:" >&5
7613sed 's/^/| /' conftest.$ac_ext >&5
7614
7615ac_compiler_gnu=no
7616fi
7617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7618ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7619
7620fi
7621echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7622echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7623GXX=`test $ac_compiler_gnu = yes && echo yes`
7624ac_test_CXXFLAGS=${CXXFLAGS+set}
7625ac_save_CXXFLAGS=$CXXFLAGS
7626CXXFLAGS="-g"
7627echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7628echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7629if test "${ac_cv_prog_cxx_g+set}" = set; then
7630  echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632  cat >conftest.$ac_ext <<_ACEOF
7633/* confdefs.h.  */
7634_ACEOF
7635cat confdefs.h >>conftest.$ac_ext
7636cat >>conftest.$ac_ext <<_ACEOF
7637/* end confdefs.h.  */
7638
7639#ifdef F77_DUMMY_MAIN
7640
7641#  ifdef __cplusplus
7642     extern "C"
7643#  endif
7644   int F77_DUMMY_MAIN() { return 1; }
7645
7646#endif
7647int
7648main ()
7649{
7650
7651  ;
7652  return 0;
7653}
7654_ACEOF
7655rm -f conftest.$ac_objext
7656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657  (eval $ac_compile) 2>conftest.er1
7658  ac_status=$?
7659  grep -v '^ *+' conftest.er1 >conftest.err
7660  rm -f conftest.er1
7661  cat conftest.err >&5
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); } &&
7664         { ac_try='test -z "$ac_cxx_werror_flag"
7665                         || test ! -s conftest.err'
7666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667  (eval $ac_try) 2>&5
7668  ac_status=$?
7669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670  (exit $ac_status); }; } &&
7671         { ac_try='test -s conftest.$ac_objext'
7672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673  (eval $ac_try) 2>&5
7674  ac_status=$?
7675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676  (exit $ac_status); }; }; then
7677  ac_cv_prog_cxx_g=yes
7678else
7679  echo "$as_me: failed program was:" >&5
7680sed 's/^/| /' conftest.$ac_ext >&5
7681
7682ac_cv_prog_cxx_g=no
7683fi
7684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7685fi
7686echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7687echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7688if test "$ac_test_CXXFLAGS" = set; then
7689  CXXFLAGS=$ac_save_CXXFLAGS
7690elif test $ac_cv_prog_cxx_g = yes; then
7691  if test "$GXX" = yes; then
7692    CXXFLAGS="-g -O2"
7693  else
7694    CXXFLAGS="-g"
7695  fi
7696else
7697  if test "$GXX" = yes; then
7698    CXXFLAGS="-O2"
7699  else
7700    CXXFLAGS=
7701  fi
7702fi
7703for ac_declaration in \
7704   '' \
7705   'extern "C" void std::exit (int) throw (); using std::exit;' \
7706   'extern "C" void std::exit (int); using std::exit;' \
7707   'extern "C" void exit (int) throw ();' \
7708   'extern "C" void exit (int);' \
7709   'void exit (int);'
7710do
7711  cat >conftest.$ac_ext <<_ACEOF
7712/* confdefs.h.  */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
7716/* end confdefs.h.  */
7717$ac_declaration
7718#include <stdlib.h>
7719#ifdef F77_DUMMY_MAIN
7720
7721#  ifdef __cplusplus
7722     extern "C"
7723#  endif
7724   int F77_DUMMY_MAIN() { return 1; }
7725
7726#endif
7727int
7728main ()
7729{
7730exit (42);
7731  ;
7732  return 0;
7733}
7734_ACEOF
7735rm -f conftest.$ac_objext
7736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737  (eval $ac_compile) 2>conftest.er1
7738  ac_status=$?
7739  grep -v '^ *+' conftest.er1 >conftest.err
7740  rm -f conftest.er1
7741  cat conftest.err >&5
7742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743  (exit $ac_status); } &&
7744         { ac_try='test -z "$ac_cxx_werror_flag"
7745                         || test ! -s conftest.err'
7746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747  (eval $ac_try) 2>&5
7748  ac_status=$?
7749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750  (exit $ac_status); }; } &&
7751         { ac_try='test -s conftest.$ac_objext'
7752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753  (eval $ac_try) 2>&5
7754  ac_status=$?
7755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756  (exit $ac_status); }; }; then
7757  :
7758else
7759  echo "$as_me: failed program was:" >&5
7760sed 's/^/| /' conftest.$ac_ext >&5
7761
7762continue
7763fi
7764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7765  cat >conftest.$ac_ext <<_ACEOF
7766/* confdefs.h.  */
7767_ACEOF
7768cat confdefs.h >>conftest.$ac_ext
7769cat >>conftest.$ac_ext <<_ACEOF
7770/* end confdefs.h.  */
7771$ac_declaration
7772#ifdef F77_DUMMY_MAIN
7773
7774#  ifdef __cplusplus
7775     extern "C"
7776#  endif
7777   int F77_DUMMY_MAIN() { return 1; }
7778
7779#endif
7780int
7781main ()
7782{
7783exit (42);
7784  ;
7785  return 0;
7786}
7787_ACEOF
7788rm -f conftest.$ac_objext
7789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790  (eval $ac_compile) 2>conftest.er1
7791  ac_status=$?
7792  grep -v '^ *+' conftest.er1 >conftest.err
7793  rm -f conftest.er1
7794  cat conftest.err >&5
7795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796  (exit $ac_status); } &&
7797         { ac_try='test -z "$ac_cxx_werror_flag"
7798                         || test ! -s conftest.err'
7799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800  (eval $ac_try) 2>&5
7801  ac_status=$?
7802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803  (exit $ac_status); }; } &&
7804         { ac_try='test -s conftest.$ac_objext'
7805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806  (eval $ac_try) 2>&5
7807  ac_status=$?
7808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809  (exit $ac_status); }; }; then
7810  break
7811else
7812  echo "$as_me: failed program was:" >&5
7813sed 's/^/| /' conftest.$ac_ext >&5
7814
7815fi
7816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7817done
7818rm -f conftest*
7819if test -n "$ac_declaration"; then
7820  echo '#ifdef __cplusplus' >>confdefs.h
7821  echo $ac_declaration      >>confdefs.h
7822  echo '#endif'             >>confdefs.h
7823fi
7824
7825ac_ext=cc
7826ac_cpp='$CXXCPP $CPPFLAGS'
7827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7830
7831depcc="$CXX"  am_compiler_list=
7832
7833echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7834echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7835if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7836  echo $ECHO_N "(cached) $ECHO_C" >&6
7837else
7838  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7839  # We make a subdir and do the tests there.  Otherwise we can end up
7840  # making bogus files that we don't know about and never remove.  For
7841  # instance it was reported that on HP-UX the gcc test will end up
7842  # making a dummy file named `D' -- because `-MD' means `put the output
7843  # in D'.
7844  mkdir conftest.dir
7845  # Copy depcomp to subdir because otherwise we won't find it if we're
7846  # using a relative directory.
7847  cp "$am_depcomp" conftest.dir
7848  cd conftest.dir
7849  # We will build objects and dependencies in a subdirectory because
7850  # it helps to detect inapplicable dependency modes.  For instance
7851  # both Tru64's cc and ICC support -MD to output dependencies as a
7852  # side effect of compilation, but ICC will put the dependencies in
7853  # the current directory while Tru64 will put them in the object
7854  # directory.
7855  mkdir sub
7856
7857  am_cv_CXX_dependencies_compiler_type=none
7858  if test "$am_compiler_list" = ""; then
7859     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7860  fi
7861  for depmode in $am_compiler_list; do
7862    # Setup a source with many dependencies, because some compilers
7863    # like to wrap large dependency lists on column 80 (with \), and
7864    # we should not choose a depcomp mode which is confused by this.
7865    #
7866    # We need to recreate these files for each test, as the compiler may
7867    # overwrite some of them when testing with obscure command lines.
7868    # This happens at least with the AIX C compiler.
7869    : > sub/conftest.c
7870    for i in 1 2 3 4 5 6; do
7871      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7872      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7873      # Solaris 8's {/usr,}/bin/sh.
7874      touch sub/conftst$i.h
7875    done
7876    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7877
7878    case $depmode in
7879    nosideeffect)
7880      # after this tag, mechanisms are not by side-effect, so they'll
7881      # only be used when explicitly requested
7882      if test "x$enable_dependency_tracking" = xyes; then
7883        continue
7884      else
7885        break
7886      fi
7887      ;;
7888    none) break ;;
7889    esac
7890    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7891    # mode.  It turns out that the SunPro C++ compiler does not properly
7892    # handle `-M -o', and we need to detect this.
7893    if depmode=$depmode \
7894       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7895       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7896       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7897         >/dev/null 2>conftest.err &&
7898       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7899       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7900       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7901      # icc doesn't choke on unknown options, it will just issue warnings
7902      # or remarks (even with -Werror).  So we grep stderr for any message
7903      # that says an option was ignored or not supported.
7904      # When given -MP, icc 7.0 and 7.1 complain thusly:
7905      #   icc: Command line warning: ignoring option '-M'; no argument required
7906      # The diagnosis changed in icc 8.0:
7907      #   icc: Command line remark: option '-MP' not supported
7908      if (grep 'ignoring option' conftest.err ||
7909          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7910        am_cv_CXX_dependencies_compiler_type=$depmode
7911        break
7912      fi
7913    fi
7914  done
7915
7916  cd ..
7917  rm -rf conftest.dir
7918else
7919  am_cv_CXX_dependencies_compiler_type=none
7920fi
7921
7922fi
7923echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7924echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7925CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7926
7927
7928
7929if
7930  test "x$enable_dependency_tracking" != xno \
7931  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7932  am__fastdepCXX_TRUE=
7933  am__fastdepCXX_FALSE='#'
7934else
7935  am__fastdepCXX_TRUE='#'
7936  am__fastdepCXX_FALSE=
7937fi
7938
7939
7940
7941
7942if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7943    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7944    (test "X$CXX" != "Xg++"))) ; then
7945  ac_ext=cc
7946ac_cpp='$CXXCPP $CPPFLAGS'
7947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7950echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7951echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7952if test -z "$CXXCPP"; then
7953  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7954  echo $ECHO_N "(cached) $ECHO_C" >&6
7955else
7956      # Double quotes because CXXCPP needs to be expanded
7957    for CXXCPP in "$CXX -E" "/lib/cpp"
7958    do
7959      ac_preproc_ok=false
7960for ac_cxx_preproc_warn_flag in '' yes
7961do
7962  # Use a header file that comes with gcc, so configuring glibc
7963  # with a fresh cross-compiler works.
7964  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7965  # <limits.h> exists even on freestanding compilers.
7966  # On the NeXT, cc -E runs the code through the compiler's parser,
7967  # not just through cpp. "Syntax error" is here to catch this case.
7968  cat >conftest.$ac_ext <<_ACEOF
7969/* confdefs.h.  */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
7973/* end confdefs.h.  */
7974#ifdef __STDC__
7975# include <limits.h>
7976#else
7977# include <assert.h>
7978#endif
7979                     Syntax error
7980_ACEOF
7981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7982  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7983  ac_status=$?
7984  grep -v '^ *+' conftest.er1 >conftest.err
7985  rm -f conftest.er1
7986  cat conftest.err >&5
7987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988  (exit $ac_status); } >/dev/null; then
7989  if test -s conftest.err; then
7990    ac_cpp_err=$ac_cxx_preproc_warn_flag
7991    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7992  else
7993    ac_cpp_err=
7994  fi
7995else
7996  ac_cpp_err=yes
7997fi
7998if test -z "$ac_cpp_err"; then
7999  :
8000else
8001  echo "$as_me: failed program was:" >&5
8002sed 's/^/| /' conftest.$ac_ext >&5
8003
8004  # Broken: fails on valid input.
8005continue
8006fi
8007rm -f conftest.err conftest.$ac_ext
8008
8009  # OK, works on sane cases.  Now check whether non-existent headers
8010  # can be detected and how.
8011  cat >conftest.$ac_ext <<_ACEOF
8012/* confdefs.h.  */
8013_ACEOF
8014cat confdefs.h >>conftest.$ac_ext
8015cat >>conftest.$ac_ext <<_ACEOF
8016/* end confdefs.h.  */
8017#include <ac_nonexistent.h>
8018_ACEOF
8019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8020  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8021  ac_status=$?
8022  grep -v '^ *+' conftest.er1 >conftest.err
8023  rm -f conftest.er1
8024  cat conftest.err >&5
8025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026  (exit $ac_status); } >/dev/null; then
8027  if test -s conftest.err; then
8028    ac_cpp_err=$ac_cxx_preproc_warn_flag
8029    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8030  else
8031    ac_cpp_err=
8032  fi
8033else
8034  ac_cpp_err=yes
8035fi
8036if test -z "$ac_cpp_err"; then
8037  # Broken: success on invalid input.
8038continue
8039else
8040  echo "$as_me: failed program was:" >&5
8041sed 's/^/| /' conftest.$ac_ext >&5
8042
8043  # Passes both tests.
8044ac_preproc_ok=:
8045break
8046fi
8047rm -f conftest.err conftest.$ac_ext
8048
8049done
8050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8051rm -f conftest.err conftest.$ac_ext
8052if $ac_preproc_ok; then
8053  break
8054fi
8055
8056    done
8057    ac_cv_prog_CXXCPP=$CXXCPP
8058
8059fi
8060  CXXCPP=$ac_cv_prog_CXXCPP
8061else
8062  ac_cv_prog_CXXCPP=$CXXCPP
8063fi
8064echo "$as_me:$LINENO: result: $CXXCPP" >&5
8065echo "${ECHO_T}$CXXCPP" >&6
8066ac_preproc_ok=false
8067for ac_cxx_preproc_warn_flag in '' yes
8068do
8069  # Use a header file that comes with gcc, so configuring glibc
8070  # with a fresh cross-compiler works.
8071  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8072  # <limits.h> exists even on freestanding compilers.
8073  # On the NeXT, cc -E runs the code through the compiler's parser,
8074  # not just through cpp. "Syntax error" is here to catch this case.
8075  cat >conftest.$ac_ext <<_ACEOF
8076/* confdefs.h.  */
8077_ACEOF
8078cat confdefs.h >>conftest.$ac_ext
8079cat >>conftest.$ac_ext <<_ACEOF
8080/* end confdefs.h.  */
8081#ifdef __STDC__
8082# include <limits.h>
8083#else
8084# include <assert.h>
8085#endif
8086                     Syntax error
8087_ACEOF
8088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8089  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8090  ac_status=$?
8091  grep -v '^ *+' conftest.er1 >conftest.err
8092  rm -f conftest.er1
8093  cat conftest.err >&5
8094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095  (exit $ac_status); } >/dev/null; then
8096  if test -s conftest.err; then
8097    ac_cpp_err=$ac_cxx_preproc_warn_flag
8098    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8099  else
8100    ac_cpp_err=
8101  fi
8102else
8103  ac_cpp_err=yes
8104fi
8105if test -z "$ac_cpp_err"; then
8106  :
8107else
8108  echo "$as_me: failed program was:" >&5
8109sed 's/^/| /' conftest.$ac_ext >&5
8110
8111  # Broken: fails on valid input.
8112continue
8113fi
8114rm -f conftest.err conftest.$ac_ext
8115
8116  # OK, works on sane cases.  Now check whether non-existent headers
8117  # can be detected and how.
8118  cat >conftest.$ac_ext <<_ACEOF
8119/* confdefs.h.  */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h.  */
8124#include <ac_nonexistent.h>
8125_ACEOF
8126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8127  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8128  ac_status=$?
8129  grep -v '^ *+' conftest.er1 >conftest.err
8130  rm -f conftest.er1
8131  cat conftest.err >&5
8132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133  (exit $ac_status); } >/dev/null; then
8134  if test -s conftest.err; then
8135    ac_cpp_err=$ac_cxx_preproc_warn_flag
8136    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8137  else
8138    ac_cpp_err=
8139  fi
8140else
8141  ac_cpp_err=yes
8142fi
8143if test -z "$ac_cpp_err"; then
8144  # Broken: success on invalid input.
8145continue
8146else
8147  echo "$as_me: failed program was:" >&5
8148sed 's/^/| /' conftest.$ac_ext >&5
8149
8150  # Passes both tests.
8151ac_preproc_ok=:
8152break
8153fi
8154rm -f conftest.err conftest.$ac_ext
8155
8156done
8157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8158rm -f conftest.err conftest.$ac_ext
8159if $ac_preproc_ok; then
8160  :
8161else
8162  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8163See \`config.log' for more details." >&5
8164echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8165See \`config.log' for more details." >&2;}
8166   { (exit 1); exit 1; }; }
8167fi
8168
8169ac_ext=cc
8170ac_cpp='$CXXCPP $CPPFLAGS'
8171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8174
8175fi
8176
8177
8178
8179# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8180
8181# find the maximum length of command line arguments
8182echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8183echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8184if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8185  echo $ECHO_N "(cached) $ECHO_C" >&6
8186else
8187    i=0
8188  teststring="ABCD"
8189
8190  case $build_os in
8191  msdosdjgpp*)
8192    # On DJGPP, this test can blow up pretty badly due to problems in libc
8193    # (any single argument exceeding 2000 bytes causes a buffer overrun
8194    # during glob expansion).  Even if it were fixed, the result of this
8195    # check would be larger than it should be.
8196    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8197    ;;
8198
8199  gnu*)
8200    # Under GNU Hurd, this test is not required because there is
8201    # no limit to the length of command line arguments.
8202    # Libtool will interpret -1 as no limit whatsoever
8203    lt_cv_sys_max_cmd_len=-1;
8204    ;;
8205
8206  cygwin* | mingw*)
8207    # On Win9x/ME, this test blows up -- it succeeds, but takes
8208    # about 5 minutes as the teststring grows exponentially.
8209    # Worse, since 9x/ME are not pre-emptively multitasking,
8210    # you end up with a "frozen" computer, even though with patience
8211    # the test eventually succeeds (with a max line length of 256k).
8212    # Instead, let's just punt: use the minimum linelength reported by
8213    # all of the supported platforms: 8192 (on NT/2K/XP).
8214    lt_cv_sys_max_cmd_len=8192;
8215    ;;
8216
8217  amigaos*)
8218    # On AmigaOS with pdksh, this test takes hours, literally.
8219    # So we just punt and use a minimum line length of 8192.
8220    lt_cv_sys_max_cmd_len=8192;
8221    ;;
8222
8223  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8224    # This has been around since 386BSD, at least.  Likely further.
8225    if test -x /sbin/sysctl; then
8226      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8227    elif test -x /usr/sbin/sysctl; then
8228      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8229    else
8230      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8231    fi
8232    # And add a safety zone
8233    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8234    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8235    ;;
8236
8237  interix*)
8238    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8239    lt_cv_sys_max_cmd_len=196608
8240    ;;
8241
8242  osf*)
8243    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8244    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8245    # nice to cause kernel panics so lets avoid the loop below.
8246    # First set a reasonable default.
8247    lt_cv_sys_max_cmd_len=16384
8248    #
8249    if test -x /sbin/sysconfig; then
8250      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8251        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8252      esac
8253    fi
8254    ;;
8255  sco3.2v5*)
8256    lt_cv_sys_max_cmd_len=102400
8257    ;;
8258  sysv5* | sco5v6* | sysv4.2uw2*)
8259    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8260    if test -n "$kargmax"; then
8261      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8262    else
8263      lt_cv_sys_max_cmd_len=32768
8264    fi
8265    ;;
8266  *)
8267    # If test is not a shell built-in, we'll probably end up computing a
8268    # maximum length that is only half of the actual maximum length, but
8269    # we can't tell.
8270    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8271    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8272               = "XX$teststring") >/dev/null 2>&1 &&
8273            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8274            lt_cv_sys_max_cmd_len=$new_result &&
8275            test $i != 17 # 1/2 MB should be enough
8276    do
8277      i=`expr $i + 1`
8278      teststring=$teststring$teststring
8279    done
8280    teststring=
8281    # Add a significant safety factor because C++ compilers can tack on massive
8282    # amounts of additional arguments before passing them to the linker.
8283    # It appears as though 1/2 is a usable value.
8284    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8285    ;;
8286  esac
8287
8288fi
8289
8290if test -n $lt_cv_sys_max_cmd_len ; then
8291  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8292echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8293else
8294  echo "$as_me:$LINENO: result: none" >&5
8295echo "${ECHO_T}none" >&6
8296fi
8297
8298
8299
8300
8301# Check for command to grab the raw symbol name followed by C symbol from nm.
8302echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8303echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8304if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8305  echo $ECHO_N "(cached) $ECHO_C" >&6
8306else
8307
8308# These are sane defaults that work on at least a few old systems.
8309# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8310
8311# Character class describing NM global symbol codes.
8312symcode='[BCDEGRST]'
8313
8314# Regexp to match symbols that can be accessed directly from C.
8315sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8316
8317# Transform an extracted symbol line into a proper C declaration
8318lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8319
8320# Transform an extracted symbol line into symbol name and symbol address
8321lt_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'"
8322
8323# Define system-specific variables.
8324case $host_os in
8325aix*)
8326  symcode='[BCDT]'
8327  ;;
8328cygwin* | mingw* | pw32*)
8329  symcode='[ABCDGISTW]'
8330  ;;
8331hpux*) # Its linker distinguishes data from code symbols
8332  if test "$host_cpu" = ia64; then
8333    symcode='[ABCDEGRST]'
8334  fi
8335  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8336  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'"
8337  ;;
8338linux*)
8339  if test "$host_cpu" = ia64; then
8340    symcode='[ABCDGIRSTW]'
8341    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8342    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'"
8343  fi
8344  ;;
8345irix* | nonstopux*)
8346  symcode='[BCDEGRST]'
8347  ;;
8348osf*)
8349  symcode='[BCDEGQRST]'
8350  ;;
8351solaris*)
8352  symcode='[BDRT]'
8353  ;;
8354sco3.2v5*)
8355  symcode='[DT]'
8356  ;;
8357sysv4.2uw2*)
8358  symcode='[DT]'
8359  ;;
8360sysv5* | sco5v6* | unixware* | OpenUNIX*)
8361  symcode='[ABDT]'
8362  ;;
8363sysv4)
8364  symcode='[DFNSTU]'
8365  ;;
8366esac
8367
8368# Handle CRLF in mingw tool chain
8369opt_cr=
8370case $build_os in
8371mingw*)
8372  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8373  ;;
8374esac
8375
8376# If we're using GNU nm, then use its standard symbol codes.
8377case `$NM -V 2>&1` in
8378*GNU* | *'with BFD'*)
8379  symcode='[ABCDGIRSTW]' ;;
8380esac
8381
8382# Try without a prefix undercore, then with it.
8383for ac_symprfx in "" "_"; do
8384
8385  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8386  symxfrm="\\1 $ac_symprfx\\2 \\2"
8387
8388  # Write the raw and C identifiers.
8389  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8390
8391  # Check to see that the pipe works correctly.
8392  pipe_works=no
8393
8394  rm -f conftest*
8395  cat > conftest.$ac_ext <<EOF
8396#ifdef __cplusplus
8397extern "C" {
8398#endif
8399char nm_test_var;
8400void nm_test_func(){}
8401#ifdef __cplusplus
8402}
8403#endif
8404int main(){nm_test_var='a';nm_test_func();return(0);}
8405EOF
8406
8407  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8408  (eval $ac_compile) 2>&5
8409  ac_status=$?
8410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411  (exit $ac_status); }; then
8412    # Now try to grab the symbols.
8413    nlist=conftest.nm
8414    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8415  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8416  ac_status=$?
8417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418  (exit $ac_status); } && test -s "$nlist"; then
8419      # Try sorting and uniquifying the output.
8420      if sort "$nlist" | uniq > "$nlist"T; then
8421        mv -f "$nlist"T "$nlist"
8422      else
8423        rm -f "$nlist"T
8424      fi
8425
8426      # Make sure that we snagged all the symbols we need.
8427      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8428        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8429          cat <<EOF > conftest.$ac_ext
8430#ifdef __cplusplus
8431extern "C" {
8432#endif
8433
8434EOF
8435          # Now generate the symbol file.
8436          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8437
8438          cat <<EOF >> conftest.$ac_ext
8439#if defined (__STDC__) && __STDC__
8440# define lt_ptr_t void *
8441#else
8442# define lt_ptr_t char *
8443# define const
8444#endif
8445
8446/* The mapping between symbol names and symbols. */
8447const struct {
8448  const char *name;
8449  lt_ptr_t address;
8450}
8451lt_preloaded_symbols[] =
8452{
8453EOF
8454          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8455          cat <<\EOF >> conftest.$ac_ext
8456  {0, (lt_ptr_t) 0}
8457};
8458
8459#ifdef __cplusplus
8460}
8461#endif
8462EOF
8463          # Now try linking the two files.
8464          mv conftest.$ac_objext conftstm.$ac_objext
8465          lt_save_LIBS="$LIBS"
8466          lt_save_CFLAGS="$CFLAGS"
8467          LIBS="conftstm.$ac_objext"
8468          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8469          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8470  (eval $ac_link) 2>&5
8471  ac_status=$?
8472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8474            pipe_works=yes
8475          fi
8476          LIBS="$lt_save_LIBS"
8477          CFLAGS="$lt_save_CFLAGS"
8478        else
8479          echo "cannot find nm_test_func in $nlist" >&5
8480        fi
8481      else
8482        echo "cannot find nm_test_var in $nlist" >&5
8483      fi
8484    else
8485      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8486    fi
8487  else
8488    echo "$progname: failed program was:" >&5
8489    cat conftest.$ac_ext >&5
8490  fi
8491  rm -f conftest* conftst*
8492
8493  # Do not use the global_symbol_pipe unless it works.
8494  if test "$pipe_works" = yes; then
8495    break
8496  else
8497    lt_cv_sys_global_symbol_pipe=
8498  fi
8499done
8500
8501fi
8502
8503if test -z "$lt_cv_sys_global_symbol_pipe"; then
8504  lt_cv_sys_global_symbol_to_cdecl=
8505fi
8506if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8507  echo "$as_me:$LINENO: result: failed" >&5
8508echo "${ECHO_T}failed" >&6
8509else
8510  echo "$as_me:$LINENO: result: ok" >&5
8511echo "${ECHO_T}ok" >&6
8512fi
8513
8514echo "$as_me:$LINENO: checking for objdir" >&5
8515echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8516if test "${lt_cv_objdir+set}" = set; then
8517  echo $ECHO_N "(cached) $ECHO_C" >&6
8518else
8519  rm -f .libs 2>/dev/null
8520mkdir .libs 2>/dev/null
8521if test -d .libs; then
8522  lt_cv_objdir=.libs
8523else
8524  # MS-DOS does not allow filenames that begin with a dot.
8525  lt_cv_objdir=_libs
8526fi
8527rmdir .libs 2>/dev/null
8528fi
8529echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8530echo "${ECHO_T}$lt_cv_objdir" >&6
8531objdir=$lt_cv_objdir
8532
8533
8534
8535
8536
8537case $host_os in
8538aix3*)
8539  # AIX sometimes has problems with the GCC collect2 program.  For some
8540  # reason, if we set the COLLECT_NAMES environment variable, the problems
8541  # vanish in a puff of smoke.
8542  if test "X${COLLECT_NAMES+set}" != Xset; then
8543    COLLECT_NAMES=
8544    export COLLECT_NAMES
8545  fi
8546  ;;
8547esac
8548
8549# Sed substitution that helps us do robust quoting.  It backslashifies
8550# metacharacters that are still active within double-quoted strings.
8551Xsed='sed -e 1s/^X//'
8552sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8553
8554# Same as above, but do not quote variable references.
8555double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8556
8557# Sed substitution to delay expansion of an escaped shell variable in a
8558# double_quote_subst'ed string.
8559delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8560
8561# Sed substitution to avoid accidental globbing in evaled expressions
8562no_glob_subst='s/\*/\\\*/g'
8563
8564# Constants:
8565rm="rm -f"
8566
8567# Global variables:
8568default_ofile=libtool
8569can_build_shared=yes
8570
8571# All known linkers require a `.a' archive for static linking (except MSVC,
8572# which needs '.lib').
8573libext=a
8574ltmain="$ac_aux_dir/ltmain.sh"
8575ofile="$default_ofile"
8576with_gnu_ld="$lt_cv_prog_gnu_ld"
8577
8578if test -n "$ac_tool_prefix"; then
8579  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8580set dummy ${ac_tool_prefix}ar; ac_word=$2
8581echo "$as_me:$LINENO: checking for $ac_word" >&5
8582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8583if test "${ac_cv_prog_AR+set}" = set; then
8584  echo $ECHO_N "(cached) $ECHO_C" >&6
8585else
8586  if test -n "$AR"; then
8587  ac_cv_prog_AR="$AR" # Let the user override the test.
8588else
8589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590for as_dir in $PATH
8591do
8592  IFS=$as_save_IFS
8593  test -z "$as_dir" && as_dir=.
8594  for ac_exec_ext in '' $ac_executable_extensions; do
8595  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8596    ac_cv_prog_AR="${ac_tool_prefix}ar"
8597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8598    break 2
8599  fi
8600done
8601done
8602
8603fi
8604fi
8605AR=$ac_cv_prog_AR
8606if test -n "$AR"; then
8607  echo "$as_me:$LINENO: result: $AR" >&5
8608echo "${ECHO_T}$AR" >&6
8609else
8610  echo "$as_me:$LINENO: result: no" >&5
8611echo "${ECHO_T}no" >&6
8612fi
8613
8614fi
8615if test -z "$ac_cv_prog_AR"; then
8616  ac_ct_AR=$AR
8617  # Extract the first word of "ar", so it can be a program name with args.
8618set dummy ar; ac_word=$2
8619echo "$as_me:$LINENO: checking for $ac_word" >&5
8620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8621if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8622  echo $ECHO_N "(cached) $ECHO_C" >&6
8623else
8624  if test -n "$ac_ct_AR"; then
8625  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8626else
8627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628for as_dir in $PATH
8629do
8630  IFS=$as_save_IFS
8631  test -z "$as_dir" && as_dir=.
8632  for ac_exec_ext in '' $ac_executable_extensions; do
8633  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634    ac_cv_prog_ac_ct_AR="ar"
8635    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8636    break 2
8637  fi
8638done
8639done
8640
8641  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8642fi
8643fi
8644ac_ct_AR=$ac_cv_prog_ac_ct_AR
8645if test -n "$ac_ct_AR"; then
8646  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8647echo "${ECHO_T}$ac_ct_AR" >&6
8648else
8649  echo "$as_me:$LINENO: result: no" >&5
8650echo "${ECHO_T}no" >&6
8651fi
8652
8653  AR=$ac_ct_AR
8654else
8655  AR="$ac_cv_prog_AR"
8656fi
8657
8658if test -n "$ac_tool_prefix"; then
8659  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8660set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8661echo "$as_me:$LINENO: checking for $ac_word" >&5
8662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8663if test "${ac_cv_prog_RANLIB+set}" = set; then
8664  echo $ECHO_N "(cached) $ECHO_C" >&6
8665else
8666  if test -n "$RANLIB"; then
8667  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8668else
8669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670for as_dir in $PATH
8671do
8672  IFS=$as_save_IFS
8673  test -z "$as_dir" && as_dir=.
8674  for ac_exec_ext in '' $ac_executable_extensions; do
8675  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8676    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8677    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8678    break 2
8679  fi
8680done
8681done
8682
8683fi
8684fi
8685RANLIB=$ac_cv_prog_RANLIB
8686if test -n "$RANLIB"; then
8687  echo "$as_me:$LINENO: result: $RANLIB" >&5
8688echo "${ECHO_T}$RANLIB" >&6
8689else
8690  echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
8692fi
8693
8694fi
8695if test -z "$ac_cv_prog_RANLIB"; then
8696  ac_ct_RANLIB=$RANLIB
8697  # Extract the first word of "ranlib", so it can be a program name with args.
8698set dummy ranlib; ac_word=$2
8699echo "$as_me:$LINENO: checking for $ac_word" >&5
8700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8701if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8702  echo $ECHO_N "(cached) $ECHO_C" >&6
8703else
8704  if test -n "$ac_ct_RANLIB"; then
8705  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8706else
8707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708for as_dir in $PATH
8709do
8710  IFS=$as_save_IFS
8711  test -z "$as_dir" && as_dir=.
8712  for ac_exec_ext in '' $ac_executable_extensions; do
8713  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8714    ac_cv_prog_ac_ct_RANLIB="ranlib"
8715    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8716    break 2
8717  fi
8718done
8719done
8720
8721  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8722fi
8723fi
8724ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8725if test -n "$ac_ct_RANLIB"; then
8726  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8727echo "${ECHO_T}$ac_ct_RANLIB" >&6
8728else
8729  echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6
8731fi
8732
8733  RANLIB=$ac_ct_RANLIB
8734else
8735  RANLIB="$ac_cv_prog_RANLIB"
8736fi
8737
8738if test -n "$ac_tool_prefix"; then
8739  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8740set dummy ${ac_tool_prefix}strip; ac_word=$2
8741echo "$as_me:$LINENO: checking for $ac_word" >&5
8742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8743if test "${ac_cv_prog_STRIP+set}" = set; then
8744  echo $ECHO_N "(cached) $ECHO_C" >&6
8745else
8746  if test -n "$STRIP"; then
8747  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8748else
8749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750for as_dir in $PATH
8751do
8752  IFS=$as_save_IFS
8753  test -z "$as_dir" && as_dir=.
8754  for ac_exec_ext in '' $ac_executable_extensions; do
8755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8756    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8758    break 2
8759  fi
8760done
8761done
8762
8763fi
8764fi
8765STRIP=$ac_cv_prog_STRIP
8766if test -n "$STRIP"; then
8767  echo "$as_me:$LINENO: result: $STRIP" >&5
8768echo "${ECHO_T}$STRIP" >&6
8769else
8770  echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
8772fi
8773
8774fi
8775if test -z "$ac_cv_prog_STRIP"; then
8776  ac_ct_STRIP=$STRIP
8777  # Extract the first word of "strip", so it can be a program name with args.
8778set dummy strip; ac_word=$2
8779echo "$as_me:$LINENO: checking for $ac_word" >&5
8780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8781if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8782  echo $ECHO_N "(cached) $ECHO_C" >&6
8783else
8784  if test -n "$ac_ct_STRIP"; then
8785  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8786else
8787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788for as_dir in $PATH
8789do
8790  IFS=$as_save_IFS
8791  test -z "$as_dir" && as_dir=.
8792  for ac_exec_ext in '' $ac_executable_extensions; do
8793  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8794    ac_cv_prog_ac_ct_STRIP="strip"
8795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8796    break 2
8797  fi
8798done
8799done
8800
8801  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8802fi
8803fi
8804ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8805if test -n "$ac_ct_STRIP"; then
8806  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8807echo "${ECHO_T}$ac_ct_STRIP" >&6
8808else
8809  echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
8811fi
8812
8813  STRIP=$ac_ct_STRIP
8814else
8815  STRIP="$ac_cv_prog_STRIP"
8816fi
8817
8818
8819old_CC="$CC"
8820old_CFLAGS="$CFLAGS"
8821
8822# Set sane defaults for various variables
8823test -z "$AR" && AR=ar
8824test -z "$AR_FLAGS" && AR_FLAGS=cru
8825test -z "$AS" && AS=as
8826test -z "$CC" && CC=cc
8827test -z "$LTCC" && LTCC=$CC
8828test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8829test -z "$DLLTOOL" && DLLTOOL=dlltool
8830test -z "$LD" && LD=ld
8831test -z "$LN_S" && LN_S="ln -s"
8832test -z "$MAGIC_CMD" && MAGIC_CMD=file
8833test -z "$NM" && NM=nm
8834test -z "$SED" && SED=sed
8835test -z "$OBJDUMP" && OBJDUMP=objdump
8836test -z "$RANLIB" && RANLIB=:
8837test -z "$STRIP" && STRIP=:
8838test -z "$ac_objext" && ac_objext=o
8839
8840# Determine commands to create old-style static archives.
8841old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8842old_postinstall_cmds='chmod 644 $oldlib'
8843old_postuninstall_cmds=
8844
8845if test -n "$RANLIB"; then
8846  case $host_os in
8847  openbsd*)
8848    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8849    ;;
8850  *)
8851    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8852    ;;
8853  esac
8854  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8855fi
8856
8857for cc_temp in $compiler""; do
8858  case $cc_temp in
8859    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8860    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8861    \-*) ;;
8862    *) break;;
8863  esac
8864done
8865cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8866
8867
8868# Only perform the check for file, if the check method requires it
8869case $deplibs_check_method in
8870file_magic*)
8871  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8872    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8873echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8874if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8875  echo $ECHO_N "(cached) $ECHO_C" >&6
8876else
8877  case $MAGIC_CMD in
8878[\\/*] |  ?:[\\/]*)
8879  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8880  ;;
8881*)
8882  lt_save_MAGIC_CMD="$MAGIC_CMD"
8883  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8884  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8885  for ac_dir in $ac_dummy; do
8886    IFS="$lt_save_ifs"
8887    test -z "$ac_dir" && ac_dir=.
8888    if test -f $ac_dir/${ac_tool_prefix}file; then
8889      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8890      if test -n "$file_magic_test_file"; then
8891        case $deplibs_check_method in
8892        "file_magic "*)
8893          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8894          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8895          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8896            $EGREP "$file_magic_regex" > /dev/null; then
8897            :
8898          else
8899            cat <<EOF 1>&2
8900
8901*** Warning: the command libtool uses to detect shared libraries,
8902*** $file_magic_cmd, produces output that libtool cannot recognize.
8903*** The result is that libtool may fail to recognize shared libraries
8904*** as such.  This will affect the creation of libtool libraries that
8905*** depend on shared libraries, but programs linked with such libtool
8906*** libraries will work regardless of this problem.  Nevertheless, you
8907*** may want to report the problem to your system manager and/or to
8908*** bug-libtool@gnu.org
8909
8910EOF
8911          fi ;;
8912        esac
8913      fi
8914      break
8915    fi
8916  done
8917  IFS="$lt_save_ifs"
8918  MAGIC_CMD="$lt_save_MAGIC_CMD"
8919  ;;
8920esac
8921fi
8922
8923MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8924if test -n "$MAGIC_CMD"; then
8925  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8926echo "${ECHO_T}$MAGIC_CMD" >&6
8927else
8928  echo "$as_me:$LINENO: result: no" >&5
8929echo "${ECHO_T}no" >&6
8930fi
8931
8932if test -z "$lt_cv_path_MAGIC_CMD"; then
8933  if test -n "$ac_tool_prefix"; then
8934    echo "$as_me:$LINENO: checking for file" >&5
8935echo $ECHO_N "checking for file... $ECHO_C" >&6
8936if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8937  echo $ECHO_N "(cached) $ECHO_C" >&6
8938else
8939  case $MAGIC_CMD in
8940[\\/*] |  ?:[\\/]*)
8941  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8942  ;;
8943*)
8944  lt_save_MAGIC_CMD="$MAGIC_CMD"
8945  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8946  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8947  for ac_dir in $ac_dummy; do
8948    IFS="$lt_save_ifs"
8949    test -z "$ac_dir" && ac_dir=.
8950    if test -f $ac_dir/file; then
8951      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8952      if test -n "$file_magic_test_file"; then
8953        case $deplibs_check_method in
8954        "file_magic "*)
8955          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8956          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8957          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8958            $EGREP "$file_magic_regex" > /dev/null; then
8959            :
8960          else
8961            cat <<EOF 1>&2
8962
8963*** Warning: the command libtool uses to detect shared libraries,
8964*** $file_magic_cmd, produces output that libtool cannot recognize.
8965*** The result is that libtool may fail to recognize shared libraries
8966*** as such.  This will affect the creation of libtool libraries that
8967*** depend on shared libraries, but programs linked with such libtool
8968*** libraries will work regardless of this problem.  Nevertheless, you
8969*** may want to report the problem to your system manager and/or to
8970*** bug-libtool@gnu.org
8971
8972EOF
8973          fi ;;
8974        esac
8975      fi
8976      break
8977    fi
8978  done
8979  IFS="$lt_save_ifs"
8980  MAGIC_CMD="$lt_save_MAGIC_CMD"
8981  ;;
8982esac
8983fi
8984
8985MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8986if test -n "$MAGIC_CMD"; then
8987  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8988echo "${ECHO_T}$MAGIC_CMD" >&6
8989else
8990  echo "$as_me:$LINENO: result: no" >&5
8991echo "${ECHO_T}no" >&6
8992fi
8993
8994  else
8995    MAGIC_CMD=:
8996  fi
8997fi
8998
8999  fi
9000  ;;
9001esac
9002
9003enable_dlopen=no
9004enable_win32_dll=no
9005
9006# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9007if test "${enable_libtool_lock+set}" = set; then
9008  enableval="$enable_libtool_lock"
9009
9010fi;
9011test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9012
9013
9014# Check whether --with-pic or --without-pic was given.
9015if test "${with_pic+set}" = set; then
9016  withval="$with_pic"
9017  pic_mode="$withval"
9018else
9019  pic_mode=default
9020fi;
9021test -z "$pic_mode" && pic_mode=default
9022
9023# Use C for the default configuration in the libtool script
9024tagname=
9025lt_save_CC="$CC"
9026ac_ext=c
9027ac_cpp='$CPP $CPPFLAGS'
9028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9030ac_compiler_gnu=$ac_cv_c_compiler_gnu
9031
9032
9033# Source file extension for C test sources.
9034ac_ext=c
9035
9036# Object file extension for compiled C test sources.
9037objext=o
9038objext=$objext
9039
9040# Code to be used in simple compile tests
9041lt_simple_compile_test_code="int some_variable = 0;\n"
9042
9043# Code to be used in simple link tests
9044lt_simple_link_test_code='int main(){return(0);}\n'
9045
9046
9047# If no C compiler was specified, use CC.
9048LTCC=${LTCC-"$CC"}
9049
9050# If no C compiler flags were specified, use CFLAGS.
9051LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9052
9053# Allow CC to be a program name with arguments.
9054compiler=$CC
9055
9056
9057# save warnings/boilerplate of simple test code
9058ac_outfile=conftest.$ac_objext
9059printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9060eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9061_lt_compiler_boilerplate=`cat conftest.err`
9062$rm conftest*
9063
9064ac_outfile=conftest.$ac_objext
9065printf "$lt_simple_link_test_code" >conftest.$ac_ext
9066eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9067_lt_linker_boilerplate=`cat conftest.err`
9068$rm conftest*
9069
9070
9071## CAVEAT EMPTOR:
9072## There is no encapsulation within the following macros, do not change
9073## the running order or otherwise move them around unless you know exactly
9074## what you are doing...
9075
9076lt_prog_compiler_no_builtin_flag=
9077
9078if test "$GCC" = yes; then
9079  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9080
9081
9082echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9083echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9084if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9085  echo $ECHO_N "(cached) $ECHO_C" >&6
9086else
9087  lt_cv_prog_compiler_rtti_exceptions=no
9088  ac_outfile=conftest.$ac_objext
9089   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9090   lt_compiler_flag="-fno-rtti -fno-exceptions"
9091   # Insert the option either (1) after the last *FLAGS variable, or
9092   # (2) before a word containing "conftest.", or (3) at the end.
9093   # Note that $ac_compile itself does not contain backslashes and begins
9094   # with a dollar sign (not a hyphen), so the echo should work correctly.
9095   # The option is referenced via a variable to avoid confusing sed.
9096   lt_compile=`echo "$ac_compile" | $SED \
9097   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9098   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9099   -e 's:$: $lt_compiler_flag:'`
9100   (eval echo "\"\$as_me:9100: $lt_compile\"" >&5)
9101   (eval "$lt_compile" 2>conftest.err)
9102   ac_status=$?
9103   cat conftest.err >&5
9104   echo "$as_me:9104: \$? = $ac_status" >&5
9105   if (exit $ac_status) && test -s "$ac_outfile"; then
9106     # The compiler can only warn and ignore the option if not recognized
9107     # So say no if there are warnings other than the usual output.
9108     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9109     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9110     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9111       lt_cv_prog_compiler_rtti_exceptions=yes
9112     fi
9113   fi
9114   $rm conftest*
9115
9116fi
9117echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9118echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9119
9120if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9121    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9122else
9123    :
9124fi
9125
9126fi
9127
9128lt_prog_compiler_wl=
9129lt_prog_compiler_pic=
9130lt_prog_compiler_static=
9131
9132echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9133echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9134
9135  if test "$GCC" = yes; then
9136    lt_prog_compiler_wl='-Wl,'
9137    lt_prog_compiler_static='-static'
9138
9139    case $host_os in
9140      aix*)
9141      # All AIX code is PIC.
9142      if test "$host_cpu" = ia64; then
9143        # AIX 5 now supports IA64 processor
9144        lt_prog_compiler_static='-Bstatic'
9145      fi
9146      ;;
9147
9148    amigaos*)
9149      # FIXME: we need at least 68020 code to build shared libraries, but
9150      # adding the `-m68020' flag to GCC prevents building anything better,
9151      # like `-m68040'.
9152      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9153      ;;
9154
9155    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9156      # PIC is the default for these OSes.
9157      ;;
9158
9159    mingw* | pw32* | os2*)
9160      # This hack is so that the source file can tell whether it is being
9161      # built for inclusion in a dll (and should export symbols for example).
9162      lt_prog_compiler_pic='-DDLL_EXPORT'
9163      ;;
9164
9165    darwin* | rhapsody*)
9166      # PIC is the default on this platform
9167      # Common symbols not allowed in MH_DYLIB files
9168      lt_prog_compiler_pic='-fno-common'
9169      ;;
9170
9171    interix3*)
9172      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9173      # Instead, we relocate shared libraries at runtime.
9174      ;;
9175
9176    msdosdjgpp*)
9177      # Just because we use GCC doesn't mean we suddenly get shared libraries
9178      # on systems that don't support them.
9179      lt_prog_compiler_can_build_shared=no
9180      enable_shared=no
9181      ;;
9182
9183    sysv4*MP*)
9184      if test -d /usr/nec; then
9185        lt_prog_compiler_pic=-Kconform_pic
9186      fi
9187      ;;
9188
9189    hpux*)
9190      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9191      # not for PA HP-UX.
9192      case $host_cpu in
9193      hppa*64*|ia64*)
9194        # +Z the default
9195        ;;
9196      *)
9197        lt_prog_compiler_pic='-fPIC'
9198        ;;
9199      esac
9200      ;;
9201
9202    *)
9203      lt_prog_compiler_pic='-fPIC'
9204      ;;
9205    esac
9206  else
9207    # PORTME Check for flag to pass linker flags through the system compiler.
9208    case $host_os in
9209    aix*)
9210      lt_prog_compiler_wl='-Wl,'
9211      if test "$host_cpu" = ia64; then
9212        # AIX 5 now supports IA64 processor
9213        lt_prog_compiler_static='-Bstatic'
9214      else
9215        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9216      fi
9217      ;;
9218      darwin*)
9219        # PIC is the default on this platform
9220        # Common symbols not allowed in MH_DYLIB files
9221       case $cc_basename in
9222         xlc*)
9223         lt_prog_compiler_pic='-qnocommon'
9224         lt_prog_compiler_wl='-Wl,'
9225         ;;
9226       esac
9227       ;;
9228
9229    mingw* | pw32* | os2*)
9230      # This hack is so that the source file can tell whether it is being
9231      # built for inclusion in a dll (and should export symbols for example).
9232      lt_prog_compiler_pic='-DDLL_EXPORT'
9233      ;;
9234
9235    hpux9* | hpux10* | hpux11*)
9236      lt_prog_compiler_wl='-Wl,'
9237      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9238      # not for PA HP-UX.
9239      case $host_cpu in
9240      hppa*64*|ia64*)
9241        # +Z the default
9242        ;;
9243      *)
9244        lt_prog_compiler_pic='+Z'
9245        ;;
9246      esac
9247      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9248      lt_prog_compiler_static='${wl}-a ${wl}archive'
9249      ;;
9250
9251    irix5* | irix6* | nonstopux*)
9252      lt_prog_compiler_wl='-Wl,'
9253      # PIC (with -KPIC) is the default.
9254      lt_prog_compiler_static='-non_shared'
9255      ;;
9256
9257    newsos6)
9258      lt_prog_compiler_pic='-KPIC'
9259      lt_prog_compiler_static='-Bstatic'
9260      ;;
9261
9262    linux*)
9263      case $cc_basename in
9264      icc* | ecc*)
9265        lt_prog_compiler_wl='-Wl,'
9266        lt_prog_compiler_pic='-KPIC'
9267        lt_prog_compiler_static='-static'
9268        ;;
9269      pgcc* | pgf77* | pgf90* | pgf95*)
9270        # Portland Group compilers (*not* the Pentium gcc compiler,
9271        # which looks to be a dead project)
9272        lt_prog_compiler_wl='-Wl,'
9273        lt_prog_compiler_pic='-fpic'
9274        lt_prog_compiler_static='-Bstatic'
9275        ;;
9276      ccc*)
9277        lt_prog_compiler_wl='-Wl,'
9278        # All Alpha code is PIC.
9279        lt_prog_compiler_static='-non_shared'
9280        ;;
9281      esac
9282      ;;
9283
9284    osf3* | osf4* | osf5*)
9285      lt_prog_compiler_wl='-Wl,'
9286      # All OSF/1 code is PIC.
9287      lt_prog_compiler_static='-non_shared'
9288      ;;
9289
9290    solaris*)
9291      lt_prog_compiler_pic='-KPIC'
9292      lt_prog_compiler_static='-Bstatic'
9293      case $cc_basename in
9294      f77* | f90* | f95*)
9295        lt_prog_compiler_wl='-Qoption ld ';;
9296      *)
9297        lt_prog_compiler_wl='-Wl,';;
9298      esac
9299      ;;
9300
9301    sunos4*)
9302      lt_prog_compiler_wl='-Qoption ld '
9303      lt_prog_compiler_pic='-PIC'
9304      lt_prog_compiler_static='-Bstatic'
9305      ;;
9306
9307    sysv4 | sysv4.2uw2* | sysv4.3*)
9308      lt_prog_compiler_wl='-Wl,'
9309      lt_prog_compiler_pic='-KPIC'
9310      lt_prog_compiler_static='-Bstatic'
9311      ;;
9312
9313    sysv4*MP*)
9314      if test -d /usr/nec ;then
9315        lt_prog_compiler_pic='-Kconform_pic'
9316        lt_prog_compiler_static='-Bstatic'
9317      fi
9318      ;;
9319
9320    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9321      lt_prog_compiler_wl='-Wl,'
9322      lt_prog_compiler_pic='-KPIC'
9323      lt_prog_compiler_static='-Bstatic'
9324      ;;
9325
9326    unicos*)
9327      lt_prog_compiler_wl='-Wl,'
9328      lt_prog_compiler_can_build_shared=no
9329      ;;
9330
9331    uts4*)
9332      lt_prog_compiler_pic='-pic'
9333      lt_prog_compiler_static='-Bstatic'
9334      ;;
9335
9336    *)
9337      lt_prog_compiler_can_build_shared=no
9338      ;;
9339    esac
9340  fi
9341
9342echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9343echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9344
9345#
9346# Check to make sure the PIC flag actually works.
9347#
9348if test -n "$lt_prog_compiler_pic"; then
9349
9350echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9351echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9352if test "${lt_prog_compiler_pic_works+set}" = set; then
9353  echo $ECHO_N "(cached) $ECHO_C" >&6
9354else
9355  lt_prog_compiler_pic_works=no
9356  ac_outfile=conftest.$ac_objext
9357   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9358   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9359   # Insert the option either (1) after the last *FLAGS variable, or
9360   # (2) before a word containing "conftest.", or (3) at the end.
9361   # Note that $ac_compile itself does not contain backslashes and begins
9362   # with a dollar sign (not a hyphen), so the echo should work correctly.
9363   # The option is referenced via a variable to avoid confusing sed.
9364   lt_compile=`echo "$ac_compile" | $SED \
9365   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9366   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9367   -e 's:$: $lt_compiler_flag:'`
9368   (eval echo "\"\$as_me:9368: $lt_compile\"" >&5)
9369   (eval "$lt_compile" 2>conftest.err)
9370   ac_status=$?
9371   cat conftest.err >&5
9372   echo "$as_me:9372: \$? = $ac_status" >&5
9373   if (exit $ac_status) && test -s "$ac_outfile"; then
9374     # The compiler can only warn and ignore the option if not recognized
9375     # So say no if there are warnings other than the usual output.
9376     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9377     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9378     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9379       lt_prog_compiler_pic_works=yes
9380     fi
9381   fi
9382   $rm conftest*
9383
9384fi
9385echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9386echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9387
9388if test x"$lt_prog_compiler_pic_works" = xyes; then
9389    case $lt_prog_compiler_pic in
9390     "" | " "*) ;;
9391     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9392     esac
9393else
9394    lt_prog_compiler_pic=
9395     lt_prog_compiler_can_build_shared=no
9396fi
9397
9398fi
9399case $host_os in
9400  # For platforms which do not support PIC, -DPIC is meaningless:
9401  *djgpp*)
9402    lt_prog_compiler_pic=
9403    ;;
9404  *)
9405    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9406    ;;
9407esac
9408
9409#
9410# Check to make sure the static flag actually works.
9411#
9412wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9413echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9414echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9415if test "${lt_prog_compiler_static_works+set}" = set; then
9416  echo $ECHO_N "(cached) $ECHO_C" >&6
9417else
9418  lt_prog_compiler_static_works=no
9419   save_LDFLAGS="$LDFLAGS"
9420   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9421   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9422   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9423     # The linker can only warn and ignore the option if not recognized
9424     # So say no if there are warnings
9425     if test -s conftest.err; then
9426       # Append any errors to the config.log.
9427       cat conftest.err 1>&5
9428       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9429       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9430       if diff conftest.exp conftest.er2 >/dev/null; then
9431         lt_prog_compiler_static_works=yes
9432       fi
9433     else
9434       lt_prog_compiler_static_works=yes
9435     fi
9436   fi
9437   $rm conftest*
9438   LDFLAGS="$save_LDFLAGS"
9439
9440fi
9441echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9442echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9443
9444if test x"$lt_prog_compiler_static_works" = xyes; then
9445    :
9446else
9447    lt_prog_compiler_static=
9448fi
9449
9450
9451echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9452echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9453if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9454  echo $ECHO_N "(cached) $ECHO_C" >&6
9455else
9456  lt_cv_prog_compiler_c_o=no
9457   $rm -r conftest 2>/dev/null
9458   mkdir conftest
9459   cd conftest
9460   mkdir out
9461   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9462
9463   lt_compiler_flag="-o out/conftest2.$ac_objext"
9464   # Insert the option either (1) after the last *FLAGS variable, or
9465   # (2) before a word containing "conftest.", or (3) at the end.
9466   # Note that $ac_compile itself does not contain backslashes and begins
9467   # with a dollar sign (not a hyphen), so the echo should work correctly.
9468   lt_compile=`echo "$ac_compile" | $SED \
9469   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9470   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9471   -e 's:$: $lt_compiler_flag:'`
9472   (eval echo "\"\$as_me:9472: $lt_compile\"" >&5)
9473   (eval "$lt_compile" 2>out/conftest.err)
9474   ac_status=$?
9475   cat out/conftest.err >&5
9476   echo "$as_me:9476: \$? = $ac_status" >&5
9477   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9478   then
9479     # The compiler can only warn and ignore the option if not recognized
9480     # So say no if there are warnings
9481     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9482     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9483     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9484       lt_cv_prog_compiler_c_o=yes
9485     fi
9486   fi
9487   chmod u+w . 2>&5
9488   $rm conftest*
9489   # SGI C++ compiler will create directory out/ii_files/ for
9490   # template instantiation
9491   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9492   $rm out/* && rmdir out
9493   cd ..
9494   rmdir conftest
9495   $rm conftest*
9496
9497fi
9498echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9499echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9500
9501
9502hard_links="nottested"
9503if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9504  # do not overwrite the value of need_locks provided by the user
9505  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9506echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9507  hard_links=yes
9508  $rm conftest*
9509  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9510  touch conftest.a
9511  ln conftest.a conftest.b 2>&5 || hard_links=no
9512  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9513  echo "$as_me:$LINENO: result: $hard_links" >&5
9514echo "${ECHO_T}$hard_links" >&6
9515  if test "$hard_links" = no; then
9516    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9517echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9518    need_locks=warn
9519  fi
9520else
9521  need_locks=no
9522fi
9523
9524echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9525echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9526
9527  runpath_var=
9528  allow_undefined_flag=
9529  enable_shared_with_static_runtimes=no
9530  archive_cmds=
9531  archive_expsym_cmds=
9532  old_archive_From_new_cmds=
9533  old_archive_from_expsyms_cmds=
9534  export_dynamic_flag_spec=
9535  whole_archive_flag_spec=
9536  thread_safe_flag_spec=
9537  hardcode_libdir_flag_spec=
9538  hardcode_libdir_flag_spec_ld=
9539  hardcode_libdir_separator=
9540  hardcode_direct=no
9541  hardcode_minus_L=no
9542  hardcode_shlibpath_var=unsupported
9543  link_all_deplibs=unknown
9544  hardcode_automatic=no
9545  module_cmds=
9546  module_expsym_cmds=
9547  always_export_symbols=no
9548  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9549  # include_expsyms should be a list of space-separated symbols to be *always*
9550  # included in the symbol list
9551  include_expsyms=
9552  # exclude_expsyms can be an extended regexp of symbols to exclude
9553  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9554  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9555  # as well as any symbol that contains `d'.
9556  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9557  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9558  # platforms (ab)use it in PIC code, but their linkers get confused if
9559  # the symbol is explicitly referenced.  Since portable code cannot
9560  # rely on this symbol name, it's probably fine to never include it in
9561  # preloaded symbol tables.
9562  extract_expsyms_cmds=
9563  # Just being paranoid about ensuring that cc_basename is set.
9564  for cc_temp in $compiler""; do
9565  case $cc_temp in
9566    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9567    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9568    \-*) ;;
9569    *) break;;
9570  esac
9571done
9572cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9573
9574  case $host_os in
9575  cygwin* | mingw* | pw32*)
9576    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9577    # When not using gcc, we currently assume that we are using
9578    # Microsoft Visual C++.
9579    if test "$GCC" != yes; then
9580      with_gnu_ld=no
9581    fi
9582    ;;
9583  interix*)
9584    # we just hope/assume this is gcc and not c89 (= MSVC++)
9585    with_gnu_ld=yes
9586    ;;
9587  openbsd*)
9588    with_gnu_ld=no
9589    ;;
9590  esac
9591
9592  ld_shlibs=yes
9593  if test "$with_gnu_ld" = yes; then
9594    # If archive_cmds runs LD, not CC, wlarc should be empty
9595    wlarc='${wl}'
9596
9597    # Set some defaults for GNU ld with shared library support. These
9598    # are reset later if shared libraries are not supported. Putting them
9599    # here allows them to be overridden if necessary.
9600    runpath_var=LD_RUN_PATH
9601    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9602    export_dynamic_flag_spec='${wl}--export-dynamic'
9603    # ancient GNU ld didn't support --whole-archive et. al.
9604    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9605        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9606      else
9607        whole_archive_flag_spec=
9608    fi
9609    supports_anon_versioning=no
9610    case `$LD -v 2>/dev/null` in
9611      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9612      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9613      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9614      *\ 2.11.*) ;; # other 2.11 versions
9615      *) supports_anon_versioning=yes ;;
9616    esac
9617
9618    # See if GNU ld supports shared libraries.
9619    case $host_os in
9620    aix3* | aix4* | aix5*)
9621      # On AIX/PPC, the GNU linker is very broken
9622      if test "$host_cpu" != ia64; then
9623        ld_shlibs=no
9624        cat <<EOF 1>&2
9625
9626*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9627*** to be unable to reliably create shared libraries on AIX.
9628*** Therefore, libtool is disabling shared libraries support.  If you
9629*** really care for shared libraries, you may want to modify your PATH
9630*** so that a non-GNU linker is found, and then restart.
9631
9632EOF
9633      fi
9634      ;;
9635
9636    amigaos*)
9637      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)'
9638      hardcode_libdir_flag_spec='-L$libdir'
9639      hardcode_minus_L=yes
9640
9641      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9642      # that the semantics of dynamic libraries on AmigaOS, at least up
9643      # to version 4, is to share data among multiple programs linked
9644      # with the same dynamic library.  Since this doesn't match the
9645      # behavior of shared libraries on other platforms, we can't use
9646      # them.
9647      ld_shlibs=no
9648      ;;
9649
9650    beos*)
9651      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9652        allow_undefined_flag=unsupported
9653        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9654        # support --undefined.  This deserves some investigation.  FIXME
9655        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9656      else
9657        ld_shlibs=no
9658      fi
9659      ;;
9660
9661    cygwin* | mingw* | pw32*)
9662      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9663      # as there is no search path for DLLs.
9664      hardcode_libdir_flag_spec='-L$libdir'
9665      allow_undefined_flag=unsupported
9666      always_export_symbols=no
9667      enable_shared_with_static_runtimes=yes
9668      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9669
9670      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9671        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9672        # If the export-symbols file already is a .def file (1st line
9673        # is EXPORTS), use it as is; otherwise, prepend...
9674        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9675          cp $export_symbols $output_objdir/$soname.def;
9676        else
9677          echo EXPORTS > $output_objdir/$soname.def;
9678          cat $export_symbols >> $output_objdir/$soname.def;
9679        fi~
9680        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9681      else
9682        ld_shlibs=no
9683      fi
9684      ;;
9685
9686    interix3*)
9687      hardcode_direct=no
9688      hardcode_shlibpath_var=no
9689      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9690      export_dynamic_flag_spec='${wl}-E'
9691      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9692      # Instead, shared libraries are loaded at an image base (0x10000000 by
9693      # default) and relocated if they conflict, which is a slow very memory
9694      # consuming and fragmenting process.  To avoid this, we pick a random,
9695      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9696      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9697      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9698      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'
9699      ;;
9700
9701    linux*)
9702      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9703        tmp_addflag=
9704        case $cc_basename,$host_cpu in
9705        pgcc*)                          # Portland Group C compiler
9706          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'
9707          tmp_addflag=' $pic_flag'
9708          ;;
9709        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9710          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'
9711          tmp_addflag=' $pic_flag -Mnomain' ;;
9712        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9713          tmp_addflag=' -i_dynamic' ;;
9714        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9715          tmp_addflag=' -i_dynamic -nofor_main' ;;
9716        ifc* | ifort*)                  # Intel Fortran compiler
9717          tmp_addflag=' -nofor_main' ;;
9718        esac
9719        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720
9721        if test $supports_anon_versioning = yes; then
9722          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9723  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9724  $echo "local: *; };" >> $output_objdir/$libname.ver~
9725          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9726        fi
9727      else
9728        ld_shlibs=no
9729      fi
9730      ;;
9731
9732    netbsd*)
9733      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9734        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9735        wlarc=
9736      else
9737        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9738        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9739      fi
9740      ;;
9741
9742    solaris*)
9743      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9744        ld_shlibs=no
9745        cat <<EOF 1>&2
9746
9747*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9748*** create shared libraries on Solaris systems.  Therefore, libtool
9749*** is disabling shared libraries support.  We urge you to upgrade GNU
9750*** binutils to release 2.9.1 or newer.  Another option is to modify
9751*** your PATH or compiler configuration so that the native linker is
9752*** used, and then restart.
9753
9754EOF
9755      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9756        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9758      else
9759        ld_shlibs=no
9760      fi
9761      ;;
9762
9763    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9764      case `$LD -v 2>&1` in
9765        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9766        ld_shlibs=no
9767        cat <<_LT_EOF 1>&2
9768
9769*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9770*** reliably create shared libraries on SCO systems.  Therefore, libtool
9771*** is disabling shared libraries support.  We urge you to upgrade GNU
9772*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9773*** your PATH or compiler configuration so that the native linker is
9774*** used, and then restart.
9775
9776_LT_EOF
9777        ;;
9778        *)
9779          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9780            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9781            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9782            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9783          else
9784            ld_shlibs=no
9785          fi
9786        ;;
9787      esac
9788      ;;
9789
9790    sunos4*)
9791      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9792      wlarc=
9793      hardcode_direct=yes
9794      hardcode_shlibpath_var=no
9795      ;;
9796
9797    *)
9798      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9799        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9800        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9801      else
9802        ld_shlibs=no
9803      fi
9804      ;;
9805    esac
9806
9807    if test "$ld_shlibs" = no; then
9808      runpath_var=
9809      hardcode_libdir_flag_spec=
9810      export_dynamic_flag_spec=
9811      whole_archive_flag_spec=
9812    fi
9813  else
9814    # PORTME fill in a description of your system's linker (not GNU ld)
9815    case $host_os in
9816    aix3*)
9817      allow_undefined_flag=unsupported
9818      always_export_symbols=yes
9819      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'
9820      # Note: this linker hardcodes the directories in LIBPATH if there
9821      # are no directories specified by -L.
9822      hardcode_minus_L=yes
9823      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9824        # Neither direct hardcoding nor static linking is supported with a
9825        # broken collect2.
9826        hardcode_direct=unsupported
9827      fi
9828      ;;
9829
9830    aix4* | aix5*)
9831      if test "$host_cpu" = ia64; then
9832        # On IA64, the linker does run time linking by default, so we don't
9833        # have to do anything special.
9834        aix_use_runtimelinking=no
9835        exp_sym_flag='-Bexport'
9836        no_entry_flag=""
9837      else
9838        # If we're using GNU nm, then we don't want the "-C" option.
9839        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9840        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9841          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'
9842        else
9843          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'
9844        fi
9845        aix_use_runtimelinking=no
9846
9847        # Test if we are trying to use run time linking or normal
9848        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9849        # need to do runtime linking.
9850        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9851          for ld_flag in $LDFLAGS; do
9852          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9853            aix_use_runtimelinking=yes
9854            break
9855          fi
9856          done
9857          ;;
9858        esac
9859
9860        exp_sym_flag='-bexport'
9861        no_entry_flag='-bnoentry'
9862      fi
9863
9864      # When large executables or shared objects are built, AIX ld can
9865      # have problems creating the table of contents.  If linking a library
9866      # or program results in "error TOC overflow" add -mminimal-toc to
9867      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9868      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9869
9870      archive_cmds=''
9871      hardcode_direct=yes
9872      hardcode_libdir_separator=':'
9873      link_all_deplibs=yes
9874
9875      if test "$GCC" = yes; then
9876        case $host_os in aix4.[012]|aix4.[012].*)
9877        # We only want to do this on AIX 4.2 and lower, the check
9878        # below for broken collect2 doesn't work under 4.3+
9879          collect2name=`${CC} -print-prog-name=collect2`
9880          if test -f "$collect2name" && \
9881           strings "$collect2name" | grep resolve_lib_name >/dev/null
9882          then
9883          # We have reworked collect2
9884          hardcode_direct=yes
9885          else
9886          # We have old collect2
9887          hardcode_direct=unsupported
9888          # It fails to find uninstalled libraries when the uninstalled
9889          # path is not listed in the libpath.  Setting hardcode_minus_L
9890          # to unsupported forces relinking
9891          hardcode_minus_L=yes
9892          hardcode_libdir_flag_spec='-L$libdir'
9893          hardcode_libdir_separator=
9894          fi
9895          ;;
9896        esac
9897        shared_flag='-shared'
9898        if test "$aix_use_runtimelinking" = yes; then
9899          shared_flag="$shared_flag "'${wl}-G'
9900        fi
9901      else
9902        # not using gcc
9903        if test "$host_cpu" = ia64; then
9904        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9905        # chokes on -Wl,-G. The following line is correct:
9906          shared_flag='-G'
9907        else
9908          if test "$aix_use_runtimelinking" = yes; then
9909            shared_flag='${wl}-G'
9910          else
9911            shared_flag='${wl}-bM:SRE'
9912          fi
9913        fi
9914      fi
9915
9916      # It seems that -bexpall does not export symbols beginning with
9917      # underscore (_), so it is better to generate a list of symbols to export.
9918      always_export_symbols=yes
9919      if test "$aix_use_runtimelinking" = yes; then
9920        # Warning - without using the other runtime loading flags (-brtl),
9921        # -berok will link without error, but may produce a broken library.
9922        allow_undefined_flag='-berok'
9923       # Determine the default libpath from the value encoded in an empty executable.
9924       cat >conftest.$ac_ext <<_ACEOF
9925/* confdefs.h.  */
9926_ACEOF
9927cat confdefs.h >>conftest.$ac_ext
9928cat >>conftest.$ac_ext <<_ACEOF
9929/* end confdefs.h.  */
9930
9931#ifdef F77_DUMMY_MAIN
9932
9933#  ifdef __cplusplus
9934     extern "C"
9935#  endif
9936   int F77_DUMMY_MAIN() { return 1; }
9937
9938#endif
9939int
9940main ()
9941{
9942
9943  ;
9944  return 0;
9945}
9946_ACEOF
9947rm -f conftest.$ac_objext conftest$ac_exeext
9948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949  (eval $ac_link) 2>conftest.er1
9950  ac_status=$?
9951  grep -v '^ *+' conftest.er1 >conftest.err
9952  rm -f conftest.er1
9953  cat conftest.err >&5
9954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955  (exit $ac_status); } &&
9956         { ac_try='test -z "$ac_c_werror_flag"
9957                         || test ! -s conftest.err'
9958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959  (eval $ac_try) 2>&5
9960  ac_status=$?
9961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962  (exit $ac_status); }; } &&
9963         { ac_try='test -s conftest$ac_exeext'
9964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965  (eval $ac_try) 2>&5
9966  ac_status=$?
9967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968  (exit $ac_status); }; }; then
9969
9970aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9971}'`
9972# Check for a 64-bit object if we didn't find anything.
9973if 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; }
9974}'`; fi
9975else
9976  echo "$as_me: failed program was:" >&5
9977sed 's/^/| /' conftest.$ac_ext >&5
9978
9979fi
9980rm -f conftest.err conftest.$ac_objext \
9981      conftest$ac_exeext conftest.$ac_ext
9982if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9983
9984       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9985        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"
9986       else
9987        if test "$host_cpu" = ia64; then
9988          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9989          allow_undefined_flag="-z nodefs"
9990          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"
9991        else
9992         # Determine the default libpath from the value encoded in an empty executable.
9993         cat >conftest.$ac_ext <<_ACEOF
9994/* confdefs.h.  */
9995_ACEOF
9996cat confdefs.h >>conftest.$ac_ext
9997cat >>conftest.$ac_ext <<_ACEOF
9998/* end confdefs.h.  */
9999
10000#ifdef F77_DUMMY_MAIN
10001
10002#  ifdef __cplusplus
10003     extern "C"
10004#  endif
10005   int F77_DUMMY_MAIN() { return 1; }
10006
10007#endif
10008int
10009main ()
10010{
10011
10012  ;
10013  return 0;
10014}
10015_ACEOF
10016rm -f conftest.$ac_objext conftest$ac_exeext
10017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018  (eval $ac_link) 2>conftest.er1
10019  ac_status=$?
10020  grep -v '^ *+' conftest.er1 >conftest.err
10021  rm -f conftest.er1
10022  cat conftest.err >&5
10023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024  (exit $ac_status); } &&
10025         { ac_try='test -z "$ac_c_werror_flag"
10026                         || test ! -s conftest.err'
10027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028  (eval $ac_try) 2>&5
10029  ac_status=$?
10030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031  (exit $ac_status); }; } &&
10032         { ac_try='test -s conftest$ac_exeext'
10033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034  (eval $ac_try) 2>&5
10035  ac_status=$?
10036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037  (exit $ac_status); }; }; then
10038
10039aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10040}'`
10041# Check for a 64-bit object if we didn't find anything.
10042if 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; }
10043}'`; fi
10044else
10045  echo "$as_me: failed program was:" >&5
10046sed 's/^/| /' conftest.$ac_ext >&5
10047
10048fi
10049rm -f conftest.err conftest.$ac_objext \
10050      conftest$ac_exeext conftest.$ac_ext
10051if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10052
10053         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10054          # Warning - without using the other run time loading flags,
10055          # -berok will link without error, but may produce a broken library.
10056          no_undefined_flag=' ${wl}-bernotok'
10057          allow_undefined_flag=' ${wl}-berok'
10058          # Exported symbols can be pulled into shared objects from archives
10059          whole_archive_flag_spec='$convenience'
10060          archive_cmds_need_lc=yes
10061          # This is similar to how AIX traditionally builds its shared libraries.
10062          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'
10063        fi
10064      fi
10065      ;;
10066
10067    amigaos*)
10068      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)'
10069      hardcode_libdir_flag_spec='-L$libdir'
10070      hardcode_minus_L=yes
10071      # see comment about different semantics on the GNU ld section
10072      ld_shlibs=no
10073      ;;
10074
10075    bsdi[45]*)
10076      export_dynamic_flag_spec=-rdynamic
10077      ;;
10078
10079    cygwin* | mingw* | pw32*)
10080      # When not using gcc, we currently assume that we are using
10081      # Microsoft Visual C++.
10082      # hardcode_libdir_flag_spec is actually meaningless, as there is
10083      # no search path for DLLs.
10084      hardcode_libdir_flag_spec=' '
10085      allow_undefined_flag=unsupported
10086      # Tell ltmain to make .lib files, not .a files.
10087      libext=lib
10088      # Tell ltmain to make .dll files, not .so files.
10089      shrext_cmds=".dll"
10090      # FIXME: Setting linknames here is a bad hack.
10091      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10092      # The linker will automatically build a .lib file if we build a DLL.
10093      old_archive_From_new_cmds='true'
10094      # FIXME: Should let the user specify the lib program.
10095      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10096      fix_srcfile_path='`cygpath -w "$srcfile"`'
10097      enable_shared_with_static_runtimes=yes
10098      ;;
10099
10100    darwin* | rhapsody*)
10101      case $host_os in
10102        rhapsody* | darwin1.[012])
10103         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10104         ;;
10105       *) # Darwin 1.3 on
10106         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10107           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10108         else
10109           case ${MACOSX_DEPLOYMENT_TARGET} in
10110             10.[012])
10111               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10112               ;;
10113             10.*)
10114               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10115               ;;
10116           esac
10117         fi
10118         ;;
10119      esac
10120      archive_cmds_need_lc=no
10121      hardcode_direct=no
10122      hardcode_automatic=yes
10123      hardcode_shlibpath_var=unsupported
10124      whole_archive_flag_spec=''
10125      link_all_deplibs=yes
10126    if test "$GCC" = yes ; then
10127        output_verbose_link_cmd='echo'
10128        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10129      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10130      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10131      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}'
10132      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}'
10133    else
10134      case $cc_basename in
10135        xlc*)
10136         output_verbose_link_cmd='echo'
10137         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10138         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10139          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10140         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}'
10141          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}'
10142          ;;
10143       *)
10144         ld_shlibs=no
10145          ;;
10146      esac
10147    fi
10148      ;;
10149
10150    dgux*)
10151      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10152      hardcode_libdir_flag_spec='-L$libdir'
10153      hardcode_shlibpath_var=no
10154      ;;
10155
10156    freebsd1*)
10157      ld_shlibs=no
10158      ;;
10159
10160    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10161    # support.  Future versions do this automatically, but an explicit c++rt0.o
10162    # does not break anything, and helps significantly (at the cost of a little
10163    # extra space).
10164    freebsd2.2*)
10165      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10166      hardcode_libdir_flag_spec='-R$libdir'
10167      hardcode_direct=yes
10168      hardcode_shlibpath_var=no
10169      ;;
10170
10171    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10172    freebsd2*)
10173      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10174      hardcode_direct=yes
10175      hardcode_minus_L=yes
10176      hardcode_shlibpath_var=no
10177      ;;
10178
10179    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10180    freebsd* | kfreebsd*-gnu | dragonfly*)
10181      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10182      hardcode_libdir_flag_spec='-R$libdir'
10183      hardcode_direct=yes
10184      hardcode_shlibpath_var=no
10185      ;;
10186
10187    hpux9*)
10188      if test "$GCC" = yes; then
10189        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'
10190      else
10191        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'
10192      fi
10193      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10194      hardcode_libdir_separator=:
10195      hardcode_direct=yes
10196
10197      # hardcode_minus_L: Not really in the search PATH,
10198      # but as the default location of the library.
10199      hardcode_minus_L=yes
10200      export_dynamic_flag_spec='${wl}-E'
10201      ;;
10202
10203    hpux10*)
10204      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10205        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10206      else
10207        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10208      fi
10209      if test "$with_gnu_ld" = no; then
10210        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10211        hardcode_libdir_separator=:
10212
10213        hardcode_direct=yes
10214        export_dynamic_flag_spec='${wl}-E'
10215
10216        # hardcode_minus_L: Not really in the search PATH,
10217        # but as the default location of the library.
10218        hardcode_minus_L=yes
10219      fi
10220      ;;
10221
10222    hpux11*)
10223      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10224        case $host_cpu in
10225        hppa*64*)
10226          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10227          ;;
10228        ia64*)
10229          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10230          ;;
10231        *)
10232          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10233          ;;
10234        esac
10235      else
10236        case $host_cpu in
10237        hppa*64*)
10238          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10239          ;;
10240        ia64*)
10241          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10242          ;;
10243        *)
10244          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10245          ;;
10246        esac
10247      fi
10248      if test "$with_gnu_ld" = no; then
10249        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10250        hardcode_libdir_separator=:
10251
10252        case $host_cpu in
10253        hppa*64*|ia64*)
10254          hardcode_libdir_flag_spec_ld='+b $libdir'
10255          hardcode_direct=no
10256          hardcode_shlibpath_var=no
10257          ;;
10258        *)
10259          hardcode_direct=yes
10260          export_dynamic_flag_spec='${wl}-E'
10261
10262          # hardcode_minus_L: Not really in the search PATH,
10263          # but as the default location of the library.
10264          hardcode_minus_L=yes
10265          ;;
10266        esac
10267      fi
10268      ;;
10269
10270    irix5* | irix6* | nonstopux*)
10271      if test "$GCC" = yes; then
10272        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'
10273      else
10274        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'
10275        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10276      fi
10277      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10278      hardcode_libdir_separator=:
10279      link_all_deplibs=yes
10280      ;;
10281
10282    netbsd*)
10283      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10284        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10285      else
10286        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10287      fi
10288      hardcode_libdir_flag_spec='-R$libdir'
10289      hardcode_direct=yes
10290      hardcode_shlibpath_var=no
10291      ;;
10292
10293    newsos6)
10294      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295      hardcode_direct=yes
10296      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10297      hardcode_libdir_separator=:
10298      hardcode_shlibpath_var=no
10299      ;;
10300
10301    openbsd*)
10302      hardcode_direct=yes
10303      hardcode_shlibpath_var=no
10304      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10305        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10306        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10307        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10308        export_dynamic_flag_spec='${wl}-E'
10309      else
10310       case $host_os in
10311         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10312           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10313           hardcode_libdir_flag_spec='-R$libdir'
10314           ;;
10315         *)
10316           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10317           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10318           ;;
10319       esac
10320      fi
10321      ;;
10322
10323    os2*)
10324      hardcode_libdir_flag_spec='-L$libdir'
10325      hardcode_minus_L=yes
10326      allow_undefined_flag=unsupported
10327      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'
10328      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10329      ;;
10330
10331    osf3*)
10332      if test "$GCC" = yes; then
10333        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10334        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'
10335      else
10336        allow_undefined_flag=' -expect_unresolved \*'
10337        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'
10338      fi
10339      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10340      hardcode_libdir_separator=:
10341      ;;
10342
10343    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10344      if test "$GCC" = yes; then
10345        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10346        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'
10347        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10348      else
10349        allow_undefined_flag=' -expect_unresolved \*'
10350        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'
10351        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10352        $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'
10353
10354        # Both c and cxx compiler support -rpath directly
10355        hardcode_libdir_flag_spec='-rpath $libdir'
10356      fi
10357      hardcode_libdir_separator=:
10358      ;;
10359
10360    solaris*)
10361      no_undefined_flag=' -z text'
10362      if test "$GCC" = yes; then
10363        wlarc='${wl}'
10364        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10365        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10366          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10367      else
10368        wlarc=''
10369        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10371        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10372      fi
10373      hardcode_libdir_flag_spec='-R$libdir'
10374      hardcode_shlibpath_var=no
10375      case $host_os in
10376      solaris2.[0-5] | solaris2.[0-5].*) ;;
10377      *)
10378        # The compiler driver will combine linker options so we
10379        # cannot just pass the convience library names through
10380        # without $wl, iff we do not link with $LD.
10381        # Luckily, gcc supports the same syntax we need for Sun Studio.
10382        # Supported since Solaris 2.6 (maybe 2.5.1?)
10383        case $wlarc in
10384        '')
10385          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10386        *)
10387          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' ;;
10388        esac ;;
10389      esac
10390      link_all_deplibs=yes
10391      ;;
10392
10393    sunos4*)
10394      if test "x$host_vendor" = xsequent; then
10395        # Use $CC to link under sequent, because it throws in some extra .o
10396        # files that make .init and .fini sections work.
10397        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10398      else
10399        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10400      fi
10401      hardcode_libdir_flag_spec='-L$libdir'
10402      hardcode_direct=yes
10403      hardcode_minus_L=yes
10404      hardcode_shlibpath_var=no
10405      ;;
10406
10407    sysv4)
10408      case $host_vendor in
10409        sni)
10410          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10411          hardcode_direct=yes # is this really true???
10412        ;;
10413        siemens)
10414          ## LD is ld it makes a PLAMLIB
10415          ## CC just makes a GrossModule.
10416          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10417          reload_cmds='$CC -r -o $output$reload_objs'
10418          hardcode_direct=no
10419        ;;
10420        motorola)
10421          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10422          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10423        ;;
10424      esac
10425      runpath_var='LD_RUN_PATH'
10426      hardcode_shlibpath_var=no
10427      ;;
10428
10429    sysv4.3*)
10430      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10431      hardcode_shlibpath_var=no
10432      export_dynamic_flag_spec='-Bexport'
10433      ;;
10434
10435    sysv4*MP*)
10436      if test -d /usr/nec; then
10437        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10438        hardcode_shlibpath_var=no
10439        runpath_var=LD_RUN_PATH
10440        hardcode_runpath_var=yes
10441        ld_shlibs=yes
10442      fi
10443      ;;
10444
10445    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10446      no_undefined_flag='${wl}-z,text'
10447      archive_cmds_need_lc=no
10448      hardcode_shlibpath_var=no
10449      runpath_var='LD_RUN_PATH'
10450
10451      if test "$GCC" = yes; then
10452        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10453        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10454      else
10455        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457      fi
10458      ;;
10459
10460    sysv5* | sco3.2v5* | sco5v6*)
10461      # Note: We can NOT use -z defs as we might desire, because we do not
10462      # link with -lc, and that would cause any symbols used from libc to
10463      # always be unresolved, which means just about no library would
10464      # ever link correctly.  If we're not using GNU ld we use -z text
10465      # though, which does catch some bad symbols but isn't as heavy-handed
10466      # as -z defs.
10467      no_undefined_flag='${wl}-z,text'
10468      allow_undefined_flag='${wl}-z,nodefs'
10469      archive_cmds_need_lc=no
10470      hardcode_shlibpath_var=no
10471      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10472      hardcode_libdir_separator=':'
10473      link_all_deplibs=yes
10474      export_dynamic_flag_spec='${wl}-Bexport'
10475      runpath_var='LD_RUN_PATH'
10476
10477      if test "$GCC" = yes; then
10478        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10479        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10480      else
10481        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10482        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10483      fi
10484      ;;
10485
10486    uts4*)
10487      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10488      hardcode_libdir_flag_spec='-L$libdir'
10489      hardcode_shlibpath_var=no
10490      ;;
10491
10492    *)
10493      ld_shlibs=no
10494      ;;
10495    esac
10496  fi
10497
10498echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10499echo "${ECHO_T}$ld_shlibs" >&6
10500test "$ld_shlibs" = no && can_build_shared=no
10501
10502#
10503# Do we need to explicitly link libc?
10504#
10505case "x$archive_cmds_need_lc" in
10506x|xyes)
10507  # Assume -lc should be added
10508  archive_cmds_need_lc=yes
10509
10510  if test "$enable_shared" = yes && test "$GCC" = yes; then
10511    case $archive_cmds in
10512    *'~'*)
10513      # FIXME: we may have to deal with multi-command sequences.
10514      ;;
10515    '$CC '*)
10516      # Test whether the compiler implicitly links with -lc since on some
10517      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10518      # to ld, don't add -lc before -lgcc.
10519      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10520echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10521      $rm conftest*
10522      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10523
10524      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525  (eval $ac_compile) 2>&5
10526  ac_status=$?
10527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528  (exit $ac_status); } 2>conftest.err; then
10529        soname=conftest
10530        lib=conftest
10531        libobjs=conftest.$ac_objext
10532        deplibs=
10533        wl=$lt_prog_compiler_wl
10534        pic_flag=$lt_prog_compiler_pic
10535        compiler_flags=-v
10536        linker_flags=-v
10537        verstring=
10538        output_objdir=.
10539        libname=conftest
10540        lt_save_allow_undefined_flag=$allow_undefined_flag
10541        allow_undefined_flag=
10542        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10543  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10544  ac_status=$?
10545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546  (exit $ac_status); }
10547        then
10548          archive_cmds_need_lc=no
10549        else
10550          archive_cmds_need_lc=yes
10551        fi
10552        allow_undefined_flag=$lt_save_allow_undefined_flag
10553      else
10554        cat conftest.err 1>&5
10555      fi
10556      $rm conftest*
10557      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10558echo "${ECHO_T}$archive_cmds_need_lc" >&6
10559      ;;
10560    esac
10561  fi
10562  ;;
10563esac
10564
10565echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10566echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10567library_names_spec=
10568libname_spec='lib$name'
10569soname_spec=
10570shrext_cmds=".so"
10571postinstall_cmds=
10572postuninstall_cmds=
10573finish_cmds=
10574finish_eval=
10575shlibpath_var=
10576shlibpath_overrides_runpath=unknown
10577version_type=none
10578dynamic_linker="$host_os ld.so"
10579sys_lib_dlsearch_path_spec="/lib /usr/lib"
10580if test "$GCC" = yes; then
10581  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10582  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10583    # if the path contains ";" then we assume it to be the separator
10584    # otherwise default to the standard path separator (i.e. ":") - it is
10585    # assumed that no part of a normal pathname contains ";" but that should
10586    # okay in the real world where ";" in dirpaths is itself problematic.
10587    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10588  else
10589    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10590  fi
10591else
10592  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10593fi
10594need_lib_prefix=unknown
10595hardcode_into_libs=no
10596
10597# when you set need_version to no, make sure it does not cause -set_version
10598# flags to be left without arguments
10599need_version=unknown
10600
10601case $host_os in
10602aix3*)
10603  version_type=linux
10604  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10605  shlibpath_var=LIBPATH
10606
10607  # AIX 3 has no versioning support, so we append a major version to the name.
10608  soname_spec='${libname}${release}${shared_ext}$major'
10609  ;;
10610
10611aix4* | aix5*)
10612  version_type=linux
10613  need_lib_prefix=no
10614  need_version=no
10615  hardcode_into_libs=yes
10616  if test "$host_cpu" = ia64; then
10617    # AIX 5 supports IA64
10618    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10619    shlibpath_var=LD_LIBRARY_PATH
10620  else
10621    # With GCC up to 2.95.x, collect2 would create an import file
10622    # for dependence libraries.  The import file would start with
10623    # the line `#! .'.  This would cause the generated library to
10624    # depend on `.', always an invalid library.  This was fixed in
10625    # development snapshots of GCC prior to 3.0.
10626    case $host_os in
10627      aix4 | aix4.[01] | aix4.[01].*)
10628      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10629           echo ' yes '
10630           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10631        :
10632      else
10633        can_build_shared=no
10634      fi
10635      ;;
10636    esac
10637    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10638    # soname into executable. Probably we can add versioning support to
10639    # collect2, so additional links can be useful in future.
10640    if test "$aix_use_runtimelinking" = yes; then
10641      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10642      # instead of lib<name>.a to let people know that these are not
10643      # typical AIX shared libraries.
10644      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645    else
10646      # We preserve .a as extension for shared libraries through AIX4.2
10647      # and later when we are not doing run time linking.
10648      library_names_spec='${libname}${release}.a $libname.a'
10649      soname_spec='${libname}${release}${shared_ext}$major'
10650    fi
10651    shlibpath_var=LIBPATH
10652  fi
10653  ;;
10654
10655amigaos*)
10656  library_names_spec='$libname.ixlibrary $libname.a'
10657  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10658  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'
10659  ;;
10660
10661beos*)
10662  library_names_spec='${libname}${shared_ext}'
10663  dynamic_linker="$host_os ld.so"
10664  shlibpath_var=LIBRARY_PATH
10665  ;;
10666
10667bsdi[45]*)
10668  version_type=linux
10669  need_version=no
10670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671  soname_spec='${libname}${release}${shared_ext}$major'
10672  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10673  shlibpath_var=LD_LIBRARY_PATH
10674  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10675  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10676  # the default ld.so.conf also contains /usr/contrib/lib and
10677  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10678  # libtool to hard-code these into programs
10679  ;;
10680
10681cygwin* | mingw* | pw32*)
10682  version_type=windows
10683  shrext_cmds=".dll"
10684  need_version=no
10685  need_lib_prefix=no
10686
10687  case $GCC,$host_os in
10688  yes,cygwin* | yes,mingw* | yes,pw32*)
10689    library_names_spec='$libname.dll.a'
10690    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10691    postinstall_cmds='base_file=`basename \${file}`~
10692      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10693      dldir=$destdir/`dirname \$dlpath`~
10694      test -d \$dldir || mkdir -p \$dldir~
10695      $install_prog $dir/$dlname \$dldir/$dlname~
10696      chmod a+x \$dldir/$dlname'
10697    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10698      dlpath=$dir/\$dldll~
10699       $rm \$dlpath'
10700    shlibpath_overrides_runpath=yes
10701
10702    case $host_os in
10703    cygwin*)
10704      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10705      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10706      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10707      ;;
10708    mingw*)
10709      # MinGW DLLs use traditional 'lib' prefix
10710      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10711      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10712      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10713        # It is most probably a Windows format PATH printed by
10714        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10715        # path with ; separators, and with drive letters. We can handle the
10716        # drive letters (cygwin fileutils understands them), so leave them,
10717        # especially as we might pass files found there to a mingw objdump,
10718        # which wouldn't understand a cygwinified path. Ahh.
10719        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10720      else
10721        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10722      fi
10723      ;;
10724    pw32*)
10725      # pw32 DLLs use 'pw' prefix rather than 'lib'
10726      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10727      ;;
10728    esac
10729    ;;
10730
10731  *)
10732    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10733    ;;
10734  esac
10735  dynamic_linker='Win32 ld.exe'
10736  # FIXME: first we should search . and the directory the executable is in
10737  shlibpath_var=PATH
10738  ;;
10739
10740darwin* | rhapsody*)
10741  dynamic_linker="$host_os dyld"
10742  version_type=darwin
10743  need_lib_prefix=no
10744  need_version=no
10745  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10746  soname_spec='${libname}${release}${major}$shared_ext'
10747  shlibpath_overrides_runpath=yes
10748  shlibpath_var=DYLD_LIBRARY_PATH
10749  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10750  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10751  if test "$GCC" = yes; then
10752    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"`
10753  else
10754    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10755  fi
10756  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10757  ;;
10758
10759dgux*)
10760  version_type=linux
10761  need_lib_prefix=no
10762  need_version=no
10763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10764  soname_spec='${libname}${release}${shared_ext}$major'
10765  shlibpath_var=LD_LIBRARY_PATH
10766  ;;
10767
10768freebsd1*)
10769  dynamic_linker=no
10770  ;;
10771
10772kfreebsd*-gnu)
10773  version_type=linux
10774  need_lib_prefix=no
10775  need_version=no
10776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10777  soname_spec='${libname}${release}${shared_ext}$major'
10778  shlibpath_var=LD_LIBRARY_PATH
10779  shlibpath_overrides_runpath=no
10780  hardcode_into_libs=yes
10781  dynamic_linker='GNU ld.so'
10782  ;;
10783
10784freebsd* | dragonfly*)
10785  # DragonFly does not have aout.  When/if they implement a new
10786  # versioning mechanism, adjust this.
10787  if test -x /usr/bin/objformat; then
10788    objformat=`/usr/bin/objformat`
10789