source: ThirdParty/Mumps/stable/1.4/configure @ 2635

Last change on this file since 2635 was 2635, checked in by stefan, 7 years ago

restoring BuildTools/ThirdParty/Mumps?/stable/1.4

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