source: ThirdParty/Mumps/trunk/configure @ 1637

Last change on this file since 1637 was 1637, checked in by stefan, 11 years ago

create xxx_addlibs.txt after installation by using only .pc files of installed projects; rerun autotools

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