source: ThirdParty/Mumps/trunk/configure @ 3307

Last change on this file since 3307 was 3307, checked in by tkr, 7 years ago

restoring BuildTools/ThirdParty/Mumps?/trunk

File size: 866.6 KB
<
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMumps trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMumps'
431PACKAGE_TARNAME='thirdpartymumps'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyMumps trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="MUMPS/src/dmumps_part1.F"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED MUMPS_CFLAGS MUMPS_LIBS MUMPS_PCLIBS MUMPS_PCREQUIRES MUMPS_DEPENDENCIES MUMPS_CFLAGS_INSTALLED MUMPS_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MUMPSDIR MUMPSOBJDIR MUMPSSRCDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
993ac_env_PKG_CONFIG_value=$PKG_CONFIG
994ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
995ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyMumps trunk to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyMumps trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-mumps compile project Mumps with debug compiler flags
1080
1081  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1082  --disable-pthread-mumps disable use of pthread library
1083  --enable-static[=PKGS]
1084                          build static libraries [default=no]
1085  --disable-dependency-tracking  speeds up one-time build
1086  --enable-dependency-tracking   do not reject slow dependency extractors
1087  --enable-maintainer-mode  enable make rules and dependencies not useful
1088                          (and sometimes confusing) to the casual installer
1089  --enable-shared[=PKGS]
1090                          build shared libraries [default=yes]
1091  --enable-fast-install[=PKGS]
1092                          optimize for fast installation [default=yes]
1093  --disable-libtool-lock  avoid locking (might break parallel builds)
1094  --disable-pkg-config    disable use of pkg-config (if available)
1095  --disable-interpackage-dependencies
1096                          disables deduction of Makefile dependencies from
1097                          package linker flags
1098
1099Optional Packages:
1100  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1101  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1102  --with-mumps-verbosity specify the debug verbosity level for project Mumps
1103  --with-mumps-checklevel specify the sanity check level for project Mumps
1104  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1105  --with-pic              try to use only PIC/non-PIC objects [default=use
1106                          both]
1107  --with-tags[=TAGS]
1108                          include additional configurations [automatic]
1109  --with-blas             specify BLAS library (or BUILD to enforce use of
1110                          ThirdParty/Blas)
1111
1112  --with-coin-instdir     prefix of installation directory for precompiled
1113                          COIN packages
1114  --with-blas-lib linker flags for using package Blas
1115  --with-blas-incdir directory with header files for using package Blas
1116  --with-blas-datadir directory with data files for using package Blas
1117  --with-metis-lib linker flags for using package Metis
1118  --with-metis-incdir directory with header files for using package Metis
1119  --with-metis-datadir directory with data files for using package Metis
1120
1121Some influential environment variables:
1122  CDEFS       Additional -D flags to be used when compiling C code.
1123  ADD_CFLAGS  Additional C compiler options
1124  DBG_CFLAGS  Debug C compiler options
1125  OPT_CFLAGS  Optimize C compiler options
1126  CC          C compiler command
1127  CFLAGS      C compiler flags
1128  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1129              nonstandard directory <lib dir>
1130  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1131              headers in a nonstandard directory <include dir>
1132  MPICC       C MPI Compiler
1133  ADD_FFLAGS  Additional Fortran compiler options
1134  DBG_FFLAGS  Debug Fortran compiler options
1135  OPT_FFLAGS  Optimize Fortran compiler options
1136  F77         Fortran 77 compiler command
1137  FFLAGS      Fortran 77 compiler flags
1138  MPIF77      Fortran MPI Compiler
1139  CPP         C preprocessor
1140  CXX         C++ compiler command
1141  CXXFLAGS    C++ compiler flags
1142  CXXCPP      C++ preprocessor
1143  PKG_CONFIG  path to pkg-config utility
1144
1145Use these variables to override the choices made by `configure' or to help
1146it to find libraries and programs with nonstandard names/locations.
1147
1148Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1149_ACEOF
1150fi
1151
1152if test "$ac_init_help" = "recursive"; then
1153  # If there are subdirs, report their specific --help.
1154  ac_popdir=`pwd`
1155  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1156    test -d $ac_dir || continue
1157    ac_builddir=.
1158
1159if test "$ac_dir" != .; then
1160  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1161  # A "../" for each directory in $ac_dir_suffix.
1162  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1163else
1164  ac_dir_suffix= ac_top_builddir=
1165fi
1166
1167case $srcdir in
1168  .)  # No --srcdir option.  We are building in place.
1169    ac_srcdir=.
1170    if test -z "$ac_top_builddir"; then
1171       ac_top_srcdir=.
1172    else
1173       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1174    fi ;;
1175  [\\/]* | ?:[\\/]* )  # Absolute path.
1176    ac_srcdir=$srcdir$ac_dir_suffix;
1177    ac_top_srcdir=$srcdir ;;
1178  *) # Relative path.
1179    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1180    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1181esac
1182
1183# Do not use `cd foo && pwd` to compute absolute paths, because
1184# the directories may not exist.
1185case `pwd` in
1186.) ac_abs_builddir="$ac_dir";;
1187*)
1188  case "$ac_dir" in
1189  .) ac_abs_builddir=`pwd`;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1191  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_top_builddir=${ac_top_builddir}.;;
1196*)
1197  case ${ac_top_builddir}. in
1198  .) ac_abs_top_builddir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1200  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1201  esac;;
1202esac
1203case $ac_abs_builddir in
1204.) ac_abs_srcdir=$ac_srcdir;;
1205*)
1206  case $ac_srcdir in
1207  .) ac_abs_srcdir=$ac_abs_builddir;;
1208  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1209  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1210  esac;;
1211esac
1212case $ac_abs_builddir in
1213.) ac_abs_top_srcdir=$ac_top_srcdir;;
1214*)
1215  case $ac_top_srcdir in
1216  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1217  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1218  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1219  esac;;
1220esac
1221
1222    cd $ac_dir
1223    # Check for guested configure; otherwise get Cygnus style configure.
1224    if test -f $ac_srcdir/configure.gnu; then
1225      echo
1226      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1227    elif test -f $ac_srcdir/configure; then
1228      echo
1229      $SHELL $ac_srcdir/configure  --help=recursive
1230    elif test -f $ac_srcdir/configure.ac ||
1231           test -f $ac_srcdir/configure.in; then
1232      echo
1233      $ac_configure --help
1234    else
1235      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1236    fi
1237    cd $ac_popdir
1238  done
1239fi
1240
1241test -n "$ac_init_help" && exit 0
1242if $ac_init_version; then
1243  cat <<\_ACEOF
1244ThirdPartyMumps configure trunk
1245generated by GNU Autoconf 2.59
1246
1247Copyright (C) 2003 Free Software Foundation, Inc.
1248This configure script is free software; the Free Software Foundation
1249gives unlimited permission to copy, distribute and modify it.
1250
1251
1252Copyright 2007-2009 International Business Machines and others.
1253All Rights Reserved.
1254This file is part of the open source package Coin which is distributed
1255under the Eclipse Public License.
1256_ACEOF
1257  exit 0
1258fi
1259exec 5>config.log
1260cat >&5 <<_ACEOF
1261This file contains any messages produced by compilers while
1262running configure, to aid debugging if configure makes a mistake.
1263
1264It was created by ThirdPartyMumps $as_me trunk, which was
1265generated by GNU Autoconf 2.59.  Invocation command line was
1266
1267  $ $0 $@
1268
1269_ACEOF
1270{
1271cat <<_ASUNAME
1272## --------- ##
1273## Platform. ##
1274## --------- ##
1275
1276hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1277uname -m = `(uname -m) 2>/dev/null || echo unknown`
1278uname -r = `(uname -r) 2>/dev/null || echo unknown`
1279uname -s = `(uname -s) 2>/dev/null || echo unknown`
1280uname -v = `(uname -v) 2>/dev/null || echo unknown`
1281
1282/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1283/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1284
1285/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1286/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1287/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1288hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1289/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1290/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1291/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1292
1293_ASUNAME
1294
1295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1296for as_dir in $PATH
1297do
1298  IFS=$as_save_IFS
1299  test -z "$as_dir" && as_dir=.
1300  echo "PATH: $as_dir"
1301done
1302
1303} >&5
1304
1305cat >&5 <<_ACEOF
1306
1307
1308## ----------- ##
1309## Core tests. ##
1310## ----------- ##
1311
1312_ACEOF
1313
1314
1315# Keep a trace of the command line.
1316# Strip out --no-create and --no-recursion so they do not pile up.
1317# Strip out --silent because we don't want to record it for future runs.
1318# Also quote any args containing shell meta-characters.
1319# Make two passes to allow for proper duplicate-argument suppression.
1320ac_configure_args=
1321ac_configure_args0=
1322ac_configure_args1=
1323ac_sep=
1324ac_must_keep_next=false
1325for ac_pass in 1 2
1326do
1327  for ac_arg
1328  do
1329    case $ac_arg in
1330    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1331    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332    | -silent | --silent | --silen | --sile | --sil)
1333      continue ;;
1334    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1335      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1336    esac
1337    case $ac_pass in
1338    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1339    2)
1340      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1341      if test $ac_must_keep_next = true; then
1342        ac_must_keep_next=false # Got value, back to normal.
1343      else
1344        case $ac_arg in
1345          *=* | --config-cache | -C | -disable-* | --disable-* \
1346          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1347          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1348          | -with-* | --with-* | -without-* | --without-* | --x)
1349            case "$ac_configure_args0 " in
1350              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1351            esac
1352            ;;
1353          -* ) ac_must_keep_next=true ;;
1354        esac
1355      fi
1356      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1357      # Get rid of the leading space.
1358      ac_sep=" "
1359      ;;
1360    esac
1361  done
1362done
1363$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1364$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1365
1366# When interrupted or exit'd, cleanup temporary files, and complete
1367# config.log.  We remove comments because anyway the quotes in there
1368# would cause problems or look ugly.
1369# WARNING: Be sure not to use single quotes in there, as some shells,
1370# such as our DU 5.0 friend, will then `close' the trap.
1371trap 'exit_status=$?
1372  # Save into config.log some information that might help in debugging.
1373  {
1374    echo
1375
1376    cat <<\_ASBOX
1377## ---------------- ##
1378## Cache variables. ##
1379## ---------------- ##
1380_ASBOX
1381    echo
1382    # The following way of writing the cache mishandles newlines in values,
1383{
1384  (set) 2>&1 |
1385    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1386    *ac_space=\ *)
1387      sed -n \
1388        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1389          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1390      ;;
1391    *)
1392      sed -n \
1393        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1394      ;;
1395    esac;
1396}
1397    echo
1398
1399    cat <<\_ASBOX
1400## ----------------- ##
1401## Output variables. ##
1402## ----------------- ##
1403_ASBOX
1404    echo
1405    for ac_var in $ac_subst_vars
1406    do
1407      eval ac_val=$`echo $ac_var`
1408      echo "$ac_var='"'"'$ac_val'"'"'"
1409    done | sort
1410    echo
1411
1412    if test -n "$ac_subst_files"; then
1413      cat <<\_ASBOX
1414## ------------- ##
1415## Output files. ##
1416## ------------- ##
1417_ASBOX
1418      echo
1419      for ac_var in $ac_subst_files
1420      do
1421        eval ac_val=$`echo $ac_var`
1422        echo "$ac_var='"'"'$ac_val'"'"'"
1423      done | sort
1424      echo
1425    fi
1426
1427    if test -s confdefs.h; then
1428      cat <<\_ASBOX
1429## ----------- ##
1430## confdefs.h. ##
1431## ----------- ##
1432_ASBOX
1433      echo
1434      sed "/^$/d" confdefs.h | sort
1435      echo
1436    fi
1437    test "$ac_signal" != 0 &&
1438      echo "$as_me: caught signal $ac_signal"
1439    echo "$as_me: exit $exit_status"
1440  } >&5
1441  rm -f core *.core &&
1442  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1443    exit $exit_status
1444     ' 0
1445for ac_signal in 1 2 13 15; do
1446  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1447done
1448ac_signal=0
1449
1450# confdefs.h avoids OS command line length limits that DEFS can exceed.
1451rm -rf conftest* confdefs.h
1452# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1453echo >confdefs.h
1454
1455# Predefined preprocessor variables.
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_NAME "$PACKAGE_NAME"
1459_ACEOF
1460
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1464_ACEOF
1465
1466
1467cat >>confdefs.h <<_ACEOF
1468#define PACKAGE_VERSION "$PACKAGE_VERSION"
1469_ACEOF
1470
1471
1472cat >>confdefs.h <<_ACEOF
1473#define PACKAGE_STRING "$PACKAGE_STRING"
1474_ACEOF
1475
1476
1477cat >>confdefs.h <<_ACEOF
1478#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1479_ACEOF
1480
1481
1482# Let the site file select an alternate cache file if it wants to.
1483# Prefer explicitly selected file to automatically selected ones.
1484if test -z "$CONFIG_SITE"; then
1485  if test "x$prefix" != xNONE; then
1486    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1487  else
1488    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1489  fi
1490fi
1491for ac_site_file in $CONFIG_SITE; do
1492  if test -r "$ac_site_file"; then
1493    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1494echo "$as_me: loading site script $ac_site_file" >&6;}
1495    sed 's/^/| /' "$ac_site_file" >&5
1496    . "$ac_site_file"
1497  fi
1498done
1499
1500if test -r "$cache_file"; then
1501  # Some versions of bash will fail to source /dev/null (special
1502  # files actually), so we avoid doing that.
1503  if test -f "$cache_file"; then
1504    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1505echo "$as_me: loading cache $cache_file" >&6;}
1506    case $cache_file in
1507      [\\/]* | ?:[\\/]* ) . $cache_file;;
1508      *)                      . ./$cache_file;;
1509    esac
1510  fi
1511else
1512  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1513echo "$as_me: creating cache $cache_file" >&6;}
1514  >$cache_file
1515fi
1516
1517# Check that the precious variables saved in the cache have kept the same
1518# value.
1519ac_cache_corrupted=false
1520for ac_var in `(set) 2>&1 |
1521               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1522  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1523  eval ac_new_set=\$ac_env_${ac_var}_set
1524  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1525  eval ac_new_val="\$ac_env_${ac_var}_value"
1526  case $ac_old_set,$ac_new_set in
1527    set,)
1528      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1529echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1530      ac_cache_corrupted=: ;;
1531    ,set)
1532      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1533echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1534      ac_cache_corrupted=: ;;
1535    ,);;
1536    *)
1537      if test "x$ac_old_val" != "x$ac_new_val"; then
1538        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1539echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1540        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1541echo "$as_me:   former value:  $ac_old_val" >&2;}
1542        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1543echo "$as_me:   current value: $ac_new_val" >&2;}
1544        ac_cache_corrupted=:
1545      fi;;
1546  esac
1547  # Pass precious variables to config.status.
1548  if test "$ac_new_set" = set; then
1549    case $ac_new_val in
1550    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1551      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1552    *) ac_arg=$ac_var=$ac_new_val ;;
1553    esac
1554    case " $ac_configure_args " in
1555      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1556      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1557    esac
1558  fi
1559done
1560if $ac_cache_corrupted; then
1561  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1562echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1563  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1564echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1565   { (exit 1); exit 1; }; }
1566fi
1567
1568ac_ext=c
1569ac_cpp='$CPP $CPPFLAGS'
1570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1572ac_compiler_gnu=$ac_cv_c_compiler_gnu
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603# List one file in the package so that the configure script can test
1604# whether the package is actually there
1605
1606
1607# Where should everything be installed by default?  Here, we want it
1608# to be installed directly in 'bin', 'lib', 'include' subdirectories
1609# of the directory where configure is run.  The default would be
1610# /usr/local.
1611
1612
1613
1614# As backup, we make sure we don't loose an FLIBS if it has been set
1615# by the user
1616save_FLIBS="$FLIBS"
1617
1618# A useful makefile conditional that is always false
1619
1620
1621if false; then
1622  ALWAYS_FALSE_TRUE=
1623  ALWAYS_FALSE_FALSE='#'
1624else
1625  ALWAYS_FALSE_TRUE='#'
1626  ALWAYS_FALSE_FALSE=
1627fi
1628
1629
1630# We set the following variable so that we know later in AC_COIN_FINALIZE
1631# that we are in a project main directory
1632coin_projectdir=yes
1633
1634# Set the project's version numbers
1635
1636
1637cat >>confdefs.h <<_ACEOF
1638#define MUMPS_VERSION "$PACKAGE_VERSION"
1639_ACEOF
1640
1641
1642  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1643  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1644  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1645  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1646  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1647  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1648
1649cat >>confdefs.h <<_ACEOF
1650#define MUMPS_VERSION_MAJOR $coin_majorver
1651_ACEOF
1652
1653
1654cat >>confdefs.h <<_ACEOF
1655#define MUMPS_VERSION_MINOR $coin_minorver
1656_ACEOF
1657
1658
1659cat >>confdefs.h <<_ACEOF
1660#define MUMPS_VERSION_RELEASE $coin_releasever
1661_ACEOF
1662
1663
1664  # We use the following variable to have a string with the upper case
1665  # version of the project name
1666  COIN_PRJCT=MUMPS
1667
1668  # Set the project's SVN revision number. The complicated sed expression
1669  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1670  # as a single number.
1671  # Extract the first word of "svnversion", so it can be a program name with args.
1672set dummy svnversion; ac_word=$2
1673echo "$as_me:$LINENO: checking for $ac_word" >&5
1674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675if test "${ac_cv_prog_have_svnversion+set}" = set; then
1676  echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678  if test -n "$have_svnversion"; then
1679  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1680else
1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682for as_dir in $PATH
1683do
1684  IFS=$as_save_IFS
1685  test -z "$as_dir" && as_dir=.
1686  for ac_exec_ext in '' $ac_executable_extensions; do
1687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688    ac_cv_prog_have_svnversion="yes"
1689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690    break 2
1691  fi
1692done
1693done
1694
1695  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1696fi
1697fi
1698have_svnversion=$ac_cv_prog_have_svnversion
1699if test -n "$have_svnversion"; then
1700  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1701echo "${ECHO_T}$have_svnversion" >&6
1702else
1703  echo "$as_me:$LINENO: result: no" >&5
1704echo "${ECHO_T}no" >&6
1705fi
1706
1707  if test "x$have_svnversion" = xyes; then
1708
1709    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1710    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1711      MUMPS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1712
1713cat >>confdefs.h <<_ACEOF
1714#define MUMPS_SVN_REV $MUMPS_SVN_REV
1715_ACEOF
1716
1717    fi
1718  fi
1719
1720
1721
1722# Capture libtool library version, if given.
1723
1724
1725
1726
1727#############################################################################
1728#                         Standard build tool stuff                         #
1729#############################################################################
1730
1731# Get the system type
1732ac_aux_dir=
1733for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1734  if test -f $ac_dir/install-sh; then
1735    ac_aux_dir=$ac_dir
1736    ac_install_sh="$ac_aux_dir/install-sh -c"
1737    break
1738  elif test -f $ac_dir/install.sh; then
1739    ac_aux_dir=$ac_dir
1740    ac_install_sh="$ac_aux_dir/install.sh -c"
1741    break
1742  elif test -f $ac_dir/shtool; then
1743    ac_aux_dir=$ac_dir
1744    ac_install_sh="$ac_aux_dir/shtool install -c"
1745    break
1746  fi
1747done
1748if test -z "$ac_aux_dir"; then
1749  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1750echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1751   { (exit 1); exit 1; }; }
1752fi
1753ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1754ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1755ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1756
1757# Make sure we can run config.sub.
1758$ac_config_sub sun4 >/dev/null 2>&1 ||
1759  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1760echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1761   { (exit 1); exit 1; }; }
1762
1763echo "$as_me:$LINENO: checking build system type" >&5
1764echo $ECHO_N "checking build system type... $ECHO_C" >&6
1765if test "${ac_cv_build+set}" = set; then
1766  echo $ECHO_N "(cached) $ECHO_C" >&6
1767else
1768  ac_cv_build_alias=$build_alias
1769test -z "$ac_cv_build_alias" &&
1770  ac_cv_build_alias=`$ac_config_guess`
1771test -z "$ac_cv_build_alias" &&
1772  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1773echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1774   { (exit 1); exit 1; }; }
1775ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1776  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1777echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1778   { (exit 1); exit 1; }; }
1779
1780fi
1781echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1782echo "${ECHO_T}$ac_cv_build" >&6
1783build=$ac_cv_build
1784build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1785build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1786build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1787
1788
1789
1790#turn off warnings and pedantic mode since they could make trouble on some platforms,
1791#and we couldn't fix them anyway
1792coin_skip_warn_cflags=yes
1793coin_skip_warn_fflags=yes
1794
1795# Check if user wants to produce debugging code
1796
1797echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1798echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1799
1800# Check whether --enable-debug or --disable-debug was given.
1801if test "${enable_debug+set}" = set; then
1802  enableval="$enable_debug"
1803  case "${enableval}" in
1804   yes) coin_debug_compile=true
1805        if test "${enable_shared+set}" = set; then :; else
1806          enable_shared=no
1807        fi
1808        ;;
1809   no)  coin_debug_compile=false
1810        ;;
1811   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1812echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1813   { (exit 1); exit 1; }; }
1814        ;;
1815esac
1816else
1817  coin_debug_compile=false
1818fi;
1819
1820# Check whether --enable-debug-mumps or --disable-debug-mumps was given.
1821if test "${enable_debug_mumps+set}" = set; then
1822  enableval="$enable_debug_mumps"
1823  case "${enableval}" in
1824    yes) coin_debug_compile=true
1825         ;;
1826    no)  coin_debug_compile=false
1827         ;;
1828    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-mumps" >&5
1829echo "$as_me: error: bad value ${enableval} for --enable-debug-mumps" >&2;}
1830   { (exit 1); exit 1; }; }
1831         ;;
1832 esac
1833else
1834  :
1835fi;
1836
1837 # m4_ifvaln([Mumps],
1838
1839if test $coin_debug_compile = true; then
1840  echo "$as_me:$LINENO: result: yes" >&5
1841echo "${ECHO_T}yes" >&6
1842else
1843  echo "$as_me:$LINENO: result: no" >&5
1844echo "${ECHO_T}no" >&6
1845fi
1846
1847
1848# Check whether --with-mumps-verbosity or --without-mumps-verbosity was given.
1849if test "${with_mumps_verbosity+set}" = set; then
1850  withval="$with_mumps_verbosity"
1851  if test "$withval" = yes; then
1852                withval=1
1853              fi
1854              coin_mumps_verbosity=$withval
1855else
1856  coin_mumps_verbosity=0
1857fi;
1858
1859cat >>confdefs.h <<_ACEOF
1860#define COIN_MUMPS_VERBOSITY $coin_mumps_verbosity
1861_ACEOF
1862
1863
1864
1865# Check whether --with-mumps-checklevel or --without-mumps-checklevel was given.
1866if test "${with_mumps_checklevel+set}" = set; then
1867  withval="$with_mumps_checklevel"
1868  if test "$withval" = yes; then
1869                withval=1
1870              fi
1871              coin_mumps_checklevel=$withval
1872else
1873  coin_mumps_checklevel=0
1874fi;
1875
1876cat >>confdefs.h <<_ACEOF
1877#define COIN_MUMPS_CHECKLEVEL $coin_mumps_checklevel
1878_ACEOF
1879
1880
1881 # m4_ifvaln([Mumps],
1882
1883
1884
1885# Get the name of the C compiler
1886
1887
1888  # for backward compatibility
1889  # Check whether --enable-doscompile or --disable-doscompile was given.
1890if test "${enable_doscompile+set}" = set; then
1891  enableval="$enable_doscompile"
1892  enable_doscompile=$enableval
1893else
1894  enable_doscompile=no
1895fi;
1896
1897  # Check whether --enable-msvc or --disable-msvc was given.
1898if test "${enable_msvc+set}" = set; then
1899  enableval="$enable_msvc"
1900  enable_msvc=$enableval
1901else
1902  enable_msvc=no
1903     if test "$enable_doscompile" = msvc ; then
1904       enable_msvc=yes
1905     elif test "$enable_doscompile" != no ; then
1906       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1907echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1908   { (exit 1); exit 1; }; }
1909     fi
1910
1911fi;
1912
1913  if test "$enable_msvc" = MD; then
1914    enable_shared=yes
1915    enable_msvc=yes
1916  fi
1917
1918  if test "$enable_msvc" = yes; then
1919    case $build in
1920      *-cygwin* | *-mingw*) ;;
1921      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1922echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1923   { (exit 1); exit 1; }; } ;;
1924    esac
1925  fi
1926
1927
1928
1929ac_ext=c
1930ac_cpp='$CPP $CPPFLAGS'
1931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934
1935
1936# For consistency, we set the C compiler to the same value of the C++
1937# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1938if test x"$CXX" != x; then
1939  case "$CXX" in
1940    clang* ) ;;
1941    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1942      if test x"$CC" = x; then
1943        CC="$CXX"
1944        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1945echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1946      fi
1947      ;;
1948  esac
1949fi
1950
1951
1952
1953
1954
1955
1956coin_has_cc=yes
1957
1958save_cflags="$CFLAGS"
1959
1960# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1961# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1962# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1963# compiler. In this case, put cc after gcc.
1964
1965case $build in
1966  *-cygwin* | *-mingw*)
1967             if test "$enable_msvc" = yes ; then
1968               comps="icl cl gcc"
1969             else
1970               comps="gcc icl cl"
1971             fi ;;
1972  *-*-solaris*)
1973             # Extract the first word of "cc", so it can be a program name with args.
1974set dummy cc; ac_word=$2
1975echo "$as_me:$LINENO: checking for $ac_word" >&5
1976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1978  echo $ECHO_N "(cached) $ECHO_C" >&6
1979else
1980  if test -n "$sol_cc_compiler"; then
1981  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1982else
1983  ac_prog_rejected=no
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987  IFS=$as_save_IFS
1988  test -z "$as_dir" && as_dir=.
1989  for ac_exec_ext in '' $ac_executable_extensions; do
1990  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1992       ac_prog_rejected=yes
1993       continue
1994     fi
1995    ac_cv_prog_sol_cc_compiler="cc"
1996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997    break 2
1998  fi
1999done
2000done
2001
2002if test $ac_prog_rejected = yes; then
2003  # We found a bogon in the path, so make sure we never use it.
2004  set dummy $ac_cv_prog_sol_cc_compiler
2005  shift
2006  if test $# != 0; then
2007    # We chose a different compiler from the bogus one.
2008    # However, it has the same basename, so the bogon will be chosen
2009    # first if we set sol_cc_compiler to just the basename; use the full file name.
2010    shift
2011    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2012  fi
2013fi
2014fi
2015fi
2016sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2017if test -n "$sol_cc_compiler"; then
2018  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2019echo "${ECHO_T}$sol_cc_compiler" >&6
2020else
2021  echo "$as_me:$LINENO: result: no" >&5
2022echo "${ECHO_T}no" >&6
2023fi
2024
2025             if test "$sol_cc_compiler" = "cc" ; then
2026               comps="cc xlc gcc pgcc icc"
2027             else
2028               comps="xlc gcc pgcc icc cc"
2029             fi
2030             ;;
2031  *-*-darwin*) comps="clang gcc cc" ;;
2032  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2033  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2034  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2035esac
2036
2037# We delete the cached value, since the test might not have been
2038# performed with our choice of compilers earlier
2039$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2040# AC_MSG_NOTICE([C compiler candidates: $comps])
2041ac_ext=c
2042ac_cpp='$CPP $CPPFLAGS'
2043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046if test -n "$ac_tool_prefix"; then
2047  for ac_prog in $comps
2048  do
2049    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2050set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2051echo "$as_me:$LINENO: checking for $ac_word" >&5
2052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053if test "${ac_cv_prog_CC+set}" = set; then
2054  echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056  if test -n "$CC"; then
2057  ac_cv_prog_CC="$CC" # Let the user override the test.
2058else
2059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
2062  IFS=$as_save_IFS
2063  test -z "$as_dir" && as_dir=.
2064  for ac_exec_ext in '' $ac_executable_extensions; do
2065  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2067    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068    break 2
2069  fi
2070done
2071done
2072
2073fi
2074fi
2075CC=$ac_cv_prog_CC
2076if test -n "$CC"; then
2077  echo "$as_me:$LINENO: result: $CC" >&5
2078echo "${ECHO_T}$CC" >&6
2079else
2080  echo "$as_me:$LINENO: result: no" >&5
2081echo "${ECHO_T}no" >&6
2082fi
2083
2084    test -n "$CC" && break
2085  done
2086fi
2087if test -z "$CC"; then
2088  ac_ct_CC=$CC
2089  for ac_prog in $comps
2090do
2091  # Extract the first word of "$ac_prog", so it can be a program name with args.
2092set dummy $ac_prog; ac_word=$2
2093echo "$as_me:$LINENO: checking for $ac_word" >&5
2094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2096  echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098  if test -n "$ac_ct_CC"; then
2099  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2100else
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
2104  IFS=$as_save_IFS
2105  test -z "$as_dir" && as_dir=.
2106  for ac_exec_ext in '' $ac_executable_extensions; do
2107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108    ac_cv_prog_ac_ct_CC="$ac_prog"
2109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110    break 2
2111  fi
2112done
2113done
2114
2115fi
2116fi
2117ac_ct_CC=$ac_cv_prog_ac_ct_CC
2118if test -n "$ac_ct_CC"; then
2119  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2120echo "${ECHO_T}$ac_ct_CC" >&6
2121else
2122  echo "$as_me:$LINENO: result: no" >&5
2123echo "${ECHO_T}no" >&6
2124fi
2125
2126  test -n "$ac_ct_CC" && break
2127done
2128
2129  CC=$ac_ct_CC
2130fi
2131
2132
2133test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2134See \`config.log' for more details." >&5
2135echo "$as_me: error: no acceptable C compiler found in \$PATH
2136See \`config.log' for more details." >&2;}
2137   { (exit 1); exit 1; }; }
2138
2139# Provide some information about the compiler.
2140echo "$as_me:$LINENO:" \
2141     "checking for C compiler version" >&5
2142ac_compiler=`set X $ac_compile; echo $2`
2143{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2144  (eval $ac_compiler --version </dev/null >&5) 2>&5
2145  ac_status=$?
2146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147  (exit $ac_status); }
2148{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2149  (eval $ac_compiler -v </dev/null >&5) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }
2153{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2154  (eval $ac_compiler -V </dev/null >&5) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }
2158
2159cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h.  */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h.  */
2165
2166int
2167main ()
2168{
2169
2170  ;
2171  return 0;
2172}
2173_ACEOF
2174ac_clean_files_save=$ac_clean_files
2175ac_clean_files="$ac_clean_files a.out a.exe b.out"
2176# Try to create an executable without -o first, disregard a.out.
2177# It will help us diagnose broken compilers, and finding out an intuition
2178# of exeext.
2179echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2180echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2181ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2182if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2183  (eval $ac_link_default) 2>&5
2184  ac_status=$?
2185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186  (exit $ac_status); }; then
2187  # Find the output, starting from the most likely.  This scheme is
2188# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2189# resort.
2190
2191# Be careful to initialize this variable, since it used to be cached.
2192# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2193ac_cv_exeext=
2194# b.out is created by i960 compilers.
2195for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2196do
2197  test -f "$ac_file" || continue
2198  case $ac_file in
2199    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2200        ;;
2201    conftest.$ac_ext )
2202        # This is the source file.
2203        ;;
2204    [ab].out )
2205        # We found the default executable, but exeext='' is most
2206        # certainly right.
2207        break;;
2208    *.* )
2209        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210        # FIXME: I believe we export ac_cv_exeext for Libtool,
2211        # but it would be cool to find out if it's true.  Does anybody
2212        # maintain Libtool? --akim.
2213        export ac_cv_exeext
2214        break;;
2215    * )
2216        break;;
2217  esac
2218done
2219else
2220  echo "$as_me: failed program was:" >&5
2221sed 's/^/| /' conftest.$ac_ext >&5
2222
2223{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: C compiler cannot create executables
2226See \`config.log' for more details." >&2;}
2227   { (exit 77); exit 77; }; }
2228fi
2229
2230ac_exeext=$ac_cv_exeext
2231echo "$as_me:$LINENO: result: $ac_file" >&5
2232echo "${ECHO_T}$ac_file" >&6
2233
2234# Check the compiler produces executables we can run.  If not, either
2235# the compiler is broken, or we cross compile.
2236echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2237echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2238# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2239# If not cross compiling, check that we can run a simple program.
2240if test "$cross_compiling" != yes; then
2241  if { ac_try='./$ac_file'
2242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243  (eval $ac_try) 2>&5
2244  ac_status=$?
2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246  (exit $ac_status); }; }; then
2247    cross_compiling=no
2248  else
2249    if test "$cross_compiling" = maybe; then
2250        cross_compiling=yes
2251    else
2252        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2253If you meant to cross compile, use \`--host'.
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: cannot run C compiled programs.
2256If you meant to cross compile, use \`--host'.
2257See \`config.log' for more details." >&2;}
2258   { (exit 1); exit 1; }; }
2259    fi
2260  fi
2261fi
2262echo "$as_me:$LINENO: result: yes" >&5
2263echo "${ECHO_T}yes" >&6
2264
2265rm -f a.out a.exe conftest$ac_cv_exeext b.out
2266ac_clean_files=$ac_clean_files_save
2267# Check the compiler produces executables we can run.  If not, either
2268# the compiler is broken, or we cross compile.
2269echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2270echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2271echo "$as_me:$LINENO: result: $cross_compiling" >&5
2272echo "${ECHO_T}$cross_compiling" >&6
2273
2274echo "$as_me:$LINENO: checking for suffix of executables" >&5
2275echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2277  (eval $ac_link) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; then
2281  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2283# work properly (i.e., refer to `conftest.exe'), while it won't with
2284# `rm'.
2285for ac_file in conftest.exe conftest conftest.*; do
2286  test -f "$ac_file" || continue
2287  case $ac_file in
2288    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2289    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290          export ac_cv_exeext
2291          break;;
2292    * ) break;;
2293  esac
2294done
2295else
2296  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2297See \`config.log' for more details." >&5
2298echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2299See \`config.log' for more details." >&2;}
2300   { (exit 1); exit 1; }; }
2301fi
2302
2303rm -f conftest$ac_cv_exeext
2304echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2305echo "${ECHO_T}$ac_cv_exeext" >&6
2306
2307rm -f conftest.$ac_ext
2308EXEEXT=$ac_cv_exeext
2309ac_exeext=$EXEEXT
2310echo "$as_me:$LINENO: checking for suffix of object files" >&5
2311echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2312if test "${ac_cv_objext+set}" = set; then
2313  echo $ECHO_N "(cached) $ECHO_C" >&6
2314else
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321
2322int
2323main ()
2324{
2325
2326  ;
2327  return 0;
2328}
2329_ACEOF
2330rm -f conftest.o conftest.obj
2331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332  (eval $ac_compile) 2>&5
2333  ac_status=$?
2334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335  (exit $ac_status); }; then
2336  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2337  case $ac_file in
2338    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2339    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2340       break;;
2341  esac
2342done
2343else
2344  echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2348See \`config.log' for more details." >&5
2349echo "$as_me: error: cannot compute suffix of object files: cannot compile
2350See \`config.log' for more details." >&2;}
2351   { (exit 1); exit 1; }; }
2352fi
2353
2354rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355fi
2356echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2357echo "${ECHO_T}$ac_cv_objext" >&6
2358OBJEXT=$ac_cv_objext
2359ac_objext=$OBJEXT
2360echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2361echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2362if test "${ac_cv_c_compiler_gnu+set}" = set; then
2363  echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365  cat >conftest.$ac_ext <<_ACEOF
2366/* confdefs.h.  */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
2370/* end confdefs.h.  */
2371
2372int
2373main ()
2374{
2375#ifndef __GNUC__
2376       choke me
2377#endif
2378
2379  ;
2380  return 0;
2381}
2382_ACEOF
2383rm -f conftest.$ac_objext
2384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385  (eval $ac_compile) 2>conftest.er1
2386  ac_status=$?
2387  grep -v '^ *+' conftest.er1 >conftest.err
2388  rm -f conftest.er1
2389  cat conftest.err >&5
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); } &&
2392         { ac_try='test -z "$ac_c_werror_flag"
2393                         || test ! -s conftest.err'
2394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395  (eval $ac_try) 2>&5
2396  ac_status=$?
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); }; } &&
2399         { ac_try='test -s conftest.$ac_objext'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; }; then
2405  ac_compiler_gnu=yes
2406else
2407  echo "$as_me: failed program was:" >&5
2408sed 's/^/| /' conftest.$ac_ext >&5
2409
2410ac_compiler_gnu=no
2411fi
2412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413ac_cv_c_compiler_gnu=$ac_compiler_gnu
2414
2415fi
2416echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2417echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2418GCC=`test $ac_compiler_gnu = yes && echo yes`
2419ac_test_CFLAGS=${CFLAGS+set}
2420ac_save_CFLAGS=$CFLAGS
2421CFLAGS="-g"
2422echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2424if test "${ac_cv_prog_cc_g+set}" = set; then
2425  echo $ECHO_N "(cached) $ECHO_C" >&6
2426else
2427  cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h.  */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h.  */
2433
2434int
2435main ()
2436{
2437
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444  (eval $ac_compile) 2>conftest.er1
2445  ac_status=$?
2446  grep -v '^ *+' conftest.er1 >conftest.err
2447  rm -f conftest.er1
2448  cat conftest.err >&5
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); } &&
2451         { ac_try='test -z "$ac_c_werror_flag"
2452                         || test ! -s conftest.err'
2453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454  (eval $ac_try) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; } &&
2458         { ac_try='test -s conftest.$ac_objext'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; }; then
2464  ac_cv_prog_cc_g=yes
2465else
2466  echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
2469ac_cv_prog_cc_g=no
2470fi
2471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2472fi
2473echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2474echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2475if test "$ac_test_CFLAGS" = set; then
2476  CFLAGS=$ac_save_CFLAGS
2477elif test $ac_cv_prog_cc_g = yes; then
2478  if test "$GCC" = yes; then
2479    CFLAGS="-g -O2"
2480  else
2481    CFLAGS="-g"
2482  fi
2483else
2484  if test "$GCC" = yes; then
2485    CFLAGS="-O2"
2486  else
2487    CFLAGS=
2488  fi
2489fi
2490echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2491echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2492if test "${ac_cv_prog_cc_stdc+set}" = set; then
2493  echo $ECHO_N "(cached) $ECHO_C" >&6
2494else
2495  ac_cv_prog_cc_stdc=no
2496ac_save_CC=$CC
2497cat >conftest.$ac_ext <<_ACEOF
2498/* confdefs.h.  */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
2502/* end confdefs.h.  */
2503#include <stdarg.h>
2504#include <stdio.h>
2505#include <sys/types.h>
2506#include <sys/stat.h>
2507/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2508struct buf { int x; };
2509FILE * (*rcsopen) (struct buf *, struct stat *, int);
2510static char *e (p, i)
2511     char **p;
2512     int i;
2513{
2514  return p[i];
2515}
2516static char *f (char * (*g) (char **, int), char **p, ...)
2517{
2518  char *s;
2519  va_list v;
2520  va_start (v,p);
2521  s = g (p, va_arg (v,int));
2522  va_end (v);
2523  return s;
2524}
2525
2526/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2527   function prototypes and stuff, but not '\xHH' hex character constants.
2528   These don't provoke an error unfortunately, instead are silently treated
2529   as 'x'.  The following induces an error, until -std1 is added to get
2530   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2531   array size at least.  It's necessary to write '\x00'==0 to get something
2532   that's true only with -std1.  */
2533int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2534
2535int test (int i, double x);
2536struct s1 {int (*f) (int a);};
2537struct s2 {int (*f) (double a);};
2538int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2539int argc;
2540char **argv;
2541int
2542main ()
2543{
2544return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2545  ;
2546  return 0;
2547}
2548_ACEOF
2549# Don't try gcc -ansi; that turns off useful extensions and
2550# breaks some systems' header files.
2551# AIX                   -qlanglvl=ansi
2552# Ultrix and OSF/1      -std1
2553# HP-UX 10.20 and later -Ae
2554# HP-UX older versions  -Aa -D_HPUX_SOURCE
2555# SVR4                  -Xc -D__EXTENSIONS__
2556for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2557do
2558  CC="$ac_save_CC $ac_arg"
2559  rm -f conftest.$ac_objext
2560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561  (eval $ac_compile) 2>conftest.er1
2562  ac_status=$?
2563  grep -v '^ *+' conftest.er1 >conftest.err
2564  rm -f conftest.er1
2565  cat conftest.err >&5
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); } &&
2568         { ac_try='test -z "$ac_c_werror_flag"
2569                         || test ! -s conftest.err'
2570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571  (eval $ac_try) 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); }; } &&
2575         { ac_try='test -s conftest.$ac_objext'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; }; then
2581  ac_cv_prog_cc_stdc=$ac_arg
2582break
2583else
2584  echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587fi
2588rm -f conftest.err conftest.$ac_objext
2589done
2590rm -f conftest.$ac_ext conftest.$ac_objext
2591CC=$ac_save_CC
2592
2593fi
2594
2595case "x$ac_cv_prog_cc_stdc" in
2596  x|xno)
2597    echo "$as_me:$LINENO: result: none needed" >&5
2598echo "${ECHO_T}none needed" >&6 ;;
2599  *)
2600    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2601echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2602    CC="$CC $ac_cv_prog_cc_stdc" ;;
2603esac
2604
2605# Some people use a C++ compiler to compile C.  Since we use `exit',
2606# in C++ we need to declare it.  In case someone uses the same compiler
2607# for both compiling C and C++ we need to have the C++ compiler decide
2608# the declaration of exit, since it's the most demanding environment.
2609cat >conftest.$ac_ext <<_ACEOF
2610#ifndef __cplusplus
2611  choke me
2612#endif
2613_ACEOF
2614rm -f conftest.$ac_objext
2615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616  (eval $ac_compile) 2>conftest.er1
2617  ac_status=$?
2618  grep -v '^ *+' conftest.er1 >conftest.err
2619  rm -f conftest.er1
2620  cat conftest.err >&5
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); } &&
2623         { ac_try='test -z "$ac_c_werror_flag"
2624                         || test ! -s conftest.err'
2625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626  (eval $ac_try) 2>&5
2627  ac_status=$?
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); }; } &&
2630         { ac_try='test -s conftest.$ac_objext'
2631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632  (eval $ac_try) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; }; then
2636  for ac_declaration in \
2637   '' \
2638   'extern "C" void std::exit (int) throw (); using std::exit;' \
2639   'extern "C" void std::exit (int); using std::exit;' \
2640   'extern "C" void exit (int) throw ();' \
2641   'extern "C" void exit (int);' \
2642   'void exit (int);'
2643do
2644  cat >conftest.$ac_ext <<_ACEOF
2645/* confdefs.h.  */
2646_ACEOF
2647cat confdefs.h >>conftest.$ac_ext
2648cat >>conftest.$ac_ext <<_ACEOF
2649/* end confdefs.h.  */
2650$ac_declaration
2651#include <stdlib.h>
2652int
2653main ()
2654{
2655exit (42);
2656  ;
2657  return 0;
2658}
2659_ACEOF
2660rm -f conftest.$ac_objext
2661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662  (eval $ac_compile) 2>conftest.er1
2663  ac_status=$?
2664  grep -v '^ *+' conftest.er1 >conftest.err
2665  rm -f conftest.er1
2666  cat conftest.err >&5
2667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668  (exit $ac_status); } &&
2669         { ac_try='test -z "$ac_c_werror_flag"
2670                         || test ! -s conftest.err'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; } &&
2676         { ac_try='test -s conftest.$ac_objext'
2677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678  (eval $ac_try) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; }; then
2682  :
2683else
2684  echo "$as_me: failed program was:" >&5
2685sed 's/^/| /' conftest.$ac_ext >&5
2686
2687continue
2688fi
2689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690  cat >conftest.$ac_ext <<_ACEOF
2691/* confdefs.h.  */
2692_ACEOF
2693cat confdefs.h >>conftest.$ac_ext
2694cat >>conftest.$ac_ext <<_ACEOF
2695/* end confdefs.h.  */
2696$ac_declaration
2697int
2698main ()
2699{
2700exit (42);
2701  ;
2702  return 0;
2703}
2704_ACEOF
2705rm -f conftest.$ac_objext
2706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707  (eval $ac_compile) 2>conftest.er1
2708  ac_status=$?
2709  grep -v '^ *+' conftest.er1 >conftest.err
2710  rm -f conftest.er1
2711  cat conftest.err >&5
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); } &&
2714         { ac_try='test -z "$ac_c_werror_flag"
2715                         || test ! -s conftest.err'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; } &&
2721         { ac_try='test -s conftest.$ac_objext'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; }; then
2727  break
2728else
2729  echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732fi
2733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734done
2735rm -f conftest*
2736if test -n "$ac_declaration"; then
2737  echo '#ifdef __cplusplus' >>confdefs.h
2738  echo $ac_declaration      >>confdefs.h
2739  echo '#endif'             >>confdefs.h
2740fi
2741
2742else
2743  echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746fi
2747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748ac_ext=c
2749ac_cpp='$CPP $CPPFLAGS'
2750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
2754if test -z "$CC" ; then
2755  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2756echo "$as_me: error: Failed to find a C compiler!" >&2;}
2757   { (exit 1); exit 1; }; }
2758fi
2759# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2760case "$CC" in
2761  clang* ) ;;
2762  cl* | */cl* | CL* | */CL* )
2763    if test "$ac_cv_prog_cc_g" = yes ; then
2764      ac_cv_prog_cc_g=no
2765      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2766echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2767    fi ;;
2768  * )
2769    if test x"$CYGPATH_W" = x ; then
2770      CYGPATH_W=echo
2771    fi
2772    ;;
2773esac
2774CFLAGS="$save_cflags"
2775
2776# add automake conditional so we can recognize cl compiler in makefile
2777coin_cc_is_cl=false
2778case "$CC" in
2779  clang* ) ;;
2780  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2781    coin_cc_is_cl=true
2782    ;;
2783esac
2784
2785
2786if test $coin_cc_is_cl = true; then
2787  COIN_CC_IS_CL_TRUE=
2788  COIN_CC_IS_CL_FALSE='#'
2789else
2790  COIN_CC_IS_CL_TRUE='#'
2791  COIN_CC_IS_CL_FALSE=
2792fi
2793
2794
2795# Check if a project specific CFLAGS variable has been set
2796if test x$COIN_PRJCT != x; then
2797  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2798  if test x$coin_tmp = xset; then
2799    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2800  fi
2801fi
2802
2803if test x"$CFLAGS" = x; then
2804
2805  coin_add_cflags=
2806  coin_opt_cflags=
2807  coin_dbg_cflags=
2808  coin_warn_cflags=
2809
2810  if test "$GCC" = "yes"; then
2811    case "$CC" in
2812      icc* | */icc*)
2813        ;;
2814      *)
2815        coin_opt_cflags="-O3"
2816        coin_add_cflags="-pipe"
2817        coin_dbg_cflags="-g -O0"
2818        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2819        case $build in
2820          *-darwin*)
2821            ;;
2822          *)
2823            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2824            ;;
2825        esac
2826    esac
2827  fi
2828  if test -z "$coin_opt_cflags"; then
2829    case $build in
2830      *-cygwin* | *-mingw*)
2831        case "$CC" in
2832          clang* ) ;;
2833          cl* | */cl* | CL* | */CL*)
2834            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2835              coin_opt_cflags='-MD -O2'
2836              coin_dbg_cflags='-MDd'
2837            else
2838              coin_opt_cflags='-MT -O2'
2839              coin_dbg_cflags='-MTd'
2840            fi
2841            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2842            ;;
2843          icl* | */icl* | ICL* | */ICL*)
2844            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2845              coin_opt_cflags='-MD -Ox'
2846              coin_dbg_cflags='-MDd -debug'
2847            else
2848              coin_opt_cflags='-MT -Ox'
2849              coin_dbg_cflags='-MTd -debug'
2850            fi
2851            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2852            ;;
2853        esac
2854        ;;
2855      *-linux-*)
2856        case "$CC" in
2857          icc* | */icc*)
2858            coin_opt_cflags="-O3 -ip -mp1"
2859            coin_add_cflags=""
2860            coin_dbg_cflags="-g"
2861            # Check if -i_dynamic is necessary (for new glibc library)
2862            CFLAGS=
2863            cat >conftest.$ac_ext <<_ACEOF
2864/* confdefs.h.  */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h.  */
2869
2870int
2871main ()
2872{
2873int i=0; i++;
2874  ;
2875  return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext conftest$ac_exeext
2879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2880  (eval $ac_link) 2>conftest.er1
2881  ac_status=$?
2882  grep -v '^ *+' conftest.er1 >conftest.err
2883  rm -f conftest.er1
2884  cat conftest.err >&5
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); } &&
2887         { ac_try='test -z "$ac_c_werror_flag"
2888                         || test ! -s conftest.err'
2889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890  (eval $ac_try) 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }; } &&
2894         { ac_try='test -s conftest$ac_exeext'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; }; then
2900  :
2901else
2902  echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905coin_add_cflags="-i_dynamic $coin_add_cflags"
2906fi
2907rm -f conftest.err conftest.$ac_objext \
2908      conftest$ac_exeext conftest.$ac_ext
2909            ;;
2910          pgcc* | */pgcc*)
2911            coin_opt_cflags="-fast"
2912            coin_add_cflags="-Kieee -pc 64"
2913            coin_dbg_cflags="-g"
2914            ;;
2915        esac
2916        ;;
2917      *-ibm-*)
2918        case "$CC" in
2919          xlc* | */xlc* | mpxlc* | */mpxlc*)
2920            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2921            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2922            coin_dbg_cflags="-g"
2923          ;;
2924        esac
2925        ;;
2926      *-hp-*)
2927        coin_opt_cflags="-O"
2928        coin_add_cflags="-Ae"
2929        coin_dbg_cflags="-g"
2930        ;;
2931      *-*-solaris*)
2932        coin_opt_cflags="-xO4"
2933        coin_dbg_cflags="-g"
2934        ;;
2935      *-sgi-*)
2936        coin_opt_cflags="-O -OPT:Olimit=0"
2937        coin_dbg_cflags="-g"
2938        ;;
2939    esac
2940  fi
2941
2942  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2943    coin_dbg_cflags="-g"
2944  fi
2945
2946  if test -z "$coin_opt_cflags"; then
2947    # Try if -O option works if nothing else is set
2948    CFLAGS="-O"
2949    cat >conftest.$ac_ext <<_ACEOF
2950/* confdefs.h.  */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h.  */
2955
2956int
2957main ()
2958{
2959int i=0; i++;
2960  ;
2961  return 0;
2962}
2963_ACEOF
2964rm -f conftest.$ac_objext conftest$ac_exeext
2965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2966  (eval $ac_link) 2>conftest.er1
2967  ac_status=$?
2968  grep -v '^ *+' conftest.er1 >conftest.err
2969  rm -f conftest.er1
2970  cat conftest.err >&5
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); } &&
2973         { ac_try='test -z "$ac_c_werror_flag"
2974                         || test ! -s conftest.err'
2975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976  (eval $ac_try) 2>&5
2977  ac_status=$?
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); }; } &&
2980         { ac_try='test -s conftest$ac_exeext'
2981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982  (eval $ac_try) 2>&5
2983  ac_status=$?
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }; }; then
2986  coin_opt_cflags="-O"
2987else
2988  echo "$as_me: failed program was:" >&5
2989sed 's/^/| /' conftest.$ac_ext >&5
2990
2991fi
2992rm -f conftest.err conftest.$ac_objext \
2993      conftest$ac_exeext conftest.$ac_ext
2994  fi
2995
2996  # if PM doesn't want the warning messages, take them out
2997  if test x"$coin_skip_warn_cflags" = xyes; then
2998    coin_warn_cflags=
2999  fi
3000
3001  if test x${DBG_CFLAGS+set} != xset; then
3002    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3003  fi
3004  if test x${OPT_CFLAGS+set} != xset; then
3005    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3006  fi
3007
3008  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3009  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3010
3011  if test "$coin_debug_compile" = "true"; then
3012    CFLAGS="$DBG_CFLAGS"
3013  else
3014    CFLAGS="$OPT_CFLAGS"
3015  fi
3016else
3017  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3018  if test x${DBG_CFLAGS+set} != xset; then
3019    DBG_CFLAGS="$CFLAGS"
3020  fi
3021  if test x${OPT_CFLAGS+set} != xset; then
3022    OPT_CFLAGS="$CFLAGS"
3023  fi
3024fi
3025
3026# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3027if test x$COIN_PRJCT != x; then
3028  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3029fi
3030
3031# Try if CFLAGS works
3032save_CFLAGS="$CFLAGS"
3033cat >conftest.$ac_ext <<_ACEOF
3034/* confdefs.h.  */
3035_ACEOF
3036cat confdefs.h >>conftest.$ac_ext
3037cat >>conftest.$ac_ext <<_ACEOF
3038/* end confdefs.h.  */
3039
3040int
3041main ()
3042{
3043int i=0; i++;
3044  ;
3045  return 0;
3046}
3047_ACEOF
3048rm -f conftest.$ac_objext conftest$ac_exeext
3049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3050  (eval $ac_link) 2>conftest.er1
3051  ac_status=$?
3052  grep -v '^ *+' conftest.er1 >conftest.err
3053  rm -f conftest.er1
3054  cat conftest.err >&5
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); } &&
3057         { ac_try='test -z "$ac_c_werror_flag"
3058                         || test ! -s conftest.err'
3059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060  (eval $ac_try) 2>&5
3061  ac_status=$?
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); }; } &&
3064         { ac_try='test -s conftest$ac_exeext'
3065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066  (eval $ac_try) 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); }; }; then
3070  :
3071else
3072  echo "$as_me: failed program was:" >&5
3073sed 's/^/| /' conftest.$ac_ext >&5
3074
3075CFLAGS=
3076fi
3077rm -f conftest.err conftest.$ac_objext \
3078      conftest$ac_exeext conftest.$ac_ext
3079if test -z "$CFLAGS"; then
3080  { 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
3081echo "$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;}
3082  CFLAGS='-O'
3083  cat >conftest.$ac_ext <<_ACEOF
3084/* confdefs.h.  */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h.  */
3089
3090int
3091main ()
3092{
3093int i=0; i++;
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098rm -f conftest.$ac_objext conftest$ac_exeext
3099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3100  (eval $ac_link) 2>conftest.er1
3101  ac_status=$?
3102  grep -v '^ *+' conftest.er1 >conftest.err
3103  rm -f conftest.er1
3104  cat conftest.err >&5
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); } &&
3107         { ac_try='test -z "$ac_c_werror_flag"
3108                         || test ! -s conftest.err'
3109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110  (eval $ac_try) 2>&5
3111  ac_status=$?
3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); }; } &&
3114         { ac_try='test -s conftest$ac_exeext'
3115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116  (eval $ac_try) 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; }; then
3120  :
3121else
3122  echo "$as_me: failed program was:" >&5
3123sed 's/^/| /' conftest.$ac_ext >&5
3124
3125CFLAGS=
3126fi
3127rm -f conftest.err conftest.$ac_objext \
3128      conftest$ac_exeext conftest.$ac_ext
3129  if test -z "$CFLAGS"; then
3130    { 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
3131echo "$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;}
3132  fi
3133fi
3134
3135{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3136echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3137
3138
3139if test x"$MPICC" = x; then :; else
3140  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3141echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3142  CC="$MPICC"
3143fi
3144
3145# Correct the LD variable if we are using the MS or Intel-windows compiler
3146case "$CC" in
3147  clang* ) ;;
3148  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3149    LD=link
3150    ;;
3151esac
3152
3153ac_ext=c
3154ac_cpp='$CPP $CPPFLAGS'
3155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158
3159
3160
3161# Get the name of the Fortran compiler and appropriate compiler options
3162case $build in
3163  *-cygwin* | *-mingw*)
3164     if test "$enable_msvc" = yes ; then
3165       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3166     else
3167       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3168     fi ;;
3169  *-*-solaris*)
3170     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3171  *-linux-gnu*)
3172     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3173  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3174 esac
3175
3176
3177
3178
3179
3180ac_ext=f
3181ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3182ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3184
3185
3186
3187
3188
3189
3190coin_has_f77=yes
3191
3192save_fflags="$FFLAGS"
3193
3194# We delete the cached value, since the test might not have been
3195# performed with our choice of compilers earlier
3196$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3197
3198# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3199# coin_f77_comps to see if there's a program that matches one of the names.
3200# If there's no such program, F77 = unavailable. If we match the name,
3201# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3202# compiler.
3203# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3204
3205
3206{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3207echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3208if test -n "$ac_tool_prefix"; then
3209  for ac_prog in $coin_f77_comps
3210  do
3211    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3213echo "$as_me:$LINENO: checking for $ac_word" >&5
3214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215if test "${ac_cv_prog_F77+set}" = set; then
3216  echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218  if test -n "$F77"; then
3219  ac_cv_prog_F77="$F77" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224  IFS=$as_save_IFS
3225  test -z "$as_dir" && as_dir=.
3226  for ac_exec_ext in '' $ac_executable_extensions; do
3227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230    break 2
3231  fi
3232done
3233done
3234
3235fi
3236fi
3237F77=$ac_cv_prog_F77
3238if test -n "$F77"; then
3239  echo "$as_me:$LINENO: result: $F77" >&5
3240echo "${ECHO_T}$F77" >&6
3241else
3242  echo "$as_me:$LINENO: result: no" >&5
3243echo "${ECHO_T}no" >&6
3244fi
3245
3246    test -n "$F77" && break
3247  done
3248fi
3249if test -z "$F77"; then
3250  ac_ct_F77=$F77
3251  for ac_prog in $coin_f77_comps
3252do
3253  # Extract the first word of "$ac_prog", so it can be a program name with args.
3254set dummy $ac_prog; ac_word=$2
3255echo "$as_me:$LINENO: checking for $ac_word" >&5
3256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3257if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3258  echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260  if test -n "$ac_ct_F77"; then
3261  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3262else
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  test -z "$as_dir" && as_dir=.
3268  for ac_exec_ext in '' $ac_executable_extensions; do
3269  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270    ac_cv_prog_ac_ct_F77="$ac_prog"
3271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272    break 2
3273  fi
3274done
3275done
3276
3277fi
3278fi
3279ac_ct_F77=$ac_cv_prog_ac_ct_F77
3280if test -n "$ac_ct_F77"; then
3281  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3282echo "${ECHO_T}$ac_ct_F77" >&6
3283else
3284  echo "$as_me:$LINENO: result: no" >&5
3285echo "${ECHO_T}no" >&6
3286fi
3287
3288  test -n "$ac_ct_F77" && break
3289done
3290test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3291
3292  F77=$ac_ct_F77
3293fi
3294
3295
3296if test "$F77" != "unavailable" ; then
3297  ac_ext=f
3298ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3299ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3301if test -n "$ac_tool_prefix"; then
3302  for ac_prog in $coin_f77_comps
3303  do
3304    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3305set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3306echo "$as_me:$LINENO: checking for $ac_word" >&5
3307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308if test "${ac_cv_prog_F77+set}" = set; then
3309  echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311  if test -n "$F77"; then
3312  ac_cv_prog_F77="$F77" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317  IFS=$as_save_IFS
3318  test -z "$as_dir" && as_dir=.
3319  for ac_exec_ext in '' $ac_executable_extensions; do
3320  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323    break 2
3324  fi
3325done
3326done
3327
3328fi
3329fi
3330F77=$ac_cv_prog_F77
3331if test -n "$F77"; then
3332  echo "$as_me:$LINENO: result: $F77" >&5
3333echo "${ECHO_T}$F77" >&6
3334else
3335  echo "$as_me:$LINENO: result: no" >&5
3336echo "${ECHO_T}no" >&6
3337fi
3338
3339    test -n "$F77" && break
3340  done
3341fi
3342if test -z "$F77"; then
3343  ac_ct_F77=$F77
3344  for ac_prog in $coin_f77_comps
3345do
3346  # Extract the first word of "$ac_prog", so it can be a program name with args.
3347set dummy $ac_prog; ac_word=$2
3348echo "$as_me:$LINENO: checking for $ac_word" >&5
3349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3351  echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353  if test -n "$ac_ct_F77"; then
3354  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3355else
3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359  IFS=$as_save_IFS
3360  test -z "$as_dir" && as_dir=.
3361  for ac_exec_ext in '' $ac_executable_extensions; do
3362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363    ac_cv_prog_ac_ct_F77="$ac_prog"
3364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365    break 2
3366  fi
3367done
3368done
3369
3370fi
3371fi
3372ac_ct_F77=$ac_cv_prog_ac_ct_F77
3373if test -n "$ac_ct_F77"; then
3374  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3375echo "${ECHO_T}$ac_ct_F77" >&6
3376else
3377  echo "$as_me:$LINENO: result: no" >&5
3378echo "${ECHO_T}no" >&6
3379fi
3380
3381  test -n "$ac_ct_F77" && break
3382done
3383
3384  F77=$ac_ct_F77
3385fi
3386
3387
3388# Provide some information about the compiler.
3389echo "$as_me:3389:" \
3390     "checking for Fortran 77 compiler version" >&5
3391ac_compiler=`set X $ac_compile; echo $2`
3392{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3393  (eval $ac_compiler --version </dev/null >&5) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }
3397{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3398  (eval $ac_compiler -v </dev/null >&5) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }
3402{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3403  (eval $ac_compiler -V </dev/null >&5) 2>&5
3404  ac_status=$?
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); }
3407rm -f a.out
3408
3409# If we don't use `.F' as extension, the preprocessor is not run on the
3410# input file.  (Note that this only needs to work for GNU compilers.)
3411ac_save_ext=$ac_ext
3412ac_ext=F
3413echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3414echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3415if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3416  echo $ECHO_N "(cached) $ECHO_C" >&6
3417else
3418  cat >conftest.$ac_ext <<_ACEOF
3419      program main
3420#ifndef __GNUC__
3421       choke me
3422#endif
3423
3424      end
3425_ACEOF
3426rm -f conftest.$ac_objext
3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428  (eval $ac_compile) 2>conftest.er1
3429  ac_status=$?
3430  grep -v '^ *+' conftest.er1 >conftest.err
3431  rm -f conftest.er1
3432  cat conftest.err >&5
3433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434  (exit $ac_status); } &&
3435         { ac_try='test -z "$ac_f77_werror_flag"
3436                         || test ! -s conftest.err'
3437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438  (eval $ac_try) 2>&5
3439  ac_status=$?
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); }; } &&
3442         { ac_try='test -s conftest.$ac_objext'
3443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444  (eval $ac_try) 2>&5
3445  ac_status=$?
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); }; }; then
3448  ac_compiler_gnu=yes
3449else
3450  echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453ac_compiler_gnu=no
3454fi
3455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3457
3458fi
3459echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3460echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3461ac_ext=$ac_save_ext
3462ac_test_FFLAGS=${FFLAGS+set}
3463ac_save_FFLAGS=$FFLAGS
3464FFLAGS=
3465echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3466echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3467if test "${ac_cv_prog_f77_g+set}" = set; then
3468  echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470  FFLAGS=-g
3471cat >conftest.$ac_ext <<_ACEOF
3472      program main
3473
3474      end
3475_ACEOF
3476rm -f conftest.$ac_objext
3477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478  (eval $ac_compile) 2>conftest.er1
3479  ac_status=$?
3480  grep -v '^ *+' conftest.er1 >conftest.err
3481  rm -f conftest.er1
3482  cat conftest.err >&5
3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); } &&
3485         { ac_try='test -z "$ac_f77_werror_flag"
3486                         || test ! -s conftest.err'
3487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488  (eval $ac_try) 2>&5
3489  ac_status=$?
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); }; } &&
3492         { ac_try='test -s conftest.$ac_objext'
3493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494  (eval $ac_try) 2>&5
3495  ac_status=$?
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); }; }; then
3498  ac_cv_prog_f77_g=yes
3499else
3500  echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503ac_cv_prog_f77_g=no
3504fi
3505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506
3507fi
3508echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3509echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3510if test "$ac_test_FFLAGS" = set; then
3511  FFLAGS=$ac_save_FFLAGS
3512elif test $ac_cv_prog_f77_g = yes; then
3513  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3514    FFLAGS="-g -O2"
3515  else
3516    FFLAGS="-g"
3517  fi
3518else
3519  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3520    FFLAGS="-O2"
3521  else
3522    FFLAGS=
3523  fi
3524fi
3525
3526G77=`test $ac_compiler_gnu = yes && echo yes`
3527ac_ext=f
3528ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3529ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3531
3532else
3533  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3534echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3535fi
3536
3537FFLAGS="$save_fflags"
3538
3539# Check if a project specific FFLAGS variable has been set
3540if test x$COIN_PRJCT != x; then
3541  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3542  if test x$coin_tmp = xset; then
3543    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3544  fi
3545fi
3546
3547if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3548
3549  coin_add_fflags=
3550  coin_opt_fflags=
3551  coin_dbg_fflags=
3552  coin_warn_fflags=
3553
3554  if test "$G77" = "yes"; then
3555    coin_opt_fflags="-O3"
3556    coin_add_fflags="-pipe"
3557    coin_dbg_fflags="-g -O0"
3558  else
3559    case $build in
3560      *-cygwin* | *-mingw*)
3561        case $F77 in
3562          ifort* | */ifort* | IFORT* | */IFORT* )
3563            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3564              coin_opt_fflags='-MD -O3'
3565              coin_dbg_fflags='-MDd -debug'
3566            else
3567              coin_opt_fflags='-MT -O3'
3568              coin_dbg_fflags='-MTd -debug'
3569            fi
3570            coin_add_fflags='-fpp -nologo'
3571          ;;
3572          compile_f2c*)
3573            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3574              coin_opt_fflags='-MD -O2'
3575              coin_dbg_fflags='-MDd'
3576            else
3577              coin_opt_fflags='-MT -O2'
3578              coin_dbg_fflags='-MTd'
3579            fi
3580            coin_add_fflags='-nologo -wd4996'
3581          ;;
3582        esac
3583        ;;
3584      *-linux-*)
3585        case $F77 in
3586          ifc* | */ifc* | ifort* | */ifort*)
3587            coin_opt_fflags="-O3 -ip"
3588            coin_add_fflags="-cm -w90 -w95"
3589            coin_dbg_fflags="-g -CA -CB -CS"
3590            # Check if -i_dynamic is necessary (for new glibc library)
3591            FFLAGS=
3592            cat >conftest.$ac_ext <<_ACEOF
3593      program main
3594      write(*,*) 'Hello world'
3595      end
3596_ACEOF
3597rm -f conftest.$ac_objext conftest$ac_exeext
3598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3599  (eval $ac_link) 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } &&
3606         { ac_try='test -z "$ac_f77_werror_flag"
3607                         || test ! -s conftest.err'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; } &&
3613         { ac_try='test -s conftest$ac_exeext'
3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615  (eval $ac_try) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); }; }; then
3619  :
3620else
3621  echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624coin_add_fflags="-i_dynamic $coin_add_fflags"
3625fi
3626rm -f conftest.err conftest.$ac_objext \
3627      conftest$ac_exeext conftest.$ac_ext
3628            ;;
3629          pgf77* | */pgf77* | pgf90* | */pgf90*)
3630            coin_opt_fflags="-fast"
3631            coin_add_fflags="-Kieee -pc 64"
3632            coin_dbg_fflags="-g"
3633          ;;
3634        esac
3635        ;;
3636      *-ibm-*)
3637        case "$F77" in
3638          xlf* | */xlf* | mpxlf* | */mpxlf* )
3639            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3640            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3641            coin_dbg_fflags="-g -C"
3642            ;;
3643        esac
3644        ;;
3645      *-hp-*)
3646        coin_opt_fflags="+O3"
3647        coin_add_fflags="+U77"
3648        coin_dbg_fflags="-C -g"
3649        ;;
3650      *-*-solaris*)
3651        coin_opt_fflags="-O4"
3652        coin_dbg_fflags="-g"
3653        ;;
3654      *-sgi-*)
3655        coin_opt_fflags="-O5 -OPT:Olimit=0"
3656        coin_dbg_fflags="-g"
3657        ;;
3658    esac
3659  fi
3660
3661  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3662    coin_dbg_fflags="-g"
3663  fi
3664
3665  if test -z "$coin_opt_fflags"; then
3666    # Try if -O option works if nothing else is set
3667    FFLAGS=-O
3668    cat >conftest.$ac_ext <<_ACEOF
3669      program main
3670      integer i
3671      end
3672_ACEOF
3673rm -f conftest.$ac_objext conftest$ac_exeext
3674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675  (eval $ac_link) 2>conftest.er1
3676  ac_status=$?
3677  grep -v '^ *+' conftest.er1 >conftest.err
3678  rm -f conftest.er1
3679  cat conftest.err >&5
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); } &&
3682         { ac_try='test -z "$ac_f77_werror_flag"
3683                         || test ! -s conftest.err'
3684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685  (eval $ac_try) 2>&5
3686  ac_status=$?
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); }; } &&
3689         { ac_try='test -s conftest$ac_exeext'
3690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691  (eval $ac_try) 2>&5
3692  ac_status=$?
3693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694  (exit $ac_status); }; }; then
3695  coin_opt_fflags="-O"
3696else
3697  echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
3700fi
3701rm -f conftest.err conftest.$ac_objext \
3702      conftest$ac_exeext conftest.$ac_ext
3703  fi
3704
3705  # if PM doesn't want the warning messages, take them out
3706  if test x"$coin_skip_warn_fflags" = xyes; then
3707    coin_warn_fflags=
3708  fi
3709
3710  if test x${DBG_FFLAGS+set} != xset; then
3711    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3712  fi
3713  if test x${OPT_FFLAGS+set} != xset; then
3714    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3715  fi
3716
3717  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3718  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3719
3720  if test "$coin_debug_compile" = "true"; then
3721    FFLAGS="$DBG_FFLAGS"
3722  else
3723    FFLAGS="$OPT_FFLAGS"
3724  fi
3725else
3726  FFLAGS="$FFLAGS $ADD_FFLAGS"
3727  if test x${DBG_FFLAGS+set} != xset; then
3728    DBG_FFLAGS="$FFLAGS"
3729  fi
3730  if test x${OPT_FFLAGS+set} != xset; then
3731    OPT_FFLAGS="$FFLAGS"
3732  fi
3733fi
3734
3735# Try if FFLAGS works
3736if test "$F77" != "unavailable" ; then
3737  cat >conftest.$ac_ext <<_ACEOF
3738      program main
3739      integer i
3740      end
3741_ACEOF
3742rm -f conftest.$ac_objext conftest$ac_exeext
3743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3744  (eval $ac_link) 2>conftest.er1
3745  ac_status=$?
3746  grep -v '^ *+' conftest.er1 >conftest.err
3747  rm -f conftest.er1
3748  cat conftest.err >&5
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); } &&
3751         { ac_try='test -z "$ac_f77_werror_flag"
3752                         || test ! -s conftest.err'
3753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754  (eval $ac_try) 2>&5
3755  ac_status=$?
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); }; } &&
3758         { ac_try='test -s conftest$ac_exeext'
3759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760  (eval $ac_try) 2>&5
3761  ac_status=$?
3762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763  (exit $ac_status); }; }; then
3764  :
3765else
3766  echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769FFLAGS=
3770fi
3771rm -f conftest.err conftest.$ac_objext \
3772      conftest$ac_exeext conftest.$ac_ext
3773  if test -z "$FFLAGS"; then
3774    { 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
3775echo "$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;}
3776    FFLAGS='-O'
3777    cat >conftest.$ac_ext <<_ACEOF
3778      program main
3779      integer i
3780      end
3781_ACEOF
3782rm -f conftest.$ac_objext conftest$ac_exeext
3783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3784  (eval $ac_link) 2>conftest.er1
3785  ac_status=$?
3786  grep -v '^ *+' conftest.er1 >conftest.err
3787  rm -f conftest.er1
3788  cat conftest.err >&5
3789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790  (exit $ac_status); } &&
3791         { ac_try='test -z "$ac_f77_werror_flag"
3792                         || test ! -s conftest.err'
3793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794  (eval $ac_try) 2>&5
3795  ac_status=$?
3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797  (exit $ac_status); }; } &&
3798         { ac_try='test -s conftest$ac_exeext'
3799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800  (eval $ac_try) 2>&5
3801  ac_status=$?
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); }; }; then
3804  :
3805else
3806  echo "$as_me: failed program was:" >&5
3807sed 's/^/| /' conftest.$ac_ext >&5
3808
3809FFLAGS=
3810fi
3811rm -f conftest.err conftest.$ac_objext \
3812      conftest$ac_exeext conftest.$ac_ext
3813    if test -z "$FFLAGS"; then
3814      { 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
3815echo "$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;}
3816    fi
3817  fi
3818fi
3819
3820{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3821echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3822
3823
3824if test x"$MPIF77" = x; then :; else
3825  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3826echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3827  F77="$MPIF77"
3828fi
3829
3830# correct the LD variable if we use the intel fortran compiler in windows
3831case "$F77" in
3832  ifort* | */ifort* | IFORT* | */IFORT*)
3833    LD=link
3834    ;;
3835esac
3836
3837ac_ext=c
3838ac_cpp='$CPP $CPPFLAGS'
3839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
3843
3844
3845# Find out how to call Fortran from C and determine Fortran runtime libraries
3846
3847# get FLIBS
3848ac_ext=f
3849ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3850ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3852echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3853echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3854if test "${ac_cv_prog_f77_v+set}" = set; then
3855  echo $ECHO_N "(cached) $ECHO_C" >&6
3856else
3857  cat >conftest.$ac_ext <<_ACEOF
3858      program main
3859
3860      end
3861_ACEOF
3862rm -f conftest.$ac_objext
3863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864  (eval $ac_compile) 2>conftest.er1
3865  ac_status=$?
3866  grep -v '^ *+' conftest.er1 >conftest.err
3867  rm -f conftest.er1
3868  cat conftest.err >&5
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); } &&
3871         { ac_try='test -z "$ac_f77_werror_flag"
3872                         || test ! -s conftest.err'
3873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874  (eval $ac_try) 2>&5
3875  ac_status=$?
3876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877  (exit $ac_status); }; } &&
3878         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3884  ac_cv_prog_f77_v=
3885# Try some options frequently used verbose output
3886for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3887  cat >conftest.$ac_ext <<_ACEOF
3888      program main
3889
3890      end
3891_ACEOF
3892
3893# Compile and link our simple test program by passing a flag (argument
3894# 1 to this macro) to the Fortran compiler in order to get
3895# "verbose" output that we can then parse for the Fortran linker
3896# flags.
3897ac_save_FFLAGS=$FFLAGS
3898FFLAGS="$FFLAGS $ac_verb"
3899(eval echo $as_me:3899: \"$ac_link\") >&5
3900ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3901echo "$ac_f77_v_output" >&5
3902FFLAGS=$ac_save_FFLAGS
3903
3904rm -f conftest*
3905
3906# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3907# /foo, /bar, and /baz are search directories for the Fortran linker.
3908# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3909ac_f77_v_output="`echo $ac_f77_v_output |
3910        grep 'LPATH is:' |
3911        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3912
3913case $ac_f77_v_output in
3914  # If we are using xlf then replace all the commas with spaces.
3915  *xlfentry*)
3916    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3917
3918  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3919  # $LIBS confuse us, and the libraries appear later in the output anyway).
3920  *mGLOB_options_string*)
3921    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3922
3923  # If we are using Cray Fortran then delete quotes.
3924  # Use "\"" instead of '"' for font-lock-mode.
3925  # FIXME: a more general fix for quoted arguments with spaces?
3926  *cft90*)
3927    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3928esac
3929
3930
3931  # look for -l* and *.a constructs in the output
3932  for ac_arg in $ac_f77_v_output; do
3933     case $ac_arg in
3934        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3935          ac_cv_prog_f77_v=$ac_verb
3936          break 2 ;;
3937     esac
3938  done
3939done
3940if test -z "$ac_cv_prog_f77_v"; then
3941   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3942echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3943fi
3944else
3945  echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3949echo "$as_me: WARNING: compilation failed" >&2;}
3950fi
3951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952
3953fi
3954echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3955echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3956echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3957echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3958if test "${ac_cv_f77_libs+set}" = set; then
3959  echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961  if test "x$FLIBS" != "x"; then
3962  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3963else
3964
3965cat >conftest.$ac_ext <<_ACEOF
3966      program main
3967
3968      end
3969_ACEOF
3970
3971# Compile and link our simple test program by passing a flag (argument
3972# 1 to this macro) to the Fortran compiler in order to get
3973# "verbose" output that we can then parse for the Fortran linker
3974# flags.
3975ac_save_FFLAGS=$FFLAGS
3976FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3977(eval echo $as_me:3977: \"$ac_link\") >&5
3978ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3979echo "$ac_f77_v_output" >&5
3980FFLAGS=$ac_save_FFLAGS
3981
3982rm -f conftest*
3983
3984# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3985# /foo, /bar, and /baz are search directories for the Fortran linker.
3986# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3987ac_f77_v_output="`echo $ac_f77_v_output |
3988        grep 'LPATH is:' |
3989        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3990
3991case $ac_f77_v_output in
3992  # If we are using xlf then replace all the commas with spaces.
3993  *xlfentry*)
3994    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3995
3996  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3997  # $LIBS confuse us, and the libraries appear later in the output anyway).
3998  *mGLOB_options_string*)
3999    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4000
4001  # If we are using Cray Fortran then delete quotes.
4002  # Use "\"" instead of '"' for font-lock-mode.
4003  # FIXME: a more general fix for quoted arguments with spaces?
4004  *cft90*)
4005    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4006esac
4007
4008
4009
4010ac_cv_f77_libs=
4011
4012# Save positional arguments (if any)
4013ac_save_positional="$@"
4014
4015set X $ac_f77_v_output
4016while test $# != 1; do
4017  shift
4018  ac_arg=$1
4019  case $ac_arg in
4020        [\\/]*.a | ?:[\\/]*.a)
4021            ac_exists=false
4022  for ac_i in $ac_cv_f77_libs; do
4023    if test x"$ac_arg" = x"$ac_i"; then
4024      ac_exists=true
4025      break
4026    fi
4027  done
4028
4029  if test x"$ac_exists" = xtrue; then
4030  :
4031else
4032  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4033fi
4034
4035          ;;
4036        -bI:*)
4037            ac_exists=false
4038  for ac_i in $ac_cv_f77_libs; do
4039    if test x"$ac_arg" = x"$ac_i"; then
4040      ac_exists=true
4041      break
4042    fi
4043  done
4044
4045  if test x"$ac_exists" = xtrue; then
4046  :
4047else
4048  if test "$ac_compiler_gnu" = yes; then
4049  for ac_link_opt in $ac_arg; do
4050    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4051  done
4052else
4053  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4054fi
4055fi
4056
4057          ;;
4058          # Ignore these flags.
4059        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4060          ;;
4061        -lkernel32)
4062          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4063          ;;
4064        -[LRuY])
4065          # These flags, when seen by themselves, take an argument.
4066          # We remove the space between option and argument and re-iterate
4067          # unless we find an empty arg or a new option (starting with -)
4068          case $2 in
4069             "" | -*);;
4070             *)
4071                ac_arg="$ac_arg$2"
4072                shift; shift
4073                set X $ac_arg "$@"
4074                ;;
4075          esac
4076          ;;
4077        -YP,*)
4078          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4079              ac_exists=false
4080  for ac_i in $ac_cv_f77_libs; do
4081    if test x"$ac_j" = x"$ac_i"; then
4082      ac_exists=true
4083      break
4084    fi
4085  done
4086
4087  if test x"$ac_exists" = xtrue; then
4088  :
4089else
4090  ac_arg="$ac_arg $ac_j"
4091                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4092fi
4093
4094          done
4095          ;;
4096        -[lLR]*)
4097            ac_exists=false
4098  for ac_i in $ac_cv_f77_libs; do
4099    if test x"$ac_arg" = x"$ac_i"; then
4100      ac_exists=true
4101      break
4102    fi
4103  done
4104
4105  if test x"$ac_exists" = xtrue; then
4106  :
4107else
4108  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4109fi
4110
4111          ;;
4112          # Ignore everything else.
4113  esac
4114done
4115# restore positional arguments
4116set X $ac_save_positional; shift
4117
4118# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4119# then we insist that the "run path" must be an absolute path (i.e. it
4120# must begin with a "/").
4121case `(uname -sr) 2>/dev/null` in
4122   "SunOS 5"*)
4123      ac_ld_run_path=`echo $ac_f77_v_output |
4124                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4125      test "x$ac_ld_run_path" != x &&
4126        if test "$ac_compiler_gnu" = yes; then
4127  for ac_link_opt in $ac_ld_run_path; do
4128    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4129  done
4130else
4131  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4132fi
4133      ;;
4134esac
4135fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4136
4137fi
4138echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4139echo "${ECHO_T}$ac_cv_f77_libs" >&6
4140FLIBS="$ac_cv_f77_libs"
4141
4142
4143ac_ext=c
4144ac_cpp='$CPP $CPPFLAGS'
4145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148
4149orig_FLIBS="$FLIBS"
4150
4151# If FLIBS has been set by the user, we just restore its value here
4152if test x"$save_FLIBS" != x; then
4153  FLIBS="$save_FLIBS"
4154else
4155  # This is to correct a missing exclusion in autoconf 2.59
4156  if test x"$FLIBS" != x; then
4157    my_flibs=
4158    for flag in $FLIBS; do
4159      case $flag in
4160        -lcrt*.o) ;;
4161        -lcygwin) ;;
4162        -lgcc*)   ;;
4163               *) my_flibs="$my_flibs $flag" ;;
4164      esac
4165    done
4166    FLIBS="$my_flibs"
4167  fi
4168
4169  case $build in
4170  # The following is a fix to define FLIBS for ifort on Windows
4171  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4172  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4173  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4174  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4175  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4176     *-cygwin* | *-mingw*)
4177       case "$F77" in
4178#         ifort* | */ifort* | IFORT* | */IFORT*)
4179#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4180#           if "$coin_debug_compile" = true ; then
4181#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4182#           else
4183#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4184#           fi
4185#           ;;
4186         compile_f2c*)
4187           FLIBS=`$F77 -FLIBS` ;;
4188       esac;;
4189     *-hp-*)
4190         FLIBS="$FLIBS -lm";;
4191     *-ibm-*)
4192         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4193     *-linux-*)
4194       case "$F77" in
4195         pgf77* | */pgf77* | pgf90* | */pgf90*)
4196# ask linker to go through the archives multiple times
4197# (the Fortran compiler seems to do that automatically...)
4198           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4199       esac
4200  esac
4201  ac_cv_f77_libs="$FLIBS"
4202fi
4203
4204if test "x$orig_FLIBS" != "x$FLIBS" ; then
4205  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4206echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4207fi
4208
4209ac_ext=f
4210ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4211ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4213
4214echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4215echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4216if test "${ac_cv_f77_dummy_main+set}" = set; then
4217  echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219  ac_f77_dm_save_LIBS=$LIBS
4220 LIBS="$LIBS $FLIBS"
4221 ac_fortran_dm_var=F77_DUMMY_MAIN
4222 ac_ext=c
4223ac_cpp='$CPP $CPPFLAGS'
4224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227
4228 # First, try linking without a dummy main:
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h.  */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h.  */
4235
4236#ifdef F77_DUMMY_MAIN
4237
4238#  ifdef __cplusplus
4239     extern "C"
4240#  endif
4241   int F77_DUMMY_MAIN() { return 1; }
4242
4243#endif
4244int
4245main ()
4246{
4247
4248  ;
4249  return 0;
4250}
4251_ACEOF
4252rm -f conftest.$ac_objext conftest$ac_exeext
4253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254  (eval $ac_link) 2>conftest.er1
4255  ac_status=$?
4256  grep -v '^ *+' conftest.er1 >conftest.err
4257  rm -f conftest.er1
4258  cat conftest.err >&5
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); } &&
4261         { ac_try='test -z "$ac_c_werror_flag"
4262                         || test ! -s conftest.err'
4263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264  (eval $ac_try) 2>&5
4265  ac_status=$?
4266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267  (exit $ac_status); }; } &&
4268         { ac_try='test -s conftest$ac_exeext'
4269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270  (eval $ac_try) 2>&5
4271  ac_status=$?
4272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273  (exit $ac_status); }; }; then
4274  ac_cv_fortran_dummy_main=none
4275else
4276  echo "$as_me: failed program was:" >&5
4277sed 's/^/| /' conftest.$ac_ext >&5
4278
4279ac_cv_fortran_dummy_main=unknown
4280fi
4281rm -f conftest.err conftest.$ac_objext \
4282      conftest$ac_exeext conftest.$ac_ext
4283
4284 if test $ac_cv_fortran_dummy_main = unknown; then
4285   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4286     cat >conftest.$ac_ext <<_ACEOF
4287/* confdefs.h.  */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h.  */
4292#define $ac_fortran_dm_var $ac_func
4293#ifdef F77_DUMMY_MAIN
4294
4295#  ifdef __cplusplus
4296     extern "C"
4297#  endif
4298   int F77_DUMMY_MAIN() { return 1; }
4299
4300#endif
4301int
4302main ()
4303{
4304
4305  ;
4306  return 0;
4307}
4308_ACEOF
4309rm -f conftest.$ac_objext conftest$ac_exeext
4310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4311  (eval $ac_link) 2>conftest.er1
4312  ac_status=$?
4313  grep -v '^ *+' conftest.er1 >conftest.err
4314  rm -f conftest.er1
4315  cat conftest.err >&5
4316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317  (exit $ac_status); } &&
4318         { ac_try='test -z "$ac_c_werror_flag"
4319                         || test ! -s conftest.err'
4320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321  (eval $ac_try) 2>&5
4322  ac_status=$?
4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324  (exit $ac_status); }; } &&
4325         { ac_try='test -s conftest$ac_exeext'
4326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327  (eval $ac_try) 2>&5
4328  ac_status=$?
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); }; }; then
4331  ac_cv_fortran_dummy_main=$ac_func; break
4332else
4333  echo "$as_me: failed program was:" >&5
4334sed 's/^/| /' conftest.$ac_ext >&5
4335
4336fi
4337rm -f conftest.err conftest.$ac_objext \
4338      conftest$ac_exeext conftest.$ac_ext
4339   done
4340 fi
4341 ac_ext=f
4342ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4343ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4345 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4346 rm -f conftest*
4347 LIBS=$ac_f77_dm_save_LIBS
4348
4349fi
4350echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4351echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4352F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4353if test "$F77_DUMMY_MAIN" != unknown; then
4354  if test $F77_DUMMY_MAIN != none; then
4355
4356cat >>confdefs.h <<_ACEOF
4357#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4358_ACEOF
4359
4360  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4361
4362cat >>confdefs.h <<\_ACEOF
4363#define FC_DUMMY_MAIN_EQ_F77 1
4364_ACEOF
4365
4366  fi
4367fi
4368else
4369  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4370See \`config.log' for more details." >&5
4371echo "$as_me: error: linking to Fortran libraries from C fails
4372See \`config.log' for more details." >&2;}
4373   { (exit 1); exit 1; }; }
4374fi
4375
4376
4377ac_ext=f
4378ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4379ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4381
4382ac_ext=f
4383ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4384ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4386echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4387echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4388if test "${ac_cv_f77_mangling+set}" = set; then
4389  echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391  cat >conftest.$ac_ext <<_ACEOF
4392      subroutine foobar()
4393      return
4394      end
4395      subroutine foo_bar()
4396      return
4397      end
4398_ACEOF
4399rm -f conftest.$ac_objext
4400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401  (eval $ac_compile) 2>conftest.er1
4402  ac_status=$?
4403  grep -v '^ *+' conftest.er1 >conftest.err
4404  rm -f conftest.er1
4405  cat conftest.err >&5
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); } &&
4408         { ac_try='test -z "$ac_f77_werror_flag"
4409                         || test ! -s conftest.err'
4410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411  (eval $ac_try) 2>&5
4412  ac_status=$?
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); }; } &&
4415         { ac_try='test -s conftest.$ac_objext'
4416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417  (eval $ac_try) 2>&5
4418  ac_status=$?
4419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420  (exit $ac_status); }; }; then
4421  mv conftest.$ac_objext cfortran_test.$ac_objext
4422
4423  ac_save_LIBS=$LIBS
4424  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4425
4426  ac_ext=c
4427ac_cpp='$CPP $CPPFLAGS'
4428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431  ac_success=no
4432  for ac_foobar in foobar FOOBAR; do
4433    for ac_underscore in "" "_"; do
4434      ac_func="$ac_foobar$ac_underscore"
4435      cat >conftest.$ac_ext <<_ACEOF
4436/* confdefs.h.  */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
4440/* end confdefs.h.  */
4441
4442/* Override any gcc2 internal prototype to avoid an error.  */
4443#ifdef __cplusplus
4444extern "C"
4445#endif
4446/* We use char because int might match the return type of a gcc2
4447   builtin and then its argument prototype would still apply.  */
4448char $ac_func ();
4449#ifdef F77_DUMMY_MAIN
4450
4451#  ifdef __cplusplus
4452     extern "C"
4453#  endif
4454   int F77_DUMMY_MAIN() { return 1; }
4455
4456#endif
4457int
4458main ()
4459{
4460$ac_func ();
4461  ;
4462  return 0;
4463}
4464_ACEOF
4465rm -f conftest.$ac_objext conftest$ac_exeext
4466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467  (eval $ac_link) 2>conftest.er1
4468  ac_status=$?
4469  grep -v '^ *+' conftest.er1 >conftest.err
4470  rm -f conftest.er1
4471  cat conftest.err >&5
4472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473  (exit $ac_status); } &&
4474         { ac_try='test -z "$ac_c_werror_flag"
4475                         || test ! -s conftest.err'
4476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477  (eval $ac_try) 2>&5
4478  ac_status=$?
4479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480  (exit $ac_status); }; } &&
4481         { ac_try='test -s conftest$ac_exeext'
4482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483  (eval $ac_try) 2>&5
4484  ac_status=$?
4485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486  (exit $ac_status); }; }; then
4487  ac_success=yes; break 2
4488else
4489  echo "$as_me: failed program was:" >&5
4490sed 's/^/| /' conftest.$ac_ext >&5
4491
4492fi
4493rm -f conftest.err conftest.$ac_objext \
4494      conftest$ac_exeext conftest.$ac_ext
4495    done
4496  done
4497  ac_ext=f
4498ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4499ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4501
4502  if test "$ac_success" = "yes"; then
4503     case $ac_foobar in
4504        foobar)
4505           ac_case=lower
4506           ac_foo_bar=foo_bar
4507           ;;
4508        FOOBAR)
4509           ac_case=upper
4510           ac_foo_bar=FOO_BAR
4511           ;;
4512     esac
4513
4514     ac_ext=c
4515ac_cpp='$CPP $CPPFLAGS'
4516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519     ac_success_extra=no
4520     for ac_extra in "" "_"; do
4521        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4522        cat >conftest.$ac_ext <<_ACEOF
4523/* confdefs.h.  */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h.  */
4528
4529/* Override any gcc2 internal prototype to avoid an error.  */
4530#ifdef __cplusplus
4531extern "C"
4532#endif
4533/* We use char because int might match the return type of a gcc2
4534   builtin and then its argument prototype would still apply.  */
4535char $ac_func ();
4536#ifdef F77_DUMMY_MAIN
4537
4538#  ifdef __cplusplus
4539     extern "C"
4540#  endif
4541   int F77_DUMMY_MAIN() { return 1; }
4542
4543#endif
4544int
4545main ()
4546{
4547$ac_func ();
4548  ;
4549  return 0;
4550}
4551_ACEOF
4552rm -f conftest.$ac_objext conftest$ac_exeext
4553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4554  (eval $ac_link) 2>conftest.er1
4555  ac_status=$?
4556  grep -v '^ *+' conftest.er1 >conftest.err
4557  rm -f conftest.er1
4558  cat conftest.err >&5
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); } &&
4561         { ac_try='test -z "$ac_c_werror_flag"
4562                         || test ! -s conftest.err'
4563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564  (eval $ac_try) 2>&5
4565  ac_status=$?
4566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567  (exit $ac_status); }; } &&
4568         { ac_try='test -s conftest$ac_exeext'
4569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570  (eval $ac_try) 2>&5
4571  ac_status=$?
4572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573  (exit $ac_status); }; }; then
4574  ac_success_extra=yes; break
4575else
4576  echo "$as_me: failed program was:" >&5
4577sed 's/^/| /' conftest.$ac_ext >&5
4578
4579fi
4580rm -f conftest.err conftest.$ac_objext \
4581      conftest$ac_exeext conftest.$ac_ext
4582     done
4583     ac_ext=f
4584ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4585ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4587
4588     if test "$ac_success_extra" = "yes"; then
4589        ac_cv_f77_mangling="$ac_case case"
4590        if test -z "$ac_underscore"; then
4591           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4592        else
4593           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4594        fi
4595        if test -z "$ac_extra"; then
4596           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4597        else
4598           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4599        fi
4600      else
4601        ac_cv_f77_mangling="unknown"
4602      fi
4603  else
4604     ac_cv_f77_mangling="unknown"
4605  fi
4606
4607  LIBS=$ac_save_LIBS
4608  rm -f cfortran_test* conftest*
4609else
4610  echo "$as_me: failed program was:" >&5
4611sed 's/^/| /' conftest.$ac_ext >&5
4612
4613{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4614See \`config.log' for more details." >&5
4615echo "$as_me: error: cannot compile a simple Fortran program
4616See \`config.log' for more details." >&2;}
4617   { (exit 1); exit 1; }; }
4618fi
4619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620
4621fi
4622echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4623echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4624
4625ac_ext=f
4626ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4627ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4629
4630
4631ac_ext=f
4632ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4633ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4635
4636ac_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
4642case $ac_cv_f77_mangling in
4643  "lower case, no underscore, no extra underscore")
4644          cat >>confdefs.h <<\_ACEOF
4645#define F77_FUNC(name,NAME) name
4646_ACEOF
4647
4648          cat >>confdefs.h <<\_ACEOF
4649#define F77_FUNC_(name,NAME) name
4650_ACEOF
4651 ;;
4652  "lower case, no underscore, extra underscore")
4653          cat >>confdefs.h <<\_ACEOF
4654#define F77_FUNC(name,NAME) name
4655_ACEOF
4656
4657          cat >>confdefs.h <<\_ACEOF
4658#define F77_FUNC_(name,NAME) name ## _
4659_ACEOF
4660 ;;
4661  "lower case, underscore, no extra underscore")
4662          cat >>confdefs.h <<\_ACEOF
4663#define F77_FUNC(name,NAME) name ## _
4664_ACEOF
4665
4666          cat >>confdefs.h <<\_ACEOF
4667#define F77_FUNC_(name,NAME) name ## _
4668_ACEOF
4669 ;;
4670  "lower case, underscore, extra underscore")
4671          cat >>confdefs.h <<\_ACEOF
4672#define F77_FUNC(name,NAME) name ## _
4673_ACEOF
4674
4675          cat >>confdefs.h <<\_ACEOF
4676#define F77_FUNC_(name,NAME) name ## __
4677_ACEOF
4678 ;;
4679  "upper case, no underscore, no extra underscore")
4680          cat >>confdefs.h <<\_ACEOF
4681#define F77_FUNC(name,NAME) NAME
4682_ACEOF
4683
4684          cat >>confdefs.h <<\_ACEOF
4685#define F77_FUNC_(name,NAME) NAME
4686_ACEOF
4687 ;;
4688  "upper case, no underscore, extra underscore")
4689          cat >>confdefs.h <<\_ACEOF
4690#define F77_FUNC(name,NAME) NAME
4691_ACEOF
4692
4693          cat >>confdefs.h <<\_ACEOF
4694#define F77_FUNC_(name,NAME) NAME ## _
4695_ACEOF
4696 ;;
4697  "upper case, underscore, no extra underscore")
4698          cat >>confdefs.h <<\_ACEOF
4699#define F77_FUNC(name,NAME) NAME ## _
4700_ACEOF
4701
4702          cat >>confdefs.h <<\_ACEOF
4703#define F77_FUNC_(name,NAME) NAME ## _
4704_ACEOF
4705 ;;
4706  "upper case, underscore, extra underscore")
4707          cat >>confdefs.h <<\_ACEOF
4708#define F77_FUNC(name,NAME) NAME ## _
4709_ACEOF
4710
4711          cat >>confdefs.h <<\_ACEOF
4712#define F77_FUNC_(name,NAME) NAME ## __
4713_ACEOF
4714 ;;
4715  *)
4716          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4717echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4718          ;;
4719esac
4720
4721ac_ext=f
4722ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4723ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4725
4726ac_ext=c
4727ac_cpp='$CPP $CPPFLAGS'
4728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731
4732
4733
4734
4735# Add FLIBS to MUMPS_PCLIBS, so that they get into the .pc files
4736MUMPS_PCLIBS="$FLIBS"
4737
4738# We need to translate the result from autoconf to what MUMPS wants
4739case "$ac_cv_f77_mangling" in
4740  "lower case, no underscore, no extra underscore")
4741  ;;
4742  "lower case, underscore, no extra underscore")
4743  MY_DEFS="-DAdd_"
4744  ;;
4745  "lower case, no underscore, extra underscore")
4746  MY_DEFS="-DAdd_"
4747  ;;
4748  "lower case, underscore, extra underscore")
4749  MY_DEFS="-DAdd__"
4750  ;;
4751  "upper case, no underscore, no extra underscore")
4752  MY_DEFS="-DUPPER"
4753  ;;
4754  "upper case, no underscore, extra underscore")
4755  MY_DEFS="-DUPPER"
4756  ;;
4757  "upper case, underscore, no extra underscore")
4758  MY_DEFS="-DUPPER"
4759  ;;
4760  "upper case, underscore, extra underscore")
4761  MY_DEFS="-DUPPER"
4762  ;;
4763esac
4764
4765# Mumps can make use of pthreads
4766# check for pthread.h header file and library
4767# Check whether --enable-pthread-mumps or --disable-pthread-mumps was given.
4768if test "${enable_pthread_mumps+set}" = set; then
4769  enableval="$enable_pthread_mumps"
4770  enable_pthread_mumps=$enableval
4771else
4772  enable_pthread_mumps=no
4773fi;
4774if test $enable_pthread_mumps = yes ; then
4775  ac_ext=c
4776ac_cpp='$CPP $CPPFLAGS'
4777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4781echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4782# On Suns, sometimes $CPP names a directory.
4783if test -n "$CPP" && test -d "$CPP"; then
4784  CPP=
4785fi
4786if test -z "$CPP"; then
4787  if test "${ac_cv_prog_CPP+set}" = set; then
4788  echo $ECHO_N "(cached) $ECHO_C" >&6
4789else
4790      # Double quotes because CPP needs to be expanded
4791    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4792    do
4793      ac_preproc_ok=false
4794for ac_c_preproc_warn_flag in '' yes
4795do
4796  # Use a header file that comes with gcc, so configuring glibc
4797  # with a fresh cross-compiler works.
4798  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4799  # <limits.h> exists even on freestanding compilers.
4800  # On the NeXT, cc -E runs the code through the compiler's parser,
4801  # not just through cpp. "Syntax error" is here to catch this case.
4802  cat >conftest.$ac_ext <<_ACEOF
4803/* confdefs.h.  */
4804_ACEOF
4805cat confdefs.h >>conftest.$ac_ext
4806cat >>conftest.$ac_ext <<_ACEOF
4807/* end confdefs.h.  */
4808#ifdef __STDC__
4809# include <limits.h>
4810#else
4811# include <assert.h>
4812#endif
4813                     Syntax error
4814_ACEOF
4815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4816  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4817  ac_status=$?
4818  grep -v '^ *+' conftest.er1 >conftest.err
4819  rm -f conftest.er1
4820  cat conftest.err >&5
4821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822  (exit $ac_status); } >/dev/null; then
4823  if test -s conftest.err; then
4824    ac_cpp_err=$ac_c_preproc_warn_flag
4825    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4826  else
4827    ac_cpp_err=
4828  fi
4829else
4830  ac_cpp_err=yes
4831fi
4832if test -z "$ac_cpp_err"; then
4833  :
4834else
4835  echo "$as_me: failed program was:" >&5
4836sed 's/^/| /' conftest.$ac_ext >&5
4837
4838  # Broken: fails on valid input.
4839continue
4840fi
4841rm -f conftest.err conftest.$ac_ext
4842
4843  # OK, works on sane cases.  Now check whether non-existent headers
4844  # can be detected and how.
4845  cat >conftest.$ac_ext <<_ACEOF
4846/* confdefs.h.  */
4847_ACEOF
4848cat confdefs.h >>conftest.$ac_ext
4849cat >>conftest.$ac_ext <<_ACEOF
4850/* end confdefs.h.  */
4851#include <ac_nonexistent.h>
4852_ACEOF
4853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4854  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4855  ac_status=$?
4856  grep -v '^ *+' conftest.er1 >conftest.err
4857  rm -f conftest.er1
4858  cat conftest.err >&5
4859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860  (exit $ac_status); } >/dev/null; then
4861  if test -s conftest.err; then
4862    ac_cpp_err=$ac_c_preproc_warn_flag
4863    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4864  else
4865    ac_cpp_err=
4866  fi
4867else
4868  ac_cpp_err=yes
4869fi
4870if test -z "$ac_cpp_err"; then
4871  # Broken: success on invalid input.
4872continue
4873else
4874  echo "$as_me: failed program was:" >&5
4875sed 's/^/| /' conftest.$ac_ext >&5
4876
4877  # Passes both tests.
4878ac_preproc_ok=:
4879break
4880fi
4881rm -f conftest.err conftest.$ac_ext
4882
4883done
4884# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4885rm -f conftest.err conftest.$ac_ext
4886if $ac_preproc_ok; then
4887  break
4888fi
4889
4890    done
4891    ac_cv_prog_CPP=$CPP
4892
4893fi
4894  CPP=$ac_cv_prog_CPP
4895else
4896  ac_cv_prog_CPP=$CPP
4897fi
4898echo "$as_me:$LINENO: result: $CPP" >&5
4899echo "${ECHO_T}$CPP" >&6
4900ac_preproc_ok=false
4901for ac_c_preproc_warn_flag in '' yes
4902do
4903  # Use a header file that comes with gcc, so configuring glibc
4904  # with a fresh cross-compiler works.
4905  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906  # <limits.h> exists even on freestanding compilers.
4907  # On the NeXT, cc -E runs the code through the compiler's parser,
4908  # not just through cpp. "Syntax error" is here to catch this case.
4909  cat >conftest.$ac_ext <<_ACEOF
4910/* confdefs.h.  */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h.  */
4915#ifdef __STDC__
4916# include <limits.h>
4917#else
4918# include <assert.h>
4919#endif
4920                     Syntax error
4921_ACEOF
4922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4923  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4924  ac_status=$?
4925  grep -v '^ *+' conftest.er1 >conftest.err
4926  rm -f conftest.er1
4927  cat conftest.err >&5
4928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929  (exit $ac_status); } >/dev/null; then
4930  if test -s conftest.err; then
4931    ac_cpp_err=$ac_c_preproc_warn_flag
4932    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4933  else
4934    ac_cpp_err=
4935  fi
4936else
4937  ac_cpp_err=yes
4938fi
4939if test -z "$ac_cpp_err"; then
4940  :
4941else
4942  echo "$as_me: failed program was:" >&5
4943sed 's/^/| /' conftest.$ac_ext >&5
4944
4945  # Broken: fails on valid input.
4946continue
4947fi
4948rm -f conftest.err conftest.$ac_ext
4949
4950  # OK, works on sane cases.  Now check whether non-existent headers
4951  # can be detected and how.
4952  cat >conftest.$ac_ext <<_ACEOF
4953/* confdefs.h.  */
4954_ACEOF
4955cat confdefs.h >>conftest.$ac_ext
4956cat >>conftest.$ac_ext <<_ACEOF
4957/* end confdefs.h.  */
4958#include <ac_nonexistent.h>
4959_ACEOF
4960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4962  ac_status=$?
4963  grep -v '^ *+' conftest.er1 >conftest.err
4964  rm -f conftest.er1
4965  cat conftest.err >&5
4966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967  (exit $ac_status); } >/dev/null; then
4968  if test -s conftest.err; then
4969    ac_cpp_err=$ac_c_preproc_warn_flag
4970    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4971  else
4972    ac_cpp_err=
4973  fi
4974else
4975  ac_cpp_err=yes
4976fi
4977if test -z "$ac_cpp_err"; then
4978  # Broken: success on invalid input.
4979continue
4980else
4981  echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
4984  # Passes both tests.
4985ac_preproc_ok=:
4986break
4987fi
4988rm -f conftest.err conftest.$ac_ext
4989
4990done
4991# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4992rm -f conftest.err conftest.$ac_ext
4993if $ac_preproc_ok; then
4994  :
4995else
4996  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4997See \`config.log' for more details." >&5
4998echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4999See \`config.log' for more details." >&2;}
5000   { (exit 1); exit 1; }; }
5001fi
5002
5003ac_ext=c
5004ac_cpp='$CPP $CPPFLAGS'
5005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008
5009
5010echo "$as_me:$LINENO: checking for egrep" >&5
5011echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5012if test "${ac_cv_prog_egrep+set}" = set; then
5013  echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5016    then ac_cv_prog_egrep='grep -E'
5017    else ac_cv_prog_egrep='egrep'
5018    fi
5019fi
5020echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5021echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5022 EGREP=$ac_cv_prog_egrep
5023
5024
5025echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5026echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5027if test "${ac_cv_header_stdc+set}" = set; then
5028  echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030  cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h.  */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h.  */
5036#include <stdlib.h>
5037#include <stdarg.h>
5038#include <string.h>
5039#include <float.h>
5040
5041#ifdef F77_DUMMY_MAIN
5042
5043#  ifdef __cplusplus
5044     extern "C"
5045#  endif
5046   int F77_DUMMY_MAIN() { return 1; }
5047
5048#endif
5049int
5050main ()
5051{
5052
5053  ;
5054  return 0;
5055}
5056_ACEOF
5057rm -f conftest.$ac_objext
5058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5059  (eval $ac_compile) 2>conftest.er1
5060  ac_status=$?
5061  grep -v '^ *+' conftest.er1 >conftest.err
5062  rm -f conftest.er1
5063  cat conftest.err >&5
5064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065  (exit $ac_status); } &&
5066         { ac_try='test -z "$ac_c_werror_flag"
5067                         || test ! -s conftest.err'
5068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069  (eval $ac_try) 2>&5
5070  ac_status=$?
5071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072  (exit $ac_status); }; } &&
5073         { ac_try='test -s conftest.$ac_objext'
5074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075  (eval $ac_try) 2>&5
5076  ac_status=$?
5077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078  (exit $ac_status); }; }; then
5079  ac_cv_header_stdc=yes
5080else
5081  echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
5084ac_cv_header_stdc=no
5085fi
5086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5087
5088if test $ac_cv_header_stdc = yes; then
5089  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5090  cat >conftest.$ac_ext <<_ACEOF
5091/* confdefs.h.  */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h.  */
5096#include <string.h>
5097
5098_ACEOF
5099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5100  $EGREP "memchr" >/dev/null 2>&1; then
5101  :
5102else
5103  ac_cv_header_stdc=no
5104fi
5105rm -f conftest*
5106
5107fi
5108
5109if test $ac_cv_header_stdc = yes; then
5110  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5111  cat >conftest.$ac_ext <<_ACEOF
5112/* confdefs.h.  */
5113_ACEOF
5114cat confdefs.h >>conftest.$ac_ext
5115cat >>conftest.$ac_ext <<_ACEOF
5116/* end confdefs.h.  */
5117#include <stdlib.h>
5118
5119_ACEOF
5120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5121  $EGREP "free" >/dev/null 2>&1; then
5122  :
5123else
5124  ac_cv_header_stdc=no
5125fi
5126rm -f conftest*
5127
5128fi
5129
5130if test $ac_cv_header_stdc = yes; then
5131  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5132  if test "$cross_compiling" = yes; then
5133  :
5134else
5135  cat >conftest.$ac_ext <<_ACEOF
5136/* confdefs.h.  */
5137_ACEOF
5138cat confdefs.h >>conftest.$ac_ext
5139cat >>conftest.$ac_ext <<_ACEOF
5140/* end confdefs.h.  */
5141#include <ctype.h>
5142#if ((' ' & 0x0FF) == 0x020)
5143# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5144# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5145#else
5146# define ISLOWER(c) \
5147                   (('a' <= (c) && (c) <= 'i') \
5148                     || ('j' <= (c) && (c) <= 'r') \
5149                     || ('s' <= (c) && (c) <= 'z'))
5150# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5151#endif
5152
5153#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5154int
5155main ()
5156{
5157  int i;
5158  for (i = 0; i < 256; i++)
5159    if (XOR (islower (i), ISLOWER (i))
5160        || toupper (i) != TOUPPER (i))
5161      exit(2);
5162  exit (0);
5163}
5164_ACEOF
5165rm -f conftest$ac_exeext
5166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5167  (eval $ac_link) 2>&5
5168  ac_status=$?
5169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172  (eval $ac_try) 2>&5
5173  ac_status=$?
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); }; }; then
5176  :
5177else
5178  echo "$as_me: program exited with status $ac_status" >&5
5179echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
5182( exit $ac_status )
5183ac_cv_header_stdc=no
5184fi
5185rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5186fi
5187fi
5188fi
5189echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5190echo "${ECHO_T}$ac_cv_header_stdc" >&6
5191if test $ac_cv_header_stdc = yes; then
5192
5193cat >>confdefs.h <<\_ACEOF
5194#define STDC_HEADERS 1
5195_ACEOF
5196
5197fi
5198
5199# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5210                  inttypes.h stdint.h unistd.h
5211do
5212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5213echo "$as_me:$LINENO: checking for $ac_header" >&5
5214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5215if eval "test \"\${$as_ac_Header+set}\" = set"; then
5216  echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218  cat >conftest.$ac_ext <<_ACEOF
5219/* confdefs.h.  */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h.  */
5224$ac_includes_default
5225
5226#include <$ac_header>
5227_ACEOF
5228rm -f conftest.$ac_objext
5229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230  (eval $ac_compile) 2>conftest.er1
5231  ac_status=$?
5232  grep -v '^ *+' conftest.er1 >conftest.err
5233  rm -f conftest.er1
5234  cat conftest.err >&5
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); } &&
5237         { ac_try='test -z "$ac_c_werror_flag"
5238                         || test ! -s conftest.err'
5239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240  (eval $ac_try) 2>&5
5241  ac_status=$?
5242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243  (exit $ac_status); }; } &&
5244         { ac_try='test -s conftest.$ac_objext'
5245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246  (eval $ac_try) 2>&5
5247  ac_status=$?
5248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249  (exit $ac_status); }; }; then
5250  eval "$as_ac_Header=yes"
5251else
5252  echo "$as_me: failed program was:" >&5
5253sed 's/^/| /' conftest.$ac_ext >&5
5254
5255eval "$as_ac_Header=no"
5256fi
5257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5258fi
5259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5261if test `eval echo '${'$as_ac_Header'}'` = yes; then
5262  cat >>confdefs.h <<_ACEOF
5263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5264_ACEOF
5265
5266fi
5267
5268done
5269
5270
5271#if test x"" = x; then
5272#  hdr="#include <pthread.h>"
5273#else
5274#  hdr=""
5275#fi
5276#AC_CHECK_HEADERS([pthread.h],[],[enable_pthread_mumps=no],[$hdr])
5277
5278for ac_header in pthread.h
5279do
5280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5281if eval "test \"\${$as_ac_Header+set}\" = set"; then
5282  echo "$as_me:$LINENO: checking for $ac_header" >&5
5283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5284if eval "test \"\${$as_ac_Header+set}\" = set"; then
5285  echo $ECHO_N "(cached) $ECHO_C" >&6
5286fi
5287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5289else
5290  # Is the header compilable?
5291echo "$as_me:$LINENO: checking $ac_header usability" >&5
5292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5293cat >conftest.$ac_ext <<_ACEOF
5294/* confdefs.h.  */
5295_ACEOF
5296cat confdefs.h >>conftest.$ac_ext
5297cat >>conftest.$ac_ext <<_ACEOF
5298/* end confdefs.h.  */
5299$ac_includes_default
5300#include <$ac_header>
5301_ACEOF
5302rm -f conftest.$ac_objext
5303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304  (eval $ac_compile) 2>conftest.er1
5305  ac_status=$?
5306  grep -v '^ *+' conftest.er1 >conftest.err
5307  rm -f conftest.er1
5308  cat conftest.err >&5
5309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310  (exit $ac_status); } &&
5311         { ac_try='test -z "$ac_c_werror_flag"
5312                         || test ! -s conftest.err'
5313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314  (eval $ac_try) 2>&5
5315  ac_status=$?
5316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317  (exit $ac_status); }; } &&
5318         { ac_try='test -s conftest.$ac_objext'
5319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320  (eval $ac_try) 2>&5
5321  ac_status=$?
5322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323  (exit $ac_status); }; }; then
5324  ac_header_compiler=yes
5325else
5326  echo "$as_me: failed program was:" >&5
5327sed 's/^/| /' conftest.$ac_ext >&5
5328
5329ac_header_compiler=no
5330fi
5331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5333echo "${ECHO_T}$ac_header_compiler" >&6
5334
5335# Is the header present?
5336echo "$as_me:$LINENO: checking $ac_header presence" >&5
5337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5338cat >conftest.$ac_ext <<_ACEOF
5339/* confdefs.h.  */
5340_ACEOF
5341cat confdefs.h >>conftest.$ac_ext
5342cat >>conftest.$ac_ext <<_ACEOF
5343/* end confdefs.h.  */
5344#include <$ac_header>
5345_ACEOF
5346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5347  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5348  ac_status=$?
5349  grep -v '^ *+' conftest.er1 >conftest.err
5350  rm -f conftest.er1
5351  cat conftest.err >&5
5352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353  (exit $ac_status); } >/dev/null; then
5354  if test -s conftest.err; then
5355    ac_cpp_err=$ac_c_preproc_warn_flag
5356    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5357  else
5358    ac_cpp_err=
5359  fi
5360else
5361  ac_cpp_err=yes
5362fi
5363if test -z "$ac_cpp_err"; then
5364  ac_header_preproc=yes
5365else
5366  echo "$as_me: failed program was:" >&5
5367sed 's/^/| /' conftest.$ac_ext >&5
5368
5369  ac_header_preproc=no
5370fi
5371rm -f conftest.err conftest.$ac_ext
5372echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5373echo "${ECHO_T}$ac_header_preproc" >&6
5374
5375# So?  What about this header?
5376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5377  yes:no: )
5378    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5380    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5382    ac_header_preproc=yes
5383    ;;
5384  no:yes:* )
5385    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5387    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5388echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5389    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5391    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5392echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5393    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5395    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5397    (
5398      cat <<\_ASBOX
5399## --------------------------------------------------------------- ##
5400## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5401## --------------------------------------------------------------- ##
5402_ASBOX
5403    ) |
5404      sed "s/^/$as_me: WARNING:     /" >&2
5405    ;;
5406esac
5407echo "$as_me:$LINENO: checking for $ac_header" >&5
5408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5409if eval "test \"\${$as_ac_Header+set}\" = set"; then
5410  echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412  eval "$as_ac_Header=\$ac_header_preproc"
5413fi
5414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5416
5417fi
5418if test `eval echo '${'$as_ac_Header'}'` = yes; then
5419  cat >>confdefs.h <<_ACEOF
5420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5421_ACEOF
5422
5423else
5424  enable_pthread_mumps=no
5425fi
5426
5427done
5428
5429
5430fi
5431if test $enable_pthread_mumps = yes ; then
5432  echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5433echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5434if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5435  echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437  ac_check_lib_save_LIBS=$LIBS
5438LIBS="-lpthread  $LIBS"
5439cat >conftest.$ac_ext <<_ACEOF
5440/* confdefs.h.  */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h.  */
5445
5446/* Override any gcc2 internal prototype to avoid an error.  */
5447#ifdef __cplusplus
5448extern "C"
5449#endif
5450/* We use char because int might match the return type of a gcc2
5451   builtin and then its argument prototype would still apply.  */
5452char pthread_create ();
5453#ifdef F77_DUMMY_MAIN
5454
5455#  ifdef __cplusplus
5456     extern "C"
5457#  endif
5458   int F77_DUMMY_MAIN() { return 1; }
5459
5460#endif
5461int
5462main ()
5463{
5464pthread_create ();
5465  ;
5466  return 0;
5467}
5468_ACEOF
5469rm -f conftest.$ac_objext conftest$ac_exeext
5470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5471  (eval $ac_link) 2>conftest.er1
5472  ac_status=$?
5473  grep -v '^ *+' conftest.er1 >conftest.err
5474  rm -f conftest.er1
5475  cat conftest.err >&5
5476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477  (exit $ac_status); } &&
5478         { ac_try='test -z "$ac_c_werror_flag"
5479                         || test ! -s conftest.err'
5480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481  (eval $ac_try) 2>&5
5482  ac_status=$?
5483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484  (exit $ac_status); }; } &&
5485         { ac_try='test -s conftest$ac_exeext'
5486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487  (eval $ac_try) 2>&5
5488  ac_status=$?
5489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); }; }; then
5491  ac_cv_lib_pthread_pthread_create=yes
5492else
5493  echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
5495
5496ac_cv_lib_pthread_pthread_create=no
5497fi
5498rm -f conftest.err conftest.$ac_objext \
5499      conftest$ac_exeext conftest.$ac_ext
5500LIBS=$ac_check_lib_save_LIBS
5501fi
5502echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5503echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5504if test $ac_cv_lib_pthread_pthread_create = yes; then
5505  MUMPS_PCLIBS="-lpthread $MUMPS_PCLIBS"
5506else
5507  enable_pthread_mumps=no
5508fi
5509
5510fi
5511if test $enable_pthread_mumps = no ; then
5512  MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"
5513fi
5514
5515MY_DEFS="$MY_DEFS -DALLOW_NON_INIT -DMUMPS_ARITH=MUMPS_ARITH_d"
5516
5517
5518# Initialize automake
5519{
5520
5521
5522
5523# START
5524
5525coin_disable_shared=no
5526# Test if force_shared has been set
5527if test "x" = xforce_shared; then
5528  if test x$enable_shared = xno; then
5529    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5530echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5531   { (exit 1); exit 1; }; }
5532  fi
5533  enable_shared=yes;
5534else
5535  case $build in
5536    *-cygwin* | *-mingw*)
5537      coin_disable_shared=yes
5538      if test x"$enable_shared" = xyes; then
5539        case "$CC" in
5540          clang* )
5541            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5542echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5543            ;;
5544          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5545            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
5546echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
5547            ;;
5548          *gcc*)
5549            if test x"$enable_dependency_linking" = xyes; then
5550              coin_disable_shared=no
5551            else
5552              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
5553echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
5554            fi
5555            ;;
5556          *)
5557            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5558echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5559            ;;
5560        esac
5561      fi
5562    ;;
5563    *-aix*)
5564      coin_disable_shared=yes
5565      platform=AIX
5566      if test x"$enable_shared" = xyes; then
5567        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
5568echo "$as_me: WARNING: Shared objects are not supported." >&2;}
5569      fi
5570    ;;
5571  esac
5572fi
5573if test x"$coin_disable_shared" = xyes; then
5574  if test x"$enable_shared" = xyes; then
5575    :
5576  else
5577    # we don't disable shared, because it was not selected anyway
5578    coin_disable_shared=no
5579  fi
5580  enable_shared=no
5581fi
5582# By default, we only want the shared objects to be compiled
5583# Check whether --enable-static or --disable-static was given.
5584if test "${enable_static+set}" = set; then
5585  enableval="$enable_static"
5586  p=${PACKAGE-default}
5587    case $enableval in
5588    yes) enable_static=yes ;;
5589    no) enable_static=no ;;
5590    *)
5591     enable_static=no
5592      # Look at the argument we got.  We use all the common list separators.
5593      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5594      for pkg in $enableval; do
5595        IFS="$lt_save_ifs"
5596        if test "X$pkg" = "X$p"; then
5597          enable_static=yes
5598        fi
5599      done
5600      IFS="$lt_save_ifs"
5601      ;;
5602    esac
5603else
5604  enable_static=no
5605fi;
5606
5607
5608
5609
5610# Initialize automake
5611echo "$as_me:$LINENO: checking whether ln -s works" >&5
5612echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5613LN_S=$as_ln_s
5614if test "$LN_S" = "ln -s"; then
5615  echo "$as_me:$LINENO: result: yes" >&5
5616echo "${ECHO_T}yes" >&6
5617else
5618  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5619echo "${ECHO_T}no, using $LN_S" >&6
5620fi
5621
5622am__api_version="1.9"
5623# Find a good install program.  We prefer a C program (faster),
5624# so one script is as good as another.  But avoid the broken or
5625# incompatible versions:
5626# SysV /etc/install, /usr/sbin/install
5627# SunOS /usr/etc/install
5628# IRIX /sbin/install
5629# AIX /bin/install
5630# AmigaOS /C/install, which installs bootblocks on floppy discs
5631# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5632# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5633# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5634# OS/2's system install, which has a completely different semantic
5635# ./install, which can be erroneously created by make from ./install.sh.
5636echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5637echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5638if test -z "$INSTALL"; then
5639if test "${ac_cv_path_install+set}" = set; then
5640  echo $ECHO_N "(cached) $ECHO_C" >&6
5641else
5642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643for as_dir in $PATH
5644do
5645  IFS=$as_save_IFS
5646  test -z "$as_dir" && as_dir=.
5647  # Account for people who put trailing slashes in PATH elements.
5648case $as_dir/ in
5649  ./ | .// | /cC/* | \
5650  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5651  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5652  /usr/ucb/* ) ;;
5653  *)
5654    # OSF1 and SCO ODT 3.0 have their own names for install.
5655    # Don't use installbsd from OSF since it installs stuff as root
5656    # by default.
5657    for ac_prog in ginstall scoinst install; do
5658      for ac_exec_ext in '' $ac_executable_extensions; do
5659        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5660          if test $ac_prog = install &&
5661            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5662            # AIX install.  It has an incompatible calling convention.
5663            :
5664          elif test $ac_prog = install &&
5665            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5666            # program-specific install script used by HP pwplus--don't use.
5667            :
5668          else
5669            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5670            break 3
5671          fi
5672        fi
5673      done
5674    done
5675    ;;
5676esac
5677done
5678
5679
5680fi
5681  if test "${ac_cv_path_install+set}" = set; then
5682    INSTALL=$ac_cv_path_install
5683  else
5684    # As a last resort, use the slow shell script.  We don't cache a
5685    # path for INSTALL within a source directory, because that will
5686    # break other packages using the cache if that directory is
5687    # removed, or if the path is relative.
5688    INSTALL=$ac_install_sh
5689  fi
5690fi
5691echo "$as_me:$LINENO: result: $INSTALL" >&5
5692echo "${ECHO_T}$INSTALL" >&6
5693
5694# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5695# It thinks the first close brace ends the variable substitution.
5696test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5697
5698test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5699
5700test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5701
5702echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5703echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5704# Just in case
5705sleep 1
5706echo timestamp > conftest.file
5707# Do `set' in a subshell so we don't clobber the current shell's
5708# arguments.  Must try -L first in case configure is actually a
5709# symlink; some systems play weird games with the mod time of symlinks
5710# (eg FreeBSD returns the mod time of the symlink's containing
5711# directory).
5712if (
5713   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5714   if test "$*" = "X"; then
5715      # -L didn't work.
5716      set X `ls -t $srcdir/configure conftest.file`
5717   fi
5718   rm -f conftest.file
5719   if test "$*" != "X $srcdir/configure conftest.file" \
5720      && test "$*" != "X conftest.file $srcdir/configure"; then
5721
5722      # If neither matched, then we have a broken ls.  This can happen
5723      # if, for instance, CONFIG_SHELL is bash and it inherits a
5724      # broken ls alias from the environment.  This has actually
5725      # happened.  Such a system could not be considered "sane".
5726      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5727alias in your environment" >&5
5728echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5729alias in your environment" >&2;}
5730   { (exit 1); exit 1; }; }
5731   fi
5732
5733   test "$2" = conftest.file
5734   )
5735then
5736   # Ok.
5737   :
5738else
5739   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5740Check your system clock" >&5
5741echo "$as_me: error: newly created file is older than distributed files!
5742Check your system clock" >&2;}
5743   { (exit 1); exit 1; }; }
5744fi
5745echo "$as_me:$LINENO: result: yes" >&5
5746echo "${ECHO_T}yes" >&6
5747test "$program_prefix" != NONE &&
5748  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5749# Use a double $ so make ignores it.
5750test "$program_suffix" != NONE &&
5751  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5752# Double any \ or $.  echo might interpret backslashes.
5753# By default was `s,x,x', remove it if useless.
5754cat <<\_ACEOF >conftest.sed
5755s/[\\$]/&&/g;s/;s,x,x,$//
5756_ACEOF
5757program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5758rm conftest.sed
5759
5760# expand $ac_aux_dir to an absolute path
5761am_aux_dir=`cd $ac_aux_dir && pwd`
5762
5763test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5764# Use eval to expand $SHELL
5765if eval "$MISSING --run true"; then
5766  am_missing_run="$MISSING --run "
5767else
5768  am_missing_run=
5769  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5770echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5771fi
5772
5773if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5774  # We used to keeping the `.' as first argument, in order to
5775  # allow $(mkdir_p) to be used without argument.  As in
5776  #   $(mkdir_p) $(somedir)
5777  # where $(somedir) is conditionally defined.  However this is wrong
5778  # for two reasons:
5779  #  1. if the package is installed by a user who cannot write `.'
5780  #     make install will fail,
5781  #  2. the above comment should most certainly read
5782  #     $(mkdir_p) $(DESTDIR)$(somedir)
5783  #     so it does not work when $(somedir) is undefined and
5784  #     $(DESTDIR) is not.
5785  #  To support the latter case, we have to write
5786  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5787  #  so the `.' trick is pointless.
5788  mkdir_p='mkdir -p --'
5789else
5790  # On NextStep and OpenStep, the `mkdir' command does not
5791  # recognize any option.  It will interpret all options as
5792  # directories to create, and then abort because `.' already
5793  # exists.
5794  for d in ./-p ./--version;
5795  do
5796    test -d $d && rmdir $d
5797  done
5798  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5799  if test -f "$ac_aux_dir/mkinstalldirs"; then
5800    mkdir_p='$(mkinstalldirs)'
5801  else
5802    mkdir_p='$(install_sh) -d'
5803  fi
5804fi
5805
5806for ac_prog in gawk mawk nawk awk
5807do
5808  # Extract the first word of "$ac_prog", so it can be a program name with args.
5809set dummy $ac_prog; ac_word=$2
5810echo "$as_me:$LINENO: checking for $ac_word" >&5
5811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812if test "${ac_cv_prog_AWK+set}" = set; then
5813  echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815  if test -n "$AWK"; then
5816  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821  IFS=$as_save_IFS
5822  test -z "$as_dir" && as_dir=.
5823  for ac_exec_ext in '' $ac_executable_extensions; do
5824  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825    ac_cv_prog_AWK="$ac_prog"
5826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827    break 2
5828  fi
5829done
5830done
5831
5832fi
5833fi
5834AWK=$ac_cv_prog_AWK
5835if test -n "$AWK"; then
5836  echo "$as_me:$LINENO: result: $AWK" >&5
5837echo "${ECHO_T}$AWK" >&6
5838else
5839  echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841fi
5842
5843  test -n "$AWK" && break
5844done
5845
5846echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5847echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5848set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5849if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5850  echo $ECHO_N "(cached) $ECHO_C" >&6
5851else
5852  cat >conftest.make <<\_ACEOF
5853all:
5854        @echo 'ac_maketemp="$(MAKE)"'
5855_ACEOF
5856# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5857eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5858if test -n "$ac_maketemp"; then
5859  eval ac_cv_prog_make_${ac_make}_set=yes
5860else
5861  eval ac_cv_prog_make_${ac_make}_set=no
5862fi
5863rm -f conftest.make
5864fi
5865if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5866  echo "$as_me:$LINENO: result: yes" >&5
5867echo "${ECHO_T}yes" >&6
5868  SET_MAKE=
5869else
5870  echo "$as_me:$LINENO: result: no" >&5
5871echo "${ECHO_T}no" >&6
5872  SET_MAKE="MAKE=${MAKE-make}"
5873fi
5874
5875rm -rf .tst 2>/dev/null
5876mkdir .tst 2>/dev/null
5877if test -d .tst; then
5878  am__leading_dot=.
5879else
5880  am__leading_dot=_
5881fi
5882rmdir .tst 2>/dev/null
5883
5884DEPDIR="${am__leading_dot}deps"
5885
5886          ac_config_commands="$ac_config_commands depfiles"
5887
5888
5889am_make=${MAKE-make}
5890cat > confinc << 'END'
5891am__doit:
5892        @echo done
5893.PHONY: am__doit
5894END
5895# If we don't find an include directive, just comment out the code.
5896echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5897echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5898am__include="#"
5899am__quote=
5900_am_result=none
5901# First try GNU make style include.
5902echo "include confinc" > confmf
5903# We grep out `Entering directory' and `Leaving directory'
5904# messages which can occur if `w' ends up in MAKEFLAGS.
5905# In particular we don't look at `^make:' because GNU make might
5906# be invoked under some other name (usually "gmake"), in which
5907# case it prints its new name instead of `make'.
5908if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5909   am__include=include
5910   am__quote=
5911   _am_result=GNU
5912fi
5913# Now try BSD make style include.
5914if test "$am__include" = "#"; then
5915   echo '.include "confinc"' > confmf
5916   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5917      am__include=.include
5918      am__quote="\""
5919      _am_result=BSD
5920   fi
5921fi
5922
5923
5924echo "$as_me:$LINENO: result: $_am_result" >&5
5925echo "${ECHO_T}$_am_result" >&6
5926rm -f confinc confmf
5927
5928# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5929if test "${enable_dependency_tracking+set}" = set; then
5930  enableval="$enable_dependency_tracking"
5931
5932fi;
5933if test "x$enable_dependency_tracking" != xno; then
5934  am_depcomp="$ac_aux_dir/depcomp"
5935  AMDEPBACKSLASH='\'
5936fi
5937
5938
5939if test "x$enable_dependency_tracking" != xno; then
5940  AMDEP_TRUE=
5941  AMDEP_FALSE='#'
5942else
5943  AMDEP_TRUE='#'
5944  AMDEP_FALSE=
5945fi
5946
5947
5948
5949
5950
5951
5952# AC_MSG_NOTICE([Beginning automake initialisation.])
5953# Stuff for automake
5954# test to see if srcdir already configured
5955if test "`cd $srcdir && pwd`" != "`pwd`" &&
5956   test -f $srcdir/config.status; then
5957  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5958echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5959   { (exit 1); exit 1; }; }
5960fi
5961
5962# test whether we have cygpath
5963if test -z "$CYGPATH_W"; then
5964  if (cygpath --version) >/dev/null 2>/dev/null; then
5965    CYGPATH_W='cygpath -w'
5966  else
5967    CYGPATH_W=echo
5968  fi
5969fi
5970
5971
5972# Define the identity of the package.
5973 PACKAGE='thirdpartymumps'
5974 VERSION='trunk'
5975
5976
5977cat >>confdefs.h <<_ACEOF
5978#define PACKAGE "$PACKAGE"
5979_ACEOF
5980
5981
5982cat >>confdefs.h <<_ACEOF
5983#define VERSION "$VERSION"
5984_ACEOF
5985
5986# Some tools Automake needs.
5987
5988ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5989
5990
5991AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5992
5993
5994AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5995
5996
5997AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5998
5999
6000MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6001
6002install_sh=${install_sh-"$am_aux_dir/install-sh"}
6003
6004# Installed binaries are usually stripped using `strip' when the user
6005# run `make install-strip'.  However `strip' might not be the right
6006# tool to use in cross-compilation environments, therefore Automake
6007# will honor the `STRIP' environment variable to overrule this program.
6008if test "$cross_compiling" != no; then
6009  if test -n "$ac_tool_prefix"; then
6010  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6011set dummy ${ac_tool_prefix}strip; ac_word=$2
6012echo "$as_me:$LINENO: checking for $ac_word" >&5
6013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6014if test "${ac_cv_prog_STRIP+set}" = set; then
6015  echo $ECHO_N "(cached) $ECHO_C" >&6
6016else
6017  if test -n "$STRIP"; then
6018  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6019else
6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021for as_dir in $PATH
6022do
6023  IFS=$as_save_IFS
6024  test -z "$as_dir" && as_dir=.
6025  for ac_exec_ext in '' $ac_executable_extensions; do
6026  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029    break 2
6030  fi
6031done
6032done
6033
6034fi
6035fi
6036STRIP=$ac_cv_prog_STRIP
6037if test -n "$STRIP"; then
6038  echo "$as_me:$LINENO: result: $STRIP" >&5
6039echo "${ECHO_T}$STRIP" >&6
6040else
6041  echo "$as_me:$LINENO: result: no" >&5
6042echo "${ECHO_T}no" >&6
6043fi
6044
6045fi
6046if test -z "$ac_cv_prog_STRIP"; then
6047  ac_ct_STRIP=$STRIP
6048  # Extract the first word of "strip", so it can be a program name with args.
6049set dummy strip; ac_word=$2
6050echo "$as_me:$LINENO: checking for $ac_word" >&5
6051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6052if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6053  echo $ECHO_N "(cached) $ECHO_C" >&6
6054else
6055  if test -n "$ac_ct_STRIP"; then
6056  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061  IFS=$as_save_IFS
6062  test -z "$as_dir" && as_dir=.
6063  for ac_exec_ext in '' $ac_executable_extensions; do
6064  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065    ac_cv_prog_ac_ct_STRIP="strip"
6066    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067    break 2
6068  fi
6069done
6070done
6071
6072  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6073fi
6074fi
6075ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6076if test -n "$ac_ct_STRIP"; then
6077  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6078echo "${ECHO_T}$ac_ct_STRIP" >&6
6079else
6080  echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6
6082fi
6083
6084  STRIP=$ac_ct_STRIP
6085else
6086  STRIP="$ac_cv_prog_STRIP"
6087fi
6088
6089fi
6090INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6091
6092# We need awk for the "check" target.  The system "awk" is bad on
6093# some platforms.
6094# Always define AMTAR for backward compatibility.
6095
6096AMTAR=${AMTAR-"${am_missing_run}tar"}
6097
6098am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6099
6100
6101
6102
6103depcc="$CC"   am_compiler_list=
6104
6105echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6106echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6107if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6108  echo $ECHO_N "(cached) $ECHO_C" >&6
6109else
6110  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6111  # We make a subdir and do the tests there.  Otherwise we can end up
6112  # making bogus files that we don't know about and never remove.  For
6113  # instance it was reported that on HP-UX the gcc test will end up
6114  # making a dummy file named `D' -- because `-MD' means `put the output
6115  # in D'.
6116  mkdir conftest.dir
6117  # Copy depcomp to subdir because otherwise we won't find it if we're
6118  # using a relative directory.
6119  cp "$am_depcomp" conftest.dir
6120  cd conftest.dir
6121  # We will build objects and dependencies in a subdirectory because
6122  # it helps to detect inapplicable dependency modes.  For instance
6123  # both Tru64's cc and ICC support -MD to output dependencies as a
6124  # side effect of compilation, but ICC will put the dependencies in
6125  # the current directory while Tru64 will put them in the object
6126  # directory.
6127  mkdir sub
6128
6129  am_cv_CC_dependencies_compiler_type=none
6130  if test "$am_compiler_list" = ""; then
6131     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6132  fi
6133  for depmode in $am_compiler_list; do
6134    # Setup a source with many dependencies, because some compilers
6135    # like to wrap large dependency lists on column 80 (with \), and
6136    # we should not choose a depcomp mode which is confused by this.
6137    #
6138    # We need to recreate these files for each test, as the compiler may
6139    # overwrite some of them when testing with obscure command lines.
6140    # This happens at least with the AIX C compiler.
6141    : > sub/conftest.c
6142    for i in 1 2 3 4 5 6; do
6143      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6144      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6145      # Solaris 8's {/usr,}/bin/sh.
6146      touch sub/conftst$i.h
6147    done
6148    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6149
6150    case $depmode in
6151    nosideeffect)
6152      # after this tag, mechanisms are not by side-effect, so they'll
6153      # only be used when explicitly requested
6154      if test "x$enable_dependency_tracking" = xyes; then
6155        continue
6156      else
6157        break
6158      fi
6159      ;;
6160    none) break ;;
6161    esac
6162    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6163    # mode.  It turns out that the SunPro C++ compiler does not properly
6164    # handle `-M -o', and we need to detect this.
6165    if depmode=$depmode \
6166       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6167       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6168       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6169         >/dev/null 2>conftest.err &&
6170       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6171       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6172       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6173      # icc doesn't choke on unknown options, it will just issue warnings
6174      # or remarks (even with -Werror).  So we grep stderr for any message
6175      # that says an option was ignored or not supported.
6176      # When given -MP, icc 7.0 and 7.1 complain thusly:
6177      #   icc: Command line warning: ignoring option '-M'; no argument required
6178      # The diagnosis changed in icc 8.0:
6179      #   icc: Command line remark: option '-MP' not supported
6180      if (grep 'ignoring option' conftest.err ||
6181          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6182        am_cv_CC_dependencies_compiler_type=$depmode
6183        break
6184      fi
6185    fi
6186  done
6187
6188  cd ..
6189  rm -rf conftest.dir
6190else
6191  am_cv_CC_dependencies_compiler_type=none
6192fi
6193
6194fi
6195echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6196echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6197CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6198
6199
6200
6201if
6202  test "x$enable_dependency_tracking" != xno \
6203  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6204  am__fastdepCC_TRUE=
6205  am__fastdepCC_FALSE='#'
6206else
6207  am__fastdepCC_TRUE='#'
6208  am__fastdepCC_FALSE=
6209fi
6210
6211
6212
6213echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6214echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6215    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6216if test "${enable_maintainer_mode+set}" = set; then
6217  enableval="$enable_maintainer_mode"
6218  USE_MAINTAINER_MODE=$enableval
6219else
6220  USE_MAINTAINER_MODE=no
6221fi;
6222  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6223echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6224
6225
6226if test $USE_MAINTAINER_MODE = yes; then
6227  MAINTAINER_MODE_TRUE=
6228  MAINTAINER_MODE_FALSE='#'
6229else
6230  MAINTAINER_MODE_TRUE='#'
6231  MAINTAINER_MODE_FALSE=
6232fi
6233
6234  MAINT=$MAINTAINER_MODE_TRUE
6235
6236
6237
6238coin_have_externals=no
6239if test "$enable_maintainer_mode" = yes; then
6240
6241  # If maintainer mode is chosen, we make sure that the correct versions
6242  # of the tools are used, and that we know where libtool.m4 is (to
6243  # recreate acinclude.m4)
6244
6245
6246  LIBTOOLM4=
6247  # Normally, $HOME
6248  AUTOTOOLS_DFLT=$HOME
6249
6250  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6251echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6252if test "${ac_cv_use_correct_autotools+set}" = set; then
6253  echo $ECHO_N "(cached) $ECHO_C" >&6
6254else
6255  ac_cv_use_correct_autotools=check
6256fi
6257echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6258echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6259
6260  if test $ac_cv_use_correct_autotools = check; then
6261    ac_cv_use_correct_autotools=yes
6262    # Check if we have autoconf
6263    # Extract the first word of "autoconf", so it can be a program name with args.
6264set dummy autoconf; ac_word=$2
6265echo "$as_me:$LINENO: checking for $ac_word" >&5
6266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6267if test "${ac_cv_prog_have_autoconf+set}" = set; then
6268  echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270  if test -n "$have_autoconf"; then
6271  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276  IFS=$as_save_IFS
6277  test -z "$as_dir" && as_dir=.
6278  for ac_exec_ext in '' $ac_executable_extensions; do
6279  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280    ac_cv_prog_have_autoconf="yes"
6281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282    break 2
6283  fi
6284done
6285done
6286
6287  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6288fi
6289fi
6290have_autoconf=$ac_cv_prog_have_autoconf
6291if test -n "$have_autoconf"; then
6292  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6293echo "${ECHO_T}$have_autoconf" >&6
6294else
6295  echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6
6297fi
6298
6299    if test $have_autoconf = no; then
6300      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6301echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6302   { (exit 1); exit 1; }; }
6303    fi
6304
6305    # Check whether autoconf is the correct version
6306    correct_version='2.59'
6307    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6308    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6309echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6310    autoconf --version > confauto.out 2>&1
6311    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6312      echo "$as_me:$LINENO: result: yes" >&5
6313echo "${ECHO_T}yes" >&6
6314    else
6315      rm -f confauto.out
6316      echo "$as_me:$LINENO: result: no" >&5
6317echo "${ECHO_T}no" >&6
6318      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6319echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6320   { (exit 1); exit 1; }; }
6321    fi
6322    rm -f confauto.out
6323
6324    # Check if the executable autoconf is picked up from the correct location
6325    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6326echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6327    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6328    autoconf_dir=`cd $autoconf_dir; pwd`
6329    if test x$AUTOTOOLS_DIR = x; then
6330      want_dir=$AUTOTOOLS_DFLT/bin
6331    else
6332      want_dir=$AUTOTOOLS_DIR/bin
6333    fi
6334    if test $autoconf_dir = `cd $want_dir; pwd`; then
6335      echo "$as_me:$LINENO: result: yes" >&5
6336echo "${ECHO_T}yes" >&6
6337    else
6338      rm -f confauto.out
6339      echo "$as_me:$LINENO: result: no" >&5
6340echo "${ECHO_T}no" >&6
6341      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6342echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6343   { (exit 1); exit 1; }; }
6344    fi
6345
6346    # Check if we have automake
6347    # Extract the first word of "automake", so it can be a program name with args.
6348set dummy automake; ac_word=$2
6349echo "$as_me:$LINENO: checking for $ac_word" >&5
6350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6351if test "${ac_cv_prog_have_automake+set}" = set; then
6352  echo $ECHO_N "(cached) $ECHO_C" >&6
6353else
6354  if test -n "$have_automake"; then
6355  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360  IFS=$as_save_IFS
6361  test -z "$as_dir" && as_dir=.
6362  for ac_exec_ext in '' $ac_executable_extensions; do
6363  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364    ac_cv_prog_have_automake="yes"
6365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366    break 2
6367  fi
6368done
6369done
6370
6371  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6372fi
6373fi
6374have_automake=$ac_cv_prog_have_automake
6375if test -n "$have_automake"; then
6376  echo "$as_me:$LINENO: result: $have_automake" >&5
6377echo "${ECHO_T}$have_automake" >&6
6378else
6379  echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6
6381fi
6382
6383    if test $have_automake = no; then
6384      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6385echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6386   { (exit 1); exit 1; }; }
6387    fi
6388
6389    # Check whether automake is the correct version
6390    correct_version='1.9.6'
6391    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6392    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6393echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6394    automake --version > confauto.out 2>&1
6395    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6396      echo "$as_me:$LINENO: result: yes" >&5
6397echo "${ECHO_T}yes" >&6
6398    else
6399      rm -f confauto.out
6400      echo "$as_me:$LINENO: result: no" >&5
6401echo "${ECHO_T}no" >&6
6402      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6403echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6404   { (exit 1); exit 1; }; }
6405    fi
6406    rm -f confauto.out
6407
6408    # Check if the executable automake is picked up from the correct location
6409    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6410echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6411    automake_dir=`which automake | sed -e 's=/automake=='`
6412    automake_dir=`cd $automake_dir; pwd`
6413    if test x$AUTOTOOLS_DIR = x; then
6414      want_dir=$AUTOTOOLS_DFLT/bin
6415    else
6416      want_dir=$AUTOTOOLS_DIR/bin
6417    fi
6418    if test $automake_dir = `cd $want_dir; pwd`; then
6419      echo "$as_me:$LINENO: result: yes" >&5
6420echo "${ECHO_T}yes" >&6
6421    else
6422      rm -f confauto.out
6423      echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6
6425      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6426echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6427   { (exit 1); exit 1; }; }
6428    fi
6429
6430    # Check if this is the correct version of libtool (with escaped dots)
6431    if test x$AUTOTOOLS_DIR = x; then
6432      want_dir=$AUTOTOOLS_DFLT/share
6433    else
6434      want_dir=$AUTOTOOLS_DIR/share
6435    fi
6436    correct_version='1.5.22'
6437    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6438    if test -r $want_dir/libtool/ltmain.sh; then
6439  have_ltmain=yes
6440  :
6441else
6442  have_ltmain=no
6443  :
6444fi
6445
6446    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6447echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6448    if test $have_ltmain = yes; then
6449    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6450        echo "$as_me:$LINENO: result: yes" >&5
6451echo "${ECHO_T}yes" >&6
6452      else
6453        echo "$as_me:$LINENO: result: no" >&5
6454echo "${ECHO_T}no" >&6
6455        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6456echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6457   { (exit 1); exit 1; }; }
6458      fi
6459    else
6460      echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6
6462      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6463echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6464   { (exit 1); exit 1; }; }
6465    fi
6466  fi
6467
6468  # Check if we can find the libtool file
6469  if test x$AUTOTOOLS_DIR = x; then
6470    want_dir=$AUTOTOOLS_DFLT/share
6471  else
6472    want_dir=$AUTOTOOLS_DIR/share
6473  fi
6474  if test -r $want_dir/aclocal/libtool.m4; then
6475  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6476  :
6477else
6478  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6479echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6480   { (exit 1); exit 1; }; }
6481  :
6482fi
6483
6484
6485  # Check if we have an Dependencies file
6486  if test -r $srcdir/Dependencies; then
6487    coin_have_externals=yes
6488  fi
6489  # Check if subversion is installed and understands https
6490  # Extract the first word of "svn", so it can be a program name with args.
6491set dummy svn; ac_word=$2
6492echo "$as_me:$LINENO: checking for $ac_word" >&5
6493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6494if test "${ac_cv_prog_have_svn+set}" = set; then
6495  echo $ECHO_N "(cached) $ECHO_C" >&6
6496else
6497  if test -n "$have_svn"; then
6498  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6499else
6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501for as_dir in $PATH
6502do
6503  IFS=$as_save_IFS
6504  test -z "$as_dir" && as_dir=.
6505  for ac_exec_ext in '' $ac_executable_extensions; do
6506  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507    ac_cv_prog_have_svn="yes"
6508    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509    break 2
6510  fi
6511done
6512done
6513
6514  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6515fi
6516fi
6517have_svn=$ac_cv_prog_have_svn
6518if test -n "$have_svn"; then
6519  echo "$as_me:$LINENO: result: $have_svn" >&5
6520echo "${ECHO_T}$have_svn" >&6
6521else
6522  echo "$as_me:$LINENO: result: no" >&5
6523echo "${ECHO_T}no" >&6
6524fi
6525
6526  if test x$have_svn = xyes; then
6527    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6528echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6529if test "${ac_cv_svn_understands_https+set}" = set; then
6530  echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532  svn --version > confauto.out 2>&1
6533                    if $EGREP https confauto.out >/dev/null 2>&1; then
6534                      ac_cv_svn_understands_https=yes
6535                    else
6536                      ac_cv_svn_understands_https=no
6537                      have_svn=no
6538                      ac_cv_prog_have_svn=no
6539                    fi
6540                    rm -f confauto.out
6541fi
6542echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6543echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6544  fi
6545
6546  # Find the location of the BuildTools directory
6547  BUILDTOOLSDIR=
6548  if test -r $srcdir/BuildTools/coin.m4; then
6549    BUILDTOOLSDIR=$srcdir/BuildTools
6550  else
6551    if test -r $srcdir/../BuildTools/coin.m4; then
6552      BUILDTOOLSDIR=$srcdir/../BuildTools
6553    else
6554      if test -r $srcdir/../../BuildTools/coin.m4; then
6555        BUILDTOOLSDIR=$srcdir/../../BuildTools
6556      else
6557        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6558echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6559   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6560      fi
6561    fi
6562  fi
6563
6564
6565  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6566  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6567    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6568  fi
6569
6570  # The following variable is set to the name of the directory where
6571  # the autotool scripts are located
6572
6573  AUX_DIR=$ac_aux_dir
6574fi
6575
6576# helpful variable for the base directory of this package
6577abs_source_dir=`cd $srcdir; pwd`
6578
6579
6580# Stuff for example Makefiles
6581if test x$prefix = xNONE; then
6582  full_prefix=$ac_default_prefix
6583else
6584  full_prefix=$prefix
6585fi
6586full_prefix=`cd $full_prefix ; pwd`
6587
6588abs_lib_dir=$full_prefix/lib
6589
6590abs_include_dir=$full_prefix/include
6591
6592abs_bin_dir=$full_prefix/bin
6593
6594
6595
6596if test $coin_have_externals = yes && test x$have_svn = xyes; then
6597  HAVE_EXTERNALS_TRUE=
6598  HAVE_EXTERNALS_FALSE='#'
6599else
6600  HAVE_EXTERNALS_TRUE='#'
6601  HAVE_EXTERNALS_FALSE=
6602fi
6603
6604
6605# AC_MSG_NOTICE([End automake initialisation.])
6606
6607
6608
6609LIBTOOL=
6610if test -f ../libtool; then
6611  coin_config_dir=..
6612  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6613fi
6614if test "x$LIBTOOL" = x; then
6615  if test -f ../../libtool; then
6616    coin_config_dir=../..
6617    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6618  fi
6619fi
6620
6621if test "x$LIBTOOL" = x; then
6622# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6623  # Stuff for libtool
6624  # Check whether --enable-shared or --disable-shared was given.
6625if test "${enable_shared+set}" = set; then
6626  enableval="$enable_shared"
6627  p=${PACKAGE-default}
6628    case $enableval in
6629    yes) enable_shared=yes ;;
6630    no) enable_shared=no ;;
6631    *)
6632      enable_shared=no
6633      # Look at the argument we got.  We use all the common list separators.
6634      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6635      for pkg in $enableval; do
6636        IFS="$lt_save_ifs"
6637        if test "X$pkg" = "X$p"; then
6638          enable_shared=yes
6639        fi
6640      done
6641      IFS="$lt_save_ifs"
6642      ;;
6643    esac
6644else
6645  enable_shared=yes
6646fi;
6647
6648# Check whether --enable-fast-install or --disable-fast-install was given.
6649if test "${enable_fast_install+set}" = set; then
6650  enableval="$enable_fast_install"
6651  p=${PACKAGE-default}
6652    case $enableval in
6653    yes) enable_fast_install=yes ;;
6654    no) enable_fast_install=no ;;
6655    *)
6656      enable_fast_install=no
6657      # Look at the argument we got.  We use all the common list separators.
6658      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6659      for pkg in $enableval; do
6660        IFS="$lt_save_ifs"
6661        if test "X$pkg" = "X$p"; then
6662          enable_fast_install=yes
6663        fi
6664      done
6665      IFS="$lt_save_ifs"
6666      ;;
6667    esac
6668else
6669  enable_fast_install=yes
6670fi;
6671
6672echo "$as_me:$LINENO: checking host system type" >&5
6673echo $ECHO_N "checking host system type... $ECHO_C" >&6
6674if test "${ac_cv_host+set}" = set; then
6675  echo $ECHO_N "(cached) $ECHO_C" >&6
6676else
6677  ac_cv_host_alias=$host_alias
6678test -z "$ac_cv_host_alias" &&
6679  ac_cv_host_alias=$ac_cv_build_alias
6680ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6681  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6682echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6683   { (exit 1); exit 1; }; }
6684
6685fi
6686echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6687echo "${ECHO_T}$ac_cv_host" >&6
6688host=$ac_cv_host
6689host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6690host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6691host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6692
6693
6694echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6695echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6696if test "${lt_cv_path_SED+set}" = set; then
6697  echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699  # Loop through the user's path and test for sed and gsed.
6700# Then use that list of sed's as ones to test for truncation.
6701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704  IFS=$as_save_IFS
6705  test -z "$as_dir" && as_dir=.
6706  for lt_ac_prog in sed gsed; do
6707    for ac_exec_ext in '' $ac_executable_extensions; do
6708      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6709        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6710      fi
6711    done
6712  done
6713done
6714lt_ac_max=0
6715lt_ac_count=0
6716# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6717# along with /bin/sed that truncates output.
6718for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6719  test ! -f $lt_ac_sed && continue
6720  cat /dev/null > conftest.in
6721  lt_ac_count=0
6722  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6723  # Check for GNU sed and select it if it is found.
6724  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6725    lt_cv_path_SED=$lt_ac_sed
6726    break
6727  fi
6728  while true; do
6729    cat conftest.in conftest.in >conftest.tmp
6730    mv conftest.tmp conftest.in
6731    cp conftest.in conftest.nl
6732    echo >>conftest.nl
6733    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6734    cmp -s conftest.out conftest.nl || break
6735    # 10000 chars as input seems more than enough
6736    test $lt_ac_count -gt 10 && break
6737    lt_ac_count=`expr $lt_ac_count + 1`
6738    if test $lt_ac_count -gt $lt_ac_max; then
6739      lt_ac_max=$lt_ac_count
6740      lt_cv_path_SED=$lt_ac_sed
6741    fi
6742  done
6743done
6744
6745fi
6746
6747SED=$lt_cv_path_SED
6748echo "$as_me:$LINENO: result: $SED" >&5
6749echo "${ECHO_T}$SED" >&6
6750
6751
6752# Check whether --with-gnu-ld or --without-gnu-ld was given.
6753if test "${with_gnu_ld+set}" = set; then
6754  withval="$with_gnu_ld"
6755  test "$withval" = no || with_gnu_ld=yes
6756else
6757  with_gnu_ld=no
6758fi;
6759ac_prog=ld
6760if test "$GCC" = yes; then
6761  # Check if gcc -print-prog-name=ld gives a path.
6762  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6763echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6764  case $host in
6765  *-*-mingw*)
6766    # gcc leaves a trailing carriage return which upsets mingw
6767    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6768  *)
6769    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6770  esac
6771  case $ac_prog in
6772    # Accept absolute paths.
6773    [\\/]* | ?:[\\/]*)
6774      re_direlt='/[^/][^/]*/\.\./'
6775      # Canonicalize the pathname of ld
6776      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6777      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6778        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6779      done
6780      test -z "$LD" && LD="$ac_prog"
6781      ;;
6782  "")
6783    # If it fails, then pretend we aren't using GCC.
6784    ac_prog=ld
6785    ;;
6786  *)
6787    # If it is relative, then search for the first ld in PATH.
6788    with_gnu_ld=unknown
6789    ;;
6790  esac
6791elif test "$with_gnu_ld" = yes; then
6792  echo "$as_me:$LINENO: checking for GNU ld" >&5
6793echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6794else
6795  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6796echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6797fi
6798if test "${lt_cv_path_LD+set}" = set; then
6799  echo $ECHO_N "(cached) $ECHO_C" >&6
6800else
6801  if test -z "$LD"; then
6802  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6803  for ac_dir in $PATH; do
6804    IFS="$lt_save_ifs"
6805    test -z "$ac_dir" && ac_dir=.
6806    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6807      lt_cv_path_LD="$ac_dir/$ac_prog"
6808      # Check to see if the program is GNU ld.  I'd rather use --version,
6809      # but apparently some variants of GNU ld only accept -v.
6810      # Break only if it was the GNU/non-GNU ld that we prefer.
6811      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6812      *GNU* | *'with BFD'*)
6813        test "$with_gnu_ld" != no && break
6814        ;;
6815      *)
6816        test "$with_gnu_ld" != yes && break
6817        ;;
6818      esac
6819    fi
6820  done
6821  IFS="$lt_save_ifs"
6822else
6823  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6824fi
6825fi
6826
6827LD="$lt_cv_path_LD"
6828if test -n "$LD"; then
6829  echo "$as_me:$LINENO: result: $LD" >&5
6830echo "${ECHO_T}$LD" >&6
6831else
6832  echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6
6834fi
6835test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6836echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6837   { (exit 1); exit 1; }; }
6838echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6839echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6840if test "${lt_cv_prog_gnu_ld+set}" = set; then
6841  echo $ECHO_N "(cached) $ECHO_C" >&6
6842else
6843  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6844case `$LD -v 2>&1 </dev/null` in
6845*GNU* | *'with BFD'*)
6846  lt_cv_prog_gnu_ld=yes
6847  ;;
6848*)
6849  lt_cv_prog_gnu_ld=no
6850  ;;
6851esac
6852fi
6853echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6854echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6855with_gnu_ld=$lt_cv_prog_gnu_ld
6856
6857
6858echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6859echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6860if test "${lt_cv_ld_reload_flag+set}" = set; then
6861  echo $ECHO_N "(cached) $ECHO_C" >&6
6862else
6863  lt_cv_ld_reload_flag='-r'
6864fi
6865echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6866echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6867reload_flag=$lt_cv_ld_reload_flag
6868case $reload_flag in
6869"" | " "*) ;;
6870*) reload_flag=" $reload_flag" ;;
6871esac
6872reload_cmds='$LD$reload_flag -o $output$reload_objs'
6873case $host_os in
6874  darwin*)
6875    if test "$GCC" = yes; then
6876      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6877    else
6878      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6879    fi
6880    ;;
6881esac
6882
6883echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6884echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6885if test "${lt_cv_path_NM+set}" = set; then
6886  echo $ECHO_N "(cached) $ECHO_C" >&6
6887else
6888  if test -n "$NM"; then
6889  # Let the user override the test.
6890  lt_cv_path_NM="$NM"
6891else
6892  lt_nm_to_check="${ac_tool_prefix}nm"
6893  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6894    lt_nm_to_check="$lt_nm_to_check nm"
6895  fi
6896  for lt_tmp_nm in $lt_nm_to_check; do
6897    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6898    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6899      IFS="$lt_save_ifs"
6900      test -z "$ac_dir" && ac_dir=.
6901      tmp_nm="$ac_dir/$lt_tmp_nm"
6902      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6903        # Check to see if the nm accepts a BSD-compat flag.
6904        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6905        #   nm: unknown option "B" ignored
6906        # Tru64's nm complains that /dev/null is an invalid object file
6907        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6908        */dev/null* | *'Invalid file or object type'*)
6909          lt_cv_path_NM="$tmp_nm -B"
6910          break
6911          ;;
6912        *)
6913          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6914          */dev/null*)
6915            lt_cv_path_NM="$tmp_nm -p"
6916            break
6917            ;;
6918          *)
6919            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6920            continue # so that we can try to find one that supports BSD flags
6921            ;;
6922          esac
6923          ;;
6924        esac
6925      fi
6926    done
6927    IFS="$lt_save_ifs"
6928  done
6929  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6930fi
6931fi
6932echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6933echo "${ECHO_T}$lt_cv_path_NM" >&6
6934NM="$lt_cv_path_NM"
6935
6936echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6937echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6938if test "${lt_cv_deplibs_check_method+set}" = set; then
6939  echo $ECHO_N "(cached) $ECHO_C" >&6
6940else
6941  lt_cv_file_magic_cmd='$MAGIC_CMD'
6942lt_cv_file_magic_test_file=
6943lt_cv_deplibs_check_method='unknown'
6944# Need to set the preceding variable on all platforms that support
6945# interlibrary dependencies.
6946# 'none' -- dependencies not supported.
6947# `unknown' -- same as none, but documents that we really don't know.
6948# 'pass_all' -- all dependencies passed with no checks.
6949# 'test_compile' -- check by making test program.
6950# 'file_magic [[regex]]' -- check by looking for files in library path
6951# which responds to the $file_magic_cmd with a given extended regex.
6952# If you have `file' or equivalent on your system and you're not sure
6953# whether `pass_all' will *always* work, you probably want this one.
6954
6955case $host_os in
6956aix4* | aix5*)
6957  lt_cv_deplibs_check_method=pass_all
6958  ;;
6959
6960beos*)
6961  lt_cv_deplibs_check_method=pass_all
6962  ;;
6963
6964bsdi[45]*)
6965  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6966  lt_cv_file_magic_cmd='/usr/bin/file -L'
6967  lt_cv_file_magic_test_file=/shlib/libc.so
6968  ;;
6969
6970cygwin*)
6971  # func_win32_libid is a shell function defined in ltmain.sh
6972  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6973  lt_cv_file_magic_cmd='func_win32_libid'
6974  ;;
6975
6976mingw* | pw32*)
6977  # Base MSYS/MinGW do not provide the 'file' command needed by
6978  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6979  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6980  lt_cv_file_magic_cmd='$OBJDUMP -f'
6981  ;;
6982
6983darwin* | rhapsody*)
6984  lt_cv_deplibs_check_method=pass_all
6985  ;;
6986
6987freebsd* | kfreebsd*-gnu | dragonfly*)
6988  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6989    case $host_cpu in
6990    i*86 )
6991      # Not sure whether the presence of OpenBSD here was a mistake.
6992      # Let's accept both of them until this is cleared up.
6993      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6994      lt_cv_file_magic_cmd=/usr/bin/file
6995      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6996      ;;
6997    esac
6998  else
6999    lt_cv_deplibs_check_method=pass_all
7000  fi
7001  ;;
7002
7003gnu*)
7004  lt_cv_deplibs_check_method=pass_all
7005  ;;
7006
7007hpux10.20* | hpux11*)
7008  lt_cv_file_magic_cmd=/usr/bin/file
7009  case $host_cpu in
7010  ia64*)
7011    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7012    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7013    ;;
7014  hppa*64*)
7015    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]'
7016    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7017    ;;
7018  *)
7019    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7020    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7021    ;;
7022  esac
7023  ;;
7024
7025interix3*)
7026  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7027  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7028  ;;
7029
7030irix5* | irix6* | nonstopux*)
7031  case $LD in
7032  *-32|*"-32 ") libmagic=32-bit;;
7033  *-n32|*"-n32 ") libmagic=N32;;
7034  *-64|*"-64 ") libmagic=64-bit;;
7035  *) libmagic=never-match;;
7036  esac
7037  lt_cv_deplibs_check_method=pass_all
7038  ;;
7039
7040# This must be Linux ELF.
7041linux*)
7042  lt_cv_deplibs_check_method=pass_all
7043  ;;
7044
7045netbsd*)
7046  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7047    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7048  else
7049    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7050  fi
7051  ;;
7052
7053newos6*)
7054  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7055  lt_cv_file_magic_cmd=/usr/bin/file
7056  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7057  ;;
7058
7059nto-qnx*)
7060  lt_cv_deplibs_check_method=unknown
7061  ;;
7062
7063openbsd*)
7064  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7065    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7066  else
7067    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7068  fi
7069  ;;
7070
7071osf3* | osf4* | osf5*)
7072  lt_cv_deplibs_check_method=pass_all
7073  ;;
7074
7075solaris*)
7076  lt_cv_deplibs_check_method=pass_all
7077  ;;
7078
7079sysv4 | sysv4.3*)
7080  case $host_vendor in
7081  motorola)
7082    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]'
7083    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7084    ;;
7085  ncr)
7086    lt_cv_deplibs_check_method=pass_all
7087    ;;
7088  sequent)
7089    lt_cv_file_magic_cmd='/bin/file'
7090    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7091    ;;
7092  sni)
7093    lt_cv_file_magic_cmd='/bin/file'
7094    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7095    lt_cv_file_magic_test_file=/lib/libc.so
7096    ;;
7097  siemens)
7098    lt_cv_deplibs_check_method=pass_all
7099    ;;
7100  pc)
7101    lt_cv_deplibs_check_method=pass_all
7102    ;;
7103  esac
7104  ;;
7105
7106sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7107  lt_cv_deplibs_check_method=pass_all
7108  ;;
7109esac
7110
7111fi
7112echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7113echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7114file_magic_cmd=$lt_cv_file_magic_cmd
7115deplibs_check_method=$lt_cv_deplibs_check_method
7116test -z "$deplibs_check_method" && deplibs_check_method=unknown
7117
7118
7119
7120
7121# If no C compiler was specified, use CC.
7122LTCC=${LTCC-"$CC"}
7123
7124# If no C compiler flags were specified, use CFLAGS.
7125LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7126
7127# Allow CC to be a program name with arguments.
7128compiler=$CC
7129
7130# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7131if test "${enable_libtool_lock+set}" = set; then
7132  enableval="$enable_libtool_lock"
7133
7134fi;
7135test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7136
7137# Some flags need to be propagated to the compiler or linker for good
7138# libtool support.
7139case $host in
7140ia64-*-hpux*)
7141  # Find out which ABI we are using.
7142  echo 'int i;' > conftest.$ac_ext
7143  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144  (eval $ac_compile) 2>&5
7145  ac_status=$?
7146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147  (exit $ac_status); }; then
7148    case `/usr/bin/file conftest.$ac_objext` in
7149    *ELF-32*)
7150      HPUX_IA64_MODE="32"
7151      ;;
7152    *ELF-64*)
7153      HPUX_IA64_MODE="64"
7154      ;;
7155    esac
7156  fi
7157  rm -rf conftest*
7158  ;;
7159*-*-irix6*)
7160  # Find out which ABI we are using.
7161  echo '#line 7161 "configure"' > conftest.$ac_ext
7162  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163  (eval $ac_compile) 2>&5
7164  ac_status=$?
7165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166  (exit $ac_status); }; then
7167   if test "$lt_cv_prog_gnu_ld" = yes; then
7168    case `/usr/bin/file conftest.$ac_objext` in
7169    *32-bit*)
7170      LD="${LD-ld} -melf32bsmip"
7171      ;;
7172    *N32*)
7173      LD="${LD-ld} -melf32bmipn32"
7174      ;;
7175    *64-bit*)
7176      LD="${LD-ld} -melf64bmip"
7177      ;;
7178    esac
7179   else
7180    case `/usr/bin/file conftest.$ac_objext` in
7181    *32-bit*)
7182      LD="${LD-ld} -32"
7183      ;;
7184    *N32*)
7185      LD="${LD-ld} -n32"
7186      ;;
7187    *64-bit*)
7188      LD="${LD-ld} -64"
7189      ;;
7190    esac
7191   fi
7192  fi
7193  rm -rf conftest*
7194  ;;
7195
7196x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7197  # Find out which ABI we are using.
7198  echo 'int i;' > conftest.$ac_ext
7199  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7200  (eval $ac_compile) 2>&5
7201  ac_status=$?
7202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203  (exit $ac_status); }; then
7204    case `/usr/bin/file conftest.o` in
7205    *32-bit*)
7206      case $host in
7207        x86_64-*linux*)
7208          LD="${LD-ld} -m elf_i386"
7209          ;;
7210        ppc64-*linux*|powerpc64-*linux*)
7211          LD="${LD-ld} -m elf32ppclinux"
7212          ;;
7213        s390x-*linux*)
7214          LD="${LD-ld} -m elf_s390"
7215          ;;
7216        sparc64-*linux*)
7217          LD="${LD-ld} -m elf32_sparc"
7218          ;;
7219      esac
7220      ;;
7221    *64-bit*)
7222      case $host in
7223        x86_64-*linux*)
7224          LD="${LD-ld} -m elf_x86_64"
7225          ;;
7226        ppc*-*linux*|powerpc*-*linux*)
7227          LD="${LD-ld} -m elf64ppc"
7228          ;;
7229        s390*-*linux*)
7230          LD="${LD-ld} -m elf64_s390"
7231          ;;
7232        sparc*-*linux*)
7233          LD="${LD-ld} -m elf64_sparc"
7234          ;;
7235      esac
7236      ;;
7237    esac
7238  fi
7239  rm -rf conftest*
7240  ;;
7241
7242*-*-sco3.2v5*)
7243  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7244  SAVE_CFLAGS="$CFLAGS"
7245  CFLAGS="$CFLAGS -belf"
7246  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7247echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7248if test "${lt_cv_cc_needs_belf+set}" = set; then
7249  echo $ECHO_N "(cached) $ECHO_C" >&6
7250else
7251  ac_ext=c
7252ac_cpp='$CPP $CPPFLAGS'
7253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7255ac_compiler_gnu=$ac_cv_c_compiler_gnu
7256
7257     cat >conftest.$ac_ext <<_ACEOF
7258/* confdefs.h.  */
7259_ACEOF
7260cat confdefs.h >>conftest.$ac_ext
7261cat >>conftest.$ac_ext <<_ACEOF
7262/* end confdefs.h.  */
7263
7264#ifdef F77_DUMMY_MAIN
7265
7266#  ifdef __cplusplus
7267     extern "C"
7268#  endif
7269   int F77_DUMMY_MAIN() { return 1; }
7270
7271#endif
7272int
7273main ()
7274{
7275
7276  ;
7277  return 0;
7278}
7279_ACEOF
7280rm -f conftest.$ac_objext conftest$ac_exeext
7281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7282  (eval $ac_link) 2>conftest.er1
7283  ac_status=$?
7284  grep -v '^ *+' conftest.er1 >conftest.err
7285  rm -f conftest.er1
7286  cat conftest.err >&5
7287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288  (exit $ac_status); } &&
7289         { ac_try='test -z "$ac_c_werror_flag"
7290                         || test ! -s conftest.err'
7291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292  (eval $ac_try) 2>&5
7293  ac_status=$?
7294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295  (exit $ac_status); }; } &&
7296         { ac_try='test -s conftest$ac_exeext'
7297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298  (eval $ac_try) 2>&5
7299  ac_status=$?
7300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301  (exit $ac_status); }; }; then
7302  lt_cv_cc_needs_belf=yes
7303else
7304  echo "$as_me: failed program was:" >&5
7305sed 's/^/| /' conftest.$ac_ext >&5
7306
7307lt_cv_cc_needs_belf=no
7308fi
7309rm -f conftest.err conftest.$ac_objext \
7310      conftest$ac_exeext conftest.$ac_ext
7311     ac_ext=c
7312ac_cpp='$CPP $CPPFLAGS'
7313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7315ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316
7317fi
7318echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7319echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7320  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7321    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7322    CFLAGS="$SAVE_CFLAGS"
7323  fi
7324  ;;
7325sparc*-*solaris*)
7326  # Find out which ABI we are using.
7327  echo 'int i;' > conftest.$ac_ext
7328  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329  (eval $ac_compile) 2>&5
7330  ac_status=$?
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); }; then
7333    case `/usr/bin/file conftest.o` in
7334    *64-bit*)
7335      case $lt_cv_prog_gnu_ld in
7336      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7337      *)    LD="${LD-ld} -64" ;;
7338      esac
7339      ;;
7340    esac
7341  fi
7342  rm -rf conftest*
7343  ;;
7344
7345
7346esac
7347
7348need_locks="$enable_libtool_lock"
7349
7350
7351
7352for ac_header in dlfcn.h
7353do
7354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7355if eval "test \"\${$as_ac_Header+set}\" = set"; then
7356  echo "$as_me:$LINENO: checking for $ac_header" >&5
7357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7358if eval "test \"\${$as_ac_Header+set}\" = set"; then
7359  echo $ECHO_N "(cached) $ECHO_C" >&6
7360fi
7361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7363else
7364  # Is the header compilable?
7365echo "$as_me:$LINENO: checking $ac_header usability" >&5
7366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7367cat >conftest.$ac_ext <<_ACEOF
7368/* confdefs.h.  */
7369_ACEOF
7370cat confdefs.h >>conftest.$ac_ext
7371cat >>conftest.$ac_ext <<_ACEOF
7372/* end confdefs.h.  */
7373$ac_includes_default
7374#include <$ac_header>
7375_ACEOF
7376rm -f conftest.$ac_objext
7377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378  (eval $ac_compile) 2>conftest.er1
7379  ac_status=$?
7380  grep -v '^ *+' conftest.er1 >conftest.err
7381  rm -f conftest.er1
7382  cat conftest.err >&5
7383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384  (exit $ac_status); } &&
7385         { ac_try='test -z "$ac_c_werror_flag"
7386                         || test ! -s conftest.err'
7387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388  (eval $ac_try) 2>&5
7389  ac_status=$?
7390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391  (exit $ac_status); }; } &&
7392         { ac_try='test -s conftest.$ac_objext'
7393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394  (eval $ac_try) 2>&5
7395  ac_status=$?
7396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397  (exit $ac_status); }; }; then
7398  ac_header_compiler=yes
7399else
7400  echo "$as_me: failed program was:" >&5
7401sed 's/^/| /' conftest.$ac_ext >&5
7402
7403ac_header_compiler=no
7404fi
7405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7407echo "${ECHO_T}$ac_header_compiler" >&6
7408
7409# Is the header present?
7410echo "$as_me:$LINENO: checking $ac_header presence" >&5
7411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7412cat >conftest.$ac_ext <<_ACEOF
7413/* confdefs.h.  */
7414_ACEOF
7415cat confdefs.h >>conftest.$ac_ext
7416cat >>conftest.$ac_ext <<_ACEOF
7417/* end confdefs.h.  */
7418#include <$ac_header>
7419_ACEOF
7420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7421  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7422  ac_status=$?
7423  grep -v '^ *+' conftest.er1 >conftest.err
7424  rm -f conftest.er1
7425  cat conftest.err >&5
7426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427  (exit $ac_status); } >/dev/null; then
7428  if test -s conftest.err; then
7429    ac_cpp_err=$ac_c_preproc_warn_flag
7430    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7431  else
7432    ac_cpp_err=
7433  fi
7434else
7435  ac_cpp_err=yes
7436fi
7437if test -z "$ac_cpp_err"; then
7438  ac_header_preproc=yes
7439else
7440  echo "$as_me: failed program was:" >&5
7441sed 's/^/| /' conftest.$ac_ext >&5
7442
7443  ac_header_preproc=no
7444fi
7445rm -f conftest.err conftest.$ac_ext
7446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7447echo "${ECHO_T}$ac_header_preproc" >&6
7448
7449# So?  What about this header?
7450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7451  yes:no: )
7452    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7454    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7456    ac_header_preproc=yes
7457    ;;
7458  no:yes:* )
7459    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7461    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7462echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7463    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7465    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7466echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7467    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7469    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7471    (
7472      cat <<\_ASBOX
7473## --------------------------------------------------------------- ##
7474## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7475## --------------------------------------------------------------- ##
7476_ASBOX
7477    ) |
7478      sed "s/^/$as_me: WARNING:     /" >&2
7479    ;;
7480esac
7481echo "$as_me:$LINENO: checking for $ac_header" >&5
7482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7483if eval "test \"\${$as_ac_Header+set}\" = set"; then
7484  echo $ECHO_N "(cached) $ECHO_C" >&6
7485else
7486  eval "$as_ac_Header=\$ac_header_preproc"
7487fi
7488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7490
7491fi
7492if test `eval echo '${'$as_ac_Header'}'` = yes; then
7493  cat >>confdefs.h <<_ACEOF
7494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7495_ACEOF
7496
7497fi
7498
7499done
7500
7501ac_ext=cc
7502ac_cpp='$CXXCPP $CPPFLAGS'
7503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7506if test -n "$ac_tool_prefix"; then
7507  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7508  do
7509    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7510set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7511echo "$as_me:$LINENO: checking for $ac_word" >&5
7512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7513if test "${ac_cv_prog_CXX+set}" = set; then
7514  echo $ECHO_N "(cached) $ECHO_C" >&6
7515else
7516  if test -n "$CXX"; then
7517  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7518else
7519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522  IFS=$as_save_IFS
7523  test -z "$as_dir" && as_dir=.
7524  for ac_exec_ext in '' $ac_executable_extensions; do
7525  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7527    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528    break 2
7529  fi
7530done
7531done
7532
7533fi
7534fi
7535CXX=$ac_cv_prog_CXX
7536if test -n "$CXX"; then
7537  echo "$as_me:$LINENO: result: $CXX" >&5
7538echo "${ECHO_T}$CXX" >&6
7539else
7540  echo "$as_me:$LINENO: result: no" >&5
7541echo "${ECHO_T}no" >&6
7542fi
7543
7544    test -n "$CXX" && break
7545  done
7546fi
7547if test -z "$CXX"; then
7548  ac_ct_CXX=$CXX
7549  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7550do
7551  # Extract the first word of "$ac_prog", so it can be a program name with args.
7552set dummy $ac_prog; ac_word=$2
7553echo "$as_me:$LINENO: checking for $ac_word" >&5
7554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7555if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7556  echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558  if test -n "$ac_ct_CXX"; then
7559  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7560else
7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564  IFS=$as_save_IFS
7565  test -z "$as_dir" && as_dir=.
7566  for ac_exec_ext in '' $ac_executable_extensions; do
7567  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568    ac_cv_prog_ac_ct_CXX="$ac_prog"
7569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570    break 2
7571  fi
7572done
7573done
7574
7575fi
7576fi
7577ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7578if test -n "$ac_ct_CXX"; then
7579  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7580echo "${ECHO_T}$ac_ct_CXX" >&6
7581else
7582  echo "$as_me:$LINENO: result: no" >&5
7583echo "${ECHO_T}no" >&6
7584fi
7585
7586  test -n "$ac_ct_CXX" && break
7587done
7588test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7589
7590  CXX=$ac_ct_CXX
7591fi
7592
7593
7594# Provide some information about the compiler.
7595echo "$as_me:$LINENO:" \
7596     "checking for C++ compiler version" >&5
7597ac_compiler=`set X $ac_compile; echo $2`
7598{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7599  (eval $ac_compiler --version </dev/null >&5) 2>&5
7600  ac_status=$?
7601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602  (exit $ac_status); }
7603{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7604  (eval $ac_compiler -v </dev/null >&5) 2>&5
7605  ac_status=$?
7606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607  (exit $ac_status); }
7608{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7609  (eval $ac_compiler -V </dev/null >&5) 2>&5
7610  ac_status=$?
7611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612  (exit $ac_status); }
7613
7614echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7615echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7616if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7617  echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619  cat >conftest.$ac_ext <<_ACEOF
7620/* confdefs.h.  */
7621_ACEOF
7622cat confdefs.h >>conftest.$ac_ext
7623cat >>conftest.$ac_ext <<_ACEOF
7624/* end confdefs.h.  */
7625
7626#ifdef F77_DUMMY_MAIN
7627
7628#  ifdef __cplusplus
7629     extern "C"
7630#  endif
7631   int F77_DUMMY_MAIN() { return 1; }
7632
7633#endif
7634int
7635main ()
7636{
7637#ifndef __GNUC__
7638       choke me
7639#endif
7640
7641  ;
7642  return 0;
7643}
7644_ACEOF
7645rm -f conftest.$ac_objext
7646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647  (eval $ac_compile) 2>conftest.er1
7648  ac_status=$?
7649  grep -v '^ *+' conftest.er1 >conftest.err
7650  rm -f conftest.er1
7651  cat conftest.err >&5
7652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653  (exit $ac_status); } &&
7654         { ac_try='test -z "$ac_cxx_werror_flag"
7655                         || test ! -s conftest.err'
7656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657  (eval $ac_try) 2>&5
7658  ac_status=$?
7659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660  (exit $ac_status); }; } &&
7661         { ac_try='test -s conftest.$ac_objext'
7662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663  (eval $ac_try) 2>&5
7664  ac_status=$?
7665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666  (exit $ac_status); }; }; then
7667  ac_compiler_gnu=yes
7668else
7669  echo "$as_me: failed program was:" >&5
7670sed 's/^/| /' conftest.$ac_ext >&5
7671
7672ac_compiler_gnu=no
7673fi
7674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7675ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7676
7677fi
7678echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7679echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7680GXX=`test $ac_compiler_gnu = yes && echo yes`
7681ac_test_CXXFLAGS=${CXXFLAGS+set}
7682ac_save_CXXFLAGS=$CXXFLAGS
7683CXXFLAGS="-g"
7684echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7685echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7686if test "${ac_cv_prog_cxx_g+set}" = set; then
7687  echo $ECHO_N "(cached) $ECHO_C" >&6
7688else
7689  cat >conftest.$ac_ext <<_ACEOF
7690/* confdefs.h.  */
7691_ACEOF
7692cat confdefs.h >>conftest.$ac_ext
7693cat >>conftest.$ac_ext <<_ACEOF
7694/* end confdefs.h.  */
7695
7696#ifdef F77_DUMMY_MAIN
7697
7698#  ifdef __cplusplus
7699     extern "C"
7700#  endif
7701   int F77_DUMMY_MAIN() { return 1; }
7702
7703#endif
7704int
7705main ()
7706{
7707
7708  ;
7709  return 0;
7710}
7711_ACEOF
7712rm -f conftest.$ac_objext
7713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7714  (eval $ac_compile) 2>conftest.er1
7715  ac_status=$?
7716  grep -v '^ *+' conftest.er1 >conftest.err
7717  rm -f conftest.er1
7718  cat conftest.err >&5
7719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720  (exit $ac_status); } &&
7721         { ac_try='test -z "$ac_cxx_werror_flag"
7722                         || test ! -s conftest.err'
7723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724  (eval $ac_try) 2>&5
7725  ac_status=$?
7726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727  (exit $ac_status); }; } &&
7728         { ac_try='test -s conftest.$ac_objext'
7729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730  (eval $ac_try) 2>&5
7731  ac_status=$?
7732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733  (exit $ac_status); }; }; then
7734  ac_cv_prog_cxx_g=yes
7735else
7736  echo "$as_me: failed program was:" >&5
7737sed 's/^/| /' conftest.$ac_ext >&5
7738
7739ac_cv_prog_cxx_g=no
7740fi
7741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7742fi
7743echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7744echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7745if test "$ac_test_CXXFLAGS" = set; then
7746  CXXFLAGS=$ac_save_CXXFLAGS
7747elif test $ac_cv_prog_cxx_g = yes; then
7748  if test "$GXX" = yes; then
7749    CXXFLAGS="-g -O2"
7750  else
7751    CXXFLAGS="-g"
7752  fi
7753else
7754  if test "$GXX" = yes; then
7755    CXXFLAGS="-O2"
7756  else
7757    CXXFLAGS=
7758  fi
7759fi
7760for ac_declaration in \
7761   '' \
7762   'extern "C" void std::exit (int) throw (); using std::exit;' \
7763   'extern "C" void std::exit (int); using std::exit;' \
7764   'extern "C" void exit (int) throw ();' \
7765   'extern "C" void exit (int);' \
7766   'void exit (int);'
7767do
7768  cat >conftest.$ac_ext <<_ACEOF
7769/* confdefs.h.  */
7770_ACEOF
7771cat confdefs.h >>conftest.$ac_ext
7772cat >>conftest.$ac_ext <<_ACEOF
7773/* end confdefs.h.  */
7774$ac_declaration
7775#include <stdlib.h>
7776#ifdef F77_DUMMY_MAIN
7777
7778#  ifdef __cplusplus
7779     extern "C"
7780#  endif
7781   int F77_DUMMY_MAIN() { return 1; }
7782
7783#endif
7784int
7785main ()
7786{
7787exit (42);
7788  ;
7789  return 0;
7790}
7791_ACEOF
7792rm -f conftest.$ac_objext
7793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7794  (eval $ac_compile) 2>conftest.er1
7795  ac_status=$?
7796  grep -v '^ *+' conftest.er1 >conftest.err
7797  rm -f conftest.er1
7798  cat conftest.err >&5
7799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800  (exit $ac_status); } &&
7801         { ac_try='test -z "$ac_cxx_werror_flag"
7802                         || test ! -s conftest.err'
7803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804  (eval $ac_try) 2>&5
7805  ac_status=$?
7806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807  (exit $ac_status); }; } &&
7808         { ac_try='test -s conftest.$ac_objext'
7809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810  (eval $ac_try) 2>&5
7811  ac_status=$?
7812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813  (exit $ac_status); }; }; then
7814  :
7815else
7816  echo "$as_me: failed program was:" >&5
7817sed 's/^/| /' conftest.$ac_ext >&5
7818
7819continue
7820fi
7821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7822  cat >conftest.$ac_ext <<_ACEOF
7823/* confdefs.h.  */
7824_ACEOF
7825cat confdefs.h >>conftest.$ac_ext
7826cat >>conftest.$ac_ext <<_ACEOF
7827/* end confdefs.h.  */
7828$ac_declaration
7829#ifdef F77_DUMMY_MAIN
7830
7831#  ifdef __cplusplus
7832     extern "C"
7833#  endif
7834   int F77_DUMMY_MAIN() { return 1; }
7835
7836#endif
7837int
7838main ()
7839{
7840exit (42);
7841  ;
7842  return 0;
7843}
7844_ACEOF
7845rm -f conftest.$ac_objext
7846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847  (eval $ac_compile) 2>conftest.er1
7848  ac_status=$?
7849  grep -v '^ *+' conftest.er1 >conftest.err
7850  rm -f conftest.er1
7851  cat conftest.err >&5
7852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853  (exit $ac_status); } &&
7854         { ac_try='test -z "$ac_cxx_werror_flag"
7855                         || test ! -s conftest.err'
7856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857  (eval $ac_try) 2>&5
7858  ac_status=$?
7859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860  (exit $ac_status); }; } &&
7861         { ac_try='test -s conftest.$ac_objext'
7862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863  (eval $ac_try) 2>&5
7864  ac_status=$?
7865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866  (exit $ac_status); }; }; then
7867  break
7868else
7869  echo "$as_me: failed program was:" >&5
7870sed 's/^/| /' conftest.$ac_ext >&5
7871
7872fi
7873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7874done
7875rm -f conftest*
7876if test -n "$ac_declaration"; then
7877  echo '#ifdef __cplusplus' >>confdefs.h
7878  echo $ac_declaration      >>confdefs.h
7879  echo '#endif'             >>confdefs.h
7880fi
7881
7882ac_ext=cc
7883ac_cpp='$CXXCPP $CPPFLAGS'
7884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7887
7888depcc="$CXX"  am_compiler_list=
7889
7890echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7891echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7892if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7893  echo $ECHO_N "(cached) $ECHO_C" >&6
7894else
7895  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7896  # We make a subdir and do the tests there.  Otherwise we can end up
7897  # making bogus files that we don't know about and never remove.  For
7898  # instance it was reported that on HP-UX the gcc test will end up
7899  # making a dummy file named `D' -- because `-MD' means `put the output
7900  # in D'.
7901  mkdir conftest.dir
7902  # Copy depcomp to subdir because otherwise we won't find it if we're
7903  # using a relative directory.
7904  cp "$am_depcomp" conftest.dir
7905  cd conftest.dir
7906  # We will build objects and dependencies in a subdirectory because
7907  # it helps to detect inapplicable dependency modes.  For instance
7908  # both Tru64's cc and ICC support -MD to output dependencies as a
7909  # side effect of compilation, but ICC will put the dependencies in
7910  # the current directory while Tru64 will put them in the object
7911  # directory.
7912  mkdir sub
7913
7914  am_cv_CXX_dependencies_compiler_type=none
7915  if test "$am_compiler_list" = ""; then
7916     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7917  fi
7918  for depmode in $am_compiler_list; do
7919    # Setup a source with many dependencies, because some compilers
7920    # like to wrap large dependency lists on column 80 (with \), and
7921    # we should not choose a depcomp mode which is confused by this.
7922    #
7923    # We need to recreate these files for each test, as the compiler may
7924    # overwrite some of them when testing with obscure command lines.
7925    # This happens at least with the AIX C compiler.
7926    : > sub/conftest.c
7927    for i in 1 2 3 4 5 6; do
7928      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7929      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7930      # Solaris 8's {/usr,}/bin/sh.
7931      touch sub/conftst$i.h
7932    done
7933    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7934
7935    case $depmode in
7936    nosideeffect)
7937      # after this tag, mechanisms are not by side-effect, so they'll
7938      # only be used when explicitly requested
7939      if test "x$enable_dependency_tracking" = xyes; then
7940        continue
7941      else
7942        break
7943      fi
7944      ;;
7945    none) break ;;
7946    esac
7947    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7948    # mode.  It turns out that the SunPro C++ compiler does not properly
7949    # handle `-M -o', and we need to detect this.
7950    if depmode=$depmode \
7951       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7952       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7953       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7954         >/dev/null 2>conftest.err &&
7955       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7956       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7957       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7958      # icc doesn't choke on unknown options, it will just issue warnings
7959      # or remarks (even with -Werror).  So we grep stderr for any message
7960      # that says an option was ignored or not supported.
7961      # When given -MP, icc 7.0 and 7.1 complain thusly:
7962      #   icc: Command line warning: ignoring option '-M'; no argument required
7963      # The diagnosis changed in icc 8.0:
7964      #   icc: Command line remark: option '-MP' not supported
7965      if (grep 'ignoring option' conftest.err ||
7966          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7967        am_cv_CXX_dependencies_compiler_type=$depmode
7968        break
7969      fi
7970    fi
7971  done
7972
7973  cd ..
7974  rm -rf conftest.dir
7975else
7976  am_cv_CXX_dependencies_compiler_type=none
7977fi
7978
7979fi
7980echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7981echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7982CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7983
7984
7985
7986if
7987  test "x$enable_dependency_tracking" != xno \
7988  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7989  am__fastdepCXX_TRUE=
7990  am__fastdepCXX_FALSE='#'
7991else
7992  am__fastdepCXX_TRUE='#'
7993  am__fastdepCXX_FALSE=
7994fi
7995
7996
7997
7998
7999if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8000    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8001    (test "X$CXX" != "Xg++"))) ; then
8002  ac_ext=cc
8003ac_cpp='$CXXCPP $CPPFLAGS'
8004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8007echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8008echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8009if test -z "$CXXCPP"; then
8010  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8011  echo $ECHO_N "(cached) $ECHO_C" >&6
8012else
8013      # Double quotes because CXXCPP needs to be expanded
8014    for CXXCPP in "$CXX -E" "/lib/cpp"
8015    do
8016      ac_preproc_ok=false
8017for ac_cxx_preproc_warn_flag in '' yes
8018do
8019  # Use a header file that comes with gcc, so configuring glibc
8020  # with a fresh cross-compiler works.
8021  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8022  # <limits.h> exists even on freestanding compilers.
8023  # On the NeXT, cc -E runs the code through the compiler's parser,
8024  # not just through cpp. "Syntax error" is here to catch this case.
8025  cat >conftest.$ac_ext <<_ACEOF
8026/* confdefs.h.  */
8027_ACEOF
8028cat confdefs.h >>conftest.$ac_ext
8029cat >>conftest.$ac_ext <<_ACEOF
8030/* end confdefs.h.  */
8031#ifdef __STDC__
8032# include <limits.h>
8033#else
8034# include <assert.h>
8035#endif
8036                     Syntax error
8037_ACEOF
8038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8039  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8040  ac_status=$?
8041  grep -v '^ *+' conftest.er1 >conftest.err
8042  rm -f conftest.er1
8043  cat conftest.err >&5
8044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045  (exit $ac_status); } >/dev/null; then
8046  if test -s conftest.err; then
8047    ac_cpp_err=$ac_cxx_preproc_warn_flag
8048    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8049  else
8050    ac_cpp_err=
8051  fi
8052else
8053  ac_cpp_err=yes
8054fi
8055if test -z "$ac_cpp_err"; then
8056  :
8057else
8058  echo "$as_me: failed program was:" >&5
8059sed 's/^/| /' conftest.$ac_ext >&5
8060
8061  # Broken: fails on valid input.
8062continue
8063fi
8064rm -f conftest.err conftest.$ac_ext
8065
8066  # OK, works on sane cases.  Now check whether non-existent headers
8067  # can be detected and how.
8068  cat >conftest.$ac_ext <<_ACEOF
8069/* confdefs.h.  */
8070_ACEOF
8071cat confdefs.h >>conftest.$ac_ext
8072cat >>conftest.$ac_ext <<_ACEOF
8073/* end confdefs.h.  */
8074#include <ac_nonexistent.h>
8075_ACEOF
8076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8077  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8078  ac_status=$?
8079  grep -v '^ *+' conftest.er1 >conftest.err
8080  rm -f conftest.er1
8081  cat conftest.err >&5
8082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083  (exit $ac_status); } >/dev/null; then
8084  if test -s conftest.err; then
8085    ac_cpp_err=$ac_cxx_preproc_warn_flag
8086    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8087  else
8088    ac_cpp_err=
8089  fi
8090else
8091  ac_cpp_err=yes
8092fi
8093if test -z "$ac_cpp_err"; then
8094  # Broken: success on invalid input.
8095continue
8096else
8097  echo "$as_me: failed program was:" >&5
8098sed 's/^/| /' conftest.$ac_ext >&5
8099
8100  # Passes both tests.
8101ac_preproc_ok=:
8102break
8103fi
8104rm -f conftest.err conftest.$ac_ext
8105
8106done
8107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8108rm -f conftest.err conftest.$ac_ext
8109if $ac_preproc_ok; then
8110  break
8111fi
8112
8113    done
8114    ac_cv_prog_CXXCPP=$CXXCPP
8115
8116fi
8117  CXXCPP=$ac_cv_prog_CXXCPP
8118else
8119  ac_cv_prog_CXXCPP=$CXXCPP
8120fi
8121echo "$as_me:$LINENO: result: $CXXCPP" >&5
8122echo "${ECHO_T}$CXXCPP" >&6
8123ac_preproc_ok=false
8124for ac_cxx_preproc_warn_flag in '' yes
8125do
8126  # Use a header file that comes with gcc, so configuring glibc
8127  # with a fresh cross-compiler works.
8128  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8129  # <limits.h> exists even on freestanding compilers.
8130  # On the NeXT, cc -E runs the code through the compiler's parser,
8131  # not just through cpp. "Syntax error" is here to catch this case.
8132  cat >conftest.$ac_ext <<_ACEOF
8133/* confdefs.h.  */
8134_ACEOF
8135cat confdefs.h >>conftest.$ac_ext
8136cat >>conftest.$ac_ext <<_ACEOF
8137/* end confdefs.h.  */
8138#ifdef __STDC__
8139# include <limits.h>
8140#else
8141# include <assert.h>
8142#endif
8143                     Syntax error
8144_ACEOF
8145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8146  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8147  ac_status=$?
8148  grep -v '^ *+' conftest.er1 >conftest.err
8149  rm -f conftest.er1
8150  cat conftest.err >&5
8151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152  (exit $ac_status); } >/dev/null; then
8153  if test -s conftest.err; then
8154    ac_cpp_err=$ac_cxx_preproc_warn_flag
8155    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8156  else
8157    ac_cpp_err=
8158  fi
8159else
8160  ac_cpp_err=yes
8161fi
8162if test -z "$ac_cpp_err"; then
8163  :
8164else
8165  echo "$as_me: failed program was:" >&5
8166sed 's/^/| /' conftest.$ac_ext >&5
8167
8168  # Broken: fails on valid input.
8169continue
8170fi
8171rm -f conftest.err conftest.$ac_ext
8172
8173  # OK, works on sane cases.  Now check whether non-existent headers
8174  # can be detected and how.
8175  cat >conftest.$ac_ext <<_ACEOF
8176/* confdefs.h.  */
8177_ACEOF
8178cat confdefs.h >>conftest.$ac_ext
8179cat >>conftest.$ac_ext <<_ACEOF
8180/* end confdefs.h.  */
8181#include <ac_nonexistent.h>
8182_ACEOF
8183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8184  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8185  ac_status=$?
8186  grep -v '^ *+' conftest.er1 >conftest.err
8187  rm -f conftest.er1
8188  cat conftest.err >&5
8189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190  (exit $ac_status); } >/dev/null; then
8191  if test -s conftest.err; then
8192    ac_cpp_err=$ac_cxx_preproc_warn_flag
8193    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8194  else
8195    ac_cpp_err=
8196  fi
8197else
8198  ac_cpp_err=yes
8199fi
8200if test -z "$ac_cpp_err"; then
8201  # Broken: success on invalid input.
8202continue
8203else
8204  echo "$as_me: failed program was:" >&5
8205sed 's/^/| /' conftest.$ac_ext >&5
8206
8207  # Passes both tests.
8208ac_preproc_ok=:
8209break
8210fi
8211rm -f conftest.err conftest.$ac_ext
8212
8213done
8214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8215rm -f conftest.err conftest.$ac_ext
8216if $ac_preproc_ok; then
8217  :
8218else
8219  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8220See \`config.log' for more details." >&5
8221echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8222See \`config.log' for more details." >&2;}
8223   { (exit 1); exit 1; }; }
8224fi
8225
8226ac_ext=cc
8227ac_cpp='$CXXCPP $CPPFLAGS'
8228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8231
8232fi
8233
8234
8235
8236# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8237
8238# find the maximum length of command line arguments
8239echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8240echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8241if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8242  echo $ECHO_N "(cached) $ECHO_C" >&6
8243else
8244    i=0
8245  teststring="ABCD"
8246
8247  case $build_os in
8248  msdosdjgpp*)
8249    # On DJGPP, this test can blow up pretty badly due to problems in libc
8250    # (any single argument exceeding 2000 bytes causes a buffer overrun
8251    # during glob expansion).  Even if it were fixed, the result of this
8252    # check would be larger than it should be.
8253    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8254    ;;
8255
8256  gnu*)
8257    # Under GNU Hurd, this test is not required because there is
8258    # no limit to the length of command line arguments.
8259    # Libtool will interpret -1 as no limit whatsoever
8260    lt_cv_sys_max_cmd_len=-1;
8261    ;;
8262
8263  cygwin* | mingw*)
8264    # On Win9x/ME, this test blows up -- it succeeds, but takes
8265    # about 5 minutes as the teststring grows exponentially.
8266    # Worse, since 9x/ME are not pre-emptively multitasking,
8267    # you end up with a "frozen" computer, even though with patience
8268    # the test eventually succeeds (with a max line length of 256k).
8269    # Instead, let's just punt: use the minimum linelength reported by
8270    # all of the supported platforms: 8192 (on NT/2K/XP).
8271    lt_cv_sys_max_cmd_len=8192;
8272    ;;
8273
8274  amigaos*)
8275    # On AmigaOS with pdksh, this test takes hours, literally.
8276    # So we just punt and use a minimum line length of 8192.
8277    lt_cv_sys_max_cmd_len=8192;
8278    ;;
8279
8280  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8281    # This has been around since 386BSD, at least.  Likely further.
8282    if test -x /sbin/sysctl; then
8283      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8284    elif test -x /usr/sbin/sysctl; then
8285      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8286    else
8287      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8288    fi
8289    # And add a safety zone
8290    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8291    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8292    ;;
8293
8294  interix*)
8295    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8296    lt_cv_sys_max_cmd_len=196608
8297    ;;
8298
8299  osf*)
8300    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8301    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8302    # nice to cause kernel panics so lets avoid the loop below.
8303    # First set a reasonable default.
8304    lt_cv_sys_max_cmd_len=16384
8305    #
8306    if test -x /sbin/sysconfig; then
8307      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8308        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8309      esac
8310    fi
8311    ;;
8312  sco3.2v5*)
8313    lt_cv_sys_max_cmd_len=102400
8314    ;;
8315  sysv5* | sco5v6* | sysv4.2uw2*)
8316    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8317    if test -n "$kargmax"; then
8318      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8319    else
8320      lt_cv_sys_max_cmd_len=32768
8321    fi
8322    ;;
8323  *)
8324    # If test is not a shell built-in, we'll probably end up computing a
8325    # maximum length that is only half of the actual maximum length, but
8326    # we can't tell.
8327    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8328    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8329               = "XX$teststring") >/dev/null 2>&1 &&
8330            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8331            lt_cv_sys_max_cmd_len=$new_result &&
8332            test $i != 17 # 1/2 MB should be enough
8333    do
8334      i=`expr $i + 1`
8335      teststring=$teststring$teststring
8336    done
8337    teststring=
8338    # Add a significant safety factor because C++ compilers can tack on massive
8339    # amounts of additional arguments before passing them to the linker.
8340    # It appears as though 1/2 is a usable value.
8341    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8342    ;;
8343  esac
8344
8345fi
8346
8347if test -n $lt_cv_sys_max_cmd_len ; then
8348  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8349echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8350else
8351  echo "$as_me:$LINENO: result: none" >&5
8352echo "${ECHO_T}none" >&6
8353fi
8354
8355
8356
8357
8358# Check for command to grab the raw symbol name followed by C symbol from nm.
8359echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8360echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8361if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8362  echo $ECHO_N "(cached) $ECHO_C" >&6
8363else
8364
8365# These are sane defaults that work on at least a few old systems.
8366# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8367
8368# Character class describing NM global symbol codes.
8369symcode='[BCDEGRST]'
8370
8371# Regexp to match symbols that can be accessed directly from C.
8372sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8373
8374# Transform an extracted symbol line into a proper C declaration
8375lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8376
8377# Transform an extracted symbol line into symbol name and symbol address
8378lt_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'"
8379
8380# Define system-specific variables.
8381case $host_os in
8382aix*)
8383  symcode='[BCDT]'
8384  ;;
8385cygwin* | mingw* | pw32*)
8386  symcode='[ABCDGISTW]'
8387  ;;
8388hpux*) # Its linker distinguishes data from code symbols
8389  if test "$host_cpu" = ia64; then
8390    symcode='[ABCDEGRST]'
8391  fi
8392  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8393  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'"
8394  ;;
8395linux*)
8396  if test "$host_cpu" = ia64; then
8397    symcode='[ABCDGIRSTW]'
8398    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8399    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'"
8400  fi
8401  ;;
8402irix* | nonstopux*)
8403  symcode='[BCDEGRST]'
8404  ;;
8405osf*)
8406  symcode='[BCDEGQRST]'
8407  ;;
8408solaris*)
8409  symcode='[BDRT]'
8410  ;;
8411sco3.2v5*)
8412  symcode='[DT]'
8413  ;;
8414sysv4.2uw2*)
8415  symcode='[DT]'
8416  ;;
8417sysv5* | sco5v6* | unixware* | OpenUNIX*)
8418  symcode='[ABDT]'
8419  ;;
8420sysv4)
8421  symcode='[DFNSTU]'
8422  ;;
8423esac
8424
8425# Handle CRLF in mingw tool chain
8426opt_cr=
8427case $build_os in
8428mingw*)
8429  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8430  ;;
8431esac
8432
8433# If we're using GNU nm, then use its standard symbol codes.
8434case `$NM -V 2>&1` in
8435*GNU* | *'with BFD'*)
8436  symcode='[ABCDGIRSTW]' ;;
8437esac
8438
8439# Try without a prefix undercore, then with it.
8440for ac_symprfx in "" "_"; do
8441
8442  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8443  symxfrm="\\1 $ac_symprfx\\2 \\2"
8444
8445  # Write the raw and C identifiers.
8446  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8447
8448  # Check to see that the pipe works correctly.
8449  pipe_works=no
8450
8451  rm -f conftest*
8452  cat > conftest.$ac_ext <<EOF
8453#ifdef __cplusplus
8454extern "C" {
8455#endif
8456char nm_test_var;
8457void nm_test_func(){}
8458#ifdef __cplusplus
8459}
8460#endif
8461int main(){nm_test_var='a';nm_test_func();return(0);}
8462EOF
8463
8464  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8465  (eval $ac_compile) 2>&5
8466  ac_status=$?
8467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468  (exit $ac_status); }; then
8469    # Now try to grab the symbols.
8470    nlist=conftest.nm
8471    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8472  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8473  ac_status=$?
8474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475  (exit $ac_status); } && test -s "$nlist"; then
8476      # Try sorting and uniquifying the output.
8477      if sort "$nlist" | uniq > "$nlist"T; then
8478        mv -f "$nlist"T "$nlist"
8479      else
8480        rm -f "$nlist"T
8481      fi
8482
8483      # Make sure that we snagged all the symbols we need.
8484      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8485        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8486          cat <<EOF > conftest.$ac_ext
8487#ifdef __cplusplus
8488extern "C" {
8489#endif
8490
8491EOF
8492          # Now generate the symbol file.
8493          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8494
8495          cat <<EOF >> conftest.$ac_ext
8496#if defined (__STDC__) && __STDC__
8497# define lt_ptr_t void *
8498#else
8499# define lt_ptr_t char *
8500# define const
8501#endif
8502
8503/* The mapping between symbol names and symbols. */
8504const struct {
8505  const char *name;
8506  lt_ptr_t address;
8507}
8508lt_preloaded_symbols[] =
8509{
8510EOF
8511          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8512          cat <<\EOF >> conftest.$ac_ext
8513  {0, (lt_ptr_t) 0}
8514};
8515
8516#ifdef __cplusplus
8517}
8518#endif
8519EOF
8520          # Now try linking the two files.
8521          mv conftest.$ac_objext conftstm.$ac_objext
8522          lt_save_LIBS="$LIBS"
8523          lt_save_CFLAGS="$CFLAGS"
8524          LIBS="conftstm.$ac_objext"
8525          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8526          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527  (eval $ac_link) 2>&5
8528  ac_status=$?
8529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8531            pipe_works=yes
8532          fi
8533          LIBS="$lt_save_LIBS"
8534          CFLAGS="$lt_save_CFLAGS"
8535        else
8536          echo "cannot find nm_test_func in $nlist" >&5
8537        fi
8538      else
8539        echo "cannot find nm_test_var in $nlist" >&5
8540      fi
8541    else
8542      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8543    fi
8544  else
8545    echo "$progname: failed program was:" >&5
8546    cat conftest.$ac_ext >&5
8547  fi
8548  rm -f conftest* conftst*
8549
8550  # Do not use the global_symbol_pipe unless it works.
8551  if test "$pipe_works" = yes; then
8552    break
8553  else
8554    lt_cv_sys_global_symbol_pipe=
8555  fi
8556done
8557
8558fi
8559
8560if test -z "$lt_cv_sys_global_symbol_pipe"; then
8561  lt_cv_sys_global_symbol_to_cdecl=
8562fi
8563if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8564  echo "$as_me:$LINENO: result: failed" >&5
8565echo "${ECHO_T}failed" >&6
8566else
8567  echo "$as_me:$LINENO: result: ok" >&5
8568echo "${ECHO_T}ok" >&6
8569fi
8570
8571echo "$as_me:$LINENO: checking for objdir" >&5
8572echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8573if test "${lt_cv_objdir+set}" = set; then
8574  echo $ECHO_N "(cached) $ECHO_C" >&6
8575else
8576  rm -f .libs 2>/dev/null
8577mkdir .libs 2>/dev/null
8578if test -d .libs; then
8579  lt_cv_objdir=.libs
8580else
8581  # MS-DOS does not allow filenames that begin with a dot.
8582  lt_cv_objdir=_libs
8583fi
8584rmdir .libs 2>/dev/null
8585fi
8586echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8587echo "${ECHO_T}$lt_cv_objdir" >&6
8588objdir=$lt_cv_objdir
8589
8590
8591
8592
8593
8594case $host_os in
8595aix3*)
8596  # AIX sometimes has problems with the GCC collect2 program.  For some
8597  # reason, if we set the COLLECT_NAMES environment variable, the problems
8598  # vanish in a puff of smoke.
8599  if test "X${COLLECT_NAMES+set}" != Xset; then
8600    COLLECT_NAMES=
8601    export COLLECT_NAMES
8602  fi
8603  ;;
8604esac
8605
8606# Sed substitution that helps us do robust quoting.  It backslashifies
8607# metacharacters that are still active within double-quoted strings.
8608Xsed='sed -e 1s/^X//'
8609sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8610
8611# Same as above, but do not quote variable references.
8612double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8613
8614# Sed substitution to delay expansion of an escaped shell variable in a
8615# double_quote_subst'ed string.
8616delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8617
8618# Sed substitution to avoid accidental globbing in evaled expressions
8619no_glob_subst='s/\*/\\\*/g'
8620
8621# Constants:
8622rm="rm -f"
8623
8624# Global variables:
8625default_ofile=libtool
8626can_build_shared=yes
8627
8628# All known linkers require a `.a' archive for static linking (except MSVC,
8629# which needs '.lib').
8630libext=a
8631ltmain="$ac_aux_dir/ltmain.sh"
8632ofile="$default_ofile"
8633with_gnu_ld="$lt_cv_prog_gnu_ld"
8634
8635if test -n "$ac_tool_prefix"; then
8636  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8637set dummy ${ac_tool_prefix}ar; ac_word=$2
8638echo "$as_me:$LINENO: checking for $ac_word" >&5
8639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8640if test "${ac_cv_prog_AR+set}" = set; then
8641  echo $ECHO_N "(cached) $ECHO_C" >&6
8642else
8643  if test -n "$AR"; then
8644  ac_cv_prog_AR="$AR" # Let the user override the test.
8645else
8646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649  IFS=$as_save_IFS
8650  test -z "$as_dir" && as_dir=.
8651  for ac_exec_ext in '' $ac_executable_extensions; do
8652  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653    ac_cv_prog_AR="${ac_tool_prefix}ar"
8654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8655    break 2
8656  fi
8657done
8658done
8659
8660fi
8661fi
8662AR=$ac_cv_prog_AR
8663if test -n "$AR"; then
8664  echo "$as_me:$LINENO: result: $AR" >&5
8665echo "${ECHO_T}$AR" >&6
8666else
8667  echo "$as_me:$LINENO: result: no" >&5
8668echo "${ECHO_T}no" >&6
8669fi
8670
8671fi
8672if test -z "$ac_cv_prog_AR"; then
8673  ac_ct_AR=$AR
8674  # Extract the first word of "ar", so it can be a program name with args.
8675set dummy ar; ac_word=$2
8676echo "$as_me:$LINENO: checking for $ac_word" >&5
8677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8678if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8679  echo $ECHO_N "(cached) $ECHO_C" >&6
8680else
8681  if test -n "$ac_ct_AR"; then
8682  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8683else
8684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685for as_dir in $PATH
8686do
8687  IFS=$as_save_IFS
8688  test -z "$as_dir" && as_dir=.
8689  for ac_exec_ext in '' $ac_executable_extensions; do
8690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8691    ac_cv_prog_ac_ct_AR="ar"
8692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8693    break 2
8694  fi
8695done
8696done
8697
8698  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8699fi
8700fi
8701ac_ct_AR=$ac_cv_prog_ac_ct_AR
8702if test -n "$ac_ct_AR"; then
8703  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8704echo "${ECHO_T}$ac_ct_AR" >&6
8705else
8706  echo "$as_me:$LINENO: result: no" >&5
8707echo "${ECHO_T}no" >&6
8708fi
8709
8710  AR=$ac_ct_AR
8711else
8712  AR="$ac_cv_prog_AR"
8713fi
8714
8715if test -n "$ac_tool_prefix"; then
8716  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8717set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8718echo "$as_me:$LINENO: checking for $ac_word" >&5
8719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8720if test "${ac_cv_prog_RANLIB+set}" = set; then
8721  echo $ECHO_N "(cached) $ECHO_C" >&6
8722else
8723  if test -n "$RANLIB"; then
8724  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8725else
8726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727for as_dir in $PATH
8728do
8729  IFS=$as_save_IFS
8730  test -z "$as_dir" && as_dir=.
8731  for ac_exec_ext in '' $ac_executable_extensions; do
8732  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8735    break 2
8736  fi
8737done
8738done
8739
8740fi
8741fi
8742RANLIB=$ac_cv_prog_RANLIB
8743if test -n "$RANLIB"; then
8744  echo "$as_me:$LINENO: result: $RANLIB" >&5
8745echo "${ECHO_T}$RANLIB" >&6
8746else
8747  echo "$as_me:$LINENO: result: no" >&5
8748echo "${ECHO_T}no" >&6
8749fi
8750
8751fi
8752if test -z "$ac_cv_prog_RANLIB"; then
8753  ac_ct_RANLIB=$RANLIB
8754  # Extract the first word of "ranlib", so it can be a program name with args.
8755set dummy ranlib; ac_word=$2
8756echo "$as_me:$LINENO: checking for $ac_word" >&5
8757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8758if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8759  echo $ECHO_N "(cached) $ECHO_C" >&6
8760else
8761  if test -n "$ac_ct_RANLIB"; then
8762  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8763else
8764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765for as_dir in $PATH
8766do
8767  IFS=$as_save_IFS
8768  test -z "$as_dir" && as_dir=.
8769  for ac_exec_ext in '' $ac_executable_extensions; do
8770  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8771    ac_cv_prog_ac_ct_RANLIB="ranlib"
8772    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8773    break 2
8774  fi
8775done
8776done
8777
8778  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8779fi
8780fi
8781ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8782if test -n "$ac_ct_RANLIB"; then
8783  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8784echo "${ECHO_T}$ac_ct_RANLIB" >&6
8785else
8786  echo "$as_me:$LINENO: result: no" >&5
8787echo "${ECHO_T}no" >&6
8788fi
8789
8790  RANLIB=$ac_ct_RANLIB
8791else
8792  RANLIB="$ac_cv_prog_RANLIB"
8793fi
8794
8795if test -n "$ac_tool_prefix"; then
8796  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8797set dummy ${ac_tool_prefix}strip; ac_word=$2
8798echo "$as_me:$LINENO: checking for $ac_word" >&5
8799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8800if test "${ac_cv_prog_STRIP+set}" = set; then
8801  echo $ECHO_N "(cached) $ECHO_C" >&6
8802else
8803  if test -n "$STRIP"; then
8804  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8805else
8806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $PATH
8808do
8809  IFS=$as_save_IFS
8810  test -z "$as_dir" && as_dir=.
8811  for ac_exec_ext in '' $ac_executable_extensions; do
8812  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8814    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8815    break 2
8816  fi
8817done
8818done
8819
8820fi
8821fi
8822STRIP=$ac_cv_prog_STRIP
8823if test -n "$STRIP"; then
8824  echo "$as_me:$LINENO: result: $STRIP" >&5
8825echo "${ECHO_T}$STRIP" >&6
8826else
8827  echo "$as_me:$LINENO: result: no" >&5
8828echo "${ECHO_T}no" >&6
8829fi
8830
8831fi
8832if test -z "$ac_cv_prog_STRIP"; then
8833  ac_ct_STRIP=$STRIP
8834  # Extract the first word of "strip", so it can be a program name with args.
8835set dummy strip; ac_word=$2
8836echo "$as_me:$LINENO: checking for $ac_word" >&5
8837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8838if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8839  echo $ECHO_N "(cached) $ECHO_C" >&6
8840else
8841  if test -n "$ac_ct_STRIP"; then
8842  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8843else
8844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845for as_dir in $PATH
8846do
8847  IFS=$as_save_IFS
8848  test -z "$as_dir" && as_dir=.
8849  for ac_exec_ext in '' $ac_executable_extensions; do
8850  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8851    ac_cv_prog_ac_ct_STRIP="strip"
8852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8853    break 2
8854  fi
8855done
8856done
8857
8858  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8859fi
8860fi
8861ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8862if test -n "$ac_ct_STRIP"; then
8863  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8864echo "${ECHO_T}$ac_ct_STRIP" >&6
8865else
8866  echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
8868fi
8869
8870  STRIP=$ac_ct_STRIP
8871else
8872  STRIP="$ac_cv_prog_STRIP"
8873fi
8874
8875
8876old_CC="$CC"
8877old_CFLAGS="$CFLAGS"
8878
8879# Set sane defaults for various variables
8880test -z "$AR" && AR=ar
8881test -z "$AR_FLAGS" && AR_FLAGS=cru
8882test -z "$AS" && AS=as
8883test -z "$CC" && CC=cc
8884test -z "$LTCC" && LTCC=$CC
8885test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8886test -z "$DLLTOOL" && DLLTOOL=dlltool
8887test -z "$LD" && LD=ld
8888test -z "$LN_S" && LN_S="ln -s"
8889test -z "$MAGIC_CMD" && MAGIC_CMD=file
8890test -z "$NM" && NM=nm
8891test -z "$SED" && SED=sed
8892test -z "$OBJDUMP" && OBJDUMP=objdump
8893test -z "$RANLIB" && RANLIB=:
8894test -z "$STRIP" && STRIP=:
8895test -z "$ac_objext" && ac_objext=o
8896
8897# Determine commands to create old-style static archives.
8898old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8899old_postinstall_cmds='chmod 644 $oldlib'
8900old_postuninstall_cmds=
8901
8902if test -n "$RANLIB"; then
8903  case $host_os in
8904  openbsd*)
8905    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8906    ;;
8907  *)
8908    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8909    ;;
8910  esac
8911  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8912fi
8913
8914for cc_temp in $compiler""; do
8915  case $cc_temp in
8916    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8917    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8918    \-*) ;;
8919    *) break;;
8920  esac
8921done
8922cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8923
8924
8925# Only perform the check for file, if the check method requires it
8926case $deplibs_check_method in
8927file_magic*)
8928  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8929    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8930echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8931if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8932  echo $ECHO_N "(cached) $ECHO_C" >&6
8933else
8934  case $MAGIC_CMD in
8935[\\/*] |  ?:[\\/]*)
8936  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8937  ;;
8938*)
8939  lt_save_MAGIC_CMD="$MAGIC_CMD"
8940  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8941  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8942  for ac_dir in $ac_dummy; do
8943    IFS="$lt_save_ifs"
8944    test -z "$ac_dir" && ac_dir=.
8945    if test -f $ac_dir/${ac_tool_prefix}file; then
8946      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8947      if test -n "$file_magic_test_file"; then
8948        case $deplibs_check_method in
8949        "file_magic "*)
8950          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8951          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8952          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8953            $EGREP "$file_magic_regex" > /dev/null; then
8954            :
8955          else
8956            cat <<EOF 1>&2
8957
8958*** Warning: the command libtool uses to detect shared libraries,
8959*** $file_magic_cmd, produces output that libtool cannot recognize.
8960*** The result is that libtool may fail to recognize shared libraries
8961*** as such.  This will affect the creation of libtool libraries that
8962*** depend on shared libraries, but programs linked with such libtool
8963*** libraries will work regardless of this problem.  Nevertheless, you
8964*** may want to report the problem to your system manager and/or to
8965*** bug-libtool@gnu.org
8966
8967EOF
8968          fi ;;
8969        esac
8970      fi
8971      break
8972    fi
8973  done
8974  IFS="$lt_save_ifs"
8975  MAGIC_CMD="$lt_save_MAGIC_CMD"
8976  ;;
8977esac
8978fi
8979
8980MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8981if test -n "$MAGIC_CMD"; then
8982  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8983echo "${ECHO_T}$MAGIC_CMD" >&6
8984else
8985  echo "$as_me:$LINENO: result: no" >&5
8986echo "${ECHO_T}no" >&6
8987fi
8988
8989if test -z "$lt_cv_path_MAGIC_CMD"; then
8990  if test -n "$ac_tool_prefix"; then
8991    echo "$as_me:$LINENO: checking for file" >&5
8992echo $ECHO_N "checking for file... $ECHO_C" >&6
8993if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8994  echo $ECHO_N "(cached) $ECHO_C" >&6
8995else
8996  case $MAGIC_CMD in
8997[\\/*] |  ?:[\\/]*)
8998  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8999  ;;
9000*)
9001  lt_save_MAGIC_CMD="$MAGIC_CMD"
9002  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9003  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9004  for ac_dir in $ac_dummy; do
9005    IFS="$lt_save_ifs"
9006    test -z "$ac_dir" && ac_dir=.
9007    if test -f $ac_dir/file; then
9008      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9009      if test -n "$file_magic_test_file"; then
9010        case $deplibs_check_method in
9011        "file_magic "*)
9012          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9013          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9014          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9015            $EGREP "$file_magic_regex" > /dev/null; then
9016            :
9017          else
9018            cat <<EOF 1>&2
9019
9020*** Warning: the command libtool uses to detect shared libraries,
9021*** $file_magic_cmd, produces output that libtool cannot recognize.
9022*** The result is that libtool may fail to recognize shared libraries
9023*** as such.  This will affect the creation of libtool libraries that
9024*** depend on shared libraries, but programs linked with such libtool
9025*** libraries will work regardless of this problem.  Nevertheless, you
9026*** may want to report the problem to your system manager and/or to
9027*** bug-libtool@gnu.org
9028
9029EOF
9030          fi ;;
9031        esac
9032      fi
9033      break
9034    fi
9035  done
9036  IFS="$lt_save_ifs"
9037  MAGIC_CMD="$lt_save_MAGIC_CMD"
9038  ;;
9039esac
9040fi
9041
9042MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9043if test -n "$MAGIC_CMD"; then
9044  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9045echo "${ECHO_T}$MAGIC_CMD" >&6
9046else
9047  echo "$as_me:$LINENO: result: no" >&5
9048echo "${ECHO_T}no" >&6
9049fi
9050
9051  else
9052    MAGIC_CMD=:
9053  fi
9054fi
9055
9056  fi
9057  ;;
9058esac
9059
9060enable_dlopen=no
9061enable_win32_dll=no
9062
9063# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9064if test "${enable_libtool_lock+set}" = set; then
9065  enableval="$enable_libtool_lock"
9066
9067fi;
9068test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9069
9070
9071# Check whether --with-pic or --without-pic was given.
9072if test "${with_pic+set}" = set; then
9073  withval="$with_pic"
9074  pic_mode="$withval"
9075else
9076  pic_mode=default
9077fi;
9078test -z "$pic_mode" && pic_mode=default
9079
9080# Use C for the default configuration in the libtool script
9081tagname=
9082lt_save_CC="$CC"
9083ac_ext=c
9084ac_cpp='$CPP $CPPFLAGS'
9085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9087ac_compiler_gnu=$ac_cv_c_compiler_gnu
9088
9089
9090# Source file extension for C test sources.
9091ac_ext=c
9092
9093# Object file extension for compiled C test sources.
9094objext=o
9095objext=$objext
9096
9097# Code to be used in simple compile tests
9098lt_simple_compile_test_code="int some_variable = 0;\n"
9099
9100# Code to be used in simple link tests
9101lt_simple_link_test_code='int main(){return(0);}\n'
9102
9103
9104# If no C compiler was specified, use CC.
9105LTCC=${LTCC-"$CC"}
9106
9107# If no C compiler flags were specified, use CFLAGS.
9108LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9109
9110# Allow CC to be a program name with arguments.
9111compiler=$CC
9112
9113
9114# save warnings/boilerplate of simple test code
9115ac_outfile=conftest.$ac_objext
9116printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9117eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9118_lt_compiler_boilerplate=`cat conftest.err`
9119$rm conftest*
9120
9121ac_outfile=conftest.$ac_objext
9122printf "$lt_simple_link_test_code" >conftest.$ac_ext
9123eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9124_lt_linker_boilerplate=`cat conftest.err`
9125$rm conftest*
9126
9127
9128## CAVEAT EMPTOR:
9129## There is no encapsulation within the following macros, do not change
9130## the running order or otherwise move them around unless you know exactly
9131## what you are doing...
9132
9133lt_prog_compiler_no_builtin_flag=
9134
9135if test "$GCC" = yes; then
9136  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9137
9138
9139echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9140echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9141if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9142  echo $ECHO_N "(cached) $ECHO_C" >&6
9143else
9144  lt_cv_prog_compiler_rtti_exceptions=no
9145  ac_outfile=conftest.$ac_objext
9146   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9147   lt_compiler_flag="-fno-rtti -fno-exceptions"
9148   # Insert the option either (1) after the last *FLAGS variable, or
9149   # (2) before a word containing "conftest.", or (3) at the end.
9150   # Note that $ac_compile itself does not contain backslashes and begins
9151   # with a dollar sign (not a hyphen), so the echo should work correctly.
9152   # The option is referenced via a variable to avoid confusing sed.
9153   lt_compile=`echo "$ac_compile" | $SED \
9154   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9156   -e 's:$: $lt_compiler_flag:'`
9157   (eval echo "\"\$as_me:9157: $lt_compile\"" >&5)
9158   (eval "$lt_compile" 2>conftest.err)
9159   ac_status=$?
9160   cat conftest.err >&5
9161   echo "$as_me:9161: \$? = $ac_status" >&5
9162   if (exit $ac_status) && test -s "$ac_outfile"; then
9163     # The compiler can only warn and ignore the option if not recognized
9164     # So say no if there are warnings other than the usual output.
9165     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9166     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9167     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9168       lt_cv_prog_compiler_rtti_exceptions=yes
9169     fi
9170   fi
9171   $rm conftest*
9172
9173fi
9174echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9175echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9176
9177if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9178    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9179else
9180    :
9181fi
9182
9183fi
9184
9185lt_prog_compiler_wl=
9186lt_prog_compiler_pic=
9187lt_prog_compiler_static=
9188
9189echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9190echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9191
9192  if test "$GCC" = yes; then
9193    lt_prog_compiler_wl='-Wl,'
9194    lt_prog_compiler_static='-static'
9195
9196    case $host_os in
9197      aix*)
9198      # All AIX code is PIC.
9199      if test "$host_cpu" = ia64; then
9200        # AIX 5 now supports IA64 processor
9201        lt_prog_compiler_static='-Bstatic'
9202      fi
9203      ;;
9204
9205    amigaos*)
9206      # FIXME: we need at least 68020 code to build shared libraries, but
9207      # adding the `-m68020' flag to GCC prevents building anything better,
9208      # like `-m68040'.
9209      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9210      ;;
9211
9212    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9213      # PIC is the default for these OSes.
9214      ;;
9215
9216    mingw* | pw32* | os2*)
9217      # This hack is so that the source file can tell whether it is being
9218      # built for inclusion in a dll (and should export symbols for example).
9219      lt_prog_compiler_pic='-DDLL_EXPORT'
9220      ;;
9221
9222    darwin* | rhapsody*)
9223      # PIC is the default on this platform
9224      # Common symbols not allowed in MH_DYLIB files
9225      lt_prog_compiler_pic='-fno-common'
9226      ;;
9227
9228    interix3*)
9229      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9230      # Instead, we relocate shared libraries at runtime.
9231      ;;
9232
9233    msdosdjgpp*)
9234      # Just because we use GCC doesn't mean we suddenly get shared libraries
9235      # on systems that don't support them.
9236      lt_prog_compiler_can_build_shared=no
9237      enable_shared=no
9238      ;;
9239
9240    sysv4*MP*)
9241      if test -d /usr/nec; then
9242        lt_prog_compiler_pic=-Kconform_pic
9243      fi
9244      ;;
9245
9246    hpux*)
9247      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9248      # not for PA HP-UX.
9249      case $host_cpu in
9250      hppa*64*|ia64*)
9251        # +Z the default
9252        ;;
9253      *)
9254        lt_prog_compiler_pic='-fPIC'
9255        ;;
9256      esac
9257      ;;
9258
9259    *)
9260      lt_prog_compiler_pic='-fPIC'
9261      ;;
9262    esac
9263  else
9264    # PORTME Check for flag to pass linker flags through the system compiler.
9265    case $host_os in
9266    aix*)
9267      lt_prog_compiler_wl='-Wl,'
9268      if test "$host_cpu" = ia64; then
9269        # AIX 5 now supports IA64 processor
9270        lt_prog_compiler_static='-Bstatic'
9271      else
9272        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9273      fi
9274      ;;
9275      darwin*)
9276        # PIC is the default on this platform
9277        # Common symbols not allowed in MH_DYLIB files
9278       case $cc_basename in
9279         xlc*)
9280         lt_prog_compiler_pic='-qnocommon'
9281         lt_prog_compiler_wl='-Wl,'
9282         ;;
9283       esac
9284       ;;
9285
9286    mingw* | pw32* | os2*)
9287      # This hack is so that the source file can tell whether it is being
9288      # built for inclusion in a dll (and should export symbols for example).
9289      lt_prog_compiler_pic='-DDLL_EXPORT'
9290      ;;
9291
9292    hpux9* | hpux10* | hpux11*)
9293      lt_prog_compiler_wl='-Wl,'
9294      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9295      # not for PA HP-UX.
9296      case $host_cpu in
9297      hppa*64*|ia64*)
9298        # +Z the default
9299        ;;
9300      *)
9301        lt_prog_compiler_pic='+Z'
9302        ;;
9303      esac
9304      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9305      lt_prog_compiler_static='${wl}-a ${wl}archive'
9306      ;;
9307
9308    irix5* | irix6* | nonstopux*)
9309      lt_prog_compiler_wl='-Wl,'
9310      # PIC (with -KPIC) is the default.
9311      lt_prog_compiler_static='-non_shared'
9312      ;;
9313
9314    newsos6)
9315      lt_prog_compiler_pic='-KPIC'
9316      lt_prog_compiler_static='-Bstatic'
9317      ;;
9318
9319    linux*)
9320      case $cc_basename in
9321      icc* | ecc*)
9322        lt_prog_compiler_wl='-Wl,'
9323        lt_prog_compiler_pic='-KPIC'
9324        lt_prog_compiler_static='-static'
9325        ;;
9326      pgcc* | pgf77* | pgf90* | pgf95*)
9327        # Portland Group compilers (*not* the Pentium gcc compiler,
9328        # which looks to be a dead project)
9329        lt_prog_compiler_wl='-Wl,'
9330        lt_prog_compiler_pic='-fpic'
9331        lt_prog_compiler_static='-Bstatic'
9332        ;;
9333      ccc*)
9334        lt_prog_compiler_wl='-Wl,'
9335        # All Alpha code is PIC.
9336        lt_prog_compiler_static='-non_shared'
9337        ;;
9338      esac
9339      ;;
9340
9341    osf3* | osf4* | osf5*)
9342      lt_prog_compiler_wl='-Wl,'
9343      # All OSF/1 code is PIC.
9344      lt_prog_compiler_static='-non_shared'
9345      ;;
9346
9347    solaris*)
9348      lt_prog_compiler_pic='-KPIC'
9349      lt_prog_compiler_static='-Bstatic'
9350      case $cc_basename in
9351      f77* | f90* | f95*)
9352        lt_prog_compiler_wl='-Qoption ld ';;
9353      *)
9354        lt_prog_compiler_wl='-Wl,';;
9355      esac
9356      ;;
9357
9358    sunos4*)
9359      lt_prog_compiler_wl='-Qoption ld '
9360      lt_prog_compiler_pic='-PIC'
9361      lt_prog_compiler_static='-Bstatic'
9362      ;;
9363
9364    sysv4 | sysv4.2uw2* | sysv4.3*)
9365      lt_prog_compiler_wl='-Wl,'
9366      lt_prog_compiler_pic='-KPIC'
9367      lt_prog_compiler_static='-Bstatic'
9368      ;;
9369
9370    sysv4*MP*)
9371      if test -d /usr/nec ;then
9372        lt_prog_compiler_pic='-Kconform_pic'
9373        lt_prog_compiler_static='-Bstatic'
9374      fi
9375      ;;
9376
9377    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9378      lt_prog_compiler_wl='-Wl,'
9379      lt_prog_compiler_pic='-KPIC'
9380      lt_prog_compiler_static='-Bstatic'
9381      ;;
9382
9383    unicos*)
9384      lt_prog_compiler_wl='-Wl,'
9385      lt_prog_compiler_can_build_shared=no
9386      ;;
9387
9388    uts4*)
9389      lt_prog_compiler_pic='-pic'
9390      lt_prog_compiler_static='-Bstatic'
9391      ;;
9392
9393    *)
9394      lt_prog_compiler_can_build_shared=no
9395      ;;
9396    esac
9397  fi
9398
9399echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9400echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9401
9402#
9403# Check to make sure the PIC flag actually works.
9404#
9405if test -n "$lt_prog_compiler_pic"; then
9406
9407echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9408echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9409if test "${lt_prog_compiler_pic_works+set}" = set; then
9410  echo $ECHO_N "(cached) $ECHO_C" >&6
9411else
9412  lt_prog_compiler_pic_works=no
9413  ac_outfile=conftest.$ac_objext
9414   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9415   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9416   # Insert the option either (1) after the last *FLAGS variable, or
9417   # (2) before a word containing "conftest.", or (3) at the end.
9418   # Note that $ac_compile itself does not contain backslashes and begins
9419   # with a dollar sign (not a hyphen), so the echo should work correctly.
9420   # The option is referenced via a variable to avoid confusing sed.
9421   lt_compile=`echo "$ac_compile" | $SED \
9422   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9423   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9424   -e 's:$: $lt_compiler_flag:'`
9425   (eval echo "\"\$as_me:9425: $lt_compile\"" >&5)
9426   (eval "$lt_compile" 2>conftest.err)
9427   ac_status=$?
9428   cat conftest.err >&5
9429   echo "$as_me:9429: \$? = $ac_status" >&5
9430   if (exit $ac_status) && test -s "$ac_outfile"; then
9431     # The compiler can only warn and ignore the option if not recognized
9432     # So say no if there are warnings other than the usual output.
9433     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9434     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9435     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9436       lt_prog_compiler_pic_works=yes
9437     fi
9438   fi
9439   $rm conftest*
9440
9441fi
9442echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9443echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9444
9445if test x"$lt_prog_compiler_pic_works" = xyes; then
9446    case $lt_prog_compiler_pic in
9447     "" | " "*) ;;
9448     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9449     esac
9450else
9451    lt_prog_compiler_pic=
9452     lt_prog_compiler_can_build_shared=no
9453fi
9454
9455fi
9456case $host_os in
9457  # For platforms which do not support PIC, -DPIC is meaningless:
9458  *djgpp*)
9459    lt_prog_compiler_pic=
9460    ;;
9461  *)
9462    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9463    ;;
9464esac
9465
9466#
9467# Check to make sure the static flag actually works.
9468#
9469wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9470echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9471echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9472if test "${lt_prog_compiler_static_works+set}" = set; then
9473  echo $ECHO_N "(cached) $ECHO_C" >&6
9474else
9475  lt_prog_compiler_static_works=no
9476   save_LDFLAGS="$LDFLAGS"
9477   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9478   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9479   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9480     # The linker can only warn and ignore the option if not recognized
9481     # So say no if there are warnings
9482     if test -s conftest.err; then
9483       # Append any errors to the config.log.
9484       cat conftest.err 1>&5
9485       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9486       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9487       if diff conftest.exp conftest.er2 >/dev/null; then
9488         lt_prog_compiler_static_works=yes
9489       fi
9490     else
9491       lt_prog_compiler_static_works=yes
9492     fi
9493   fi
9494   $rm conftest*
9495   LDFLAGS="$save_LDFLAGS"
9496
9497fi
9498echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9499echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9500
9501if test x"$lt_prog_compiler_static_works" = xyes; then
9502    :
9503else
9504    lt_prog_compiler_static=
9505fi
9506
9507
9508echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9509echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9510if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9511  echo $ECHO_N "(cached) $ECHO_C" >&6
9512else
9513  lt_cv_prog_compiler_c_o=no
9514   $rm -r conftest 2>/dev/null
9515   mkdir conftest
9516   cd conftest
9517   mkdir out
9518   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9519
9520   lt_compiler_flag="-o out/conftest2.$ac_objext"
9521   # Insert the option either (1) after the last *FLAGS variable, or
9522   # (2) before a word containing "conftest.", or (3) at the end.
9523   # Note that $ac_compile itself does not contain backslashes and begins
9524   # with a dollar sign (not a hyphen), so the echo should work correctly.
9525   lt_compile=`echo "$ac_compile" | $SED \
9526   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9527   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9528   -e 's:$: $lt_compiler_flag:'`
9529   (eval echo "\"\$as_me:9529: $lt_compile\"" >&5)
9530   (eval "$lt_compile" 2>out/conftest.err)
9531   ac_status=$?
9532   cat out/conftest.err >&5
9533   echo "$as_me:9533: \$? = $ac_status" >&5
9534   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9535   then
9536     # The compiler can only warn and ignore the option if not recognized
9537     # So say no if there are warnings
9538     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9539     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9540     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9541       lt_cv_prog_compiler_c_o=yes
9542     fi
9543   fi
9544   chmod u+w . 2>&5
9545   $rm conftest*
9546   # SGI C++ compiler will create directory out/ii_files/ for
9547   # template instantiation
9548   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9549   $rm out/* && rmdir out
9550   cd ..
9551   rmdir conftest
9552   $rm conftest*
9553
9554fi
9555echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9556echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9557
9558
9559hard_links="nottested"
9560if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9561  # do not overwrite the value of need_locks provided by the user
9562  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9563echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9564  hard_links=yes
9565  $rm conftest*
9566  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9567  touch conftest.a
9568  ln conftest.a conftest.b 2>&5 || hard_links=no
9569  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9570  echo "$as_me:$LINENO: result: $hard_links" >&5
9571echo "${ECHO_T}$hard_links" >&6
9572  if test "$hard_links" = no; then
9573    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9574echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9575    need_locks=warn
9576  fi
9577else
9578  need_locks=no
9579fi
9580
9581echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9582echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9583
9584  runpath_var=
9585  allow_undefined_flag=
9586  enable_shared_with_static_runtimes=no
9587  archive_cmds=
9588  archive_expsym_cmds=
9589  old_archive_From_new_cmds=
9590  old_archive_from_expsyms_cmds=
9591  export_dynamic_flag_spec=
9592  whole_archive_flag_spec=
9593  thread_safe_flag_spec=
9594  hardcode_libdir_flag_spec=
9595  hardcode_libdir_flag_spec_ld=
9596  hardcode_libdir_separator=
9597  hardcode_direct=no
9598  hardcode_minus_L=no
9599  hardcode_shlibpath_var=unsupported
9600  link_all_deplibs=unknown
9601  hardcode_automatic=no
9602  module_cmds=
9603  module_expsym_cmds=
9604  always_export_symbols=no
9605  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9606  # include_expsyms should be a list of space-separated symbols to be *always*
9607  # included in the symbol list
9608  include_expsyms=
9609  # exclude_expsyms can be an extended regexp of symbols to exclude
9610  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9611  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9612  # as well as any symbol that contains `d'.
9613  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9614  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9615  # platforms (ab)use it in PIC code, but their linkers get confused if
9616  # the symbol is explicitly referenced.  Since portable code cannot
9617  # rely on this symbol name, it's probably fine to never include it in
9618  # preloaded symbol tables.
9619  extract_expsyms_cmds=
9620  # Just being paranoid about ensuring that cc_basename is set.
9621  for cc_temp in $compiler""; do
9622  case $cc_temp in
9623    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9624    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9625    \-*) ;;
9626    *) break;;
9627  esac
9628done
9629cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9630
9631  case $host_os in
9632  cygwin* | mingw* | pw32*)
9633    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9634    # When not using gcc, we currently assume that we are using
9635    # Microsoft Visual C++.
9636    if test "$GCC" != yes; then
9637      with_gnu_ld=no
9638    fi
9639    ;;
9640  interix*)
9641    # we just hope/assume this is gcc and not c89 (= MSVC++)
9642    with_gnu_ld=yes
9643    ;;
9644  openbsd*)
9645    with_gnu_ld=no
9646    ;;
9647  esac
9648
9649  ld_shlibs=yes
9650  if test "$with_gnu_ld" = yes; then
9651    # If archive_cmds runs LD, not CC, wlarc should be empty
9652    wlarc='${wl}'
9653
9654    # Set some defaults for GNU ld with shared library support. These
9655    # are reset later if shared libraries are not supported. Putting them
9656    # here allows them to be overridden if necessary.
9657    runpath_var=LD_RUN_PATH
9658    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9659    export_dynamic_flag_spec='${wl}--export-dynamic'
9660    # ancient GNU ld didn't support --whole-archive et. al.
9661    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9662        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9663      else
9664        whole_archive_flag_spec=
9665    fi
9666    supports_anon_versioning=no
9667    case `$LD -v 2>/dev/null` in
9668      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9669      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9670      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9671      *\ 2.11.*) ;; # other 2.11 versions
9672      *) supports_anon_versioning=yes ;;
9673    esac
9674
9675    # See if GNU ld supports shared libraries.
9676    case $host_os in
9677    aix3* | aix4* | aix5*)
9678      # On AIX/PPC, the GNU linker is very broken
9679      if test "$host_cpu" != ia64; then
9680        ld_shlibs=no
9681        cat <<EOF 1>&2
9682
9683*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9684*** to be unable to reliably create shared libraries on AIX.
9685*** Therefore, libtool is disabling shared libraries support.  If you
9686*** really care for shared libraries, you may want to modify your PATH
9687*** so that a non-GNU linker is found, and then restart.
9688
9689EOF
9690      fi
9691      ;;
9692
9693    amigaos*)
9694      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)'
9695      hardcode_libdir_flag_spec='-L$libdir'
9696      hardcode_minus_L=yes
9697
9698      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9699      # that the semantics of dynamic libraries on AmigaOS, at least up
9700      # to version 4, is to share data among multiple programs linked
9701      # with the same dynamic library.  Since this doesn't match the
9702      # behavior of shared libraries on other platforms, we can't use
9703      # them.
9704      ld_shlibs=no
9705      ;;
9706
9707    beos*)
9708      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9709        allow_undefined_flag=unsupported
9710        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9711        # support --undefined.  This deserves some investigation.  FIXME
9712        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9713      else
9714        ld_shlibs=no
9715      fi
9716      ;;
9717
9718    cygwin* | mingw* | pw32*)
9719      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9720      # as there is no search path for DLLs.
9721      hardcode_libdir_flag_spec='-L$libdir'
9722      allow_undefined_flag=unsupported
9723      always_export_symbols=no
9724      enable_shared_with_static_runtimes=yes
9725      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9726
9727      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9728        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9729        # If the export-symbols file already is a .def file (1st line
9730        # is EXPORTS), use it as is; otherwise, prepend...
9731        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9732          cp $export_symbols $output_objdir/$soname.def;
9733        else
9734          echo EXPORTS > $output_objdir/$soname.def;
9735          cat $export_symbols >> $output_objdir/$soname.def;
9736        fi~
9737        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9738      else
9739        ld_shlibs=no
9740      fi
9741      ;;
9742
9743    interix3*)
9744      hardcode_direct=no
9745      hardcode_shlibpath_var=no
9746      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9747      export_dynamic_flag_spec='${wl}-E'
9748      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9749      # Instead, shared libraries are loaded at an image base (0x10000000 by
9750      # default) and relocated if they conflict, which is a slow very memory
9751      # consuming and fragmenting process.  To avoid this, we pick a random,
9752      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9753      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9754      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9755      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'
9756      ;;
9757
9758    linux*)
9759      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9760        tmp_addflag=
9761        case $cc_basename,$host_cpu in
9762        pgcc*)                          # Portland Group C compiler
9763          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'
9764          tmp_addflag=' $pic_flag'
9765          ;;
9766        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9767          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'
9768          tmp_addflag=' $pic_flag -Mnomain' ;;
9769        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9770          tmp_addflag=' -i_dynamic' ;;
9771        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9772          tmp_addflag=' -i_dynamic -nofor_main' ;;
9773        ifc* | ifort*)                  # Intel Fortran compiler
9774          tmp_addflag=' -nofor_main' ;;
9775        esac
9776        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777
9778        if test $supports_anon_versioning = yes; then
9779          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9780  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9781  $echo "local: *; };" >> $output_objdir/$libname.ver~
9782          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9783        fi
9784      else
9785        ld_shlibs=no
9786      fi
9787      ;;
9788
9789    netbsd*)
9790      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9791        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9792        wlarc=
9793      else
9794        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9795        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9796      fi
9797      ;;
9798
9799    solaris*)
9800      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9801        ld_shlibs=no
9802        cat <<EOF 1>&2
9803
9804*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9805*** create shared libraries on Solaris systems.  Therefore, libtool
9806*** is disabling shared libraries support.  We urge you to upgrade GNU
9807*** binutils to release 2.9.1 or newer.  Another option is to modify
9808*** your PATH or compiler configuration so that the native linker is
9809*** used, and then restart.
9810
9811EOF
9812      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9813        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9814        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9815      else
9816        ld_shlibs=no
9817      fi
9818      ;;
9819
9820    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9821      case `$LD -v 2>&1` in
9822        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9823        ld_shlibs=no
9824        cat <<_LT_EOF 1>&2
9825
9826*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9827*** reliably create shared libraries on SCO systems.  Therefore, libtool
9828*** is disabling shared libraries support.  We urge you to upgrade GNU
9829*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9830*** your PATH or compiler configuration so that the native linker is
9831*** used, and then restart.
9832
9833_LT_EOF
9834        ;;
9835        *)
9836          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9837            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9838            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9839            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9840          else
9841            ld_shlibs=no
9842          fi
9843        ;;
9844      esac
9845      ;;
9846
9847    sunos4*)
9848      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9849      wlarc=
9850      hardcode_direct=yes
9851      hardcode_shlibpath_var=no
9852      ;;
9853
9854    *)
9855      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9856        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9857        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9858      else
9859        ld_shlibs=no
9860      fi
9861      ;;
9862    esac
9863
9864    if test "$ld_shlibs" = no; then
9865      runpath_var=
9866      hardcode_libdir_flag_spec=
9867      export_dynamic_flag_spec=
9868      whole_archive_flag_spec=
9869    fi
9870  else
9871    # PORTME fill in a description of your system's linker (not GNU ld)
9872    case $host_os in
9873    aix3*)
9874      allow_undefined_flag=unsupported
9875      always_export_symbols=yes
9876      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'
9877      # Note: this linker hardcodes the directories in LIBPATH if there
9878      # are no directories specified by -L.
9879      hardcode_minus_L=yes
9880      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9881        # Neither direct hardcoding nor static linking is supported with a
9882        # broken collect2.
9883        hardcode_direct=unsupported
9884      fi
9885      ;;
9886
9887    aix4* | aix5*)
9888      if test "$host_cpu" = ia64; then
9889        # On IA64, the linker does run time linking by default, so we don't
9890        # have to do anything special.
9891        aix_use_runtimelinking=no
9892        exp_sym_flag='-Bexport'
9893        no_entry_flag=""
9894      else
9895        # If we're using GNU nm, then we don't want the "-C" option.
9896        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9897        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9898          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'
9899        else
9900          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'
9901        fi
9902        aix_use_runtimelinking=no
9903
9904        # Test if we are trying to use run time linking or normal
9905        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9906        # need to do runtime linking.
9907        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9908          for ld_flag in $LDFLAGS; do
9909          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9910            aix_use_runtimelinking=yes
9911            break
9912          fi
9913          done
9914          ;;
9915        esac
9916
9917        exp_sym_flag='-bexport'
9918        no_entry_flag='-bnoentry'
9919      fi
9920
9921      # When large executables or shared objects are built, AIX ld can
9922      # have problems creating the table of contents.  If linking a library
9923      # or program results in "error TOC overflow" add -mminimal-toc to
9924      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9925      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9926
9927      archive_cmds=''
9928      hardcode_direct=yes
9929      hardcode_libdir_separator=':'
9930      link_all_deplibs=yes
9931
9932      if test "$GCC" = yes; then
9933        case $host_os in aix4.[012]|aix4.[012].*)
9934        # We only want to do this on AIX 4.2 and lower, the check
9935        # below for broken collect2 doesn't work under 4.3+
9936          collect2name=`${CC} -print-prog-name=collect2`
9937          if test -f "$collect2name" && \
9938           strings "$collect2name" | grep resolve_lib_name >/dev/null
9939          then
9940          # We have reworked collect2
9941          hardcode_direct=yes
9942          else
9943          # We have old collect2
9944          hardcode_direct=unsupported
9945          # It fails to find uninstalled libraries when the uninstalled
9946          # path is not listed in the libpath.  Setting hardcode_minus_L
9947          # to unsupported forces relinking
9948          hardcode_minus_L=yes
9949          hardcode_libdir_flag_spec='-L$libdir'
9950          hardcode_libdir_separator=
9951          fi
9952          ;;
9953        esac
9954        shared_flag='-shared'
9955        if test "$aix_use_runtimelinking" = yes; then
9956          shared_flag="$shared_flag "'${wl}-G'
9957        fi
9958      else
9959        # not using gcc
9960        if test "$host_cpu" = ia64; then
9961        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9962        # chokes on -Wl,-G. The following line is correct:
9963          shared_flag='-G'
9964        else
9965          if test "$aix_use_runtimelinking" = yes; then
9966            shared_flag='${wl}-G'
9967          else
9968            shared_flag='${wl}-bM:SRE'
9969          fi
9970        fi
9971      fi
9972
9973      # It seems that -bexpall does not export symbols beginning with
9974      # underscore (_), so it is better to generate a list of symbols to export.
9975      always_export_symbols=yes
9976      if test "$aix_use_runtimelinking" = yes; then
9977        # Warning - without using the other runtime loading flags (-brtl),
9978        # -berok will link without error, but may produce a broken library.
9979        allow_undefined_flag='-berok'
9980       # Determine the default libpath from the value encoded in an empty executable.
9981       cat >conftest.$ac_ext <<_ACEOF
9982/* confdefs.h.  */
9983_ACEOF
9984cat confdefs.h >>conftest.$ac_ext
9985cat >>conftest.$ac_ext <<_ACEOF
9986/* end confdefs.h.  */
9987
9988#ifdef F77_DUMMY_MAIN
9989
9990#  ifdef __cplusplus
9991     extern "C"
9992#  endif
9993   int F77_DUMMY_MAIN() { return 1; }
9994
9995#endif
9996int
9997main ()
9998{
9999
10000  ;
10001  return 0;
10002}
10003_ACEOF
10004rm -f conftest.$ac_objext conftest$ac_exeext
10005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10006  (eval $ac_link) 2>conftest.er1
10007  ac_status=$?
10008  grep -v '^ *+' conftest.er1 >conftest.err
10009  rm -f conftest.er1
10010  cat conftest.err >&5
10011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012  (exit $ac_status); } &&
10013         { ac_try='test -z "$ac_c_werror_flag"
10014                         || test ! -s conftest.err'
10015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016  (eval $ac_try) 2>&5
10017  ac_status=$?
10018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019  (exit $ac_status); }; } &&
10020         { ac_try='test -s conftest$ac_exeext'
10021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022  (eval $ac_try) 2>&5
10023  ac_status=$?
10024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025  (exit $ac_status); }; }; then
10026
10027aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10028}'`
10029# Check for a 64-bit object if we didn't find anything.
10030if 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; }
10031}'`; fi
10032else
10033  echo "$as_me: failed program was:" >&5
10034sed 's/^/| /' conftest.$ac_ext >&5
10035
10036fi
10037rm -f conftest.err conftest.$ac_objext \
10038      conftest$ac_exeext conftest.$ac_ext
10039if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10040
10041       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10042        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"
10043       else
10044        if test "$host_cpu" = ia64; then
10045          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10046          allow_undefined_flag="-z nodefs"
10047          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"
10048        else
10049         # Determine the default libpath from the value encoded in an empty executable.
10050         cat >conftest.$ac_ext <<_ACEOF
10051/* confdefs.h.  */
10052_ACEOF
10053cat confdefs.h >>conftest.$ac_ext
10054cat >>conftest.$ac_ext <<_ACEOF
10055/* end confdefs.h.  */
10056
10057#ifdef F77_DUMMY_MAIN
10058
10059#  ifdef __cplusplus
10060     extern "C"
10061#  endif
10062   int F77_DUMMY_MAIN() { return 1; }
10063
10064#endif
10065int
10066main ()
10067{
10068
10069  ;
10070  return 0;
10071}
10072_ACEOF
10073rm -f conftest.$ac_objext conftest$ac_exeext
10074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075  (eval $ac_link) 2>conftest.er1
10076  ac_status=$?
10077  grep -v '^ *+' conftest.er1 >conftest.err
10078  rm -f conftest.er1
10079  cat conftest.err >&5
10080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081  (exit $ac_status); } &&
10082         { ac_try='test -z "$ac_c_werror_flag"
10083                         || test ! -s conftest.err'
10084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085  (eval $ac_try) 2>&5
10086  ac_status=$?
10087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088  (exit $ac_status); }; } &&
10089         { ac_try='test -s conftest$ac_exeext'
10090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091  (eval $ac_try) 2>&5
10092  ac_status=$?
10093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094  (exit $ac_status); }; }; then
10095
10096aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10097}'`
10098# Check for a 64-bit object if we didn't find anything.
10099if 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; }
10100}'`; fi
10101else
10102  echo "$as_me: failed program was:" >&5
10103sed 's/^/| /' conftest.$ac_ext >&5
10104
10105fi
10106rm -f conftest.err conftest.$ac_objext \
10107      conftest$ac_exeext conftest.$ac_ext
10108if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10109
10110         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10111          # Warning - without using the other run time loading flags,
10112          # -berok will link without error, but may produce a broken library.
10113          no_undefined_flag=' ${wl}-bernotok'
10114          allow_undefined_flag=' ${wl}-berok'
10115          # Exported symbols can be pulled into shared objects from archives
10116          whole_archive_flag_spec='$convenience'
10117          archive_cmds_need_lc=yes
10118          # This is similar to how AIX traditionally builds its shared libraries.
10119          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'
10120        fi
10121      fi
10122      ;;
10123
10124    amigaos*)
10125      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)'
10126      hardcode_libdir_flag_spec='-L$libdir'
10127      hardcode_minus_L=yes
10128      # see comment about different semantics on the GNU ld section
10129      ld_shlibs=no
10130      ;;
10131
10132    bsdi[45]*)
10133      export_dynamic_flag_spec=-rdynamic
10134      ;;
10135
10136    cygwin* | mingw* | pw32*)
10137      # When not using gcc, we currently assume that we are using
10138      # Microsoft Visual C++.
10139      # hardcode_libdir_flag_spec is actually meaningless, as there is
10140      # no search path for DLLs.
10141      hardcode_libdir_flag_spec=' '
10142      allow_undefined_flag=unsupported
10143      # Tell ltmain to make .lib files, not .a files.
10144      libext=lib
10145      # Tell ltmain to make .dll files, not .so files.
10146      shrext_cmds=".dll"
10147      # FIXME: Setting linknames here is a bad hack.
10148      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10149      # The linker will automatically build a .lib file if we build a DLL.
10150      old_archive_From_new_cmds='true'
10151      # FIXME: Should let the user specify the lib program.
10152      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10153      fix_srcfile_path='`cygpath -w "$srcfile"`'
10154      enable_shared_with_static_runtimes=yes
10155      ;;
10156
10157    darwin* | rhapsody*)
10158      case $host_os in
10159        rhapsody* | darwin1.[012])
10160         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10161         ;;
10162       *) # Darwin 1.3 on
10163         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10164           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10165         else
10166           case ${MACOSX_DEPLOYMENT_TARGET} in
10167             10.[012])
10168               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10169               ;;
10170             10.*)
10171               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10172               ;;
10173           esac
10174         fi
10175         ;;
10176      esac
10177      archive_cmds_need_lc=no
10178      hardcode_direct=no
10179      hardcode_automatic=yes
10180      hardcode_shlibpath_var=unsupported
10181      whole_archive_flag_spec=''
10182      link_all_deplibs=yes
10183    if test "$GCC" = yes ; then
10184        output_verbose_link_cmd='echo'
10185        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10186      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10187      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10188      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}'
10189      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}'
10190    else
10191      case $cc_basename in
10192        xlc*)
10193         output_verbose_link_cmd='echo'
10194         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10195         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10196          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10197         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}'
10198          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}'
10199          ;;
10200       *)
10201         ld_shlibs=no
10202          ;;
10203      esac
10204    fi
10205      ;;
10206
10207    dgux*)
10208      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209      hardcode_libdir_flag_spec='-L$libdir'
10210      hardcode_shlibpath_var=no
10211      ;;
10212
10213    freebsd1*)
10214      ld_shlibs=no
10215      ;;
10216
10217    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10218    # support.  Future versions do this automatically, but an explicit c++rt0.o
10219    # does not break anything, and helps significantly (at the cost of a little
10220    # extra space).
10221    freebsd2.2*)
10222      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10223      hardcode_libdir_flag_spec='-R$libdir'
10224      hardcode_direct=yes
10225      hardcode_shlibpath_var=no
10226      ;;
10227
10228    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10229    freebsd2*)
10230      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10231      hardcode_direct=yes
10232      hardcode_minus_L=yes
10233      hardcode_shlibpath_var=no
10234      ;;
10235
10236    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10237    freebsd* | kfreebsd*-gnu | dragonfly*)
10238      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10239      hardcode_libdir_flag_spec='-R$libdir'
10240      hardcode_direct=yes
10241      hardcode_shlibpath_var=no
10242      ;;
10243
10244    hpux9*)
10245      if test "$GCC" = yes; then
10246        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'
10247      else
10248        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'
10249      fi
10250      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10251      hardcode_libdir_separator=:
10252      hardcode_direct=yes
10253
10254      # hardcode_minus_L: Not really in the search PATH,
10255      # but as the default location of the library.
10256      hardcode_minus_L=yes
10257      export_dynamic_flag_spec='${wl}-E'
10258      ;;
10259
10260    hpux10*)
10261      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10262        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10263      else
10264        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10265      fi
10266      if test "$with_gnu_ld" = no; then
10267        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10268        hardcode_libdir_separator=:
10269
10270        hardcode_direct=yes
10271        export_dynamic_flag_spec='${wl}-E'
10272
10273        # hardcode_minus_L: Not really in the search PATH,
10274        # but as the default location of the library.
10275        hardcode_minus_L=yes
10276      fi
10277      ;;
10278
10279    hpux11*)
10280      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10281        case $host_cpu in
10282        hppa*64*)
10283          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10284          ;;
10285        ia64*)
10286          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10287          ;;
10288        *)
10289          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10290          ;;
10291        esac
10292      else
10293        case $host_cpu in
10294        hppa*64*)
10295          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10296          ;;
10297        ia64*)
10298          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10299          ;;
10300        *)
10301          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10302          ;;
10303        esac
10304      fi
10305      if test "$with_gnu_ld" = no; then
10306        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10307        hardcode_libdir_separator=:
10308
10309        case $host_cpu in
10310        hppa*64*|ia64*)
10311          hardcode_libdir_flag_spec_ld='+b $libdir'
10312          hardcode_direct=no
10313          hardcode_shlibpath_var=no
10314          ;;
10315        *)
10316          hardcode_direct=yes
10317          export_dynamic_flag_spec='${wl}-E'
10318
10319          # hardcode_minus_L: Not really in the search PATH,
10320          # but as the default location of the library.
10321          hardcode_minus_L=yes
10322          ;;
10323        esac
10324      fi
10325      ;;
10326
10327    irix5* | irix6* | nonstopux*)
10328      if test "$GCC" = yes; then
10329        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'
10330      else
10331        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'
10332        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10333      fi
10334      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10335      hardcode_libdir_separator=:
10336      link_all_deplibs=yes
10337      ;;
10338
10339    netbsd*)
10340      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10341        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10342      else
10343        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10344      fi
10345      hardcode_libdir_flag_spec='-R$libdir'
10346      hardcode_direct=yes
10347      hardcode_shlibpath_var=no
10348      ;;
10349
10350    newsos6)
10351      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10352      hardcode_direct=yes
10353      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10354      hardcode_libdir_separator=:
10355      hardcode_shlibpath_var=no
10356      ;;
10357
10358    openbsd*)
10359      hardcode_direct=yes
10360      hardcode_shlibpath_var=no
10361      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10362        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10363        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10364        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10365        export_dynamic_flag_spec='${wl}-E'
10366      else
10367       case $host_os in
10368         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10369           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10370           hardcode_libdir_flag_spec='-R$libdir'
10371           ;;
10372         *)
10373           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10374           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10375           ;;
10376       esac
10377      fi
10378      ;;
10379
10380    os2*)
10381      hardcode_libdir_flag_spec='-L$libdir'
10382      hardcode_minus_L=yes
10383      allow_undefined_flag=unsupported
10384      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'
10385      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10386      ;;
10387
10388    osf3*)
10389      if test "$GCC" = yes; then
10390        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10391        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'
10392      else
10393        allow_undefined_flag=' -expect_unresolved \*'
10394        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'
10395      fi
10396      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10397      hardcode_libdir_separator=:
10398      ;;
10399
10400    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10401      if test "$GCC" = yes; then
10402        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10403        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'
10404        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10405      else
10406        allow_undefined_flag=' -expect_unresolved \*'
10407        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'
10408        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10409        $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'
10410
10411        # Both c and cxx compiler support -rpath directly
10412        hardcode_libdir_flag_spec='-rpath $libdir'
10413      fi
10414      hardcode_libdir_separator=:
10415      ;;
10416
10417    solaris*)
10418      no_undefined_flag=' -z text'
10419      if test "$GCC" = yes; then
10420        wlarc='${wl}'
10421        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10422        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10423          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10424      else
10425        wlarc=''
10426        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10428        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10429      fi
10430      hardcode_libdir_flag_spec='-R$libdir'
10431      hardcode_shlibpath_var=no
10432      case $host_os in
10433      solaris2.[0-5] | solaris2.[0-5].*) ;;
10434      *)
10435        # The compiler driver will combine linker options so we
10436        # cannot just pass the convience library names through
10437        # without $wl, iff we do not link with $LD.
10438        # Luckily, gcc supports the same syntax we need for Sun Studio.
10439        # Supported since Solaris 2.6 (maybe 2.5.1?)
10440        case $wlarc in
10441        '')
10442          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10443        *)
10444          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' ;;
10445        esac ;;
10446      esac
10447      link_all_deplibs=yes
10448      ;;
10449
10450    sunos4*)
10451      if test "x$host_vendor" = xsequent; then
10452        # Use $CC to link under sequent, because it throws in some extra .o
10453        # files that make .init and .fini sections work.
10454        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10455      else
10456        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10457      fi
10458      hardcode_libdir_flag_spec='-L$libdir'
10459      hardcode_direct=yes
10460      hardcode_minus_L=yes
10461      hardcode_shlibpath_var=no
10462      ;;
10463
10464    sysv4)
10465      case $host_vendor in
10466        sni)
10467          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468          hardcode_direct=yes # is this really true???
10469        ;;
10470        siemens)
10471          ## LD is ld it makes a PLAMLIB
10472          ## CC just makes a GrossModule.
10473          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10474          reload_cmds='$CC -r -o $output$reload_objs'
10475          hardcode_direct=no
10476        ;;
10477        motorola)
10478          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10479          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10480        ;;
10481      esac
10482      runpath_var='LD_RUN_PATH'
10483      hardcode_shlibpath_var=no
10484      ;;
10485
10486    sysv4.3*)
10487      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10488      hardcode_shlibpath_var=no
10489      export_dynamic_flag_spec='-Bexport'
10490      ;;
10491
10492    sysv4*MP*)
10493      if test -d /usr/nec; then
10494        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10495        hardcode_shlibpath_var=no
10496        runpath_var=LD_RUN_PATH
10497        hardcode_runpath_var=yes
10498        ld_shlibs=yes
10499      fi
10500      ;;
10501
10502    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10503      no_undefined_flag='${wl}-z,text'
10504      archive_cmds_need_lc=no
10505      hardcode_shlibpath_var=no
10506      runpath_var='LD_RUN_PATH'
10507
10508      if test "$GCC" = yes; then
10509        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10510        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10511      else
10512        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10513        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10514      fi
10515      ;;
10516
10517    sysv5* | sco3.2v5* | sco5v6*)
10518      # Note: We can NOT use -z defs as we might desire, because we do not
10519      # link with -lc, and that would cause any symbols used from libc to
10520      # always be unresolved, which means just about no library would
10521      # ever link correctly.  If we're not using GNU ld we use -z text
10522      # though, which does catch some bad symbols but isn't as heavy-handed
10523      # as -z defs.
10524      no_undefined_flag='${wl}-z,text'
10525      allow_undefined_flag='${wl}-z,nodefs'
10526      archive_cmds_need_lc=no
10527      hardcode_shlibpath_var=no
10528      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10529      hardcode_libdir_separator=':'
10530      link_all_deplibs=yes
10531      export_dynamic_flag_spec='${wl}-Bexport'
10532      runpath_var='LD_RUN_PATH'
10533
10534      if test "$GCC" = yes; then
10535        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10536        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10537      else
10538        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10539        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10540      fi
10541      ;;
10542
10543    uts4*)
10544      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545      hardcode_libdir_flag_spec='-L$libdir'
10546      hardcode_shlibpath_var=no
10547      ;;
10548
10549    *)
10550      ld_shlibs=no
10551      ;;
10552    esac
10553  fi
10554
10555echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10556echo "${ECHO_T}$ld_shlibs" >&6
10557test "$ld_shlibs" = no && can_build_shared=no
10558
10559#
10560# Do we need to explicitly link libc?
10561#
10562case "x$archive_cmds_need_lc" in
10563x|xyes)
10564  # Assume -lc should be added
10565  archive_cmds_need_lc=yes
10566
10567  if test "$enable_shared" = yes && test "$GCC" = yes; then
10568    case $archive_cmds in
10569    *'~'*)
10570      # FIXME: we may have to deal with multi-command sequences.
10571      ;;
10572    '$CC '*)
10573      # Test whether the compiler implicitly links with -lc since on some
10574      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10575      # to ld, don't add -lc before -lgcc.
10576      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10577echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10578      $rm conftest*
10579      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10580
10581      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582  (eval $ac_compile) 2>&5
10583  ac_status=$?
10584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585  (exit $ac_status); } 2>conftest.err; then
10586        soname=conftest
10587        lib=conftest
10588        libobjs=conftest.$ac_objext
10589        deplibs=
10590        wl=$lt_prog_compiler_wl
10591        pic_flag=$lt_prog_compiler_pic
10592        compiler_flags=-v
10593        linker_flags=-v
10594        verstring=
10595        output_objdir=.
10596        libname=conftest
10597        lt_save_allow_undefined_flag=$allow_undefined_flag
10598        allow_undefined_flag=
10599        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10600  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10601  ac_status=$?
10602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603  (exit $ac_status); }
10604        then
10605          archive_cmds_need_lc=no
10606        else
10607          archive_cmds_need_lc=yes
10608        fi
10609        allow_undefined_flag=$lt_save_allow_undefined_flag
10610      else
10611        cat conftest.err 1>&5
10612      fi
10613      $rm conftest*
10614      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10615echo "${ECHO_T}$archive_cmds_need_lc" >&6
10616      ;;
10617    esac
10618  fi
10619  ;;
10620esac
10621
10622echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10623echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10624library_names_spec=
10625libname_spec='lib$name'
10626soname_spec=
10627shrext_cmds=".so"
10628postinstall_cmds=
10629postuninstall_cmds=
10630finish_cmds=
10631finish_eval=
10632shlibpath_var=
10633shlibpath_overrides_runpath=unknown
10634version_type=none
10635dynamic_linker="$host_os ld.so"
10636sys_lib_dlsearch_path_spec="/lib /usr/lib"
10637if test "$GCC" = yes; then
10638  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10639  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10640    # if the path contains ";" then we assume it to be the separator
10641    # otherwise default to the standard path separator (i.e. ":") - it is
10642    # assumed that no part of a normal pathname contains ";" but that should
10643    # okay in the real world where ";" in dirpaths is itself problematic.
10644    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10645  else
10646    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10647  fi
10648else
10649  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10650fi
10651need_lib_prefix=unknown
10652hardcode_into_libs=no
10653
10654# when you set need_version to no, make sure it does not cause -set_version
10655# flags to be left without arguments
10656need_version=unknown
10657
10658case $host_os in
10659aix3*)
10660  version_type=linux
10661  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10662  shlibpath_var=LIBPATH
10663
10664  # AIX 3 has no versioning support, so we append a major version to the name.
10665  soname_spec='${libname}${release}${shared_ext}$major'
10666  ;;
10667
10668aix4* | aix5*)
10669  version_type=linux
10670  need_lib_prefix=no
10671  need_version=no
10672  hardcode_into_libs=yes
10673  if test "$host_cpu" = ia64; then
10674    # AIX 5 supports IA64
10675    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10676    shlibpath_var=LD_LIBRARY_PATH
10677  else
10678    # With GCC up to 2.95.x, collect2 would create an import file
10679    # for dependence libraries.  The import file would start with
10680    # the line `#! .'.  This would cause the generated library to
10681    # depend on `.', always an invalid library.  This was fixed in
10682    # development snapshots of GCC prior to 3.0.
10683    case $host_os in
10684      aix4 | aix4.[01] | aix4.[01].*)
10685      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10686           echo ' yes '
10687           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10688        :
10689      else
10690        can_build_shared=no
10691      fi
10692      ;;
10693    esac
10694    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10695    # soname into executable. Probably we can add versioning support to
10696    # collect2, so additional links can be useful in future.
10697    if test "$aix_use_runtimelinking" = yes; then
10698      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10699      # instead of lib<name>.a to let people know that these are not
10700      # typical AIX shared libraries.
10701      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702    else
10703      # We preserve .a as extension for shared libraries through AIX4.2
10704      # and later when we are not doing run time linking.
10705      library_names_spec='${libname}${release}.a $libname.a'
10706      soname_spec='${libname}${release}${shared_ext}$major'
10707    fi
10708    shlibpath_var=LIBPATH
10709  fi
10710  ;;
10711
10712amigaos*)
10713  library_names_spec='$libname.ixlibrary $libname.a'
10714  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10715  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'
10716  ;;
10717
10718beos*)
10719  library_names_spec='${libname}${shared_ext}'
10720  dynamic_linker="$host_os ld.so"
10721  shlibpath_var=LIBRARY_PATH
10722  ;;
10723
10724bsdi[45]*)
10725  version_type=linux
10726  need_version=no
10727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728  soname_spec='${libname}${release}${shared_ext}$major'
10729  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10730  shlibpath_var=LD_LIBRARY_PATH
10731  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10732  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10733  # the default ld.so.conf also contains /usr/contrib/lib and
10734  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10735  # libtool to hard-code these into programs
10736  ;;
10737
10738cygwin* | mingw* | pw32*)
10739  version_type=windows
10740  shrext_cmds=".dll"
10741  need_version=no
10742  need_lib_prefix=no
10743
10744  case $GCC,$host_os in
10745  yes,cygwin* | yes,mingw* | yes,pw32*)
10746    library_names_spec='$libname.dll.a'
10747    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10748    postinstall_cmds='base_file=`basename \${file}`~
10749      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10750      dldir=$destdir/`dirname \$dlpath`~
10751      test -d \$dldir || mkdir -p \$dldir~
10752      $install_prog $dir/$dlname \$dldir/$dlname~
10753      chmod a+x \$dldir/$dlname'
10754    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10755      dlpath=$dir/\$dldll~
10756       $rm \$dlpath'
10757    shlibpath_overrides_runpath=yes
10758
10759    case $host_os in
10760    cygwin*)
10761      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10762      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10763      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10764      ;;
10765    mingw*)
10766      # MinGW DLLs use traditional 'lib' prefix
10767      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10768      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10769      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10770        # It is most probably a Windows format PATH printed by
10771        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10772        # path with ; separators, and with drive letters. We can handle the
10773        # drive letters (cygwin fileutils understands them), so leave them,
10774        # especially as we might pass files found there to a mingw objdump,
10775        # which wouldn't understand a cygwinified path. Ahh.
10776        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`