source: ThirdParty/Mumps/trunk/configure @ 2882

Last change on this file since 2882 was 2683, checked in by stefan, 8 years ago

rerun autotools

File size: 872.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMumps trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMumps'
431PACKAGE_TARNAME='thirdpartymumps'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyMumps trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="MUMPS/src/dmumps_part1.F"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion MUMPS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS CPP EGREP MY_DEFS LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED MUMPS_CFLAGS MUMPS_LIBS MUMPS_PCLIBS MUMPS_PCREQUIRES MUMPS_DEPENDENCIES MUMPS_CFLAGS_INSTALLED MUMPS_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MUMPSDIR MUMPSOBJDIR MUMPSSRCDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
993ac_env_PKG_CONFIG_value=$PKG_CONFIG
994ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
995ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyMumps 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  --enable-doscompile     Under Cygwin, compile so that executables run under
1081                          DOS. Set to mingw to use gcc/g++/ld with
1082                          -mno-cygwin. Set to msvc to use cl/link (or
1083                          icl/link). Default when mentioned: mingw. Default
1084                          when not mentioned: disabled.
1085
1086  --disable-pthread-mumps disable use of pthread library
1087  --enable-static[=PKGS]
1088                          build static libraries [default=no]
1089  --disable-dependency-tracking  speeds up one-time build
1090  --enable-dependency-tracking   do not reject slow dependency extractors
1091  --enable-maintainer-mode  enable make rules and dependencies not useful
1092                          (and sometimes confusing) to the casual installer
1093  --enable-shared[=PKGS]
1094                          build shared libraries [default=yes]
1095  --enable-fast-install[=PKGS]
1096                          optimize for fast installation [default=yes]
1097  --disable-libtool-lock  avoid locking (might break parallel builds)
1098  --disable-pkg-config    disable use of pkg-config (if available)
1099  --disable-interpackage-dependencies
1100                          disables deduction of Makefile dependencies from
1101                          package linker flags
1102
1103Optional Packages:
1104  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1105  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1106  --with-mumps-verbosity specify the debug verbosity level for project Mumps
1107  --with-mumps-checklevel specify the sanity check level for project Mumps
1108  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1109  --with-pic              try to use only PIC/non-PIC objects [default=use
1110                          both]
1111  --with-tags[=TAGS]
1112                          include additional configurations [automatic]
1113  --with-blas             specify BLAS library (or BUILD to enforce use of
1114                          ThirdParty/Blas)
1115
1116  --with-coin-instdir     prefix of installation directory for precompiled
1117                          COIN packages
1118  --with-blas-lib linker flags for using package Blas
1119  --with-blas-incdir directory with header files for using package Blas
1120  --with-blas-datadir directory with data files for using package Blas
1121  --with-metis-lib linker flags for using package Metis
1122  --with-metis-incdir directory with header files for using package Metis
1123  --with-metis-datadir directory with data files for using package Metis
1124
1125Some influential environment variables:
1126  CDEFS       Additional -D flags to be used when compiling C code.
1127  ADD_CFLAGS  Additional C compiler options
1128  DBG_CFLAGS  Debug C compiler options
1129  OPT_CFLAGS  Optimize C compiler options
1130  CC          C compiler command
1131  CFLAGS      C compiler flags
1132  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1133              nonstandard directory <lib dir>
1134  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1135              headers in a nonstandard directory <include dir>
1136  MPICC       C MPI Compiler
1137  ADD_FFLAGS  Additional Fortran compiler options
1138  DBG_FFLAGS  Debug Fortran compiler options
1139  OPT_FFLAGS  Optimize Fortran compiler options
1140  F77         Fortran 77 compiler command
1141  FFLAGS      Fortran 77 compiler flags
1142  MPIF77      Fortran MPI Compiler
1143  CPP         C preprocessor
1144  CXX         C++ compiler command
1145  CXXFLAGS    C++ compiler flags
1146  CXXCPP      C++ preprocessor
1147  PKG_CONFIG  path to pkg-config utility
1148
1149Use these variables to override the choices made by `configure' or to help
1150it to find libraries and programs with nonstandard names/locations.
1151
1152Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1153_ACEOF
1154fi
1155
1156if test "$ac_init_help" = "recursive"; then
1157  # If there are subdirs, report their specific --help.
1158  ac_popdir=`pwd`
1159  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1160    test -d $ac_dir || continue
1161    ac_builddir=.
1162
1163if test "$ac_dir" != .; then
1164  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1165  # A "../" for each directory in $ac_dir_suffix.
1166  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1167else
1168  ac_dir_suffix= ac_top_builddir=
1169fi
1170
1171case $srcdir in
1172  .)  # No --srcdir option.  We are building in place.
1173    ac_srcdir=.
1174    if test -z "$ac_top_builddir"; then
1175       ac_top_srcdir=.
1176    else
1177       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1178    fi ;;
1179  [\\/]* | ?:[\\/]* )  # Absolute path.
1180    ac_srcdir=$srcdir$ac_dir_suffix;
1181    ac_top_srcdir=$srcdir ;;
1182  *) # Relative path.
1183    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1184    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1185esac
1186
1187# Do not use `cd foo && pwd` to compute absolute paths, because
1188# the directories may not exist.
1189case `pwd` in
1190.) ac_abs_builddir="$ac_dir";;
1191*)
1192  case "$ac_dir" in
1193  .) ac_abs_builddir=`pwd`;;
1194  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1195  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1196  esac;;
1197esac
1198case $ac_abs_builddir in
1199.) ac_abs_top_builddir=${ac_top_builddir}.;;
1200*)
1201  case ${ac_top_builddir}. in
1202  .) ac_abs_top_builddir=$ac_abs_builddir;;
1203  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1204  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1205  esac;;
1206esac
1207case $ac_abs_builddir in
1208.) ac_abs_srcdir=$ac_srcdir;;
1209*)
1210  case $ac_srcdir in
1211  .) ac_abs_srcdir=$ac_abs_builddir;;
1212  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1213  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1214  esac;;
1215esac
1216case $ac_abs_builddir in
1217.) ac_abs_top_srcdir=$ac_top_srcdir;;
1218*)
1219  case $ac_top_srcdir in
1220  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1221  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1222  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1223  esac;;
1224esac
1225
1226    cd $ac_dir
1227    # Check for guested configure; otherwise get Cygnus style configure.
1228    if test -f $ac_srcdir/configure.gnu; then
1229      echo
1230      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1231    elif test -f $ac_srcdir/configure; then
1232      echo
1233      $SHELL $ac_srcdir/configure  --help=recursive
1234    elif test -f $ac_srcdir/configure.ac ||
1235           test -f $ac_srcdir/configure.in; then
1236      echo
1237      $ac_configure --help
1238    else
1239      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1240    fi
1241    cd $ac_popdir
1242  done
1243fi
1244
1245test -n "$ac_init_help" && exit 0
1246if $ac_init_version; then
1247  cat <<\_ACEOF
1248ThirdPartyMumps configure trunk
1249generated by GNU Autoconf 2.59
1250
1251Copyright (C) 2003 Free Software Foundation, Inc.
1252This configure script is free software; the Free Software Foundation
1253gives unlimited permission to copy, distribute and modify it.
1254
1255
1256Copyright 2007-2009 International Business Machines and others.
1257All Rights Reserved.
1258This file is part of the open source package Coin which is distributed
1259under the Eclipse Public License.
1260_ACEOF
1261  exit 0
1262fi
1263exec 5>config.log
1264cat >&5 <<_ACEOF
1265This file contains any messages produced by compilers while
1266running configure, to aid debugging if configure makes a mistake.
1267
1268It was created by ThirdPartyMumps $as_me trunk, which was
1269generated by GNU Autoconf 2.59.  Invocation command line was
1270
1271  $ $0 $@
1272
1273_ACEOF
1274{
1275cat <<_ASUNAME
1276## --------- ##
1277## Platform. ##
1278## --------- ##
1279
1280hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1281uname -m = `(uname -m) 2>/dev/null || echo unknown`
1282uname -r = `(uname -r) 2>/dev/null || echo unknown`
1283uname -s = `(uname -s) 2>/dev/null || echo unknown`
1284uname -v = `(uname -v) 2>/dev/null || echo unknown`
1285
1286/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1287/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1288
1289/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1290/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1291/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1292hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1293/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1294/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1295/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1296
1297_ASUNAME
1298
1299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1300for as_dir in $PATH
1301do
1302  IFS=$as_save_IFS
1303  test -z "$as_dir" && as_dir=.
1304  echo "PATH: $as_dir"
1305done
1306
1307} >&5
1308
1309cat >&5 <<_ACEOF
1310
1311
1312## ----------- ##
1313## Core tests. ##
1314## ----------- ##
1315
1316_ACEOF
1317
1318
1319# Keep a trace of the command line.
1320# Strip out --no-create and --no-recursion so they do not pile up.
1321# Strip out --silent because we don't want to record it for future runs.
1322# Also quote any args containing shell meta-characters.
1323# Make two passes to allow for proper duplicate-argument suppression.
1324ac_configure_args=
1325ac_configure_args0=
1326ac_configure_args1=
1327ac_sep=
1328ac_must_keep_next=false
1329for ac_pass in 1 2
1330do
1331  for ac_arg
1332  do
1333    case $ac_arg in
1334    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1335    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336    | -silent | --silent | --silen | --sile | --sil)
1337      continue ;;
1338    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1340    esac
1341    case $ac_pass in
1342    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1343    2)
1344      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1345      if test $ac_must_keep_next = true; then
1346        ac_must_keep_next=false # Got value, back to normal.
1347      else
1348        case $ac_arg in
1349          *=* | --config-cache | -C | -disable-* | --disable-* \
1350          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1351          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1352          | -with-* | --with-* | -without-* | --without-* | --x)
1353            case "$ac_configure_args0 " in
1354              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1355            esac
1356            ;;
1357          -* ) ac_must_keep_next=true ;;
1358        esac
1359      fi
1360      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1361      # Get rid of the leading space.
1362      ac_sep=" "
1363      ;;
1364    esac
1365  done
1366done
1367$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1368$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1369
1370# When interrupted or exit'd, cleanup temporary files, and complete
1371# config.log.  We remove comments because anyway the quotes in there
1372# would cause problems or look ugly.
1373# WARNING: Be sure not to use single quotes in there, as some shells,
1374# such as our DU 5.0 friend, will then `close' the trap.
1375trap 'exit_status=$?
1376  # Save into config.log some information that might help in debugging.
1377  {
1378    echo
1379
1380    cat <<\_ASBOX
1381## ---------------- ##
1382## Cache variables. ##
1383## ---------------- ##
1384_ASBOX
1385    echo
1386    # The following way of writing the cache mishandles newlines in values,
1387{
1388  (set) 2>&1 |
1389    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1390    *ac_space=\ *)
1391      sed -n \
1392        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1393          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1394      ;;
1395    *)
1396      sed -n \
1397        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1398      ;;
1399    esac;
1400}
1401    echo
1402
1403    cat <<\_ASBOX
1404## ----------------- ##
1405## Output variables. ##
1406## ----------------- ##
1407_ASBOX
1408    echo
1409    for ac_var in $ac_subst_vars
1410    do
1411      eval ac_val=$`echo $ac_var`
1412      echo "$ac_var='"'"'$ac_val'"'"'"
1413    done | sort
1414    echo
1415
1416    if test -n "$ac_subst_files"; then
1417      cat <<\_ASBOX
1418## ------------- ##
1419## Output files. ##
1420## ------------- ##
1421_ASBOX
1422      echo
1423      for ac_var in $ac_subst_files
1424      do
1425        eval ac_val=$`echo $ac_var`
1426        echo "$ac_var='"'"'$ac_val'"'"'"
1427      done | sort
1428      echo
1429    fi
1430
1431    if test -s confdefs.h; then
1432      cat <<\_ASBOX
1433## ----------- ##
1434## confdefs.h. ##
1435## ----------- ##
1436_ASBOX
1437      echo
1438      sed "/^$/d" confdefs.h | sort
1439      echo
1440    fi
1441    test "$ac_signal" != 0 &&
1442      echo "$as_me: caught signal $ac_signal"
1443    echo "$as_me: exit $exit_status"
1444  } >&5
1445  rm -f core *.core &&
1446  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1447    exit $exit_status
1448     ' 0
1449for ac_signal in 1 2 13 15; do
1450  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1451done
1452ac_signal=0
1453
1454# confdefs.h avoids OS command line length limits that DEFS can exceed.
1455rm -rf conftest* confdefs.h
1456# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1457echo >confdefs.h
1458
1459# Predefined preprocessor variables.
1460
1461cat >>confdefs.h <<_ACEOF
1462#define PACKAGE_NAME "$PACKAGE_NAME"
1463_ACEOF
1464
1465
1466cat >>confdefs.h <<_ACEOF
1467#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1468_ACEOF
1469
1470
1471cat >>confdefs.h <<_ACEOF
1472#define PACKAGE_VERSION "$PACKAGE_VERSION"
1473_ACEOF
1474
1475
1476cat >>confdefs.h <<_ACEOF
1477#define PACKAGE_STRING "$PACKAGE_STRING"
1478_ACEOF
1479
1480
1481cat >>confdefs.h <<_ACEOF
1482#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1483_ACEOF
1484
1485
1486# Let the site file select an alternate cache file if it wants to.
1487# Prefer explicitly selected file to automatically selected ones.
1488if test -z "$CONFIG_SITE"; then
1489  if test "x$prefix" != xNONE; then
1490    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1491  else
1492    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1493  fi
1494fi
1495for ac_site_file in $CONFIG_SITE; do
1496  if test -r "$ac_site_file"; then
1497    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1498echo "$as_me: loading site script $ac_site_file" >&6;}
1499    sed 's/^/| /' "$ac_site_file" >&5
1500    . "$ac_site_file"
1501  fi
1502done
1503
1504if test -r "$cache_file"; then
1505  # Some versions of bash will fail to source /dev/null (special
1506  # files actually), so we avoid doing that.
1507  if test -f "$cache_file"; then
1508    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1509echo "$as_me: loading cache $cache_file" >&6;}
1510    case $cache_file in
1511      [\\/]* | ?:[\\/]* ) . $cache_file;;
1512      *)                      . ./$cache_file;;
1513    esac
1514  fi
1515else
1516  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1517echo "$as_me: creating cache $cache_file" >&6;}
1518  >$cache_file
1519fi
1520
1521# Check that the precious variables saved in the cache have kept the same
1522# value.
1523ac_cache_corrupted=false
1524for ac_var in `(set) 2>&1 |
1525               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1526  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1527  eval ac_new_set=\$ac_env_${ac_var}_set
1528  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1529  eval ac_new_val="\$ac_env_${ac_var}_value"
1530  case $ac_old_set,$ac_new_set in
1531    set,)
1532      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1533echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1534      ac_cache_corrupted=: ;;
1535    ,set)
1536      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1537echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1538      ac_cache_corrupted=: ;;
1539    ,);;
1540    *)
1541      if test "x$ac_old_val" != "x$ac_new_val"; then
1542        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1543echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1544        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1545echo "$as_me:   former value:  $ac_old_val" >&2;}
1546        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1547echo "$as_me:   current value: $ac_new_val" >&2;}
1548        ac_cache_corrupted=:
1549      fi;;
1550  esac
1551  # Pass precious variables to config.status.
1552  if test "$ac_new_set" = set; then
1553    case $ac_new_val in
1554    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1555      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1556    *) ac_arg=$ac_var=$ac_new_val ;;
1557    esac
1558    case " $ac_configure_args " in
1559      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1560      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1561    esac
1562  fi
1563done
1564if $ac_cache_corrupted; then
1565  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1566echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1567  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1568echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1569   { (exit 1); exit 1; }; }
1570fi
1571
1572ac_ext=c
1573ac_cpp='$CPP $CPPFLAGS'
1574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1576ac_compiler_gnu=$ac_cv_c_compiler_gnu
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607# List one file in the package so that the configure script can test
1608# whether the package is actually there
1609
1610
1611# Where should everything be installed by default?  Here, we want it
1612# to be installed directly in 'bin', 'lib', 'include' subdirectories
1613# of the directory where configure is run.  The default would be
1614# /usr/local.
1615
1616
1617
1618# As backup, we make sure we don't loose an FLIBS if it has been set
1619# by the user
1620save_FLIBS="$FLIBS"
1621
1622# A useful makefile conditional that is always false
1623
1624
1625if false; then
1626  ALWAYS_FALSE_TRUE=
1627  ALWAYS_FALSE_FALSE='#'
1628else
1629  ALWAYS_FALSE_TRUE='#'
1630  ALWAYS_FALSE_FALSE=
1631fi
1632
1633
1634# We set the following variable so that we know later in AC_COIN_FINALIZE
1635# that we are in a project main directory
1636coin_projectdir=yes
1637
1638# Set the project's version numbers
1639
1640
1641cat >>confdefs.h <<_ACEOF
1642#define MUMPS_VERSION "$PACKAGE_VERSION"
1643_ACEOF
1644
1645
1646  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1647  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1648  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1649  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1650  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1651  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1652
1653cat >>confdefs.h <<_ACEOF
1654#define MUMPS_VERSION_MAJOR $coin_majorver
1655_ACEOF
1656
1657
1658cat >>confdefs.h <<_ACEOF
1659#define MUMPS_VERSION_MINOR $coin_minorver
1660_ACEOF
1661
1662
1663cat >>confdefs.h <<_ACEOF
1664#define MUMPS_VERSION_RELEASE $coin_releasever
1665_ACEOF
1666
1667
1668  # We use the following variable to have a string with the upper case
1669  # version of the project name
1670  COIN_PRJCT=MUMPS
1671
1672  # Set the project's SVN revision number. The complicated sed expression
1673  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1674  # as a single number.
1675  # Extract the first word of "svnversion", so it can be a program name with args.
1676set dummy svnversion; ac_word=$2
1677echo "$as_me:$LINENO: checking for $ac_word" >&5
1678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679if test "${ac_cv_prog_have_svnversion+set}" = set; then
1680  echo $ECHO_N "(cached) $ECHO_C" >&6
1681else
1682  if test -n "$have_svnversion"; then
1683  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1684else
1685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686for as_dir in $PATH
1687do
1688  IFS=$as_save_IFS
1689  test -z "$as_dir" && as_dir=.
1690  for ac_exec_ext in '' $ac_executable_extensions; do
1691  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692    ac_cv_prog_have_svnversion="yes"
1693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694    break 2
1695  fi
1696done
1697done
1698
1699  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1700fi
1701fi
1702have_svnversion=$ac_cv_prog_have_svnversion
1703if test -n "$have_svnversion"; then
1704  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1705echo "${ECHO_T}$have_svnversion" >&6
1706else
1707  echo "$as_me:$LINENO: result: no" >&5
1708echo "${ECHO_T}no" >&6
1709fi
1710
1711  if test "x$have_svnversion" = xyes; then
1712
1713    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1714    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1715      MUMPS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1716
1717cat >>confdefs.h <<_ACEOF
1718#define MUMPS_SVN_REV $MUMPS_SVN_REV
1719_ACEOF
1720
1721    fi
1722  fi
1723
1724
1725
1726# Capture libtool library version, if given.
1727
1728
1729
1730
1731#############################################################################
1732#                         Standard build tool stuff                         #
1733#############################################################################
1734
1735# Get the system type
1736ac_aux_dir=
1737for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1738  if 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/install.sh; then
1743    ac_aux_dir=$ac_dir
1744    ac_install_sh="$ac_aux_dir/install.sh -c"
1745    break
1746  elif test -f $ac_dir/shtool; then
1747    ac_aux_dir=$ac_dir
1748    ac_install_sh="$ac_aux_dir/shtool install -c"
1749    break
1750  fi
1751done
1752if test -z "$ac_aux_dir"; then
1753  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1754echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1755   { (exit 1); exit 1; }; }
1756fi
1757ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1758ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1759ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1760
1761# Make sure we can run config.sub.
1762$ac_config_sub sun4 >/dev/null 2>&1 ||
1763  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1764echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1765   { (exit 1); exit 1; }; }
1766
1767echo "$as_me:$LINENO: checking build system type" >&5
1768echo $ECHO_N "checking build system type... $ECHO_C" >&6
1769if test "${ac_cv_build+set}" = set; then
1770  echo $ECHO_N "(cached) $ECHO_C" >&6
1771else
1772  ac_cv_build_alias=$build_alias
1773test -z "$ac_cv_build_alias" &&
1774  ac_cv_build_alias=`$ac_config_guess`
1775test -z "$ac_cv_build_alias" &&
1776  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1777echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1778   { (exit 1); exit 1; }; }
1779ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1780  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1781echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1782   { (exit 1); exit 1; }; }
1783
1784fi
1785echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1786echo "${ECHO_T}$ac_cv_build" >&6
1787build=$ac_cv_build
1788build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791
1792
1793
1794#turn off warnings and pedantic mode since they could make trouble on some platforms,
1795#and we couldn't fix them anyway
1796coin_skip_warn_cflags=yes
1797coin_skip_warn_fflags=yes
1798
1799# Check if user wants to produce debugging code
1800
1801echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1802echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1803
1804# Check whether --enable-debug or --disable-debug was given.
1805if test "${enable_debug+set}" = set; then
1806  enableval="$enable_debug"
1807  case "${enableval}" in
1808   yes) coin_debug_compile=true
1809        if test "${enable_shared+set}" = set; then :; else
1810          enable_shared=no
1811        fi
1812        ;;
1813   no)  coin_debug_compile=false
1814        ;;
1815   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1816echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1817   { (exit 1); exit 1; }; }
1818        ;;
1819esac
1820else
1821  coin_debug_compile=false
1822fi;
1823
1824# Check whether --enable-debug-mumps or --disable-debug-mumps was given.
1825if test "${enable_debug_mumps+set}" = set; then
1826  enableval="$enable_debug_mumps"
1827  case "${enableval}" in
1828    yes) coin_debug_compile=true
1829         ;;
1830    no)  coin_debug_compile=false
1831         ;;
1832    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-mumps" >&5
1833echo "$as_me: error: bad value ${enableval} for --enable-debug-mumps" >&2;}
1834   { (exit 1); exit 1; }; }
1835         ;;
1836 esac
1837else
1838  :
1839fi;
1840
1841 # m4_ifvaln([Mumps],
1842
1843if test $coin_debug_compile = true; then
1844  echo "$as_me:$LINENO: result: yes" >&5
1845echo "${ECHO_T}yes" >&6
1846else
1847  echo "$as_me:$LINENO: result: no" >&5
1848echo "${ECHO_T}no" >&6
1849fi
1850
1851
1852# Check whether --with-mumps-verbosity or --without-mumps-verbosity was given.
1853if test "${with_mumps_verbosity+set}" = set; then
1854  withval="$with_mumps_verbosity"
1855  if test "$withval" = yes; then
1856                withval=1
1857              fi
1858              coin_mumps_verbosity=$withval
1859else
1860  coin_mumps_verbosity=0
1861fi;
1862
1863cat >>confdefs.h <<_ACEOF
1864#define COIN_MUMPS_VERBOSITY $coin_mumps_verbosity
1865_ACEOF
1866
1867
1868
1869# Check whether --with-mumps-checklevel or --without-mumps-checklevel was given.
1870if test "${with_mumps_checklevel+set}" = set; then
1871  withval="$with_mumps_checklevel"
1872  if test "$withval" = yes; then
1873                withval=1
1874              fi
1875              coin_mumps_checklevel=$withval
1876else
1877  coin_mumps_checklevel=0
1878fi;
1879
1880cat >>confdefs.h <<_ACEOF
1881#define COIN_MUMPS_CHECKLEVEL $coin_mumps_checklevel
1882_ACEOF
1883
1884
1885 # m4_ifvaln([Mumps],
1886
1887
1888
1889# Get the name of the C compiler
1890case $build in
1891  *-mingw*)
1892    if test "${LD+set}" = set; then :; else
1893      LD=link
1894    fi
1895    ;;
1896 esac
1897 case $enable_doscompile in
1898   msvc)
1899     if test "x${LD+set}" = xset; then :; else
1900       LD=link
1901     fi
1902     ;;
1903 esac
1904
1905
1906 # Check whether --enable-doscompile or --disable-doscompile was given.
1907if test "${enable_doscompile+set}" = set; then
1908  enableval="$enable_doscompile"
1909  if test "$enable_doscompile" != no; then
1910     case $build in
1911       *-cygwin* | *-mingw*) ;;
1912       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1913echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1914   { (exit 1); exit 1; }; } ;;
1915     esac
1916   fi
1917else
1918  enable_doscompile=no
1919fi;
1920 case "$enable_doscompile" in
1921   mingw)
1922     case $build in
1923       *-mingw*) enable_doscompile=no ;;
1924     esac
1925     ;;
1926   msvc|no) ;;
1927   yes) enable_doscompile=mingw ;;
1928   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1929                    Try configure --help=recursive." >&5
1930echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1931                    Try configure --help=recursive." >&2;}
1932   { (exit 1); exit 1; }; }
1933      ;;
1934  esac
1935  if test "$enable_doscompile" != no ; then
1936    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1937echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1938  fi
1939
1940
1941# Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.
1942if test "${enable_static_standardlibs+set}" = set; then
1943  enableval="$enable_static_standardlibs"
1944  case "$enableval" in
1945     no | yes | auto ) ;;
1946     *)
1947       { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5
1948echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}
1949   { (exit 1); exit 1; }; } ;;
1950   esac
1951   use_static_standardlibs=$enableval
1952else
1953  use_static_standardlibs=no
1954fi;
1955
1956
1957
1958
1959
1960ac_ext=c
1961ac_cpp='$CPP $CPPFLAGS'
1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965
1966
1967# For consistency, we set the C compiler to the same value of the C++
1968# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1969if test x"$CXX" != x; then
1970  case "$CXX" in
1971    clang* ) ;;
1972    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1973      if test x"$CC" = x; then
1974        CC="$CXX"
1975        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1976echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1977      fi
1978      ;;
1979  esac
1980fi
1981
1982
1983
1984
1985
1986
1987coin_has_cc=yes
1988
1989save_cflags="$CFLAGS"
1990
1991# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1992# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1993# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1994# compiler. In this case, put cc after gcc.
1995
1996case $build in
1997  *-cygwin* | *-mingw*)
1998             if test "$enable_doscompile" = msvc ; then
1999               comps="icl cl"
2000             else
2001               comps="gcc cl"
2002             fi ;;
2003  *-*-solaris*)
2004             # Extract the first word of "cc", so it can be a program name with args.
2005set dummy cc; ac_word=$2
2006echo "$as_me:$LINENO: checking for $ac_word" >&5
2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2009  echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011  if test -n "$sol_cc_compiler"; then
2012  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2013else
2014  ac_prog_rejected=no
2015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016for as_dir in $PATH
2017do
2018  IFS=$as_save_IFS
2019  test -z "$as_dir" && as_dir=.
2020  for ac_exec_ext in '' $ac_executable_extensions; do
2021  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2023       ac_prog_rejected=yes
2024       continue
2025     fi
2026    ac_cv_prog_sol_cc_compiler="cc"
2027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028    break 2
2029  fi
2030done
2031done
2032
2033if test $ac_prog_rejected = yes; then
2034  # We found a bogon in the path, so make sure we never use it.
2035  set dummy $ac_cv_prog_sol_cc_compiler
2036  shift
2037  if test $# != 0; then
2038    # We chose a different compiler from the bogus one.
2039    # However, it has the same basename, so the bogon will be chosen
2040    # first if we set sol_cc_compiler to just the basename; use the full file name.
2041    shift
2042    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2043  fi
2044fi
2045fi
2046fi
2047sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2048if test -n "$sol_cc_compiler"; then
2049  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2050echo "${ECHO_T}$sol_cc_compiler" >&6
2051else
2052  echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6
2054fi
2055
2056             if test "$sol_cc_compiler" = "cc" ; then
2057               comps="cc xlc gcc pgcc icc"
2058             else
2059               comps="xlc gcc pgcc icc cc"
2060             fi
2061             ;;
2062  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2063  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2064  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2065esac
2066
2067# We delete the cached value, since the test might not have been
2068# performed with our choice of compilers earlier
2069$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2070# AC_MSG_NOTICE([C compiler candidates: $comps])
2071ac_ext=c
2072ac_cpp='$CPP $CPPFLAGS'
2073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076if test -n "$ac_tool_prefix"; then
2077  for ac_prog in $comps
2078  do
2079    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2080set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2081echo "$as_me:$LINENO: checking for $ac_word" >&5
2082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083if test "${ac_cv_prog_CC+set}" = set; then
2084  echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
2086  if test -n "$CC"; then
2087  ac_cv_prog_CC="$CC" # Let the user override the test.
2088else
2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092  IFS=$as_save_IFS
2093  test -z "$as_dir" && as_dir=.
2094  for ac_exec_ext in '' $ac_executable_extensions; do
2095  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098    break 2
2099  fi
2100done
2101done
2102
2103fi
2104fi
2105CC=$ac_cv_prog_CC
2106if test -n "$CC"; then
2107  echo "$as_me:$LINENO: result: $CC" >&5
2108echo "${ECHO_T}$CC" >&6
2109else
2110  echo "$as_me:$LINENO: result: no" >&5
2111echo "${ECHO_T}no" >&6
2112fi
2113
2114    test -n "$CC" && break
2115  done
2116fi
2117if test -z "$CC"; then
2118  ac_ct_CC=$CC
2119  for ac_prog in $comps
2120do
2121  # Extract the first word of "$ac_prog", so it can be a program name with args.
2122set dummy $ac_prog; ac_word=$2
2123echo "$as_me:$LINENO: checking for $ac_word" >&5
2124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126  echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128  if test -n "$ac_ct_CC"; then
2129  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2130else
2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132for as_dir in $PATH
2133do
2134  IFS=$as_save_IFS
2135  test -z "$as_dir" && as_dir=.
2136  for ac_exec_ext in '' $ac_executable_extensions; do
2137  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138    ac_cv_prog_ac_ct_CC="$ac_prog"
2139    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140    break 2
2141  fi
2142done
2143done
2144
2145fi
2146fi
2147ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148if test -n "$ac_ct_CC"; then
2149  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150echo "${ECHO_T}$ac_ct_CC" >&6
2151else
2152  echo "$as_me:$LINENO: result: no" >&5
2153echo "${ECHO_T}no" >&6
2154fi
2155
2156  test -n "$ac_ct_CC" && break
2157done
2158
2159  CC=$ac_ct_CC
2160fi
2161
2162
2163test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2164See \`config.log' for more details." >&5
2165echo "$as_me: error: no acceptable C compiler found in \$PATH
2166See \`config.log' for more details." >&2;}
2167   { (exit 1); exit 1; }; }
2168
2169# Provide some information about the compiler.
2170echo "$as_me:$LINENO:" \
2171     "checking for C compiler version" >&5
2172ac_compiler=`set X $ac_compile; echo $2`
2173{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2174  (eval $ac_compiler --version </dev/null >&5) 2>&5
2175  ac_status=$?
2176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177  (exit $ac_status); }
2178{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2179  (eval $ac_compiler -v </dev/null >&5) 2>&5
2180  ac_status=$?
2181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182  (exit $ac_status); }
2183{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2184  (eval $ac_compiler -V </dev/null >&5) 2>&5
2185  ac_status=$?
2186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187  (exit $ac_status); }
2188
2189cat >conftest.$ac_ext <<_ACEOF
2190/* confdefs.h.  */
2191_ACEOF
2192cat confdefs.h >>conftest.$ac_ext
2193cat >>conftest.$ac_ext <<_ACEOF
2194/* end confdefs.h.  */
2195
2196int
2197main ()
2198{
2199
2200  ;
2201  return 0;
2202}
2203_ACEOF
2204ac_clean_files_save=$ac_clean_files
2205ac_clean_files="$ac_clean_files a.out a.exe b.out"
2206# Try to create an executable without -o first, disregard a.out.
2207# It will help us diagnose broken compilers, and finding out an intuition
2208# of exeext.
2209echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2210echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2211ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2212if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2213  (eval $ac_link_default) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }; then
2217  # Find the output, starting from the most likely.  This scheme is
2218# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2219# resort.
2220
2221# Be careful to initialize this variable, since it used to be cached.
2222# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2223ac_cv_exeext=
2224# b.out is created by i960 compilers.
2225for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2226do
2227  test -f "$ac_file" || continue
2228  case $ac_file in
2229    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2230        ;;
2231    conftest.$ac_ext )
2232        # This is the source file.
2233        ;;
2234    [ab].out )
2235        # We found the default executable, but exeext='' is most
2236        # certainly right.
2237        break;;
2238    *.* )
2239        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2240        # FIXME: I believe we export ac_cv_exeext for Libtool,
2241        # but it would be cool to find out if it's true.  Does anybody
2242        # maintain Libtool? --akim.
2243        export ac_cv_exeext
2244        break;;
2245    * )
2246        break;;
2247  esac
2248done
2249else
2250  echo "$as_me: failed program was:" >&5
2251sed 's/^/| /' conftest.$ac_ext >&5
2252
2253{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: C compiler cannot create executables
2256See \`config.log' for more details." >&2;}
2257   { (exit 77); exit 77; }; }
2258fi
2259
2260ac_exeext=$ac_cv_exeext
2261echo "$as_me:$LINENO: result: $ac_file" >&5
2262echo "${ECHO_T}$ac_file" >&6
2263
2264# Check the compiler produces executables we can run.  If not, either
2265# the compiler is broken, or we cross compile.
2266echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2268# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269# If not cross compiling, check that we can run a simple program.
2270if test "$cross_compiling" != yes; then
2271  if { ac_try='./$ac_file'
2272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273  (eval $ac_try) 2>&5
2274  ac_status=$?
2275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276  (exit $ac_status); }; }; then
2277    cross_compiling=no
2278  else
2279    if test "$cross_compiling" = maybe; then
2280        cross_compiling=yes
2281    else
2282        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2283If you meant to cross compile, use \`--host'.
2284See \`config.log' for more details." >&5
2285echo "$as_me: error: cannot run C compiled programs.
2286If you meant to cross compile, use \`--host'.
2287See \`config.log' for more details." >&2;}
2288   { (exit 1); exit 1; }; }
2289    fi
2290  fi
2291fi
2292echo "$as_me:$LINENO: result: yes" >&5
2293echo "${ECHO_T}yes" >&6
2294
2295rm -f a.out a.exe conftest$ac_cv_exeext b.out
2296ac_clean_files=$ac_clean_files_save
2297# Check the compiler produces executables we can run.  If not, either
2298# the compiler is broken, or we cross compile.
2299echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2300echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2301echo "$as_me:$LINENO: result: $cross_compiling" >&5
2302echo "${ECHO_T}$cross_compiling" >&6
2303
2304echo "$as_me:$LINENO: checking for suffix of executables" >&5
2305echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2307  (eval $ac_link) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); }; then
2311  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2312# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2313# work properly (i.e., refer to `conftest.exe'), while it won't with
2314# `rm'.
2315for ac_file in conftest.exe conftest conftest.*; do
2316  test -f "$ac_file" || continue
2317  case $ac_file in
2318    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2319    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2320          export ac_cv_exeext
2321          break;;
2322    * ) break;;
2323  esac
2324done
2325else
2326  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2327See \`config.log' for more details." >&5
2328echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2329See \`config.log' for more details." >&2;}
2330   { (exit 1); exit 1; }; }
2331fi
2332
2333rm -f conftest$ac_cv_exeext
2334echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2335echo "${ECHO_T}$ac_cv_exeext" >&6
2336
2337rm -f conftest.$ac_ext
2338EXEEXT=$ac_cv_exeext
2339ac_exeext=$EXEEXT
2340echo "$as_me:$LINENO: checking for suffix of object files" >&5
2341echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2342if test "${ac_cv_objext+set}" = set; then
2343  echo $ECHO_N "(cached) $ECHO_C" >&6
2344else
2345  cat >conftest.$ac_ext <<_ACEOF
2346/* confdefs.h.  */
2347_ACEOF
2348cat confdefs.h >>conftest.$ac_ext
2349cat >>conftest.$ac_ext <<_ACEOF
2350/* end confdefs.h.  */
2351
2352int
2353main ()
2354{
2355
2356  ;
2357  return 0;
2358}
2359_ACEOF
2360rm -f conftest.o conftest.obj
2361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362  (eval $ac_compile) 2>&5
2363  ac_status=$?
2364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365  (exit $ac_status); }; then
2366  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2367  case $ac_file in
2368    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2369    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2370       break;;
2371  esac
2372done
2373else
2374  echo "$as_me: failed program was:" >&5
2375sed 's/^/| /' conftest.$ac_ext >&5
2376
2377{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2378See \`config.log' for more details." >&5
2379echo "$as_me: error: cannot compute suffix of object files: cannot compile
2380See \`config.log' for more details." >&2;}
2381   { (exit 1); exit 1; }; }
2382fi
2383
2384rm -f conftest.$ac_cv_objext conftest.$ac_ext
2385fi
2386echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2387echo "${ECHO_T}$ac_cv_objext" >&6
2388OBJEXT=$ac_cv_objext
2389ac_objext=$OBJEXT
2390echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2391echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2392if test "${ac_cv_c_compiler_gnu+set}" = set; then
2393  echo $ECHO_N "(cached) $ECHO_C" >&6
2394else
2395  cat >conftest.$ac_ext <<_ACEOF
2396/* confdefs.h.  */
2397_ACEOF
2398cat confdefs.h >>conftest.$ac_ext
2399cat >>conftest.$ac_ext <<_ACEOF
2400/* end confdefs.h.  */
2401
2402int
2403main ()
2404{
2405#ifndef __GNUC__
2406       choke me
2407#endif
2408
2409  ;
2410  return 0;
2411}
2412_ACEOF
2413rm -f conftest.$ac_objext
2414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415  (eval $ac_compile) 2>conftest.er1
2416  ac_status=$?
2417  grep -v '^ *+' conftest.er1 >conftest.err
2418  rm -f conftest.er1
2419  cat conftest.err >&5
2420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421  (exit $ac_status); } &&
2422         { ac_try='test -z "$ac_c_werror_flag"
2423                         || test ! -s conftest.err'
2424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425  (eval $ac_try) 2>&5
2426  ac_status=$?
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); }; } &&
2429         { ac_try='test -s conftest.$ac_objext'
2430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431  (eval $ac_try) 2>&5
2432  ac_status=$?
2433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434  (exit $ac_status); }; }; then
2435  ac_compiler_gnu=yes
2436else
2437  echo "$as_me: failed program was:" >&5
2438sed 's/^/| /' conftest.$ac_ext >&5
2439
2440ac_compiler_gnu=no
2441fi
2442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443ac_cv_c_compiler_gnu=$ac_compiler_gnu
2444
2445fi
2446echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2447echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2448GCC=`test $ac_compiler_gnu = yes && echo yes`
2449ac_test_CFLAGS=${CFLAGS+set}
2450ac_save_CFLAGS=$CFLAGS
2451CFLAGS="-g"
2452echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2453echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2454if test "${ac_cv_prog_cc_g+set}" = set; then
2455  echo $ECHO_N "(cached) $ECHO_C" >&6
2456else
2457  cat >conftest.$ac_ext <<_ACEOF
2458/* confdefs.h.  */
2459_ACEOF
2460cat confdefs.h >>conftest.$ac_ext
2461cat >>conftest.$ac_ext <<_ACEOF
2462/* end confdefs.h.  */
2463
2464int
2465main ()
2466{
2467
2468  ;
2469  return 0;
2470}
2471_ACEOF
2472rm -f conftest.$ac_objext
2473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474  (eval $ac_compile) 2>conftest.er1
2475  ac_status=$?
2476  grep -v '^ *+' conftest.er1 >conftest.err
2477  rm -f conftest.er1
2478  cat conftest.err >&5
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); } &&
2481         { ac_try='test -z "$ac_c_werror_flag"
2482                         || test ! -s conftest.err'
2483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484  (eval $ac_try) 2>&5
2485  ac_status=$?
2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487  (exit $ac_status); }; } &&
2488         { ac_try='test -s conftest.$ac_objext'
2489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490  (eval $ac_try) 2>&5
2491  ac_status=$?
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); }; }; then
2494  ac_cv_prog_cc_g=yes
2495else
2496  echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499ac_cv_prog_cc_g=no
2500fi
2501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502fi
2503echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2504echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2505if test "$ac_test_CFLAGS" = set; then
2506  CFLAGS=$ac_save_CFLAGS
2507elif test $ac_cv_prog_cc_g = yes; then
2508  if test "$GCC" = yes; then
2509    CFLAGS="-g -O2"
2510  else
2511    CFLAGS="-g"
2512  fi
2513else
2514  if test "$GCC" = yes; then
2515    CFLAGS="-O2"
2516  else
2517    CFLAGS=
2518  fi
2519fi
2520echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2521echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2522if test "${ac_cv_prog_cc_stdc+set}" = set; then
2523  echo $ECHO_N "(cached) $ECHO_C" >&6
2524else
2525  ac_cv_prog_cc_stdc=no
2526ac_save_CC=$CC
2527cat >conftest.$ac_ext <<_ACEOF
2528/* confdefs.h.  */
2529_ACEOF
2530cat confdefs.h >>conftest.$ac_ext
2531cat >>conftest.$ac_ext <<_ACEOF
2532/* end confdefs.h.  */
2533#include <stdarg.h>
2534#include <stdio.h>
2535#include <sys/types.h>
2536#include <sys/stat.h>
2537/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2538struct buf { int x; };
2539FILE * (*rcsopen) (struct buf *, struct stat *, int);
2540static char *e (p, i)
2541     char **p;
2542     int i;
2543{
2544  return p[i];
2545}
2546static char *f (char * (*g) (char **, int), char **p, ...)
2547{
2548  char *s;
2549  va_list v;
2550  va_start (v,p);
2551  s = g (p, va_arg (v,int));
2552  va_end (v);
2553  return s;
2554}
2555
2556/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2557   function prototypes and stuff, but not '\xHH' hex character constants.
2558   These don't provoke an error unfortunately, instead are silently treated
2559   as 'x'.  The following induces an error, until -std1 is added to get
2560   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2561   array size at least.  It's necessary to write '\x00'==0 to get something
2562   that's true only with -std1.  */
2563int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2564
2565int test (int i, double x);
2566struct s1 {int (*f) (int a);};
2567struct s2 {int (*f) (double a);};
2568int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2569int argc;
2570char **argv;
2571int
2572main ()
2573{
2574return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2575  ;
2576  return 0;
2577}
2578_ACEOF
2579# Don't try gcc -ansi; that turns off useful extensions and
2580# breaks some systems' header files.
2581# AIX                   -qlanglvl=ansi
2582# Ultrix and OSF/1      -std1
2583# HP-UX 10.20 and later -Ae
2584# HP-UX older versions  -Aa -D_HPUX_SOURCE
2585# SVR4                  -Xc -D__EXTENSIONS__
2586for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2587do
2588  CC="$ac_save_CC $ac_arg"
2589  rm -f conftest.$ac_objext
2590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591  (eval $ac_compile) 2>conftest.er1
2592  ac_status=$?
2593  grep -v '^ *+' conftest.er1 >conftest.err
2594  rm -f conftest.er1
2595  cat conftest.err >&5
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); } &&
2598         { ac_try='test -z "$ac_c_werror_flag"
2599                         || test ! -s conftest.err'
2600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601  (eval $ac_try) 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); }; } &&
2605         { ac_try='test -s conftest.$ac_objext'
2606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607  (eval $ac_try) 2>&5
2608  ac_status=$?
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); }; }; then
2611  ac_cv_prog_cc_stdc=$ac_arg
2612break
2613else
2614  echo "$as_me: failed program was:" >&5
2615sed 's/^/| /' conftest.$ac_ext >&5
2616
2617fi
2618rm -f conftest.err conftest.$ac_objext
2619done
2620rm -f conftest.$ac_ext conftest.$ac_objext
2621CC=$ac_save_CC
2622
2623fi
2624
2625case "x$ac_cv_prog_cc_stdc" in
2626  x|xno)
2627    echo "$as_me:$LINENO: result: none needed" >&5
2628echo "${ECHO_T}none needed" >&6 ;;
2629  *)
2630    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2631echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2632    CC="$CC $ac_cv_prog_cc_stdc" ;;
2633esac
2634
2635# Some people use a C++ compiler to compile C.  Since we use `exit',
2636# in C++ we need to declare it.  In case someone uses the same compiler
2637# for both compiling C and C++ we need to have the C++ compiler decide
2638# the declaration of exit, since it's the most demanding environment.
2639cat >conftest.$ac_ext <<_ACEOF
2640#ifndef __cplusplus
2641  choke me
2642#endif
2643_ACEOF
2644rm -f conftest.$ac_objext
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646  (eval $ac_compile) 2>conftest.er1
2647  ac_status=$?
2648  grep -v '^ *+' conftest.er1 >conftest.err
2649  rm -f conftest.er1
2650  cat conftest.err >&5
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); } &&
2653         { ac_try='test -z "$ac_c_werror_flag"
2654                         || test ! -s conftest.err'
2655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656  (eval $ac_try) 2>&5
2657  ac_status=$?
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); }; } &&
2660         { ac_try='test -s conftest.$ac_objext'
2661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662  (eval $ac_try) 2>&5
2663  ac_status=$?
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); }; }; then
2666  for ac_declaration in \
2667   '' \
2668   'extern "C" void std::exit (int) throw (); using std::exit;' \
2669   'extern "C" void std::exit (int); using std::exit;' \
2670   'extern "C" void exit (int) throw ();' \
2671   'extern "C" void exit (int);' \
2672   'void exit (int);'
2673do
2674  cat >conftest.$ac_ext <<_ACEOF
2675/* confdefs.h.  */
2676_ACEOF
2677cat confdefs.h >>conftest.$ac_ext
2678cat >>conftest.$ac_ext <<_ACEOF
2679/* end confdefs.h.  */
2680$ac_declaration
2681#include <stdlib.h>
2682int
2683main ()
2684{
2685exit (42);
2686  ;
2687  return 0;
2688}
2689_ACEOF
2690rm -f conftest.$ac_objext
2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692  (eval $ac_compile) 2>conftest.er1
2693  ac_status=$?
2694  grep -v '^ *+' conftest.er1 >conftest.err
2695  rm -f conftest.er1
2696  cat conftest.err >&5
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); } &&
2699         { ac_try='test -z "$ac_c_werror_flag"
2700                         || test ! -s conftest.err'
2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702  (eval $ac_try) 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; } &&
2706         { ac_try='test -s conftest.$ac_objext'
2707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708  (eval $ac_try) 2>&5
2709  ac_status=$?
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); }; }; then
2712  :
2713else
2714  echo "$as_me: failed program was:" >&5
2715sed 's/^/| /' conftest.$ac_ext >&5
2716
2717continue
2718fi
2719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720  cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h.  */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h.  */
2726$ac_declaration
2727int
2728main ()
2729{
2730exit (42);
2731  ;
2732  return 0;
2733}
2734_ACEOF
2735rm -f conftest.$ac_objext
2736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737  (eval $ac_compile) 2>conftest.er1
2738  ac_status=$?
2739  grep -v '^ *+' conftest.er1 >conftest.err
2740  rm -f conftest.er1
2741  cat conftest.err >&5
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); } &&
2744         { ac_try='test -z "$ac_c_werror_flag"
2745                         || test ! -s conftest.err'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; } &&
2751         { ac_try='test -s conftest.$ac_objext'
2752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753  (eval $ac_try) 2>&5
2754  ac_status=$?
2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756  (exit $ac_status); }; }; then
2757  break
2758else
2759  echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762fi
2763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764done
2765rm -f conftest*
2766if test -n "$ac_declaration"; then
2767  echo '#ifdef __cplusplus' >>confdefs.h
2768  echo $ac_declaration      >>confdefs.h
2769  echo '#endif'             >>confdefs.h
2770fi
2771
2772else
2773  echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
2776fi
2777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2778ac_ext=c
2779ac_cpp='$CPP $CPPFLAGS'
2780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783
2784if test -z "$CC" ; then
2785  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2786echo "$as_me: error: Failed to find a C compiler!" >&2;}
2787   { (exit 1); exit 1; }; }
2788fi
2789# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2790case "$CC" in
2791  clang* ) ;;
2792  cl* | */cl* | CL* | */CL* )
2793    if test "$ac_cv_prog_cc_g" = yes ; then
2794      ac_cv_prog_cc_g=no
2795      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2796echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2797    fi ;;
2798esac
2799CFLAGS="$save_cflags"
2800
2801# add automake conditional so we can recognize cl compiler in makefile
2802coin_cc_is_cl=false
2803case "$CC" in
2804  clang* ) ;;
2805  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2806    coin_cc_is_cl=true
2807    ;;
2808esac
2809
2810
2811if test $coin_cc_is_cl = true; then
2812  COIN_CC_IS_CL_TRUE=
2813  COIN_CC_IS_CL_FALSE='#'
2814else
2815  COIN_CC_IS_CL_TRUE='#'
2816  COIN_CC_IS_CL_FALSE=
2817fi
2818
2819
2820# Check if a project specific CFLAGS variable has been set
2821if test x$COIN_PRJCT != x; then
2822  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2823  if test x$coin_tmp = xset; then
2824    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2825  fi
2826fi
2827
2828if test x"$CFLAGS" = x; then
2829
2830  coin_add_cflags=
2831  coin_opt_cflags=
2832  coin_dbg_cflags=
2833  coin_warn_cflags=
2834
2835  if test "$GCC" = "yes"; then
2836    case "$CC" in
2837      icc* | */icc*)
2838        ;;
2839      *)
2840        coin_opt_cflags="-O3"
2841        coin_add_cflags="-pipe"
2842        coin_dbg_cflags="-g -O0"
2843        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2844        case $build in
2845          *-darwin*)
2846            ;;
2847          *)
2848            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2849            ;;
2850        esac
2851        case $enable_doscompile in
2852          mingw)
2853            CFLAGS="-mno-cygwin"
2854            cat >conftest.$ac_ext <<_ACEOF
2855/* confdefs.h.  */
2856_ACEOF
2857cat confdefs.h >>conftest.$ac_ext
2858cat >>conftest.$ac_ext <<_ACEOF
2859/* end confdefs.h.  */
2860
2861int
2862main ()
2863{
2864int i=0; i++;
2865  ;
2866  return 0;
2867}
2868_ACEOF
2869rm -f conftest.$ac_objext conftest$ac_exeext
2870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2871  (eval $ac_link) 2>conftest.er1
2872  ac_status=$?
2873  grep -v '^ *+' conftest.er1 >conftest.err
2874  rm -f conftest.er1
2875  cat conftest.err >&5
2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877  (exit $ac_status); } &&
2878         { ac_try='test -z "$ac_c_werror_flag"
2879                         || test ! -s conftest.err'
2880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881  (eval $ac_try) 2>&5
2882  ac_status=$?
2883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884  (exit $ac_status); }; } &&
2885         { ac_try='test -s conftest$ac_exeext'
2886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887  (eval $ac_try) 2>&5
2888  ac_status=$?
2889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890  (exit $ac_status); }; }; then
2891  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2892else
2893  echo "$as_me: failed program was:" >&5
2894sed 's/^/| /' conftest.$ac_ext >&5
2895
2896fi
2897rm -f conftest.err conftest.$ac_objext \
2898      conftest$ac_exeext conftest.$ac_ext
2899            CFLAGS=
2900          ;;
2901        esac
2902    esac
2903  fi
2904  if test -z "$coin_opt_cflags"; then
2905    case $build in
2906      *-cygwin* | *-mingw*)
2907        case "$CC" in
2908          clang* ) ;;
2909          cl* | */cl* | CL* | */CL*)
2910            coin_opt_cflags='-MT -O2'
2911            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2912            coin_dbg_cflags='-MTd'
2913            ;;
2914          icl* | */icl* | ICL* | */ICL*)
2915            coin_opt_cflags='-MT -Ox'
2916            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2917            coin_dbg_cflags='-MTd -debug'
2918            ;;
2919        esac
2920        ;;
2921      *-linux-*)
2922        case "$CC" in
2923          icc* | */icc*)
2924            coin_opt_cflags="-O3 -ip -mp1"
2925            coin_add_cflags=""
2926            coin_dbg_cflags="-g"
2927            # Check if -i_dynamic is necessary (for new glibc library)
2928            CFLAGS=
2929            cat >conftest.$ac_ext <<_ACEOF
2930/* confdefs.h.  */
2931_ACEOF
2932cat confdefs.h >>conftest.$ac_ext
2933cat >>conftest.$ac_ext <<_ACEOF
2934/* end confdefs.h.  */
2935
2936int
2937main ()
2938{
2939int i=0; i++;
2940  ;
2941  return 0;
2942}
2943_ACEOF
2944rm -f conftest.$ac_objext conftest$ac_exeext
2945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2946  (eval $ac_link) 2>conftest.er1
2947  ac_status=$?
2948  grep -v '^ *+' conftest.er1 >conftest.err
2949  rm -f conftest.er1
2950  cat conftest.err >&5
2951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952  (exit $ac_status); } &&
2953         { ac_try='test -z "$ac_c_werror_flag"
2954                         || test ! -s conftest.err'
2955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956  (eval $ac_try) 2>&5
2957  ac_status=$?
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); }; } &&
2960         { ac_try='test -s conftest$ac_exeext'
2961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962  (eval $ac_try) 2>&5
2963  ac_status=$?
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); }; }; then
2966  :
2967else
2968  echo "$as_me: failed program was:" >&5
2969sed 's/^/| /' conftest.$ac_ext >&5
2970
2971coin_add_cflags="-i_dynamic $coin_add_cflags"
2972fi
2973rm -f conftest.err conftest.$ac_objext \
2974      conftest$ac_exeext conftest.$ac_ext
2975            ;;
2976          pgcc* | */pgcc*)
2977            coin_opt_cflags="-fast"
2978            coin_add_cflags="-Kieee -pc 64"
2979            coin_dbg_cflags="-g"
2980            ;;
2981        esac
2982        ;;
2983      *-ibm-*)
2984        case "$CC" in
2985          xlc* | */xlc* | mpxlc* | */mpxlc*)
2986            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2987            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2988            coin_dbg_cflags="-g"
2989          ;;
2990        esac
2991        ;;
2992      *-hp-*)
2993        coin_opt_cflags="-O"
2994        coin_add_cflags="-Ae"
2995        coin_dbg_cflags="-g"
2996        ;;
2997      *-*-solaris*)
2998        coin_opt_cflags="-xO4"
2999        coin_dbg_cflags="-g"
3000        ;;
3001      *-sgi-*)
3002        coin_opt_cflags="-O -OPT:Olimit=0"
3003        coin_dbg_cflags="-g"
3004        ;;
3005    esac
3006  fi
3007
3008  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3009    coin_dbg_cflags="-g"
3010  fi
3011
3012  if test -z "$coin_opt_cflags"; then
3013    # Try if -O option works if nothing else is set
3014    CFLAGS="-O"
3015    cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h.  */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h.  */
3021
3022int
3023main ()
3024{
3025int i=0; i++;
3026  ;
3027  return 0;
3028}
3029_ACEOF
3030rm -f conftest.$ac_objext conftest$ac_exeext
3031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3032  (eval $ac_link) 2>conftest.er1
3033  ac_status=$?
3034  grep -v '^ *+' conftest.er1 >conftest.err
3035  rm -f conftest.er1
3036  cat conftest.err >&5
3037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038  (exit $ac_status); } &&
3039         { ac_try='test -z "$ac_c_werror_flag"
3040                         || test ! -s conftest.err'
3041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042  (eval $ac_try) 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }; } &&
3046         { ac_try='test -s conftest$ac_exeext'
3047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048  (eval $ac_try) 2>&5
3049  ac_status=$?
3050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051  (exit $ac_status); }; }; then
3052  coin_opt_cflags="-O"
3053else
3054  echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057fi
3058rm -f conftest.err conftest.$ac_objext \
3059      conftest$ac_exeext conftest.$ac_ext
3060  fi
3061
3062  # if PM doesn't want the warning messages, take them out
3063  if test x"$coin_skip_warn_cflags" = xyes; then
3064    coin_warn_cflags=
3065  fi
3066
3067  if test x${DBG_CFLAGS+set} != xset; then
3068    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3069  fi
3070  if test x${OPT_CFLAGS+set} != xset; then
3071    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3072  fi
3073
3074  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3075  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3076
3077  if test "$coin_debug_compile" = "true"; then
3078    CFLAGS="$DBG_CFLAGS"
3079  else
3080    CFLAGS="$OPT_CFLAGS"
3081  fi
3082
3083else
3084  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3085  if test x${DBG_CFLAGS+set} != xset; then
3086    DBG_CFLAGS="$CFLAGS"
3087  fi
3088  if test x${OPT_CFLAGS+set} != xset; then
3089    OPT_CFLAGS="$CFLAGS"
3090  fi
3091fi
3092
3093# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3094
3095case "$CFLAGS" in
3096  *-mno-cygwin*)
3097    if test x${CPPFLAGS+set} != xset ; then
3098      CPPFLAGS="-mno-cygwin"
3099    else
3100      case "$CPPFLAGS" in
3101        *-mno-cygwin*)
3102          ;;
3103        *)
3104          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3105          ;;
3106      esac
3107    fi ;;
3108esac
3109
3110# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3111if test x$COIN_PRJCT != x; then
3112  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3113fi
3114
3115# Try if CFLAGS works
3116save_CFLAGS="$CFLAGS"
3117cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h.  */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127int i=0; i++;
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext conftest$ac_exeext
3133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3134  (eval $ac_link) 2>conftest.er1
3135  ac_status=$?
3136  grep -v '^ *+' conftest.er1 >conftest.err
3137  rm -f conftest.er1
3138  cat conftest.err >&5
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); } &&
3141         { ac_try='test -z "$ac_c_werror_flag"
3142                         || test ! -s conftest.err'
3143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144  (eval $ac_try) 2>&5
3145  ac_status=$?
3146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); }; } &&
3148         { ac_try='test -s conftest$ac_exeext'
3149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150  (eval $ac_try) 2>&5
3151  ac_status=$?
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); }; }; then
3154  :
3155else
3156  echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159CFLAGS=
3160fi
3161rm -f conftest.err conftest.$ac_objext \
3162      conftest$ac_exeext conftest.$ac_ext
3163if test -z "$CFLAGS"; then
3164  { 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
3165echo "$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;}
3166  CFLAGS='-O'
3167  cat >conftest.$ac_ext <<_ACEOF
3168/* confdefs.h.  */
3169_ACEOF
3170cat confdefs.h >>conftest.$ac_ext
3171cat >>conftest.$ac_ext <<_ACEOF
3172/* end confdefs.h.  */
3173
3174int
3175main ()
3176{
3177int i=0; i++;
3178  ;
3179  return 0;
3180}
3181_ACEOF
3182rm -f conftest.$ac_objext conftest$ac_exeext
3183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3184  (eval $ac_link) 2>conftest.er1
3185  ac_status=$?
3186  grep -v '^ *+' conftest.er1 >conftest.err
3187  rm -f conftest.er1
3188  cat conftest.err >&5
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); } &&
3191         { ac_try='test -z "$ac_c_werror_flag"
3192                         || test ! -s conftest.err'
3193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194  (eval $ac_try) 2>&5
3195  ac_status=$?
3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197  (exit $ac_status); }; } &&
3198         { ac_try='test -s conftest$ac_exeext'
3199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200  (eval $ac_try) 2>&5
3201  ac_status=$?
3202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203  (exit $ac_status); }; }; then
3204  :
3205else
3206  echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
3209CFLAGS=
3210fi
3211rm -f conftest.err conftest.$ac_objext \
3212      conftest$ac_exeext conftest.$ac_ext
3213  if test -z "$CFLAGS"; then
3214    { 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
3215echo "$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;}
3216  fi
3217fi
3218
3219{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3220echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3221
3222
3223if test x"$MPICC" = x; then :; else
3224  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3225echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3226  CC="$MPICC"
3227fi
3228
3229# Correct the LD variable if we are using the MS or Intel-windows compiler
3230case "$CC" in
3231  clang* ) ;;
3232  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3233    case $build in
3234  *-mingw*)
3235    if test "${LD+set}" = set; then :; else
3236      LD=link
3237    fi
3238    ;;
3239 esac
3240 case $enable_doscompile in
3241   msvc)
3242     if test "x${LD+set}" = xset; then :; else
3243       LD=link
3244     fi
3245     ;;
3246 esac
3247
3248    ;;
3249esac
3250
3251# check whether to add flags for static linking against standard libraries to LDFLAGS
3252if test x$use_static_standardlibs != xno ; then
3253  case $build in
3254    *-mingw*)
3255      static_standardlib_flag=-static
3256      ;;
3257    *)
3258      static_standardlib_flag=-static-libgcc
3259      ;;
3260  esac
3261  case " $LDFLAGS " in
3262    *" $static_standardlib_flag "* ) ;;
3263    *)
3264    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
3265echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
3266    coin_save_LDFLAGS="$LDFLAGS"
3267    LDFLAGS="$LDFLAGS $static_standardlib_flag"
3268    cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h.  */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h.  */
3274
3275int
3276main ()
3277{
3278int i=0;
3279  ;
3280  return 0;
3281}
3282_ACEOF
3283rm -f conftest.$ac_objext conftest$ac_exeext
3284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3285  (eval $ac_link) 2>conftest.er1
3286  ac_status=$?
3287  grep -v '^ *+' conftest.er1 >conftest.err
3288  rm -f conftest.er1
3289  cat conftest.err >&5
3290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); } &&
3292         { ac_try='test -z "$ac_c_werror_flag"
3293                         || test ! -s conftest.err'
3294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295  (eval $ac_try) 2>&5
3296  ac_status=$?
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); }; } &&
3299         { ac_try='test -s conftest$ac_exeext'
3300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301  (eval $ac_try) 2>&5
3302  ac_status=$?
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); }; }; then
3305  echo "$as_me:$LINENO: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
3307else
3308  echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
3311echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6
3313       LDFLAGS="$coin_save_LDFLAGS"
3314       if test $use_static_standardlibs = yes ; then
3315         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
3316echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
3317   { (exit 1); exit 1; }; }
3318       fi
3319
3320fi
3321rm -f conftest.err conftest.$ac_objext \
3322      conftest$ac_exeext conftest.$ac_ext
3323    ;;
3324  esac
3325fi
3326
3327ac_ext=c
3328ac_cpp='$CPP $CPPFLAGS'
3329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
3333
3334
3335# Get the name of the Fortran compiler and appropriate compiler options
3336case $build in
3337  *-cygwin* | *-mingw*)
3338     if test "$enable_doscompile" = msvc ; then
3339       coin_f77_comps="ifort fl32 compile_f2c"
3340     else
3341       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3342     fi ;;
3343  *-*-solaris*)
3344     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3345  *-linux-gnu*)
3346     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3347  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3348 esac
3349
3350
3351
3352
3353
3354
3355
3356ac_ext=f
3357ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3358ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3360
3361
3362
3363
3364
3365
3366coin_has_f77=yes
3367
3368save_fflags="$FFLAGS"
3369
3370# We delete the cached value, since the test might not have been
3371# performed with our choice of compilers earlier
3372$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3373
3374# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3375# coin_f77_comps to see if there's a program that matches one of the names.
3376# If there's no such program, F77 = unavailable. If we match the name,
3377# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3378# compiler.
3379# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3380
3381
3382{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3383echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3384if test -n "$ac_tool_prefix"; then
3385  for ac_prog in $coin_f77_comps
3386  do
3387    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3388set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3389echo "$as_me:$LINENO: checking for $ac_word" >&5
3390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3391if test "${ac_cv_prog_F77+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  if test -n "$F77"; then
3395  ac_cv_prog_F77="$F77" # Let the user override the test.
3396else
3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398for as_dir in $PATH
3399do
3400  IFS=$as_save_IFS
3401  test -z "$as_dir" && as_dir=.
3402  for ac_exec_ext in '' $ac_executable_extensions; do
3403  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406    break 2
3407  fi
3408done
3409done
3410
3411fi
3412fi
3413F77=$ac_cv_prog_F77
3414if test -n "$F77"; then
3415  echo "$as_me:$LINENO: result: $F77" >&5
3416echo "${ECHO_T}$F77" >&6
3417else
3418  echo "$as_me:$LINENO: result: no" >&5
3419echo "${ECHO_T}no" >&6
3420fi
3421
3422    test -n "$F77" && break
3423  done
3424fi
3425if test -z "$F77"; then
3426  ac_ct_F77=$F77
3427  for ac_prog in $coin_f77_comps
3428do
3429  # Extract the first word of "$ac_prog", so it can be a program name with args.
3430set dummy $ac_prog; ac_word=$2
3431echo "$as_me:$LINENO: checking for $ac_word" >&5
3432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3434  echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436  if test -n "$ac_ct_F77"; then
3437  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442  IFS=$as_save_IFS
3443  test -z "$as_dir" && as_dir=.
3444  for ac_exec_ext in '' $ac_executable_extensions; do
3445  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446    ac_cv_prog_ac_ct_F77="$ac_prog"
3447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3448    break 2
3449  fi
3450done
3451done
3452
3453fi
3454fi
3455ac_ct_F77=$ac_cv_prog_ac_ct_F77
3456if test -n "$ac_ct_F77"; then
3457  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3458echo "${ECHO_T}$ac_ct_F77" >&6
3459else
3460  echo "$as_me:$LINENO: result: no" >&5
3461echo "${ECHO_T}no" >&6
3462fi
3463
3464  test -n "$ac_ct_F77" && break
3465done
3466test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3467
3468  F77=$ac_ct_F77
3469fi
3470
3471
3472if test "$F77" != "unavailable" ; then
3473  ac_ext=f
3474ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3475ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3477if test -n "$ac_tool_prefix"; then
3478  for ac_prog in $coin_f77_comps
3479  do
3480    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3481set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3482echo "$as_me:$LINENO: checking for $ac_word" >&5
3483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3484if test "${ac_cv_prog_F77+set}" = set; then
3485  echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487  if test -n "$F77"; then
3488  ac_cv_prog_F77="$F77" # Let the user override the test.
3489else
3490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491for as_dir in $PATH
3492do
3493  IFS=$as_save_IFS
3494  test -z "$as_dir" && as_dir=.
3495  for ac_exec_ext in '' $ac_executable_extensions; do
3496  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3497    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3498    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499    break 2
3500  fi
3501done
3502done
3503
3504fi
3505fi
3506F77=$ac_cv_prog_F77
3507if test -n "$F77"; then
3508  echo "$as_me:$LINENO: result: $F77" >&5
3509echo "${ECHO_T}$F77" >&6
3510else
3511  echo "$as_me:$LINENO: result: no" >&5
3512echo "${ECHO_T}no" >&6
3513fi
3514
3515    test -n "$F77" && break
3516  done
3517fi
3518if test -z "$F77"; then
3519  ac_ct_F77=$F77
3520  for ac_prog in $coin_f77_comps
3521do
3522  # Extract the first word of "$ac_prog", so it can be a program name with args.
3523set dummy $ac_prog; ac_word=$2
3524echo "$as_me:$LINENO: checking for $ac_word" >&5
3525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3527  echo $ECHO_N "(cached) $ECHO_C" >&6
3528else
3529  if test -n "$ac_ct_F77"; then
3530  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3531else
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535  IFS=$as_save_IFS
3536  test -z "$as_dir" && as_dir=.
3537  for ac_exec_ext in '' $ac_executable_extensions; do
3538  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539    ac_cv_prog_ac_ct_F77="$ac_prog"
3540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541    break 2
3542  fi
3543done
3544done
3545
3546fi
3547fi
3548ac_ct_F77=$ac_cv_prog_ac_ct_F77
3549if test -n "$ac_ct_F77"; then
3550  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3551echo "${ECHO_T}$ac_ct_F77" >&6
3552else
3553  echo "$as_me:$LINENO: result: no" >&5
3554echo "${ECHO_T}no" >&6
3555fi
3556
3557  test -n "$ac_ct_F77" && break
3558done
3559
3560  F77=$ac_ct_F77
3561fi
3562
3563
3564# Provide some information about the compiler.
3565echo "$as_me:3565:" \
3566     "checking for Fortran 77 compiler version" >&5
3567ac_compiler=`set X $ac_compile; echo $2`
3568{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3569  (eval $ac_compiler --version </dev/null >&5) 2>&5
3570  ac_status=$?
3571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); }
3573{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3574  (eval $ac_compiler -v </dev/null >&5) 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); }
3578{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3579  (eval $ac_compiler -V </dev/null >&5) 2>&5
3580  ac_status=$?
3581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582  (exit $ac_status); }
3583rm -f a.out
3584
3585# If we don't use `.F' as extension, the preprocessor is not run on the
3586# input file.  (Note that this only needs to work for GNU compilers.)
3587ac_save_ext=$ac_ext
3588ac_ext=F
3589echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3590echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3591if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3592  echo $ECHO_N "(cached) $ECHO_C" >&6
3593else
3594  cat >conftest.$ac_ext <<_ACEOF
3595      program main
3596#ifndef __GNUC__
3597       choke me
3598#endif
3599
3600      end
3601_ACEOF
3602rm -f conftest.$ac_objext
3603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604  (eval $ac_compile) 2>conftest.er1
3605  ac_status=$?
3606  grep -v '^ *+' conftest.er1 >conftest.err
3607  rm -f conftest.er1
3608  cat conftest.err >&5
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } &&
3611         { ac_try='test -z "$ac_f77_werror_flag"
3612                         || test ! -s conftest.err'
3613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614  (eval $ac_try) 2>&5
3615  ac_status=$?
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); }; } &&
3618         { ac_try='test -s conftest.$ac_objext'
3619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620  (eval $ac_try) 2>&5
3621  ac_status=$?
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); }; }; then
3624  ac_compiler_gnu=yes
3625else
3626  echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629ac_compiler_gnu=no
3630fi
3631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3633
3634fi
3635echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3636echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3637ac_ext=$ac_save_ext
3638ac_test_FFLAGS=${FFLAGS+set}
3639ac_save_FFLAGS=$FFLAGS
3640FFLAGS=
3641echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3642echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3643if test "${ac_cv_prog_f77_g+set}" = set; then
3644  echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
3646  FFLAGS=-g
3647cat >conftest.$ac_ext <<_ACEOF
3648      program main
3649
3650      end
3651_ACEOF
3652rm -f conftest.$ac_objext
3653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654  (eval $ac_compile) 2>conftest.er1
3655  ac_status=$?
3656  grep -v '^ *+' conftest.er1 >conftest.err
3657  rm -f conftest.er1
3658  cat conftest.err >&5
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); } &&
3661         { ac_try='test -z "$ac_f77_werror_flag"
3662                         || test ! -s conftest.err'
3663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664  (eval $ac_try) 2>&5
3665  ac_status=$?
3666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667  (exit $ac_status); }; } &&
3668         { ac_try='test -s conftest.$ac_objext'
3669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670  (eval $ac_try) 2>&5
3671  ac_status=$?
3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673  (exit $ac_status); }; }; then
3674  ac_cv_prog_f77_g=yes
3675else
3676  echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679ac_cv_prog_f77_g=no
3680fi
3681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3682
3683fi
3684echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3685echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3686if test "$ac_test_FFLAGS" = set; then
3687  FFLAGS=$ac_save_FFLAGS
3688elif test $ac_cv_prog_f77_g = yes; then
3689  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3690    FFLAGS="-g -O2"
3691  else
3692    FFLAGS="-g"
3693  fi
3694else
3695  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3696    FFLAGS="-O2"
3697  else
3698    FFLAGS=
3699  fi
3700fi
3701
3702G77=`test $ac_compiler_gnu = yes && echo yes`
3703ac_ext=f
3704ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3705ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3707
3708else
3709  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3710echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3711fi
3712
3713FFLAGS="$save_fflags"
3714
3715# Check if a project specific FFLAGS variable has been set
3716if test x$COIN_PRJCT != x; then
3717  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3718  if test x$coin_tmp = xset; then
3719    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3720  fi
3721fi
3722
3723if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3724
3725  coin_add_fflags=
3726  coin_opt_fflags=
3727  coin_dbg_fflags=
3728  coin_warn_fflags=
3729
3730  if test "$G77" = "yes"; then
3731    coin_opt_fflags="-O3"
3732    coin_add_fflags="-pipe"
3733    coin_dbg_fflags="-g -O0"
3734    case $enable_doscompile in
3735      mingw)
3736        FFLAGS="-mno-cygwin"
3737        cat >conftest.$ac_ext <<_ACEOF
3738      program main
3739      write(*,*) 'Hello world'
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  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3765else
3766  echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769fi
3770rm -f conftest.err conftest.$ac_objext \
3771      conftest$ac_exeext conftest.$ac_ext
3772        FFLAGS=
3773      ;;
3774    esac
3775  else
3776    case $build in
3777      *-cygwin* | *-mingw*)
3778        case $F77 in
3779          ifort* | */ifort* | IFORT* | */IFORT* )
3780            coin_opt_fflags='-MT -O3'
3781            coin_add_fflags='-fpp -nologo'
3782            coin_dbg_fflags='-MTd -debug'
3783          ;;
3784          compile_f2c*)
3785            coin_opt_fflags='-MT -O2'
3786            coin_add_fflags='-nologo -wd4996'
3787            coin_dbg_fflags='-MTd'
3788          ;;
3789        esac
3790        ;;
3791      *-linux-*)
3792        case $F77 in
3793          ifc* | */ifc* | ifort* | */ifort*)
3794            coin_opt_fflags="-O3 -ip"
3795            coin_add_fflags="-cm -w90 -w95"
3796            coin_dbg_fflags="-g -CA -CB -CS"
3797            # Check if -i_dynamic is necessary (for new glibc library)
3798            FFLAGS=
3799            cat >conftest.$ac_ext <<_ACEOF
3800      program main
3801      write(*,*) 'Hello world'
3802      end
3803_ACEOF
3804rm -f conftest.$ac_objext conftest$ac_exeext
3805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3806  (eval $ac_link) 2>conftest.er1
3807  ac_status=$?
3808  grep -v '^ *+' conftest.er1 >conftest.err
3809  rm -f conftest.er1
3810  cat conftest.err >&5
3811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812  (exit $ac_status); } &&
3813         { ac_try='test -z "$ac_f77_werror_flag"
3814                         || test ! -s conftest.err'
3815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816  (eval $ac_try) 2>&5
3817  ac_status=$?
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); }; } &&
3820         { ac_try='test -s conftest$ac_exeext'
3821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822  (eval $ac_try) 2>&5
3823  ac_status=$?
3824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825  (exit $ac_status); }; }; then
3826  :
3827else
3828  echo "$as_me: failed program was:" >&5
3829sed 's/^/| /' conftest.$ac_ext >&5
3830
3831coin_add_fflags="-i_dynamic $coin_add_fflags"
3832fi
3833rm -f conftest.err conftest.$ac_objext \
3834      conftest$ac_exeext conftest.$ac_ext
3835            ;;
3836          pgf77* | */pgf77* | pgf90* | */pgf90*)
3837            coin_opt_fflags="-fast"
3838            coin_add_fflags="-Kieee -pc 64"
3839            coin_dbg_fflags="-g"
3840          ;;
3841        esac
3842        ;;
3843      *-ibm-*)
3844        case "$F77" in
3845          xlf* | */xlf* | mpxlf* | */mpxlf* )
3846            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3847            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3848            coin_dbg_fflags="-g -C"
3849            ;;
3850        esac
3851        ;;
3852      *-hp-*)
3853        coin_opt_fflags="+O3"
3854        coin_add_fflags="+U77"
3855        coin_dbg_fflags="-C -g"
3856        ;;
3857      *-*-solaris*)
3858        coin_opt_fflags="-O4"
3859        coin_dbg_fflags="-g"
3860        ;;
3861      *-sgi-*)
3862        coin_opt_fflags="-O5 -OPT:Olimit=0"
3863        coin_dbg_fflags="-g"
3864        ;;
3865    esac
3866  fi
3867
3868  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3869    coin_dbg_fflags="-g"
3870  fi
3871
3872  if test -z "$coin_opt_fflags"; then
3873    # Try if -O option works if nothing else is set
3874    FFLAGS=-O
3875    cat >conftest.$ac_ext <<_ACEOF
3876      program main
3877      integer i
3878      end
3879_ACEOF
3880rm -f conftest.$ac_objext conftest$ac_exeext
3881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3882  (eval $ac_link) 2>conftest.er1
3883  ac_status=$?
3884  grep -v '^ *+' conftest.er1 >conftest.err
3885  rm -f conftest.er1
3886  cat conftest.err >&5
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); } &&
3889         { ac_try='test -z "$ac_f77_werror_flag"
3890                         || test ! -s conftest.err'
3891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892  (eval $ac_try) 2>&5
3893  ac_status=$?
3894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895  (exit $ac_status); }; } &&
3896         { ac_try='test -s conftest$ac_exeext'
3897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898  (eval $ac_try) 2>&5
3899  ac_status=$?
3900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901  (exit $ac_status); }; }; then
3902  coin_opt_fflags="-O"
3903else
3904  echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
3907fi
3908rm -f conftest.err conftest.$ac_objext \
3909      conftest$ac_exeext conftest.$ac_ext
3910  fi
3911
3912  # if PM doesn't want the warning messages, take them out
3913  if test x"$coin_skip_warn_fflags" = xyes; then
3914    coin_warn_fflags=
3915  fi
3916
3917  if test x${DBG_FFLAGS+set} != xset; then
3918    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3919  fi
3920  if test x${OPT_FFLAGS+set} != xset; then
3921    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3922  fi
3923
3924  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3925  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3926
3927  if test "$coin_debug_compile" = "true"; then
3928    FFLAGS="$DBG_FFLAGS"
3929  else
3930    FFLAGS="$OPT_FFLAGS"
3931  fi
3932
3933else
3934  FFLAGS="$FFLAGS $ADD_FFLAGS"
3935  if test x${DBG_FFLAGS+set} != xset; then
3936    DBG_FFLAGS="$FFLAGS"
3937  fi
3938  if test x${OPT_FFLAGS+set} != xset; then
3939    OPT_FFLAGS="$FFLAGS"
3940  fi
3941fi
3942
3943# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3944case "$FFLAGS" in
3945  *-mno-cygwin*)
3946    if test x${CPPFLAGS+set} != xset ; then
3947      CPPFLAGS="-mno-cygwin"
3948    else
3949      case "$CPPFLAGS" in
3950        *-mno-cygwin*)
3951          ;;
3952        *)
3953          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3954          ;;
3955      esac
3956    fi ;;
3957esac
3958
3959# Try if FFLAGS works
3960if test "$F77" != "unavailable" ; then
3961  cat >conftest.$ac_ext <<_ACEOF
3962      program main
3963      integer i
3964      end
3965_ACEOF
3966rm -f conftest.$ac_objext conftest$ac_exeext
3967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968  (eval $ac_link) 2>conftest.er1
3969  ac_status=$?
3970  grep -v '^ *+' conftest.er1 >conftest.err
3971  rm -f conftest.er1
3972  cat conftest.err >&5
3973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974  (exit $ac_status); } &&
3975         { ac_try='test -z "$ac_f77_werror_flag"
3976                         || test ! -s conftest.err'
3977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978  (eval $ac_try) 2>&5
3979  ac_status=$?
3980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981  (exit $ac_status); }; } &&
3982         { ac_try='test -s conftest$ac_exeext'
3983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984  (eval $ac_try) 2>&5
3985  ac_status=$?
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); }; }; then
3988  :
3989else
3990  echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
3992
3993FFLAGS=
3994fi
3995rm -f conftest.err conftest.$ac_objext \
3996      conftest$ac_exeext conftest.$ac_ext
3997  if test -z "$FFLAGS"; then
3998    { 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
3999echo "$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;}
4000    FFLAGS='-O'
4001    cat >conftest.$ac_ext <<_ACEOF
4002      program main
4003      integer i
4004      end
4005_ACEOF
4006rm -f conftest.$ac_objext conftest$ac_exeext
4007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008  (eval $ac_link) 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015         { ac_try='test -z "$ac_f77_werror_flag"
4016                         || test ! -s conftest.err'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; } &&
4022         { ac_try='test -s conftest$ac_exeext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  :
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033FFLAGS=
4034fi
4035rm -f conftest.err conftest.$ac_objext \
4036      conftest$ac_exeext conftest.$ac_ext
4037    if test -z "$FFLAGS"; then
4038      { 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
4039echo "$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;}
4040    fi
4041  fi
4042fi
4043
4044{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4045echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4046
4047
4048if test x"$MPIF77" = x; then :; else
4049  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4050echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4051  F77="$MPIF77"
4052fi
4053
4054# correct the LD variable if we use the intel fortran compiler in windows
4055case "$F77" in
4056  ifort* | */ifort* | IFORT* | */IFORT*)
4057    case $build in
4058  *-mingw*)
4059    if test "${LD+set}" = set; then :; else
4060      LD=link
4061    fi
4062    ;;
4063 esac
4064 case $enable_doscompile in
4065   msvc)
4066     if test "x${LD+set}" = xset; then :; else
4067       LD=link
4068     fi
4069     ;;
4070 esac
4071
4072    ;;
4073esac
4074
4075# check whether to add flag for static linking against standard libraries to LDFLAGS
4076if test x$use_static_standardlibs != xno ; then
4077  case $build in
4078    *-mingw*)
4079      static_standardlib_flag=-static
4080      ;;
4081    *)
4082      static_standardlib_flag=-static-libgfortran
4083      ;;
4084  esac
4085  case " $LDFLAGS " in
4086    *" $static_standardlib_flag "* ) ;;
4087    *)
4088    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
4089echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
4090    coin_save_LDFLAGS="$LDFLAGS"
4091    LDFLAGS="$LDFLAGS $static_standardlib_flag"
4092    cat >conftest.$ac_ext <<_ACEOF
4093      program main
4094      integer i
4095      end
4096_ACEOF
4097rm -f conftest.$ac_objext conftest$ac_exeext
4098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4099  (eval $ac_link) 2>conftest.er1
4100  ac_status=$?
4101  grep -v '^ *+' conftest.er1 >conftest.err
4102  rm -f conftest.er1
4103  cat conftest.err >&5
4104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); } &&
4106         { ac_try='test -z "$ac_f77_werror_flag"
4107                         || test ! -s conftest.err'
4108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109  (eval $ac_try) 2>&5
4110  ac_status=$?
4111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112  (exit $ac_status); }; } &&
4113         { ac_try='test -s conftest$ac_exeext'
4114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115  (eval $ac_try) 2>&5
4116  ac_status=$?
4117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118  (exit $ac_status); }; }; then
4119  echo "$as_me:$LINENO: result: yes" >&5
4120echo "${ECHO_T}yes" >&6
4121else
4122  echo "$as_me: failed program was:" >&5
4123sed 's/^/| /' conftest.$ac_ext >&5
4124
4125echo "$as_me:$LINENO: result: no" >&5
4126echo "${ECHO_T}no" >&6
4127       LDFLAGS="$coin_save_LDFLAGS"
4128       if test $use_static_standardlibs = yes ; then
4129         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
4130echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
4131   { (exit 1); exit 1; }; }
4132       fi
4133
4134fi
4135rm -f conftest.err conftest.$ac_objext \
4136      conftest$ac_exeext conftest.$ac_ext
4137    ;;
4138  esac
4139fi
4140
4141ac_ext=c
4142ac_cpp='$CPP $CPPFLAGS'
4143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147
4148
4149# Find out how to call Fortran from C and determine Fortran runtime libraries
4150
4151# get FLIBS
4152ac_ext=f
4153ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4154ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4156echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4157echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4158if test "${ac_cv_prog_f77_v+set}" = set; then
4159  echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161  cat >conftest.$ac_ext <<_ACEOF
4162      program main
4163
4164      end
4165_ACEOF
4166rm -f conftest.$ac_objext
4167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4168  (eval $ac_compile) 2>conftest.er1
4169  ac_status=$?
4170  grep -v '^ *+' conftest.er1 >conftest.err
4171  rm -f conftest.er1
4172  cat conftest.err >&5
4173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174  (exit $ac_status); } &&
4175         { ac_try='test -z "$ac_f77_werror_flag"
4176                         || test ! -s conftest.err'
4177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178  (eval $ac_try) 2>&5
4179  ac_status=$?
4180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181  (exit $ac_status); }; } &&
4182         { ac_try='test -s conftest.$ac_objext'
4183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184  (eval $ac_try) 2>&5
4185  ac_status=$?
4186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187  (exit $ac_status); }; }; then
4188  ac_cv_prog_f77_v=
4189# Try some options frequently used verbose output
4190for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4191  cat >conftest.$ac_ext <<_ACEOF
4192      program main
4193
4194      end
4195_ACEOF
4196
4197# Compile and link our simple test program by passing a flag (argument
4198# 1 to this macro) to the Fortran compiler in order to get
4199# "verbose" output that we can then parse for the Fortran linker
4200# flags.
4201ac_save_FFLAGS=$FFLAGS
4202FFLAGS="$FFLAGS $ac_verb"
4203(eval echo $as_me:4203: \"$ac_link\") >&5
4204ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4205echo "$ac_f77_v_output" >&5
4206FFLAGS=$ac_save_FFLAGS
4207
4208rm -f conftest*
4209
4210# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4211# /foo, /bar, and /baz are search directories for the Fortran linker.
4212# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4213ac_f77_v_output="`echo $ac_f77_v_output |
4214        grep 'LPATH is:' |
4215        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4216
4217case $ac_f77_v_output in
4218  # If we are using xlf then replace all the commas with spaces.
4219  *xlfentry*)
4220    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4221
4222  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4223  # $LIBS confuse us, and the libraries appear later in the output anyway).
4224  *mGLOB_options_string*)
4225    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4226
4227  # If we are using Cray Fortran then delete quotes.
4228  # Use "\"" instead of '"' for font-lock-mode.
4229  # FIXME: a more general fix for quoted arguments with spaces?
4230  *cft90*)
4231    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4232esac
4233
4234
4235  # look for -l* and *.a constructs in the output
4236  for ac_arg in $ac_f77_v_output; do
4237     case $ac_arg in
4238        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4239          ac_cv_prog_f77_v=$ac_verb
4240          break 2 ;;
4241     esac
4242  done
4243done
4244if test -z "$ac_cv_prog_f77_v"; then
4245   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4246echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4247fi
4248else
4249  echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4253echo "$as_me: WARNING: compilation failed" >&2;}
4254fi
4255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4256
4257fi
4258echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4259echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4260echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4261echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4262if test "${ac_cv_f77_libs+set}" = set; then
4263  echo $ECHO_N "(cached) $ECHO_C" >&6
4264else
4265  if test "x$FLIBS" != "x"; then
4266  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4267else
4268
4269cat >conftest.$ac_ext <<_ACEOF
4270      program main
4271
4272      end
4273_ACEOF
4274
4275# Compile and link our simple test program by passing a flag (argument
4276# 1 to this macro) to the Fortran compiler in order to get
4277# "verbose" output that we can then parse for the Fortran linker
4278# flags.
4279ac_save_FFLAGS=$FFLAGS
4280FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4281(eval echo $as_me:4281: \"$ac_link\") >&5
4282ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4283echo "$ac_f77_v_output" >&5
4284FFLAGS=$ac_save_FFLAGS
4285
4286rm -f conftest*
4287
4288# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4289# /foo, /bar, and /baz are search directories for the Fortran linker.
4290# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4291ac_f77_v_output="`echo $ac_f77_v_output |
4292        grep 'LPATH is:' |
4293        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4294
4295case $ac_f77_v_output in
4296  # If we are using xlf then replace all the commas with spaces.
4297  *xlfentry*)
4298    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4299
4300  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4301  # $LIBS confuse us, and the libraries appear later in the output anyway).
4302  *mGLOB_options_string*)
4303    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4304
4305  # If we are using Cray Fortran then delete quotes.
4306  # Use "\"" instead of '"' for font-lock-mode.
4307  # FIXME: a more general fix for quoted arguments with spaces?
4308  *cft90*)
4309    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4310esac
4311
4312
4313
4314ac_cv_f77_libs=
4315
4316# Save positional arguments (if any)
4317ac_save_positional="$@"
4318
4319set X $ac_f77_v_output
4320while test $# != 1; do
4321  shift
4322  ac_arg=$1
4323  case $ac_arg in
4324        [\\/]*.a | ?:[\\/]*.a)
4325            ac_exists=false
4326  for ac_i in $ac_cv_f77_libs; do
4327    if test x"$ac_arg" = x"$ac_i"; then
4328      ac_exists=true
4329      break
4330    fi
4331  done
4332
4333  if test x"$ac_exists" = xtrue; then
4334  :
4335else
4336  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4337fi
4338
4339          ;;
4340        -bI:*)
4341            ac_exists=false
4342  for ac_i in $ac_cv_f77_libs; do
4343    if test x"$ac_arg" = x"$ac_i"; then
4344      ac_exists=true
4345      break
4346    fi
4347  done
4348
4349  if test x"$ac_exists" = xtrue; then
4350  :
4351else
4352  if test "$ac_compiler_gnu" = yes; then
4353  for ac_link_opt in $ac_arg; do
4354    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4355  done
4356else
4357  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4358fi
4359fi
4360
4361          ;;
4362          # Ignore these flags.
4363        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4364          ;;
4365        -lkernel32)
4366          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4367          ;;
4368        -[LRuY])
4369          # These flags, when seen by themselves, take an argument.
4370          # We remove the space between option and argument and re-iterate
4371          # unless we find an empty arg or a new option (starting with -)
4372          case $2 in
4373             "" | -*);;
4374             *)
4375                ac_arg="$ac_arg$2"
4376                shift; shift
4377                set X $ac_arg "$@"
4378                ;;
4379          esac
4380          ;;
4381        -YP,*)
4382          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4383              ac_exists=false
4384  for ac_i in $ac_cv_f77_libs; do
4385    if test x"$ac_j" = x"$ac_i"; then
4386      ac_exists=true
4387      break
4388    fi
4389  done
4390
4391  if test x"$ac_exists" = xtrue; then
4392  :
4393else
4394  ac_arg="$ac_arg $ac_j"
4395                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4396fi
4397
4398          done
4399          ;;
4400        -[lLR]*)
4401            ac_exists=false
4402  for ac_i in $ac_cv_f77_libs; do
4403    if test x"$ac_arg" = x"$ac_i"; then
4404      ac_exists=true
4405      break
4406    fi
4407  done
4408
4409  if test x"$ac_exists" = xtrue; then
4410  :
4411else
4412  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4413fi
4414
4415          ;;
4416          # Ignore everything else.
4417  esac
4418done
4419# restore positional arguments
4420set X $ac_save_positional; shift
4421
4422# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4423# then we insist that the "run path" must be an absolute path (i.e. it
4424# must begin with a "/").
4425case `(uname -sr) 2>/dev/null` in
4426   "SunOS 5"*)
4427      ac_ld_run_path=`echo $ac_f77_v_output |
4428                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4429      test "x$ac_ld_run_path" != x &&
4430        if test "$ac_compiler_gnu" = yes; then
4431  for ac_link_opt in $ac_ld_run_path; do
4432    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4433  done
4434else
4435  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4436fi
4437      ;;
4438esac
4439fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4440
4441fi
4442echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4443echo "${ECHO_T}$ac_cv_f77_libs" >&6
4444FLIBS="$ac_cv_f77_libs"
4445
4446
4447ac_ext=c
4448ac_cpp='$CPP $CPPFLAGS'
4449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452
4453orig_FLIBS="$FLIBS"
4454
4455# If FLIBS has been set by the user, we just restore its value here
4456if test x"$save_FLIBS" != x; then
4457  FLIBS="$save_FLIBS"
4458else
4459  # This is to correct a missing exclusion in autoconf 2.59
4460  if test x"$FLIBS" != x; then
4461    my_flibs=
4462    for flag in $FLIBS; do
4463      case $flag in
4464        -lcrt*.o) ;;
4465        -lcygwin) ;;
4466               *) my_flibs="$my_flibs $flag" ;;
4467      esac
4468    done
4469    FLIBS="$my_flibs"
4470  fi
4471
4472  case $build in
4473  # The following is a fix to define FLIBS for ifort on Windows
4474  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4475  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4476  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4477  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4478  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4479     *-cygwin* | *-mingw*)
4480       case "$F77" in
4481#         ifort* | */ifort* | IFORT* | */IFORT*)
4482#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4483#           if "$coin_debug_compile" = true ; then
4484#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4485#           else
4486#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4487#           fi
4488#           ;;
4489         compile_f2c*)
4490           FLIBS=`$F77 -FLIBS` ;;
4491       esac;;
4492     *-hp-*)
4493         FLIBS="$FLIBS -lm";;
4494     *-ibm-*)
4495         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4496     *-linux-*)
4497       case "$F77" in
4498         pgf77* | */pgf77* | pgf90* | */pgf90*)
4499# ask linker to go through the archives multiple times
4500# (the Fortran compiler seems to do that automatically...)
4501           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4502       esac
4503  esac
4504  ac_cv_f77_libs="$FLIBS"
4505fi
4506
4507if test "x$orig_FLIBS" != "x$FLIBS" ; then
4508  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4509echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4510fi
4511
4512ac_ext=f
4513ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4514ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4516
4517echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4518echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4519if test "${ac_cv_f77_dummy_main+set}" = set; then
4520  echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522  ac_f77_dm_save_LIBS=$LIBS
4523 LIBS="$LIBS $FLIBS"
4524 ac_fortran_dm_var=F77_DUMMY_MAIN
4525 ac_ext=c
4526ac_cpp='$CPP $CPPFLAGS'
4527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531 # First, try linking without a dummy main:
4532 cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h.  */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h.  */
4538
4539#ifdef F77_DUMMY_MAIN
4540
4541#  ifdef __cplusplus
4542     extern "C"
4543#  endif
4544   int F77_DUMMY_MAIN() { return 1; }
4545
4546#endif
4547int
4548main ()
4549{
4550
4551  ;
4552  return 0;
4553}
4554_ACEOF
4555rm -f conftest.$ac_objext conftest$ac_exeext
4556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557  (eval $ac_link) 2>conftest.er1
4558  ac_status=$?
4559  grep -v '^ *+' conftest.er1 >conftest.err
4560  rm -f conftest.er1
4561  cat conftest.err >&5
4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); } &&
4564         { ac_try='test -z "$ac_c_werror_flag"
4565                         || test ! -s conftest.err'
4566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567  (eval $ac_try) 2>&5
4568  ac_status=$?
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); }; } &&
4571         { ac_try='test -s conftest$ac_exeext'
4572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573  (eval $ac_try) 2>&5
4574  ac_status=$?
4575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576  (exit $ac_status); }; }; then
4577  ac_cv_fortran_dummy_main=none
4578else
4579  echo "$as_me: failed program was:" >&5
4580sed 's/^/| /' conftest.$ac_ext >&5
4581
4582ac_cv_fortran_dummy_main=unknown
4583fi
4584rm -f conftest.err conftest.$ac_objext \
4585      conftest$ac_exeext conftest.$ac_ext
4586
4587 if test $ac_cv_fortran_dummy_main = unknown; then
4588   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4589     cat >conftest.$ac_ext <<_ACEOF
4590/* confdefs.h.  */
4591_ACEOF
4592cat confdefs.h >>conftest.$ac_ext
4593cat >>conftest.$ac_ext <<_ACEOF
4594/* end confdefs.h.  */
4595#define $ac_fortran_dm_var $ac_func
4596#ifdef F77_DUMMY_MAIN
4597
4598#  ifdef __cplusplus
4599     extern "C"
4600#  endif
4601   int F77_DUMMY_MAIN() { return 1; }
4602
4603#endif
4604int
4605main ()
4606{
4607
4608  ;
4609  return 0;
4610}
4611_ACEOF
4612rm -f conftest.$ac_objext conftest$ac_exeext
4613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4614  (eval $ac_link) 2>conftest.er1
4615  ac_status=$?
4616  grep -v '^ *+' conftest.er1 >conftest.err
4617  rm -f conftest.er1
4618  cat conftest.err >&5
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); } &&
4621         { ac_try='test -z "$ac_c_werror_flag"
4622                         || test ! -s conftest.err'
4623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624  (eval $ac_try) 2>&5
4625  ac_status=$?
4626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627  (exit $ac_status); }; } &&
4628         { ac_try='test -s conftest$ac_exeext'
4629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630  (eval $ac_try) 2>&5
4631  ac_status=$?
4632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633  (exit $ac_status); }; }; then
4634  ac_cv_fortran_dummy_main=$ac_func; break
4635else
4636  echo "$as_me: failed program was:" >&5
4637sed 's/^/| /' conftest.$ac_ext >&5
4638
4639fi
4640rm -f conftest.err conftest.$ac_objext \
4641      conftest$ac_exeext conftest.$ac_ext
4642   done
4643 fi
4644 ac_ext=f
4645ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4646ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4648 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4649 rm -f conftest*
4650 LIBS=$ac_f77_dm_save_LIBS
4651
4652fi
4653echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4654echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4655F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4656if test "$F77_DUMMY_MAIN" != unknown; then
4657  if test $F77_DUMMY_MAIN != none; then
4658
4659cat >>confdefs.h <<_ACEOF
4660#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4661_ACEOF
4662
4663  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4664
4665cat >>confdefs.h <<\_ACEOF
4666#define FC_DUMMY_MAIN_EQ_F77 1
4667_ACEOF
4668
4669  fi
4670fi
4671else
4672  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4673See \`config.log' for more details." >&5
4674echo "$as_me: error: linking to Fortran libraries from C fails
4675See \`config.log' for more details." >&2;}
4676   { (exit 1); exit 1; }; }
4677fi
4678
4679
4680ac_ext=f
4681ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4682ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4684
4685ac_ext=f
4686ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4687ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4689echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4690echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4691if test "${ac_cv_f77_mangling+set}" = set; then
4692  echo $ECHO_N "(cached) $ECHO_C" >&6
4693else
4694  cat >conftest.$ac_ext <<_ACEOF
4695      subroutine foobar()
4696      return
4697      end
4698      subroutine foo_bar()
4699      return
4700      end
4701_ACEOF
4702rm -f conftest.$ac_objext
4703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704  (eval $ac_compile) 2>conftest.er1
4705  ac_status=$?
4706  grep -v '^ *+' conftest.er1 >conftest.err
4707  rm -f conftest.er1
4708  cat conftest.err >&5
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); } &&
4711         { ac_try='test -z "$ac_f77_werror_flag"
4712                         || test ! -s conftest.err'
4713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714  (eval $ac_try) 2>&5
4715  ac_status=$?
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); }; } &&
4718         { ac_try='test -s conftest.$ac_objext'
4719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720  (eval $ac_try) 2>&5
4721  ac_status=$?
4722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723  (exit $ac_status); }; }; then
4724  mv conftest.$ac_objext cfortran_test.$ac_objext
4725
4726  ac_save_LIBS=$LIBS
4727  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4728
4729  ac_ext=c
4730ac_cpp='$CPP $CPPFLAGS'
4731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734  ac_success=no
4735  for ac_foobar in foobar FOOBAR; do
4736    for ac_underscore in "" "_"; do
4737      ac_func="$ac_foobar$ac_underscore"
4738      cat >conftest.$ac_ext <<_ACEOF
4739/* confdefs.h.  */
4740_ACEOF
4741cat confdefs.h >>conftest.$ac_ext
4742cat >>conftest.$ac_ext <<_ACEOF
4743/* end confdefs.h.  */
4744
4745/* Override any gcc2 internal prototype to avoid an error.  */
4746#ifdef __cplusplus
4747extern "C"
4748#endif
4749/* We use char because int might match the return type of a gcc2
4750   builtin and then its argument prototype would still apply.  */
4751char $ac_func ();
4752#ifdef F77_DUMMY_MAIN
4753
4754#  ifdef __cplusplus
4755     extern "C"
4756#  endif
4757   int F77_DUMMY_MAIN() { return 1; }
4758
4759#endif
4760int
4761main ()
4762{
4763$ac_func ();
4764  ;
4765  return 0;
4766}
4767_ACEOF
4768rm -f conftest.$ac_objext conftest$ac_exeext
4769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770  (eval $ac_link) 2>conftest.er1
4771  ac_status=$?
4772  grep -v '^ *+' conftest.er1 >conftest.err
4773  rm -f conftest.er1
4774  cat conftest.err >&5
4775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776  (exit $ac_status); } &&
4777         { ac_try='test -z "$ac_c_werror_flag"
4778                         || test ! -s conftest.err'
4779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780  (eval $ac_try) 2>&5
4781  ac_status=$?
4782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783  (exit $ac_status); }; } &&
4784         { ac_try='test -s conftest$ac_exeext'
4785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786  (eval $ac_try) 2>&5
4787  ac_status=$?
4788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789  (exit $ac_status); }; }; then
4790  ac_success=yes; break 2
4791else
4792  echo "$as_me: failed program was:" >&5
4793sed 's/^/| /' conftest.$ac_ext >&5
4794
4795fi
4796rm -f conftest.err conftest.$ac_objext \
4797      conftest$ac_exeext conftest.$ac_ext
4798    done
4799  done
4800  ac_ext=f
4801ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4802ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4804
4805  if test "$ac_success" = "yes"; then
4806     case $ac_foobar in
4807        foobar)
4808           ac_case=lower
4809           ac_foo_bar=foo_bar
4810           ;;
4811        FOOBAR)
4812           ac_case=upper
4813           ac_foo_bar=FOO_BAR
4814           ;;
4815     esac
4816
4817     ac_ext=c
4818ac_cpp='$CPP $CPPFLAGS'
4819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822     ac_success_extra=no
4823     for ac_extra in "" "_"; do
4824        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4825        cat >conftest.$ac_ext <<_ACEOF
4826/* confdefs.h.  */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h.  */
4831
4832/* Override any gcc2 internal prototype to avoid an error.  */
4833#ifdef __cplusplus
4834extern "C"
4835#endif
4836/* We use char because int might match the return type of a gcc2
4837   builtin and then its argument prototype would still apply.  */
4838char $ac_func ();
4839#ifdef F77_DUMMY_MAIN
4840
4841#  ifdef __cplusplus
4842     extern "C"
4843#  endif
4844   int F77_DUMMY_MAIN() { return 1; }
4845
4846#endif
4847int
4848main ()
4849{
4850$ac_func ();
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855rm -f conftest.$ac_objext conftest$ac_exeext
4856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4857  (eval $ac_link) 2>conftest.er1
4858  ac_status=$?
4859  grep -v '^ *+' conftest.er1 >conftest.err
4860  rm -f conftest.er1
4861  cat conftest.err >&5
4862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863  (exit $ac_status); } &&
4864         { ac_try='test -z "$ac_c_werror_flag"
4865                         || test ! -s conftest.err'
4866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867  (eval $ac_try) 2>&5
4868  ac_status=$?
4869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870  (exit $ac_status); }; } &&
4871         { ac_try='test -s conftest$ac_exeext'
4872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873  (eval $ac_try) 2>&5
4874  ac_status=$?
4875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876  (exit $ac_status); }; }; then
4877  ac_success_extra=yes; break
4878else
4879  echo "$as_me: failed program was:" >&5
4880sed 's/^/| /' conftest.$ac_ext >&5
4881
4882fi
4883rm -f conftest.err conftest.$ac_objext \
4884      conftest$ac_exeext conftest.$ac_ext
4885     done
4886     ac_ext=f
4887ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4888ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4890
4891     if test "$ac_success_extra" = "yes"; then
4892        ac_cv_f77_mangling="$ac_case case"
4893        if test -z "$ac_underscore"; then
4894           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4895        else
4896           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4897        fi
4898        if test -z "$ac_extra"; then
4899           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4900        else
4901           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4902        fi
4903      else
4904        ac_cv_f77_mangling="unknown"
4905      fi
4906  else
4907     ac_cv_f77_mangling="unknown"
4908  fi
4909
4910  LIBS=$ac_save_LIBS
4911  rm -f cfortran_test* conftest*
4912else
4913  echo "$as_me: failed program was:" >&5
4914sed 's/^/| /' conftest.$ac_ext >&5
4915
4916{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4917See \`config.log' for more details." >&5
4918echo "$as_me: error: cannot compile a simple Fortran program
4919See \`config.log' for more details." >&2;}
4920   { (exit 1); exit 1; }; }
4921fi
4922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4923
4924fi
4925echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4926echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4927
4928ac_ext=f
4929ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4930ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4932
4933
4934ac_ext=f
4935ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4936ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4938
4939ac_ext=f
4940ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4941ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4943
4944
4945case $ac_cv_f77_mangling in
4946  "lower case, no underscore, no extra underscore")
4947          cat >>confdefs.h <<\_ACEOF
4948#define F77_FUNC(name,NAME) name
4949_ACEOF
4950
4951          cat >>confdefs.h <<\_ACEOF
4952#define F77_FUNC_(name,NAME) name
4953_ACEOF
4954 ;;
4955  "lower case, no underscore, extra underscore")
4956          cat >>confdefs.h <<\_ACEOF
4957#define F77_FUNC(name,NAME) name
4958_ACEOF
4959
4960          cat >>confdefs.h <<\_ACEOF
4961#define F77_FUNC_(name,NAME) name ## _
4962_ACEOF
4963 ;;
4964  "lower case, underscore, no extra underscore")
4965          cat >>confdefs.h <<\_ACEOF
4966#define F77_FUNC(name,NAME) name ## _
4967_ACEOF
4968
4969          cat >>confdefs.h <<\_ACEOF
4970#define F77_FUNC_(name,NAME) name ## _
4971_ACEOF
4972 ;;
4973  "lower case, underscore, extra underscore")
4974          cat >>confdefs.h <<\_ACEOF
4975#define F77_FUNC(name,NAME) name ## _
4976_ACEOF
4977
4978          cat >>confdefs.h <<\_ACEOF
4979#define F77_FUNC_(name,NAME) name ## __
4980_ACEOF
4981 ;;
4982  "upper case, no underscore, no extra underscore")
4983          cat >>confdefs.h <<\_ACEOF
4984#define F77_FUNC(name,NAME) NAME
4985_ACEOF
4986
4987          cat >>confdefs.h <<\_ACEOF
4988#define F77_FUNC_(name,NAME) NAME
4989_ACEOF
4990 ;;
4991  "upper case, no underscore, extra underscore")
4992          cat >>confdefs.h <<\_ACEOF
4993#define F77_FUNC(name,NAME) NAME
4994_ACEOF
4995
4996          cat >>confdefs.h <<\_ACEOF
4997#define F77_FUNC_(name,NAME) NAME ## _
4998_ACEOF
4999 ;;
5000  "upper case, underscore, no extra underscore")
5001          cat >>confdefs.h <<\_ACEOF
5002#define F77_FUNC(name,NAME) NAME ## _
5003_ACEOF
5004
5005          cat >>confdefs.h <<\_ACEOF
5006#define F77_FUNC_(name,NAME) NAME ## _
5007_ACEOF
5008 ;;
5009  "upper case, underscore, extra underscore")
5010          cat >>confdefs.h <<\_ACEOF
5011#define F77_FUNC(name,NAME) NAME ## _
5012_ACEOF
5013
5014          cat >>confdefs.h <<\_ACEOF
5015#define F77_FUNC_(name,NAME) NAME ## __
5016_ACEOF
5017 ;;
5018  *)
5019          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
5020echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5021          ;;
5022esac
5023
5024ac_ext=f
5025ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5026ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5027ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5028
5029ac_ext=c
5030ac_cpp='$CPP $CPPFLAGS'
5031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034
5035
5036
5037
5038# Add FLIBS to MUMPS_PCLIBS, so that they get into the .pc files
5039MUMPS_PCLIBS="$FLIBS"
5040
5041# We need to translate the result from autoconf to what MUMPS wants
5042case "$ac_cv_f77_mangling" in
5043  "lower case, no underscore, no extra underscore")
5044  ;;
5045  "lower case, underscore, no extra underscore")
5046  MY_DEFS="-DAdd_"
5047  ;;
5048  "lower case, no underscore, extra underscore")
5049  MY_DEFS="-DAdd_"
5050  ;;
5051  "lower case, underscore, extra underscore")
5052  MY_DEFS="-DAdd__"
5053  ;;
5054  "upper case, no underscore, no extra underscore")
5055  MY_DEFS="-DUPPER"
5056  ;;
5057  "upper case, no underscore, extra underscore")
5058  MY_DEFS="-DUPPER"
5059  ;;
5060  "upper case, underscore, no extra underscore")
5061  MY_DEFS="-DUPPER"
5062  ;;
5063  "upper case, underscore, extra underscore")
5064  MY_DEFS="-DUPPER"
5065  ;;
5066esac
5067
5068# Mumps can make use of pthreads
5069# check for pthread.h header file and library
5070# Check whether --enable-pthread-mumps or --disable-pthread-mumps was given.
5071if test "${enable_pthread_mumps+set}" = set; then
5072  enableval="$enable_pthread_mumps"
5073  enable_pthread_mumps=$enableval
5074else
5075  enable_pthread_mumps=yes
5076fi;
5077if test $enable_pthread_mumps = yes ; then
5078  ac_ext=c
5079ac_cpp='$CPP $CPPFLAGS'
5080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5084echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5085# On Suns, sometimes $CPP names a directory.
5086if test -n "$CPP" && test -d "$CPP"; then
5087  CPP=
5088fi
5089if test -z "$CPP"; then
5090  if test "${ac_cv_prog_CPP+set}" = set; then
5091  echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093      # Double quotes because CPP needs to be expanded
5094    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5095    do
5096      ac_preproc_ok=false
5097for ac_c_preproc_warn_flag in '' yes
5098do
5099  # Use a header file that comes with gcc, so configuring glibc
5100  # with a fresh cross-compiler works.
5101  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5102  # <limits.h> exists even on freestanding compilers.
5103  # On the NeXT, cc -E runs the code through the compiler's parser,
5104  # not just through cpp. "Syntax error" is here to catch this case.
5105  cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h.  */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h.  */
5111#ifdef __STDC__
5112# include <limits.h>
5113#else
5114# include <assert.h>
5115#endif
5116                     Syntax error
5117_ACEOF
5118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5119  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5120  ac_status=$?
5121  grep -v '^ *+' conftest.er1 >conftest.err
5122  rm -f conftest.er1
5123  cat conftest.err >&5
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); } >/dev/null; then
5126  if test -s conftest.err; then
5127    ac_cpp_err=$ac_c_preproc_warn_flag
5128    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5129  else
5130    ac_cpp_err=
5131  fi
5132else
5133  ac_cpp_err=yes
5134fi
5135if test -z "$ac_cpp_err"; then
5136  :
5137else
5138  echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141  # Broken: fails on valid input.
5142continue
5143fi
5144rm -f conftest.err conftest.$ac_ext
5145
5146  # OK, works on sane cases.  Now check whether non-existent headers
5147  # can be detected and how.
5148  cat >conftest.$ac_ext <<_ACEOF
5149/* confdefs.h.  */
5150_ACEOF
5151cat confdefs.h >>conftest.$ac_ext
5152cat >>conftest.$ac_ext <<_ACEOF
5153/* end confdefs.h.  */
5154#include <ac_nonexistent.h>
5155_ACEOF
5156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5157  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5158  ac_status=$?
5159  grep -v '^ *+' conftest.er1 >conftest.err
5160  rm -f conftest.er1
5161  cat conftest.err >&5
5162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163  (exit $ac_status); } >/dev/null; then
5164  if test -s conftest.err; then
5165    ac_cpp_err=$ac_c_preproc_warn_flag
5166    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5167  else
5168    ac_cpp_err=
5169  fi
5170else
5171  ac_cpp_err=yes
5172fi
5173if test -z "$ac_cpp_err"; then
5174  # Broken: success on invalid input.
5175continue
5176else
5177  echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
5180  # Passes both tests.
5181ac_preproc_ok=:
5182break
5183fi
5184rm -f conftest.err conftest.$ac_ext
5185
5186done
5187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188rm -f conftest.err conftest.$ac_ext
5189if $ac_preproc_ok; then
5190  break
5191fi
5192
5193    done
5194    ac_cv_prog_CPP=$CPP
5195
5196fi
5197  CPP=$ac_cv_prog_CPP
5198else
5199  ac_cv_prog_CPP=$CPP
5200fi
5201echo "$as_me:$LINENO: result: $CPP" >&5
5202echo "${ECHO_T}$CPP" >&6
5203ac_preproc_ok=false
5204for ac_c_preproc_warn_flag in '' yes
5205do
5206  # Use a header file that comes with gcc, so configuring glibc
5207  # with a fresh cross-compiler works.
5208  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5209  # <limits.h> exists even on freestanding compilers.
5210  # On the NeXT, cc -E runs the code through the compiler's parser,
5211  # not just through cpp. "Syntax error" is here to catch this case.
5212  cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h.  */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h.  */
5218#ifdef __STDC__
5219# include <limits.h>
5220#else
5221# include <assert.h>
5222#endif
5223                     Syntax error
5224_ACEOF
5225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5226  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5227  ac_status=$?
5228  grep -v '^ *+' conftest.er1 >conftest.err
5229  rm -f conftest.er1
5230  cat conftest.err >&5
5231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232  (exit $ac_status); } >/dev/null; then
5233  if test -s conftest.err; then
5234    ac_cpp_err=$ac_c_preproc_warn_flag
5235    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5236  else
5237    ac_cpp_err=
5238  fi
5239else
5240  ac_cpp_err=yes
5241fi
5242if test -z "$ac_cpp_err"; then
5243  :
5244else
5245  echo "$as_me: failed program was:" >&5
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
5248  # Broken: fails on valid input.
5249continue
5250fi
5251rm -f conftest.err conftest.$ac_ext
5252
5253  # OK, works on sane cases.  Now check whether non-existent headers
5254  # can be detected and how.
5255  cat >conftest.$ac_ext <<_ACEOF
5256/* confdefs.h.  */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h.  */
5261#include <ac_nonexistent.h>
5262_ACEOF
5263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5264  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5265  ac_status=$?
5266  grep -v '^ *+' conftest.er1 >conftest.err
5267  rm -f conftest.er1
5268  cat conftest.err >&5
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); } >/dev/null; then
5271  if test -s conftest.err; then
5272    ac_cpp_err=$ac_c_preproc_warn_flag
5273    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5274  else
5275    ac_cpp_err=
5276  fi
5277else
5278  ac_cpp_err=yes
5279fi
5280if test -z "$ac_cpp_err"; then
5281  # Broken: success on invalid input.
5282continue
5283else
5284  echo "$as_me: failed program was:" >&5
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
5287  # Passes both tests.
5288ac_preproc_ok=:
5289break
5290fi
5291rm -f conftest.err conftest.$ac_ext
5292
5293done
5294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5295rm -f conftest.err conftest.$ac_ext
5296if $ac_preproc_ok; then
5297  :
5298else
5299  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5300See \`config.log' for more details." >&5
5301echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5302See \`config.log' for more details." >&2;}
5303   { (exit 1); exit 1; }; }
5304fi
5305
5306ac_ext=c
5307ac_cpp='$CPP $CPPFLAGS'
5308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311
5312
5313echo "$as_me:$LINENO: checking for egrep" >&5
5314echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5315if test "${ac_cv_prog_egrep+set}" = set; then
5316  echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5319    then ac_cv_prog_egrep='grep -E'
5320    else ac_cv_prog_egrep='egrep'
5321    fi
5322fi
5323echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5324echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5325 EGREP=$ac_cv_prog_egrep
5326
5327
5328echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5329echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5330if test "${ac_cv_header_stdc+set}" = set; then
5331  echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333  cat >conftest.$ac_ext <<_ACEOF
5334/* confdefs.h.  */
5335_ACEOF
5336cat confdefs.h >>conftest.$ac_ext
5337cat >>conftest.$ac_ext <<_ACEOF
5338/* end confdefs.h.  */
5339#include <stdlib.h>
5340#include <stdarg.h>
5341#include <string.h>
5342#include <float.h>
5343
5344#ifdef F77_DUMMY_MAIN
5345
5346#  ifdef __cplusplus
5347     extern "C"
5348#  endif
5349   int F77_DUMMY_MAIN() { return 1; }
5350
5351#endif
5352int
5353main ()
5354{
5355
5356  ;
5357  return 0;
5358}
5359_ACEOF
5360rm -f conftest.$ac_objext
5361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362  (eval $ac_compile) 2>conftest.er1
5363  ac_status=$?
5364  grep -v '^ *+' conftest.er1 >conftest.err
5365  rm -f conftest.er1
5366  cat conftest.err >&5
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); } &&
5369         { ac_try='test -z "$ac_c_werror_flag"
5370                         || test ! -s conftest.err'
5371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372  (eval $ac_try) 2>&5
5373  ac_status=$?
5374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); }; } &&
5376         { ac_try='test -s conftest.$ac_objext'
5377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378  (eval $ac_try) 2>&5
5379  ac_status=$?
5380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381  (exit $ac_status); }; }; then
5382  ac_cv_header_stdc=yes
5383else
5384  echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
5387ac_cv_header_stdc=no
5388fi
5389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5390
5391if test $ac_cv_header_stdc = yes; then
5392  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5393  cat >conftest.$ac_ext <<_ACEOF
5394/* confdefs.h.  */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h.  */
5399#include <string.h>
5400
5401_ACEOF
5402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5403  $EGREP "memchr" >/dev/null 2>&1; then
5404  :
5405else
5406  ac_cv_header_stdc=no
5407fi
5408rm -f conftest*
5409
5410fi
5411
5412if test $ac_cv_header_stdc = yes; then
5413  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5414  cat >conftest.$ac_ext <<_ACEOF
5415/* confdefs.h.  */
5416_ACEOF
5417cat confdefs.h >>conftest.$ac_ext
5418cat >>conftest.$ac_ext <<_ACEOF
5419/* end confdefs.h.  */
5420#include <stdlib.h>
5421
5422_ACEOF
5423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5424  $EGREP "free" >/dev/null 2>&1; then
5425  :
5426else
5427  ac_cv_header_stdc=no
5428fi
5429rm -f conftest*
5430
5431fi
5432
5433if test $ac_cv_header_stdc = yes; then
5434  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5435  if test "$cross_compiling" = yes; then
5436  :
5437else
5438  cat >conftest.$ac_ext <<_ACEOF
5439/* confdefs.h.  */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h.  */
5444#include <ctype.h>
5445#if ((' ' & 0x0FF) == 0x020)
5446# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5447# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5448#else
5449# define ISLOWER(c) \
5450                   (('a' <= (c) && (c) <= 'i') \
5451                     || ('j' <= (c) && (c) <= 'r') \
5452                     || ('s' <= (c) && (c) <= 'z'))
5453# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5454#endif
5455
5456#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5457int
5458main ()
5459{
5460  int i;
5461  for (i = 0; i < 256; i++)
5462    if (XOR (islower (i), ISLOWER (i))
5463        || toupper (i) != TOUPPER (i))
5464      exit(2);
5465  exit (0);
5466}
5467_ACEOF
5468rm -f conftest$ac_exeext
5469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5470  (eval $ac_link) 2>&5
5471  ac_status=$?
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475  (eval $ac_try) 2>&5
5476  ac_status=$?
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }; }; then
5479  :
5480else
5481  echo "$as_me: program exited with status $ac_status" >&5
5482echo "$as_me: failed program was:" >&5
5483sed 's/^/| /' conftest.$ac_ext >&5
5484
5485( exit $ac_status )
5486ac_cv_header_stdc=no
5487fi
5488rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5489fi
5490fi
5491fi
5492echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5493echo "${ECHO_T}$ac_cv_header_stdc" >&6
5494if test $ac_cv_header_stdc = yes; then
5495
5496cat >>confdefs.h <<\_ACEOF
5497#define STDC_HEADERS 1
5498_ACEOF
5499
5500fi
5501
5502# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5513                  inttypes.h stdint.h unistd.h
5514do
5515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5516echo "$as_me:$LINENO: checking for $ac_header" >&5
5517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5518if eval "test \"\${$as_ac_Header+set}\" = set"; then
5519  echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
5521  cat >conftest.$ac_ext <<_ACEOF
5522/* confdefs.h.  */
5523_ACEOF
5524cat confdefs.h >>conftest.$ac_ext
5525cat >>conftest.$ac_ext <<_ACEOF
5526/* end confdefs.h.  */
5527$ac_includes_default
5528
5529#include <$ac_header>
5530_ACEOF
5531rm -f conftest.$ac_objext
5532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533  (eval $ac_compile) 2>conftest.er1
5534  ac_status=$?
5535  grep -v '^ *+' conftest.er1 >conftest.err
5536  rm -f conftest.er1
5537  cat conftest.err >&5
5538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539  (exit $ac_status); } &&
5540         { ac_try='test -z "$ac_c_werror_flag"
5541                         || test ! -s conftest.err'
5542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543  (eval $ac_try) 2>&5
5544  ac_status=$?
5545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546  (exit $ac_status); }; } &&
5547         { ac_try='test -s conftest.$ac_objext'
5548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549  (eval $ac_try) 2>&5
5550  ac_status=$?
5551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552  (exit $ac_status); }; }; then
5553  eval "$as_ac_Header=yes"
5554else
5555  echo "$as_me: failed program was:" >&5
5556sed 's/^/| /' conftest.$ac_ext >&5
5557
5558eval "$as_ac_Header=no"
5559fi
5560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5561fi
5562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5564if test `eval echo '${'$as_ac_Header'}'` = yes; then
5565  cat >>confdefs.h <<_ACEOF
5566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5567_ACEOF
5568
5569fi
5570
5571done
5572
5573
5574#if test x"" = x; then
5575#  hdr="#include <pthread.h>"
5576#else
5577#  hdr=""
5578#fi
5579#AC_CHECK_HEADERS([pthread.h],[],[enable_pthread_mumps=no],[$hdr])
5580
5581for ac_header in pthread.h
5582do
5583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5584if eval "test \"\${$as_ac_Header+set}\" = set"; then
5585  echo "$as_me:$LINENO: checking for $ac_header" >&5
5586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5587if eval "test \"\${$as_ac_Header+set}\" = set"; then
5588  echo $ECHO_N "(cached) $ECHO_C" >&6
5589fi
5590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5592else
5593  # Is the header compilable?
5594echo "$as_me:$LINENO: checking $ac_header usability" >&5
5595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5596cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h.  */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h.  */
5602$ac_includes_default
5603#include <$ac_header>
5604_ACEOF
5605rm -f conftest.$ac_objext
5606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607  (eval $ac_compile) 2>conftest.er1
5608  ac_status=$?
5609  grep -v '^ *+' conftest.er1 >conftest.err
5610  rm -f conftest.er1
5611  cat conftest.err >&5
5612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613  (exit $ac_status); } &&
5614         { ac_try='test -z "$ac_c_werror_flag"
5615                         || test ! -s conftest.err'
5616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617  (eval $ac_try) 2>&5
5618  ac_status=$?
5619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620  (exit $ac_status); }; } &&
5621         { ac_try='test -s conftest.$ac_objext'
5622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623  (eval $ac_try) 2>&5
5624  ac_status=$?
5625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626  (exit $ac_status); }; }; then
5627  ac_header_compiler=yes
5628else
5629  echo "$as_me: failed program was:" >&5
5630sed 's/^/| /' conftest.$ac_ext >&5
5631
5632ac_header_compiler=no
5633fi
5634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5635echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5636echo "${ECHO_T}$ac_header_compiler" >&6
5637
5638# Is the header present?
5639echo "$as_me:$LINENO: checking $ac_header presence" >&5
5640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5641cat >conftest.$ac_ext <<_ACEOF
5642/* confdefs.h.  */
5643_ACEOF
5644cat confdefs.h >>conftest.$ac_ext
5645cat >>conftest.$ac_ext <<_ACEOF
5646/* end confdefs.h.  */
5647#include <$ac_header>
5648_ACEOF
5649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5650  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5651  ac_status=$?
5652  grep -v '^ *+' conftest.er1 >conftest.err
5653  rm -f conftest.er1
5654  cat conftest.err >&5
5655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656  (exit $ac_status); } >/dev/null; then
5657  if test -s conftest.err; then
5658    ac_cpp_err=$ac_c_preproc_warn_flag
5659    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5660  else
5661    ac_cpp_err=
5662  fi
5663else
5664  ac_cpp_err=yes
5665fi
5666if test -z "$ac_cpp_err"; then
5667  ac_header_preproc=yes
5668else
5669  echo "$as_me: failed program was:" >&5
5670sed 's/^/| /' conftest.$ac_ext >&5
5671
5672  ac_header_preproc=no
5673fi
5674rm -f conftest.err conftest.$ac_ext
5675echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5676echo "${ECHO_T}$ac_header_preproc" >&6
5677
5678# So?  What about this header?
5679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5680  yes:no: )
5681    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5683    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5685    ac_header_preproc=yes
5686    ;;
5687  no:yes:* )
5688    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5690    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5691echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5692    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5694    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5695echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5696    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5698    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5700    (
5701      cat <<\_ASBOX
5702## --------------------------------------------------------------- ##
5703## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5704## --------------------------------------------------------------- ##
5705_ASBOX
5706    ) |
5707      sed "s/^/$as_me: WARNING:     /" >&2
5708    ;;
5709esac
5710echo "$as_me:$LINENO: checking for $ac_header" >&5
5711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5712if eval "test \"\${$as_ac_Header+set}\" = set"; then
5713  echo $ECHO_N "(cached) $ECHO_C" >&6
5714else
5715  eval "$as_ac_Header=\$ac_header_preproc"
5716fi
5717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5719
5720fi
5721if test `eval echo '${'$as_ac_Header'}'` = yes; then
5722  cat >>confdefs.h <<_ACEOF
5723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5724_ACEOF
5725
5726else
5727  enable_pthread_mumps=no
5728fi
5729
5730done
5731
5732
5733fi
5734if test $enable_pthread_mumps = yes ; then
5735  echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5736echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5737if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5738  echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740  ac_check_lib_save_LIBS=$LIBS
5741LIBS="-lpthread  $LIBS"
5742cat >conftest.$ac_ext <<_ACEOF
5743/* confdefs.h.  */
5744_ACEOF
5745cat confdefs.h >>conftest.$ac_ext
5746cat >>conftest.$ac_ext <<_ACEOF
5747/* end confdefs.h.  */
5748
5749/* Override any gcc2 internal prototype to avoid an error.  */
5750#ifdef __cplusplus
5751extern "C"
5752#endif
5753/* We use char because int might match the return type of a gcc2
5754   builtin and then its argument prototype would still apply.  */
5755char pthread_create ();
5756#ifdef F77_DUMMY_MAIN
5757
5758#  ifdef __cplusplus
5759     extern "C"
5760#  endif
5761   int F77_DUMMY_MAIN() { return 1; }
5762
5763#endif
5764int
5765main ()
5766{
5767pthread_create ();
5768  ;
5769  return 0;
5770}
5771_ACEOF
5772rm -f conftest.$ac_objext conftest$ac_exeext
5773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5774  (eval $ac_link) 2>conftest.er1
5775  ac_status=$?
5776  grep -v '^ *+' conftest.er1 >conftest.err
5777  rm -f conftest.er1
5778  cat conftest.err >&5
5779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780  (exit $ac_status); } &&
5781         { ac_try='test -z "$ac_c_werror_flag"
5782                         || test ! -s conftest.err'
5783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784  (eval $ac_try) 2>&5
5785  ac_status=$?
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); }; } &&
5788         { ac_try='test -s conftest$ac_exeext'
5789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790  (eval $ac_try) 2>&5
5791  ac_status=$?
5792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793  (exit $ac_status); }; }; then
5794  ac_cv_lib_pthread_pthread_create=yes
5795else
5796  echo "$as_me: failed program was:" >&5
5797sed 's/^/| /' conftest.$ac_ext >&5
5798
5799ac_cv_lib_pthread_pthread_create=no
5800fi
5801rm -f conftest.err conftest.$ac_objext \
5802      conftest$ac_exeext conftest.$ac_ext
5803LIBS=$ac_check_lib_save_LIBS
5804fi
5805echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5806echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5807if test $ac_cv_lib_pthread_pthread_create = yes; then
5808  MUMPS_PCLIBS="-lpthread $MUMPS_PCLIBS"
5809else
5810  enable_pthread_mumps=no
5811fi
5812
5813fi
5814if test $enable_pthread_mumps = no ; then
5815  MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"
5816fi
5817
5818MY_DEFS="$MY_DEFS -DALLOW_NON_INIT -DMUMPS_ARITH=MUMPS_ARITH_d"
5819
5820
5821# Initialize automake
5822{
5823
5824
5825
5826# START
5827
5828# Test if force_shared has been set
5829if test "x" = xforce_shared; then
5830  if test x$enable_shared = xno; then
5831    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5832echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5833   { (exit 1); exit 1; }; }
5834  fi
5835  enable_shared=yes;
5836else
5837  # On Cygwin and AIX, building DLLs doesn't work
5838  case $build in
5839    *-cygwin*)
5840      coin_disable_shared=yes
5841      platform=Cygwin
5842    ;;
5843    *-aix*)
5844      coin_disable_shared=yes
5845      platform=AIX
5846    ;;
5847    *-mingw*)
5848      coin_disable_shared=yes
5849      platform="Msys"
5850#      case "$CXX" in
5851#        cl*)
5852#          coin_disable_shared=yes
5853#          platform="Msys with cl"
5854#      ;;
5855#      esac
5856    ;;
5857  esac
5858fi
5859if test x"$coin_disable_shared" = xyes; then
5860  if test x"$enable_shared" = xyes; then
5861    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5862echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5863  fi
5864  enable_shared=no
5865fi
5866# By default, we only want the shared objects to be compiled
5867# Check whether --enable-static or --disable-static was given.
5868if test "${enable_static+set}" = set; then
5869  enableval="$enable_static"
5870  p=${PACKAGE-default}
5871    case $enableval in
5872    yes) enable_static=yes ;;
5873    no) enable_static=no ;;
5874    *)
5875     enable_static=no
5876      # Look at the argument we got.  We use all the common list separators.
5877      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5878      for pkg in $enableval; do
5879        IFS="$lt_save_ifs"
5880        if test "X$pkg" = "X$p"; then
5881          enable_static=yes
5882        fi
5883      done
5884      IFS="$lt_save_ifs"
5885      ;;
5886    esac
5887else
5888  enable_static=no
5889fi;
5890
5891
5892
5893
5894# Initialize automake
5895echo "$as_me:$LINENO: checking whether ln -s works" >&5
5896echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5897LN_S=$as_ln_s
5898if test "$LN_S" = "ln -s"; then
5899  echo "$as_me:$LINENO: result: yes" >&5
5900echo "${ECHO_T}yes" >&6
5901else
5902  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5903echo "${ECHO_T}no, using $LN_S" >&6
5904fi
5905
5906am__api_version="1.9"
5907# Find a good install program.  We prefer a C program (faster),
5908# so one script is as good as another.  But avoid the broken or
5909# incompatible versions:
5910# SysV /etc/install, /usr/sbin/install
5911# SunOS /usr/etc/install
5912# IRIX /sbin/install
5913# AIX /bin/install
5914# AmigaOS /C/install, which installs bootblocks on floppy discs
5915# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5916# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5917# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5918# OS/2's system install, which has a completely different semantic
5919# ./install, which can be erroneously created by make from ./install.sh.
5920echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5921echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5922if test -z "$INSTALL"; then
5923if test "${ac_cv_path_install+set}" = set; then
5924  echo $ECHO_N "(cached) $ECHO_C" >&6
5925else
5926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929  IFS=$as_save_IFS
5930  test -z "$as_dir" && as_dir=.
5931  # Account for people who put trailing slashes in PATH elements.
5932case $as_dir/ in
5933  ./ | .// | /cC/* | \
5934  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5935  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5936  /usr/ucb/* ) ;;
5937  *)
5938    # OSF1 and SCO ODT 3.0 have their own names for install.
5939    # Don't use installbsd from OSF since it installs stuff as root
5940    # by default.
5941    for ac_prog in ginstall scoinst install; do
5942      for ac_exec_ext in '' $ac_executable_extensions; do
5943        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5944          if test $ac_prog = install &&
5945            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5946            # AIX install.  It has an incompatible calling convention.
5947            :
5948          elif test $ac_prog = install &&
5949            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5950            # program-specific install script used by HP pwplus--don't use.
5951            :
5952          else
5953            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5954            break 3
5955          fi
5956        fi
5957      done
5958    done
5959    ;;
5960esac
5961done
5962
5963
5964fi
5965  if test "${ac_cv_path_install+set}" = set; then
5966    INSTALL=$ac_cv_path_install
5967  else
5968    # As a last resort, use the slow shell script.  We don't cache a
5969    # path for INSTALL within a source directory, because that will
5970    # break other packages using the cache if that directory is
5971    # removed, or if the path is relative.
5972    INSTALL=$ac_install_sh
5973  fi
5974fi
5975echo "$as_me:$LINENO: result: $INSTALL" >&5
5976echo "${ECHO_T}$INSTALL" >&6
5977
5978# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5979# It thinks the first close brace ends the variable substitution.
5980test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5981
5982test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5983
5984test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5985
5986echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5987echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5988# Just in case
5989sleep 1
5990echo timestamp > conftest.file
5991# Do `set' in a subshell so we don't clobber the current shell's
5992# arguments.  Must try -L first in case configure is actually a
5993# symlink; some systems play weird games with the mod time of symlinks
5994# (eg FreeBSD returns the mod time of the symlink's containing
5995# directory).
5996if (
5997   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5998   if test "$*" = "X"; then
5999      # -L didn't work.
6000      set X `ls -t $srcdir/configure conftest.file`
6001   fi
6002   rm -f conftest.file
6003   if test "$*" != "X $srcdir/configure conftest.file" \
6004      && test "$*" != "X conftest.file $srcdir/configure"; then
6005
6006      # If neither matched, then we have a broken ls.  This can happen
6007      # if, for instance, CONFIG_SHELL is bash and it inherits a
6008      # broken ls alias from the environment.  This has actually
6009      # happened.  Such a system could not be considered "sane".
6010      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
6011alias in your environment" >&5
6012echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
6013alias in your environment" >&2;}
6014   { (exit 1); exit 1; }; }
6015   fi
6016
6017   test "$2" = conftest.file
6018   )
6019then
6020   # Ok.
6021   :
6022else
6023   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6024Check your system clock" >&5
6025echo "$as_me: error: newly created file is older than distributed files!
6026Check your system clock" >&2;}
6027   { (exit 1); exit 1; }; }
6028fi
6029echo "$as_me:$LINENO: result: yes" >&5
6030echo "${ECHO_T}yes" >&6
6031test "$program_prefix" != NONE &&
6032  program_transform_name="s,^,$program_prefix,;$program_transform_name"
6033# Use a double $ so make ignores it.
6034test "$program_suffix" != NONE &&
6035  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6036# Double any \ or $.  echo might interpret backslashes.
6037# By default was `s,x,x', remove it if useless.
6038cat <<\_ACEOF >conftest.sed
6039s/[\\$]/&&/g;s/;s,x,x,$//
6040_ACEOF
6041program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6042rm conftest.sed
6043
6044# expand $ac_aux_dir to an absolute path
6045am_aux_dir=`cd $ac_aux_dir && pwd`
6046
6047test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6048# Use eval to expand $SHELL
6049if eval "$MISSING --run true"; then
6050  am_missing_run="$MISSING --run "
6051else
6052  am_missing_run=
6053  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6054echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6055fi
6056
6057if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6058  # We used to keeping the `.' as first argument, in order to
6059  # allow $(mkdir_p) to be used without argument.  As in
6060  #   $(mkdir_p) $(somedir)
6061  # where $(somedir) is conditionally defined.  However this is wrong
6062  # for two reasons:
6063  #  1. if the package is installed by a user who cannot write `.'
6064  #     make install will fail,
6065  #  2. the above comment should most certainly read
6066  #     $(mkdir_p) $(DESTDIR)$(somedir)
6067  #     so it does not work when $(somedir) is undefined and
6068  #     $(DESTDIR) is not.
6069  #  To support the latter case, we have to write
6070  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6071  #  so the `.' trick is pointless.
6072  mkdir_p='mkdir -p --'
6073else
6074  # On NextStep and OpenStep, the `mkdir' command does not
6075  # recognize any option.  It will interpret all options as
6076  # directories to create, and then abort because `.' already
6077  # exists.
6078  for d in ./-p ./--version;
6079  do
6080    test -d $d && rmdir $d
6081  done
6082  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6083  if test -f "$ac_aux_dir/mkinstalldirs"; then
6084    mkdir_p='$(mkinstalldirs)'
6085  else
6086    mkdir_p='$(install_sh) -d'
6087  fi
6088fi
6089
6090for ac_prog in gawk mawk nawk awk
6091do
6092  # Extract the first word of "$ac_prog", so it can be a program name with args.
6093set dummy $ac_prog; ac_word=$2
6094echo "$as_me:$LINENO: checking for $ac_word" >&5
6095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6096if test "${ac_cv_prog_AWK+set}" = set; then
6097  echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
6099  if test -n "$AWK"; then
6100  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6101else
6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105  IFS=$as_save_IFS
6106  test -z "$as_dir" && as_dir=.
6107  for ac_exec_ext in '' $ac_executable_extensions; do
6108  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6109    ac_cv_prog_AWK="$ac_prog"
6110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111    break 2
6112  fi
6113done
6114done
6115
6116fi
6117fi
6118AWK=$ac_cv_prog_AWK
6119if test -n "$AWK"; then
6120  echo "$as_me:$LINENO: result: $AWK" >&5
6121echo "${ECHO_T}$AWK" >&6
6122else
6123  echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6
6125fi
6126
6127  test -n "$AWK" && break
6128done
6129
6130echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6131echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6132set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6133if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6134  echo $ECHO_N "(cached) $ECHO_C" >&6
6135else
6136  cat >conftest.make <<\_ACEOF
6137all:
6138        @echo 'ac_maketemp="$(MAKE)"'
6139_ACEOF
6140# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6141eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6142if test -n "$ac_maketemp"; then
6143  eval ac_cv_prog_make_${ac_make}_set=yes
6144else
6145  eval ac_cv_prog_make_${ac_make}_set=no
6146fi
6147rm -f conftest.make
6148fi
6149if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6150  echo "$as_me:$LINENO: result: yes" >&5
6151echo "${ECHO_T}yes" >&6
6152  SET_MAKE=
6153else
6154  echo "$as_me:$LINENO: result: no" >&5
6155echo "${ECHO_T}no" >&6
6156  SET_MAKE="MAKE=${MAKE-make}"
6157fi
6158
6159rm -rf .tst 2>/dev/null
6160mkdir .tst 2>/dev/null
6161if test -d .tst; then
6162  am__leading_dot=.
6163else
6164  am__leading_dot=_
6165fi
6166rmdir .tst 2>/dev/null
6167
6168DEPDIR="${am__leading_dot}deps"
6169
6170          ac_config_commands="$ac_config_commands depfiles"
6171
6172
6173am_make=${MAKE-make}
6174cat > confinc << 'END'
6175am__doit:
6176        @echo done
6177.PHONY: am__doit
6178END
6179# If we don't find an include directive, just comment out the code.
6180echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6181echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6182am__include="#"
6183am__quote=
6184_am_result=none
6185# First try GNU make style include.
6186echo "include confinc" > confmf
6187# We grep out `Entering directory' and `Leaving directory'
6188# messages which can occur if `w' ends up in MAKEFLAGS.
6189# In particular we don't look at `^make:' because GNU make might
6190# be invoked under some other name (usually "gmake"), in which
6191# case it prints its new name instead of `make'.
6192if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6193   am__include=include
6194   am__quote=
6195   _am_result=GNU
6196fi
6197# Now try BSD make style include.
6198if test "$am__include" = "#"; then
6199   echo '.include "confinc"' > confmf
6200   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6201      am__include=.include
6202      am__quote="\""
6203      _am_result=BSD
6204   fi
6205fi
6206
6207
6208echo "$as_me:$LINENO: result: $_am_result" >&5
6209echo "${ECHO_T}$_am_result" >&6
6210rm -f confinc confmf
6211
6212# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6213if test "${enable_dependency_tracking+set}" = set; then
6214  enableval="$enable_dependency_tracking"
6215
6216fi;
6217if test "x$enable_dependency_tracking" != xno; then
6218  am_depcomp="$ac_aux_dir/depcomp"
6219  AMDEPBACKSLASH='\'
6220fi
6221
6222
6223if test "x$enable_dependency_tracking" != xno; then
6224  AMDEP_TRUE=
6225  AMDEP_FALSE='#'
6226else
6227  AMDEP_TRUE='#'
6228  AMDEP_FALSE=
6229fi
6230
6231
6232
6233
6234
6235
6236# AC_MSG_NOTICE([Beginning automake initialisation.])
6237# Stuff for automake
6238# test to see if srcdir already configured
6239if test "`cd $srcdir && pwd`" != "`pwd`" &&
6240   test -f $srcdir/config.status; then
6241  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6242echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6243   { (exit 1); exit 1; }; }
6244fi
6245
6246# test whether we have cygpath
6247if test -z "$CYGPATH_W"; then
6248  if (cygpath --version) >/dev/null 2>/dev/null; then
6249    CYGPATH_W='cygpath -w'
6250  else
6251    CYGPATH_W=echo
6252  fi
6253fi
6254
6255
6256# Define the identity of the package.
6257 PACKAGE='thirdpartymumps'
6258 VERSION='trunk'
6259
6260
6261cat >>confdefs.h <<_ACEOF
6262#define PACKAGE "$PACKAGE"
6263_ACEOF
6264
6265
6266cat >>confdefs.h <<_ACEOF
6267#define VERSION "$VERSION"
6268_ACEOF
6269
6270# Some tools Automake needs.
6271
6272ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6273
6274
6275AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6276
6277
6278AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6279
6280
6281AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6282
6283
6284MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6285
6286install_sh=${install_sh-"$am_aux_dir/install-sh"}
6287
6288# Installed binaries are usually stripped using `strip' when the user
6289# run `make install-strip'.  However `strip' might not be the right
6290# tool to use in cross-compilation environments, therefore Automake
6291# will honor the `STRIP' environment variable to overrule this program.
6292if test "$cross_compiling" != no; then
6293  if test -n "$ac_tool_prefix"; then
6294  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6295set dummy ${ac_tool_prefix}strip; ac_word=$2
6296echo "$as_me:$LINENO: checking for $ac_word" >&5
6297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6298if test "${ac_cv_prog_STRIP+set}" = set; then
6299  echo $ECHO_N "(cached) $ECHO_C" >&6
6300else
6301  if test -n "$STRIP"; then
6302  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6303else
6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
6306do
6307  IFS=$as_save_IFS
6308  test -z "$as_dir" && as_dir=.
6309  for ac_exec_ext in '' $ac_executable_extensions; do
6310  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6312    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313    break 2
6314  fi
6315done
6316done
6317
6318fi
6319fi
6320STRIP=$ac_cv_prog_STRIP
6321if test -n "$STRIP"; then
6322  echo "$as_me:$LINENO: result: $STRIP" >&5
6323echo "${ECHO_T}$STRIP" >&6
6324else
6325  echo "$as_me:$LINENO: result: no" >&5
6326echo "${ECHO_T}no" >&6
6327fi
6328
6329fi
6330if test -z "$ac_cv_prog_STRIP"; then
6331  ac_ct_STRIP=$STRIP
6332  # Extract the first word of "strip", so it can be a program name with args.
6333set dummy strip; ac_word=$2
6334echo "$as_me:$LINENO: checking for $ac_word" >&5
6335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6336if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6337  echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339  if test -n "$ac_ct_STRIP"; then
6340  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345  IFS=$as_save_IFS
6346  test -z "$as_dir" && as_dir=.
6347  for ac_exec_ext in '' $ac_executable_extensions; do
6348  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349    ac_cv_prog_ac_ct_STRIP="strip"
6350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351    break 2
6352  fi
6353done
6354done
6355
6356  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6357fi
6358fi
6359ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6360if test -n "$ac_ct_STRIP"; then
6361  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6362echo "${ECHO_T}$ac_ct_STRIP" >&6
6363else
6364  echo "$as_me:$LINENO: result: no" >&5
6365echo "${ECHO_T}no" >&6
6366fi
6367
6368  STRIP=$ac_ct_STRIP
6369else
6370  STRIP="$ac_cv_prog_STRIP"
6371fi
6372
6373fi
6374INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6375
6376# We need awk for the "check" target.  The system "awk" is bad on
6377# some platforms.
6378# Always define AMTAR for backward compatibility.
6379
6380AMTAR=${AMTAR-"${am_missing_run}tar"}
6381
6382am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6383
6384
6385
6386
6387depcc="$CC"   am_compiler_list=
6388
6389echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6390echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6391if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6392  echo $ECHO_N "(cached) $ECHO_C" >&6
6393else
6394  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6395  # We make a subdir and do the tests there.  Otherwise we can end up
6396  # making bogus files that we don't know about and never remove.  For
6397  # instance it was reported that on HP-UX the gcc test will end up
6398  # making a dummy file named `D' -- because `-MD' means `put the output
6399  # in D'.
6400  mkdir conftest.dir
6401  # Copy depcomp to subdir because otherwise we won't find it if we're
6402  # using a relative directory.
6403  cp "$am_depcomp" conftest.dir
6404  cd conftest.dir
6405  # We will build objects and dependencies in a subdirectory because
6406  # it helps to detect inapplicable dependency modes.  For instance
6407  # both Tru64's cc and ICC support -MD to output dependencies as a
6408  # side effect of compilation, but ICC will put the dependencies in
6409  # the current directory while Tru64 will put them in the object
6410  # directory.
6411  mkdir sub
6412
6413  am_cv_CC_dependencies_compiler_type=none
6414  if test "$am_compiler_list" = ""; then
6415     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6416  fi
6417  for depmode in $am_compiler_list; do
6418    # Setup a source with many dependencies, because some compilers
6419    # like to wrap large dependency lists on column 80 (with \), and
6420    # we should not choose a depcomp mode which is confused by this.
6421    #
6422    # We need to recreate these files for each test, as the compiler may
6423    # overwrite some of them when testing with obscure command lines.
6424    # This happens at least with the AIX C compiler.
6425    : > sub/conftest.c
6426    for i in 1 2 3 4 5 6; do
6427      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6428      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6429      # Solaris 8's {/usr,}/bin/sh.
6430      touch sub/conftst$i.h
6431    done
6432    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6433
6434    case $depmode in
6435    nosideeffect)
6436      # after this tag, mechanisms are not by side-effect, so they'll
6437      # only be used when explicitly requested
6438      if test "x$enable_dependency_tracking" = xyes; then
6439        continue
6440      else
6441        break
6442      fi
6443      ;;
6444    none) break ;;
6445    esac
6446    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6447    # mode.  It turns out that the SunPro C++ compiler does not properly
6448    # handle `-M -o', and we need to detect this.
6449    if depmode=$depmode \
6450       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6451       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6452       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6453         >/dev/null 2>conftest.err &&
6454       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6455       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6456       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6457      # icc doesn't choke on unknown options, it will just issue warnings
6458      # or remarks (even with -Werror).  So we grep stderr for any message
6459      # that says an option was ignored or not supported.
6460      # When given -MP, icc 7.0 and 7.1 complain thusly:
6461      #   icc: Command line warning: ignoring option '-M'; no argument required
6462      # The diagnosis changed in icc 8.0:
6463      #   icc: Command line remark: option '-MP' not supported
6464      if (grep 'ignoring option' conftest.err ||
6465          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6466        am_cv_CC_dependencies_compiler_type=$depmode
6467        break
6468      fi
6469    fi
6470  done
6471
6472  cd ..
6473  rm -rf conftest.dir
6474else
6475  am_cv_CC_dependencies_compiler_type=none
6476fi
6477
6478fi
6479echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6480echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6481CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6482
6483
6484
6485if
6486  test "x$enable_dependency_tracking" != xno \
6487  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6488  am__fastdepCC_TRUE=
6489  am__fastdepCC_FALSE='#'
6490else
6491  am__fastdepCC_TRUE='#'
6492  am__fastdepCC_FALSE=
6493fi
6494
6495
6496
6497echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6498echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6499    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6500if test "${enable_maintainer_mode+set}" = set; then
6501  enableval="$enable_maintainer_mode"
6502  USE_MAINTAINER_MODE=$enableval
6503else
6504  USE_MAINTAINER_MODE=no
6505fi;
6506  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6507echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6508
6509
6510if test $USE_MAINTAINER_MODE = yes; then
6511  MAINTAINER_MODE_TRUE=
6512  MAINTAINER_MODE_FALSE='#'
6513else
6514  MAINTAINER_MODE_TRUE='#'
6515  MAINTAINER_MODE_FALSE=
6516fi
6517
6518  MAINT=$MAINTAINER_MODE_TRUE
6519
6520
6521
6522coin_have_externals=no
6523if test "$enable_maintainer_mode" = yes; then
6524
6525  # If maintainer mode is chosen, we make sure that the correct versions
6526  # of the tools are used, and that we know where libtool.m4 is (to
6527  # recreate acinclude.m4)
6528
6529
6530  LIBTOOLM4=
6531  # Normally, $HOME
6532  AUTOTOOLS_DFLT=$HOME
6533
6534  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6535echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6536if test "${ac_cv_use_correct_autotools+set}" = set; then
6537  echo $ECHO_N "(cached) $ECHO_C" >&6
6538else
6539  ac_cv_use_correct_autotools=check
6540fi
6541echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6542echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6543
6544  if test $ac_cv_use_correct_autotools = check; then
6545    ac_cv_use_correct_autotools=yes
6546    # Check if we have autoconf
6547    # Extract the first word of "autoconf", so it can be a program name with args.
6548set dummy autoconf; ac_word=$2
6549echo "$as_me:$LINENO: checking for $ac_word" >&5
6550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6551if test "${ac_cv_prog_have_autoconf+set}" = set; then
6552  echo $ECHO_N "(cached) $ECHO_C" >&6
6553else
6554  if test -n "$have_autoconf"; then
6555  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6556else
6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558for as_dir in $PATH
6559do
6560  IFS=$as_save_IFS
6561  test -z "$as_dir" && as_dir=.
6562  for ac_exec_ext in '' $ac_executable_extensions; do
6563  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564    ac_cv_prog_have_autoconf="yes"
6565    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566    break 2
6567  fi
6568done
6569done
6570
6571  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6572fi
6573fi
6574have_autoconf=$ac_cv_prog_have_autoconf
6575if test -n "$have_autoconf"; then
6576  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6577echo "${ECHO_T}$have_autoconf" >&6
6578else
6579  echo "$as_me:$LINENO: result: no" >&5
6580echo "${ECHO_T}no" >&6
6581fi
6582
6583    if test $have_autoconf = no; then
6584      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6585echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6586   { (exit 1); exit 1; }; }
6587    fi
6588
6589    # Check whether autoconf is the correct version
6590    correct_version='2.59'
6591    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6592    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6593echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6594    autoconf --version > confauto.out 2>&1
6595    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6596      echo "$as_me:$LINENO: result: yes" >&5
6597echo "${ECHO_T}yes" >&6
6598    else
6599      rm -f confauto.out
6600      echo "$as_me:$LINENO: result: no" >&5
6601echo "${ECHO_T}no" >&6
6602      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6603echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6604   { (exit 1); exit 1; }; }
6605    fi
6606    rm -f confauto.out
6607
6608    # Check if the executable autoconf is picked up from the correct location
6609    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6610echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6611    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6612    autoconf_dir=`cd $autoconf_dir; pwd`
6613    if test x$AUTOTOOLS_DIR = x; then
6614      want_dir=$AUTOTOOLS_DFLT/bin
6615    else
6616      want_dir=$AUTOTOOLS_DIR/bin
6617    fi
6618    if test $autoconf_dir = `cd $want_dir; pwd`; then
6619      echo "$as_me:$LINENO: result: yes" >&5
6620echo "${ECHO_T}yes" >&6
6621    else
6622      rm -f confauto.out
6623      echo "$as_me:$LINENO: result: no" >&5
6624echo "${ECHO_T}no" >&6
6625      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6626echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6627   { (exit 1); exit 1; }; }
6628    fi
6629
6630    # Check if we have automake
6631    # Extract the first word of "automake", so it can be a program name with args.
6632set dummy automake; ac_word=$2
6633echo "$as_me:$LINENO: checking for $ac_word" >&5
6634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6635if test "${ac_cv_prog_have_automake+set}" = set; then
6636  echo $ECHO_N "(cached) $ECHO_C" >&6
6637else
6638  if test -n "$have_automake"; then
6639  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6640else
6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644  IFS=$as_save_IFS
6645  test -z "$as_dir" && as_dir=.
6646  for ac_exec_ext in '' $ac_executable_extensions; do
6647  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648    ac_cv_prog_have_automake="yes"
6649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650    break 2
6651  fi
6652done
6653done
6654
6655  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6656fi
6657fi
6658have_automake=$ac_cv_prog_have_automake
6659if test -n "$have_automake"; then
6660  echo "$as_me:$LINENO: result: $have_automake" >&5
6661echo "${ECHO_T}$have_automake" >&6
6662else
6663  echo "$as_me:$LINENO: result: no" >&5
6664echo "${ECHO_T}no" >&6
6665fi
6666
6667    if test $have_automake = no; then
6668      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6669echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6670   { (exit 1); exit 1; }; }
6671    fi
6672
6673    # Check whether automake is the correct version
6674    correct_version='1.9.6'
6675    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6676    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6677echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6678    automake --version > confauto.out 2>&1
6679    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6680      echo "$as_me:$LINENO: result: yes" >&5
6681echo "${ECHO_T}yes" >&6
6682    else
6683      rm -f confauto.out
6684      echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6
6686      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6687echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6688   { (exit 1); exit 1; }; }
6689    fi
6690    rm -f confauto.out
6691
6692    # Check if the executable automake is picked up from the correct location
6693    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6694echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6695    automake_dir=`which automake | sed -e 's=/automake=='`
6696    automake_dir=`cd $automake_dir; pwd`
6697    if test x$AUTOTOOLS_DIR = x; then
6698      want_dir=$AUTOTOOLS_DFLT/bin
6699    else
6700      want_dir=$AUTOTOOLS_DIR/bin
6701    fi
6702    if test $automake_dir = `cd $want_dir; pwd`; then
6703      echo "$as_me:$LINENO: result: yes" >&5
6704echo "${ECHO_T}yes" >&6
6705    else
6706      rm -f confauto.out
6707      echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6710echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6711   { (exit 1); exit 1; }; }
6712    fi
6713
6714    # Check if this is the correct version of libtool (with escaped dots)
6715    if test x$AUTOTOOLS_DIR = x; then
6716      want_dir=$AUTOTOOLS_DFLT/share
6717    else
6718      want_dir=$AUTOTOOLS_DIR/share
6719    fi
6720    correct_version='1.5.22'
6721    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6722    if test -r $want_dir/libtool/ltmain.sh; then
6723  have_ltmain=yes
6724  :
6725else
6726  have_ltmain=no
6727  :
6728fi
6729
6730    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6731echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6732    if test $have_ltmain = yes; then
6733    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6734        echo "$as_me:$LINENO: result: yes" >&5
6735echo "${ECHO_T}yes" >&6
6736      else
6737        echo "$as_me:$LINENO: result: no" >&5
6738echo "${ECHO_T}no" >&6
6739        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6740echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6741   { (exit 1); exit 1; }; }
6742      fi
6743    else
6744      echo "$as_me:$LINENO: result: no" >&5
6745echo "${ECHO_T}no" >&6
6746      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6747echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6748   { (exit 1); exit 1; }; }
6749    fi
6750  fi
6751
6752  # Check if we can find the libtool file
6753  if test x$AUTOTOOLS_DIR = x; then
6754    want_dir=$AUTOTOOLS_DFLT/share
6755  else
6756    want_dir=$AUTOTOOLS_DIR/share
6757  fi
6758  if test -r $want_dir/aclocal/libtool.m4; then
6759  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6760  :
6761else
6762  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6763echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6764   { (exit 1); exit 1; }; }
6765  :
6766fi
6767
6768
6769  # Check if we have an Dependencies file
6770  if test -r $srcdir/Dependencies; then
6771    coin_have_externals=yes
6772  fi
6773  # Check if subversion is installed and understands https
6774  # Extract the first word of "svn", so it can be a program name with args.
6775set dummy svn; ac_word=$2
6776echo "$as_me:$LINENO: checking for $ac_word" >&5
6777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6778if test "${ac_cv_prog_have_svn+set}" = set; then
6779  echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781  if test -n "$have_svn"; then
6782  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6783else
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787  IFS=$as_save_IFS
6788  test -z "$as_dir" && as_dir=.
6789  for ac_exec_ext in '' $ac_executable_extensions; do
6790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791    ac_cv_prog_have_svn="yes"
6792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793    break 2
6794  fi
6795done
6796done
6797
6798  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6799fi
6800fi
6801have_svn=$ac_cv_prog_have_svn
6802if test -n "$have_svn"; then
6803  echo "$as_me:$LINENO: result: $have_svn" >&5
6804echo "${ECHO_T}$have_svn" >&6
6805else
6806  echo "$as_me:$LINENO: result: no" >&5
6807echo "${ECHO_T}no" >&6
6808fi
6809
6810  if test x$have_svn = xyes; then
6811    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6812echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6813if test "${ac_cv_svn_understands_https+set}" = set; then
6814  echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816  svn --version > confauto.out 2>&1
6817                    if $EGREP https confauto.out >/dev/null 2>&1; then
6818                      ac_cv_svn_understands_https=yes
6819                    else
6820                      ac_cv_svn_understands_https=no
6821                      have_svn=no
6822                      ac_cv_prog_have_svn=no
6823                    fi
6824                    rm -f confauto.out
6825fi
6826echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6827echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6828  fi
6829
6830  # Find the location of the BuildTools directory
6831  BUILDTOOLSDIR=
6832  if test -r $srcdir/BuildTools/coin.m4; then
6833    BUILDTOOLSDIR=$srcdir/BuildTools
6834  else
6835    if test -r $srcdir/../BuildTools/coin.m4; then
6836      BUILDTOOLSDIR=$srcdir/../BuildTools
6837    else
6838      if test -r $srcdir/../../BuildTools/coin.m4; then
6839        BUILDTOOLSDIR=$srcdir/../../BuildTools
6840      else
6841        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6842echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6843   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6844      fi
6845    fi
6846  fi
6847
6848
6849  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6850  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6851    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6852  fi
6853
6854  # The following variable is set to the name of the directory where
6855  # the autotool scripts are located
6856
6857  AUX_DIR=$ac_aux_dir
6858fi
6859
6860# helpful variable for the base directory of this package
6861abs_source_dir=`cd $srcdir; pwd`
6862
6863
6864# Stuff for example Makefiles
6865if test x$prefix = xNONE; then
6866  full_prefix=$ac_default_prefix
6867else
6868  full_prefix=$prefix
6869fi
6870full_prefix=`cd $full_prefix ; pwd`
6871
6872abs_lib_dir=$full_prefix/lib
6873
6874abs_include_dir=$full_prefix/include
6875
6876abs_bin_dir=$full_prefix/bin
6877
6878
6879
6880if test $coin_have_externals = yes && test x$have_svn = xyes; then
6881  HAVE_EXTERNALS_TRUE=
6882  HAVE_EXTERNALS_FALSE='#'
6883else
6884  HAVE_EXTERNALS_TRUE='#'
6885  HAVE_EXTERNALS_FALSE=
6886fi
6887
6888
6889# AC_MSG_NOTICE([End automake initialisation.])
6890
6891
6892
6893LIBTOOL=
6894if test -r ../libtool; then
6895  coin_config_dir=..
6896  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6897fi
6898if test "x$LIBTOOL" = x; then
6899  if test -r ../../libtool; then
6900    coin_config_dir=../..
6901    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6902  fi
6903fi
6904
6905if test "x$LIBTOOL" = x; then
6906# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6907  # Stuff for libtool
6908  # Check whether --enable-shared or --disable-shared was given.
6909if test "${enable_shared+set}" = set; then
6910  enableval="$enable_shared"
6911  p=${PACKAGE-default}
6912    case $enableval in
6913    yes) enable_shared=yes ;;
6914    no) enable_shared=no ;;
6915    *)
6916      enable_shared=no
6917      # Look at the argument we got.  We use all the common list separators.
6918      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6919      for pkg in $enableval; do
6920        IFS="$lt_save_ifs"
6921        if test "X$pkg" = "X$p"; then
6922          enable_shared=yes
6923        fi
6924      done
6925      IFS="$lt_save_ifs"
6926      ;;
6927    esac
6928else
6929  enable_shared=yes
6930fi;
6931
6932# Check whether --enable-fast-install or --disable-fast-install was given.
6933if test "${enable_fast_install+set}" = set; then
6934  enableval="$enable_fast_install"
6935  p=${PACKAGE-default}
6936    case $enableval in
6937    yes) enable_fast_install=yes ;;
6938    no) enable_fast_install=no ;;
6939    *)
6940      enable_fast_install=no
6941      # Look at the argument we got.  We use all the common list separators.
6942      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6943      for pkg in $enableval; do
6944        IFS="$lt_save_ifs"
6945        if test "X$pkg" = "X$p"; then
6946          enable_fast_install=yes
6947        fi
6948      done
6949      IFS="$lt_save_ifs"
6950      ;;
6951    esac
6952else
6953  enable_fast_install=yes
6954fi;
6955
6956echo "$as_me:$LINENO: checking host system type" >&5
6957echo $ECHO_N "checking host system type... $ECHO_C" >&6
6958if test "${ac_cv_host+set}" = set; then
6959  echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961  ac_cv_host_alias=$host_alias
6962test -z "$ac_cv_host_alias" &&
6963  ac_cv_host_alias=$ac_cv_build_alias
6964ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6965  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6966echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6967   { (exit 1); exit 1; }; }
6968
6969fi
6970echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6971echo "${ECHO_T}$ac_cv_host" >&6
6972host=$ac_cv_host
6973host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6974host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6975host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6976
6977
6978echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6979echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6980if test "${lt_cv_path_SED+set}" = set; then
6981  echo $ECHO_N "(cached) $ECHO_C" >&6
6982else
6983  # Loop through the user's path and test for sed and gsed.
6984# Then use that list of sed's as ones to test for truncation.
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988  IFS=$as_save_IFS
6989  test -z "$as_dir" && as_dir=.
6990  for lt_ac_prog in sed gsed; do
6991    for ac_exec_ext in '' $ac_executable_extensions; do
6992      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6993        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6994      fi
6995    done
6996  done
6997done
6998lt_ac_max=0
6999lt_ac_count=0
7000# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7001# along with /bin/sed that truncates output.
7002for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7003  test ! -f $lt_ac_sed && continue
7004  cat /dev/null > conftest.in
7005  lt_ac_count=0
7006  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7007  # Check for GNU sed and select it if it is found.
7008  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7009    lt_cv_path_SED=$lt_ac_sed
7010    break
7011  fi
7012  while true; do
7013    cat conftest.in conftest.in >conftest.tmp
7014    mv conftest.tmp conftest.in
7015    cp conftest.in conftest.nl
7016    echo >>conftest.nl
7017    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7018    cmp -s conftest.out conftest.nl || break
7019    # 10000 chars as input seems more than enough
7020    test $lt_ac_count -gt 10 && break
7021    lt_ac_count=`expr $lt_ac_count + 1`
7022    if test $lt_ac_count -gt $lt_ac_max; then
7023      lt_ac_max=$lt_ac_count
7024      lt_cv_path_SED=$lt_ac_sed
7025    fi
7026  done
7027done
7028
7029fi
7030
7031SED=$lt_cv_path_SED
7032echo "$as_me:$LINENO: result: $SED" >&5
7033echo "${ECHO_T}$SED" >&6
7034
7035
7036# Check whether --with-gnu-ld or --without-gnu-ld was given.
7037if test "${with_gnu_ld+set}" = set; then
7038  withval="$with_gnu_ld"
7039  test "$withval" = no || with_gnu_ld=yes
7040else
7041  with_gnu_ld=no
7042fi;
7043ac_prog=ld
7044if test "$GCC" = yes; then
7045  # Check if gcc -print-prog-name=ld gives a path.
7046  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7047echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7048  case $host in
7049  *-*-mingw*)
7050    # gcc leaves a trailing carriage return which upsets mingw
7051    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7052  *)
7053    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7054  esac
7055  case $ac_prog in
7056    # Accept absolute paths.
7057    [\\/]* | ?:[\\/]*)
7058      re_direlt='/[^/][^/]*/\.\./'
7059      # Canonicalize the pathname of ld
7060      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7061      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7062        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7063      done
7064      test -z "$LD" && LD="$ac_prog"
7065      ;;
7066  "")
7067    # If it fails, then pretend we aren't using GCC.
7068    ac_prog=ld
7069    ;;
7070  *)
7071    # If it is relative, then search for the first ld in PATH.
7072    with_gnu_ld=unknown
7073    ;;
7074  esac
7075elif test "$with_gnu_ld" = yes; then
7076  echo "$as_me:$LINENO: checking for GNU ld" >&5
7077echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7078else
7079  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7080echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7081fi
7082if test "${lt_cv_path_LD+set}" = set; then
7083  echo $ECHO_N "(cached) $ECHO_C" >&6
7084else
7085  if test -z "$LD"; then
7086  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7087  for ac_dir in $PATH; do
7088    IFS="$lt_save_ifs"
7089    test -z "$ac_dir" && ac_dir=.
7090    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7091      lt_cv_path_LD="$ac_dir/$ac_prog"
7092      # Check to see if the program is GNU ld.  I'd rather use --version,
7093      # but apparently some variants of GNU ld only accept -v.
7094      # Break only if it was the GNU/non-GNU ld that we prefer.
7095      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7096      *GNU* | *'with BFD'*)
7097        test "$with_gnu_ld" != no && break
7098        ;;
7099      *)
7100        test "$with_gnu_ld" != yes && break
7101        ;;
7102      esac
7103    fi
7104  done
7105  IFS="$lt_save_ifs"
7106else
7107  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7108fi
7109fi
7110
7111LD="$lt_cv_path_LD"
7112if test -n "$LD"; then
7113  echo "$as_me:$LINENO: result: $LD" >&5
7114echo "${ECHO_T}$LD" >&6
7115else
7116  echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6
7118fi
7119test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7120echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7121   { (exit 1); exit 1; }; }
7122echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7123echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7124if test "${lt_cv_prog_gnu_ld+set}" = set; then
7125  echo $ECHO_N "(cached) $ECHO_C" >&6
7126else
7127  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7128case `$LD -v 2>&1 </dev/null` in
7129*GNU* | *'with BFD'*)
7130  lt_cv_prog_gnu_ld=yes
7131  ;;
7132*)
7133  lt_cv_prog_gnu_ld=no
7134  ;;
7135esac
7136fi
7137echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7138echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7139with_gnu_ld=$lt_cv_prog_gnu_ld
7140
7141
7142echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7143echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7144if test "${lt_cv_ld_reload_flag+set}" = set; then
7145  echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147  lt_cv_ld_reload_flag='-r'
7148fi
7149echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7150echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7151reload_flag=$lt_cv_ld_reload_flag
7152case $reload_flag in
7153"" | " "*) ;;
7154*) reload_flag=" $reload_flag" ;;
7155esac
7156reload_cmds='$LD$reload_flag -o $output$reload_objs'
7157case $host_os in
7158  darwin*)
7159    if test "$GCC" = yes; then
7160      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7161    else
7162      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7163    fi
7164    ;;
7165esac
7166
7167echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7168echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7169if test "${lt_cv_path_NM+set}" = set; then
7170  echo $ECHO_N "(cached) $ECHO_C" >&6
7171else
7172  if test -n "$NM"; then
7173  # Let the user override the test.
7174  lt_cv_path_NM="$NM"
7175else
7176  lt_nm_to_check="${ac_tool_prefix}nm"
7177  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7178    lt_nm_to_check="$lt_nm_to_check nm"
7179  fi
7180  for lt_tmp_nm in $lt_nm_to_check; do
7181    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7182    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7183      IFS="$lt_save_ifs"
7184      test -z "$ac_dir" && ac_dir=.
7185      tmp_nm="$ac_dir/$lt_tmp_nm"
7186      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7187        # Check to see if the nm accepts a BSD-compat flag.
7188        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7189        #   nm: unknown option "B" ignored
7190        # Tru64's nm complains that /dev/null is an invalid object file
7191        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7192        */dev/null* | *'Invalid file or object type'*)
7193          lt_cv_path_NM="$tmp_nm -B"
7194          break
7195          ;;
7196        *)
7197          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7198          */dev/null*)
7199            lt_cv_path_NM="$tmp_nm -p"
7200            break
7201            ;;
7202          *)
7203            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7204            continue # so that we can try to find one that supports BSD flags
7205            ;;
7206          esac
7207          ;;
7208        esac
7209      fi
7210    done
7211    IFS="$lt_save_ifs"
7212  done
7213  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7214fi
7215fi
7216echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7217echo "${ECHO_T}$lt_cv_path_NM" >&6
7218NM="$lt_cv_path_NM"
7219
7220echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7221echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7222if test "${lt_cv_deplibs_check_method+set}" = set; then
7223  echo $ECHO_N "(cached) $ECHO_C" >&6
7224else
7225  lt_cv_file_magic_cmd='$MAGIC_CMD'
7226lt_cv_file_magic_test_file=
7227lt_cv_deplibs_check_method='unknown'
7228# Need to set the preceding variable on all platforms that support
7229# interlibrary dependencies.
7230# 'none' -- dependencies not supported.
7231# `unknown' -- same as none, but documents that we really don't know.
7232# 'pass_all' -- all dependencies passed with no checks.
7233# 'test_compile' -- check by making test program.
7234# 'file_magic [[regex]]' -- check by looking for files in library path
7235# which responds to the $file_magic_cmd with a given extended regex.
7236# If you have `file' or equivalent on your system and you're not sure
7237# whether `pass_all' will *always* work, you probably want this one.
7238
7239case $host_os in
7240aix4* | aix5*)
7241  lt_cv_deplibs_check_method=pass_all
7242  ;;
7243
7244beos*)
7245  lt_cv_deplibs_check_method=pass_all
7246  ;;
7247
7248bsdi[45]*)
7249  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7250  lt_cv_file_magic_cmd='/usr/bin/file -L'
7251  lt_cv_file_magic_test_file=/shlib/libc.so
7252  ;;
7253
7254cygwin*)
7255  # func_win32_libid is a shell function defined in ltmain.sh
7256  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7257  lt_cv_file_magic_cmd='func_win32_libid'
7258  ;;
7259
7260mingw* | pw32*)
7261  # Base MSYS/MinGW do not provide the 'file' command needed by
7262  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7263  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7264  lt_cv_file_magic_cmd='$OBJDUMP -f'
7265  ;;
7266
7267darwin* | rhapsody*)
7268  lt_cv_deplibs_check_method=pass_all
7269  ;;
7270
7271freebsd* | kfreebsd*-gnu | dragonfly*)
7272  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7273    case $host_cpu in
7274    i*86 )
7275      # Not sure whether the presence of OpenBSD here was a mistake.
7276      # Let's accept both of them until this is cleared up.
7277      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7278      lt_cv_file_magic_cmd=/usr/bin/file
7279      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7280      ;;
7281    esac
7282  else
7283    lt_cv_deplibs_check_method=pass_all
7284  fi
7285  ;;
7286
7287gnu*)
7288  lt_cv_deplibs_check_method=pass_all
7289  ;;
7290
7291hpux10.20* | hpux11*)
7292  lt_cv_file_magic_cmd=/usr/bin/file
7293  case $host_cpu in
7294  ia64*)
7295    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7296    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7297    ;;
7298  hppa*64*)
7299    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]'
7300    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7301    ;;
7302  *)
7303    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7304    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7305    ;;
7306  esac
7307  ;;
7308
7309interix3*)
7310  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7311  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7312  ;;
7313
7314irix5* | irix6* | nonstopux*)
7315  case $LD in
7316  *-32|*"-32 ") libmagic=32-bit;;
7317  *-n32|*"-n32 ") libmagic=N32;;
7318  *-64|*"-64 ") libmagic=64-bit;;
7319  *) libmagic=never-match;;
7320  esac
7321  lt_cv_deplibs_check_method=pass_all
7322  ;;
7323
7324# This must be Linux ELF.
7325linux*)
7326  lt_cv_deplibs_check_method=pass_all
7327  ;;
7328
7329netbsd*)
7330  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7331    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7332  else
7333    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7334  fi
7335  ;;
7336
7337newos6*)
7338  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7339  lt_cv_file_magic_cmd=/usr/bin/file
7340  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7341  ;;
7342
7343nto-qnx*)
7344  lt_cv_deplibs_check_method=unknown
7345  ;;
7346
7347openbsd*)
7348  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7349    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7350  else
7351    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7352  fi
7353  ;;
7354
7355osf3* | osf4* | osf5*)
7356  lt_cv_deplibs_check_method=pass_all
7357  ;;
7358
7359solaris*)
7360  lt_cv_deplibs_check_method=pass_all
7361  ;;
7362
7363sysv4 | sysv4.3*)
7364  case $host_vendor in
7365  motorola)
7366    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]'
7367    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7368    ;;
7369  ncr)
7370    lt_cv_deplibs_check_method=pass_all
7371    ;;
7372  sequent)
7373    lt_cv_file_magic_cmd='/bin/file'
7374    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7375    ;;
7376  sni)
7377    lt_cv_file_magic_cmd='/bin/file'
7378    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7379    lt_cv_file_magic_test_file=/lib/libc.so
7380    ;;
7381  siemens)
7382    lt_cv_deplibs_check_method=pass_all
7383    ;;
7384  pc)
7385    lt_cv_deplibs_check_method=pass_all
7386    ;;
7387  esac
7388  ;;
7389
7390sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7391  lt_cv_deplibs_check_method=pass_all
7392  ;;
7393esac
7394
7395fi
7396echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7397echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7398file_magic_cmd=$lt_cv_file_magic_cmd
7399deplibs_check_method=$lt_cv_deplibs_check_method
7400test -z "$deplibs_check_method" && deplibs_check_method=unknown
7401
7402
7403
7404
7405# If no C compiler was specified, use CC.
7406LTCC=${LTCC-"$CC"}
7407
7408# If no C compiler flags were specified, use CFLAGS.
7409LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7410
7411# Allow CC to be a program name with arguments.
7412compiler=$CC
7413
7414# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7415if test "${enable_libtool_lock+set}" = set; then
7416  enableval="$enable_libtool_lock"
7417
7418fi;
7419test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7420
7421# Some flags need to be propagated to the compiler or linker for good
7422# libtool support.
7423case $host in
7424ia64-*-hpux*)
7425  # Find out which ABI we are using.
7426  echo 'int i;' > conftest.$ac_ext
7427  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428  (eval $ac_compile) 2>&5
7429  ac_status=$?
7430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431  (exit $ac_status); }; then
7432    case `/usr/bin/file conftest.$ac_objext` in
7433    *ELF-32*)
7434      HPUX_IA64_MODE="32"
7435      ;;
7436    *ELF-64*)
7437      HPUX_IA64_MODE="64"
7438      ;;
7439    esac
7440  fi
7441  rm -rf conftest*
7442  ;;
7443*-*-irix6*)
7444  # Find out which ABI we are using.
7445  echo '#line 7445 "configure"' > conftest.$ac_ext
7446  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7447  (eval $ac_compile) 2>&5
7448  ac_status=$?
7449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450  (exit $ac_status); }; then
7451   if test "$lt_cv_prog_gnu_ld" = yes; then
7452    case `/usr/bin/file conftest.$ac_objext` in
7453    *32-bit*)
7454      LD="${LD-ld} -melf32bsmip"
7455      ;;
7456    *N32*)
7457      LD="${LD-ld} -melf32bmipn32"
7458      ;;
7459    *64-bit*)
7460      LD="${LD-ld} -melf64bmip"
7461      ;;
7462    esac
7463   else
7464    case `/usr/bin/file conftest.$ac_objext` in
7465    *32-bit*)
7466      LD="${LD-ld} -32"
7467      ;;
7468    *N32*)
7469      LD="${LD-ld} -n32"
7470      ;;
7471    *64-bit*)
7472      LD="${LD-ld} -64"
7473      ;;
7474    esac
7475   fi
7476  fi
7477  rm -rf conftest*
7478  ;;
7479
7480x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7481  # Find out which ABI we are using.
7482  echo 'int i;' > conftest.$ac_ext
7483  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484  (eval $ac_compile) 2>&5
7485  ac_status=$?
7486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487  (exit $ac_status); }; then
7488    case `/usr/bin/file conftest.o` in
7489    *32-bit*)
7490      case $host in
7491        x86_64-*linux*)
7492          LD="${LD-ld} -m elf_i386"
7493          ;;
7494        ppc64-*linux*|powerpc64-*linux*)
7495          LD="${LD-ld} -m elf32ppclinux"
7496          ;;
7497        s390x-*linux*)
7498          LD="${LD-ld} -m elf_s390"
7499          ;;
7500        sparc64-*linux*)
7501          LD="${LD-ld} -m elf32_sparc"
7502          ;;
7503      esac
7504      ;;
7505    *64-bit*)
7506      case $host in
7507        x86_64-*linux*)
7508          LD="${LD-ld} -m elf_x86_64"
7509          ;;
7510        ppc*-*linux*|powerpc*-*linux*)
7511          LD="${LD-ld} -m elf64ppc"
7512          ;;
7513        s390*-*linux*)
7514          LD="${LD-ld} -m elf64_s390"
7515          ;;
7516        sparc*-*linux*)
7517          LD="${LD-ld} -m elf64_sparc"
7518          ;;
7519      esac
7520      ;;
7521    esac
7522  fi
7523  rm -rf conftest*
7524  ;;
7525
7526*-*-sco3.2v5*)
7527  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7528  SAVE_CFLAGS="$CFLAGS"
7529  CFLAGS="$CFLAGS -belf"
7530  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7531echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7532if test "${lt_cv_cc_needs_belf+set}" = set; then
7533  echo $ECHO_N "(cached) $ECHO_C" >&6
7534else
7535  ac_ext=c
7536ac_cpp='$CPP $CPPFLAGS'
7537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7539ac_compiler_gnu=$ac_cv_c_compiler_gnu
7540
7541     cat >conftest.$ac_ext <<_ACEOF
7542/* confdefs.h.  */
7543_ACEOF
7544cat confdefs.h >>conftest.$ac_ext
7545cat >>conftest.$ac_ext <<_ACEOF
7546/* end confdefs.h.  */
7547
7548#ifdef F77_DUMMY_MAIN
7549
7550#  ifdef __cplusplus
7551     extern "C"
7552#  endif
7553   int F77_DUMMY_MAIN() { return 1; }
7554
7555#endif
7556int
7557main ()
7558{
7559
7560  ;
7561  return 0;
7562}
7563_ACEOF
7564rm -f conftest.$ac_objext conftest$ac_exeext
7565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7566  (eval $ac_link) 2>conftest.er1
7567  ac_status=$?
7568  grep -v '^ *+' conftest.er1 >conftest.err
7569  rm -f conftest.er1
7570  cat conftest.err >&5
7571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572  (exit $ac_status); } &&
7573         { ac_try='test -z "$ac_c_werror_flag"
7574                         || test ! -s conftest.err'
7575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576  (eval $ac_try) 2>&5
7577  ac_status=$?
7578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579  (exit $ac_status); }; } &&
7580         { ac_try='test -s conftest$ac_exeext'
7581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582  (eval $ac_try) 2>&5
7583  ac_status=$?
7584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585  (exit $ac_status); }; }; then
7586  lt_cv_cc_needs_belf=yes
7587else
7588  echo "$as_me: failed program was:" >&5
7589sed 's/^/| /' conftest.$ac_ext >&5
7590
7591lt_cv_cc_needs_belf=no
7592fi
7593rm -f conftest.err conftest.$ac_objext \
7594      conftest$ac_exeext conftest.$ac_ext
7595     ac_ext=c
7596ac_cpp='$CPP $CPPFLAGS'
7597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7599ac_compiler_gnu=$ac_cv_c_compiler_gnu
7600
7601fi
7602echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7603echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7604  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7605    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7606    CFLAGS="$SAVE_CFLAGS"
7607  fi
7608  ;;
7609sparc*-*solaris*)
7610  # Find out which ABI we are using.
7611  echo 'int i;' > conftest.$ac_ext
7612  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7613  (eval $ac_compile) 2>&5
7614  ac_status=$?
7615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616  (exit $ac_status); }; then
7617    case `/usr/bin/file conftest.o` in
7618    *64-bit*)
7619      case $lt_cv_prog_gnu_ld in
7620      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7621      *)    LD="${LD-ld} -64" ;;
7622      esac
7623      ;;
7624    esac
7625  fi
7626  rm -rf conftest*
7627  ;;
7628
7629
7630esac
7631
7632need_locks="$enable_libtool_lock"
7633
7634
7635
7636for ac_header in dlfcn.h
7637do
7638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7639if eval "test \"\${$as_ac_Header+set}\" = set"; then
7640  echo "$as_me:$LINENO: checking for $ac_header" >&5
7641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7642if eval "test \"\${$as_ac_Header+set}\" = set"; then
7643  echo $ECHO_N "(cached) $ECHO_C" >&6
7644fi
7645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7647else
7648  # Is the header compilable?
7649echo "$as_me:$LINENO: checking $ac_header usability" >&5
7650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7651cat >conftest.$ac_ext <<_ACEOF
7652/* confdefs.h.  */
7653_ACEOF
7654cat confdefs.h >>conftest.$ac_ext
7655cat >>conftest.$ac_ext <<_ACEOF
7656/* end confdefs.h.  */
7657$ac_includes_default
7658#include <$ac_header>
7659_ACEOF
7660rm -f conftest.$ac_objext
7661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7662  (eval $ac_compile) 2>conftest.er1
7663  ac_status=$?
7664  grep -v '^ *+' conftest.er1 >conftest.err
7665  rm -f conftest.er1
7666  cat conftest.err >&5
7667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668  (exit $ac_status); } &&
7669         { ac_try='test -z "$ac_c_werror_flag"
7670                         || test ! -s conftest.err'
7671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672  (eval $ac_try) 2>&5
7673  ac_status=$?
7674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675  (exit $ac_status); }; } &&
7676         { ac_try='test -s conftest.$ac_objext'
7677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678  (eval $ac_try) 2>&5
7679  ac_status=$?
7680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681  (exit $ac_status); }; }; then
7682  ac_header_compiler=yes
7683else
7684  echo "$as_me: failed program was:" >&5
7685sed 's/^/| /' conftest.$ac_ext >&5
7686
7687ac_header_compiler=no
7688fi
7689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7690echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7691echo "${ECHO_T}$ac_header_compiler" >&6
7692
7693# Is the header present?
7694echo "$as_me:$LINENO: checking $ac_header presence" >&5
7695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7696cat >conftest.$ac_ext <<_ACEOF
7697/* confdefs.h.  */
7698_ACEOF
7699cat confdefs.h >>conftest.$ac_ext
7700cat >>conftest.$ac_ext <<_ACEOF
7701/* end confdefs.h.  */
7702#include <$ac_header>
7703_ACEOF
7704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7705  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7706  ac_status=$?
7707  grep -v '^ *+' conftest.er1 >conftest.err
7708  rm -f conftest.er1
7709  cat conftest.err >&5
7710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711  (exit $ac_status); } >/dev/null; then
7712  if test -s conftest.err; then
7713    ac_cpp_err=$ac_c_preproc_warn_flag
7714    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7715  else
7716    ac_cpp_err=
7717  fi
7718else
7719  ac_cpp_err=yes
7720fi
7721if test -z "$ac_cpp_err"; then
7722  ac_header_preproc=yes
7723else
7724  echo "$as_me: failed program was:" >&5
7725sed 's/^/| /' conftest.$ac_ext >&5
7726
7727  ac_header_preproc=no
7728fi
7729rm -f conftest.err conftest.$ac_ext
7730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7731echo "${ECHO_T}$ac_header_preproc" >&6
7732
7733# So?  What about this header?
7734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7735  yes:no: )
7736    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7738    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7740    ac_header_preproc=yes
7741    ;;
7742  no:yes:* )
7743    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7745    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7746echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7747    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7749    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7750echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7751    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7753    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7755    (
7756      cat <<\_ASBOX
7757## --------------------------------------------------------------- ##
7758## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7759## --------------------------------------------------------------- ##
7760_ASBOX
7761    ) |
7762      sed "s/^/$as_me: WARNING:     /" >&2
7763    ;;
7764esac
7765echo "$as_me:$LINENO: checking for $ac_header" >&5
7766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7767if eval "test \"\${$as_ac_Header+set}\" = set"; then
7768  echo $ECHO_N "(cached) $ECHO_C" >&6
7769else
7770  eval "$as_ac_Header=\$ac_header_preproc"
7771fi
7772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7774
7775fi
7776if test `eval echo '${'$as_ac_Header'}'` = yes; then
7777  cat >>confdefs.h <<_ACEOF
7778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7779_ACEOF
7780
7781fi
7782
7783done
7784
7785ac_ext=cc
7786ac_cpp='$CXXCPP $CPPFLAGS'
7787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7790if test -n "$ac_tool_prefix"; then
7791  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7792  do
7793    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7794set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7795echo "$as_me:$LINENO: checking for $ac_word" >&5
7796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7797if test "${ac_cv_prog_CXX+set}" = set; then
7798  echo $ECHO_N "(cached) $ECHO_C" >&6
7799else
7800  if test -n "$CXX"; then
7801  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7802else
7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806  IFS=$as_save_IFS
7807  test -z "$as_dir" && as_dir=.
7808  for ac_exec_ext in '' $ac_executable_extensions; do
7809  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7811    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812    break 2
7813  fi
7814done
7815done
7816
7817fi
7818fi
7819CXX=$ac_cv_prog_CXX
7820if test -n "$CXX"; then
7821  echo "$as_me:$LINENO: result: $CXX" >&5
7822echo "${ECHO_T}$CXX" >&6
7823else
7824  echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826fi
7827
7828    test -n "$CXX" && break
7829  done
7830fi
7831if test -z "$CXX"; then
7832  ac_ct_CXX=$CXX
7833  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7834do
7835  # Extract the first word of "$ac_prog", so it can be a program name with args.
7836set dummy $ac_prog; ac_word=$2
7837echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7840  echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842  if test -n "$ac_ct_CXX"; then
7843  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7844else
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848  IFS=$as_save_IFS
7849  test -z "$as_dir" && as_dir=.
7850  for ac_exec_ext in '' $ac_executable_extensions; do
7851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852    ac_cv_prog_ac_ct_CXX="$ac_prog"
7853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854    break 2
7855  fi
7856done
7857done
7858
7859fi
7860fi
7861ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7862if test -n "$ac_ct_CXX"; then
7863  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7864echo "${ECHO_T}$ac_ct_CXX" >&6
7865else
7866  echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
7868fi
7869
7870  test -n "$ac_ct_CXX" && break
7871done
7872test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7873
7874  CXX=$ac_ct_CXX
7875fi
7876
7877
7878# Provide some information about the compiler.
7879echo "$as_me:$LINENO:" \
7880     "checking for C++ compiler version" >&5
7881ac_compiler=`set X $ac_compile; echo $2`
7882{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7883  (eval $ac_compiler --version </dev/null >&5) 2>&5
7884  ac_status=$?
7885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886  (exit $ac_status); }
7887{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7888  (eval $ac_compiler -v </dev/null >&5) 2>&5
7889  ac_status=$?
7890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891  (exit $ac_status); }
7892{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7893  (eval $ac_compiler -V </dev/null >&5) 2>&5
7894  ac_status=$?
7895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896  (exit $ac_status); }
7897
7898echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7899echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7900if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7901  echo $ECHO_N "(cached) $ECHO_C" >&6
7902else
7903  cat >conftest.$ac_ext <<_ACEOF
7904/* confdefs.h.  */
7905_ACEOF
7906cat confdefs.h >>conftest.$ac_ext
7907cat >>conftest.$ac_ext <<_ACEOF
7908/* end confdefs.h.  */
7909
7910#ifdef F77_DUMMY_MAIN
7911
7912#  ifdef __cplusplus
7913     extern "C"
7914#  endif
7915   int F77_DUMMY_MAIN() { return 1; }
7916
7917#endif
7918int
7919main ()
7920{
7921#ifndef __GNUC__
7922       choke me
7923#endif
7924
7925  ;
7926  return 0;
7927}
7928_ACEOF
7929rm -f conftest.$ac_objext
7930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7931  (eval $ac_compile) 2>conftest.er1
7932  ac_status=$?
7933  grep -v '^ *+' conftest.er1 >conftest.err
7934  rm -f conftest.er1
7935  cat conftest.err >&5
7936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937  (exit $ac_status); } &&
7938         { ac_try='test -z "$ac_cxx_werror_flag"
7939                         || test ! -s conftest.err'
7940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941  (eval $ac_try) 2>&5
7942  ac_status=$?
7943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944  (exit $ac_status); }; } &&
7945         { ac_try='test -s conftest.$ac_objext'
7946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947  (eval $ac_try) 2>&5
7948  ac_status=$?
7949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950  (exit $ac_status); }; }; then
7951  ac_compiler_gnu=yes
7952else
7953  echo "$as_me: failed program was:" >&5
7954sed 's/^/| /' conftest.$ac_ext >&5
7955
7956ac_compiler_gnu=no
7957fi
7958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7959ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7960
7961fi
7962echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7963echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7964GXX=`test $ac_compiler_gnu = yes && echo yes`
7965ac_test_CXXFLAGS=${CXXFLAGS+set}
7966ac_save_CXXFLAGS=$CXXFLAGS
7967CXXFLAGS="-g"
7968echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7969echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7970if test "${ac_cv_prog_cxx_g+set}" = set; then
7971  echo $ECHO_N "(cached) $ECHO_C" >&6
7972else
7973  cat >conftest.$ac_ext <<_ACEOF
7974/* confdefs.h.  */
7975_ACEOF
7976cat confdefs.h >>conftest.$ac_ext
7977cat >>conftest.$ac_ext <<_ACEOF
7978/* end confdefs.h.  */
7979
7980#ifdef F77_DUMMY_MAIN
7981
7982#  ifdef __cplusplus
7983     extern "C"
7984#  endif
7985   int F77_DUMMY_MAIN() { return 1; }
7986
7987#endif
7988int
7989main ()
7990{
7991
7992  ;
7993  return 0;
7994}
7995_ACEOF
7996rm -f conftest.$ac_objext
7997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998  (eval $ac_compile) 2>conftest.er1
7999  ac_status=$?
8000  grep -v '^ *+' conftest.er1 >conftest.err
8001  rm -f conftest.er1
8002  cat conftest.err >&5
8003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004  (exit $ac_status); } &&
8005         { ac_try='test -z "$ac_cxx_werror_flag"
8006                         || test ! -s conftest.err'
8007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008  (eval $ac_try) 2>&5
8009  ac_status=$?
8010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011  (exit $ac_status); }; } &&
8012         { ac_try='test -s conftest.$ac_objext'
8013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014  (eval $ac_try) 2>&5
8015  ac_status=$?
8016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017  (exit $ac_status); }; }; then
8018  ac_cv_prog_cxx_g=yes
8019else
8020  echo "$as_me: failed program was:" >&5
8021sed 's/^/| /' conftest.$ac_ext >&5
8022
8023ac_cv_prog_cxx_g=no
8024fi
8025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8026fi
8027echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8028echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8029if test "$ac_test_CXXFLAGS" = set; then
8030  CXXFLAGS=$ac_save_CXXFLAGS
8031elif test $ac_cv_prog_cxx_g = yes; then
8032  if test "$GXX" = yes; then
8033    CXXFLAGS="-g -O2"
8034  else
8035    CXXFLAGS="-g"
8036  fi
8037else
8038  if test "$GXX" = yes; then
8039    CXXFLAGS="-O2"
8040  else
8041    CXXFLAGS=
8042  fi
8043fi
8044for ac_declaration in \
8045   '' \
8046   'extern "C" void std::exit (int) throw (); using std::exit;' \
8047   'extern "C" void std::exit (int); using std::exit;' \
8048   'extern "C" void exit (int) throw ();' \
8049   'extern "C" void exit (int);' \
8050   'void exit (int);'
8051do
8052  cat >conftest.$ac_ext <<_ACEOF
8053/* confdefs.h.  */
8054_ACEOF
8055cat confdefs.h >>conftest.$ac_ext
8056cat >>conftest.$ac_ext <<_ACEOF
8057/* end confdefs.h.  */
8058$ac_declaration
8059#include <stdlib.h>
8060#ifdef F77_DUMMY_MAIN
8061
8062#  ifdef __cplusplus
8063     extern "C"
8064#  endif
8065   int F77_DUMMY_MAIN() { return 1; }
8066
8067#endif
8068int
8069main ()
8070{
8071exit (42);
8072  ;
8073  return 0;
8074}
8075_ACEOF
8076rm -f conftest.$ac_objext
8077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078  (eval $ac_compile) 2>conftest.er1
8079  ac_status=$?
8080  grep -v '^ *+' conftest.er1 >conftest.err
8081  rm -f conftest.er1
8082  cat conftest.err >&5
8083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084  (exit $ac_status); } &&
8085         { ac_try='test -z "$ac_cxx_werror_flag"
8086                         || test ! -s conftest.err'
8087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088  (eval $ac_try) 2>&5
8089  ac_status=$?
8090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091  (exit $ac_status); }; } &&
8092         { ac_try='test -s conftest.$ac_objext'
8093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094  (eval $ac_try) 2>&5
8095  ac_status=$?
8096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097  (exit $ac_status); }; }; then
8098  :
8099else
8100  echo "$as_me: failed program was:" >&5
8101sed 's/^/| /' conftest.$ac_ext >&5
8102
8103continue
8104fi
8105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8106  cat >conftest.$ac_ext <<_ACEOF
8107/* confdefs.h.  */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h.  */
8112$ac_declaration
8113#ifdef F77_DUMMY_MAIN
8114
8115#  ifdef __cplusplus
8116     extern "C"
8117#  endif
8118   int F77_DUMMY_MAIN() { return 1; }
8119
8120#endif
8121int
8122main ()
8123{
8124exit (42);
8125  ;
8126  return 0;
8127}
8128_ACEOF
8129rm -f conftest.$ac_objext
8130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8131  (eval $ac_compile) 2>conftest.er1
8132  ac_status=$?
8133  grep -v '^ *+' conftest.er1 >conftest.err
8134  rm -f conftest.er1
8135  cat conftest.err >&5
8136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137  (exit $ac_status); } &&
8138         { ac_try='test -z "$ac_cxx_werror_flag"
8139                         || test ! -s conftest.err'
8140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141  (eval $ac_try) 2>&5
8142  ac_status=$?
8143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144  (exit $ac_status); }; } &&
8145         { ac_try='test -s conftest.$ac_objext'
8146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147  (eval $ac_try) 2>&5
8148  ac_status=$?
8149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150  (exit $ac_status); }; }; then
8151  break
8152else
8153  echo "$as_me: failed program was:" >&5
8154sed 's/^/| /' conftest.$ac_ext >&5
8155
8156fi
8157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8158done
8159rm -f conftest*
8160if test -n "$ac_declaration"; then
8161  echo '#ifdef __cplusplus' >>confdefs.h
8162  echo $ac_declaration      >>confdefs.h
8163  echo '#endif'             >>confdefs.h
8164fi
8165
8166ac_ext=cc
8167ac_cpp='$CXXCPP $CPPFLAGS'
8168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8171
8172depcc="$CXX"  am_compiler_list=
8173
8174echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8175echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8176if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8177  echo $ECHO_N "(cached) $ECHO_C" >&6
8178else
8179  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8180  # We make a subdir and do the tests there.  Otherwise we can end up
8181  # making bogus files that we don't know about and never remove.  For
8182  # instance it was reported that on HP-UX the gcc test will end up
8183  # making a dummy file named `D' -- because `-MD' means `put the output
8184  # in D'.
8185  mkdir conftest.dir
8186  # Copy depcomp to subdir because otherwise we won't find it if we're
8187  # using a relative directory.
8188  cp "$am_depcomp" conftest.dir
8189  cd conftest.dir
8190  # We will build objects and dependencies in a subdirectory because
8191  # it helps to detect inapplicable dependency modes.  For instance
8192  # both Tru64's cc and ICC support -MD to output dependencies as a
8193  # side effect of compilation, but ICC will put the dependencies in
8194  # the current directory while Tru64 will put them in the object
8195  # directory.
8196  mkdir sub
8197
8198  am_cv_CXX_dependencies_compiler_type=none
8199  if test "$am_compiler_list" = ""; then
8200     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8201  fi
8202  for depmode in $am_compiler_list; do
8203    # Setup a source with many dependencies, because some compilers
8204    # like to wrap large dependency lists on column 80 (with \), and
8205    # we should not choose a depcomp mode which is confused by this.
8206    #
8207    # We need to recreate these files for each test, as the compiler may
8208    # overwrite some of them when testing with obscure command lines.
8209    # This happens at least with the AIX C compiler.
8210    : > sub/conftest.c
8211    for i in 1 2 3 4 5 6; do
8212      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8213      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8214      # Solaris 8's {/usr,}/bin/sh.
8215      touch sub/conftst$i.h
8216    done
8217    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8218
8219    case $depmode in
8220    nosideeffect)
8221      # after this tag, mechanisms are not by side-effect, so they'll
8222      # only be used when explicitly requested
8223      if test "x$enable_dependency_tracking" = xyes; then
8224        continue
8225      else
8226        break
8227      fi
8228      ;;
8229    none) break ;;
8230    esac
8231    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8232    # mode.  It turns out that the SunPro C++ compiler does not properly
8233    # handle `-M -o', and we need to detect this.
8234    if depmode=$depmode \
8235       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8236       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8237       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8238         >/dev/null 2>conftest.err &&
8239       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8240       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8241       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8242      # icc doesn't choke on unknown options, it will just issue warnings
8243      # or remarks (even with -Werror).  So we grep stderr for any message
8244      # that says an option was ignored or not supported.
8245      # When given -MP, icc 7.0 and 7.1 complain thusly:
8246      #   icc: Command line warning: ignoring option '-M'; no argument required
8247      # The diagnosis changed in icc 8.0:
8248      #   icc: Command line remark: option '-MP' not supported
8249      if (grep 'ignoring option' conftest.err ||
8250          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8251        am_cv_CXX_dependencies_compiler_type=$depmode
8252        break
8253      fi
8254    fi
8255  done
8256
8257  cd ..
8258  rm -rf conftest.dir
8259else
8260  am_cv_CXX_dependencies_compiler_type=none
8261fi
8262
8263fi
8264echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8265echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8266CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8267
8268
8269
8270if
8271  test "x$enable_dependency_tracking" != xno \
8272  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8273  am__fastdepCXX_TRUE=
8274  am__fastdepCXX_FALSE='#'
8275else
8276  am__fastdepCXX_TRUE='#'
8277  am__fastdepCXX_FALSE=
8278fi
8279
8280
8281
8282
8283if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8284    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8285    (test "X$CXX" != "Xg++"))) ; then
8286  ac_ext=cc
8287ac_cpp='$CXXCPP $CPPFLAGS'
8288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8291echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8292echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8293if test -z "$CXXCPP"; then
8294  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8295  echo $ECHO_N "(cached) $ECHO_C" >&6
8296else
8297      # Double quotes because CXXCPP needs to be expanded
8298    for CXXCPP in "$CXX -E" "/lib/cpp"
8299    do
8300      ac_preproc_ok=false
8301for ac_cxx_preproc_warn_flag in '' yes
8302do
8303  # Use a header file that comes with gcc, so configuring glibc
8304  # with a fresh cross-compiler works.
8305  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8306  # <limits.h> exists even on freestanding compilers.
8307  # On the NeXT, cc -E runs the code through the compiler's parser,
8308  # not just through cpp. "Syntax error" is here to catch this case.
8309  cat >conftest.$ac_ext <<_ACEOF
8310/* confdefs.h.  */
8311_ACEOF
8312cat confdefs.h >>conftest.$ac_ext
8313cat >>conftest.$ac_ext <<_ACEOF
8314/* end confdefs.h.  */
8315#ifdef __STDC__
8316# include <limits.h>
8317#else
8318# include <assert.h>
8319#endif
8320                     Syntax error
8321_ACEOF
8322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8323  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8324  ac_status=$?
8325  grep -v '^ *+' conftest.er1 >conftest.err
8326  rm -f conftest.er1
8327  cat conftest.err >&5
8328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329  (exit $ac_status); } >/dev/null; then
8330  if test -s conftest.err; then
8331    ac_cpp_err=$ac_cxx_preproc_warn_flag
8332    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8333  else
8334    ac_cpp_err=
8335  fi
8336else
8337  ac_cpp_err=yes
8338fi
8339if test -z "$ac_cpp_err"; then
8340  :
8341else
8342  echo "$as_me: failed program was:" >&5
8343sed 's/^/| /' conftest.$ac_ext >&5
8344
8345  # Broken: fails on valid input.
8346continue
8347fi
8348rm -f conftest.err conftest.$ac_ext
8349
8350  # OK, works on sane cases.  Now check whether non-existent headers
8351  # can be detected and how.
8352  cat >conftest.$ac_ext <<_ACEOF
8353/* confdefs.h.  */
8354_ACEOF
8355cat confdefs.h >>conftest.$ac_ext
8356cat >>conftest.$ac_ext <<_ACEOF
8357/* end confdefs.h.  */
8358#include <ac_nonexistent.h>
8359_ACEOF
8360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8361  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8362  ac_status=$?
8363  grep -v '^ *+' conftest.er1 >conftest.err
8364  rm -f conftest.er1
8365  cat conftest.err >&5
8366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367  (exit $ac_status); } >/dev/null; then
8368  if test -s conftest.err; then
8369    ac_cpp_err=$ac_cxx_preproc_warn_flag
8370    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8371  else
8372    ac_cpp_err=
8373  fi
8374else
8375  ac_cpp_err=yes
8376fi
8377if test -z "$ac_cpp_err"; then
8378  # Broken: success on invalid input.
8379continue
8380else
8381  echo "$as_me: failed program was:" >&5
8382sed 's/^/| /' conftest.$ac_ext >&5
8383
8384  # Passes both tests.
8385ac_preproc_ok=:
8386break
8387fi
8388rm -f conftest.err conftest.$ac_ext
8389
8390done
8391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8392rm -f conftest.err conftest.$ac_ext
8393if $ac_preproc_ok; then
8394  break
8395fi
8396
8397    done
8398    ac_cv_prog_CXXCPP=$CXXCPP
8399
8400fi
8401  CXXCPP=$ac_cv_prog_CXXCPP
8402else
8403  ac_cv_prog_CXXCPP=$CXXCPP
8404fi
8405echo "$as_me:$LINENO: result: $CXXCPP" >&5
8406echo "${ECHO_T}$CXXCPP" >&6
8407ac_preproc_ok=false
8408for ac_cxx_preproc_warn_flag in '' yes
8409do
8410  # Use a header file that comes with gcc, so configuring glibc
8411  # with a fresh cross-compiler works.
8412  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8413  # <limits.h> exists even on freestanding compilers.
8414  # On the NeXT, cc -E runs the code through the compiler's parser,
8415  # not just through cpp. "Syntax error" is here to catch this case.
8416  cat >conftest.$ac_ext <<_ACEOF
8417/* confdefs.h.  */
8418_ACEOF
8419cat confdefs.h >>conftest.$ac_ext
8420cat >>conftest.$ac_ext <<_ACEOF
8421/* end confdefs.h.  */
8422#ifdef __STDC__
8423# include <limits.h>
8424#else
8425# include <assert.h>
8426#endif
8427                     Syntax error
8428_ACEOF
8429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8430  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8431  ac_status=$?
8432  grep -v '^ *+' conftest.er1 >conftest.err
8433  rm -f conftest.er1
8434  cat conftest.err >&5
8435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436  (exit $ac_status); } >/dev/null; then
8437  if test -s conftest.err; then
8438    ac_cpp_err=$ac_cxx_preproc_warn_flag
8439    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8440  else
8441    ac_cpp_err=
8442  fi
8443else
8444  ac_cpp_err=yes
8445fi
8446if test -z "$ac_cpp_err"; then
8447  :
8448else
8449  echo "$as_me: failed program was:" >&5
8450sed 's/^/| /' conftest.$ac_ext >&5
8451
8452  # Broken: fails on valid input.
8453continue
8454fi
8455rm -f conftest.err conftest.$ac_ext
8456
8457  # OK, works on sane cases.  Now check whether non-existent headers
8458  # can be detected and how.
8459  cat >conftest.$ac_ext <<_ACEOF
8460/* confdefs.h.  */
8461_ACEOF
8462cat confdefs.h >>conftest.$ac_ext
8463cat >>conftest.$ac_ext <<_ACEOF
8464/* end confdefs.h.  */
8465#include <ac_nonexistent.h>
8466_ACEOF
8467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8468  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8469  ac_status=$?
8470  grep -v '^ *+' conftest.er1 >conftest.err
8471  rm -f conftest.er1
8472  cat conftest.err >&5
8473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474  (exit $ac_status); } >/dev/null; then
8475  if test -s conftest.err; then
8476    ac_cpp_err=$ac_cxx_preproc_warn_flag
8477    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8478  else
8479    ac_cpp_err=
8480  fi
8481else
8482  ac_cpp_err=yes
8483fi
8484if test -z "$ac_cpp_err"; then
8485  # Broken: success on invalid input.
8486continue
8487else
8488  echo "$as_me: failed program was:" >&5
8489sed 's/^/| /' conftest.$ac_ext >&5
8490
8491  # Passes both tests.
8492ac_preproc_ok=:
8493break
8494fi
8495rm -f conftest.err conftest.$ac_ext
8496
8497done
8498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8499rm -f conftest.err conftest.$ac_ext
8500if $ac_preproc_ok; then
8501  :
8502else
8503  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8504See \`config.log' for more details." >&5
8505echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8506See \`config.log' for more details." >&2;}
8507   { (exit 1); exit 1; }; }
8508fi
8509
8510ac_ext=cc
8511ac_cpp='$CXXCPP $CPPFLAGS'
8512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8515
8516fi
8517
8518
8519
8520# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8521
8522# find the maximum length of command line arguments
8523echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8524echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8525if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8526  echo $ECHO_N "(cached) $ECHO_C" >&6
8527else
8528    i=0
8529  teststring="ABCD"
8530
8531  case $build_os in
8532  msdosdjgpp*)
8533    # On DJGPP, this test can blow up pretty badly due to problems in libc
8534    # (any single argument exceeding 2000 bytes causes a buffer overrun
8535    # during glob expansion).  Even if it were fixed, the result of this
8536    # check would be larger than it should be.
8537    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8538    ;;
8539
8540  gnu*)
8541    # Under GNU Hurd, this test is not required because there is
8542    # no limit to the length of command line arguments.
8543    # Libtool will interpret -1 as no limit whatsoever
8544    lt_cv_sys_max_cmd_len=-1;
8545    ;;
8546
8547  cygwin* | mingw*)
8548    # On Win9x/ME, this test blows up -- it succeeds, but takes
8549    # about 5 minutes as the teststring grows exponentially.
8550    # Worse, since 9x/ME are not pre-emptively multitasking,
8551    # you end up with a "frozen" computer, even though with patience
8552    # the test eventually succeeds (with a max line length of 256k).
8553    # Instead, let's just punt: use the minimum linelength reported by
8554    # all of the supported platforms: 8192 (on NT/2K/XP).
8555    lt_cv_sys_max_cmd_len=8192;
8556    ;;
8557
8558  amigaos*)
8559    # On AmigaOS with pdksh, this test takes hours, literally.
8560    # So we just punt and use a minimum line length of 8192.
8561    lt_cv_sys_max_cmd_len=8192;
8562    ;;
8563
8564  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8565    # This has been around since 386BSD, at least.  Likely further.
8566    if test -x /sbin/sysctl; then
8567      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8568    elif test -x /usr/sbin/sysctl; then
8569      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8570    else
8571      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8572    fi
8573    # And add a safety zone
8574    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8575    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8576    ;;
8577
8578  interix*)
8579    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8580    lt_cv_sys_max_cmd_len=196608
8581    ;;
8582
8583  osf*)
8584    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8585    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8586    # nice to cause kernel panics so lets avoid the loop below.
8587    # First set a reasonable default.
8588    lt_cv_sys_max_cmd_len=16384
8589    #
8590    if test -x /sbin/sysconfig; then
8591      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8592        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8593      esac
8594    fi
8595    ;;
8596  sco3.2v5*)
8597    lt_cv_sys_max_cmd_len=102400
8598    ;;
8599  sysv5* | sco5v6* | sysv4.2uw2*)
8600    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8601    if test -n "$kargmax"; then
8602      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8603    else
8604      lt_cv_sys_max_cmd_len=32768
8605    fi
8606    ;;
8607  *)
8608    # If test is not a shell built-in, we'll probably end up computing a
8609    # maximum length that is only half of the actual maximum length, but
8610    # we can't tell.
8611    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8612    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8613               = "XX$teststring") >/dev/null 2>&1 &&
8614            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8615            lt_cv_sys_max_cmd_len=$new_result &&
8616            test $i != 17 # 1/2 MB should be enough
8617    do
8618      i=`expr $i + 1`
8619      teststring=$teststring$teststring
8620    done
8621    teststring=
8622    # Add a significant safety factor because C++ compilers can tack on massive
8623    # amounts of additional arguments before passing them to the linker.
8624    # It appears as though 1/2 is a usable value.
8625    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8626    ;;
8627  esac
8628
8629fi
8630
8631if test -n $lt_cv_sys_max_cmd_len ; then
8632  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8633echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8634else
8635  echo "$as_me:$LINENO: result: none" >&5
8636echo "${ECHO_T}none" >&6
8637fi
8638
8639
8640
8641
8642# Check for command to grab the raw symbol name followed by C symbol from nm.
8643echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8644echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8645if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8646  echo $ECHO_N "(cached) $ECHO_C" >&6
8647else
8648
8649# These are sane defaults that work on at least a few old systems.
8650# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8651
8652# Character class describing NM global symbol codes.
8653symcode='[BCDEGRST]'
8654
8655# Regexp to match symbols that can be accessed directly from C.
8656sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8657
8658# Transform an extracted symbol line into a proper C declaration
8659lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8660
8661# Transform an extracted symbol line into symbol name and symbol address
8662lt_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'"
8663
8664# Define system-specific variables.
8665case $host_os in
8666aix*)
8667  symcode='[BCDT]'
8668  ;;
8669cygwin* | mingw* | pw32*)
8670  symcode='[ABCDGISTW]'
8671  ;;
8672hpux*) # Its linker distinguishes data from code symbols
8673  if test "$host_cpu" = ia64; then
8674    symcode='[ABCDEGRST]'
8675  fi
8676  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8677  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'"
8678  ;;
8679linux*)
8680  if test "$host_cpu" = ia64; then
8681    symcode='[ABCDGIRSTW]'
8682    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8683    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'"
8684  fi
8685  ;;
8686irix* | nonstopux*)
8687  symcode='[BCDEGRST]'
8688  ;;
8689osf*)
8690  symcode='[BCDEGQRST]'
8691  ;;
8692solaris*)
8693  symcode='[BDRT]'
8694  ;;
8695sco3.2v5*)
8696  symcode='[DT]'
8697  ;;
8698sysv4.2uw2*)
8699  symcode='[DT]'
8700  ;;
8701sysv5* | sco5v6* | unixware* | OpenUNIX*)
8702  symcode='[ABDT]'
8703  ;;
8704sysv4)
8705  symcode='[DFNSTU]'
8706  ;;
8707esac
8708
8709# Handle CRLF in mingw tool chain
8710opt_cr=
8711case $build_os in
8712mingw*)
8713  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8714  ;;
8715esac
8716
8717# If we're using GNU nm, then use its standard symbol codes.
8718case `$NM -V 2>&1` in
8719*GNU* | *'with BFD'*)
8720  symcode='[ABCDGIRSTW]' ;;
8721esac
8722
8723# Try without a prefix undercore, then with it.
8724for ac_symprfx in "" "_"; do
8725
8726  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8727  symxfrm="\\1 $ac_symprfx\\2 \\2"
8728
8729  # Write the raw and C identifiers.
8730  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8731
8732  # Check to see that the pipe works correctly.
8733  pipe_works=no
8734
8735  rm -f conftest*
8736  cat > conftest.$ac_ext <<EOF
8737#ifdef __cplusplus
8738extern "C" {
8739#endif
8740char nm_test_var;
8741void nm_test_func(){}
8742#ifdef __cplusplus
8743}
8744#endif
8745int main(){nm_test_var='a';nm_test_func();return(0);}
8746EOF
8747
8748  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749  (eval $ac_compile) 2>&5
8750  ac_status=$?
8751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752  (exit $ac_status); }; then
8753    # Now try to grab the symbols.
8754    nlist=conftest.nm
8755    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8756  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8757  ac_status=$?
8758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759  (exit $ac_status); } && test -s "$nlist"; then
8760      # Try sorting and uniquifying the output.
8761      if sort "$nlist" | uniq > "$nlist"T; then
8762        mv -f "$nlist"T "$nlist"
8763      else
8764        rm -f "$nlist"T
8765      fi
8766
8767      # Make sure that we snagged all the symbols we need.
8768      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8769        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8770          cat <<EOF > conftest.$ac_ext
8771#ifdef __cplusplus
8772extern "C" {
8773#endif
8774
8775EOF
8776          # Now generate the symbol file.
8777          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8778
8779          cat <<EOF >> conftest.$ac_ext
8780#if defined (__STDC__) && __STDC__
8781# define lt_ptr_t void *
8782#else
8783# define lt_ptr_t char *
8784# define const
8785#endif
8786
8787/* The mapping between symbol names and symbols. */
8788const struct {
8789  const char *name;
8790  lt_ptr_t address;
8791}
8792lt_preloaded_symbols[] =
8793{
8794EOF
8795          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8796          cat <<\EOF >> conftest.$ac_ext
8797  {0, (lt_ptr_t) 0}
8798};
8799
8800#ifdef __cplusplus
8801}
8802#endif
8803EOF
8804          # Now try linking the two files.
8805          mv conftest.$ac_objext conftstm.$ac_objext
8806          lt_save_LIBS="$LIBS"
8807          lt_save_CFLAGS="$CFLAGS"
8808          LIBS="conftstm.$ac_objext"
8809          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8810          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8811  (eval $ac_link) 2>&5
8812  ac_status=$?
8813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8815            pipe_works=yes
8816          fi
8817          LIBS="$lt_save_LIBS"
8818          CFLAGS="$lt_save_CFLAGS"
8819        else
8820          echo "cannot find nm_test_func in $nlist" >&5
8821        fi
8822      else
8823        echo "cannot find nm_test_var in $nlist" >&5
8824      fi
8825    else
8826      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8827    fi
8828  else
8829    echo "$progname: failed program was:" >&5
8830    cat conftest.$ac_ext >&5
8831  fi
8832  rm -f conftest* conftst*
8833
8834  # Do not use the global_symbol_pipe unless it works.
8835  if test "$pipe_works" = yes; then
8836    break
8837  else
8838    lt_cv_sys_global_symbol_pipe=
8839  fi
8840done
8841
8842fi
8843
8844if test -z "$lt_cv_sys_global_symbol_pipe"; then
8845  lt_cv_sys_global_symbol_to_cdecl=
8846fi
8847if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8848  echo "$as_me:$LINENO: result: failed" >&5
8849echo "${ECHO_T}failed" >&6
8850else
8851  echo "$as_me:$LINENO: result: ok" >&5
8852echo "${ECHO_T}ok" >&6
8853fi
8854
8855echo "$as_me:$LINENO: checking for objdir" >&5
8856echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8857if test "${lt_cv_objdir+set}" = set; then
8858  echo $ECHO_N "(cached) $ECHO_C" >&6
8859else
8860  rm -f .libs 2>/dev/null
8861mkdir .libs 2>/dev/null
8862if test -d .libs; then
8863  lt_cv_objdir=.libs
8864else
8865  # MS-DOS does not allow filenames that begin with a dot.
8866  lt_cv_objdir=_libs
8867fi
8868rmdir .libs 2>/dev/null
8869fi
8870echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8871echo "${ECHO_T}$lt_cv_objdir" >&6
8872objdir=$lt_cv_objdir
8873
8874
8875
8876
8877
8878case $host_os in
8879aix3*)
8880  # AIX sometimes has problems with the GCC collect2 program.  For some
8881  # reason, if we set the COLLECT_NAMES environment variable, the problems
8882  # vanish in a puff of smoke.
8883  if test "X${COLLECT_NAMES+set}" != Xset; then
8884    COLLECT_NAMES=
8885    export COLLECT_NAMES
8886  fi
8887  ;;
8888esac
8889
8890# Sed substitution that helps us do robust quoting.  It backslashifies
8891# metacharacters that are still active within double-quoted strings.
8892Xsed='sed -e 1s/^X//'
8893sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8894
8895# Same as above, but do not quote variable references.
8896double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8897
8898# Sed substitution to delay expansion of an escaped shell variable in a
8899# double_quote_subst'ed string.
8900delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8901
8902# Sed substitution to avoid accidental globbing in evaled expressions
8903no_glob_subst='s/\*/\\\*/g'
8904
8905# Constants:
8906rm="rm -f"
8907
8908# Global variables:
8909default_ofile=libtool
8910can_build_shared=yes
8911
8912# All known linkers require a `.a' archive for static linking (except MSVC,
8913# which needs '.lib').
8914libext=a
8915ltmain="$ac_aux_dir/ltmain.sh"
8916ofile="$default_ofile"
8917with_gnu_ld="$lt_cv_prog_gnu_ld"
8918
8919if test -n "$ac_tool_prefix"; then
8920  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8921set dummy ${ac_tool_prefix}ar; ac_word=$2
8922echo "$as_me:$LINENO: checking for $ac_word" >&5
8923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8924if test "${ac_cv_prog_AR+set}" = set; then
8925  echo $ECHO_N "(cached) $ECHO_C" >&6
8926else
8927  if test -n "$AR"; then
8928  ac_cv_prog_AR="$AR" # Let the user override the test.
8929else
8930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931for as_dir in $PATH
8932do
8933  IFS=$as_save_IFS
8934  test -z "$as_dir" && as_dir=.
8935  for ac_exec_ext in '' $ac_executable_extensions; do
8936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8937    ac_cv_prog_AR="${ac_tool_prefix}ar"
8938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8939    break 2
8940  fi
8941done
8942done
8943
8944fi
8945fi
8946AR=$ac_cv_prog_AR
8947if test -n "$AR"; then
8948  echo "$as_me:$LINENO: result: $AR" >&5
8949echo "${ECHO_T}$AR" >&6
8950else
8951  echo "$as_me:$LINENO: result: no" >&5
8952echo "${ECHO_T}no" >&6
8953fi
8954
8955fi
8956if test -z "$ac_cv_prog_AR"; then
8957  ac_ct_AR=$AR
8958  # Extract the first word of "ar", so it can be a program name with args.
8959set dummy ar; ac_word=$2
8960echo "$as_me:$LINENO: checking for $ac_word" >&5
8961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8962if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8963  echo $ECHO_N "(cached) $ECHO_C" >&6
8964else
8965  if test -n "$ac_ct_AR"; then
8966  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8967else
8968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969for as_dir in $PATH
8970do
8971  IFS=$as_save_IFS
8972  test -z "$as_dir" && as_dir=.
8973  for ac_exec_ext in '' $ac_executable_extensions; do
8974  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8975    ac_cv_prog_ac_ct_AR="ar"
8976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8977    break 2
8978  fi
8979done
8980done
8981
8982  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8983fi
8984fi
8985ac_ct_AR=$ac_cv_prog_ac_ct_AR
8986if test -n "$ac_ct_AR"; then
8987  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8988echo "${ECHO_T}$ac_ct_AR" >&6
8989else
8990  echo "$as_me:$LINENO: result: no" >&5
8991echo "${ECHO_T}no" >&6
8992fi
8993
8994  AR=$ac_ct_AR
8995else
8996  AR="$ac_cv_prog_AR"
8997fi
8998
8999if test -n "$ac_tool_prefix"; then
9000  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9001set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9002echo "$as_me:$LINENO: checking for $ac_word" >&5
9003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9004if test "${ac_cv_prog_RANLIB+set}" = set; then
9005  echo $ECHO_N "(cached) $ECHO_C" >&6
9006else
9007  if test -n "$RANLIB"; then
9008  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9009else
9010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011for as_dir in $PATH
9012do
9013  IFS=$as_save_IFS
9014  test -z "$as_dir" && as_dir=.
9015  for ac_exec_ext in '' $ac_executable_extensions; do
9016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9019    break 2
9020  fi
9021done
9022done
9023
9024fi
9025fi
9026RANLIB=$ac_cv_prog_RANLIB
9027if test -n "$RANLIB"; then
9028  echo "$as_me:$LINENO: result: $RANLIB" >&5
9029echo "${ECHO_T}$RANLIB" >&6
9030else
9031  echo "$as_me:$LINENO: result: no" >&5
9032echo "${ECHO_T}no" >&6
9033fi
9034
9035fi
9036if test -z "$ac_cv_prog_RANLIB"; then
9037  ac_ct_RANLIB=$RANLIB
9038  # Extract the first word of "ranlib", so it can be a program name with args.
9039set dummy ranlib; ac_word=$2
9040echo "$as_me:$LINENO: checking for $ac_word" >&5
9041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9042if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9043  echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045  if test -n "$ac_ct_RANLIB"; then
9046  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9047else
9048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH
9050do
9051  IFS=$as_save_IFS
9052  test -z "$as_dir" && as_dir=.
9053  for ac_exec_ext in '' $ac_executable_extensions; do
9054  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055    ac_cv_prog_ac_ct_RANLIB="ranlib"
9056    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9057    break 2
9058  fi
9059done
9060done
9061
9062  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9063fi
9064fi
9065ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9066if test -n "$ac_ct_RANLIB"; then
9067  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9068echo "${ECHO_T}$ac_ct_RANLIB" >&6
9069else
9070  echo "$as_me:$LINENO: result: no" >&5
9071echo "${ECHO_T}no" >&6
9072fi
9073
9074  RANLIB=$ac_ct_RANLIB
9075else
9076  RANLIB="$ac_cv_prog_RANLIB"
9077fi
9078
9079if test -n "$ac_tool_prefix"; then
9080  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9081set dummy ${ac_tool_prefix}strip; ac_word=$2
9082echo "$as_me:$LINENO: checking for $ac_word" >&5
9083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9084if test "${ac_cv_prog_STRIP+set}" = set; then
9085  echo $ECHO_N "(cached) $ECHO_C" >&6
9086else
9087  if test -n "$STRIP"; then
9088  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9089else
9090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091for as_dir in $PATH
9092do
9093  IFS=$as_save_IFS
9094  test -z "$as_dir" && as_dir=.
9095  for ac_exec_ext in '' $ac_executable_extensions; do
9096  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9097    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9099    break 2
9100  fi
9101done
9102done
9103
9104fi
9105fi
9106STRIP=$ac_cv_prog_STRIP
9107if test -n "$STRIP"; then
9108  echo "$as_me:$LINENO: result: $STRIP" >&5
9109echo "${ECHO_T}$STRIP" >&6
9110else
9111  echo "$as_me:$LINENO: result: no" >&5
9112echo "${ECHO_T}no" >&6
9113fi
9114
9115fi
9116if test -z "$ac_cv_prog_STRIP"; then
9117  ac_ct_STRIP=$STRIP
9118  # Extract the first word of "strip", so it can be a program name with args.
9119set dummy strip; ac_word=$2
9120echo "$as_me:$LINENO: checking for $ac_word" >&5
9121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9122if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9123  echo $ECHO_N "(cached) $ECHO_C" >&6
9124else
9125  if test -n "$ac_ct_STRIP"; then
9126  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9127else
9128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129for as_dir in $PATH
9130do
9131  IFS=$as_save_IFS
9132  test -z "$as_dir" && as_dir=.
9133  for ac_exec_ext in '' $ac_executable_extensions; do
9134  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9135    ac_cv_prog_ac_ct_STRIP="strip"
9136    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9137    break 2
9138  fi
9139done
9140done
9141
9142  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9143fi
9144fi
9145ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9146if test -n "$ac_ct_STRIP"; then
9147  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9148echo "${ECHO_T}$ac_ct_STRIP" >&6
9149else
9150  echo "$as_me:$LINENO: result: no" >&5
9151echo "${ECHO_T}no" >&6
9152fi
9153
9154  STRIP=$ac_ct_STRIP
9155else
9156  STRIP="$ac_cv_prog_STRIP"
9157fi
9158
9159
9160old_CC="$CC"
9161old_CFLAGS="$CFLAGS"
9162
9163# Set sane defaults for various variables
9164test -z "$AR" && AR=ar
9165test -z "$AR_FLAGS" && AR_FLAGS=cru
9166test -z "$AS" && AS=as
9167test -z "$CC" && CC=cc
9168test -z "$LTCC" && LTCC=$CC
9169test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9170test -z "$DLLTOOL" && DLLTOOL=dlltool
9171test -z "$LD" && LD=ld
9172test -z "$LN_S" && LN_S="ln -s"
9173test -z "$MAGIC_CMD" && MAGIC_CMD=file
9174test -z "$NM" && NM=nm
9175test -z "$SED" && SED=sed
9176test -z "$OBJDUMP" && OBJDUMP=objdump
9177test -z "$RANLIB" && RANLIB=:
9178test -z "$STRIP" && STRIP=:
9179test -z "$ac_objext" && ac_objext=o
9180
9181# Determine commands to create old-style static archives.
9182old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9183old_postinstall_cmds='chmod 644 $oldlib'
9184old_postuninstall_cmds=
9185
9186if test -n "$RANLIB"; then
9187  case $host_os in
9188  openbsd*)
9189    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9190    ;;
9191  *)
9192    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9193    ;;
9194  esac
9195  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9196fi
9197
9198for cc_temp in $compiler""; do
9199  case $cc_temp in
9200    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9201    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9202    \-*) ;;
9203    *) break;;
9204  esac
9205done
9206cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9207
9208
9209# Only perform the check for file, if the check method requires it
9210case $deplibs_check_method in
9211file_magic*)
9212  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9213    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9214echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9215if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9216  echo $ECHO_N "(cached) $ECHO_C" >&6
9217else
9218  case $MAGIC_CMD in
9219[\\/*] |  ?:[\\/]*)
9220  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9221  ;;
9222*)
9223  lt_save_MAGIC_CMD="$MAGIC_CMD"
9224  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9225  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9226  for ac_dir in $ac_dummy; do
9227    IFS="$lt_save_ifs"
9228    test -z "$ac_dir" && ac_dir=.
9229    if test -f $ac_dir/${ac_tool_prefix}file; then
9230      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9231      if test -n "$file_magic_test_file"; then
9232        case $deplibs_check_method in
9233        "file_magic "*)
9234          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9235          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9236          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9237            $EGREP "$file_magic_regex" > /dev/null; then
9238            :
9239          else
9240            cat <<EOF 1>&2
9241
9242*** Warning: the command libtool uses to detect shared libraries,
9243*** $file_magic_cmd, produces output that libtool cannot recognize.
9244*** The result is that libtool may fail to recognize shared libraries
9245*** as such.  This will affect the creation of libtool libraries that
9246*** depend on shared libraries, but programs linked with such libtool
9247*** libraries will work regardless of this problem.  Nevertheless, you
9248*** may want to report the problem to your system manager and/or to
9249*** bug-libtool@gnu.org
9250
9251EOF
9252          fi ;;
9253        esac
9254      fi
9255      break
9256    fi
9257  done
9258  IFS="$lt_save_ifs"
9259  MAGIC_CMD="$lt_save_MAGIC_CMD"
9260  ;;
9261esac
9262fi
9263
9264MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9265if test -n "$MAGIC_CMD"; then
9266  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9267echo "${ECHO_T}$MAGIC_CMD" >&6
9268else
9269  echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
9271fi
9272
9273if test -z "$lt_cv_path_MAGIC_CMD"; then
9274  if test -n "$ac_tool_prefix"; then
9275    echo "$as_me:$LINENO: checking for file" >&5
9276echo $ECHO_N "checking for file... $ECHO_C" >&6
9277if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9278  echo $ECHO_N "(cached) $ECHO_C" >&6
9279else
9280  case $MAGIC_CMD in
9281[\\/*] |  ?:[\\/]*)
9282  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9283  ;;
9284*)
9285  lt_save_MAGIC_CMD="$MAGIC_CMD"
9286  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9287  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9288  for ac_dir in $ac_dummy; do
9289    IFS="$lt_save_ifs"
9290    test -z "$ac_dir" && ac_dir=.
9291    if test -f $ac_dir/file; then
9292      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9293      if test -n "$file_magic_test_file"; then
9294        case $deplibs_check_method in
9295        "file_magic "*)
9296          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9297          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9298          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9299            $EGREP "$file_magic_regex" > /dev/null; then
9300            :
9301          else
9302            cat <<EOF 1>&2
9303
9304*** Warning: the command libtool uses to detect shared libraries,
9305*** $file_magic_cmd, produces output that libtool cannot recognize.
9306*** The result is that libtool may fail to recognize shared libraries
9307*** as such.  This will affect the creation of libtool libraries that
9308*** depend on shared libraries, but programs linked with such libtool
9309*** libraries will work regardless of this problem.  Nevertheless, you
9310*** may want to report the problem to your system manager and/or to
9311*** bug-libtool@gnu.org
9312
9313EOF
9314          fi ;;
9315        esac
9316      fi
9317      break
9318    fi
9319  done
9320  IFS="$lt_save_ifs"
9321  MAGIC_CMD="$lt_save_MAGIC_CMD"
9322  ;;
9323esac
9324fi
9325
9326MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9327if test -n "$MAGIC_CMD"; then
9328  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9329echo "${ECHO_T}$MAGIC_CMD" >&6
9330else
9331  echo "$as_me:$LINENO: result: no" >&5
9332echo "${ECHO_T}no" >&6
9333fi
9334
9335  else
9336    MAGIC_CMD=:
9337  fi
9338fi
9339
9340  fi
9341  ;;
9342esac
9343
9344enable_dlopen=no
9345enable_win32_dll=no
9346
9347# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9348if test "${enable_libtool_lock+set}" = set; then
9349  enableval="$enable_libtool_lock"
9350
9351fi;
9352test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9353
9354
9355# Check whether --with-pic or --without-pic was given.
9356if test "${with_pic+set}" = set; then
9357  withval="$with_pic"
9358  pic_mode="$withval"
9359else
9360  pic_mode=default
9361fi;
9362test -z "$pic_mode" && pic_mode=default
9363
9364# Use C for the default configuration in the libtool script
9365tagname=
9366lt_save_CC="$CC"
9367ac_ext=c
9368ac_cpp='$CPP $CPPFLAGS'
9369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9371ac_compiler_gnu=$ac_cv_c_compiler_gnu
9372
9373
9374# Source file extension for C test sources.
9375ac_ext=c
9376
9377# Object file extension for compiled C test sources.
9378objext=o
9379objext=$objext
9380
9381# Code to be used in simple compile tests
9382lt_simple_compile_test_code="int some_variable = 0;\n"
9383
9384# Code to be used in simple link tests
9385lt_simple_link_test_code='int main(){return(0);}\n'
9386
9387
9388# If no C compiler was specified, use CC.
9389LTCC=${LTCC-"$CC"}
9390
9391# If no C compiler flags were specified, use CFLAGS.
9392LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9393
9394# Allow CC to be a program name with arguments.
9395compiler=$CC
9396
9397
9398# save warnings/boilerplate of simple test code
9399ac_outfile=conftest.$ac_objext
9400printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9401eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9402_lt_compiler_boilerplate=`cat conftest.err`
9403$rm conftest*
9404
9405ac_outfile=conftest.$ac_objext
9406printf "$lt_simple_link_test_code" >conftest.$ac_ext
9407eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9408_lt_linker_boilerplate=`cat conftest.err`
9409$rm conftest*
9410
9411
9412## CAVEAT EMPTOR:
9413## There is no encapsulation within the following macros, do not change
9414## the running order or otherwise move them around unless you know exactly
9415## what you are doing...
9416
9417lt_prog_compiler_no_builtin_flag=
9418
9419if test "$GCC" = yes; then
9420  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9421
9422
9423echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9424echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9425if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9426  echo $ECHO_N "(cached) $ECHO_C" >&6
9427else
9428  lt_cv_prog_compiler_rtti_exceptions=no
9429  ac_outfile=conftest.$ac_objext
9430   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9431   lt_compiler_flag="-fno-rtti -fno-exceptions"
9432   # Insert the option either (1) after the last *FLAGS variable, or
9433   # (2) before a word containing "conftest.", or (3) at the end.
9434   # Note that $ac_compile itself does not contain backslashes and begins
9435   # with a dollar sign (not a hyphen), so the echo should work correctly.
9436   # The option is referenced via a variable to avoid confusing sed.
9437   lt_compile=`echo "$ac_compile" | $SED \
9438   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9439   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9440   -e 's:$: $lt_compiler_flag:'`
9441   (eval echo "\"\$as_me:9441: $lt_compile\"" >&5)
9442   (eval "$lt_compile" 2>conftest.err)
9443   ac_status=$?
9444   cat conftest.err >&5
9445   echo "$as_me:9445: \$? = $ac_status" >&5
9446   if (exit $ac_status) && test -s "$ac_outfile"; then
9447     # The compiler can only warn and ignore the option if not recognized
9448     # So say no if there are warnings other than the usual output.
9449     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9450     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9451     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9452       lt_cv_prog_compiler_rtti_exceptions=yes
9453     fi
9454   fi
9455   $rm conftest*
9456
9457fi
9458echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9459echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9460
9461if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9462    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9463else
9464    :
9465fi
9466
9467fi
9468
9469lt_prog_compiler_wl=
9470lt_prog_compiler_pic=
9471lt_prog_compiler_static=
9472
9473echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9474echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9475
9476  if test "$GCC" = yes; then
9477    lt_prog_compiler_wl='-Wl,'
9478    lt_prog_compiler_static='-static'
9479
9480    case $host_os in
9481      aix*)
9482      # All AIX code is PIC.
9483      if test "$host_cpu" = ia64; then
9484        # AIX 5 now supports IA64 processor
9485        lt_prog_compiler_static='-Bstatic'
9486      fi
9487      ;;
9488
9489    amigaos*)
9490      # FIXME: we need at least 68020 code to build shared libraries, but
9491      # adding the `-m68020' flag to GCC prevents building anything better,
9492      # like `-m68040'.
9493      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9494      ;;
9495
9496    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9497      # PIC is the default for these OSes.
9498      ;;
9499
9500    mingw* | pw32* | os2*)
9501      # This hack is so that the source file can tell whether it is being
9502      # built for inclusion in a dll (and should export symbols for example).
9503      lt_prog_compiler_pic='-DDLL_EXPORT'
9504      ;;
9505
9506    darwin* | rhapsody*)
9507      # PIC is the default on this platform
9508      # Common symbols not allowed in MH_DYLIB files
9509      lt_prog_compiler_pic='-fno-common'
9510      ;;
9511
9512    interix3*)
9513      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9514      # Instead, we relocate shared libraries at runtime.
9515      ;;
9516
9517    msdosdjgpp*)
9518      # Just because we use GCC doesn't mean we suddenly get shared libraries
9519      # on systems that don't support them.
9520      lt_prog_compiler_can_build_shared=no
9521      enable_shared=no
9522      ;;
9523
9524    sysv4*MP*)
9525      if test -d /usr/nec; then
9526        lt_prog_compiler_pic=-Kconform_pic
9527      fi
9528      ;;
9529
9530    hpux*)
9531      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9532      # not for PA HP-UX.
9533      case $host_cpu in
9534      hppa*64*|ia64*)
9535        # +Z the default
9536        ;;
9537      *)
9538        lt_prog_compiler_pic='-fPIC'
9539        ;;
9540      esac
9541      ;;
9542
9543    *)
9544      lt_prog_compiler_pic='-fPIC'
9545      ;;
9546    esac
9547  else
9548    # PORTME Check for flag to pass linker flags through the system compiler.
9549    case $host_os in
9550    aix*)
9551      lt_prog_compiler_wl='-Wl,'
9552      if test "$host_cpu" = ia64; then
9553        # AIX 5 now supports IA64 processor
9554        lt_prog_compiler_static='-Bstatic'
9555      else
9556        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9557      fi
9558      ;;
9559      darwin*)
9560        # PIC is the default on this platform
9561        # Common symbols not allowed in MH_DYLIB files
9562       case $cc_basename in
9563         xlc*)
9564         lt_prog_compiler_pic='-qnocommon'
9565         lt_prog_compiler_wl='-Wl,'
9566         ;;
9567       esac
9568       ;;
9569
9570    mingw* | pw32* | os2*)
9571      # This hack is so that the source file can tell whether it is being
9572      # built for inclusion in a dll (and should export symbols for example).
9573      lt_prog_compiler_pic='-DDLL_EXPORT'
9574      ;;
9575
9576    hpux9* | hpux10* | hpux11*)
9577      lt_prog_compiler_wl='-Wl,'
9578      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9579      # not for PA HP-UX.
9580      case $host_cpu in
9581      hppa*64*|ia64*)
9582        # +Z the default
9583        ;;
9584      *)
9585        lt_prog_compiler_pic='+Z'
9586        ;;
9587      esac
9588      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9589      lt_prog_compiler_static='${wl}-a ${wl}archive'
9590      ;;
9591
9592    irix5* | irix6* | nonstopux*)
9593      lt_prog_compiler_wl='-Wl,'
9594      # PIC (with -KPIC) is the default.
9595      lt_prog_compiler_static='-non_shared'
9596      ;;
9597
9598    newsos6)
9599      lt_prog_compiler_pic='-KPIC'
9600      lt_prog_compiler_static='-Bstatic'
9601      ;;
9602
9603    linux*)
9604      case $cc_basename in
9605      icc* | ecc*)
9606        lt_prog_compiler_wl='-Wl,'
9607        lt_prog_compiler_pic='-KPIC'
9608        lt_prog_compiler_static='-static'
9609        ;;
9610      pgcc* | pgf77* | pgf90* | pgf95*)
9611        # Portland Group compilers (*not* the Pentium gcc compiler,
9612        # which looks to be a dead project)
9613        lt_prog_compiler_wl='-Wl,'
9614        lt_prog_compiler_pic='-fpic'
9615        lt_prog_compiler_static='-Bstatic'
9616        ;;
9617      ccc*)
9618        lt_prog_compiler_wl='-Wl,'
9619        # All Alpha code is PIC.
9620        lt_prog_compiler_static='-non_shared'
9621        ;;
9622      esac
9623      ;;
9624
9625    osf3* | osf4* | osf5*)
9626      lt_prog_compiler_wl='-Wl,'
9627      # All OSF/1 code is PIC.
9628      lt_prog_compiler_static='-non_shared'
9629      ;;
9630
9631    solaris*)
9632      lt_prog_compiler_pic='-KPIC'
9633      lt_prog_compiler_static='-Bstatic'
9634      case $cc_basename in
9635      f77* | f90* | f95*)
9636        lt_prog_compiler_wl='-Qoption ld ';;
9637      *)
9638        lt_prog_compiler_wl='-Wl,';;
9639      esac
9640      ;;
9641
9642    sunos4*)
9643      lt_prog_compiler_wl='-Qoption ld '
9644      lt_prog_compiler_pic='-PIC'
9645      lt_prog_compiler_static='-Bstatic'
9646      ;;
9647
9648    sysv4 | sysv4.2uw2* | sysv4.3*)
9649      lt_prog_compiler_wl='-Wl,'
9650      lt_prog_compiler_pic='-KPIC'
9651      lt_prog_compiler_static='-Bstatic'
9652      ;;
9653
9654    sysv4*MP*)
9655      if test -d /usr/nec ;then
9656        lt_prog_compiler_pic='-Kconform_pic'
9657        lt_prog_compiler_static='-Bstatic'
9658      fi
9659      ;;
9660
9661    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9662      lt_prog_compiler_wl='-Wl,'
9663      lt_prog_compiler_pic='-KPIC'
9664      lt_prog_compiler_static='-Bstatic'
9665      ;;
9666
9667    unicos*)
9668      lt_prog_compiler_wl='-Wl,'
9669      lt_prog_compiler_can_build_shared=no
9670      ;;
9671
9672    uts4*)
9673      lt_prog_compiler_pic='-pic'
9674      lt_prog_compiler_static='-Bstatic'
9675      ;;
9676
9677    *)
9678      lt_prog_compiler_can_build_shared=no
9679      ;;
9680    esac
9681  fi
9682
9683echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9684echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9685
9686#
9687# Check to make sure the PIC flag actually works.
9688#
9689if test -n "$lt_prog_compiler_pic"; then
9690
9691echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9692echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9693if test "${lt_prog_compiler_pic_works+set}" = set; then
9694  echo $ECHO_N "(cached) $ECHO_C" >&6
9695else
9696  lt_prog_compiler_pic_works=no
9697  ac_outfile=conftest.$ac_objext
9698   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9699   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9700   # Insert the option either (1) after the last *FLAGS variable, or
9701   # (2) before a word containing "conftest.", or (3) at the end.
9702   # Note that $ac_compile itself does not contain backslashes and begins
9703   # with a dollar sign (not a hyphen), so the echo should work correctly.
9704   # The option is referenced via a variable to avoid confusing sed.
9705   lt_compile=`echo "$ac_compile" | $SED \
9706   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9707   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9708   -e 's:$: $lt_compiler_flag:'`
9709   (eval echo "\"\$as_me:9709: $lt_compile\"" >&5)
9710   (eval "$lt_compile" 2>conftest.err)
9711   ac_status=$?
9712   cat conftest.err >&5
9713   echo "$as_me:9713: \$? = $ac_status" >&5
9714   if (exit $ac_status) && test -s "$ac_outfile"; then
9715     # The compiler can only warn and ignore the option if not recognized
9716     # So say no if there are warnings other than the usual output.
9717     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9718     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9719     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9720       lt_prog_compiler_pic_works=yes
9721     fi
9722   fi
9723   $rm conftest*
9724
9725fi
9726echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9727echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9728
9729if test x"$lt_prog_compiler_pic_works" = xyes; then
9730    case $lt_prog_compiler_pic in
9731     "" | " "*) ;;
9732     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9733     esac
9734else
9735    lt_prog_compiler_pic=
9736     lt_prog_compiler_can_build_shared=no
9737fi
9738
9739fi
9740case $host_os in
9741  # For platforms which do not support PIC, -DPIC is meaningless:
9742  *djgpp*)
9743    lt_prog_compiler_pic=
9744    ;;
9745  *)
9746    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9747    ;;
9748esac
9749
9750#
9751# Check to make sure the static flag actually works.
9752#
9753wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9754echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9755echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9756if test "${lt_prog_compiler_static_works+set}" = set; then
9757  echo $ECHO_N "(cached) $ECHO_C" >&6
9758else
9759  lt_prog_compiler_static_works=no
9760   save_LDFLAGS="$LDFLAGS"
9761   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9762   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9763   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9764     # The linker can only warn and ignore the option if not recognized
9765     # So say no if there are warnings
9766     if test -s conftest.err; then
9767       # Append any errors to the config.log.
9768       cat conftest.err 1>&5
9769       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9770       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9771       if diff conftest.exp conftest.er2 >/dev/null; then
9772         lt_prog_compiler_static_works=yes
9773       fi
9774     else
9775       lt_prog_compiler_static_works=yes
9776     fi
9777   fi
9778   $rm conftest*
9779   LDFLAGS="$save_LDFLAGS"
9780
9781fi
9782echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9783echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9784
9785if test x"$lt_prog_compiler_static_works" = xyes; then
9786    :
9787else
9788    lt_prog_compiler_static=
9789fi
9790
9791
9792echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9793echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9794if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9795  echo $ECHO_N "(cached) $ECHO_C" >&6
9796else
9797  lt_cv_prog_compiler_c_o=no
9798   $rm -r conftest 2>/dev/null
9799   mkdir conftest
9800   cd conftest
9801   mkdir out
9802   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9803
9804   lt_compiler_flag="-o out/conftest2.$ac_objext"
9805   # Insert the option either (1) after the last *FLAGS variable, or
9806   # (2) before a word containing "conftest.", or (3) at the end.
9807   # Note that $ac_compile itself does not contain backslashes and begins
9808   # with a dollar sign (not a hyphen), so the echo should work correctly.
9809   lt_compile=`echo "$ac_compile" | $SED \
9810   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9811   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9812   -e 's:$: $lt_compiler_flag:'`
9813   (eval echo "\"\$as_me:9813: $lt_compile\"" >&5)
9814   (eval "$lt_compile" 2>out/conftest.err)
9815   ac_status=$?
9816   cat out/conftest.err >&5
9817   echo "$as_me:9817: \$? = $ac_status" >&5
9818   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9819   then
9820     # The compiler can only warn and ignore the option if not recognized
9821     # So say no if there are warnings
9822     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9823     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9824     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9825       lt_cv_prog_compiler_c_o=yes
9826     fi
9827   fi
9828   chmod u+w . 2>&5
9829   $rm conftest*
9830   # SGI C++ compiler will create directory out/ii_files/ for
9831   # template instantiation
9832   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9833   $rm out/* && rmdir out
9834   cd ..
9835   rmdir conftest
9836   $rm conftest*
9837
9838fi
9839echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9840echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9841
9842
9843hard_links="nottested"
9844if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9845  # do not overwrite the value of need_locks provided by the user
9846  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9847echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9848  hard_links=yes
9849  $rm conftest*
9850  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9851  touch conftest.a
9852  ln conftest.a conftest.b 2>&5 || hard_links=no
9853  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9854  echo "$as_me:$LINENO: result: $hard_links" >&5
9855echo "${ECHO_T}$hard_links" >&6
9856  if test "$hard_links" = no; then
9857    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9858echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9859    need_locks=warn
9860  fi
9861else
9862  need_locks=no
9863fi
9864
9865echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9866echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9867
9868  runpath_var=
9869  allow_undefined_flag=
9870  enable_shared_with_static_runtimes=no
9871  archive_cmds=
9872  archive_expsym_cmds=
9873  old_archive_From_new_cmds=
9874  old_archive_from_expsyms_cmds=
9875  export_dynamic_flag_spec=
9876  whole_archive_flag_spec=
9877  thread_safe_flag_spec=
9878  hardcode_libdir_flag_spec=
9879  hardcode_libdir_flag_spec_ld=
9880  hardcode_libdir_separator=
9881  hardcode_direct=no
9882  hardcode_minus_L=no
9883  hardcode_shlibpath_var=unsupported
9884  link_all_deplibs=unknown
9885  hardcode_automatic=no
9886  module_cmds=
9887  module_expsym_cmds=
9888  always_export_symbols=no
9889  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9890  # include_expsyms should be a list of space-separated symbols to be *always*
9891  # included in the symbol list
9892  include_expsyms=
9893  # exclude_expsyms can be an extended regexp of symbols to exclude
9894  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9895  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9896  # as well as any symbol that contains `d'.
9897  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9898  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9899  # platforms (ab)use it in PIC code, but their linkers get confused if
9900  # the symbol is explicitly referenced.  Since portable code cannot
9901  # rely on this symbol name, it's probably fine to never include it in
9902  # preloaded symbol tables.
9903  extract_expsyms_cmds=
9904  # Just being paranoid about ensuring that cc_basename is set.
9905  for cc_temp in $compiler""; do
9906  case $cc_temp in
9907    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9908    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9909    \-*) ;;
9910    *) break;;
9911  esac
9912done
9913cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9914
9915  case $host_os in
9916  cygwin* | mingw* | pw32*)
9917    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9918    # When not using gcc, we currently assume that we are using
9919    # Microsoft Visual C++.
9920    if test "$GCC" != yes; then
9921      with_gnu_ld=no
9922    fi
9923    ;;
9924  interix*)
9925    # we just hope/assume this is gcc and not c89 (= MSVC++)
9926    with_gnu_ld=yes
9927    ;;
9928  openbsd*)
9929    with_gnu_ld=no
9930    ;;
9931  esac
9932
9933  ld_shlibs=yes
9934  if test "$with_gnu_ld" = yes; then
9935    # If archive_cmds runs LD, not CC, wlarc should be empty
9936    wlarc='${wl}'
9937
9938    # Set some defaults for GNU ld with shared library support. These
9939    # are reset later if shared libraries are not supported. Putting them
9940    # here allows them to be overridden if necessary.
9941    runpath_var=LD_RUN_PATH
9942    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9943    export_dynamic_flag_spec='${wl}--export-dynamic'
9944    # ancient GNU ld didn't support --whole-archive et. al.
9945    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9946        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9947      else
9948        whole_archive_flag_spec=
9949    fi
9950    supports_anon_versioning=no
9951    case `$LD -v 2>/dev/null` in
9952      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9953      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9954      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9955      *\ 2.11.*) ;; # other 2.11 versions
9956      *) supports_anon_versioning=yes ;;
9957    esac
9958
9959    # See if GNU ld supports shared libraries.
9960    case $host_os in
9961    aix3* | aix4* | aix5*)
9962      # On AIX/PPC, the GNU linker is very broken
9963      if test "$host_cpu" != ia64; then
9964        ld_shlibs=no
9965        cat <<EOF 1>&2
9966
9967*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9968*** to be unable to reliably create shared libraries on AIX.
9969*** Therefore, libtool is disabling shared libraries support.  If you
9970*** really care for shared libraries, you may want to modify your PATH
9971*** so that a non-GNU linker is found, and then restart.
9972
9973EOF
9974      fi
9975      ;;
9976
9977    amigaos*)
9978      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)'
9979      hardcode_libdir_flag_spec='-L$libdir'
9980      hardcode_minus_L=yes
9981
9982      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9983      # that the semantics of dynamic libraries on AmigaOS, at least up
9984      # to version 4, is to share data among multiple programs linked
9985      # with the same dynamic library.  Since this doesn't match the
9986      # behavior of shared libraries on other platforms, we can't use
9987      # them.
9988      ld_shlibs=no
9989      ;;
9990
9991    beos*)
9992      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9993        allow_undefined_flag=unsupported
9994        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9995        # support --undefined.  This deserves some investigation.  FIXME
9996        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9997      else
9998        ld_shlibs=no
9999      fi
10000      ;;
10001
10002    cygwin* | mingw* | pw32*)
10003      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10004      # as there is no search path for DLLs.
10005      hardcode_libdir_flag_spec='-L$libdir'
10006      allow_undefined_flag=unsupported
10007      always_export_symbols=no
10008      enable_shared_with_static_runtimes=yes
10009      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10010
10011      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10012        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10013        # If the export-symbols file already is a .def file (1st line
10014        # is EXPORTS), use it as is; otherwise, prepend...
10015        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10016          cp $export_symbols $output_objdir/$soname.def;
10017        else
10018          echo EXPORTS > $output_objdir/$soname.def;
10019          cat $export_symbols >> $output_objdir/$soname.def;
10020        fi~
10021        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10022      else
10023        ld_shlibs=no
10024      fi
10025      ;;
10026
10027    interix3*)
10028      hardcode_direct=no
10029      hardcode_shlibpath_var=no
10030      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10031      export_dynamic_flag_spec='${wl}-E'
10032      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10033      # Instead, shared libraries are loaded at an image base (0x10000000 by
10034      # default) and relocated if they conflict, which is a slow very memory
10035      # consuming and fragmenting process.  To avoid this, we pick a random,
10036      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10037      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10038      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10039      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'
10040      ;;
10041
10042    linux*)
10043      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10044        tmp_addflag=
10045        case $cc_basename,$host_cpu in
10046        pgcc*)                          # Portland Group C compiler
10047          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'
10048          tmp_addflag=' $pic_flag'
10049          ;;
10050        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10051          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'
10052          tmp_addflag=' $pic_flag -Mnomain' ;;
10053        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10054          tmp_addflag=' -i_dynamic' ;;
10055        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10056          tmp_addflag=' -i_dynamic -nofor_main' ;;
10057        ifc* | ifort*)                  # Intel Fortran compiler
10058          tmp_addflag=' -nofor_main' ;;
10059        esac
10060        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061
10062        if test $supports_anon_versioning = yes; then
10063          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10064  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10065  $echo "local: *; };" >> $output_objdir/$libname.ver~
10066          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10067        fi
10068      else
10069        ld_shlibs=no
10070      fi
10071      ;;
10072
10073    netbsd*)
10074      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10075        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10076        wlarc=
10077      else
10078        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10079        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10080      fi
10081      ;;
10082
10083    solaris*)
10084      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10085        ld_shlibs=no
10086        cat <<EOF 1>&2
10087
10088*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10089*** create shared libraries on Solaris systems.  Therefore, libtool
10090*** is disabling shared libraries support.  We urge you to upgrade GNU
10091*** binutils to release 2.9.1 or newer.  Another option is to modify
10092*** your PATH or compiler configuration so that the native linker is
10093*** used, and then restart.
10094
10095EOF
10096      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10097        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10098        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10099      else
10100        ld_shlibs=no
10101      fi
10102      ;;
10103
10104    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10105      case `$LD -v 2>&1` in
10106        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10107        ld_shlibs=no
10108        cat <<_LT_EOF 1>&2
10109
10110*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10111*** reliably create shared libraries on SCO systems.  Therefore, libtool
10112*** is disabling shared libraries support.  We urge you to upgrade GNU
10113*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10114*** your PATH or compiler configuration so that the native linker is
10115*** used, and then restart.
10116
10117_LT_EOF
10118        ;;
10119        *)
10120          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10121            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10122            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10123            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10124          else
10125            ld_shlibs=no
10126          fi
10127        ;;
10128      esac
10129      ;;
10130
10131    sunos4*)
10132      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10133      wlarc=
10134      hardcode_direct=yes
10135      hardcode_shlibpath_var=no
10136      ;;
10137
10138    *)
10139      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10140        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10141        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10142      else
10143        ld_shlibs=no
10144      fi
10145      ;;
10146    esac
10147
10148    if test "$ld_shlibs" = no; then
10149      runpath_var=
10150      hardcode_libdir_flag_spec=
10151      export_dynamic_flag_spec=
10152      whole_archive_flag_spec=
10153    fi
10154  else
10155    # PORTME fill in a description of your system's linker (not GNU ld)
10156    case $host_os in
10157    aix3*)
10158      allow_undefined_flag=unsupported
10159      always_export_symbols=yes
10160      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'
10161      # Note: this linker hardcodes the directories in LIBPATH if there
10162      # are no directories specified by -L.
10163      hardcode_minus_L=yes
10164      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10165        # Neither direct hardcoding nor static linking is supported with a
10166        # broken collect2.
10167        hardcode_direct=unsupported
10168      fi
10169      ;;
10170
10171    aix4* | aix5*)
10172      if test "$host_cpu" = ia64; then
10173        # On IA64, the linker does run time linking by default, so we don't
10174        # have to do anything special.
10175        aix_use_runtimelinking=no
10176        exp_sym_flag='-Bexport'
10177        no_entry_flag=""
10178      else
10179        # If we're using GNU nm, then we don't want the "-C" option.
10180        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10181        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10182          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'
10183        else
10184          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'
10185        fi
10186        aix_use_runtimelinking=no
10187
10188        # Test if we are trying to use run time linking or normal
10189        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10190        # need to do runtime linking.
10191        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10192          for ld_flag in $LDFLAGS; do
10193          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10194            aix_use_runtimelinking=yes
10195            break
10196          fi
10197          done
10198          ;;
10199        esac
10200
10201        exp_sym_flag='-bexport'
10202        no_entry_flag='-bnoentry'
10203      fi
10204
10205      # When large executables or shared objects are built, AIX ld can
10206      # have problems creating the table of contents.  If linking a library
10207      # or program results in "error TOC overflow" add -mminimal-toc to
10208      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10209      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10210
10211      archive_cmds=''
10212      hardcode_direct=yes
10213      hardcode_libdir_separator=':'
10214      link_all_deplibs=yes
10215
10216      if test "$GCC" = yes; then
10217        case $host_os in aix4.[012]|aix4.[012].*)
10218        # We only want to do this on AIX 4.2 and lower, the check
10219        # below for broken collect2 doesn't work under 4.3+
10220          collect2name=`${CC} -print-prog-name=collect2`
10221          if test -f "$collect2name" && \
10222           strings "$collect2name" | grep resolve_lib_name >/dev/null
10223          then
10224          # We have reworked collect2
10225          hardcode_direct=yes
10226          else
10227          # We have old collect2
10228          hardcode_direct=unsupported
10229          # It fails to find uninstalled libraries when the uninstalled
10230          # path is not listed in the libpath.  Setting hardcode_minus_L
10231          # to unsupported forces relinking
10232          hardcode_minus_L=yes
10233          hardcode_libdir_flag_spec='-L$libdir'
10234          hardcode_libdir_separator=
10235          fi
10236          ;;
10237        esac
10238        shared_flag='-shared'
10239        if test "$aix_use_runtimelinking" = yes; then
10240          shared_flag="$shared_flag "'${wl}-G'
10241        fi
10242      else
10243        # not using gcc
10244        if test "$host_cpu" = ia64; then
10245        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10246        # chokes on -Wl,-G. The following line is correct:
10247          shared_flag='-G'
10248        else
10249          if test "$aix_use_runtimelinking" = yes; then
10250            shared_flag='${wl}-G'
10251          else
10252            shared_flag='${wl}-bM:SRE'
10253          fi
10254        fi
10255      fi
10256
10257      # It seems that -bexpall does not export symbols beginning with
10258      # underscore (_), so it is better to generate a list of symbols to export.
10259      always_export_symbols=yes
10260      if test "$aix_use_runtimelinking" = yes; then
10261        # Warning - without using the other runtime loading flags (-brtl),
10262        # -berok will link without error, but may produce a broken library.
10263        allow_undefined_flag='-berok'
10264       # Determine the default libpath from the value encoded in an empty executable.
10265       cat >conftest.$ac_ext <<_ACEOF
10266/* confdefs.h.  */
10267_ACEOF
10268cat confdefs.h >>conftest.$ac_ext
10269cat >>conftest.$ac_ext <<_ACEOF
10270/* end confdefs.h.  */
10271
10272#ifdef F77_DUMMY_MAIN
10273
10274#  ifdef __cplusplus
10275     extern "C"
10276#  endif
10277   int F77_DUMMY_MAIN() { return 1; }
10278
10279#endif
10280int
10281main ()
10282{
10283
10284  ;
10285  return 0;
10286}
10287_ACEOF
10288rm -f conftest.$ac_objext conftest$ac_exeext
10289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290  (eval $ac_link) 2>conftest.er1
10291  ac_status=$?
10292  grep -v '^ *+' conftest.er1 >conftest.err
10293  rm -f conftest.er1
10294  cat conftest.err >&5
10295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296  (exit $ac_status); } &&
10297         { ac_try='test -z "$ac_c_werror_flag"
10298                         || test ! -s conftest.err'
10299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300  (eval $ac_try) 2>&5
10301  ac_status=$?
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); }; } &&
10304         { ac_try='test -s conftest$ac_exeext'
10305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306  (eval $ac_try) 2>&5
10307  ac_status=$?
10308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309  (exit $ac_status); }; }; then
10310
10311aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10312}'`
10313# Check for a 64-bit object if we didn't find anything.
10314if 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; }
10315}'`; fi
10316else
10317  echo "$as_me: failed program was:" >&5
10318sed 's/^/| /' conftest.$ac_ext >&5
10319
10320fi
10321rm -f conftest.err conftest.$ac_objext \
10322      conftest$ac_exeext conftest.$ac_ext
10323if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10324
10325       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10326        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"
10327       else
10328        if test "$host_cpu" = ia64; then
10329          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10330          allow_undefined_flag="-z nodefs"
10331          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"
10332        else
10333         # Determine the default libpath from the value encoded in an empty executable.
10334         cat >conftest.$ac_ext <<_ACEOF
10335/* confdefs.h.  */
10336_ACEOF
10337cat confdefs.h >>conftest.$ac_ext
10338cat >>conftest.$ac_ext <<_ACEOF
10339/* end confdefs.h.  */
10340
10341#ifdef F77_DUMMY_MAIN
10342
10343#  ifdef __cplusplus
10344     extern "C"
10345#  endif
10346   int F77_DUMMY_MAIN() { return 1; }
10347
10348#endif
10349int
10350main ()
10351{
10352
10353  ;
10354  return 0;
10355}
10356_ACEOF
10357rm -f conftest.$ac_objext conftest$ac_exeext
10358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10359  (eval $ac_link) 2>conftest.er1
10360  ac_status=$?
10361  grep -v '^ *+' conftest.er1 >conftest.err
10362  rm -f conftest.er1
10363  cat conftest.err >&5
10364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365  (exit $ac_status); } &&
10366         { ac_try='test -z "$ac_c_werror_flag"
10367                         || test ! -s conftest.err'
10368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369  (eval $ac_try) 2>&5
10370  ac_status=$?
10371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372  (exit $ac_status); }; } &&
10373         { ac_try='test -s conftest$ac_exeext'
10374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375  (eval $ac_try) 2>&5
10376  ac_status=$?
10377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378  (exit $ac_status); }; }; then
10379
10380aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10381}'`
10382# Check for a 64-bit object if we didn't find anything.
10383if 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; }
10384}'`; fi
10385else
10386  echo "$as_me: failed program was:" >&5
10387sed 's/^/| /' conftest.$ac_ext >&5
10388
10389fi
10390rm -f conftest.err conftest.$ac_objext \
10391      conftest$ac_exeext conftest.$ac_ext
10392if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10393
10394         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10395          # Warning - without using the other run time loading flags,
10396          # -berok will link without error, but may produce a broken library.
10397          no_undefined_flag=' ${wl}-bernotok'
10398          allow_undefined_flag=' ${wl}-berok'
10399          # Exported symbols can be pulled into shared objects from archives
10400          whole_archive_flag_spec='$convenience'
10401          archive_cmds_need_lc=yes
10402          # This is similar to how AIX traditionally builds its shared libraries.
10403          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'
10404        fi
10405      fi
10406      ;;
10407
10408    amigaos*)
10409      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)'
10410      hardcode_libdir_flag_spec='-L$libdir'
10411      hardcode_minus_L=yes
10412      # see comment about different semantics on the GNU ld section
10413      ld_shlibs=no
10414      ;;
10415
10416    bsdi[45]*)
10417      export_dynamic_flag_spec=-rdynamic
10418      ;;
10419
10420    cygwin* | mingw* | pw32*)
10421      # When not using gcc, we currently assume that we are using
10422      # Microsoft Visual C++.
10423      # hardcode_libdir_flag_spec is actually meaningless, as there is
10424      # no search path for DLLs.
10425      hardcode_libdir_flag_spec=' '
10426      allow_undefined_flag=unsupported
10427      # Tell ltmain to make .lib files, not .a files.
10428      libext=lib
10429      # Tell ltmain to make .dll files, not .so files.
10430      shrext_cmds=".dll"
10431      # FIXME: Setting linknames here is a bad hack.
10432      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10433      # The linker will automatically build a .lib file if we build a DLL.
10434      old_archive_From_new_cmds='true'
10435      # FIXME: Should let the user specify the lib program.
10436      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10437      fix_srcfile_path='`cygpath -w "$srcfile"`'
10438      enable_shared_with_static_runtimes=yes
10439      ;;
10440
10441    darwin* | rhapsody*)
10442      case $host_os in
10443        rhapsody* | darwin1.[012])
10444         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10445         ;;
10446       *) # Darwin 1.3 on
10447         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10448           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10449         else
10450           case ${MACOSX_DEPLOYMENT_TARGET} in
10451             10.[012])
10452               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10453               ;;
10454             10.*)
10455               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10456               ;;
10457           esac
10458         fi
10459         ;;
10460      esac
10461      archive_cmds_need_lc=no
10462      hardcode_direct=no
10463      hardcode_automatic=yes
10464      hardcode_shlibpath_var=unsupported
10465      whole_archive_flag_spec=''
10466      link_all_deplibs=yes
10467    if test "$GCC" = yes ; then
10468        output_verbose_link_cmd='echo'
10469        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10470      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10471      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10472      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}'
10473      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}'
10474    else
10475      case $cc_basename in
10476        xlc*)
10477         output_verbose_link_cmd='echo'
10478         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10479         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10480          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10481         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}'
10482          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}'
10483          ;;
10484       *)
10485         ld_shlibs=no
10486          ;;
10487      esac
10488    fi
10489      ;;
10490
10491    dgux*)
10492      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493      hardcode_libdir_flag_spec='-L$libdir'
10494      hardcode_shlibpath_var=no
10495      ;;
10496
10497    freebsd1*)
10498      ld_shlibs=no
10499      ;;
10500
10501    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10502    # support.  Future versions do this automatically, but an explicit c++rt0.o
10503    # does not break anything, and helps significantly (at the cost of a little
10504    # extra space).
10505    freebsd2.2*)
10506      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10507      hardcode_libdir_flag_spec='-R$libdir'
10508      hardcode_direct=yes
10509      hardcode_shlibpath_var=no
10510      ;;
10511
10512    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10513    freebsd2*)
10514      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10515      hardcode_direct=yes
10516      hardcode_minus_L=yes
10517      hardcode_shlibpath_var=no
10518      ;;
10519
10520    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10521    freebsd* | kfreebsd*-gnu | dragonfly*)
10522      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10523      hardcode_libdir_flag_spec='-R$libdir'
10524      hardcode_direct=yes
10525      hardcode_shlibpath_var=no
10526      ;;
10527
10528    hpux9*)
10529      if test "$GCC" = yes; then
10530        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'
10531      else
10532        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'
10533      fi
10534      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10535      hardcode_libdir_separator=:
10536      hardcode_direct=yes
10537
10538      # hardcode_minus_L: Not really in the search PATH,
10539      # but as the default location of the library.
10540      hardcode_minus_L=yes
10541      export_dynamic_flag_spec='${wl}-E'
10542      ;;
10543
10544    hpux10*)
10545      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10546        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10547      else
10548        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10549      fi
10550      if test "$with_gnu_ld" = no; then
10551        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10552        hardcode_libdir_separator=:
10553
10554        hardcode_direct=yes
10555        export_dynamic_flag_spec='${wl}-E'
10556
10557        # hardcode_minus_L: Not really in the search PATH,
10558        # but as the default location of the library.
10559        hardcode_minus_L=yes
10560      fi
10561      ;;
10562
10563    hpux11*)
10564      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10565        case $host_cpu in
10566        hppa*64*)
10567          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10568          ;;
10569        ia64*)
10570          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10571          ;;
10572        *)
10573          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10574          ;;
10575        esac
10576      else
10577        case $host_cpu in
10578        hppa*64*)
10579          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10580          ;;
10581        ia64*)
10582          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10583          ;;
10584        *)
10585          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10586          ;;
10587        esac
10588      fi
10589      if test "$with_gnu_ld" = no; then
10590        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10591        hardcode_libdir_separator=:
10592
10593        case $host_cpu in
10594        hppa*64*|ia64*)
10595          hardcode_libdir_flag_spec_ld='+b $libdir'
10596          hardcode_direct=no
10597          hardcode_shlibpath_var=no
10598          ;;
10599        *)
10600          hardcode_direct=yes
10601          export_dynamic_flag_spec='${wl}-E'
10602
10603          # hardcode_minus_L: Not really in the search PATH,
10604          # but as the default location of the library.
10605          hardcode_minus_L=yes
10606          ;;
10607        esac
10608      fi
10609      ;;
10610
10611    irix5* | irix6* | nonstopux*)
10612      if test "$GCC" = yes; then
10613        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'
10614      else
10615        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'
10616        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10617      fi
10618      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10619      hardcode_libdir_separator=:
10620      link_all_deplibs=yes
10621      ;;
10622
10623    netbsd*)
10624      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10625        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10626      else
10627        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10628      fi
10629      hardcode_libdir_flag_spec='-R$libdir'
10630      hardcode_direct=yes
10631      hardcode_shlibpath_var=no
10632      ;;
10633
10634    newsos6)
10635      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10636      hardcode_direct=yes
10637      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10638      hardcode_libdir_separator=:
10639      hardcode_shlibpath_var=no
10640      ;;
10641
10642    openbsd*)
10643      hardcode_direct=yes
10644      hardcode_shlibpath_var=no
10645      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10646        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10647        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10648        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10649        export_dynamic_flag_spec='${wl}-E'
10650      else
10651       case $host_os in
10652         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10653           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10654           hardcode_libdir_flag_spec='-R$libdir'
10655           ;;
10656         *)
10657           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10658           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10659           ;;
10660       esac
10661      fi
10662      ;;
10663
10664    os2*)
10665      hardcode_libdir_flag_spec='-L$libdir'
10666      hardcode_minus_L=yes
10667      allow_undefined_flag=unsupported
10668      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'
10669      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10670      ;;
10671
10672    osf3*)
10673      if test "$GCC" = yes; then
10674        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10675        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'
10676      else
10677        allow_undefined_flag=' -expect_unresolved \*'
10678        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'
10679      fi
10680      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10681      hardcode_libdir_separator=:
10682      ;;
10683
10684    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10685      if test "$GCC" = yes; then
10686        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10687        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'
10688        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10689      else
10690        allow_undefined_flag=' -expect_unresolved \*'
10691        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'
10692        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10693        $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'
10694
10695        # Both c and cxx compiler support -rpath directly
10696        hardcode_libdir_flag_spec='-rpath $libdir'
10697      fi
10698      hardcode_libdir_separator=:
10699      ;;
10700
10701    solaris*)
10702      no_undefined_flag=' -z text'
10703      if test "$GCC" = yes; then
10704        wlarc='${wl}'
10705        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10706        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10707          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10708      else
10709        wlarc=''
10710        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10712        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10713      fi
10714      hardcode_libdir_flag_spec='-R$libdir'
10715      hardcode_shlibpath_var=no
10716      case $host_os in
10717      solaris2.[0-5] | solaris2.[0-5].*) ;;
10718      *)
10719        # The compiler driver will combine linker options so we
10720        # cannot just pass the convience library names through
10721        # without $wl, iff we do not link with $LD.
10722        # Luckily, gcc supports the same syntax we need for Sun Studio.
10723        # Supported since Solaris 2.6 (maybe 2.5.1?)
10724        case $wlarc in
10725        '')
10726          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10727        *)
10728          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' ;;
10729        esac ;;
10730      esac
10731      link_all_deplibs=yes
10732      ;;
10733
10734    sunos4*)
10735      if test "x$host_vendor" = xsequent; then
10736        # Use $CC to link under sequent, because it throws in some extra .o
10737        # files that make .init and .fini sections work.
10738        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10739      else
10740        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10741      fi
10742      hardcode_libdir_flag_spec='-L$libdir'
10743      hardcode_direct=yes
10744      hardcode_minus_L=yes
10745      hardcode_shlibpath_var=no
10746      ;;
10747
10748    sysv4)
10749      case $host_vendor in
10750        sni)
10751          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10752          hardcode_direct=yes # is this really true???
10753        ;;
10754        siemens)
10755          ## LD is ld it makes a PLAMLIB
10756          ## CC just makes a GrossModule.
10757          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10758          reload_cmds='$CC -r -o $output$reload_objs'
10759          hardcode_direct=no
10760        ;;
10761        motorola)
10762          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10763          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10764        ;;
10765      esac
10766      runpath_var='LD_RUN_PATH'
10767      hardcode_shlibpath_var=no
10768      ;;
10769
10770    sysv4.3*)
10771      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10772      hardcode_shlibpath_var=no
10773      export_dynamic_flag_spec='-Bexport'
10774      ;;
10775
10776    sysv4*MP*)
10777      if test -d /usr/nec; then
10778        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10779        hardcode_shlibpath_var=no
10780        runpath_var=LD_RUN_PATH
10781        hardcode_runpath_var=yes
10782        ld_shlibs=yes
10783      fi
10784      ;;
10785
10786    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10787      no_undefined_flag='${wl}-z,text'
10788      archive_cmds_need_lc=no
10789      hardcode_shlibpath_var=no
10790      runpath_var='LD_RUN_PATH'
10791
10792      if test "$GCC" = yes; then
10793        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10794        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10795      else
10796        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10797        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10798      fi
10799      ;;
10800
10801    sysv5* | sco3.2v5* | sco5v6*)
10802      # Note: We can NOT use -z defs as we might desire, because we do not
10803      # link with -lc, and that would cause any symbols used from libc to
10804      # always be unresolved, which means just about no library would
10805      # ever link correctly.  If we're not using GNU ld we use -z text
10806      # though, which does catch some bad symbols but isn't as heavy-handed
10807      # as -z defs.
10808      no_undefined_flag='${wl}-z,text'
10809      allow_undefined_flag='${wl}-z,nodefs'
10810      archive_cmds_need_lc=no
10811      hardcode_shlibpath_var=no
10812      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10813      hardcode_libdir_separator=':'
10814      link_all_deplibs=yes