source: ThirdParty/Mumps/trunk/configure @ 2971

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

Re-running the autotools

File size: 870.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMumps trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMumps'
431PACKAGE_TARNAME='thirdpartymumps'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyMumps trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="MUMPS/src/dmumps_part1.F"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion MUMPS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS CPP EGREP MY_DEFS LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED MUMPS_CFLAGS MUMPS_LIBS MUMPS_PCLIBS MUMPS_PCREQUIRES MUMPS_DEPENDENCIES MUMPS_CFLAGS_INSTALLED MUMPS_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MUMPSDIR MUMPSOBJDIR MUMPSSRCDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
993ac_env_PKG_CONFIG_value=$PKG_CONFIG
994ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
995ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyMumps trunk to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyMumps trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-mumps compile project Mumps with debug compiler flags
1080
1081  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1082  --disable-pthread-mumps disable use of pthread library
1083  --enable-static[=PKGS]
1084                          build static libraries [default=no]
1085  --disable-dependency-tracking  speeds up one-time build
1086  --enable-dependency-tracking   do not reject slow dependency extractors
1087  --enable-maintainer-mode  enable make rules and dependencies not useful
1088                          (and sometimes confusing) to the casual installer
1089  --enable-shared[=PKGS]
1090                          build shared libraries [default=yes]
1091  --enable-fast-install[=PKGS]
1092                          optimize for fast installation [default=yes]
1093  --disable-libtool-lock  avoid locking (might break parallel builds)
1094  --disable-pkg-config    disable use of pkg-config (if available)
1095  --disable-interpackage-dependencies
1096                          disables deduction of Makefile dependencies from
1097                          package linker flags
1098
1099Optional Packages:
1100  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1101  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1102  --with-mumps-verbosity specify the debug verbosity level for project Mumps
1103  --with-mumps-checklevel specify the sanity check level for project Mumps
1104  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1105  --with-pic              try to use only PIC/non-PIC objects [default=use
1106                          both]
1107  --with-tags[=TAGS]
1108                          include additional configurations [automatic]
1109  --with-blas             specify BLAS library (or BUILD to enforce use of
1110                          ThirdParty/Blas)
1111
1112  --with-coin-instdir     prefix of installation directory for precompiled
1113                          COIN packages
1114  --with-blas-lib linker flags for using package Blas
1115  --with-blas-incdir directory with header files for using package Blas
1116  --with-blas-datadir directory with data files for using package Blas
1117  --with-metis-lib linker flags for using package Metis
1118  --with-metis-incdir directory with header files for using package Metis
1119  --with-metis-datadir directory with data files for using package Metis
1120
1121Some influential environment variables:
1122  CDEFS       Additional -D flags to be used when compiling C code.
1123  ADD_CFLAGS  Additional C compiler options
1124  DBG_CFLAGS  Debug C compiler options
1125  OPT_CFLAGS  Optimize C compiler options
1126  CC          C compiler command
1127  CFLAGS      C compiler flags
1128  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1129              nonstandard directory <lib dir>
1130  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1131              headers in a nonstandard directory <include dir>
1132  MPICC       C MPI Compiler
1133  ADD_FFLAGS  Additional Fortran compiler options
1134  DBG_FFLAGS  Debug Fortran compiler options
1135  OPT_FFLAGS  Optimize Fortran compiler options
1136  F77         Fortran 77 compiler command
1137  FFLAGS      Fortran 77 compiler flags
1138  MPIF77      Fortran MPI Compiler
1139  CPP         C preprocessor
1140  CXX         C++ compiler command
1141  CXXFLAGS    C++ compiler flags
1142  CXXCPP      C++ preprocessor
1143  PKG_CONFIG  path to pkg-config utility
1144
1145Use these variables to override the choices made by `configure' or to help
1146it to find libraries and programs with nonstandard names/locations.
1147
1148Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1149_ACEOF
1150fi
1151
1152if test "$ac_init_help" = "recursive"; then
1153  # If there are subdirs, report their specific --help.
1154  ac_popdir=`pwd`
1155  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1156    test -d $ac_dir || continue
1157    ac_builddir=.
1158
1159if test "$ac_dir" != .; then
1160  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1161  # A "../" for each directory in $ac_dir_suffix.
1162  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1163else
1164  ac_dir_suffix= ac_top_builddir=
1165fi
1166
1167case $srcdir in
1168  .)  # No --srcdir option.  We are building in place.
1169    ac_srcdir=.
1170    if test -z "$ac_top_builddir"; then
1171       ac_top_srcdir=.
1172    else
1173       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1174    fi ;;
1175  [\\/]* | ?:[\\/]* )  # Absolute path.
1176    ac_srcdir=$srcdir$ac_dir_suffix;
1177    ac_top_srcdir=$srcdir ;;
1178  *) # Relative path.
1179    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1180    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1181esac
1182
1183# Do not use `cd foo && pwd` to compute absolute paths, because
1184# the directories may not exist.
1185case `pwd` in
1186.) ac_abs_builddir="$ac_dir";;
1187*)
1188  case "$ac_dir" in
1189  .) ac_abs_builddir=`pwd`;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1191  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_top_builddir=${ac_top_builddir}.;;
1196*)
1197  case ${ac_top_builddir}. in
1198  .) ac_abs_top_builddir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1200  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1201  esac;;
1202esac
1203case $ac_abs_builddir in
1204.) ac_abs_srcdir=$ac_srcdir;;
1205*)
1206  case $ac_srcdir in
1207  .) ac_abs_srcdir=$ac_abs_builddir;;
1208  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1209  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1210  esac;;
1211esac
1212case $ac_abs_builddir in
1213.) ac_abs_top_srcdir=$ac_top_srcdir;;
1214*)
1215  case $ac_top_srcdir in
1216  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1217  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1218  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1219  esac;;
1220esac
1221
1222    cd $ac_dir
1223    # Check for guested configure; otherwise get Cygnus style configure.
1224    if test -f $ac_srcdir/configure.gnu; then
1225      echo
1226      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1227    elif test -f $ac_srcdir/configure; then
1228      echo
1229      $SHELL $ac_srcdir/configure  --help=recursive
1230    elif test -f $ac_srcdir/configure.ac ||
1231           test -f $ac_srcdir/configure.in; then
1232      echo
1233      $ac_configure --help
1234    else
1235      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1236    fi
1237    cd $ac_popdir
1238  done
1239fi
1240
1241test -n "$ac_init_help" && exit 0
1242if $ac_init_version; then
1243  cat <<\_ACEOF
1244ThirdPartyMumps configure trunk
1245generated by GNU Autoconf 2.59
1246
1247Copyright (C) 2003 Free Software Foundation, Inc.
1248This configure script is free software; the Free Software Foundation
1249gives unlimited permission to copy, distribute and modify it.
1250
1251
1252Copyright 2007-2009 International Business Machines and others.
1253All Rights Reserved.
1254This file is part of the open source package Coin which is distributed
1255under the Eclipse Public License.
1256_ACEOF
1257  exit 0
1258fi
1259exec 5>config.log
1260cat >&5 <<_ACEOF
1261This file contains any messages produced by compilers while
1262running configure, to aid debugging if configure makes a mistake.
1263
1264It was created by ThirdPartyMumps $as_me trunk, which was
1265generated by GNU Autoconf 2.59.  Invocation command line was
1266
1267  $ $0 $@
1268
1269_ACEOF
1270{
1271cat <<_ASUNAME
1272## --------- ##
1273## Platform. ##
1274## --------- ##
1275
1276hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1277uname -m = `(uname -m) 2>/dev/null || echo unknown`
1278uname -r = `(uname -r) 2>/dev/null || echo unknown`
1279uname -s = `(uname -s) 2>/dev/null || echo unknown`
1280uname -v = `(uname -v) 2>/dev/null || echo unknown`
1281
1282/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1283/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1284
1285/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1286/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1287/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1288hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1289/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1290/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1291/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1292
1293_ASUNAME
1294
1295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1296for as_dir in $PATH
1297do
1298  IFS=$as_save_IFS
1299  test -z "$as_dir" && as_dir=.
1300  echo "PATH: $as_dir"
1301done
1302
1303} >&5
1304
1305cat >&5 <<_ACEOF
1306
1307
1308## ----------- ##
1309## Core tests. ##
1310## ----------- ##
1311
1312_ACEOF
1313
1314
1315# Keep a trace of the command line.
1316# Strip out --no-create and --no-recursion so they do not pile up.
1317# Strip out --silent because we don't want to record it for future runs.
1318# Also quote any args containing shell meta-characters.
1319# Make two passes to allow for proper duplicate-argument suppression.
1320ac_configure_args=
1321ac_configure_args0=
1322ac_configure_args1=
1323ac_sep=
1324ac_must_keep_next=false
1325for ac_pass in 1 2
1326do
1327  for ac_arg
1328  do
1329    case $ac_arg in
1330    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1331    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332    | -silent | --silent | --silen | --sile | --sil)
1333      continue ;;
1334    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1335      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1336    esac
1337    case $ac_pass in
1338    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1339    2)
1340      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1341      if test $ac_must_keep_next = true; then
1342        ac_must_keep_next=false # Got value, back to normal.
1343      else
1344        case $ac_arg in
1345          *=* | --config-cache | -C | -disable-* | --disable-* \
1346          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1347          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1348          | -with-* | --with-* | -without-* | --without-* | --x)
1349            case "$ac_configure_args0 " in
1350              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1351            esac
1352            ;;
1353          -* ) ac_must_keep_next=true ;;
1354        esac
1355      fi
1356      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1357      # Get rid of the leading space.
1358      ac_sep=" "
1359      ;;
1360    esac
1361  done
1362done
1363$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1364$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1365
1366# When interrupted or exit'd, cleanup temporary files, and complete
1367# config.log.  We remove comments because anyway the quotes in there
1368# would cause problems or look ugly.
1369# WARNING: Be sure not to use single quotes in there, as some shells,
1370# such as our DU 5.0 friend, will then `close' the trap.
1371trap 'exit_status=$?
1372  # Save into config.log some information that might help in debugging.
1373  {
1374    echo
1375
1376    cat <<\_ASBOX
1377## ---------------- ##
1378## Cache variables. ##
1379## ---------------- ##
1380_ASBOX
1381    echo
1382    # The following way of writing the cache mishandles newlines in values,
1383{
1384  (set) 2>&1 |
1385    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1386    *ac_space=\ *)
1387      sed -n \
1388        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1389          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1390      ;;
1391    *)
1392      sed -n \
1393        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1394      ;;
1395    esac;
1396}
1397    echo
1398
1399    cat <<\_ASBOX
1400## ----------------- ##
1401## Output variables. ##
1402## ----------------- ##
1403_ASBOX
1404    echo
1405    for ac_var in $ac_subst_vars
1406    do
1407      eval ac_val=$`echo $ac_var`
1408      echo "$ac_var='"'"'$ac_val'"'"'"
1409    done | sort
1410    echo
1411
1412    if test -n "$ac_subst_files"; then
1413      cat <<\_ASBOX
1414## ------------- ##
1415## Output files. ##
1416## ------------- ##
1417_ASBOX
1418      echo
1419      for ac_var in $ac_subst_files
1420      do
1421        eval ac_val=$`echo $ac_var`
1422        echo "$ac_var='"'"'$ac_val'"'"'"
1423      done | sort
1424      echo
1425    fi
1426
1427    if test -s confdefs.h; then
1428      cat <<\_ASBOX
1429## ----------- ##
1430## confdefs.h. ##
1431## ----------- ##
1432_ASBOX
1433      echo
1434      sed "/^$/d" confdefs.h | sort
1435      echo
1436    fi
1437    test "$ac_signal" != 0 &&
1438      echo "$as_me: caught signal $ac_signal"
1439    echo "$as_me: exit $exit_status"
1440  } >&5
1441  rm -f core *.core &&
1442  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1443    exit $exit_status
1444     ' 0
1445for ac_signal in 1 2 13 15; do
1446  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1447done
1448ac_signal=0
1449
1450# confdefs.h avoids OS command line length limits that DEFS can exceed.
1451rm -rf conftest* confdefs.h
1452# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1453echo >confdefs.h
1454
1455# Predefined preprocessor variables.
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_NAME "$PACKAGE_NAME"
1459_ACEOF
1460
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1464_ACEOF
1465
1466
1467cat >>confdefs.h <<_ACEOF
1468#define PACKAGE_VERSION "$PACKAGE_VERSION"
1469_ACEOF
1470
1471
1472cat >>confdefs.h <<_ACEOF
1473#define PACKAGE_STRING "$PACKAGE_STRING"
1474_ACEOF
1475
1476
1477cat >>confdefs.h <<_ACEOF
1478#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1479_ACEOF
1480
1481
1482# Let the site file select an alternate cache file if it wants to.
1483# Prefer explicitly selected file to automatically selected ones.
1484if test -z "$CONFIG_SITE"; then
1485  if test "x$prefix" != xNONE; then
1486    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1487  else
1488    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1489  fi
1490fi
1491for ac_site_file in $CONFIG_SITE; do
1492  if test -r "$ac_site_file"; then
1493    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1494echo "$as_me: loading site script $ac_site_file" >&6;}
1495    sed 's/^/| /' "$ac_site_file" >&5
1496    . "$ac_site_file"
1497  fi
1498done
1499
1500if test -r "$cache_file"; then
1501  # Some versions of bash will fail to source /dev/null (special
1502  # files actually), so we avoid doing that.
1503  if test -f "$cache_file"; then
1504    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1505echo "$as_me: loading cache $cache_file" >&6;}
1506    case $cache_file in
1507      [\\/]* | ?:[\\/]* ) . $cache_file;;
1508      *)                      . ./$cache_file;;
1509    esac
1510  fi
1511else
1512  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1513echo "$as_me: creating cache $cache_file" >&6;}
1514  >$cache_file
1515fi
1516
1517# Check that the precious variables saved in the cache have kept the same
1518# value.
1519ac_cache_corrupted=false
1520for ac_var in `(set) 2>&1 |
1521               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1522  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1523  eval ac_new_set=\$ac_env_${ac_var}_set
1524  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1525  eval ac_new_val="\$ac_env_${ac_var}_value"
1526  case $ac_old_set,$ac_new_set in
1527    set,)
1528      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1529echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1530      ac_cache_corrupted=: ;;
1531    ,set)
1532      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1533echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1534      ac_cache_corrupted=: ;;
1535    ,);;
1536    *)
1537      if test "x$ac_old_val" != "x$ac_new_val"; then
1538        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1539echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1540        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1541echo "$as_me:   former value:  $ac_old_val" >&2;}
1542        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1543echo "$as_me:   current value: $ac_new_val" >&2;}
1544        ac_cache_corrupted=:
1545      fi;;
1546  esac
1547  # Pass precious variables to config.status.
1548  if test "$ac_new_set" = set; then
1549    case $ac_new_val in
1550    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1551      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1552    *) ac_arg=$ac_var=$ac_new_val ;;
1553    esac
1554    case " $ac_configure_args " in
1555      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1556      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1557    esac
1558  fi
1559done
1560if $ac_cache_corrupted; then
1561  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1562echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1563  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1564echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1565   { (exit 1); exit 1; }; }
1566fi
1567
1568ac_ext=c
1569ac_cpp='$CPP $CPPFLAGS'
1570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1572ac_compiler_gnu=$ac_cv_c_compiler_gnu
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603# List one file in the package so that the configure script can test
1604# whether the package is actually there
1605
1606
1607# Where should everything be installed by default?  Here, we want it
1608# to be installed directly in 'bin', 'lib', 'include' subdirectories
1609# of the directory where configure is run.  The default would be
1610# /usr/local.
1611
1612
1613
1614# As backup, we make sure we don't loose an FLIBS if it has been set
1615# by the user
1616save_FLIBS="$FLIBS"
1617
1618# A useful makefile conditional that is always false
1619
1620
1621if false; then
1622  ALWAYS_FALSE_TRUE=
1623  ALWAYS_FALSE_FALSE='#'
1624else
1625  ALWAYS_FALSE_TRUE='#'
1626  ALWAYS_FALSE_FALSE=
1627fi
1628
1629
1630# We set the following variable so that we know later in AC_COIN_FINALIZE
1631# that we are in a project main directory
1632coin_projectdir=yes
1633
1634# Set the project's version numbers
1635
1636
1637cat >>confdefs.h <<_ACEOF
1638#define MUMPS_VERSION "$PACKAGE_VERSION"
1639_ACEOF
1640
1641
1642  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1643  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1644  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1645  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1646  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1647  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1648
1649cat >>confdefs.h <<_ACEOF
1650#define MUMPS_VERSION_MAJOR $coin_majorver
1651_ACEOF
1652
1653
1654cat >>confdefs.h <<_ACEOF
1655#define MUMPS_VERSION_MINOR $coin_minorver
1656_ACEOF
1657
1658
1659cat >>confdefs.h <<_ACEOF
1660#define MUMPS_VERSION_RELEASE $coin_releasever
1661_ACEOF
1662
1663
1664  # We use the following variable to have a string with the upper case
1665  # version of the project name
1666  COIN_PRJCT=MUMPS
1667
1668  # Set the project's SVN revision number. The complicated sed expression
1669  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1670  # as a single number.
1671  # Extract the first word of "svnversion", so it can be a program name with args.
1672set dummy svnversion; ac_word=$2
1673echo "$as_me:$LINENO: checking for $ac_word" >&5
1674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675if test "${ac_cv_prog_have_svnversion+set}" = set; then
1676  echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678  if test -n "$have_svnversion"; then
1679  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1680else
1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682for as_dir in $PATH
1683do
1684  IFS=$as_save_IFS
1685  test -z "$as_dir" && as_dir=.
1686  for ac_exec_ext in '' $ac_executable_extensions; do
1687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688    ac_cv_prog_have_svnversion="yes"
1689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690    break 2
1691  fi
1692done
1693done
1694
1695  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1696fi
1697fi
1698have_svnversion=$ac_cv_prog_have_svnversion
1699if test -n "$have_svnversion"; then
1700  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1701echo "${ECHO_T}$have_svnversion" >&6
1702else
1703  echo "$as_me:$LINENO: result: no" >&5
1704echo "${ECHO_T}no" >&6
1705fi
1706
1707  if test "x$have_svnversion" = xyes; then
1708
1709    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1710    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1711      MUMPS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1712
1713cat >>confdefs.h <<_ACEOF
1714#define MUMPS_SVN_REV $MUMPS_SVN_REV
1715_ACEOF
1716
1717    fi
1718  fi
1719
1720
1721
1722# Capture libtool library version, if given.
1723
1724
1725
1726
1727#############################################################################
1728#                         Standard build tool stuff                         #
1729#############################################################################
1730
1731# Get the system type
1732ac_aux_dir=
1733for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1734  if test -f $ac_dir/install-sh; then
1735    ac_aux_dir=$ac_dir
1736    ac_install_sh="$ac_aux_dir/install-sh -c"
1737    break
1738  elif test -f $ac_dir/install.sh; then
1739    ac_aux_dir=$ac_dir
1740    ac_install_sh="$ac_aux_dir/install.sh -c"
1741    break
1742  elif test -f $ac_dir/shtool; then
1743    ac_aux_dir=$ac_dir
1744    ac_install_sh="$ac_aux_dir/shtool install -c"
1745    break
1746  fi
1747done
1748if test -z "$ac_aux_dir"; then
1749  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1750echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1751   { (exit 1); exit 1; }; }
1752fi
1753ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1754ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1755ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1756
1757# Make sure we can run config.sub.
1758$ac_config_sub sun4 >/dev/null 2>&1 ||
1759  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1760echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1761   { (exit 1); exit 1; }; }
1762
1763echo "$as_me:$LINENO: checking build system type" >&5
1764echo $ECHO_N "checking build system type... $ECHO_C" >&6
1765if test "${ac_cv_build+set}" = set; then
1766  echo $ECHO_N "(cached) $ECHO_C" >&6
1767else
1768  ac_cv_build_alias=$build_alias
1769test -z "$ac_cv_build_alias" &&
1770  ac_cv_build_alias=`$ac_config_guess`
1771test -z "$ac_cv_build_alias" &&
1772  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1773echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1774   { (exit 1); exit 1; }; }
1775ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1776  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1777echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1778   { (exit 1); exit 1; }; }
1779
1780fi
1781echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1782echo "${ECHO_T}$ac_cv_build" >&6
1783build=$ac_cv_build
1784build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1785build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1786build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1787
1788
1789
1790#turn off warnings and pedantic mode since they could make trouble on some platforms,
1791#and we couldn't fix them anyway
1792coin_skip_warn_cflags=yes
1793coin_skip_warn_fflags=yes
1794
1795# Check if user wants to produce debugging code
1796
1797echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1798echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1799
1800# Check whether --enable-debug or --disable-debug was given.
1801if test "${enable_debug+set}" = set; then
1802  enableval="$enable_debug"
1803  case "${enableval}" in
1804   yes) coin_debug_compile=true
1805        if test "${enable_shared+set}" = set; then :; else
1806          enable_shared=no
1807        fi
1808        ;;
1809   no)  coin_debug_compile=false
1810        ;;
1811   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1812echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1813   { (exit 1); exit 1; }; }
1814        ;;
1815esac
1816else
1817  coin_debug_compile=false
1818fi;
1819
1820# Check whether --enable-debug-mumps or --disable-debug-mumps was given.
1821if test "${enable_debug_mumps+set}" = set; then
1822  enableval="$enable_debug_mumps"
1823  case "${enableval}" in
1824    yes) coin_debug_compile=true
1825         ;;
1826    no)  coin_debug_compile=false
1827         ;;
1828    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-mumps" >&5
1829echo "$as_me: error: bad value ${enableval} for --enable-debug-mumps" >&2;}
1830   { (exit 1); exit 1; }; }
1831         ;;
1832 esac
1833else
1834  :
1835fi;
1836
1837 # m4_ifvaln([Mumps],
1838
1839if test $coin_debug_compile = true; then
1840  echo "$as_me:$LINENO: result: yes" >&5
1841echo "${ECHO_T}yes" >&6
1842else
1843  echo "$as_me:$LINENO: result: no" >&5
1844echo "${ECHO_T}no" >&6
1845fi
1846
1847
1848# Check whether --with-mumps-verbosity or --without-mumps-verbosity was given.
1849if test "${with_mumps_verbosity+set}" = set; then
1850  withval="$with_mumps_verbosity"
1851  if test "$withval" = yes; then
1852                withval=1
1853              fi
1854              coin_mumps_verbosity=$withval
1855else
1856  coin_mumps_verbosity=0
1857fi;
1858
1859cat >>confdefs.h <<_ACEOF
1860#define COIN_MUMPS_VERBOSITY $coin_mumps_verbosity
1861_ACEOF
1862
1863
1864
1865# Check whether --with-mumps-checklevel or --without-mumps-checklevel was given.
1866if test "${with_mumps_checklevel+set}" = set; then
1867  withval="$with_mumps_checklevel"
1868  if test "$withval" = yes; then
1869                withval=1
1870              fi
1871              coin_mumps_checklevel=$withval
1872else
1873  coin_mumps_checklevel=0
1874fi;
1875
1876cat >>confdefs.h <<_ACEOF
1877#define COIN_MUMPS_CHECKLEVEL $coin_mumps_checklevel
1878_ACEOF
1879
1880
1881 # m4_ifvaln([Mumps],
1882
1883
1884
1885# Get the name of the C compiler
1886
1887
1888  # for backward compatibility
1889  # Check whether --enable-doscompile or --disable-doscompile was given.
1890if test "${enable_doscompile+set}" = set; then
1891  enableval="$enable_doscompile"
1892  enable_doscompile=$enableval
1893else
1894  enable_doscompile=no
1895fi;
1896
1897  # Check whether --enable-msvc or --disable-msvc was given.
1898if test "${enable_msvc+set}" = set; then
1899  enableval="$enable_msvc"
1900  enable_msvc=$enableval
1901else
1902  enable_msvc=no
1903     if test "$enable_doscompile" = msvc ; then
1904       enable_msvc=yes
1905     elif test "$enable_doscompile" != no ; then
1906       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1907echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1908   { (exit 1); exit 1; }; }
1909     fi
1910
1911fi;
1912
1913  if test "$enable_msvc" = yes; then
1914    case $build in
1915      *-cygwin* | *-mingw*) ;;
1916      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1917echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1918   { (exit 1); exit 1; }; } ;;
1919    esac
1920  fi
1921
1922
1923 case $build in
1924  *-mingw*)
1925    if test "${LD+set}" = set; then :; else
1926      LD=link
1927    fi
1928    ;;
1929 esac
1930 if test $enable_msvc = yes ; then
1931   if test "x${LD+set}" = xset; then :; else
1932     LD=link
1933   fi
1934 fi
1935
1936
1937# Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.
1938if test "${enable_static_standardlibs+set}" = set; then
1939  enableval="$enable_static_standardlibs"
1940  case "$enableval" in
1941     no | yes | auto ) ;;
1942     *)
1943       { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5
1944echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}
1945   { (exit 1); exit 1; }; } ;;
1946   esac
1947   use_static_standardlibs=$enableval
1948else
1949  use_static_standardlibs=no
1950fi;
1951
1952
1953
1954
1955
1956ac_ext=c
1957ac_cpp='$CPP $CPPFLAGS'
1958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961
1962
1963# For consistency, we set the C compiler to the same value of the C++
1964# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1965if test x"$CXX" != x; then
1966  case "$CXX" in
1967    clang* ) ;;
1968    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1969      if test x"$CC" = x; then
1970        CC="$CXX"
1971        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1972echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1973      fi
1974      ;;
1975  esac
1976fi
1977
1978
1979
1980
1981
1982
1983coin_has_cc=yes
1984
1985save_cflags="$CFLAGS"
1986
1987# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1988# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1989# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1990# compiler. In this case, put cc after gcc.
1991
1992case $build in
1993  *-cygwin* | *-mingw*)
1994             if test "$enable_msvc" = yes ; then
1995               comps="icl cl gcc"
1996             else
1997               comps="gcc icl cl"
1998             fi ;;
1999  *-*-solaris*)
2000             # Extract the first word of "cc", so it can be a program name with args.
2001set dummy cc; ac_word=$2
2002echo "$as_me:$LINENO: checking for $ac_word" >&5
2003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2005  echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
2007  if test -n "$sol_cc_compiler"; then
2008  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2009else
2010  ac_prog_rejected=no
2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012for as_dir in $PATH
2013do
2014  IFS=$as_save_IFS
2015  test -z "$as_dir" && as_dir=.
2016  for ac_exec_ext in '' $ac_executable_extensions; do
2017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2019       ac_prog_rejected=yes
2020       continue
2021     fi
2022    ac_cv_prog_sol_cc_compiler="cc"
2023    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024    break 2
2025  fi
2026done
2027done
2028
2029if test $ac_prog_rejected = yes; then
2030  # We found a bogon in the path, so make sure we never use it.
2031  set dummy $ac_cv_prog_sol_cc_compiler
2032  shift
2033  if test $# != 0; then
2034    # We chose a different compiler from the bogus one.
2035    # However, it has the same basename, so the bogon will be chosen
2036    # first if we set sol_cc_compiler to just the basename; use the full file name.
2037    shift
2038    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2039  fi
2040fi
2041fi
2042fi
2043sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2044if test -n "$sol_cc_compiler"; then
2045  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2046echo "${ECHO_T}$sol_cc_compiler" >&6
2047else
2048  echo "$as_me:$LINENO: result: no" >&5
2049echo "${ECHO_T}no" >&6
2050fi
2051
2052             if test "$sol_cc_compiler" = "cc" ; then
2053               comps="cc xlc gcc pgcc icc"
2054             else
2055               comps="xlc gcc pgcc icc cc"
2056             fi
2057             ;;
2058  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2059  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2060  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2061esac
2062
2063# We delete the cached value, since the test might not have been
2064# performed with our choice of compilers earlier
2065$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2066# AC_MSG_NOTICE([C compiler candidates: $comps])
2067ac_ext=c
2068ac_cpp='$CPP $CPPFLAGS'
2069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072if test -n "$ac_tool_prefix"; then
2073  for ac_prog in $comps
2074  do
2075    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2076set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2077echo "$as_me:$LINENO: checking for $ac_word" >&5
2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079if test "${ac_cv_prog_CC+set}" = set; then
2080  echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082  if test -n "$CC"; then
2083  ac_cv_prog_CC="$CC" # Let the user override the test.
2084else
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088  IFS=$as_save_IFS
2089  test -z "$as_dir" && as_dir=.
2090  for ac_exec_ext in '' $ac_executable_extensions; do
2091  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094    break 2
2095  fi
2096done
2097done
2098
2099fi
2100fi
2101CC=$ac_cv_prog_CC
2102if test -n "$CC"; then
2103  echo "$as_me:$LINENO: result: $CC" >&5
2104echo "${ECHO_T}$CC" >&6
2105else
2106  echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6
2108fi
2109
2110    test -n "$CC" && break
2111  done
2112fi
2113if test -z "$CC"; then
2114  ac_ct_CC=$CC
2115  for ac_prog in $comps
2116do
2117  # Extract the first word of "$ac_prog", so it can be a program name with args.
2118set dummy $ac_prog; ac_word=$2
2119echo "$as_me:$LINENO: checking for $ac_word" >&5
2120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122  echo $ECHO_N "(cached) $ECHO_C" >&6
2123else
2124  if test -n "$ac_ct_CC"; then
2125  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126else
2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130  IFS=$as_save_IFS
2131  test -z "$as_dir" && as_dir=.
2132  for ac_exec_ext in '' $ac_executable_extensions; do
2133  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134    ac_cv_prog_ac_ct_CC="$ac_prog"
2135    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136    break 2
2137  fi
2138done
2139done
2140
2141fi
2142fi
2143ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144if test -n "$ac_ct_CC"; then
2145  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146echo "${ECHO_T}$ac_ct_CC" >&6
2147else
2148  echo "$as_me:$LINENO: result: no" >&5
2149echo "${ECHO_T}no" >&6
2150fi
2151
2152  test -n "$ac_ct_CC" && break
2153done
2154
2155  CC=$ac_ct_CC
2156fi
2157
2158
2159test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2160See \`config.log' for more details." >&5
2161echo "$as_me: error: no acceptable C compiler found in \$PATH
2162See \`config.log' for more details." >&2;}
2163   { (exit 1); exit 1; }; }
2164
2165# Provide some information about the compiler.
2166echo "$as_me:$LINENO:" \
2167     "checking for C compiler version" >&5
2168ac_compiler=`set X $ac_compile; echo $2`
2169{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2170  (eval $ac_compiler --version </dev/null >&5) 2>&5
2171  ac_status=$?
2172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173  (exit $ac_status); }
2174{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2175  (eval $ac_compiler -v </dev/null >&5) 2>&5
2176  ac_status=$?
2177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178  (exit $ac_status); }
2179{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2180  (eval $ac_compiler -V </dev/null >&5) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }
2184
2185cat >conftest.$ac_ext <<_ACEOF
2186/* confdefs.h.  */
2187_ACEOF
2188cat confdefs.h >>conftest.$ac_ext
2189cat >>conftest.$ac_ext <<_ACEOF
2190/* end confdefs.h.  */
2191
2192int
2193main ()
2194{
2195
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200ac_clean_files_save=$ac_clean_files
2201ac_clean_files="$ac_clean_files a.out a.exe b.out"
2202# Try to create an executable without -o first, disregard a.out.
2203# It will help us diagnose broken compilers, and finding out an intuition
2204# of exeext.
2205echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2206echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2207ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2208if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2209  (eval $ac_link_default) 2>&5
2210  ac_status=$?
2211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212  (exit $ac_status); }; then
2213  # Find the output, starting from the most likely.  This scheme is
2214# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2215# resort.
2216
2217# Be careful to initialize this variable, since it used to be cached.
2218# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2219ac_cv_exeext=
2220# b.out is created by i960 compilers.
2221for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2222do
2223  test -f "$ac_file" || continue
2224  case $ac_file in
2225    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2226        ;;
2227    conftest.$ac_ext )
2228        # This is the source file.
2229        ;;
2230    [ab].out )
2231        # We found the default executable, but exeext='' is most
2232        # certainly right.
2233        break;;
2234    *.* )
2235        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236        # FIXME: I believe we export ac_cv_exeext for Libtool,
2237        # but it would be cool to find out if it's true.  Does anybody
2238        # maintain Libtool? --akim.
2239        export ac_cv_exeext
2240        break;;
2241    * )
2242        break;;
2243  esac
2244done
2245else
2246  echo "$as_me: failed program was:" >&5
2247sed 's/^/| /' conftest.$ac_ext >&5
2248
2249{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2250See \`config.log' for more details." >&5
2251echo "$as_me: error: C compiler cannot create executables
2252See \`config.log' for more details." >&2;}
2253   { (exit 77); exit 77; }; }
2254fi
2255
2256ac_exeext=$ac_cv_exeext
2257echo "$as_me:$LINENO: result: $ac_file" >&5
2258echo "${ECHO_T}$ac_file" >&6
2259
2260# Check the compiler produces executables we can run.  If not, either
2261# the compiler is broken, or we cross compile.
2262echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2263echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2264# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2265# If not cross compiling, check that we can run a simple program.
2266if test "$cross_compiling" != yes; then
2267  if { ac_try='./$ac_file'
2268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269  (eval $ac_try) 2>&5
2270  ac_status=$?
2271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272  (exit $ac_status); }; }; then
2273    cross_compiling=no
2274  else
2275    if test "$cross_compiling" = maybe; then
2276        cross_compiling=yes
2277    else
2278        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2279If you meant to cross compile, use \`--host'.
2280See \`config.log' for more details." >&5
2281echo "$as_me: error: cannot run C compiled programs.
2282If you meant to cross compile, use \`--host'.
2283See \`config.log' for more details." >&2;}
2284   { (exit 1); exit 1; }; }
2285    fi
2286  fi
2287fi
2288echo "$as_me:$LINENO: result: yes" >&5
2289echo "${ECHO_T}yes" >&6
2290
2291rm -f a.out a.exe conftest$ac_cv_exeext b.out
2292ac_clean_files=$ac_clean_files_save
2293# Check the compiler produces executables we can run.  If not, either
2294# the compiler is broken, or we cross compile.
2295echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2296echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2297echo "$as_me:$LINENO: result: $cross_compiling" >&5
2298echo "${ECHO_T}$cross_compiling" >&6
2299
2300echo "$as_me:$LINENO: checking for suffix of executables" >&5
2301echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2303  (eval $ac_link) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); }; then
2307  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2308# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2309# work properly (i.e., refer to `conftest.exe'), while it won't with
2310# `rm'.
2311for ac_file in conftest.exe conftest conftest.*; do
2312  test -f "$ac_file" || continue
2313  case $ac_file in
2314    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2315    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2316          export ac_cv_exeext
2317          break;;
2318    * ) break;;
2319  esac
2320done
2321else
2322  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2323See \`config.log' for more details." >&5
2324echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2325See \`config.log' for more details." >&2;}
2326   { (exit 1); exit 1; }; }
2327fi
2328
2329rm -f conftest$ac_cv_exeext
2330echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2331echo "${ECHO_T}$ac_cv_exeext" >&6
2332
2333rm -f conftest.$ac_ext
2334EXEEXT=$ac_cv_exeext
2335ac_exeext=$EXEEXT
2336echo "$as_me:$LINENO: checking for suffix of object files" >&5
2337echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2338if test "${ac_cv_objext+set}" = set; then
2339  echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341  cat >conftest.$ac_ext <<_ACEOF
2342/* confdefs.h.  */
2343_ACEOF
2344cat confdefs.h >>conftest.$ac_ext
2345cat >>conftest.$ac_ext <<_ACEOF
2346/* end confdefs.h.  */
2347
2348int
2349main ()
2350{
2351
2352  ;
2353  return 0;
2354}
2355_ACEOF
2356rm -f conftest.o conftest.obj
2357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358  (eval $ac_compile) 2>&5
2359  ac_status=$?
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); }; then
2362  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2363  case $ac_file in
2364    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2365    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2366       break;;
2367  esac
2368done
2369else
2370  echo "$as_me: failed program was:" >&5
2371sed 's/^/| /' conftest.$ac_ext >&5
2372
2373{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2374See \`config.log' for more details." >&5
2375echo "$as_me: error: cannot compute suffix of object files: cannot compile
2376See \`config.log' for more details." >&2;}
2377   { (exit 1); exit 1; }; }
2378fi
2379
2380rm -f conftest.$ac_cv_objext conftest.$ac_ext
2381fi
2382echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2383echo "${ECHO_T}$ac_cv_objext" >&6
2384OBJEXT=$ac_cv_objext
2385ac_objext=$OBJEXT
2386echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2387echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2388if test "${ac_cv_c_compiler_gnu+set}" = set; then
2389  echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391  cat >conftest.$ac_ext <<_ACEOF
2392/* confdefs.h.  */
2393_ACEOF
2394cat confdefs.h >>conftest.$ac_ext
2395cat >>conftest.$ac_ext <<_ACEOF
2396/* end confdefs.h.  */
2397
2398int
2399main ()
2400{
2401#ifndef __GNUC__
2402       choke me
2403#endif
2404
2405  ;
2406  return 0;
2407}
2408_ACEOF
2409rm -f conftest.$ac_objext
2410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411  (eval $ac_compile) 2>conftest.er1
2412  ac_status=$?
2413  grep -v '^ *+' conftest.er1 >conftest.err
2414  rm -f conftest.er1
2415  cat conftest.err >&5
2416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417  (exit $ac_status); } &&
2418         { ac_try='test -z "$ac_c_werror_flag"
2419                         || test ! -s conftest.err'
2420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421  (eval $ac_try) 2>&5
2422  ac_status=$?
2423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424  (exit $ac_status); }; } &&
2425         { ac_try='test -s conftest.$ac_objext'
2426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427  (eval $ac_try) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; }; then
2431  ac_compiler_gnu=yes
2432else
2433  echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436ac_compiler_gnu=no
2437fi
2438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439ac_cv_c_compiler_gnu=$ac_compiler_gnu
2440
2441fi
2442echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2443echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2444GCC=`test $ac_compiler_gnu = yes && echo yes`
2445ac_test_CFLAGS=${CFLAGS+set}
2446ac_save_CFLAGS=$CFLAGS
2447CFLAGS="-g"
2448echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2449echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2450if test "${ac_cv_prog_cc_g+set}" = set; then
2451  echo $ECHO_N "(cached) $ECHO_C" >&6
2452else
2453  cat >conftest.$ac_ext <<_ACEOF
2454/* confdefs.h.  */
2455_ACEOF
2456cat confdefs.h >>conftest.$ac_ext
2457cat >>conftest.$ac_ext <<_ACEOF
2458/* end confdefs.h.  */
2459
2460int
2461main ()
2462{
2463
2464  ;
2465  return 0;
2466}
2467_ACEOF
2468rm -f conftest.$ac_objext
2469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470  (eval $ac_compile) 2>conftest.er1
2471  ac_status=$?
2472  grep -v '^ *+' conftest.er1 >conftest.err
2473  rm -f conftest.er1
2474  cat conftest.err >&5
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); } &&
2477         { ac_try='test -z "$ac_c_werror_flag"
2478                         || test ! -s conftest.err'
2479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480  (eval $ac_try) 2>&5
2481  ac_status=$?
2482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483  (exit $ac_status); }; } &&
2484         { ac_try='test -s conftest.$ac_objext'
2485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486  (eval $ac_try) 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; }; then
2490  ac_cv_prog_cc_g=yes
2491else
2492  echo "$as_me: failed program was:" >&5
2493sed 's/^/| /' conftest.$ac_ext >&5
2494
2495ac_cv_prog_cc_g=no
2496fi
2497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2498fi
2499echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2500echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2501if test "$ac_test_CFLAGS" = set; then
2502  CFLAGS=$ac_save_CFLAGS
2503elif test $ac_cv_prog_cc_g = yes; then
2504  if test "$GCC" = yes; then
2505    CFLAGS="-g -O2"
2506  else
2507    CFLAGS="-g"
2508  fi
2509else
2510  if test "$GCC" = yes; then
2511    CFLAGS="-O2"
2512  else
2513    CFLAGS=
2514  fi
2515fi
2516echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2517echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2518if test "${ac_cv_prog_cc_stdc+set}" = set; then
2519  echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521  ac_cv_prog_cc_stdc=no
2522ac_save_CC=$CC
2523cat >conftest.$ac_ext <<_ACEOF
2524/* confdefs.h.  */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h.  */
2529#include <stdarg.h>
2530#include <stdio.h>
2531#include <sys/types.h>
2532#include <sys/stat.h>
2533/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2534struct buf { int x; };
2535FILE * (*rcsopen) (struct buf *, struct stat *, int);
2536static char *e (p, i)
2537     char **p;
2538     int i;
2539{
2540  return p[i];
2541}
2542static char *f (char * (*g) (char **, int), char **p, ...)
2543{
2544  char *s;
2545  va_list v;
2546  va_start (v,p);
2547  s = g (p, va_arg (v,int));
2548  va_end (v);
2549  return s;
2550}
2551
2552/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2553   function prototypes and stuff, but not '\xHH' hex character constants.
2554   These don't provoke an error unfortunately, instead are silently treated
2555   as 'x'.  The following induces an error, until -std1 is added to get
2556   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2557   array size at least.  It's necessary to write '\x00'==0 to get something
2558   that's true only with -std1.  */
2559int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2560
2561int test (int i, double x);
2562struct s1 {int (*f) (int a);};
2563struct s2 {int (*f) (double a);};
2564int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2565int argc;
2566char **argv;
2567int
2568main ()
2569{
2570return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2571  ;
2572  return 0;
2573}
2574_ACEOF
2575# Don't try gcc -ansi; that turns off useful extensions and
2576# breaks some systems' header files.
2577# AIX                   -qlanglvl=ansi
2578# Ultrix and OSF/1      -std1
2579# HP-UX 10.20 and later -Ae
2580# HP-UX older versions  -Aa -D_HPUX_SOURCE
2581# SVR4                  -Xc -D__EXTENSIONS__
2582for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2583do
2584  CC="$ac_save_CC $ac_arg"
2585  rm -f conftest.$ac_objext
2586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587  (eval $ac_compile) 2>conftest.er1
2588  ac_status=$?
2589  grep -v '^ *+' conftest.er1 >conftest.err
2590  rm -f conftest.er1
2591  cat conftest.err >&5
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); } &&
2594         { ac_try='test -z "$ac_c_werror_flag"
2595                         || test ! -s conftest.err'
2596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597  (eval $ac_try) 2>&5
2598  ac_status=$?
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); }; } &&
2601         { ac_try='test -s conftest.$ac_objext'
2602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603  (eval $ac_try) 2>&5
2604  ac_status=$?
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); }; }; then
2607  ac_cv_prog_cc_stdc=$ac_arg
2608break
2609else
2610  echo "$as_me: failed program was:" >&5
2611sed 's/^/| /' conftest.$ac_ext >&5
2612
2613fi
2614rm -f conftest.err conftest.$ac_objext
2615done
2616rm -f conftest.$ac_ext conftest.$ac_objext
2617CC=$ac_save_CC
2618
2619fi
2620
2621case "x$ac_cv_prog_cc_stdc" in
2622  x|xno)
2623    echo "$as_me:$LINENO: result: none needed" >&5
2624echo "${ECHO_T}none needed" >&6 ;;
2625  *)
2626    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2627echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2628    CC="$CC $ac_cv_prog_cc_stdc" ;;
2629esac
2630
2631# Some people use a C++ compiler to compile C.  Since we use `exit',
2632# in C++ we need to declare it.  In case someone uses the same compiler
2633# for both compiling C and C++ we need to have the C++ compiler decide
2634# the declaration of exit, since it's the most demanding environment.
2635cat >conftest.$ac_ext <<_ACEOF
2636#ifndef __cplusplus
2637  choke me
2638#endif
2639_ACEOF
2640rm -f conftest.$ac_objext
2641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642  (eval $ac_compile) 2>conftest.er1
2643  ac_status=$?
2644  grep -v '^ *+' conftest.er1 >conftest.err
2645  rm -f conftest.er1
2646  cat conftest.err >&5
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); } &&
2649         { ac_try='test -z "$ac_c_werror_flag"
2650                         || test ! -s conftest.err'
2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652  (eval $ac_try) 2>&5
2653  ac_status=$?
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); }; } &&
2656         { ac_try='test -s conftest.$ac_objext'
2657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658  (eval $ac_try) 2>&5
2659  ac_status=$?
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); }; }; then
2662  for ac_declaration in \
2663   '' \
2664   'extern "C" void std::exit (int) throw (); using std::exit;' \
2665   'extern "C" void std::exit (int); using std::exit;' \
2666   'extern "C" void exit (int) throw ();' \
2667   'extern "C" void exit (int);' \
2668   'void exit (int);'
2669do
2670  cat >conftest.$ac_ext <<_ACEOF
2671/* confdefs.h.  */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h.  */
2676$ac_declaration
2677#include <stdlib.h>
2678int
2679main ()
2680{
2681exit (42);
2682  ;
2683  return 0;
2684}
2685_ACEOF
2686rm -f conftest.$ac_objext
2687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688  (eval $ac_compile) 2>conftest.er1
2689  ac_status=$?
2690  grep -v '^ *+' conftest.er1 >conftest.err
2691  rm -f conftest.er1
2692  cat conftest.err >&5
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); } &&
2695         { ac_try='test -z "$ac_c_werror_flag"
2696                         || test ! -s conftest.err'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; } &&
2702         { ac_try='test -s conftest.$ac_objext'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; }; then
2708  :
2709else
2710  echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713continue
2714fi
2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716  cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h.  */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h.  */
2722$ac_declaration
2723int
2724main ()
2725{
2726exit (42);
2727  ;
2728  return 0;
2729}
2730_ACEOF
2731rm -f conftest.$ac_objext
2732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733  (eval $ac_compile) 2>conftest.er1
2734  ac_status=$?
2735  grep -v '^ *+' conftest.er1 >conftest.err
2736  rm -f conftest.er1
2737  cat conftest.err >&5
2738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); } &&
2740         { ac_try='test -z "$ac_c_werror_flag"
2741                         || test ! -s conftest.err'
2742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743  (eval $ac_try) 2>&5
2744  ac_status=$?
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); }; } &&
2747         { ac_try='test -s conftest.$ac_objext'
2748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749  (eval $ac_try) 2>&5
2750  ac_status=$?
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); }; }; then
2753  break
2754else
2755  echo "$as_me: failed program was:" >&5
2756sed 's/^/| /' conftest.$ac_ext >&5
2757
2758fi
2759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760done
2761rm -f conftest*
2762if test -n "$ac_declaration"; then
2763  echo '#ifdef __cplusplus' >>confdefs.h
2764  echo $ac_declaration      >>confdefs.h
2765  echo '#endif'             >>confdefs.h
2766fi
2767
2768else
2769  echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772fi
2773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774ac_ext=c
2775ac_cpp='$CPP $CPPFLAGS'
2776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
2780if test -z "$CC" ; then
2781  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2782echo "$as_me: error: Failed to find a C compiler!" >&2;}
2783   { (exit 1); exit 1; }; }
2784fi
2785# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2786case "$CC" in
2787  clang* ) ;;
2788  cl* | */cl* | CL* | */CL* )
2789    if test "$ac_cv_prog_cc_g" = yes ; then
2790      ac_cv_prog_cc_g=no
2791      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2792echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2793    fi ;;
2794  * )
2795    CYGPATH_W=echo
2796    ;;
2797esac
2798CFLAGS="$save_cflags"
2799
2800# add automake conditional so we can recognize cl compiler in makefile
2801coin_cc_is_cl=false
2802case "$CC" in
2803  clang* ) ;;
2804  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2805    coin_cc_is_cl=true
2806    ;;
2807esac
2808
2809
2810if test $coin_cc_is_cl = true; then
2811  COIN_CC_IS_CL_TRUE=
2812  COIN_CC_IS_CL_FALSE='#'
2813else
2814  COIN_CC_IS_CL_TRUE='#'
2815  COIN_CC_IS_CL_FALSE=
2816fi
2817
2818
2819# Check if a project specific CFLAGS variable has been set
2820if test x$COIN_PRJCT != x; then
2821  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2822  if test x$coin_tmp = xset; then
2823    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2824  fi
2825fi
2826
2827if test x"$CFLAGS" = x; then
2828
2829  coin_add_cflags=
2830  coin_opt_cflags=
2831  coin_dbg_cflags=
2832  coin_warn_cflags=
2833
2834  if test "$GCC" = "yes"; then
2835    case "$CC" in
2836      icc* | */icc*)
2837        ;;
2838      *)
2839        coin_opt_cflags="-O3"
2840        coin_add_cflags="-pipe"
2841        coin_dbg_cflags="-g -O0"
2842        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2843        case $build in
2844          *-darwin*)
2845            ;;
2846          *)
2847            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2848            ;;
2849        esac
2850    esac
2851  fi
2852  if test -z "$coin_opt_cflags"; then
2853    case $build in
2854      *-cygwin* | *-mingw*)
2855        case "$CC" in
2856          clang* ) ;;
2857          cl* | */cl* | CL* | */CL*)
2858            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2859              coin_opt_cflags='-MD -O2'
2860              coin_dbg_cflags='-MDd'
2861            else
2862              coin_opt_cflags='-MT -O2'
2863              coin_dbg_cflags='-MTd'
2864            fi
2865            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2866            ;;
2867          icl* | */icl* | ICL* | */ICL*)
2868            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2869              coin_opt_cflags='-MD -Ox'
2870              coin_dbg_cflags='-MDd -debug'
2871            else
2872              coin_opt_cflags='-MT -Ox'
2873              coin_dbg_cflags='-MTd -debug'
2874            fi
2875            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2876            ;;
2877        esac
2878        ;;
2879      *-linux-*)
2880        case "$CC" in
2881          icc* | */icc*)
2882            coin_opt_cflags="-O3 -ip -mp1"
2883            coin_add_cflags=""
2884            coin_dbg_cflags="-g"
2885            # Check if -i_dynamic is necessary (for new glibc library)
2886            CFLAGS=
2887            cat >conftest.$ac_ext <<_ACEOF
2888/* confdefs.h.  */
2889_ACEOF
2890cat confdefs.h >>conftest.$ac_ext
2891cat >>conftest.$ac_ext <<_ACEOF
2892/* end confdefs.h.  */
2893
2894int
2895main ()
2896{
2897int i=0; i++;
2898  ;
2899  return 0;
2900}
2901_ACEOF
2902rm -f conftest.$ac_objext conftest$ac_exeext
2903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2904  (eval $ac_link) 2>conftest.er1
2905  ac_status=$?
2906  grep -v '^ *+' conftest.er1 >conftest.err
2907  rm -f conftest.er1
2908  cat conftest.err >&5
2909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910  (exit $ac_status); } &&
2911         { ac_try='test -z "$ac_c_werror_flag"
2912                         || test ! -s conftest.err'
2913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914  (eval $ac_try) 2>&5
2915  ac_status=$?
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); }; } &&
2918         { ac_try='test -s conftest$ac_exeext'
2919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920  (eval $ac_try) 2>&5
2921  ac_status=$?
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); }; }; then
2924  :
2925else
2926  echo "$as_me: failed program was:" >&5
2927sed 's/^/| /' conftest.$ac_ext >&5
2928
2929coin_add_cflags="-i_dynamic $coin_add_cflags"
2930fi
2931rm -f conftest.err conftest.$ac_objext \
2932      conftest$ac_exeext conftest.$ac_ext
2933            ;;
2934          pgcc* | */pgcc*)
2935            coin_opt_cflags="-fast"
2936            coin_add_cflags="-Kieee -pc 64"
2937            coin_dbg_cflags="-g"
2938            ;;
2939        esac
2940        ;;
2941      *-ibm-*)
2942        case "$CC" in
2943          xlc* | */xlc* | mpxlc* | */mpxlc*)
2944            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2945            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2946            coin_dbg_cflags="-g"
2947          ;;
2948        esac
2949        ;;
2950      *-hp-*)
2951        coin_opt_cflags="-O"
2952        coin_add_cflags="-Ae"
2953        coin_dbg_cflags="-g"
2954        ;;
2955      *-*-solaris*)
2956        coin_opt_cflags="-xO4"
2957        coin_dbg_cflags="-g"
2958        ;;
2959      *-sgi-*)
2960        coin_opt_cflags="-O -OPT:Olimit=0"
2961        coin_dbg_cflags="-g"
2962        ;;
2963    esac
2964  fi
2965
2966  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2967    coin_dbg_cflags="-g"
2968  fi
2969
2970  if test -z "$coin_opt_cflags"; then
2971    # Try if -O option works if nothing else is set
2972    CFLAGS="-O"
2973    cat >conftest.$ac_ext <<_ACEOF
2974/* confdefs.h.  */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h.  */
2979
2980int
2981main ()
2982{
2983int i=0; i++;
2984  ;
2985  return 0;
2986}
2987_ACEOF
2988rm -f conftest.$ac_objext conftest$ac_exeext
2989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2990  (eval $ac_link) 2>conftest.er1
2991  ac_status=$?
2992  grep -v '^ *+' conftest.er1 >conftest.err
2993  rm -f conftest.er1
2994  cat conftest.err >&5
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); } &&
2997         { ac_try='test -z "$ac_c_werror_flag"
2998                         || test ! -s conftest.err'
2999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000  (eval $ac_try) 2>&5
3001  ac_status=$?
3002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003  (exit $ac_status); }; } &&
3004         { ac_try='test -s conftest$ac_exeext'
3005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006  (eval $ac_try) 2>&5
3007  ac_status=$?
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); }; }; then
3010  coin_opt_cflags="-O"
3011else
3012  echo "$as_me: failed program was:" >&5
3013sed 's/^/| /' conftest.$ac_ext >&5
3014
3015fi
3016rm -f conftest.err conftest.$ac_objext \
3017      conftest$ac_exeext conftest.$ac_ext
3018  fi
3019
3020  # if PM doesn't want the warning messages, take them out
3021  if test x"$coin_skip_warn_cflags" = xyes; then
3022    coin_warn_cflags=
3023  fi
3024
3025  if test x${DBG_CFLAGS+set} != xset; then
3026    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3027  fi
3028  if test x${OPT_CFLAGS+set} != xset; then
3029    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3030  fi
3031
3032  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3033  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3034
3035  if test "$coin_debug_compile" = "true"; then
3036    CFLAGS="$DBG_CFLAGS"
3037  else
3038    CFLAGS="$OPT_CFLAGS"
3039  fi
3040
3041else
3042  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3043  if test x${DBG_CFLAGS+set} != xset; then
3044    DBG_CFLAGS="$CFLAGS"
3045  fi
3046  if test x${OPT_CFLAGS+set} != xset; then
3047    OPT_CFLAGS="$CFLAGS"
3048  fi
3049fi
3050
3051# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3052
3053case "$CFLAGS" in
3054  *-mno-cygwin*)
3055    if test x${CPPFLAGS+set} != xset ; then
3056      CPPFLAGS="-mno-cygwin"
3057    else
3058      case "$CPPFLAGS" in
3059        *-mno-cygwin*)
3060          ;;
3061        *)
3062          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3063          ;;
3064      esac
3065    fi ;;
3066esac
3067
3068# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3069if test x$COIN_PRJCT != x; then
3070  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3071fi
3072
3073# Try if CFLAGS works
3074save_CFLAGS="$CFLAGS"
3075cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h.  */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085int i=0; i++;
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext conftest$ac_exeext
3091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3092  (eval $ac_link) 2>conftest.er1
3093  ac_status=$?
3094  grep -v '^ *+' conftest.er1 >conftest.err
3095  rm -f conftest.er1
3096  cat conftest.err >&5
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); } &&
3099         { ac_try='test -z "$ac_c_werror_flag"
3100                         || test ! -s conftest.err'
3101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102  (eval $ac_try) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; } &&
3106         { ac_try='test -s conftest$ac_exeext'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112  :
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117CFLAGS=
3118fi
3119rm -f conftest.err conftest.$ac_objext \
3120      conftest$ac_exeext conftest.$ac_ext
3121if test -z "$CFLAGS"; then
3122  { 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
3123echo "$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;}
3124  CFLAGS='-O'
3125  cat >conftest.$ac_ext <<_ACEOF
3126/* confdefs.h.  */
3127_ACEOF
3128cat confdefs.h >>conftest.$ac_ext
3129cat >>conftest.$ac_ext <<_ACEOF
3130/* end confdefs.h.  */
3131
3132int
3133main ()
3134{
3135int i=0; i++;
3136  ;
3137  return 0;
3138}
3139_ACEOF
3140rm -f conftest.$ac_objext conftest$ac_exeext
3141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3142  (eval $ac_link) 2>conftest.er1
3143  ac_status=$?
3144  grep -v '^ *+' conftest.er1 >conftest.err
3145  rm -f conftest.er1
3146  cat conftest.err >&5
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); } &&
3149         { ac_try='test -z "$ac_c_werror_flag"
3150                         || test ! -s conftest.err'
3151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152  (eval $ac_try) 2>&5
3153  ac_status=$?
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); }; } &&
3156         { ac_try='test -s conftest$ac_exeext'
3157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158  (eval $ac_try) 2>&5
3159  ac_status=$?
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }; }; then
3162  :
3163else
3164  echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167CFLAGS=
3168fi
3169rm -f conftest.err conftest.$ac_objext \
3170      conftest$ac_exeext conftest.$ac_ext
3171  if test -z "$CFLAGS"; then
3172    { 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
3173echo "$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;}
3174  fi
3175fi
3176
3177{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3178echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3179
3180
3181if test x"$MPICC" = x; then :; else
3182  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3183echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3184  CC="$MPICC"
3185fi
3186
3187# Correct the LD variable if we are using the MS or Intel-windows compiler
3188case "$CC" in
3189  clang* ) ;;
3190  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3191
3192 case $build in
3193  *-mingw*)
3194    if test "${LD+set}" = set; then :; else
3195      LD=link
3196    fi
3197    ;;
3198 esac
3199 if test $enable_msvc = yes ; then
3200   if test "x${LD+set}" = xset; then :; else
3201     LD=link
3202   fi
3203 fi
3204
3205    ;;
3206esac
3207
3208# check whether to add flags for static linking against standard libraries to LDFLAGS
3209if test x$use_static_standardlibs != xno ; then
3210  case $build in
3211    *-mingw*)
3212      static_standardlib_flag=-static
3213      ;;
3214    *)
3215      static_standardlib_flag=-static-libgcc
3216      ;;
3217  esac
3218  case " $LDFLAGS " in
3219    *" $static_standardlib_flag "* ) ;;
3220    *)
3221    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
3222echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
3223    coin_save_LDFLAGS="$LDFLAGS"
3224    LDFLAGS="$LDFLAGS $static_standardlib_flag"
3225    cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h.  */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
3230/* end confdefs.h.  */
3231
3232int
3233main ()
3234{
3235int i=0;
3236  ;
3237  return 0;
3238}
3239_ACEOF
3240rm -f conftest.$ac_objext conftest$ac_exeext
3241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3242  (eval $ac_link) 2>conftest.er1
3243  ac_status=$?
3244  grep -v '^ *+' conftest.er1 >conftest.err
3245  rm -f conftest.er1
3246  cat conftest.err >&5
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); } &&
3249         { ac_try='test -z "$ac_c_werror_flag"
3250                         || test ! -s conftest.err'
3251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252  (eval $ac_try) 2>&5
3253  ac_status=$?
3254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255  (exit $ac_status); }; } &&
3256         { ac_try='test -s conftest$ac_exeext'
3257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258  (eval $ac_try) 2>&5
3259  ac_status=$?
3260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261  (exit $ac_status); }; }; then
3262  echo "$as_me:$LINENO: result: yes" >&5
3263echo "${ECHO_T}yes" >&6
3264else
3265  echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
3268echo "$as_me:$LINENO: result: no" >&5
3269echo "${ECHO_T}no" >&6
3270       LDFLAGS="$coin_save_LDFLAGS"
3271       if test $use_static_standardlibs = yes ; then
3272         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
3273echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
3274   { (exit 1); exit 1; }; }
3275       fi
3276
3277fi
3278rm -f conftest.err conftest.$ac_objext \
3279      conftest$ac_exeext conftest.$ac_ext
3280    ;;
3281  esac
3282fi
3283
3284ac_ext=c
3285ac_cpp='$CPP $CPPFLAGS'
3286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289
3290
3291
3292# Get the name of the Fortran compiler and appropriate compiler options
3293case $build in
3294  *-cygwin* | *-mingw*)
3295     if test "$enable_msvc" = yes ; then
3296       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3297     else
3298       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3299     fi ;;
3300  *-*-solaris*)
3301     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3302  *-linux-gnu*)
3303     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3304  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3305 esac
3306
3307
3308
3309
3310
3311
3312
3313ac_ext=f
3314ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3315ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3317
3318
3319
3320
3321
3322
3323coin_has_f77=yes
3324
3325save_fflags="$FFLAGS"
3326
3327# We delete the cached value, since the test might not have been
3328# performed with our choice of compilers earlier
3329$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3330
3331# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3332# coin_f77_comps to see if there's a program that matches one of the names.
3333# If there's no such program, F77 = unavailable. If we match the name,
3334# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3335# compiler.
3336# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3337
3338
3339{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3340echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3341if test -n "$ac_tool_prefix"; then
3342  for ac_prog in $coin_f77_comps
3343  do
3344    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3346echo "$as_me:$LINENO: checking for $ac_word" >&5
3347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348if test "${ac_cv_prog_F77+set}" = set; then
3349  echo $ECHO_N "(cached) $ECHO_C" >&6
3350else
3351  if test -n "$F77"; then
3352  ac_cv_prog_F77="$F77" # Let the user override the test.
3353else
3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355for as_dir in $PATH
3356do
3357  IFS=$as_save_IFS
3358  test -z "$as_dir" && as_dir=.
3359  for ac_exec_ext in '' $ac_executable_extensions; do
3360  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363    break 2
3364  fi
3365done
3366done
3367
3368fi
3369fi
3370F77=$ac_cv_prog_F77
3371if test -n "$F77"; then
3372  echo "$as_me:$LINENO: result: $F77" >&5
3373echo "${ECHO_T}$F77" >&6
3374else
3375  echo "$as_me:$LINENO: result: no" >&5
3376echo "${ECHO_T}no" >&6
3377fi
3378
3379    test -n "$F77" && break
3380  done
3381fi
3382if test -z "$F77"; then
3383  ac_ct_F77=$F77
3384  for ac_prog in $coin_f77_comps
3385do
3386  # Extract the first word of "$ac_prog", so it can be a program name with args.
3387set dummy $ac_prog; ac_word=$2
3388echo "$as_me:$LINENO: checking for $ac_word" >&5
3389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3390if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3391  echo $ECHO_N "(cached) $ECHO_C" >&6
3392else
3393  if test -n "$ac_ct_F77"; then
3394  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3395else
3396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397for as_dir in $PATH
3398do
3399  IFS=$as_save_IFS
3400  test -z "$as_dir" && as_dir=.
3401  for ac_exec_ext in '' $ac_executable_extensions; do
3402  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403    ac_cv_prog_ac_ct_F77="$ac_prog"
3404    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405    break 2
3406  fi
3407done
3408done
3409
3410fi
3411fi
3412ac_ct_F77=$ac_cv_prog_ac_ct_F77
3413if test -n "$ac_ct_F77"; then
3414  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3415echo "${ECHO_T}$ac_ct_F77" >&6
3416else
3417  echo "$as_me:$LINENO: result: no" >&5
3418echo "${ECHO_T}no" >&6
3419fi
3420
3421  test -n "$ac_ct_F77" && break
3422done
3423test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3424
3425  F77=$ac_ct_F77
3426fi
3427
3428
3429if test "$F77" != "unavailable" ; then
3430  ac_ext=f
3431ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3432ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3434if test -n "$ac_tool_prefix"; then
3435  for ac_prog in $coin_f77_comps
3436  do
3437    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3438set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3439echo "$as_me:$LINENO: checking for $ac_word" >&5
3440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441if test "${ac_cv_prog_F77+set}" = set; then
3442  echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444  if test -n "$F77"; then
3445  ac_cv_prog_F77="$F77" # Let the user override the test.
3446else
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450  IFS=$as_save_IFS
3451  test -z "$as_dir" && as_dir=.
3452  for ac_exec_ext in '' $ac_executable_extensions; do
3453  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3455    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456    break 2
3457  fi
3458done
3459done
3460
3461fi
3462fi
3463F77=$ac_cv_prog_F77
3464if test -n "$F77"; then
3465  echo "$as_me:$LINENO: result: $F77" >&5
3466echo "${ECHO_T}$F77" >&6
3467else
3468  echo "$as_me:$LINENO: result: no" >&5
3469echo "${ECHO_T}no" >&6
3470fi
3471
3472    test -n "$F77" && break
3473  done
3474fi
3475if test -z "$F77"; then
3476  ac_ct_F77=$F77
3477  for ac_prog in $coin_f77_comps
3478do
3479  # Extract the first word of "$ac_prog", so it can be a program name with args.
3480set dummy $ac_prog; ac_word=$2
3481echo "$as_me:$LINENO: checking for $ac_word" >&5
3482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3483if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3484  echo $ECHO_N "(cached) $ECHO_C" >&6
3485else
3486  if test -n "$ac_ct_F77"; then
3487  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3488else
3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490for as_dir in $PATH
3491do
3492  IFS=$as_save_IFS
3493  test -z "$as_dir" && as_dir=.
3494  for ac_exec_ext in '' $ac_executable_extensions; do
3495  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496    ac_cv_prog_ac_ct_F77="$ac_prog"
3497    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3498    break 2
3499  fi
3500done
3501done
3502
3503fi
3504fi
3505ac_ct_F77=$ac_cv_prog_ac_ct_F77
3506if test -n "$ac_ct_F77"; then
3507  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3508echo "${ECHO_T}$ac_ct_F77" >&6
3509else
3510  echo "$as_me:$LINENO: result: no" >&5
3511echo "${ECHO_T}no" >&6
3512fi
3513
3514  test -n "$ac_ct_F77" && break
3515done
3516
3517  F77=$ac_ct_F77
3518fi
3519
3520
3521# Provide some information about the compiler.
3522echo "$as_me:3522:" \
3523     "checking for Fortran 77 compiler version" >&5
3524ac_compiler=`set X $ac_compile; echo $2`
3525{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3526  (eval $ac_compiler --version </dev/null >&5) 2>&5
3527  ac_status=$?
3528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); }
3530{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3531  (eval $ac_compiler -v </dev/null >&5) 2>&5
3532  ac_status=$?
3533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534  (exit $ac_status); }
3535{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3536  (eval $ac_compiler -V </dev/null >&5) 2>&5
3537  ac_status=$?
3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539  (exit $ac_status); }
3540rm -f a.out
3541
3542# If we don't use `.F' as extension, the preprocessor is not run on the
3543# input file.  (Note that this only needs to work for GNU compilers.)
3544ac_save_ext=$ac_ext
3545ac_ext=F
3546echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3547echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3548if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3549  echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551  cat >conftest.$ac_ext <<_ACEOF
3552      program main
3553#ifndef __GNUC__
3554       choke me
3555#endif
3556
3557      end
3558_ACEOF
3559rm -f conftest.$ac_objext
3560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561  (eval $ac_compile) 2>conftest.er1
3562  ac_status=$?
3563  grep -v '^ *+' conftest.er1 >conftest.err
3564  rm -f conftest.er1
3565  cat conftest.err >&5
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); } &&
3568         { ac_try='test -z "$ac_f77_werror_flag"
3569                         || test ! -s conftest.err'
3570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571  (eval $ac_try) 2>&5
3572  ac_status=$?
3573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574  (exit $ac_status); }; } &&
3575         { ac_try='test -s conftest.$ac_objext'
3576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577  (eval $ac_try) 2>&5
3578  ac_status=$?
3579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); }; }; then
3581  ac_compiler_gnu=yes
3582else
3583  echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586ac_compiler_gnu=no
3587fi
3588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3590
3591fi
3592echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3593echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3594ac_ext=$ac_save_ext
3595ac_test_FFLAGS=${FFLAGS+set}
3596ac_save_FFLAGS=$FFLAGS
3597FFLAGS=
3598echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3599echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3600if test "${ac_cv_prog_f77_g+set}" = set; then
3601  echo $ECHO_N "(cached) $ECHO_C" >&6
3602else
3603  FFLAGS=-g
3604cat >conftest.$ac_ext <<_ACEOF
3605      program main
3606
3607      end
3608_ACEOF
3609rm -f conftest.$ac_objext
3610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611  (eval $ac_compile) 2>conftest.er1
3612  ac_status=$?
3613  grep -v '^ *+' conftest.er1 >conftest.err
3614  rm -f conftest.er1
3615  cat conftest.err >&5
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); } &&
3618         { ac_try='test -z "$ac_f77_werror_flag"
3619                         || test ! -s conftest.err'
3620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621  (eval $ac_try) 2>&5
3622  ac_status=$?
3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624  (exit $ac_status); }; } &&
3625         { ac_try='test -s conftest.$ac_objext'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; }; then
3631  ac_cv_prog_f77_g=yes
3632else
3633  echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636ac_cv_prog_f77_g=no
3637fi
3638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3639
3640fi
3641echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3642echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3643if test "$ac_test_FFLAGS" = set; then
3644  FFLAGS=$ac_save_FFLAGS
3645elif test $ac_cv_prog_f77_g = yes; then
3646  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3647    FFLAGS="-g -O2"
3648  else
3649    FFLAGS="-g"
3650  fi
3651else
3652  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3653    FFLAGS="-O2"
3654  else
3655    FFLAGS=
3656  fi
3657fi
3658
3659G77=`test $ac_compiler_gnu = yes && echo yes`
3660ac_ext=f
3661ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3662ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3664
3665else
3666  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3667echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3668fi
3669
3670FFLAGS="$save_fflags"
3671
3672# Check if a project specific FFLAGS variable has been set
3673if test x$COIN_PRJCT != x; then
3674  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3675  if test x$coin_tmp = xset; then
3676    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3677  fi
3678fi
3679
3680if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3681
3682  coin_add_fflags=
3683  coin_opt_fflags=
3684  coin_dbg_fflags=
3685  coin_warn_fflags=
3686
3687  if test "$G77" = "yes"; then
3688    coin_opt_fflags="-O3"
3689    coin_add_fflags="-pipe"
3690    coin_dbg_fflags="-g -O0"
3691  else
3692    case $build in
3693      *-cygwin* | *-mingw*)
3694        case $F77 in
3695          ifort* | */ifort* | IFORT* | */IFORT* )
3696            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3697              coin_opt_fflags='-MD -O3'
3698              coin_dbg_fflags='-MDd -debug'
3699            else
3700              coin_opt_fflags='-MT -O3'
3701              coin_dbg_fflags='-MTd -debug'
3702            fi
3703            coin_add_fflags='-fpp -nologo'
3704          ;;
3705          compile_f2c*)
3706            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3707              coin_opt_fflags='-MD -O2'
3708              coin_dbg_fflags='-MDd'
3709            else
3710              coin_opt_fflags='-MT -O2'
3711              coin_dbg_fflags='-MTd'
3712            fi
3713            coin_add_fflags='-nologo -wd4996'
3714          ;;
3715        esac
3716        ;;
3717      *-linux-*)
3718        case $F77 in
3719          ifc* | */ifc* | ifort* | */ifort*)
3720            coin_opt_fflags="-O3 -ip"
3721            coin_add_fflags="-cm -w90 -w95"
3722            coin_dbg_fflags="-g -CA -CB -CS"
3723            # Check if -i_dynamic is necessary (for new glibc library)
3724            FFLAGS=
3725            cat >conftest.$ac_ext <<_ACEOF
3726      program main
3727      write(*,*) 'Hello world'
3728      end
3729_ACEOF
3730rm -f conftest.$ac_objext conftest$ac_exeext
3731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3732  (eval $ac_link) 2>conftest.er1
3733  ac_status=$?
3734  grep -v '^ *+' conftest.er1 >conftest.err
3735  rm -f conftest.er1
3736  cat conftest.err >&5
3737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738  (exit $ac_status); } &&
3739         { ac_try='test -z "$ac_f77_werror_flag"
3740                         || test ! -s conftest.err'
3741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742  (eval $ac_try) 2>&5
3743  ac_status=$?
3744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745  (exit $ac_status); }; } &&
3746         { ac_try='test -s conftest$ac_exeext'
3747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748  (eval $ac_try) 2>&5
3749  ac_status=$?
3750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751  (exit $ac_status); }; }; then
3752  :
3753else
3754  echo "$as_me: failed program was:" >&5
3755sed 's/^/| /' conftest.$ac_ext >&5
3756
3757coin_add_fflags="-i_dynamic $coin_add_fflags"
3758fi
3759rm -f conftest.err conftest.$ac_objext \
3760      conftest$ac_exeext conftest.$ac_ext
3761            ;;
3762          pgf77* | */pgf77* | pgf90* | */pgf90*)
3763            coin_opt_fflags="-fast"
3764            coin_add_fflags="-Kieee -pc 64"
3765            coin_dbg_fflags="-g"
3766          ;;
3767        esac
3768        ;;
3769      *-ibm-*)
3770        case "$F77" in
3771          xlf* | */xlf* | mpxlf* | */mpxlf* )
3772            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3773            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3774            coin_dbg_fflags="-g -C"
3775            ;;
3776        esac
3777        ;;
3778      *-hp-*)
3779        coin_opt_fflags="+O3"
3780        coin_add_fflags="+U77"
3781        coin_dbg_fflags="-C -g"
3782        ;;
3783      *-*-solaris*)
3784        coin_opt_fflags="-O4"
3785        coin_dbg_fflags="-g"
3786        ;;
3787      *-sgi-*)
3788        coin_opt_fflags="-O5 -OPT:Olimit=0"
3789        coin_dbg_fflags="-g"
3790        ;;
3791    esac
3792  fi
3793
3794  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3795    coin_dbg_fflags="-g"
3796  fi
3797
3798  if test -z "$coin_opt_fflags"; then
3799    # Try if -O option works if nothing else is set
3800    FFLAGS=-O
3801    cat >conftest.$ac_ext <<_ACEOF
3802      program main
3803      integer i
3804      end
3805_ACEOF
3806rm -f conftest.$ac_objext conftest$ac_exeext
3807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3808  (eval $ac_link) 2>conftest.er1
3809  ac_status=$?
3810  grep -v '^ *+' conftest.er1 >conftest.err
3811  rm -f conftest.er1
3812  cat conftest.err >&5
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); } &&
3815         { ac_try='test -z "$ac_f77_werror_flag"
3816                         || test ! -s conftest.err'
3817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818  (eval $ac_try) 2>&5
3819  ac_status=$?
3820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821  (exit $ac_status); }; } &&
3822         { ac_try='test -s conftest$ac_exeext'
3823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824  (eval $ac_try) 2>&5
3825  ac_status=$?
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); }; }; then
3828  coin_opt_fflags="-O"
3829else
3830  echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833fi
3834rm -f conftest.err conftest.$ac_objext \
3835      conftest$ac_exeext conftest.$ac_ext
3836  fi
3837
3838  # if PM doesn't want the warning messages, take them out
3839  if test x"$coin_skip_warn_fflags" = xyes; then
3840    coin_warn_fflags=
3841  fi
3842
3843  if test x${DBG_FFLAGS+set} != xset; then
3844    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3845  fi
3846  if test x${OPT_FFLAGS+set} != xset; then
3847    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3848  fi
3849
3850  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3851  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3852
3853  if test "$coin_debug_compile" = "true"; then
3854    FFLAGS="$DBG_FFLAGS"
3855  else
3856    FFLAGS="$OPT_FFLAGS"
3857  fi
3858
3859else
3860  FFLAGS="$FFLAGS $ADD_FFLAGS"
3861  if test x${DBG_FFLAGS+set} != xset; then
3862    DBG_FFLAGS="$FFLAGS"
3863  fi
3864  if test x${OPT_FFLAGS+set} != xset; then
3865    OPT_FFLAGS="$FFLAGS"
3866  fi
3867fi
3868
3869# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3870case "$FFLAGS" in
3871  *-mno-cygwin*)
3872    if test x${CPPFLAGS+set} != xset ; then
3873      CPPFLAGS="-mno-cygwin"
3874    else
3875      case "$CPPFLAGS" in
3876        *-mno-cygwin*)
3877          ;;
3878        *)
3879          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3880          ;;
3881      esac
3882    fi ;;
3883esac
3884
3885# Try if FFLAGS works
3886if test "$F77" != "unavailable" ; then
3887  cat >conftest.$ac_ext <<_ACEOF
3888      program main
3889      integer i
3890      end
3891_ACEOF
3892rm -f conftest.$ac_objext conftest$ac_exeext
3893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894  (eval $ac_link) 2>conftest.er1
3895  ac_status=$?
3896  grep -v '^ *+' conftest.er1 >conftest.err
3897  rm -f conftest.er1
3898  cat conftest.err >&5
3899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900  (exit $ac_status); } &&
3901         { ac_try='test -z "$ac_f77_werror_flag"
3902                         || test ! -s conftest.err'
3903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904  (eval $ac_try) 2>&5
3905  ac_status=$?
3906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907  (exit $ac_status); }; } &&
3908         { ac_try='test -s conftest$ac_exeext'
3909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910  (eval $ac_try) 2>&5
3911  ac_status=$?
3912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913  (exit $ac_status); }; }; then
3914  :
3915else
3916  echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919FFLAGS=
3920fi
3921rm -f conftest.err conftest.$ac_objext \
3922      conftest$ac_exeext conftest.$ac_ext
3923  if test -z "$FFLAGS"; then
3924    { 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
3925echo "$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;}
3926    FFLAGS='-O'
3927    cat >conftest.$ac_ext <<_ACEOF
3928      program main
3929      integer i
3930      end
3931_ACEOF
3932rm -f conftest.$ac_objext conftest$ac_exeext
3933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934  (eval $ac_link) 2>conftest.er1
3935  ac_status=$?
3936  grep -v '^ *+' conftest.er1 >conftest.err
3937  rm -f conftest.er1
3938  cat conftest.err >&5
3939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940  (exit $ac_status); } &&
3941         { ac_try='test -z "$ac_f77_werror_flag"
3942                         || test ! -s conftest.err'
3943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944  (eval $ac_try) 2>&5
3945  ac_status=$?
3946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947  (exit $ac_status); }; } &&
3948         { ac_try='test -s conftest$ac_exeext'
3949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950  (eval $ac_try) 2>&5
3951  ac_status=$?
3952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953  (exit $ac_status); }; }; then
3954  :
3955else
3956  echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
3958
3959FFLAGS=
3960fi
3961rm -f conftest.err conftest.$ac_objext \
3962      conftest$ac_exeext conftest.$ac_ext
3963    if test -z "$FFLAGS"; then
3964      { 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
3965echo "$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;}
3966    fi
3967  fi
3968fi
3969
3970{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3971echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3972
3973
3974if test x"$MPIF77" = x; then :; else
3975  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3976echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3977  F77="$MPIF77"
3978fi
3979
3980# correct the LD variable if we use the intel fortran compiler in windows
3981case "$F77" in
3982  ifort* | */ifort* | IFORT* | */IFORT*)
3983
3984 case $build in
3985  *-mingw*)
3986    if test "${LD+set}" = set; then :; else
3987      LD=link
3988    fi
3989    ;;
3990 esac
3991 if test $enable_msvc = yes ; then
3992   if test "x${LD+set}" = xset; then :; else
3993     LD=link
3994   fi
3995 fi
3996
3997    ;;
3998esac
3999
4000# check whether to add flag for static linking against standard libraries to LDFLAGS
4001if test x$use_static_standardlibs != xno ; then
4002  case $build in
4003    *-mingw*)
4004      static_standardlib_flag=-static
4005      ;;
4006    *)
4007      static_standardlib_flag=-static-libgfortran
4008      ;;
4009  esac
4010  case " $LDFLAGS " in
4011    *" $static_standardlib_flag "* ) ;;
4012    *)
4013    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
4014echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
4015    coin_save_LDFLAGS="$LDFLAGS"
4016    LDFLAGS="$LDFLAGS $static_standardlib_flag"
4017    cat >conftest.$ac_ext <<_ACEOF
4018      program main
4019      integer i
4020      end
4021_ACEOF
4022rm -f conftest.$ac_objext conftest$ac_exeext
4023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4024  (eval $ac_link) 2>conftest.er1
4025  ac_status=$?
4026  grep -v '^ *+' conftest.er1 >conftest.err
4027  rm -f conftest.er1
4028  cat conftest.err >&5
4029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030  (exit $ac_status); } &&
4031         { ac_try='test -z "$ac_f77_werror_flag"
4032                         || test ! -s conftest.err'
4033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034  (eval $ac_try) 2>&5
4035  ac_status=$?
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); }; } &&
4038         { ac_try='test -s conftest$ac_exeext'
4039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040  (eval $ac_try) 2>&5
4041  ac_status=$?
4042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043  (exit $ac_status); }; }; then
4044  echo "$as_me:$LINENO: result: yes" >&5
4045echo "${ECHO_T}yes" >&6
4046else
4047  echo "$as_me: failed program was:" >&5
4048sed 's/^/| /' conftest.$ac_ext >&5
4049
4050echo "$as_me:$LINENO: result: no" >&5
4051echo "${ECHO_T}no" >&6
4052       LDFLAGS="$coin_save_LDFLAGS"
4053       if test $use_static_standardlibs = yes ; then
4054         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
4055echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
4056   { (exit 1); exit 1; }; }
4057       fi
4058
4059fi
4060rm -f conftest.err conftest.$ac_objext \
4061      conftest$ac_exeext conftest.$ac_ext
4062    ;;
4063  esac
4064fi
4065
4066ac_ext=c
4067ac_cpp='$CPP $CPPFLAGS'
4068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071
4072
4073
4074# Find out how to call Fortran from C and determine Fortran runtime libraries
4075
4076# get FLIBS
4077ac_ext=f
4078ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4079ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4081echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4082echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4083if test "${ac_cv_prog_f77_v+set}" = set; then
4084  echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
4086  cat >conftest.$ac_ext <<_ACEOF
4087      program main
4088
4089      end
4090_ACEOF
4091rm -f conftest.$ac_objext
4092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4093  (eval $ac_compile) 2>conftest.er1
4094  ac_status=$?
4095  grep -v '^ *+' conftest.er1 >conftest.err
4096  rm -f conftest.er1
4097  cat conftest.err >&5
4098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099  (exit $ac_status); } &&
4100         { ac_try='test -z "$ac_f77_werror_flag"
4101                         || test ! -s conftest.err'
4102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103  (eval $ac_try) 2>&5
4104  ac_status=$?
4105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106  (exit $ac_status); }; } &&
4107         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4113  ac_cv_prog_f77_v=
4114# Try some options frequently used verbose output
4115for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4116  cat >conftest.$ac_ext <<_ACEOF
4117      program main
4118
4119      end
4120_ACEOF
4121
4122# Compile and link our simple test program by passing a flag (argument
4123# 1 to this macro) to the Fortran compiler in order to get
4124# "verbose" output that we can then parse for the Fortran linker
4125# flags.
4126ac_save_FFLAGS=$FFLAGS
4127FFLAGS="$FFLAGS $ac_verb"
4128(eval echo $as_me:4128: \"$ac_link\") >&5
4129ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4130echo "$ac_f77_v_output" >&5
4131FFLAGS=$ac_save_FFLAGS
4132
4133rm -f conftest*
4134
4135# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4136# /foo, /bar, and /baz are search directories for the Fortran linker.
4137# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4138ac_f77_v_output="`echo $ac_f77_v_output |
4139        grep 'LPATH is:' |
4140        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4141
4142case $ac_f77_v_output in
4143  # If we are using xlf then replace all the commas with spaces.
4144  *xlfentry*)
4145    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4146
4147  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4148  # $LIBS confuse us, and the libraries appear later in the output anyway).
4149  *mGLOB_options_string*)
4150    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4151
4152  # If we are using Cray Fortran then delete quotes.
4153  # Use "\"" instead of '"' for font-lock-mode.
4154  # FIXME: a more general fix for quoted arguments with spaces?
4155  *cft90*)
4156    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4157esac
4158
4159
4160  # look for -l* and *.a constructs in the output
4161  for ac_arg in $ac_f77_v_output; do
4162     case $ac_arg in
4163        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4164          ac_cv_prog_f77_v=$ac_verb
4165          break 2 ;;
4166     esac
4167  done
4168done
4169if test -z "$ac_cv_prog_f77_v"; then
4170   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4171echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4172fi
4173else
4174  echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
4177{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4178echo "$as_me: WARNING: compilation failed" >&2;}
4179fi
4180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4181
4182fi
4183echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4184echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4185echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4186echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4187if test "${ac_cv_f77_libs+set}" = set; then
4188  echo $ECHO_N "(cached) $ECHO_C" >&6
4189else
4190  if test "x$FLIBS" != "x"; then
4191  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4192else
4193
4194cat >conftest.$ac_ext <<_ACEOF
4195      program main
4196
4197      end
4198_ACEOF
4199
4200# Compile and link our simple test program by passing a flag (argument
4201# 1 to this macro) to the Fortran compiler in order to get
4202# "verbose" output that we can then parse for the Fortran linker
4203# flags.
4204ac_save_FFLAGS=$FFLAGS
4205FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4206(eval echo $as_me:4206: \"$ac_link\") >&5
4207ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4208echo "$ac_f77_v_output" >&5
4209FFLAGS=$ac_save_FFLAGS
4210
4211rm -f conftest*
4212
4213# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4214# /foo, /bar, and /baz are search directories for the Fortran linker.
4215# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4216ac_f77_v_output="`echo $ac_f77_v_output |
4217        grep 'LPATH is:' |
4218        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4219
4220case $ac_f77_v_output in
4221  # If we are using xlf then replace all the commas with spaces.
4222  *xlfentry*)
4223    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4224
4225  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4226  # $LIBS confuse us, and the libraries appear later in the output anyway).
4227  *mGLOB_options_string*)
4228    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4229
4230  # If we are using Cray Fortran then delete quotes.
4231  # Use "\"" instead of '"' for font-lock-mode.
4232  # FIXME: a more general fix for quoted arguments with spaces?
4233  *cft90*)
4234    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4235esac
4236
4237
4238
4239ac_cv_f77_libs=
4240
4241# Save positional arguments (if any)
4242ac_save_positional="$@"
4243
4244set X $ac_f77_v_output
4245while test $# != 1; do
4246  shift
4247  ac_arg=$1
4248  case $ac_arg in
4249        [\\/]*.a | ?:[\\/]*.a)
4250            ac_exists=false
4251  for ac_i in $ac_cv_f77_libs; do
4252    if test x"$ac_arg" = x"$ac_i"; then
4253      ac_exists=true
4254      break
4255    fi
4256  done
4257
4258  if test x"$ac_exists" = xtrue; then
4259  :
4260else
4261  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4262fi
4263
4264          ;;
4265        -bI:*)
4266            ac_exists=false
4267  for ac_i in $ac_cv_f77_libs; do
4268    if test x"$ac_arg" = x"$ac_i"; then
4269      ac_exists=true
4270      break
4271    fi
4272  done
4273
4274  if test x"$ac_exists" = xtrue; then
4275  :
4276else
4277  if test "$ac_compiler_gnu" = yes; then
4278  for ac_link_opt in $ac_arg; do
4279    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4280  done
4281else
4282  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4283fi
4284fi
4285
4286          ;;
4287          # Ignore these flags.
4288        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4289          ;;
4290        -lkernel32)
4291          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4292          ;;
4293        -[LRuY])
4294          # These flags, when seen by themselves, take an argument.
4295          # We remove the space between option and argument and re-iterate
4296          # unless we find an empty arg or a new option (starting with -)
4297          case $2 in
4298             "" | -*);;
4299             *)
4300                ac_arg="$ac_arg$2"
4301                shift; shift
4302                set X $ac_arg "$@"
4303                ;;
4304          esac
4305          ;;
4306        -YP,*)
4307          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4308              ac_exists=false
4309  for ac_i in $ac_cv_f77_libs; do
4310    if test x"$ac_j" = x"$ac_i"; then
4311      ac_exists=true
4312      break
4313    fi
4314  done
4315
4316  if test x"$ac_exists" = xtrue; then
4317  :
4318else
4319  ac_arg="$ac_arg $ac_j"
4320                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4321fi
4322
4323          done
4324          ;;
4325        -[lLR]*)
4326            ac_exists=false
4327  for ac_i in $ac_cv_f77_libs; do
4328    if test x"$ac_arg" = x"$ac_i"; then
4329      ac_exists=true
4330      break
4331    fi
4332  done
4333
4334  if test x"$ac_exists" = xtrue; then
4335  :
4336else
4337  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4338fi
4339
4340          ;;
4341          # Ignore everything else.
4342  esac
4343done
4344# restore positional arguments
4345set X $ac_save_positional; shift
4346
4347# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4348# then we insist that the "run path" must be an absolute path (i.e. it
4349# must begin with a "/").
4350case `(uname -sr) 2>/dev/null` in
4351   "SunOS 5"*)
4352      ac_ld_run_path=`echo $ac_f77_v_output |
4353                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4354      test "x$ac_ld_run_path" != x &&
4355        if test "$ac_compiler_gnu" = yes; then
4356  for ac_link_opt in $ac_ld_run_path; do
4357    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4358  done
4359else
4360  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4361fi
4362      ;;
4363esac
4364fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4365
4366fi
4367echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4368echo "${ECHO_T}$ac_cv_f77_libs" >&6
4369FLIBS="$ac_cv_f77_libs"
4370
4371
4372ac_ext=c
4373ac_cpp='$CPP $CPPFLAGS'
4374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377
4378orig_FLIBS="$FLIBS"
4379
4380# If FLIBS has been set by the user, we just restore its value here
4381if test x"$save_FLIBS" != x; then
4382  FLIBS="$save_FLIBS"
4383else
4384  # This is to correct a missing exclusion in autoconf 2.59
4385  if test x"$FLIBS" != x; then
4386    my_flibs=
4387    for flag in $FLIBS; do
4388      case $flag in
4389        -lcrt*.o) ;;
4390        -lcygwin) ;;
4391               *) my_flibs="$my_flibs $flag" ;;
4392      esac
4393    done
4394    FLIBS="$my_flibs"
4395  fi
4396
4397  case $build in
4398  # The following is a fix to define FLIBS for ifort on Windows
4399  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4400  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4401  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4402  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4403  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4404     *-cygwin* | *-mingw*)
4405       case "$F77" in
4406#         ifort* | */ifort* | IFORT* | */IFORT*)
4407#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4408#           if "$coin_debug_compile" = true ; then
4409#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4410#           else
4411#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4412#           fi
4413#           ;;
4414         compile_f2c*)
4415           FLIBS=`$F77 -FLIBS` ;;
4416       esac;;
4417     *-hp-*)
4418         FLIBS="$FLIBS -lm";;
4419     *-ibm-*)
4420         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4421     *-linux-*)
4422       case "$F77" in
4423         pgf77* | */pgf77* | pgf90* | */pgf90*)
4424# ask linker to go through the archives multiple times
4425# (the Fortran compiler seems to do that automatically...)
4426           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4427       esac
4428  esac
4429  ac_cv_f77_libs="$FLIBS"
4430fi
4431
4432if test "x$orig_FLIBS" != "x$FLIBS" ; then
4433  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4434echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4435fi
4436
4437ac_ext=f
4438ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4439ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4441
4442echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4443echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4444if test "${ac_cv_f77_dummy_main+set}" = set; then
4445  echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447  ac_f77_dm_save_LIBS=$LIBS
4448 LIBS="$LIBS $FLIBS"
4449 ac_fortran_dm_var=F77_DUMMY_MAIN
4450 ac_ext=c
4451ac_cpp='$CPP $CPPFLAGS'
4452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455
4456 # First, try linking without a dummy main:
4457 cat >conftest.$ac_ext <<_ACEOF
4458/* confdefs.h.  */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
4462/* end confdefs.h.  */
4463
4464#ifdef F77_DUMMY_MAIN
4465
4466#  ifdef __cplusplus
4467     extern "C"
4468#  endif
4469   int F77_DUMMY_MAIN() { return 1; }
4470
4471#endif
4472int
4473main ()
4474{
4475
4476  ;
4477  return 0;
4478}
4479_ACEOF
4480rm -f conftest.$ac_objext conftest$ac_exeext
4481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482  (eval $ac_link) 2>conftest.er1
4483  ac_status=$?
4484  grep -v '^ *+' conftest.er1 >conftest.err
4485  rm -f conftest.er1
4486  cat conftest.err >&5
4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488  (exit $ac_status); } &&
4489         { ac_try='test -z "$ac_c_werror_flag"
4490                         || test ! -s conftest.err'
4491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492  (eval $ac_try) 2>&5
4493  ac_status=$?
4494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495  (exit $ac_status); }; } &&
4496         { ac_try='test -s conftest$ac_exeext'
4497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498  (eval $ac_try) 2>&5
4499  ac_status=$?
4500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501  (exit $ac_status); }; }; then
4502  ac_cv_fortran_dummy_main=none
4503else
4504  echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
4506
4507ac_cv_fortran_dummy_main=unknown
4508fi
4509rm -f conftest.err conftest.$ac_objext \
4510      conftest$ac_exeext conftest.$ac_ext
4511
4512 if test $ac_cv_fortran_dummy_main = unknown; then
4513   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4514     cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h.  */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h.  */
4520#define $ac_fortran_dm_var $ac_func
4521#ifdef F77_DUMMY_MAIN
4522
4523#  ifdef __cplusplus
4524     extern "C"
4525#  endif
4526   int F77_DUMMY_MAIN() { return 1; }
4527
4528#endif
4529int
4530main ()
4531{
4532
4533  ;
4534  return 0;
4535}
4536_ACEOF
4537rm -f conftest.$ac_objext conftest$ac_exeext
4538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4539  (eval $ac_link) 2>conftest.er1
4540  ac_status=$?
4541  grep -v '^ *+' conftest.er1 >conftest.err
4542  rm -f conftest.er1
4543  cat conftest.err >&5
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); } &&
4546         { ac_try='test -z "$ac_c_werror_flag"
4547                         || test ! -s conftest.err'
4548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549  (eval $ac_try) 2>&5
4550  ac_status=$?
4551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552  (exit $ac_status); }; } &&
4553         { ac_try='test -s conftest$ac_exeext'
4554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555  (eval $ac_try) 2>&5
4556  ac_status=$?
4557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558  (exit $ac_status); }; }; then
4559  ac_cv_fortran_dummy_main=$ac_func; break
4560else
4561  echo "$as_me: failed program was:" >&5
4562sed 's/^/| /' conftest.$ac_ext >&5
4563
4564fi
4565rm -f conftest.err conftest.$ac_objext \
4566      conftest$ac_exeext conftest.$ac_ext
4567   done
4568 fi
4569 ac_ext=f
4570ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4571ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4573 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4574 rm -f conftest*
4575 LIBS=$ac_f77_dm_save_LIBS
4576
4577fi
4578echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4579echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4580F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4581if test "$F77_DUMMY_MAIN" != unknown; then
4582  if test $F77_DUMMY_MAIN != none; then
4583
4584cat >>confdefs.h <<_ACEOF
4585#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4586_ACEOF
4587
4588  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4589
4590cat >>confdefs.h <<\_ACEOF
4591#define FC_DUMMY_MAIN_EQ_F77 1
4592_ACEOF
4593
4594  fi
4595fi
4596else
4597  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4598See \`config.log' for more details." >&5
4599echo "$as_me: error: linking to Fortran libraries from C fails
4600See \`config.log' for more details." >&2;}
4601   { (exit 1); exit 1; }; }
4602fi
4603
4604
4605ac_ext=f
4606ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4607ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4609
4610ac_ext=f
4611ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4612ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4614echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4615echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4616if test "${ac_cv_f77_mangling+set}" = set; then
4617  echo $ECHO_N "(cached) $ECHO_C" >&6
4618else
4619  cat >conftest.$ac_ext <<_ACEOF
4620      subroutine foobar()
4621      return
4622      end
4623      subroutine foo_bar()
4624      return
4625      end
4626_ACEOF
4627rm -f conftest.$ac_objext
4628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4629  (eval $ac_compile) 2>conftest.er1
4630  ac_status=$?
4631  grep -v '^ *+' conftest.er1 >conftest.err
4632  rm -f conftest.er1
4633  cat conftest.err >&5
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); } &&
4636         { ac_try='test -z "$ac_f77_werror_flag"
4637                         || test ! -s conftest.err'
4638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639  (eval $ac_try) 2>&5
4640  ac_status=$?
4641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642  (exit $ac_status); }; } &&
4643         { ac_try='test -s conftest.$ac_objext'
4644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645  (eval $ac_try) 2>&5
4646  ac_status=$?
4647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648  (exit $ac_status); }; }; then
4649  mv conftest.$ac_objext cfortran_test.$ac_objext
4650
4651  ac_save_LIBS=$LIBS
4652  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4653
4654  ac_ext=c
4655ac_cpp='$CPP $CPPFLAGS'
4656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659  ac_success=no
4660  for ac_foobar in foobar FOOBAR; do
4661    for ac_underscore in "" "_"; do
4662      ac_func="$ac_foobar$ac_underscore"
4663      cat >conftest.$ac_ext <<_ACEOF
4664/* confdefs.h.  */
4665_ACEOF
4666cat confdefs.h >>conftest.$ac_ext
4667cat >>conftest.$ac_ext <<_ACEOF
4668/* end confdefs.h.  */
4669
4670/* Override any gcc2 internal prototype to avoid an error.  */
4671#ifdef __cplusplus
4672extern "C"
4673#endif
4674/* We use char because int might match the return type of a gcc2
4675   builtin and then its argument prototype would still apply.  */
4676char $ac_func ();
4677#ifdef F77_DUMMY_MAIN
4678
4679#  ifdef __cplusplus
4680     extern "C"
4681#  endif
4682   int F77_DUMMY_MAIN() { return 1; }
4683
4684#endif
4685int
4686main ()
4687{
4688$ac_func ();
4689  ;
4690  return 0;
4691}
4692_ACEOF
4693rm -f conftest.$ac_objext conftest$ac_exeext
4694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695  (eval $ac_link) 2>conftest.er1
4696  ac_status=$?
4697  grep -v '^ *+' conftest.er1 >conftest.err
4698  rm -f conftest.er1
4699  cat conftest.err >&5
4700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701  (exit $ac_status); } &&
4702         { ac_try='test -z "$ac_c_werror_flag"
4703                         || test ! -s conftest.err'
4704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705  (eval $ac_try) 2>&5
4706  ac_status=$?
4707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708  (exit $ac_status); }; } &&
4709         { ac_try='test -s conftest$ac_exeext'
4710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711  (eval $ac_try) 2>&5
4712  ac_status=$?
4713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714  (exit $ac_status); }; }; then
4715  ac_success=yes; break 2
4716else
4717  echo "$as_me: failed program was:" >&5
4718sed 's/^/| /' conftest.$ac_ext >&5
4719
4720fi
4721rm -f conftest.err conftest.$ac_objext \
4722      conftest$ac_exeext conftest.$ac_ext
4723    done
4724  done
4725  ac_ext=f
4726ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4727ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4729
4730  if test "$ac_success" = "yes"; then
4731     case $ac_foobar in
4732        foobar)
4733           ac_case=lower
4734           ac_foo_bar=foo_bar
4735           ;;
4736        FOOBAR)
4737           ac_case=upper
4738           ac_foo_bar=FOO_BAR
4739           ;;
4740     esac
4741
4742     ac_ext=c
4743ac_cpp='$CPP $CPPFLAGS'
4744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746ac_compiler_gnu=$ac_cv_c_compiler_gnu
4747     ac_success_extra=no
4748     for ac_extra in "" "_"; do
4749        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4750        cat >conftest.$ac_ext <<_ACEOF
4751/* confdefs.h.  */
4752_ACEOF
4753cat confdefs.h >>conftest.$ac_ext
4754cat >>conftest.$ac_ext <<_ACEOF
4755/* end confdefs.h.  */
4756
4757/* Override any gcc2 internal prototype to avoid an error.  */
4758#ifdef __cplusplus
4759extern "C"
4760#endif
4761/* We use char because int might match the return type of a gcc2
4762   builtin and then its argument prototype would still apply.  */
4763char $ac_func ();
4764#ifdef F77_DUMMY_MAIN
4765
4766#  ifdef __cplusplus
4767     extern "C"
4768#  endif
4769   int F77_DUMMY_MAIN() { return 1; }
4770
4771#endif
4772int
4773main ()
4774{
4775$ac_func ();
4776  ;
4777  return 0;
4778}
4779_ACEOF
4780rm -f conftest.$ac_objext conftest$ac_exeext
4781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4782  (eval $ac_link) 2>conftest.er1
4783  ac_status=$?
4784  grep -v '^ *+' conftest.er1 >conftest.err
4785  rm -f conftest.er1
4786  cat conftest.err >&5
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); } &&
4789         { ac_try='test -z "$ac_c_werror_flag"
4790                         || test ! -s conftest.err'
4791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792  (eval $ac_try) 2>&5
4793  ac_status=$?
4794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795  (exit $ac_status); }; } &&
4796         { ac_try='test -s conftest$ac_exeext'
4797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798  (eval $ac_try) 2>&5
4799  ac_status=$?
4800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801  (exit $ac_status); }; }; then
4802  ac_success_extra=yes; break
4803else
4804  echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807fi
4808rm -f conftest.err conftest.$ac_objext \
4809      conftest$ac_exeext conftest.$ac_ext
4810     done
4811     ac_ext=f
4812ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4813ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4815
4816     if test "$ac_success_extra" = "yes"; then
4817        ac_cv_f77_mangling="$ac_case case"
4818        if test -z "$ac_underscore"; then
4819           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4820        else
4821           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4822        fi
4823        if test -z "$ac_extra"; then
4824           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4825        else
4826           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4827        fi
4828      else
4829        ac_cv_f77_mangling="unknown"
4830      fi
4831  else
4832     ac_cv_f77_mangling="unknown"
4833  fi
4834
4835  LIBS=$ac_save_LIBS
4836  rm -f cfortran_test* conftest*
4837else
4838  echo "$as_me: failed program was:" >&5
4839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4842See \`config.log' for more details." >&5
4843echo "$as_me: error: cannot compile a simple Fortran program
4844See \`config.log' for more details." >&2;}
4845   { (exit 1); exit 1; }; }
4846fi
4847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4848
4849fi
4850echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4851echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4852
4853ac_ext=f
4854ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4855ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4857
4858
4859ac_ext=f
4860ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4861ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4863
4864ac_ext=f
4865ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4866ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4868
4869
4870case $ac_cv_f77_mangling in
4871  "lower case, no underscore, no extra underscore")
4872          cat >>confdefs.h <<\_ACEOF
4873#define F77_FUNC(name,NAME) name
4874_ACEOF
4875
4876          cat >>confdefs.h <<\_ACEOF
4877#define F77_FUNC_(name,NAME) name
4878_ACEOF
4879 ;;
4880  "lower case, no underscore, extra underscore")
4881          cat >>confdefs.h <<\_ACEOF
4882#define F77_FUNC(name,NAME) name
4883_ACEOF
4884
4885          cat >>confdefs.h <<\_ACEOF
4886#define F77_FUNC_(name,NAME) name ## _
4887_ACEOF
4888 ;;
4889  "lower case, underscore, no extra underscore")
4890          cat >>confdefs.h <<\_ACEOF
4891#define F77_FUNC(name,NAME) name ## _
4892_ACEOF
4893
4894          cat >>confdefs.h <<\_ACEOF
4895#define F77_FUNC_(name,NAME) name ## _
4896_ACEOF
4897 ;;
4898  "lower case, underscore, extra underscore")
4899          cat >>confdefs.h <<\_ACEOF
4900#define F77_FUNC(name,NAME) name ## _
4901_ACEOF
4902
4903          cat >>confdefs.h <<\_ACEOF
4904#define F77_FUNC_(name,NAME) name ## __
4905_ACEOF
4906 ;;
4907  "upper case, no underscore, no extra underscore")
4908          cat >>confdefs.h <<\_ACEOF
4909#define F77_FUNC(name,NAME) NAME
4910_ACEOF
4911
4912          cat >>confdefs.h <<\_ACEOF
4913#define F77_FUNC_(name,NAME) NAME
4914_ACEOF
4915 ;;
4916  "upper case, no underscore, extra underscore")
4917          cat >>confdefs.h <<\_ACEOF
4918#define F77_FUNC(name,NAME) NAME
4919_ACEOF
4920
4921          cat >>confdefs.h <<\_ACEOF
4922#define F77_FUNC_(name,NAME) NAME ## _
4923_ACEOF
4924 ;;
4925  "upper case, underscore, no extra underscore")
4926          cat >>confdefs.h <<\_ACEOF
4927#define F77_FUNC(name,NAME) NAME ## _
4928_ACEOF
4929
4930          cat >>confdefs.h <<\_ACEOF
4931#define F77_FUNC_(name,NAME) NAME ## _
4932_ACEOF
4933 ;;
4934  "upper case, underscore, extra underscore")
4935          cat >>confdefs.h <<\_ACEOF
4936#define F77_FUNC(name,NAME) NAME ## _
4937_ACEOF
4938
4939          cat >>confdefs.h <<\_ACEOF
4940#define F77_FUNC_(name,NAME) NAME ## __
4941_ACEOF
4942 ;;
4943  *)
4944          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4945echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4946          ;;
4947esac
4948
4949ac_ext=f
4950ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4951ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4953
4954ac_ext=c
4955ac_cpp='$CPP $CPPFLAGS'
4956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959
4960
4961
4962
4963# Add FLIBS to MUMPS_PCLIBS, so that they get into the .pc files
4964MUMPS_PCLIBS="$FLIBS"
4965
4966# We need to translate the result from autoconf to what MUMPS wants
4967case "$ac_cv_f77_mangling" in
4968  "lower case, no underscore, no extra underscore")
4969  ;;
4970  "lower case, underscore, no extra underscore")
4971  MY_DEFS="-DAdd_"
4972  ;;
4973  "lower case, no underscore, extra underscore")
4974  MY_DEFS="-DAdd_"
4975  ;;
4976  "lower case, underscore, extra underscore")
4977  MY_DEFS="-DAdd__"
4978  ;;
4979  "upper case, no underscore, no extra underscore")
4980  MY_DEFS="-DUPPER"
4981  ;;
4982  "upper case, no underscore, extra underscore")
4983  MY_DEFS="-DUPPER"
4984  ;;
4985  "upper case, underscore, no extra underscore")
4986  MY_DEFS="-DUPPER"
4987  ;;
4988  "upper case, underscore, extra underscore")
4989  MY_DEFS="-DUPPER"
4990  ;;
4991esac
4992
4993# Mumps can make use of pthreads
4994# check for pthread.h header file and library
4995# Check whether --enable-pthread-mumps or --disable-pthread-mumps was given.
4996if test "${enable_pthread_mumps+set}" = set; then
4997  enableval="$enable_pthread_mumps"
4998  enable_pthread_mumps=$enableval
4999else
5000  enable_pthread_mumps=yes
5001fi;
5002if test $enable_pthread_mumps = yes ; then
5003  ac_ext=c
5004ac_cpp='$CPP $CPPFLAGS'
5005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5009echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5010# On Suns, sometimes $CPP names a directory.
5011if test -n "$CPP" && test -d "$CPP"; then
5012  CPP=
5013fi
5014if test -z "$CPP"; then
5015  if test "${ac_cv_prog_CPP+set}" = set; then
5016  echo $ECHO_N "(cached) $ECHO_C" >&6
5017else
5018      # Double quotes because CPP needs to be expanded
5019    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5020    do
5021      ac_preproc_ok=false
5022for ac_c_preproc_warn_flag in '' yes
5023do
5024  # Use a header file that comes with gcc, so configuring glibc
5025  # with a fresh cross-compiler works.
5026  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027  # <limits.h> exists even on freestanding compilers.
5028  # On the NeXT, cc -E runs the code through the compiler's parser,
5029  # not just through cpp. "Syntax error" is here to catch this case.
5030  cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h.  */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h.  */
5036#ifdef __STDC__
5037# include <limits.h>
5038#else
5039# include <assert.h>
5040#endif
5041                     Syntax error
5042_ACEOF
5043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5044  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5045  ac_status=$?
5046  grep -v '^ *+' conftest.er1 >conftest.err
5047  rm -f conftest.er1
5048  cat conftest.err >&5
5049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050  (exit $ac_status); } >/dev/null; then
5051  if test -s conftest.err; then
5052    ac_cpp_err=$ac_c_preproc_warn_flag
5053    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5054  else
5055    ac_cpp_err=
5056  fi
5057else
5058  ac_cpp_err=yes
5059fi
5060if test -z "$ac_cpp_err"; then
5061  :
5062else
5063  echo "$as_me: failed program was:" >&5
5064sed 's/^/| /' conftest.$ac_ext >&5
5065
5066  # Broken: fails on valid input.
5067continue
5068fi
5069rm -f conftest.err conftest.$ac_ext
5070
5071  # OK, works on sane cases.  Now check whether non-existent headers
5072  # can be detected and how.
5073  cat >conftest.$ac_ext <<_ACEOF
5074/* confdefs.h.  */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h.  */
5079#include <ac_nonexistent.h>
5080_ACEOF
5081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083  ac_status=$?
5084  grep -v '^ *+' conftest.er1 >conftest.err
5085  rm -f conftest.er1
5086  cat conftest.err >&5
5087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088  (exit $ac_status); } >/dev/null; then
5089  if test -s conftest.err; then
5090    ac_cpp_err=$ac_c_preproc_warn_flag
5091    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5092  else
5093    ac_cpp_err=
5094  fi
5095else
5096  ac_cpp_err=yes
5097fi
5098if test -z "$ac_cpp_err"; then
5099  # Broken: success on invalid input.
5100continue
5101else
5102  echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105  # Passes both tests.
5106ac_preproc_ok=:
5107break
5108fi
5109rm -f conftest.err conftest.$ac_ext
5110
5111done
5112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113rm -f conftest.err conftest.$ac_ext
5114if $ac_preproc_ok; then
5115  break
5116fi
5117
5118    done
5119    ac_cv_prog_CPP=$CPP
5120
5121fi
5122  CPP=$ac_cv_prog_CPP
5123else
5124  ac_cv_prog_CPP=$CPP
5125fi
5126echo "$as_me:$LINENO: result: $CPP" >&5
5127echo "${ECHO_T}$CPP" >&6
5128ac_preproc_ok=false
5129for ac_c_preproc_warn_flag in '' yes
5130do
5131  # Use a header file that comes with gcc, so configuring glibc
5132  # with a fresh cross-compiler works.
5133  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5134  # <limits.h> exists even on freestanding compilers.
5135  # On the NeXT, cc -E runs the code through the compiler's parser,
5136  # not just through cpp. "Syntax error" is here to catch this case.
5137  cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h.  */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h.  */
5143#ifdef __STDC__
5144# include <limits.h>
5145#else
5146# include <assert.h>
5147#endif
5148                     Syntax error
5149_ACEOF
5150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5151  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5152  ac_status=$?
5153  grep -v '^ *+' conftest.er1 >conftest.err
5154  rm -f conftest.er1
5155  cat conftest.err >&5
5156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); } >/dev/null; then
5158  if test -s conftest.err; then
5159    ac_cpp_err=$ac_c_preproc_warn_flag
5160    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5161  else
5162    ac_cpp_err=
5163  fi
5164else
5165  ac_cpp_err=yes
5166fi
5167if test -z "$ac_cpp_err"; then
5168  :
5169else
5170  echo "$as_me: failed program was:" >&5
5171sed 's/^/| /' conftest.$ac_ext >&5
5172
5173  # Broken: fails on valid input.
5174continue
5175fi
5176rm -f conftest.err conftest.$ac_ext
5177
5178  # OK, works on sane cases.  Now check whether non-existent headers
5179  # can be detected and how.
5180  cat >conftest.$ac_ext <<_ACEOF
5181/* confdefs.h.  */
5182_ACEOF
5183cat confdefs.h >>conftest.$ac_ext
5184cat >>conftest.$ac_ext <<_ACEOF
5185/* end confdefs.h.  */
5186#include <ac_nonexistent.h>
5187_ACEOF
5188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5189  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5190  ac_status=$?
5191  grep -v '^ *+' conftest.er1 >conftest.err
5192  rm -f conftest.er1
5193  cat conftest.err >&5
5194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195  (exit $ac_status); } >/dev/null; then
5196  if test -s conftest.err; then
5197    ac_cpp_err=$ac_c_preproc_warn_flag
5198    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5199  else
5200    ac_cpp_err=
5201  fi
5202else
5203  ac_cpp_err=yes
5204fi
5205if test -z "$ac_cpp_err"; then
5206  # Broken: success on invalid input.
5207continue
5208else
5209  echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
5212  # Passes both tests.
5213ac_preproc_ok=:
5214break
5215fi
5216rm -f conftest.err conftest.$ac_ext
5217
5218done
5219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5220rm -f conftest.err conftest.$ac_ext
5221if $ac_preproc_ok; then
5222  :
5223else
5224  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5225See \`config.log' for more details." >&5
5226echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5227See \`config.log' for more details." >&2;}
5228   { (exit 1); exit 1; }; }
5229fi
5230
5231ac_ext=c
5232ac_cpp='$CPP $CPPFLAGS'
5233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235ac_compiler_gnu=$ac_cv_c_compiler_gnu
5236
5237
5238echo "$as_me:$LINENO: checking for egrep" >&5
5239echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5240if test "${ac_cv_prog_egrep+set}" = set; then
5241  echo $ECHO_N "(cached) $ECHO_C" >&6
5242else
5243  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5244    then ac_cv_prog_egrep='grep -E'
5245    else ac_cv_prog_egrep='egrep'
5246    fi
5247fi
5248echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5249echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5250 EGREP=$ac_cv_prog_egrep
5251
5252
5253echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5254echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5255if test "${ac_cv_header_stdc+set}" = set; then
5256  echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258  cat >conftest.$ac_ext <<_ACEOF
5259/* confdefs.h.  */
5260_ACEOF
5261cat confdefs.h >>conftest.$ac_ext
5262cat >>conftest.$ac_ext <<_ACEOF
5263/* end confdefs.h.  */
5264#include <stdlib.h>
5265#include <stdarg.h>
5266#include <string.h>
5267#include <float.h>
5268
5269#ifdef F77_DUMMY_MAIN
5270
5271#  ifdef __cplusplus
5272     extern "C"
5273#  endif
5274   int F77_DUMMY_MAIN() { return 1; }
5275
5276#endif
5277int
5278main ()
5279{
5280
5281  ;
5282  return 0;
5283}
5284_ACEOF
5285rm -f conftest.$ac_objext
5286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287  (eval $ac_compile) 2>conftest.er1
5288  ac_status=$?
5289  grep -v '^ *+' conftest.er1 >conftest.err
5290  rm -f conftest.er1
5291  cat conftest.err >&5
5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293  (exit $ac_status); } &&
5294         { ac_try='test -z "$ac_c_werror_flag"
5295                         || test ! -s conftest.err'
5296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297  (eval $ac_try) 2>&5
5298  ac_status=$?
5299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300  (exit $ac_status); }; } &&
5301         { ac_try='test -s conftest.$ac_objext'
5302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303  (eval $ac_try) 2>&5
5304  ac_status=$?
5305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306  (exit $ac_status); }; }; then
5307  ac_cv_header_stdc=yes
5308else
5309  echo "$as_me: failed program was:" >&5
5310sed 's/^/| /' conftest.$ac_ext >&5
5311
5312ac_cv_header_stdc=no
5313fi
5314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5315
5316if test $ac_cv_header_stdc = yes; then
5317  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5318  cat >conftest.$ac_ext <<_ACEOF
5319/* confdefs.h.  */
5320_ACEOF
5321cat confdefs.h >>conftest.$ac_ext
5322cat >>conftest.$ac_ext <<_ACEOF
5323/* end confdefs.h.  */
5324#include <string.h>
5325
5326_ACEOF
5327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5328  $EGREP "memchr" >/dev/null 2>&1; then
5329  :
5330else
5331  ac_cv_header_stdc=no
5332fi
5333rm -f conftest*
5334
5335fi
5336
5337if test $ac_cv_header_stdc = yes; then
5338  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5339  cat >conftest.$ac_ext <<_ACEOF
5340/* confdefs.h.  */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h.  */
5345#include <stdlib.h>
5346
5347_ACEOF
5348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5349  $EGREP "free" >/dev/null 2>&1; then
5350  :
5351else
5352  ac_cv_header_stdc=no
5353fi
5354rm -f conftest*
5355
5356fi
5357
5358if test $ac_cv_header_stdc = yes; then
5359  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5360  if test "$cross_compiling" = yes; then
5361  :
5362else
5363  cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h.  */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h.  */
5369#include <ctype.h>
5370#if ((' ' & 0x0FF) == 0x020)
5371# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5372# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5373#else
5374# define ISLOWER(c) \
5375                   (('a' <= (c) && (c) <= 'i') \
5376                     || ('j' <= (c) && (c) <= 'r') \
5377                     || ('s' <= (c) && (c) <= 'z'))
5378# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5379#endif
5380
5381#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5382int
5383main ()
5384{
5385  int i;
5386  for (i = 0; i < 256; i++)
5387    if (XOR (islower (i), ISLOWER (i))
5388        || toupper (i) != TOUPPER (i))
5389      exit(2);
5390  exit (0);
5391}
5392_ACEOF
5393rm -f conftest$ac_exeext
5394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5395  (eval $ac_link) 2>&5
5396  ac_status=$?
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400  (eval $ac_try) 2>&5
5401  ac_status=$?
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); }; }; then
5404  :
5405else
5406  echo "$as_me: program exited with status $ac_status" >&5
5407echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
5410( exit $ac_status )
5411ac_cv_header_stdc=no
5412fi
5413rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5414fi
5415fi
5416fi
5417echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5418echo "${ECHO_T}$ac_cv_header_stdc" >&6
5419if test $ac_cv_header_stdc = yes; then
5420
5421cat >>confdefs.h <<\_ACEOF
5422#define STDC_HEADERS 1
5423_ACEOF
5424
5425fi
5426
5427# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5438                  inttypes.h stdint.h unistd.h
5439do
5440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441echo "$as_me:$LINENO: checking for $ac_header" >&5
5442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5443if eval "test \"\${$as_ac_Header+set}\" = set"; then
5444  echo $ECHO_N "(cached) $ECHO_C" >&6
5445else
5446  cat >conftest.$ac_ext <<_ACEOF
5447/* confdefs.h.  */
5448_ACEOF
5449cat confdefs.h >>conftest.$ac_ext
5450cat >>conftest.$ac_ext <<_ACEOF
5451/* end confdefs.h.  */
5452$ac_includes_default
5453
5454#include <$ac_header>
5455_ACEOF
5456rm -f conftest.$ac_objext
5457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458  (eval $ac_compile) 2>conftest.er1
5459  ac_status=$?
5460  grep -v '^ *+' conftest.er1 >conftest.err
5461  rm -f conftest.er1
5462  cat conftest.err >&5
5463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464  (exit $ac_status); } &&
5465         { ac_try='test -z "$ac_c_werror_flag"
5466                         || test ! -s conftest.err'
5467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468  (eval $ac_try) 2>&5
5469  ac_status=$?
5470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471  (exit $ac_status); }; } &&
5472         { ac_try='test -s conftest.$ac_objext'
5473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474  (eval $ac_try) 2>&5
5475  ac_status=$?
5476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477  (exit $ac_status); }; }; then
5478  eval "$as_ac_Header=yes"
5479else
5480  echo "$as_me: failed program was:" >&5
5481sed 's/^/| /' conftest.$ac_ext >&5
5482
5483eval "$as_ac_Header=no"
5484fi
5485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486fi
5487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5489if test `eval echo '${'$as_ac_Header'}'` = yes; then
5490  cat >>confdefs.h <<_ACEOF
5491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5492_ACEOF
5493
5494fi
5495
5496done
5497
5498
5499#if test x"" = x; then
5500#  hdr="#include <pthread.h>"
5501#else
5502#  hdr=""
5503#fi
5504#AC_CHECK_HEADERS([pthread.h],[],[enable_pthread_mumps=no],[$hdr])
5505
5506for ac_header in pthread.h
5507do
5508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509if eval "test \"\${$as_ac_Header+set}\" = set"; then
5510  echo "$as_me:$LINENO: checking for $ac_header" >&5
5511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5512if eval "test \"\${$as_ac_Header+set}\" = set"; then
5513  echo $ECHO_N "(cached) $ECHO_C" >&6
5514fi
5515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5517else
5518  # Is the header compilable?
5519echo "$as_me:$LINENO: checking $ac_header usability" >&5
5520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5521cat >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#include <$ac_header>
5529_ACEOF
5530rm -f conftest.$ac_objext
5531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532  (eval $ac_compile) 2>conftest.er1
5533  ac_status=$?
5534  grep -v '^ *+' conftest.er1 >conftest.err
5535  rm -f conftest.er1
5536  cat conftest.err >&5
5537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538  (exit $ac_status); } &&
5539         { ac_try='test -z "$ac_c_werror_flag"
5540                         || test ! -s conftest.err'
5541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542  (eval $ac_try) 2>&5
5543  ac_status=$?
5544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545  (exit $ac_status); }; } &&
5546         { ac_try='test -s conftest.$ac_objext'
5547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548  (eval $ac_try) 2>&5
5549  ac_status=$?
5550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551  (exit $ac_status); }; }; then
5552  ac_header_compiler=yes
5553else
5554  echo "$as_me: failed program was:" >&5
5555sed 's/^/| /' conftest.$ac_ext >&5
5556
5557ac_header_compiler=no
5558fi
5559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5561echo "${ECHO_T}$ac_header_compiler" >&6
5562
5563# Is the header present?
5564echo "$as_me:$LINENO: checking $ac_header presence" >&5
5565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5566cat >conftest.$ac_ext <<_ACEOF
5567/* confdefs.h.  */
5568_ACEOF
5569cat confdefs.h >>conftest.$ac_ext
5570cat >>conftest.$ac_ext <<_ACEOF
5571/* end confdefs.h.  */
5572#include <$ac_header>
5573_ACEOF
5574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5575  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5576  ac_status=$?
5577  grep -v '^ *+' conftest.er1 >conftest.err
5578  rm -f conftest.er1
5579  cat conftest.err >&5
5580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581  (exit $ac_status); } >/dev/null; then
5582  if test -s conftest.err; then
5583    ac_cpp_err=$ac_c_preproc_warn_flag
5584    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5585  else
5586    ac_cpp_err=
5587  fi
5588else
5589  ac_cpp_err=yes
5590fi
5591if test -z "$ac_cpp_err"; then
5592  ac_header_preproc=yes
5593else
5594  echo "$as_me: failed program was:" >&5
5595sed 's/^/| /' conftest.$ac_ext >&5
5596
5597  ac_header_preproc=no
5598fi
5599rm -f conftest.err conftest.$ac_ext
5600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5601echo "${ECHO_T}$ac_header_preproc" >&6
5602
5603# So?  What about this header?
5604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5605  yes:no: )
5606    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5608    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5610    ac_header_preproc=yes
5611    ;;
5612  no:yes:* )
5613    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5615    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5616echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5617    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5619    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5620echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5621    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5623    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5625    (
5626      cat <<\_ASBOX
5627## --------------------------------------------------------------- ##
5628## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5629## --------------------------------------------------------------- ##
5630_ASBOX
5631    ) |
5632      sed "s/^/$as_me: WARNING:     /" >&2
5633    ;;
5634esac
5635echo "$as_me:$LINENO: checking for $ac_header" >&5
5636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5637if eval "test \"\${$as_ac_Header+set}\" = set"; then
5638  echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640  eval "$as_ac_Header=\$ac_header_preproc"
5641fi
5642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5644
5645fi
5646if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647  cat >>confdefs.h <<_ACEOF
5648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5649_ACEOF
5650
5651else
5652  enable_pthread_mumps=no
5653fi
5654
5655done
5656
5657
5658fi
5659if test $enable_pthread_mumps = yes ; then
5660  echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5661echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5662if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5663  echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665  ac_check_lib_save_LIBS=$LIBS
5666LIBS="-lpthread  $LIBS"
5667cat >conftest.$ac_ext <<_ACEOF
5668/* confdefs.h.  */
5669_ACEOF
5670cat confdefs.h >>conftest.$ac_ext
5671cat >>conftest.$ac_ext <<_ACEOF
5672/* end confdefs.h.  */
5673
5674/* Override any gcc2 internal prototype to avoid an error.  */
5675#ifdef __cplusplus
5676extern "C"
5677#endif
5678/* We use char because int might match the return type of a gcc2
5679   builtin and then its argument prototype would still apply.  */
5680char pthread_create ();
5681#ifdef F77_DUMMY_MAIN
5682
5683#  ifdef __cplusplus
5684     extern "C"
5685#  endif
5686   int F77_DUMMY_MAIN() { return 1; }
5687
5688#endif
5689int
5690main ()
5691{
5692pthread_create ();
5693  ;
5694  return 0;
5695}
5696_ACEOF
5697rm -f conftest.$ac_objext conftest$ac_exeext
5698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5699  (eval $ac_link) 2>conftest.er1
5700  ac_status=$?
5701  grep -v '^ *+' conftest.er1 >conftest.err
5702  rm -f conftest.er1
5703  cat conftest.err >&5
5704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); } &&
5706         { ac_try='test -z "$ac_c_werror_flag"
5707                         || test ! -s conftest.err'
5708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709  (eval $ac_try) 2>&5
5710  ac_status=$?
5711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); }; } &&
5713         { ac_try='test -s conftest$ac_exeext'
5714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715  (eval $ac_try) 2>&5
5716  ac_status=$?
5717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718  (exit $ac_status); }; }; then
5719  ac_cv_lib_pthread_pthread_create=yes
5720else
5721  echo "$as_me: failed program was:" >&5
5722sed 's/^/| /' conftest.$ac_ext >&5
5723
5724ac_cv_lib_pthread_pthread_create=no
5725fi
5726rm -f conftest.err conftest.$ac_objext \
5727      conftest$ac_exeext conftest.$ac_ext
5728LIBS=$ac_check_lib_save_LIBS
5729fi
5730echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5731echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5732if test $ac_cv_lib_pthread_pthread_create = yes; then
5733  MUMPS_PCLIBS="-lpthread $MUMPS_PCLIBS"
5734else
5735  enable_pthread_mumps=no
5736fi
5737
5738fi
5739if test $enable_pthread_mumps = no ; then
5740  MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"
5741fi
5742
5743MY_DEFS="$MY_DEFS -DALLOW_NON_INIT -DMUMPS_ARITH=MUMPS_ARITH_d"
5744
5745
5746# Initialize automake
5747{
5748
5749
5750
5751# START
5752
5753coin_disable_shared=no
5754# Test if force_shared has been set
5755if test "x" = xforce_shared; then
5756  if test x$enable_shared = xno; then
5757    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5758echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5759   { (exit 1); exit 1; }; }
5760  fi
5761  enable_shared=yes;
5762else
5763  # On Cygwin and AIX, building DLLs doesn't work
5764  case $build in
5765    *-cygwin* | *-mingw*)
5766      coin_disable_shared=yes
5767      if test x"$enable_shared" = xyes; then
5768        case "$CXX" in
5769          clang* )
5770            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5771echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5772            ;;
5773          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5774            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
5775echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
5776            ;;
5777          *)
5778            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5779echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5780            ;;
5781        esac
5782      fi
5783    ;;
5784    *-aix*)
5785      coin_disable_shared=yes
5786      platform=AIX
5787      if test x"$enable_shared" = xyes; then
5788        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
5789echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
5790      fi
5791    ;;
5792  esac
5793fi
5794if test x"$coin_disable_shared" = xyes; then
5795  if test x"$enable_shared" = xyes; then
5796    :
5797  else
5798    # we don't disable shared, because it was not selected anyway
5799    coin_disable_shared=no
5800  fi
5801  enable_shared=no
5802fi
5803# By default, we only want the shared objects to be compiled
5804# Check whether --enable-static or --disable-static was given.
5805if test "${enable_static+set}" = set; then
5806  enableval="$enable_static"
5807  p=${PACKAGE-default}
5808    case $enableval in
5809    yes) enable_static=yes ;;
5810    no) enable_static=no ;;
5811    *)
5812     enable_static=no
5813      # Look at the argument we got.  We use all the common list separators.
5814      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5815      for pkg in $enableval; do
5816        IFS="$lt_save_ifs"
5817        if test "X$pkg" = "X$p"; then
5818          enable_static=yes
5819        fi
5820      done
5821      IFS="$lt_save_ifs"
5822      ;;
5823    esac
5824else
5825  enable_static=no
5826fi;
5827
5828
5829
5830
5831# Initialize automake
5832echo "$as_me:$LINENO: checking whether ln -s works" >&5
5833echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5834LN_S=$as_ln_s
5835if test "$LN_S" = "ln -s"; then
5836  echo "$as_me:$LINENO: result: yes" >&5
5837echo "${ECHO_T}yes" >&6
5838else
5839  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5840echo "${ECHO_T}no, using $LN_S" >&6
5841fi
5842
5843am__api_version="1.9"
5844# Find a good install program.  We prefer a C program (faster),
5845# so one script is as good as another.  But avoid the broken or
5846# incompatible versions:
5847# SysV /etc/install, /usr/sbin/install
5848# SunOS /usr/etc/install
5849# IRIX /sbin/install
5850# AIX /bin/install
5851# AmigaOS /C/install, which installs bootblocks on floppy discs
5852# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5853# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5854# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5855# OS/2's system install, which has a completely different semantic
5856# ./install, which can be erroneously created by make from ./install.sh.
5857echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5858echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5859if test -z "$INSTALL"; then
5860if test "${ac_cv_path_install+set}" = set; then
5861  echo $ECHO_N "(cached) $ECHO_C" >&6
5862else
5863  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866  IFS=$as_save_IFS
5867  test -z "$as_dir" && as_dir=.
5868  # Account for people who put trailing slashes in PATH elements.
5869case $as_dir/ in
5870  ./ | .// | /cC/* | \
5871  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5872  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5873  /usr/ucb/* ) ;;
5874  *)
5875    # OSF1 and SCO ODT 3.0 have their own names for install.
5876    # Don't use installbsd from OSF since it installs stuff as root
5877    # by default.
5878    for ac_prog in ginstall scoinst install; do
5879      for ac_exec_ext in '' $ac_executable_extensions; do
5880        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5881          if test $ac_prog = install &&
5882            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5883            # AIX install.  It has an incompatible calling convention.
5884            :
5885          elif test $ac_prog = install &&
5886            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5887            # program-specific install script used by HP pwplus--don't use.
5888            :
5889          else
5890            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5891            break 3
5892          fi
5893        fi
5894      done
5895    done
5896    ;;
5897esac
5898done
5899
5900
5901fi
5902  if test "${ac_cv_path_install+set}" = set; then
5903    INSTALL=$ac_cv_path_install
5904  else
5905    # As a last resort, use the slow shell script.  We don't cache a
5906    # path for INSTALL within a source directory, because that will
5907    # break other packages using the cache if that directory is
5908    # removed, or if the path is relative.
5909    INSTALL=$ac_install_sh
5910  fi
5911fi
5912echo "$as_me:$LINENO: result: $INSTALL" >&5
5913echo "${ECHO_T}$INSTALL" >&6
5914
5915# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5916# It thinks the first close brace ends the variable substitution.
5917test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5918
5919test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5920
5921test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5922
5923echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5924echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5925# Just in case
5926sleep 1
5927echo timestamp > conftest.file
5928# Do `set' in a subshell so we don't clobber the current shell's
5929# arguments.  Must try -L first in case configure is actually a
5930# symlink; some systems play weird games with the mod time of symlinks
5931# (eg FreeBSD returns the mod time of the symlink's containing
5932# directory).
5933if (
5934   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5935   if test "$*" = "X"; then
5936      # -L didn't work.
5937      set X `ls -t $srcdir/configure conftest.file`
5938   fi
5939   rm -f conftest.file
5940   if test "$*" != "X $srcdir/configure conftest.file" \
5941      && test "$*" != "X conftest.file $srcdir/configure"; then
5942
5943      # If neither matched, then we have a broken ls.  This can happen
5944      # if, for instance, CONFIG_SHELL is bash and it inherits a
5945      # broken ls alias from the environment.  This has actually
5946      # happened.  Such a system could not be considered "sane".
5947      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5948alias in your environment" >&5
5949echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5950alias in your environment" >&2;}
5951   { (exit 1); exit 1; }; }
5952   fi
5953
5954   test "$2" = conftest.file
5955   )
5956then
5957   # Ok.
5958   :
5959else
5960   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5961Check your system clock" >&5
5962echo "$as_me: error: newly created file is older than distributed files!
5963Check your system clock" >&2;}
5964   { (exit 1); exit 1; }; }
5965fi
5966echo "$as_me:$LINENO: result: yes" >&5
5967echo "${ECHO_T}yes" >&6
5968test "$program_prefix" != NONE &&
5969  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5970# Use a double $ so make ignores it.
5971test "$program_suffix" != NONE &&
5972  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5973# Double any \ or $.  echo might interpret backslashes.
5974# By default was `s,x,x', remove it if useless.
5975cat <<\_ACEOF >conftest.sed
5976s/[\\$]/&&/g;s/;s,x,x,$//
5977_ACEOF
5978program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5979rm conftest.sed
5980
5981# expand $ac_aux_dir to an absolute path
5982am_aux_dir=`cd $ac_aux_dir && pwd`
5983
5984test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5985# Use eval to expand $SHELL
5986if eval "$MISSING --run true"; then
5987  am_missing_run="$MISSING --run "
5988else
5989  am_missing_run=
5990  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5991echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5992fi
5993
5994if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5995  # We used to keeping the `.' as first argument, in order to
5996  # allow $(mkdir_p) to be used without argument.  As in
5997  #   $(mkdir_p) $(somedir)
5998  # where $(somedir) is conditionally defined.  However this is wrong
5999  # for two reasons:
6000  #  1. if the package is installed by a user who cannot write `.'
6001  #     make install will fail,
6002  #  2. the above comment should most certainly read
6003  #     $(mkdir_p) $(DESTDIR)$(somedir)
6004  #     so it does not work when $(somedir) is undefined and
6005  #     $(DESTDIR) is not.
6006  #  To support the latter case, we have to write
6007  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6008  #  so the `.' trick is pointless.
6009  mkdir_p='mkdir -p --'
6010else
6011  # On NextStep and OpenStep, the `mkdir' command does not
6012  # recognize any option.  It will interpret all options as
6013  # directories to create, and then abort because `.' already
6014  # exists.
6015  for d in ./-p ./--version;
6016  do
6017    test -d $d && rmdir $d
6018  done
6019  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6020  if test -f "$ac_aux_dir/mkinstalldirs"; then
6021    mkdir_p='$(mkinstalldirs)'
6022  else
6023    mkdir_p='$(install_sh) -d'
6024  fi
6025fi
6026
6027for ac_prog in gawk mawk nawk awk
6028do
6029  # Extract the first word of "$ac_prog", so it can be a program name with args.
6030set dummy $ac_prog; ac_word=$2
6031echo "$as_me:$LINENO: checking for $ac_word" >&5
6032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033if test "${ac_cv_prog_AWK+set}" = set; then
6034  echo $ECHO_N "(cached) $ECHO_C" >&6
6035else
6036  if test -n "$AWK"; then
6037  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6038else
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042  IFS=$as_save_IFS
6043  test -z "$as_dir" && as_dir=.
6044  for ac_exec_ext in '' $ac_executable_extensions; do
6045  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046    ac_cv_prog_AWK="$ac_prog"
6047    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048    break 2
6049  fi
6050done
6051done
6052
6053fi
6054fi
6055AWK=$ac_cv_prog_AWK
6056if test -n "$AWK"; then
6057  echo "$as_me:$LINENO: result: $AWK" >&5
6058echo "${ECHO_T}$AWK" >&6
6059else
6060  echo "$as_me:$LINENO: result: no" >&5
6061echo "${ECHO_T}no" >&6
6062fi
6063
6064  test -n "$AWK" && break
6065done
6066
6067echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6068echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6069set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6070if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6071  echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073  cat >conftest.make <<\_ACEOF
6074all:
6075        @echo 'ac_maketemp="$(MAKE)"'
6076_ACEOF
6077# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6078eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6079if test -n "$ac_maketemp"; then
6080  eval ac_cv_prog_make_${ac_make}_set=yes
6081else
6082  eval ac_cv_prog_make_${ac_make}_set=no
6083fi
6084rm -f conftest.make
6085fi
6086if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6087  echo "$as_me:$LINENO: result: yes" >&5
6088echo "${ECHO_T}yes" >&6
6089  SET_MAKE=
6090else
6091  echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6
6093  SET_MAKE="MAKE=${MAKE-make}"
6094fi
6095
6096rm -rf .tst 2>/dev/null
6097mkdir .tst 2>/dev/null
6098if test -d .tst; then
6099  am__leading_dot=.
6100else
6101  am__leading_dot=_
6102fi
6103rmdir .tst 2>/dev/null
6104
6105DEPDIR="${am__leading_dot}deps"
6106
6107          ac_config_commands="$ac_config_commands depfiles"
6108
6109
6110am_make=${MAKE-make}
6111cat > confinc << 'END'
6112am__doit:
6113        @echo done
6114.PHONY: am__doit
6115END
6116# If we don't find an include directive, just comment out the code.
6117echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6118echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6119am__include="#"
6120am__quote=
6121_am_result=none
6122# First try GNU make style include.
6123echo "include confinc" > confmf
6124# We grep out `Entering directory' and `Leaving directory'
6125# messages which can occur if `w' ends up in MAKEFLAGS.
6126# In particular we don't look at `^make:' because GNU make might
6127# be invoked under some other name (usually "gmake"), in which
6128# case it prints its new name instead of `make'.
6129if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6130   am__include=include
6131   am__quote=
6132   _am_result=GNU
6133fi
6134# Now try BSD make style include.
6135if test "$am__include" = "#"; then
6136   echo '.include "confinc"' > confmf
6137   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6138      am__include=.include
6139      am__quote="\""
6140      _am_result=BSD
6141   fi
6142fi
6143
6144
6145echo "$as_me:$LINENO: result: $_am_result" >&5
6146echo "${ECHO_T}$_am_result" >&6
6147rm -f confinc confmf
6148
6149# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6150if test "${enable_dependency_tracking+set}" = set; then
6151  enableval="$enable_dependency_tracking"
6152
6153fi;
6154if test "x$enable_dependency_tracking" != xno; then
6155  am_depcomp="$ac_aux_dir/depcomp"
6156  AMDEPBACKSLASH='\'
6157fi
6158
6159
6160if test "x$enable_dependency_tracking" != xno; then
6161  AMDEP_TRUE=
6162  AMDEP_FALSE='#'
6163else
6164  AMDEP_TRUE='#'
6165  AMDEP_FALSE=
6166fi
6167
6168
6169
6170
6171
6172
6173# AC_MSG_NOTICE([Beginning automake initialisation.])
6174# Stuff for automake
6175# test to see if srcdir already configured
6176if test "`cd $srcdir && pwd`" != "`pwd`" &&
6177   test -f $srcdir/config.status; then
6178  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6179echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6180   { (exit 1); exit 1; }; }
6181fi
6182
6183# test whether we have cygpath
6184if test -z "$CYGPATH_W"; then
6185  if (cygpath --version) >/dev/null 2>/dev/null; then
6186    CYGPATH_W='cygpath -w'
6187  else
6188    CYGPATH_W=echo
6189  fi
6190fi
6191
6192
6193# Define the identity of the package.
6194 PACKAGE='thirdpartymumps'
6195 VERSION='trunk'
6196
6197
6198cat >>confdefs.h <<_ACEOF
6199#define PACKAGE "$PACKAGE"
6200_ACEOF
6201
6202
6203cat >>confdefs.h <<_ACEOF
6204#define VERSION "$VERSION"
6205_ACEOF
6206
6207# Some tools Automake needs.
6208
6209ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6210
6211
6212AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6213
6214
6215AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6216
6217
6218AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6219
6220
6221MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6222
6223install_sh=${install_sh-"$am_aux_dir/install-sh"}
6224
6225# Installed binaries are usually stripped using `strip' when the user
6226# run `make install-strip'.  However `strip' might not be the right
6227# tool to use in cross-compilation environments, therefore Automake
6228# will honor the `STRIP' environment variable to overrule this program.
6229if test "$cross_compiling" != no; then
6230  if test -n "$ac_tool_prefix"; then
6231  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6232set dummy ${ac_tool_prefix}strip; ac_word=$2
6233echo "$as_me:$LINENO: checking for $ac_word" >&5
6234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6235if test "${ac_cv_prog_STRIP+set}" = set; then
6236  echo $ECHO_N "(cached) $ECHO_C" >&6
6237else
6238  if test -n "$STRIP"; then
6239  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244  IFS=$as_save_IFS
6245  test -z "$as_dir" && as_dir=.
6246  for ac_exec_ext in '' $ac_executable_extensions; do
6247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250    break 2
6251  fi
6252done
6253done
6254
6255fi
6256fi
6257STRIP=$ac_cv_prog_STRIP
6258if test -n "$STRIP"; then
6259  echo "$as_me:$LINENO: result: $STRIP" >&5
6260echo "${ECHO_T}$STRIP" >&6
6261else
6262  echo "$as_me:$LINENO: result: no" >&5
6263echo "${ECHO_T}no" >&6
6264fi
6265
6266fi
6267if test -z "$ac_cv_prog_STRIP"; then
6268  ac_ct_STRIP=$STRIP
6269  # Extract the first word of "strip", so it can be a program name with args.
6270set dummy strip; ac_word=$2
6271echo "$as_me:$LINENO: checking for $ac_word" >&5
6272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6273if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6274  echo $ECHO_N "(cached) $ECHO_C" >&6
6275else
6276  if test -n "$ac_ct_STRIP"; then
6277  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6278else
6279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280for as_dir in $PATH
6281do
6282  IFS=$as_save_IFS
6283  test -z "$as_dir" && as_dir=.
6284  for ac_exec_ext in '' $ac_executable_extensions; do
6285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6286    ac_cv_prog_ac_ct_STRIP="strip"
6287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288    break 2
6289  fi
6290done
6291done
6292
6293  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6294fi
6295fi
6296ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6297if test -n "$ac_ct_STRIP"; then
6298  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6299echo "${ECHO_T}$ac_ct_STRIP" >&6
6300else
6301  echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6
6303fi
6304
6305  STRIP=$ac_ct_STRIP
6306else
6307  STRIP="$ac_cv_prog_STRIP"
6308fi
6309
6310fi
6311INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6312
6313# We need awk for the "check" target.  The system "awk" is bad on
6314# some platforms.
6315# Always define AMTAR for backward compatibility.
6316
6317AMTAR=${AMTAR-"${am_missing_run}tar"}
6318
6319am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6320
6321
6322
6323
6324depcc="$CC"   am_compiler_list=
6325
6326echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6327echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6328if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6329  echo $ECHO_N "(cached) $ECHO_C" >&6
6330else
6331  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6332  # We make a subdir and do the tests there.  Otherwise we can end up
6333  # making bogus files that we don't know about and never remove.  For
6334  # instance it was reported that on HP-UX the gcc test will end up
6335  # making a dummy file named `D' -- because `-MD' means `put the output
6336  # in D'.
6337  mkdir conftest.dir
6338  # Copy depcomp to subdir because otherwise we won't find it if we're
6339  # using a relative directory.
6340  cp "$am_depcomp" conftest.dir
6341  cd conftest.dir
6342  # We will build objects and dependencies in a subdirectory because
6343  # it helps to detect inapplicable dependency modes.  For instance
6344  # both Tru64's cc and ICC support -MD to output dependencies as a
6345  # side effect of compilation, but ICC will put the dependencies in
6346  # the current directory while Tru64 will put them in the object
6347  # directory.
6348  mkdir sub
6349
6350  am_cv_CC_dependencies_compiler_type=none
6351  if test "$am_compiler_list" = ""; then
6352     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6353  fi
6354  for depmode in $am_compiler_list; do
6355    # Setup a source with many dependencies, because some compilers
6356    # like to wrap large dependency lists on column 80 (with \), and
6357    # we should not choose a depcomp mode which is confused by this.
6358    #
6359    # We need to recreate these files for each test, as the compiler may
6360    # overwrite some of them when testing with obscure command lines.
6361    # This happens at least with the AIX C compiler.
6362    : > sub/conftest.c
6363    for i in 1 2 3 4 5 6; do
6364      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6365      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6366      # Solaris 8's {/usr,}/bin/sh.
6367      touch sub/conftst$i.h
6368    done
6369    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6370
6371    case $depmode in
6372    nosideeffect)
6373      # after this tag, mechanisms are not by side-effect, so they'll
6374      # only be used when explicitly requested
6375      if test "x$enable_dependency_tracking" = xyes; then
6376        continue
6377      else
6378        break
6379      fi
6380      ;;
6381    none) break ;;
6382    esac
6383    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6384    # mode.  It turns out that the SunPro C++ compiler does not properly
6385    # handle `-M -o', and we need to detect this.
6386    if depmode=$depmode \
6387       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6388       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6389       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6390         >/dev/null 2>conftest.err &&
6391       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6392       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6393       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6394      # icc doesn't choke on unknown options, it will just issue warnings
6395      # or remarks (even with -Werror).  So we grep stderr for any message
6396      # that says an option was ignored or not supported.
6397      # When given -MP, icc 7.0 and 7.1 complain thusly:
6398      #   icc: Command line warning: ignoring option '-M'; no argument required
6399      # The diagnosis changed in icc 8.0:
6400      #   icc: Command line remark: option '-MP' not supported
6401      if (grep 'ignoring option' conftest.err ||
6402          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6403        am_cv_CC_dependencies_compiler_type=$depmode
6404        break
6405      fi
6406    fi
6407  done
6408
6409  cd ..
6410  rm -rf conftest.dir
6411else
6412  am_cv_CC_dependencies_compiler_type=none
6413fi
6414
6415fi
6416echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6417echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6418CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6419
6420
6421
6422if
6423  test "x$enable_dependency_tracking" != xno \
6424  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6425  am__fastdepCC_TRUE=
6426  am__fastdepCC_FALSE='#'
6427else
6428  am__fastdepCC_TRUE='#'
6429  am__fastdepCC_FALSE=
6430fi
6431
6432
6433
6434echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6435echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6436    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6437if test "${enable_maintainer_mode+set}" = set; then
6438  enableval="$enable_maintainer_mode"
6439  USE_MAINTAINER_MODE=$enableval
6440else
6441  USE_MAINTAINER_MODE=no
6442fi;
6443  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6444echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6445
6446
6447if test $USE_MAINTAINER_MODE = yes; then
6448  MAINTAINER_MODE_TRUE=
6449  MAINTAINER_MODE_FALSE='#'
6450else
6451  MAINTAINER_MODE_TRUE='#'
6452  MAINTAINER_MODE_FALSE=
6453fi
6454
6455  MAINT=$MAINTAINER_MODE_TRUE
6456
6457
6458
6459coin_have_externals=no
6460if test "$enable_maintainer_mode" = yes; then
6461
6462  # If maintainer mode is chosen, we make sure that the correct versions
6463  # of the tools are used, and that we know where libtool.m4 is (to
6464  # recreate acinclude.m4)
6465
6466
6467  LIBTOOLM4=
6468  # Normally, $HOME
6469  AUTOTOOLS_DFLT=$HOME
6470
6471  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6472echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6473if test "${ac_cv_use_correct_autotools+set}" = set; then
6474  echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476  ac_cv_use_correct_autotools=check
6477fi
6478echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6479echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6480
6481  if test $ac_cv_use_correct_autotools = check; then
6482    ac_cv_use_correct_autotools=yes
6483    # Check if we have autoconf
6484    # Extract the first word of "autoconf", so it can be a program name with args.
6485set dummy autoconf; ac_word=$2
6486echo "$as_me:$LINENO: checking for $ac_word" >&5
6487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6488if test "${ac_cv_prog_have_autoconf+set}" = set; then
6489  echo $ECHO_N "(cached) $ECHO_C" >&6
6490else
6491  if test -n "$have_autoconf"; then
6492  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497  IFS=$as_save_IFS
6498  test -z "$as_dir" && as_dir=.
6499  for ac_exec_ext in '' $ac_executable_extensions; do
6500  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501    ac_cv_prog_have_autoconf="yes"
6502    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503    break 2
6504  fi
6505done
6506done
6507
6508  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6509fi
6510fi
6511have_autoconf=$ac_cv_prog_have_autoconf
6512if test -n "$have_autoconf"; then
6513  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6514echo "${ECHO_T}$have_autoconf" >&6
6515else
6516  echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6
6518fi
6519
6520    if test $have_autoconf = no; then
6521      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6522echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6523   { (exit 1); exit 1; }; }
6524    fi
6525
6526    # Check whether autoconf is the correct version
6527    correct_version='2.59'
6528    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6529    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6530echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6531    autoconf --version > confauto.out 2>&1
6532    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6533      echo "$as_me:$LINENO: result: yes" >&5
6534echo "${ECHO_T}yes" >&6
6535    else
6536      rm -f confauto.out
6537      echo "$as_me:$LINENO: result: no" >&5
6538echo "${ECHO_T}no" >&6
6539      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6540echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6541   { (exit 1); exit 1; }; }
6542    fi
6543    rm -f confauto.out
6544
6545    # Check if the executable autoconf is picked up from the correct location
6546    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6547echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6548    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6549    autoconf_dir=`cd $autoconf_dir; pwd`
6550    if test x$AUTOTOOLS_DIR = x; then
6551      want_dir=$AUTOTOOLS_DFLT/bin
6552    else
6553      want_dir=$AUTOTOOLS_DIR/bin
6554    fi
6555    if test $autoconf_dir = `cd $want_dir; pwd`; then
6556      echo "$as_me:$LINENO: result: yes" >&5
6557echo "${ECHO_T}yes" >&6
6558    else
6559      rm -f confauto.out
6560      echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
6562      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6563echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6564   { (exit 1); exit 1; }; }
6565    fi
6566
6567    # Check if we have automake
6568    # Extract the first word of "automake", so it can be a program name with args.
6569set dummy automake; ac_word=$2
6570echo "$as_me:$LINENO: checking for $ac_word" >&5
6571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6572if test "${ac_cv_prog_have_automake+set}" = set; then
6573  echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575  if test -n "$have_automake"; then
6576  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6577else
6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581  IFS=$as_save_IFS
6582  test -z "$as_dir" && as_dir=.
6583  for ac_exec_ext in '' $ac_executable_extensions; do
6584  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6585    ac_cv_prog_have_automake="yes"
6586    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587    break 2
6588  fi
6589done
6590done
6591
6592  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6593fi
6594fi
6595have_automake=$ac_cv_prog_have_automake
6596if test -n "$have_automake"; then
6597  echo "$as_me:$LINENO: result: $have_automake" >&5
6598echo "${ECHO_T}$have_automake" >&6
6599else
6600  echo "$as_me:$LINENO: result: no" >&5
6601echo "${ECHO_T}no" >&6
6602fi
6603
6604    if test $have_automake = no; then
6605      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6606echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6607   { (exit 1); exit 1; }; }
6608    fi
6609
6610    # Check whether automake is the correct version
6611    correct_version='1.9.6'
6612    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6613    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6614echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6615    automake --version > confauto.out 2>&1
6616    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6617      echo "$as_me:$LINENO: result: yes" >&5
6618echo "${ECHO_T}yes" >&6
6619    else
6620      rm -f confauto.out
6621      echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6
6623      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6624echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6625   { (exit 1); exit 1; }; }
6626    fi
6627    rm -f confauto.out
6628
6629    # Check if the executable automake is picked up from the correct location
6630    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6631echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6632    automake_dir=`which automake | sed -e 's=/automake=='`
6633    automake_dir=`cd $automake_dir; pwd`
6634    if test x$AUTOTOOLS_DIR = x; then
6635      want_dir=$AUTOTOOLS_DFLT/bin
6636    else
6637      want_dir=$AUTOTOOLS_DIR/bin
6638    fi
6639    if test $automake_dir = `cd $want_dir; pwd`; then
6640      echo "$as_me:$LINENO: result: yes" >&5
6641echo "${ECHO_T}yes" >&6
6642    else
6643      rm -f confauto.out
6644      echo "$as_me:$LINENO: result: no" >&5
6645echo "${ECHO_T}no" >&6
6646      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6647echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6648   { (exit 1); exit 1; }; }
6649    fi
6650
6651    # Check if this is the correct version of libtool (with escaped dots)
6652    if test x$AUTOTOOLS_DIR = x; then
6653      want_dir=$AUTOTOOLS_DFLT/share
6654    else
6655      want_dir=$AUTOTOOLS_DIR/share
6656    fi
6657    correct_version='1.5.22'
6658    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6659    if test -r $want_dir/libtool/ltmain.sh; then
6660  have_ltmain=yes
6661  :
6662else
6663  have_ltmain=no
6664  :
6665fi
6666
6667    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6668echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6669    if test $have_ltmain = yes; then
6670    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6671        echo "$as_me:$LINENO: result: yes" >&5
6672echo "${ECHO_T}yes" >&6
6673      else
6674        echo "$as_me:$LINENO: result: no" >&5
6675echo "${ECHO_T}no" >&6
6676        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6677echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6678   { (exit 1); exit 1; }; }
6679      fi
6680    else
6681      echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6
6683      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6684echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6685   { (exit 1); exit 1; }; }
6686    fi
6687  fi
6688
6689  # Check if we can find the libtool file
6690  if test x$AUTOTOOLS_DIR = x; then
6691    want_dir=$AUTOTOOLS_DFLT/share
6692  else
6693    want_dir=$AUTOTOOLS_DIR/share
6694  fi
6695  if test -r $want_dir/aclocal/libtool.m4; then
6696  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6697  :
6698else
6699  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6700echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6701   { (exit 1); exit 1; }; }
6702  :
6703fi
6704
6705
6706  # Check if we have an Dependencies file
6707  if test -r $srcdir/Dependencies; then
6708    coin_have_externals=yes
6709  fi
6710  # Check if subversion is installed and understands https
6711  # Extract the first word of "svn", so it can be a program name with args.
6712set dummy svn; ac_word=$2
6713echo "$as_me:$LINENO: checking for $ac_word" >&5
6714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6715if test "${ac_cv_prog_have_svn+set}" = set; then
6716  echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718  if test -n "$have_svn"; then
6719  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6720else
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724  IFS=$as_save_IFS
6725  test -z "$as_dir" && as_dir=.
6726  for ac_exec_ext in '' $ac_executable_extensions; do
6727  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728    ac_cv_prog_have_svn="yes"
6729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730    break 2
6731  fi
6732done
6733done
6734
6735  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6736fi
6737fi
6738have_svn=$ac_cv_prog_have_svn
6739if test -n "$have_svn"; then
6740  echo "$as_me:$LINENO: result: $have_svn" >&5
6741echo "${ECHO_T}$have_svn" >&6
6742else
6743  echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6
6745fi
6746
6747  if test x$have_svn = xyes; then
6748    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6749echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6750if test "${ac_cv_svn_understands_https+set}" = set; then
6751  echo $ECHO_N "(cached) $ECHO_C" >&6
6752else
6753  svn --version > confauto.out 2>&1
6754                    if $EGREP https confauto.out >/dev/null 2>&1; then
6755                      ac_cv_svn_understands_https=yes
6756                    else
6757                      ac_cv_svn_understands_https=no
6758                      have_svn=no
6759                      ac_cv_prog_have_svn=no
6760                    fi
6761                    rm -f confauto.out
6762fi
6763echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6764echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6765  fi
6766
6767  # Find the location of the BuildTools directory
6768  BUILDTOOLSDIR=
6769  if test -r $srcdir/BuildTools/coin.m4; then
6770    BUILDTOOLSDIR=$srcdir/BuildTools
6771  else
6772    if test -r $srcdir/../BuildTools/coin.m4; then
6773      BUILDTOOLSDIR=$srcdir/../BuildTools
6774    else
6775      if test -r $srcdir/../../BuildTools/coin.m4; then
6776        BUILDTOOLSDIR=$srcdir/../../BuildTools
6777      else
6778        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6779echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6780   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6781      fi
6782    fi
6783  fi
6784
6785
6786  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6787  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6788    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6789  fi
6790
6791  # The following variable is set to the name of the directory where
6792  # the autotool scripts are located
6793
6794  AUX_DIR=$ac_aux_dir
6795fi
6796
6797# helpful variable for the base directory of this package
6798abs_source_dir=`cd $srcdir; pwd`
6799
6800
6801# Stuff for example Makefiles
6802if test x$prefix = xNONE; then
6803  full_prefix=$ac_default_prefix
6804else
6805  full_prefix=$prefix
6806fi
6807full_prefix=`cd $full_prefix ; pwd`
6808
6809abs_lib_dir=$full_prefix/lib
6810
6811abs_include_dir=$full_prefix/include
6812
6813abs_bin_dir=$full_prefix/bin
6814
6815
6816
6817if test $coin_have_externals = yes && test x$have_svn = xyes; then
6818  HAVE_EXTERNALS_TRUE=
6819  HAVE_EXTERNALS_FALSE='#'
6820else
6821  HAVE_EXTERNALS_TRUE='#'
6822  HAVE_EXTERNALS_FALSE=
6823fi
6824
6825
6826# AC_MSG_NOTICE([End automake initialisation.])
6827
6828
6829
6830LIBTOOL=
6831if test -r ../libtool; then
6832  coin_config_dir=..
6833  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6834fi
6835if test "x$LIBTOOL" = x; then
6836  if test -r ../../libtool; then
6837    coin_config_dir=../..
6838    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6839  fi
6840fi
6841
6842if test "x$LIBTOOL" = x; then
6843# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6844  # Stuff for libtool
6845  # Check whether --enable-shared or --disable-shared was given.
6846if test "${enable_shared+set}" = set; then
6847  enableval="$enable_shared"
6848  p=${PACKAGE-default}
6849    case $enableval in
6850    yes) enable_shared=yes ;;
6851    no) enable_shared=no ;;
6852    *)
6853      enable_shared=no
6854      # Look at the argument we got.  We use all the common list separators.
6855      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6856      for pkg in $enableval; do
6857        IFS="$lt_save_ifs"
6858        if test "X$pkg" = "X$p"; then
6859          enable_shared=yes
6860        fi
6861      done
6862      IFS="$lt_save_ifs"
6863      ;;
6864    esac
6865else
6866  enable_shared=yes
6867fi;
6868
6869# Check whether --enable-fast-install or --disable-fast-install was given.
6870if test "${enable_fast_install+set}" = set; then
6871  enableval="$enable_fast_install"
6872  p=${PACKAGE-default}
6873    case $enableval in
6874    yes) enable_fast_install=yes ;;
6875    no) enable_fast_install=no ;;
6876    *)
6877      enable_fast_install=no
6878      # Look at the argument we got.  We use all the common list separators.
6879      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6880      for pkg in $enableval; do
6881        IFS="$lt_save_ifs"
6882        if test "X$pkg" = "X$p"; then
6883          enable_fast_install=yes
6884        fi
6885      done
6886      IFS="$lt_save_ifs"
6887      ;;
6888    esac
6889else
6890  enable_fast_install=yes
6891fi;
6892
6893echo "$as_me:$LINENO: checking host system type" >&5
6894echo $ECHO_N "checking host system type... $ECHO_C" >&6
6895if test "${ac_cv_host+set}" = set; then
6896  echo $ECHO_N "(cached) $ECHO_C" >&6
6897else
6898  ac_cv_host_alias=$host_alias
6899test -z "$ac_cv_host_alias" &&
6900  ac_cv_host_alias=$ac_cv_build_alias
6901ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6902  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6903echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6904   { (exit 1); exit 1; }; }
6905
6906fi
6907echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6908echo "${ECHO_T}$ac_cv_host" >&6
6909host=$ac_cv_host
6910host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6911host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6912host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6913
6914
6915echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6916echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6917if test "${lt_cv_path_SED+set}" = set; then
6918  echo $ECHO_N "(cached) $ECHO_C" >&6
6919else
6920  # Loop through the user's path and test for sed and gsed.
6921# Then use that list of sed's as ones to test for truncation.
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925  IFS=$as_save_IFS
6926  test -z "$as_dir" && as_dir=.
6927  for lt_ac_prog in sed gsed; do
6928    for ac_exec_ext in '' $ac_executable_extensions; do
6929      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6930        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6931      fi
6932    done
6933  done
6934done
6935lt_ac_max=0
6936lt_ac_count=0
6937# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6938# along with /bin/sed that truncates output.
6939for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6940  test ! -f $lt_ac_sed && continue
6941  cat /dev/null > conftest.in
6942  lt_ac_count=0
6943  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6944  # Check for GNU sed and select it if it is found.
6945  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6946    lt_cv_path_SED=$lt_ac_sed
6947    break
6948  fi
6949  while true; do
6950    cat conftest.in conftest.in >conftest.tmp
6951    mv conftest.tmp conftest.in
6952    cp conftest.in conftest.nl
6953    echo >>conftest.nl
6954    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6955    cmp -s conftest.out conftest.nl || break
6956    # 10000 chars as input seems more than enough
6957    test $lt_ac_count -gt 10 && break
6958    lt_ac_count=`expr $lt_ac_count + 1`
6959    if test $lt_ac_count -gt $lt_ac_max; then
6960      lt_ac_max=$lt_ac_count
6961      lt_cv_path_SED=$lt_ac_sed
6962    fi
6963  done
6964done
6965
6966fi
6967
6968SED=$lt_cv_path_SED
6969echo "$as_me:$LINENO: result: $SED" >&5
6970echo "${ECHO_T}$SED" >&6
6971
6972
6973# Check whether --with-gnu-ld or --without-gnu-ld was given.
6974if test "${with_gnu_ld+set}" = set; then
6975  withval="$with_gnu_ld"
6976  test "$withval" = no || with_gnu_ld=yes
6977else
6978  with_gnu_ld=no
6979fi;
6980ac_prog=ld
6981if test "$GCC" = yes; then
6982  # Check if gcc -print-prog-name=ld gives a path.
6983  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6984echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6985  case $host in
6986  *-*-mingw*)
6987    # gcc leaves a trailing carriage return which upsets mingw
6988    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6989  *)
6990    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6991  esac
6992  case $ac_prog in
6993    # Accept absolute paths.
6994    [\\/]* | ?:[\\/]*)
6995      re_direlt='/[^/][^/]*/\.\./'
6996      # Canonicalize the pathname of ld
6997      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6998      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6999        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7000      done
7001      test -z "$LD" && LD="$ac_prog"
7002      ;;
7003  "")
7004    # If it fails, then pretend we aren't using GCC.
7005    ac_prog=ld
7006    ;;
7007  *)
7008    # If it is relative, then search for the first ld in PATH.
7009    with_gnu_ld=unknown
7010    ;;
7011  esac
7012elif test "$with_gnu_ld" = yes; then
7013  echo "$as_me:$LINENO: checking for GNU ld" >&5
7014echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7015else
7016  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7017echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7018fi
7019if test "${lt_cv_path_LD+set}" = set; then
7020  echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022  if test -z "$LD"; then
7023  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7024  for ac_dir in $PATH; do
7025    IFS="$lt_save_ifs"
7026    test -z "$ac_dir" && ac_dir=.
7027    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7028      lt_cv_path_LD="$ac_dir/$ac_prog"
7029      # Check to see if the program is GNU ld.  I'd rather use --version,
7030      # but apparently some variants of GNU ld only accept -v.
7031      # Break only if it was the GNU/non-GNU ld that we prefer.
7032      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7033      *GNU* | *'with BFD'*)
7034        test "$with_gnu_ld" != no && break
7035        ;;
7036      *)
7037        test "$with_gnu_ld" != yes && break
7038        ;;
7039      esac
7040    fi
7041  done
7042  IFS="$lt_save_ifs"
7043else
7044  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7045fi
7046fi
7047
7048LD="$lt_cv_path_LD"
7049if test -n "$LD"; then
7050  echo "$as_me:$LINENO: result: $LD" >&5
7051echo "${ECHO_T}$LD" >&6
7052else
7053  echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6
7055fi
7056test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7057echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7058   { (exit 1); exit 1; }; }
7059echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7060echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7061if test "${lt_cv_prog_gnu_ld+set}" = set; then
7062  echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7065case `$LD -v 2>&1 </dev/null` in
7066*GNU* | *'with BFD'*)
7067  lt_cv_prog_gnu_ld=yes
7068  ;;
7069*)
7070  lt_cv_prog_gnu_ld=no
7071  ;;
7072esac
7073fi
7074echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7075echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7076with_gnu_ld=$lt_cv_prog_gnu_ld
7077
7078
7079echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7080echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7081if test "${lt_cv_ld_reload_flag+set}" = set; then
7082  echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084  lt_cv_ld_reload_flag='-r'
7085fi
7086echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7087echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7088reload_flag=$lt_cv_ld_reload_flag
7089case $reload_flag in
7090"" | " "*) ;;
7091*) reload_flag=" $reload_flag" ;;
7092esac
7093reload_cmds='$LD$reload_flag -o $output$reload_objs'
7094case $host_os in
7095  darwin*)
7096    if test "$GCC" = yes; then
7097      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7098    else
7099      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7100    fi
7101    ;;
7102esac
7103
7104echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7105echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7106if test "${lt_cv_path_NM+set}" = set; then
7107  echo $ECHO_N "(cached) $ECHO_C" >&6
7108else
7109  if test -n "$NM"; then
7110  # Let the user override the test.
7111  lt_cv_path_NM="$NM"
7112else
7113  lt_nm_to_check="${ac_tool_prefix}nm"
7114  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7115    lt_nm_to_check="$lt_nm_to_check nm"
7116  fi
7117  for lt_tmp_nm in $lt_nm_to_check; do
7118    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7119    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7120      IFS="$lt_save_ifs"
7121      test -z "$ac_dir" && ac_dir=.
7122      tmp_nm="$ac_dir/$lt_tmp_nm"
7123      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7124        # Check to see if the nm accepts a BSD-compat flag.
7125        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7126        #   nm: unknown option "B" ignored
7127        # Tru64's nm complains that /dev/null is an invalid object file
7128        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7129        */dev/null* | *'Invalid file or object type'*)
7130          lt_cv_path_NM="$tmp_nm -B"
7131          break
7132          ;;
7133        *)
7134          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7135          */dev/null*)
7136            lt_cv_path_NM="$tmp_nm -p"
7137            break
7138            ;;
7139          *)
7140            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7141            continue # so that we can try to find one that supports BSD flags
7142            ;;
7143          esac
7144          ;;
7145        esac
7146      fi
7147    done
7148    IFS="$lt_save_ifs"
7149  done
7150  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7151fi
7152fi
7153echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7154echo "${ECHO_T}$lt_cv_path_NM" >&6
7155NM="$lt_cv_path_NM"
7156
7157echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7158echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7159if test "${lt_cv_deplibs_check_method+set}" = set; then
7160  echo $ECHO_N "(cached) $ECHO_C" >&6
7161else
7162  lt_cv_file_magic_cmd='$MAGIC_CMD'
7163lt_cv_file_magic_test_file=
7164lt_cv_deplibs_check_method='unknown'
7165# Need to set the preceding variable on all platforms that support
7166# interlibrary dependencies.
7167# 'none' -- dependencies not supported.
7168# `unknown' -- same as none, but documents that we really don't know.
7169# 'pass_all' -- all dependencies passed with no checks.
7170# 'test_compile' -- check by making test program.
7171# 'file_magic [[regex]]' -- check by looking for files in library path
7172# which responds to the $file_magic_cmd with a given extended regex.
7173# If you have `file' or equivalent on your system and you're not sure
7174# whether `pass_all' will *always* work, you probably want this one.
7175
7176case $host_os in
7177aix4* | aix5*)
7178  lt_cv_deplibs_check_method=pass_all
7179  ;;
7180
7181beos*)
7182  lt_cv_deplibs_check_method=pass_all
7183  ;;
7184
7185bsdi[45]*)
7186  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7187  lt_cv_file_magic_cmd='/usr/bin/file -L'
7188  lt_cv_file_magic_test_file=/shlib/libc.so
7189  ;;
7190
7191cygwin*)
7192  # func_win32_libid is a shell function defined in ltmain.sh
7193  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7194  lt_cv_file_magic_cmd='func_win32_libid'
7195  ;;
7196
7197mingw* | pw32*)
7198  # Base MSYS/MinGW do not provide the 'file' command needed by
7199  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7200  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7201  lt_cv_file_magic_cmd='$OBJDUMP -f'
7202  ;;
7203
7204darwin* | rhapsody*)
7205  lt_cv_deplibs_check_method=pass_all
7206  ;;
7207
7208freebsd* | kfreebsd*-gnu | dragonfly*)
7209  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7210    case $host_cpu in
7211    i*86 )
7212      # Not sure whether the presence of OpenBSD here was a mistake.
7213      # Let's accept both of them until this is cleared up.
7214      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7215      lt_cv_file_magic_cmd=/usr/bin/file
7216      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7217      ;;
7218    esac
7219  else
7220    lt_cv_deplibs_check_method=pass_all
7221  fi
7222  ;;
7223
7224gnu*)
7225  lt_cv_deplibs_check_method=pass_all
7226  ;;
7227
7228hpux10.20* | hpux11*)
7229  lt_cv_file_magic_cmd=/usr/bin/file
7230  case $host_cpu in
7231  ia64*)
7232    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7233    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7234    ;;
7235  hppa*64*)
7236    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]'
7237    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7238    ;;
7239  *)
7240    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7241    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7242    ;;
7243  esac
7244  ;;
7245
7246interix3*)
7247  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7248  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7249  ;;
7250
7251irix5* | irix6* | nonstopux*)
7252  case $LD in
7253  *-32|*"-32 ") libmagic=32-bit;;
7254  *-n32|*"-n32 ") libmagic=N32;;
7255  *-64|*"-64 ") libmagic=64-bit;;
7256  *) libmagic=never-match;;
7257  esac
7258  lt_cv_deplibs_check_method=pass_all
7259  ;;
7260
7261# This must be Linux ELF.
7262linux*)
7263  lt_cv_deplibs_check_method=pass_all
7264  ;;
7265
7266netbsd*)
7267  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7268    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7269  else
7270    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7271  fi
7272  ;;
7273
7274newos6*)
7275  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7276  lt_cv_file_magic_cmd=/usr/bin/file
7277  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7278  ;;
7279
7280nto-qnx*)
7281  lt_cv_deplibs_check_method=unknown
7282  ;;
7283
7284openbsd*)
7285  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7286    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7287  else
7288    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7289  fi
7290  ;;
7291
7292osf3* | osf4* | osf5*)
7293  lt_cv_deplibs_check_method=pass_all
7294  ;;
7295
7296solaris*)
7297  lt_cv_deplibs_check_method=pass_all
7298  ;;
7299
7300sysv4 | sysv4.3*)
7301  case $host_vendor in
7302  motorola)
7303    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]'
7304    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7305    ;;
7306  ncr)
7307    lt_cv_deplibs_check_method=pass_all
7308    ;;
7309  sequent)
7310    lt_cv_file_magic_cmd='/bin/file'
7311    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7312    ;;
7313  sni)
7314    lt_cv_file_magic_cmd='/bin/file'
7315    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7316    lt_cv_file_magic_test_file=/lib/libc.so
7317    ;;
7318  siemens)
7319    lt_cv_deplibs_check_method=pass_all
7320    ;;
7321  pc)
7322    lt_cv_deplibs_check_method=pass_all
7323    ;;
7324  esac
7325  ;;
7326
7327sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7328  lt_cv_deplibs_check_method=pass_all
7329  ;;
7330esac
7331
7332fi
7333echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7334echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7335file_magic_cmd=$lt_cv_file_magic_cmd
7336deplibs_check_method=$lt_cv_deplibs_check_method
7337test -z "$deplibs_check_method" && deplibs_check_method=unknown
7338
7339
7340
7341
7342# If no C compiler was specified, use CC.
7343LTCC=${LTCC-"$CC"}
7344
7345# If no C compiler flags were specified, use CFLAGS.
7346LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7347
7348# Allow CC to be a program name with arguments.
7349compiler=$CC
7350
7351# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7352if test "${enable_libtool_lock+set}" = set; then
7353  enableval="$enable_libtool_lock"
7354
7355fi;
7356test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7357
7358# Some flags need to be propagated to the compiler or linker for good
7359# libtool support.
7360case $host in
7361ia64-*-hpux*)
7362  # Find out which ABI we are using.
7363  echo 'int i;' > conftest.$ac_ext
7364  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7365  (eval $ac_compile) 2>&5
7366  ac_status=$?
7367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368  (exit $ac_status); }; then
7369    case `/usr/bin/file conftest.$ac_objext` in
7370    *ELF-32*)
7371      HPUX_IA64_MODE="32"
7372      ;;
7373    *ELF-64*)
7374      HPUX_IA64_MODE="64"
7375      ;;
7376    esac
7377  fi
7378  rm -rf conftest*
7379  ;;
7380*-*-irix6*)
7381  # Find out which ABI we are using.
7382  echo '#line 7382 "configure"' > conftest.$ac_ext
7383  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7384  (eval $ac_compile) 2>&5
7385  ac_status=$?
7386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387  (exit $ac_status); }; then
7388   if test "$lt_cv_prog_gnu_ld" = yes; then
7389    case `/usr/bin/file conftest.$ac_objext` in
7390    *32-bit*)
7391      LD="${LD-ld} -melf32bsmip"
7392      ;;
7393    *N32*)
7394      LD="${LD-ld} -melf32bmipn32"
7395      ;;
7396    *64-bit*)
7397      LD="${LD-ld} -melf64bmip"
7398      ;;
7399    esac
7400   else
7401    case `/usr/bin/file conftest.$ac_objext` in
7402    *32-bit*)
7403      LD="${LD-ld} -32"
7404      ;;
7405    *N32*)
7406      LD="${LD-ld} -n32"
7407      ;;
7408    *64-bit*)
7409      LD="${LD-ld} -64"
7410      ;;
7411    esac
7412   fi
7413  fi
7414  rm -rf conftest*
7415  ;;
7416
7417x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7418  # Find out which ABI we are using.
7419  echo 'int i;' > conftest.$ac_ext
7420  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421  (eval $ac_compile) 2>&5
7422  ac_status=$?
7423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424  (exit $ac_status); }; then
7425    case `/usr/bin/file conftest.o` in
7426    *32-bit*)
7427      case $host in
7428        x86_64-*linux*)
7429          LD="${LD-ld} -m elf_i386"
7430          ;;
7431        ppc64-*linux*|powerpc64-*linux*)
7432          LD="${LD-ld} -m elf32ppclinux"
7433          ;;
7434        s390x-*linux*)
7435          LD="${LD-ld} -m elf_s390"
7436          ;;
7437        sparc64-*linux*)
7438          LD="${LD-ld} -m elf32_sparc"
7439          ;;
7440      esac
7441      ;;
7442    *64-bit*)
7443      case $host in
7444        x86_64-*linux*)
7445          LD="${LD-ld} -m elf_x86_64"
7446          ;;
7447        ppc*-*linux*|powerpc*-*linux*)
7448          LD="${LD-ld} -m elf64ppc"
7449          ;;
7450        s390*-*linux*)
7451          LD="${LD-ld} -m elf64_s390"
7452          ;;
7453        sparc*-*linux*)
7454          LD="${LD-ld} -m elf64_sparc"
7455          ;;
7456      esac
7457      ;;
7458    esac
7459  fi
7460  rm -rf conftest*
7461  ;;
7462
7463*-*-sco3.2v5*)
7464  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7465  SAVE_CFLAGS="$CFLAGS"
7466  CFLAGS="$CFLAGS -belf"
7467  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7468echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7469if test "${lt_cv_cc_needs_belf+set}" = set; then
7470  echo $ECHO_N "(cached) $ECHO_C" >&6
7471else
7472  ac_ext=c
7473ac_cpp='$CPP $CPPFLAGS'
7474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476ac_compiler_gnu=$ac_cv_c_compiler_gnu
7477
7478     cat >conftest.$ac_ext <<_ACEOF
7479/* confdefs.h.  */
7480_ACEOF
7481cat confdefs.h >>conftest.$ac_ext
7482cat >>conftest.$ac_ext <<_ACEOF
7483/* end confdefs.h.  */
7484
7485#ifdef F77_DUMMY_MAIN
7486
7487#  ifdef __cplusplus
7488     extern "C"
7489#  endif
7490   int F77_DUMMY_MAIN() { return 1; }
7491
7492#endif
7493int
7494main ()
7495{
7496
7497  ;
7498  return 0;
7499}
7500_ACEOF
7501rm -f conftest.$ac_objext conftest$ac_exeext
7502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7503  (eval $ac_link) 2>conftest.er1
7504  ac_status=$?
7505  grep -v '^ *+' conftest.er1 >conftest.err
7506  rm -f conftest.er1
7507  cat conftest.err >&5
7508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509  (exit $ac_status); } &&
7510         { ac_try='test -z "$ac_c_werror_flag"
7511                         || test ! -s conftest.err'
7512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513  (eval $ac_try) 2>&5
7514  ac_status=$?
7515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516  (exit $ac_status); }; } &&
7517         { ac_try='test -s conftest$ac_exeext'
7518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519  (eval $ac_try) 2>&5
7520  ac_status=$?
7521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522  (exit $ac_status); }; }; then
7523  lt_cv_cc_needs_belf=yes
7524else
7525  echo "$as_me: failed program was:" >&5
7526sed 's/^/| /' conftest.$ac_ext >&5
7527
7528lt_cv_cc_needs_belf=no
7529fi
7530rm -f conftest.err conftest.$ac_objext \
7531      conftest$ac_exeext conftest.$ac_ext
7532     ac_ext=c
7533ac_cpp='$CPP $CPPFLAGS'
7534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537
7538fi
7539echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7540echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7541  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7542    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7543    CFLAGS="$SAVE_CFLAGS"
7544  fi
7545  ;;
7546sparc*-*solaris*)
7547  # Find out which ABI we are using.
7548  echo 'int i;' > conftest.$ac_ext
7549  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550  (eval $ac_compile) 2>&5
7551  ac_status=$?
7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553  (exit $ac_status); }; then
7554    case `/usr/bin/file conftest.o` in
7555    *64-bit*)
7556      case $lt_cv_prog_gnu_ld in
7557      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7558      *)    LD="${LD-ld} -64" ;;
7559      esac
7560      ;;
7561    esac
7562  fi
7563  rm -rf conftest*
7564  ;;
7565
7566
7567esac
7568
7569need_locks="$enable_libtool_lock"
7570
7571
7572
7573for ac_header in dlfcn.h
7574do
7575as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7576if eval "test \"\${$as_ac_Header+set}\" = set"; then
7577  echo "$as_me:$LINENO: checking for $ac_header" >&5
7578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7579if eval "test \"\${$as_ac_Header+set}\" = set"; then
7580  echo $ECHO_N "(cached) $ECHO_C" >&6
7581fi
7582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7584else
7585  # Is the header compilable?
7586echo "$as_me:$LINENO: checking $ac_header usability" >&5
7587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7588cat >conftest.$ac_ext <<_ACEOF
7589/* confdefs.h.  */
7590_ACEOF
7591cat confdefs.h >>conftest.$ac_ext
7592cat >>conftest.$ac_ext <<_ACEOF
7593/* end confdefs.h.  */
7594$ac_includes_default
7595#include <$ac_header>
7596_ACEOF
7597rm -f conftest.$ac_objext
7598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599  (eval $ac_compile) 2>conftest.er1
7600  ac_status=$?
7601  grep -v '^ *+' conftest.er1 >conftest.err
7602  rm -f conftest.er1
7603  cat conftest.err >&5
7604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605  (exit $ac_status); } &&
7606         { ac_try='test -z "$ac_c_werror_flag"
7607                         || test ! -s conftest.err'
7608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609  (eval $ac_try) 2>&5
7610  ac_status=$?
7611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612  (exit $ac_status); }; } &&
7613         { ac_try='test -s conftest.$ac_objext'
7614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615  (eval $ac_try) 2>&5
7616  ac_status=$?
7617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618  (exit $ac_status); }; }; then
7619  ac_header_compiler=yes
7620else
7621  echo "$as_me: failed program was:" >&5
7622sed 's/^/| /' conftest.$ac_ext >&5
7623
7624ac_header_compiler=no
7625fi
7626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7628echo "${ECHO_T}$ac_header_compiler" >&6
7629
7630# Is the header present?
7631echo "$as_me:$LINENO: checking $ac_header presence" >&5
7632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7633cat >conftest.$ac_ext <<_ACEOF
7634/* confdefs.h.  */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h.  */
7639#include <$ac_header>
7640_ACEOF
7641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7642  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7643  ac_status=$?
7644  grep -v '^ *+' conftest.er1 >conftest.err
7645  rm -f conftest.er1
7646  cat conftest.err >&5
7647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648  (exit $ac_status); } >/dev/null; then
7649  if test -s conftest.err; then
7650    ac_cpp_err=$ac_c_preproc_warn_flag
7651    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7652  else
7653    ac_cpp_err=
7654  fi
7655else
7656  ac_cpp_err=yes
7657fi
7658if test -z "$ac_cpp_err"; then
7659  ac_header_preproc=yes
7660else
7661  echo "$as_me: failed program was:" >&5
7662sed 's/^/| /' conftest.$ac_ext >&5
7663
7664  ac_header_preproc=no
7665fi
7666rm -f conftest.err conftest.$ac_ext
7667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7668echo "${ECHO_T}$ac_header_preproc" >&6
7669
7670# So?  What about this header?
7671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7672  yes:no: )
7673    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7675    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7677    ac_header_preproc=yes
7678    ;;
7679  no:yes:* )
7680    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7682    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7683echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7684    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7686    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7687echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7688    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7690    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7692    (
7693      cat <<\_ASBOX
7694## --------------------------------------------------------------- ##
7695## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7696## --------------------------------------------------------------- ##
7697_ASBOX
7698    ) |
7699      sed "s/^/$as_me: WARNING:     /" >&2
7700    ;;
7701esac
7702echo "$as_me:$LINENO: checking for $ac_header" >&5
7703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7704if eval "test \"\${$as_ac_Header+set}\" = set"; then
7705  echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707  eval "$as_ac_Header=\$ac_header_preproc"
7708fi
7709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7711
7712fi
7713if test `eval echo '${'$as_ac_Header'}'` = yes; then
7714  cat >>confdefs.h <<_ACEOF
7715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7716_ACEOF
7717
7718fi
7719
7720done
7721
7722ac_ext=cc
7723ac_cpp='$CXXCPP $CPPFLAGS'
7724ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7727if test -n "$ac_tool_prefix"; then
7728  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7729  do
7730    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7731set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7732echo "$as_me:$LINENO: checking for $ac_word" >&5
7733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7734if test "${ac_cv_prog_CXX+set}" = set; then
7735  echo $ECHO_N "(cached) $ECHO_C" >&6
7736else
7737  if test -n "$CXX"; then
7738  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7739else
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743  IFS=$as_save_IFS
7744  test -z "$as_dir" && as_dir=.
7745  for ac_exec_ext in '' $ac_executable_extensions; do
7746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749    break 2
7750  fi
7751done
7752done
7753
7754fi
7755fi
7756CXX=$ac_cv_prog_CXX
7757if test -n "$CXX"; then
7758  echo "$as_me:$LINENO: result: $CXX" >&5
7759echo "${ECHO_T}$CXX" >&6
7760else
7761  echo "$as_me:$LINENO: result: no" >&5
7762echo "${ECHO_T}no" >&6
7763fi
7764
7765    test -n "$CXX" && break
7766  done
7767fi
7768if test -z "$CXX"; then
7769  ac_ct_CXX=$CXX
7770  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7771do
7772  # Extract the first word of "$ac_prog", so it can be a program name with args.
7773set dummy $ac_prog; ac_word=$2
7774echo "$as_me:$LINENO: checking for $ac_word" >&5
7775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7776if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7777  echo $ECHO_N "(cached) $ECHO_C" >&6
7778else
7779  if test -n "$ac_ct_CXX"; then
7780  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7781else
7782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785  IFS=$as_save_IFS
7786  test -z "$as_dir" && as_dir=.
7787  for ac_exec_ext in '' $ac_executable_extensions; do
7788  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789    ac_cv_prog_ac_ct_CXX="$ac_prog"
7790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791    break 2
7792  fi
7793done
7794done
7795
7796fi
7797fi
7798ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7799if test -n "$ac_ct_CXX"; then
7800  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7801echo "${ECHO_T}$ac_ct_CXX" >&6
7802else
7803  echo "$as_me:$LINENO: result: no" >&5
7804echo "${ECHO_T}no" >&6
7805fi
7806
7807  test -n "$ac_ct_CXX" && break
7808done
7809test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7810
7811  CXX=$ac_ct_CXX
7812fi
7813
7814
7815# Provide some information about the compiler.
7816echo "$as_me:$LINENO:" \
7817     "checking for C++ compiler version" >&5
7818ac_compiler=`set X $ac_compile; echo $2`
7819{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7820  (eval $ac_compiler --version </dev/null >&5) 2>&5
7821  ac_status=$?
7822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823  (exit $ac_status); }
7824{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7825  (eval $ac_compiler -v </dev/null >&5) 2>&5
7826  ac_status=$?
7827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828  (exit $ac_status); }
7829{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7830  (eval $ac_compiler -V </dev/null >&5) 2>&5
7831  ac_status=$?
7832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833  (exit $ac_status); }
7834
7835echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7836echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7837if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840  cat >conftest.$ac_ext <<_ACEOF
7841/* confdefs.h.  */
7842_ACEOF
7843cat confdefs.h >>conftest.$ac_ext
7844cat >>conftest.$ac_ext <<_ACEOF
7845/* end confdefs.h.  */
7846
7847#ifdef F77_DUMMY_MAIN
7848
7849#  ifdef __cplusplus
7850     extern "C"
7851#  endif
7852   int F77_DUMMY_MAIN() { return 1; }
7853
7854#endif
7855int
7856main ()
7857{
7858#ifndef __GNUC__
7859       choke me
7860#endif
7861
7862  ;
7863  return 0;
7864}
7865_ACEOF
7866rm -f conftest.$ac_objext
7867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868  (eval $ac_compile) 2>conftest.er1
7869  ac_status=$?
7870  grep -v '^ *+' conftest.er1 >conftest.err
7871  rm -f conftest.er1
7872  cat conftest.err >&5
7873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874  (exit $ac_status); } &&
7875         { ac_try='test -z "$ac_cxx_werror_flag"
7876                         || test ! -s conftest.err'
7877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878  (eval $ac_try) 2>&5
7879  ac_status=$?
7880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881  (exit $ac_status); }; } &&
7882         { ac_try='test -s conftest.$ac_objext'
7883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884  (eval $ac_try) 2>&5
7885  ac_status=$?
7886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887  (exit $ac_status); }; }; then
7888  ac_compiler_gnu=yes
7889else
7890  echo "$as_me: failed program was:" >&5
7891sed 's/^/| /' conftest.$ac_ext >&5
7892
7893ac_compiler_gnu=no
7894fi
7895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7896ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7897
7898fi
7899echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7900echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7901GXX=`test $ac_compiler_gnu = yes && echo yes`
7902ac_test_CXXFLAGS=${CXXFLAGS+set}
7903ac_save_CXXFLAGS=$CXXFLAGS
7904CXXFLAGS="-g"
7905echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7906echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7907if test "${ac_cv_prog_cxx_g+set}" = set; then
7908  echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910  cat >conftest.$ac_ext <<_ACEOF
7911/* confdefs.h.  */
7912_ACEOF
7913cat confdefs.h >>conftest.$ac_ext
7914cat >>conftest.$ac_ext <<_ACEOF
7915/* end confdefs.h.  */
7916
7917#ifdef F77_DUMMY_MAIN
7918
7919#  ifdef __cplusplus
7920     extern "C"
7921#  endif
7922   int F77_DUMMY_MAIN() { return 1; }
7923
7924#endif
7925int
7926main ()
7927{
7928
7929  ;
7930  return 0;
7931}
7932_ACEOF
7933rm -f conftest.$ac_objext
7934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7935  (eval $ac_compile) 2>conftest.er1
7936  ac_status=$?
7937  grep -v '^ *+' conftest.er1 >conftest.err
7938  rm -f conftest.er1
7939  cat conftest.err >&5
7940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941  (exit $ac_status); } &&
7942         { ac_try='test -z "$ac_cxx_werror_flag"
7943                         || test ! -s conftest.err'
7944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945  (eval $ac_try) 2>&5
7946  ac_status=$?
7947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948  (exit $ac_status); }; } &&
7949         { ac_try='test -s conftest.$ac_objext'
7950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951  (eval $ac_try) 2>&5
7952  ac_status=$?
7953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954  (exit $ac_status); }; }; then
7955  ac_cv_prog_cxx_g=yes
7956else
7957  echo "$as_me: failed program was:" >&5
7958sed 's/^/| /' conftest.$ac_ext >&5
7959
7960ac_cv_prog_cxx_g=no
7961fi
7962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7963fi
7964echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7965echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7966if test "$ac_test_CXXFLAGS" = set; then
7967  CXXFLAGS=$ac_save_CXXFLAGS
7968elif test $ac_cv_prog_cxx_g = yes; then
7969  if test "$GXX" = yes; then
7970    CXXFLAGS="-g -O2"
7971  else
7972    CXXFLAGS="-g"
7973  fi
7974else
7975  if test "$GXX" = yes; then
7976    CXXFLAGS="-O2"
7977  else
7978    CXXFLAGS=
7979  fi
7980fi
7981for ac_declaration in \
7982   '' \
7983   'extern "C" void std::exit (int) throw (); using std::exit;' \
7984   'extern "C" void std::exit (int); using std::exit;' \
7985   'extern "C" void exit (int) throw ();' \
7986   'extern "C" void exit (int);' \
7987   'void exit (int);'
7988do
7989  cat >conftest.$ac_ext <<_ACEOF
7990/* confdefs.h.  */
7991_ACEOF
7992cat confdefs.h >>conftest.$ac_ext
7993cat >>conftest.$ac_ext <<_ACEOF
7994/* end confdefs.h.  */
7995$ac_declaration
7996#include <stdlib.h>
7997#ifdef F77_DUMMY_MAIN
7998
7999#  ifdef __cplusplus
8000     extern "C"
8001#  endif
8002   int F77_DUMMY_MAIN() { return 1; }
8003
8004#endif
8005int
8006main ()
8007{
8008exit (42);
8009  ;
8010  return 0;
8011}
8012_ACEOF
8013rm -f conftest.$ac_objext
8014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015  (eval $ac_compile) 2>conftest.er1
8016  ac_status=$?
8017  grep -v '^ *+' conftest.er1 >conftest.err
8018  rm -f conftest.er1
8019  cat conftest.err >&5
8020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021  (exit $ac_status); } &&
8022         { ac_try='test -z "$ac_cxx_werror_flag"
8023                         || test ! -s conftest.err'
8024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025  (eval $ac_try) 2>&5
8026  ac_status=$?
8027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028  (exit $ac_status); }; } &&
8029         { ac_try='test -s conftest.$ac_objext'
8030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031  (eval $ac_try) 2>&5
8032  ac_status=$?
8033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034  (exit $ac_status); }; }; then
8035  :
8036else
8037  echo "$as_me: failed program was:" >&5
8038sed 's/^/| /' conftest.$ac_ext >&5
8039
8040continue
8041fi
8042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8043  cat >conftest.$ac_ext <<_ACEOF
8044/* confdefs.h.  */
8045_ACEOF
8046cat confdefs.h >>conftest.$ac_ext
8047cat >>conftest.$ac_ext <<_ACEOF
8048/* end confdefs.h.  */
8049$ac_declaration
8050#ifdef F77_DUMMY_MAIN
8051
8052#  ifdef __cplusplus
8053     extern "C"
8054#  endif
8055   int F77_DUMMY_MAIN() { return 1; }
8056
8057#endif
8058int
8059main ()
8060{
8061exit (42);
8062  ;
8063  return 0;
8064}
8065_ACEOF
8066rm -f conftest.$ac_objext
8067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068  (eval $ac_compile) 2>conftest.er1
8069  ac_status=$?
8070  grep -v '^ *+' conftest.er1 >conftest.err
8071  rm -f conftest.er1
8072  cat conftest.err >&5
8073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074  (exit $ac_status); } &&
8075         { ac_try='test -z "$ac_cxx_werror_flag"
8076                         || test ! -s conftest.err'
8077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078  (eval $ac_try) 2>&5
8079  ac_status=$?
8080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081  (exit $ac_status); }; } &&
8082         { ac_try='test -s conftest.$ac_objext'
8083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084  (eval $ac_try) 2>&5
8085  ac_status=$?
8086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087  (exit $ac_status); }; }; then
8088  break
8089else
8090  echo "$as_me: failed program was:" >&5
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
8093fi
8094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8095done
8096rm -f conftest*
8097if test -n "$ac_declaration"; then
8098  echo '#ifdef __cplusplus' >>confdefs.h
8099  echo $ac_declaration      >>confdefs.h
8100  echo '#endif'             >>confdefs.h
8101fi
8102
8103ac_ext=cc
8104ac_cpp='$CXXCPP $CPPFLAGS'
8105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8108
8109depcc="$CXX"  am_compiler_list=
8110
8111echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8112echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8113if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8114  echo $ECHO_N "(cached) $ECHO_C" >&6
8115else
8116  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8117  # We make a subdir and do the tests there.  Otherwise we can end up
8118  # making bogus files that we don't know about and never remove.  For
8119  # instance it was reported that on HP-UX the gcc test will end up
8120  # making a dummy file named `D' -- because `-MD' means `put the output
8121  # in D'.
8122  mkdir conftest.dir
8123  # Copy depcomp to subdir because otherwise we won't find it if we're
8124  # using a relative directory.
8125  cp "$am_depcomp" conftest.dir
8126  cd conftest.dir
8127  # We will build objects and dependencies in a subdirectory because
8128  # it helps to detect inapplicable dependency modes.  For instance
8129  # both Tru64's cc and ICC support -MD to output dependencies as a
8130  # side effect of compilation, but ICC will put the dependencies in
8131  # the current directory while Tru64 will put them in the object
8132  # directory.
8133  mkdir sub
8134
8135  am_cv_CXX_dependencies_compiler_type=none
8136  if test "$am_compiler_list" = ""; then
8137     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8138  fi
8139  for depmode in $am_compiler_list; do
8140    # Setup a source with many dependencies, because some compilers
8141    # like to wrap large dependency lists on column 80 (with \), and
8142    # we should not choose a depcomp mode which is confused by this.
8143    #
8144    # We need to recreate these files for each test, as the compiler may
8145    # overwrite some of them when testing with obscure command lines.
8146    # This happens at least with the AIX C compiler.
8147    : > sub/conftest.c
8148    for i in 1 2 3 4 5 6; do
8149      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8150      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8151      # Solaris 8's {/usr,}/bin/sh.
8152      touch sub/conftst$i.h
8153    done
8154    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8155
8156    case $depmode in
8157    nosideeffect)
8158      # after this tag, mechanisms are not by side-effect, so they'll
8159      # only be used when explicitly requested
8160      if test "x$enable_dependency_tracking" = xyes; then
8161        continue
8162      else
8163        break
8164      fi
8165      ;;
8166    none) break ;;
8167    esac
8168    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8169    # mode.  It turns out that the SunPro C++ compiler does not properly
8170    # handle `-M -o', and we need to detect this.
8171    if depmode=$depmode \
8172       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8173       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8174       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8175         >/dev/null 2>conftest.err &&
8176       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8177       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8178       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8179      # icc doesn't choke on unknown options, it will just issue warnings
8180      # or remarks (even with -Werror).  So we grep stderr for any message
8181      # that says an option was ignored or not supported.
8182      # When given -MP, icc 7.0 and 7.1 complain thusly:
8183      #   icc: Command line warning: ignoring option '-M'; no argument required
8184      # The diagnosis changed in icc 8.0:
8185      #   icc: Command line remark: option '-MP' not supported
8186      if (grep 'ignoring option' conftest.err ||
8187          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8188        am_cv_CXX_dependencies_compiler_type=$depmode
8189        break
8190      fi
8191    fi
8192  done
8193
8194  cd ..
8195  rm -rf conftest.dir
8196else
8197  am_cv_CXX_dependencies_compiler_type=none
8198fi
8199
8200fi
8201echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8202echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8203CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8204
8205
8206
8207if
8208  test "x$enable_dependency_tracking" != xno \
8209  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8210  am__fastdepCXX_TRUE=
8211  am__fastdepCXX_FALSE='#'
8212else
8213  am__fastdepCXX_TRUE='#'
8214  am__fastdepCXX_FALSE=
8215fi
8216
8217
8218
8219
8220if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8221    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8222    (test "X$CXX" != "Xg++"))) ; then
8223  ac_ext=cc
8224ac_cpp='$CXXCPP $CPPFLAGS'
8225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8228echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8229echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8230if test -z "$CXXCPP"; then
8231  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8232  echo $ECHO_N "(cached) $ECHO_C" >&6
8233else
8234      # Double quotes because CXXCPP needs to be expanded
8235    for CXXCPP in "$CXX -E" "/lib/cpp"
8236    do
8237      ac_preproc_ok=false
8238for ac_cxx_preproc_warn_flag in '' yes
8239do
8240  # Use a header file that comes with gcc, so configuring glibc
8241  # with a fresh cross-compiler works.
8242  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8243  # <limits.h> exists even on freestanding compilers.
8244  # On the NeXT, cc -E runs the code through the compiler's parser,
8245  # not just through cpp. "Syntax error" is here to catch this case.
8246  cat >conftest.$ac_ext <<_ACEOF
8247/* confdefs.h.  */
8248_ACEOF
8249cat confdefs.h >>conftest.$ac_ext
8250cat >>conftest.$ac_ext <<_ACEOF
8251/* end confdefs.h.  */
8252#ifdef __STDC__
8253# include <limits.h>
8254#else
8255# include <assert.h>
8256#endif
8257                     Syntax error
8258_ACEOF
8259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8260  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8261  ac_status=$?
8262  grep -v '^ *+' conftest.er1 >conftest.err
8263  rm -f conftest.er1
8264  cat conftest.err >&5
8265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266  (exit $ac_status); } >/dev/null; then
8267  if test -s conftest.err; then
8268    ac_cpp_err=$ac_cxx_preproc_warn_flag
8269    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8270  else
8271    ac_cpp_err=
8272  fi
8273else
8274  ac_cpp_err=yes
8275fi
8276if test -z "$ac_cpp_err"; then
8277  :
8278else
8279  echo "$as_me: failed program was:" >&5
8280sed 's/^/| /' conftest.$ac_ext >&5
8281
8282  # Broken: fails on valid input.
8283continue
8284fi
8285rm -f conftest.err conftest.$ac_ext
8286
8287  # OK, works on sane cases.  Now check whether non-existent headers
8288  # can be detected and how.
8289  cat >conftest.$ac_ext <<_ACEOF
8290/* confdefs.h.  */
8291_ACEOF
8292cat confdefs.h >>conftest.$ac_ext
8293cat >>conftest.$ac_ext <<_ACEOF
8294/* end confdefs.h.  */
8295#include <ac_nonexistent.h>
8296_ACEOF
8297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8298  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8299  ac_status=$?
8300  grep -v '^ *+' conftest.er1 >conftest.err
8301  rm -f conftest.er1
8302  cat conftest.err >&5
8303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304  (exit $ac_status); } >/dev/null; then
8305  if test -s conftest.err; then
8306    ac_cpp_err=$ac_cxx_preproc_warn_flag
8307    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8308  else
8309    ac_cpp_err=
8310  fi
8311else
8312  ac_cpp_err=yes
8313fi
8314if test -z "$ac_cpp_err"; then
8315  # Broken: success on invalid input.
8316continue
8317else
8318  echo "$as_me: failed program was:" >&5
8319sed 's/^/| /' conftest.$ac_ext >&5
8320
8321  # Passes both tests.
8322ac_preproc_ok=:
8323break
8324fi
8325rm -f conftest.err conftest.$ac_ext
8326
8327done
8328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8329rm -f conftest.err conftest.$ac_ext
8330if $ac_preproc_ok; then
8331  break
8332fi
8333
8334    done
8335    ac_cv_prog_CXXCPP=$CXXCPP
8336
8337fi
8338  CXXCPP=$ac_cv_prog_CXXCPP
8339else
8340  ac_cv_prog_CXXCPP=$CXXCPP
8341fi
8342echo "$as_me:$LINENO: result: $CXXCPP" >&5
8343echo "${ECHO_T}$CXXCPP" >&6
8344ac_preproc_ok=false
8345for ac_cxx_preproc_warn_flag in '' yes
8346do
8347  # Use a header file that comes with gcc, so configuring glibc
8348  # with a fresh cross-compiler works.
8349  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8350  # <limits.h> exists even on freestanding compilers.
8351  # On the NeXT, cc -E runs the code through the compiler's parser,
8352  # not just through cpp. "Syntax error" is here to catch this case.
8353  cat >conftest.$ac_ext <<_ACEOF
8354/* confdefs.h.  */
8355_ACEOF
8356cat confdefs.h >>conftest.$ac_ext
8357cat >>conftest.$ac_ext <<_ACEOF
8358/* end confdefs.h.  */
8359#ifdef __STDC__
8360# include <limits.h>
8361#else
8362# include <assert.h>
8363#endif
8364                     Syntax error
8365_ACEOF
8366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8367  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8368  ac_status=$?
8369  grep -v '^ *+' conftest.er1 >conftest.err
8370  rm -f conftest.er1
8371  cat conftest.err >&5
8372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373  (exit $ac_status); } >/dev/null; then
8374  if test -s conftest.err; then
8375    ac_cpp_err=$ac_cxx_preproc_warn_flag
8376    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8377  else
8378    ac_cpp_err=
8379  fi
8380else
8381  ac_cpp_err=yes
8382fi
8383if test -z "$ac_cpp_err"; then
8384  :
8385else
8386  echo "$as_me: failed program was:" >&5
8387sed 's/^/| /' conftest.$ac_ext >&5
8388
8389  # Broken: fails on valid input.
8390continue
8391fi
8392rm -f conftest.err conftest.$ac_ext
8393
8394  # OK, works on sane cases.  Now check whether non-existent headers
8395  # can be detected and how.
8396  cat >conftest.$ac_ext <<_ACEOF
8397/* confdefs.h.  */
8398_ACEOF
8399cat confdefs.h >>conftest.$ac_ext
8400cat >>conftest.$ac_ext <<_ACEOF
8401/* end confdefs.h.  */
8402#include <ac_nonexistent.h>
8403_ACEOF
8404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8405  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8406  ac_status=$?
8407  grep -v '^ *+' conftest.er1 >conftest.err
8408  rm -f conftest.er1
8409  cat conftest.err >&5
8410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411  (exit $ac_status); } >/dev/null; then
8412  if test -s conftest.err; then
8413    ac_cpp_err=$ac_cxx_preproc_warn_flag
8414    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8415  else
8416    ac_cpp_err=
8417  fi
8418else
8419  ac_cpp_err=yes
8420fi
8421if test -z "$ac_cpp_err"; then
8422  # Broken: success on invalid input.
8423continue
8424else
8425  echo "$as_me: failed program was:" >&5
8426sed 's/^/| /' conftest.$ac_ext >&5
8427
8428  # Passes both tests.
8429ac_preproc_ok=:
8430break
8431fi
8432rm -f conftest.err conftest.$ac_ext
8433
8434done
8435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8436rm -f conftest.err conftest.$ac_ext
8437if $ac_preproc_ok; then
8438  :
8439else
8440  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8441See \`config.log' for more details." >&5
8442echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8443See \`config.log' for more details." >&2;}
8444   { (exit 1); exit 1; }; }
8445fi
8446
8447ac_ext=cc
8448ac_cpp='$CXXCPP $CPPFLAGS'
8449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8452
8453fi
8454
8455
8456
8457# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8458
8459# find the maximum length of command line arguments
8460echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8461echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8462if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8463  echo $ECHO_N "(cached) $ECHO_C" >&6
8464else
8465    i=0
8466  teststring="ABCD"
8467
8468  case $build_os in
8469  msdosdjgpp*)
8470    # On DJGPP, this test can blow up pretty badly due to problems in libc
8471    # (any single argument exceeding 2000 bytes causes a buffer overrun
8472    # during glob expansion).  Even if it were fixed, the result of this
8473    # check would be larger than it should be.
8474    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8475    ;;
8476
8477  gnu*)
8478    # Under GNU Hurd, this test is not required because there is
8479    # no limit to the length of command line arguments.
8480    # Libtool will interpret -1 as no limit whatsoever
8481    lt_cv_sys_max_cmd_len=-1;
8482    ;;
8483
8484  cygwin* | mingw*)
8485    # On Win9x/ME, this test blows up -- it succeeds, but takes
8486    # about 5 minutes as the teststring grows exponentially.
8487    # Worse, since 9x/ME are not pre-emptively multitasking,
8488    # you end up with a "frozen" computer, even though with patience
8489    # the test eventually succeeds (with a max line length of 256k).
8490    # Instead, let's just punt: use the minimum linelength reported by
8491    # all of the supported platforms: 8192 (on NT/2K/XP).
8492    lt_cv_sys_max_cmd_len=8192;
8493    ;;
8494
8495  amigaos*)
8496    # On AmigaOS with pdksh, this test takes hours, literally.
8497    # So we just punt and use a minimum line length of 8192.
8498    lt_cv_sys_max_cmd_len=8192;
8499    ;;
8500
8501  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8502    # This has been around since 386BSD, at least.  Likely further.
8503    if test -x /sbin/sysctl; then
8504      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8505    elif test -x /usr/sbin/sysctl; then
8506      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8507    else
8508      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8509    fi
8510    # And add a safety zone
8511    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8512    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8513    ;;
8514
8515  interix*)
8516    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8517    lt_cv_sys_max_cmd_len=196608
8518    ;;
8519
8520  osf*)
8521    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8522    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8523    # nice to cause kernel panics so lets avoid the loop below.
8524    # First set a reasonable default.
8525    lt_cv_sys_max_cmd_len=16384
8526    #
8527    if test -x /sbin/sysconfig; then
8528      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8529        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8530      esac
8531    fi
8532    ;;
8533  sco3.2v5*)
8534    lt_cv_sys_max_cmd_len=102400
8535    ;;
8536  sysv5* | sco5v6* | sysv4.2uw2*)
8537    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8538    if test -n "$kargmax"; then
8539      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8540    else
8541      lt_cv_sys_max_cmd_len=32768
8542    fi
8543    ;;
8544  *)
8545    # If test is not a shell built-in, we'll probably end up computing a
8546    # maximum length that is only half of the actual maximum length, but
8547    # we can't tell.
8548    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8549    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8550               = "XX$teststring") >/dev/null 2>&1 &&
8551            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8552            lt_cv_sys_max_cmd_len=$new_result &&
8553            test $i != 17 # 1/2 MB should be enough
8554    do
8555      i=`expr $i + 1`
8556      teststring=$teststring$teststring
8557    done
8558    teststring=
8559    # Add a significant safety factor because C++ compilers can tack on massive
8560    # amounts of additional arguments before passing them to the linker.
8561    # It appears as though 1/2 is a usable value.
8562    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8563    ;;
8564  esac
8565
8566fi
8567
8568if test -n $lt_cv_sys_max_cmd_len ; then
8569  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8570echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8571else
8572  echo "$as_me:$LINENO: result: none" >&5
8573echo "${ECHO_T}none" >&6
8574fi
8575
8576
8577
8578
8579# Check for command to grab the raw symbol name followed by C symbol from nm.
8580echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8581echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8582if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8583  echo $ECHO_N "(cached) $ECHO_C" >&6
8584else
8585
8586# These are sane defaults that work on at least a few old systems.
8587# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8588
8589# Character class describing NM global symbol codes.
8590symcode='[BCDEGRST]'
8591
8592# Regexp to match symbols that can be accessed directly from C.
8593sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8594
8595# Transform an extracted symbol line into a proper C declaration
8596lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8597
8598# Transform an extracted symbol line into symbol name and symbol address
8599lt_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'"
8600
8601# Define system-specific variables.
8602case $host_os in
8603aix*)
8604  symcode='[BCDT]'
8605  ;;
8606cygwin* | mingw* | pw32*)
8607  symcode='[ABCDGISTW]'
8608  ;;
8609hpux*) # Its linker distinguishes data from code symbols
8610  if test "$host_cpu" = ia64; then
8611    symcode='[ABCDEGRST]'
8612  fi
8613  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8614  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'"
8615  ;;
8616linux*)
8617  if test "$host_cpu" = ia64; then
8618    symcode='[ABCDGIRSTW]'
8619    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8620    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'"
8621  fi
8622  ;;
8623irix* | nonstopux*)
8624  symcode='[BCDEGRST]'
8625  ;;
8626osf*)
8627  symcode='[BCDEGQRST]'
8628  ;;
8629solaris*)
8630  symcode='[BDRT]'
8631  ;;
8632sco3.2v5*)
8633  symcode='[DT]'
8634  ;;
8635sysv4.2uw2*)
8636  symcode='[DT]'
8637  ;;
8638sysv5* | sco5v6* | unixware* | OpenUNIX*)
8639  symcode='[ABDT]'
8640  ;;
8641sysv4)
8642  symcode='[DFNSTU]'
8643  ;;
8644esac
8645
8646# Handle CRLF in mingw tool chain
8647opt_cr=
8648case $build_os in
8649mingw*)
8650  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8651  ;;
8652esac
8653
8654# If we're using GNU nm, then use its standard symbol codes.
8655case `$NM -V 2>&1` in
8656*GNU* | *'with BFD'*)
8657  symcode='[ABCDGIRSTW]' ;;
8658esac
8659
8660# Try without a prefix undercore, then with it.
8661for ac_symprfx in "" "_"; do
8662
8663  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8664  symxfrm="\\1 $ac_symprfx\\2 \\2"
8665
8666  # Write the raw and C identifiers.
8667  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8668
8669  # Check to see that the pipe works correctly.
8670  pipe_works=no
8671
8672  rm -f conftest*
8673  cat > conftest.$ac_ext <<EOF
8674#ifdef __cplusplus
8675extern "C" {
8676#endif
8677char nm_test_var;
8678void nm_test_func(){}
8679#ifdef __cplusplus
8680}
8681#endif
8682int main(){nm_test_var='a';nm_test_func();return(0);}
8683EOF
8684
8685  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8686  (eval $ac_compile) 2>&5
8687  ac_status=$?
8688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689  (exit $ac_status); }; then
8690    # Now try to grab the symbols.
8691    nlist=conftest.nm
8692    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8693  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8694  ac_status=$?
8695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696  (exit $ac_status); } && test -s "$nlist"; then
8697      # Try sorting and uniquifying the output.
8698      if sort "$nlist" | uniq > "$nlist"T; then
8699        mv -f "$nlist"T "$nlist"
8700      else
8701        rm -f "$nlist"T
8702      fi
8703
8704      # Make sure that we snagged all the symbols we need.
8705      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8706        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8707          cat <<EOF > conftest.$ac_ext
8708#ifdef __cplusplus
8709extern "C" {
8710#endif
8711
8712EOF
8713          # Now generate the symbol file.
8714          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8715
8716          cat <<EOF >> conftest.$ac_ext
8717#if defined (__STDC__) && __STDC__
8718# define lt_ptr_t void *
8719#else
8720# define lt_ptr_t char *
8721# define const
8722#endif
8723
8724/* The mapping between symbol names and symbols. */
8725const struct {
8726  const char *name;
8727  lt_ptr_t address;
8728}
8729lt_preloaded_symbols[] =
8730{
8731EOF
8732          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8733          cat <<\EOF >> conftest.$ac_ext
8734  {0, (lt_ptr_t) 0}
8735};
8736
8737#ifdef __cplusplus
8738}
8739#endif
8740EOF
8741          # Now try linking the two files.
8742          mv conftest.$ac_objext conftstm.$ac_objext
8743          lt_save_LIBS="$LIBS"
8744          lt_save_CFLAGS="$CFLAGS"
8745          LIBS="conftstm.$ac_objext"
8746          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8747          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8748  (eval $ac_link) 2>&5
8749  ac_status=$?
8750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8752            pipe_works=yes
8753          fi
8754          LIBS="$lt_save_LIBS"
8755          CFLAGS="$lt_save_CFLAGS"
8756        else
8757          echo "cannot find nm_test_func in $nlist" >&5
8758        fi
8759      else
8760        echo "cannot find nm_test_var in $nlist" >&5
8761      fi
8762    else
8763      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8764    fi
8765  else
8766    echo "$progname: failed program was:" >&5
8767    cat conftest.$ac_ext >&5
8768  fi
8769  rm -f conftest* conftst*
8770
8771  # Do not use the global_symbol_pipe unless it works.
8772  if test "$pipe_works" = yes; then
8773    break
8774  else
8775    lt_cv_sys_global_symbol_pipe=
8776  fi
8777done
8778
8779fi
8780
8781if test -z "$lt_cv_sys_global_symbol_pipe"; then
8782  lt_cv_sys_global_symbol_to_cdecl=
8783fi
8784if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8785  echo "$as_me:$LINENO: result: failed" >&5
8786echo "${ECHO_T}failed" >&6
8787else
8788  echo "$as_me:$LINENO: result: ok" >&5
8789echo "${ECHO_T}ok" >&6
8790fi
8791
8792echo "$as_me:$LINENO: checking for objdir" >&5
8793echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8794if test "${lt_cv_objdir+set}" = set; then
8795  echo $ECHO_N "(cached) $ECHO_C" >&6
8796else
8797  rm -f .libs 2>/dev/null
8798mkdir .libs 2>/dev/null
8799if test -d .libs; then
8800  lt_cv_objdir=.libs
8801else
8802  # MS-DOS does not allow filenames that begin with a dot.
8803  lt_cv_objdir=_libs
8804fi
8805rmdir .libs 2>/dev/null
8806fi
8807echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8808echo "${ECHO_T}$lt_cv_objdir" >&6
8809objdir=$lt_cv_objdir
8810
8811
8812
8813
8814
8815case $host_os in
8816aix3*)
8817  # AIX sometimes has problems with the GCC collect2 program.  For some
8818  # reason, if we set the COLLECT_NAMES environment variable, the problems
8819  # vanish in a puff of smoke.
8820  if test "X${COLLECT_NAMES+set}" != Xset; then
8821    COLLECT_NAMES=
8822    export COLLECT_NAMES
8823  fi
8824  ;;
8825esac
8826
8827# Sed substitution that helps us do robust quoting.  It backslashifies
8828# metacharacters that are still active within double-quoted strings.
8829Xsed='sed -e 1s/^X//'
8830sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8831
8832# Same as above, but do not quote variable references.
8833double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8834
8835# Sed substitution to delay expansion of an escaped shell variable in a
8836# double_quote_subst'ed string.
8837delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8838
8839# Sed substitution to avoid accidental globbing in evaled expressions
8840no_glob_subst='s/\*/\\\*/g'
8841
8842# Constants:
8843rm="rm -f"
8844
8845# Global variables:
8846default_ofile=libtool
8847can_build_shared=yes
8848
8849# All known linkers require a `.a' archive for static linking (except MSVC,
8850# which needs '.lib').
8851libext=a
8852ltmain="$ac_aux_dir/ltmain.sh"
8853ofile="$default_ofile"
8854with_gnu_ld="$lt_cv_prog_gnu_ld"
8855
8856if test -n "$ac_tool_prefix"; then
8857  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8858set dummy ${ac_tool_prefix}ar; ac_word=$2
8859echo "$as_me:$LINENO: checking for $ac_word" >&5
8860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8861if test "${ac_cv_prog_AR+set}" = set; then
8862  echo $ECHO_N "(cached) $ECHO_C" >&6
8863else
8864  if test -n "$AR"; then
8865  ac_cv_prog_AR="$AR" # Let the user override the test.
8866else
8867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868for as_dir in $PATH
8869do
8870  IFS=$as_save_IFS
8871  test -z "$as_dir" && as_dir=.
8872  for ac_exec_ext in '' $ac_executable_extensions; do
8873  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8874    ac_cv_prog_AR="${ac_tool_prefix}ar"
8875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8876    break 2
8877  fi
8878done
8879done
8880
8881fi
8882fi
8883AR=$ac_cv_prog_AR
8884if test -n "$AR"; then
8885  echo "$as_me:$LINENO: result: $AR" >&5
8886echo "${ECHO_T}$AR" >&6
8887else
8888  echo "$as_me:$LINENO: result: no" >&5
8889echo "${ECHO_T}no" >&6
8890fi
8891
8892fi
8893if test -z "$ac_cv_prog_AR"; then
8894  ac_ct_AR=$AR
8895  # Extract the first word of "ar", so it can be a program name with args.
8896set dummy ar; ac_word=$2
8897echo "$as_me:$LINENO: checking for $ac_word" >&5
8898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8899if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8900  echo $ECHO_N "(cached) $ECHO_C" >&6
8901else
8902  if test -n "$ac_ct_AR"; then
8903  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8904else
8905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906for as_dir in $PATH
8907do
8908  IFS=$as_save_IFS
8909  test -z "$as_dir" && as_dir=.
8910  for ac_exec_ext in '' $ac_executable_extensions; do
8911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8912    ac_cv_prog_ac_ct_AR="ar"
8913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8914    break 2
8915  fi
8916done
8917done
8918
8919  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8920fi
8921fi
8922ac_ct_AR=$ac_cv_prog_ac_ct_AR
8923if test -n "$ac_ct_AR"; then
8924  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8925echo "${ECHO_T}$ac_ct_AR" >&6
8926else
8927  echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
8929fi
8930
8931  AR=$ac_ct_AR
8932else
8933  AR="$ac_cv_prog_AR"
8934fi
8935
8936if test -n "$ac_tool_prefix"; then
8937  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8938set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8939echo "$as_me:$LINENO: checking for $ac_word" >&5
8940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8941if test "${ac_cv_prog_RANLIB+set}" = set; then
8942  echo $ECHO_N "(cached) $ECHO_C" >&6
8943else
8944  if test -n "$RANLIB"; then
8945  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8946else
8947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948for as_dir in $PATH
8949do
8950  IFS=$as_save_IFS
8951  test -z "$as_dir" && as_dir=.
8952  for ac_exec_ext in '' $ac_executable_extensions; do
8953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8954    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8956    break 2
8957  fi
8958done
8959done
8960
8961fi
8962fi
8963RANLIB=$ac_cv_prog_RANLIB
8964if test -n "$RANLIB"; then
8965  echo "$as_me:$LINENO: result: $RANLIB" >&5
8966echo "${ECHO_T}$RANLIB" >&6
8967else
8968  echo "$as_me:$LINENO: result: no" >&5
8969echo "${ECHO_T}no" >&6
8970fi
8971
8972fi
8973if test -z "$ac_cv_prog_RANLIB"; then
8974  ac_ct_RANLIB=$RANLIB
8975  # Extract the first word of "ranlib", so it can be a program name with args.
8976set dummy ranlib; ac_word=$2
8977echo "$as_me:$LINENO: checking for $ac_word" >&5
8978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8979if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8980  echo $ECHO_N "(cached) $ECHO_C" >&6
8981else
8982  if test -n "$ac_ct_RANLIB"; then
8983  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8984else
8985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986for as_dir in $PATH
8987do
8988  IFS=$as_save_IFS
8989  test -z "$as_dir" && as_dir=.
8990  for ac_exec_ext in '' $ac_executable_extensions; do
8991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8992    ac_cv_prog_ac_ct_RANLIB="ranlib"
8993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8994    break 2
8995  fi
8996done
8997done
8998
8999  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9000fi
9001fi
9002ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9003if test -n "$ac_ct_RANLIB"; then
9004  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9005echo "${ECHO_T}$ac_ct_RANLIB" >&6
9006else
9007  echo "$as_me:$LINENO: result: no" >&5
9008echo "${ECHO_T}no" >&6
9009fi
9010
9011  RANLIB=$ac_ct_RANLIB
9012else
9013  RANLIB="$ac_cv_prog_RANLIB"
9014fi
9015
9016if test -n "$ac_tool_prefix"; then
9017  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9018set dummy ${ac_tool_prefix}strip; ac_word=$2
9019echo "$as_me:$LINENO: checking for $ac_word" >&5
9020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9021if test "${ac_cv_prog_STRIP+set}" = set; then
9022  echo $ECHO_N "(cached) $ECHO_C" >&6
9023else
9024  if test -n "$STRIP"; then
9025  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9026else
9027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028for as_dir in $PATH
9029do
9030  IFS=$as_save_IFS
9031  test -z "$as_dir" && as_dir=.
9032  for ac_exec_ext in '' $ac_executable_extensions; do
9033  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9034    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9035    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9036    break 2
9037  fi
9038done
9039done
9040
9041fi
9042fi
9043STRIP=$ac_cv_prog_STRIP
9044if test -n "$STRIP"; then
9045  echo "$as_me:$LINENO: result: $STRIP" >&5
9046echo "${ECHO_T}$STRIP" >&6
9047else
9048  echo "$as_me:$LINENO: result: no" >&5
9049echo "${ECHO_T}no" >&6
9050fi
9051
9052fi
9053if test -z "$ac_cv_prog_STRIP"; then
9054  ac_ct_STRIP=$STRIP
9055  # Extract the first word of "strip", so it can be a program name with args.
9056set dummy strip; ac_word=$2
9057echo "$as_me:$LINENO: checking for $ac_word" >&5
9058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9059if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9060  echo $ECHO_N "(cached) $ECHO_C" >&6
9061else
9062  if test -n "$ac_ct_STRIP"; then
9063  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9064else
9065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066for as_dir in $PATH
9067do
9068  IFS=$as_save_IFS
9069  test -z "$as_dir" && as_dir=.
9070  for ac_exec_ext in '' $ac_executable_extensions; do
9071  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072    ac_cv_prog_ac_ct_STRIP="strip"
9073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9074    break 2
9075  fi
9076done
9077done
9078
9079  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9080fi
9081fi
9082ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9083if test -n "$ac_ct_STRIP"; then
9084  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9085echo "${ECHO_T}$ac_ct_STRIP" >&6
9086else
9087  echo "$as_me:$LINENO: result: no" >&5
9088echo "${ECHO_T}no" >&6
9089fi
9090
9091  STRIP=$ac_ct_STRIP
9092else
9093  STRIP="$ac_cv_prog_STRIP"
9094fi
9095
9096
9097old_CC="$CC"
9098old_CFLAGS="$CFLAGS"
9099
9100# Set sane defaults for various variables
9101test -z "$AR" && AR=ar
9102test -z "$AR_FLAGS" && AR_FLAGS=cru
9103test -z "$AS" && AS=as
9104test -z "$CC" && CC=cc
9105test -z "$LTCC" && LTCC=$CC
9106test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9107test -z "$DLLTOOL" && DLLTOOL=dlltool
9108test -z "$LD" && LD=ld
9109test -z "$LN_S" && LN_S="ln -s"
9110test -z "$MAGIC_CMD" && MAGIC_CMD=file
9111test -z "$NM" && NM=nm
9112test -z "$SED" && SED=sed
9113test -z "$OBJDUMP" && OBJDUMP=objdump
9114test -z "$RANLIB" && RANLIB=:
9115test -z "$STRIP" && STRIP=:
9116test -z "$ac_objext" && ac_objext=o
9117
9118# Determine commands to create old-style static archives.
9119old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9120old_postinstall_cmds='chmod 644 $oldlib'
9121old_postuninstall_cmds=
9122
9123if test -n "$RANLIB"; then
9124  case $host_os in
9125  openbsd*)
9126    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9127    ;;
9128  *)
9129    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9130    ;;
9131  esac
9132  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9133fi
9134
9135for cc_temp in $compiler""; do
9136  case $cc_temp in
9137    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9138    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9139    \-*) ;;
9140    *) break;;
9141  esac
9142done
9143cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9144
9145
9146# Only perform the check for file, if the check method requires it
9147case $deplibs_check_method in
9148file_magic*)
9149  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9150    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9151echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9152if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9153  echo $ECHO_N "(cached) $ECHO_C" >&6
9154else
9155  case $MAGIC_CMD in
9156[\\/*] |  ?:[\\/]*)
9157  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9158  ;;
9159*)
9160  lt_save_MAGIC_CMD="$MAGIC_CMD"
9161  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9162  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9163  for ac_dir in $ac_dummy; do
9164    IFS="$lt_save_ifs"
9165    test -z "$ac_dir" && ac_dir=.
9166    if test -f $ac_dir/${ac_tool_prefix}file; then
9167      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9168      if test -n "$file_magic_test_file"; then
9169        case $deplibs_check_method in
9170        "file_magic "*)
9171          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9172          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9173          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9174            $EGREP "$file_magic_regex" > /dev/null; then
9175            :
9176          else
9177            cat <<EOF 1>&2
9178
9179*** Warning: the command libtool uses to detect shared libraries,
9180*** $file_magic_cmd, produces output that libtool cannot recognize.
9181*** The result is that libtool may fail to recognize shared libraries
9182*** as such.  This will affect the creation of libtool libraries that
9183*** depend on shared libraries, but programs linked with such libtool
9184*** libraries will work regardless of this problem.  Nevertheless, you
9185*** may want to report the problem to your system manager and/or to
9186*** bug-libtool@gnu.org
9187
9188EOF
9189          fi ;;
9190        esac
9191      fi
9192      break
9193    fi
9194  done
9195  IFS="$lt_save_ifs"
9196  MAGIC_CMD="$lt_save_MAGIC_CMD"
9197  ;;
9198esac
9199fi
9200
9201MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9202if test -n "$MAGIC_CMD"; then
9203  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9204echo "${ECHO_T}$MAGIC_CMD" >&6
9205else
9206  echo "$as_me:$LINENO: result: no" >&5
9207echo "${ECHO_T}no" >&6
9208fi
9209
9210if test -z "$lt_cv_path_MAGIC_CMD"; then
9211  if test -n "$ac_tool_prefix"; then
9212    echo "$as_me:$LINENO: checking for file" >&5
9213echo $ECHO_N "checking for file... $ECHO_C" >&6
9214if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9215  echo $ECHO_N "(cached) $ECHO_C" >&6
9216else
9217  case $MAGIC_CMD in
9218[\\/*] |  ?:[\\/]*)
9219  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9220  ;;
9221*)
9222  lt_save_MAGIC_CMD="$MAGIC_CMD"
9223  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9224  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9225  for ac_dir in $ac_dummy; do
9226    IFS="$lt_save_ifs"
9227    test -z "$ac_dir" && ac_dir=.
9228    if test -f $ac_dir/file; then
9229      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9230      if test -n "$file_magic_test_file"; then
9231        case $deplibs_check_method in
9232        "file_magic "*)
9233          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9234          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9235          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9236            $EGREP "$file_magic_regex" > /dev/null; then
9237            :
9238          else
9239            cat <<EOF 1>&2
9240
9241*** Warning: the command libtool uses to detect shared libraries,
9242*** $file_magic_cmd, produces output that libtool cannot recognize.
9243*** The result is that libtool may fail to recognize shared libraries
9244*** as such.  This will affect the creation of libtool libraries that
9245*** depend on shared libraries, but programs linked with such libtool
9246*** libraries will work regardless of this problem.  Nevertheless, you
9247*** may want to report the problem to your system manager and/or to
9248*** bug-libtool@gnu.org
9249
9250EOF
9251          fi ;;
9252        esac
9253      fi
9254      break
9255    fi
9256  done
9257  IFS="$lt_save_ifs"
9258  MAGIC_CMD="$lt_save_MAGIC_CMD"
9259  ;;
9260esac
9261fi
9262
9263MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9264if test -n "$MAGIC_CMD"; then
9265  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9266echo "${ECHO_T}$MAGIC_CMD" >&6
9267else
9268  echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
9270fi
9271
9272  else
9273    MAGIC_CMD=:
9274  fi
9275fi
9276
9277  fi
9278  ;;
9279esac
9280
9281enable_dlopen=no
9282enable_win32_dll=no
9283
9284# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9285if test "${enable_libtool_lock+set}" = set; then
9286  enableval="$enable_libtool_lock"
9287
9288fi;
9289test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9290
9291
9292# Check whether --with-pic or --without-pic was given.
9293if test "${with_pic+set}" = set; then
9294  withval="$with_pic"
9295  pic_mode="$withval"
9296else
9297  pic_mode=default
9298fi;
9299test -z "$pic_mode" && pic_mode=default
9300
9301# Use C for the default configuration in the libtool script
9302tagname=
9303lt_save_CC="$CC"
9304ac_ext=c
9305ac_cpp='$CPP $CPPFLAGS'
9306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9308ac_compiler_gnu=$ac_cv_c_compiler_gnu
9309
9310
9311# Source file extension for C test sources.
9312ac_ext=c
9313
9314# Object file extension for compiled C test sources.
9315objext=o
9316objext=$objext
9317
9318# Code to be used in simple compile tests
9319lt_simple_compile_test_code="int some_variable = 0;\n"
9320
9321# Code to be used in simple link tests
9322lt_simple_link_test_code='int main(){return(0);}\n'
9323
9324
9325# If no C compiler was specified, use CC.
9326LTCC=${LTCC-"$CC"}
9327
9328# If no C compiler flags were specified, use CFLAGS.
9329LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9330
9331# Allow CC to be a program name with arguments.
9332compiler=$CC
9333
9334
9335# save warnings/boilerplate of simple test code
9336ac_outfile=conftest.$ac_objext
9337printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9338eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9339_lt_compiler_boilerplate=`cat conftest.err`
9340$rm conftest*
9341
9342ac_outfile=conftest.$ac_objext
9343printf "$lt_simple_link_test_code" >conftest.$ac_ext
9344eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9345_lt_linker_boilerplate=`cat conftest.err`
9346$rm conftest*
9347
9348
9349## CAVEAT EMPTOR:
9350## There is no encapsulation within the following macros, do not change
9351## the running order or otherwise move them around unless you know exactly
9352## what you are doing...
9353
9354lt_prog_compiler_no_builtin_flag=
9355
9356if test "$GCC" = yes; then
9357  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9358
9359
9360echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9361echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9362if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9363  echo $ECHO_N "(cached) $ECHO_C" >&6
9364else
9365  lt_cv_prog_compiler_rtti_exceptions=no
9366  ac_outfile=conftest.$ac_objext
9367   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9368   lt_compiler_flag="-fno-rtti -fno-exceptions"
9369   # Insert the option either (1) after the last *FLAGS variable, or
9370   # (2) before a word containing "conftest.", or (3) at the end.
9371   # Note that $ac_compile itself does not contain backslashes and begins
9372   # with a dollar sign (not a hyphen), so the echo should work correctly.
9373   # The option is referenced via a variable to avoid confusing sed.
9374   lt_compile=`echo "$ac_compile" | $SED \
9375   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377   -e 's:$: $lt_compiler_flag:'`
9378   (eval echo "\"\$as_me:9378: $lt_compile\"" >&5)
9379   (eval "$lt_compile" 2>conftest.err)
9380   ac_status=$?
9381   cat conftest.err >&5
9382   echo "$as_me:9382: \$? = $ac_status" >&5
9383   if (exit $ac_status) && test -s "$ac_outfile"; then
9384     # The compiler can only warn and ignore the option if not recognized
9385     # So say no if there are warnings other than the usual output.
9386     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9387     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9389       lt_cv_prog_compiler_rtti_exceptions=yes
9390     fi
9391   fi
9392   $rm conftest*
9393
9394fi
9395echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9396echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9397
9398if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9399    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9400else
9401    :
9402fi
9403
9404fi
9405
9406lt_prog_compiler_wl=
9407lt_prog_compiler_pic=
9408lt_prog_compiler_static=
9409
9410echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9411echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9412
9413  if test "$GCC" = yes; then
9414    lt_prog_compiler_wl='-Wl,'
9415    lt_prog_compiler_static='-static'
9416
9417    case $host_os in
9418      aix*)
9419      # All AIX code is PIC.
9420      if test "$host_cpu" = ia64; then
9421        # AIX 5 now supports IA64 processor
9422        lt_prog_compiler_static='-Bstatic'
9423      fi
9424      ;;
9425
9426    amigaos*)
9427      # FIXME: we need at least 68020 code to build shared libraries, but
9428      # adding the `-m68020' flag to GCC prevents building anything better,
9429      # like `-m68040'.
9430      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9431      ;;
9432
9433    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9434      # PIC is the default for these OSes.
9435      ;;
9436
9437    mingw* | pw32* | os2*)
9438      # This hack is so that the source file can tell whether it is being
9439      # built for inclusion in a dll (and should export symbols for example).
9440      lt_prog_compiler_pic='-DDLL_EXPORT'
9441      ;;
9442
9443    darwin* | rhapsody*)
9444      # PIC is the default on this platform
9445      # Common symbols not allowed in MH_DYLIB files
9446      lt_prog_compiler_pic='-fno-common'
9447      ;;
9448
9449    interix3*)
9450      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9451      # Instead, we relocate shared libraries at runtime.
9452      ;;
9453
9454    msdosdjgpp*)
9455      # Just because we use GCC doesn't mean we suddenly get shared libraries
9456      # on systems that don't support them.
9457      lt_prog_compiler_can_build_shared=no
9458      enable_shared=no
9459      ;;
9460
9461    sysv4*MP*)
9462      if test -d /usr/nec; then
9463        lt_prog_compiler_pic=-Kconform_pic
9464      fi
9465      ;;
9466
9467    hpux*)
9468      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9469      # not for PA HP-UX.
9470      case $host_cpu in
9471      hppa*64*|ia64*)
9472        # +Z the default
9473        ;;
9474      *)
9475        lt_prog_compiler_pic='-fPIC'
9476        ;;
9477      esac
9478      ;;
9479
9480    *)
9481      lt_prog_compiler_pic='-fPIC'
9482      ;;
9483    esac
9484  else
9485    # PORTME Check for flag to pass linker flags through the system compiler.
9486    case $host_os in
9487    aix*)
9488      lt_prog_compiler_wl='-Wl,'
9489      if test "$host_cpu" = ia64; then
9490        # AIX 5 now supports IA64 processor
9491        lt_prog_compiler_static='-Bstatic'
9492      else
9493        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9494      fi
9495      ;;
9496      darwin*)
9497        # PIC is the default on this platform
9498        # Common symbols not allowed in MH_DYLIB files
9499       case $cc_basename in
9500         xlc*)
9501         lt_prog_compiler_pic='-qnocommon'
9502         lt_prog_compiler_wl='-Wl,'
9503         ;;
9504       esac
9505       ;;
9506
9507    mingw* | pw32* | os2*)
9508      # This hack is so that the source file can tell whether it is being
9509      # built for inclusion in a dll (and should export symbols for example).
9510      lt_prog_compiler_pic='-DDLL_EXPORT'
9511      ;;
9512
9513    hpux9* | hpux10* | hpux11*)
9514      lt_prog_compiler_wl='-Wl,'
9515      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9516      # not for PA HP-UX.
9517      case $host_cpu in
9518      hppa*64*|ia64*)
9519        # +Z the default
9520        ;;
9521      *)
9522        lt_prog_compiler_pic='+Z'
9523        ;;
9524      esac
9525      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9526      lt_prog_compiler_static='${wl}-a ${wl}archive'
9527      ;;
9528
9529    irix5* | irix6* | nonstopux*)
9530      lt_prog_compiler_wl='-Wl,'
9531      # PIC (with -KPIC) is the default.
9532      lt_prog_compiler_static='-non_shared'
9533      ;;
9534
9535    newsos6)
9536      lt_prog_compiler_pic='-KPIC'
9537      lt_prog_compiler_static='-Bstatic'
9538      ;;
9539
9540    linux*)
9541      case $cc_basename in
9542      icc* | ecc*)
9543        lt_prog_compiler_wl='-Wl,'
9544        lt_prog_compiler_pic='-KPIC'
9545        lt_prog_compiler_static='-static'
9546        ;;
9547      pgcc* | pgf77* | pgf90* | pgf95*)
9548        # Portland Group compilers (*not* the Pentium gcc compiler,
9549        # which looks to be a dead project)
9550        lt_prog_compiler_wl='-Wl,'
9551        lt_prog_compiler_pic='-fpic'
9552        lt_prog_compiler_static='-Bstatic'
9553        ;;
9554      ccc*)
9555        lt_prog_compiler_wl='-Wl,'
9556        # All Alpha code is PIC.
9557        lt_prog_compiler_static='-non_shared'
9558        ;;
9559      esac
9560      ;;
9561
9562    osf3* | osf4* | osf5*)
9563      lt_prog_compiler_wl='-Wl,'
9564      # All OSF/1 code is PIC.
9565      lt_prog_compiler_static='-non_shared'
9566      ;;
9567
9568    solaris*)
9569      lt_prog_compiler_pic='-KPIC'
9570      lt_prog_compiler_static='-Bstatic'
9571      case $cc_basename in
9572      f77* | f90* | f95*)
9573        lt_prog_compiler_wl='-Qoption ld ';;
9574      *)
9575        lt_prog_compiler_wl='-Wl,';;
9576      esac
9577      ;;
9578
9579    sunos4*)
9580      lt_prog_compiler_wl='-Qoption ld '
9581      lt_prog_compiler_pic='-PIC'
9582      lt_prog_compiler_static='-Bstatic'
9583      ;;
9584
9585    sysv4 | sysv4.2uw2* | sysv4.3*)
9586      lt_prog_compiler_wl='-Wl,'
9587      lt_prog_compiler_pic='-KPIC'
9588      lt_prog_compiler_static='-Bstatic'
9589      ;;
9590
9591    sysv4*MP*)
9592      if test -d /usr/nec ;then
9593        lt_prog_compiler_pic='-Kconform_pic'
9594        lt_prog_compiler_static='-Bstatic'
9595      fi
9596      ;;
9597
9598    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9599      lt_prog_compiler_wl='-Wl,'
9600      lt_prog_compiler_pic='-KPIC'
9601      lt_prog_compiler_static='-Bstatic'
9602      ;;
9603
9604    unicos*)
9605      lt_prog_compiler_wl='-Wl,'
9606      lt_prog_compiler_can_build_shared=no
9607      ;;
9608
9609    uts4*)
9610      lt_prog_compiler_pic='-pic'
9611      lt_prog_compiler_static='-Bstatic'
9612      ;;
9613
9614    *)
9615      lt_prog_compiler_can_build_shared=no
9616      ;;
9617    esac
9618  fi
9619
9620echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9621echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9622
9623#
9624# Check to make sure the PIC flag actually works.
9625#
9626if test -n "$lt_prog_compiler_pic"; then
9627
9628echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9629echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9630if test "${lt_prog_compiler_pic_works+set}" = set; then
9631  echo $ECHO_N "(cached) $ECHO_C" >&6
9632else
9633  lt_prog_compiler_pic_works=no
9634  ac_outfile=conftest.$ac_objext
9635   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9636   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9637   # Insert the option either (1) after the last *FLAGS variable, or
9638   # (2) before a word containing "conftest.", or (3) at the end.
9639   # Note that $ac_compile itself does not contain backslashes and begins
9640   # with a dollar sign (not a hyphen), so the echo should work correctly.
9641   # The option is referenced via a variable to avoid confusing sed.
9642   lt_compile=`echo "$ac_compile" | $SED \
9643   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9644   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9645   -e 's:$: $lt_compiler_flag:'`
9646   (eval echo "\"\$as_me:9646: $lt_compile\"" >&5)
9647   (eval "$lt_compile" 2>conftest.err)
9648   ac_status=$?
9649   cat conftest.err >&5
9650   echo "$as_me:9650: \$? = $ac_status" >&5
9651   if (exit $ac_status) && test -s "$ac_outfile"; then
9652     # The compiler can only warn and ignore the option if not recognized
9653     # So say no if there are warnings other than the usual output.
9654     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9655     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9656     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9657       lt_prog_compiler_pic_works=yes
9658     fi
9659   fi
9660   $rm conftest*
9661
9662fi
9663echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9664echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9665
9666if test x"$lt_prog_compiler_pic_works" = xyes; then
9667    case $lt_prog_compiler_pic in
9668     "" | " "*) ;;
9669     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9670     esac
9671else
9672    lt_prog_compiler_pic=
9673     lt_prog_compiler_can_build_shared=no
9674fi
9675
9676fi
9677case $host_os in
9678  # For platforms which do not support PIC, -DPIC is meaningless:
9679  *djgpp*)
9680    lt_prog_compiler_pic=
9681    ;;
9682  *)
9683    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9684    ;;
9685esac
9686
9687#
9688# Check to make sure the static flag actually works.
9689#
9690wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9691echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9692echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9693if test "${lt_prog_compiler_static_works+set}" = set; then
9694  echo $ECHO_N "(cached) $ECHO_C" >&6
9695else
9696  lt_prog_compiler_static_works=no
9697   save_LDFLAGS="$LDFLAGS"
9698   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9699   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9700   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9701     # The linker can only warn and ignore the option if not recognized
9702     # So say no if there are warnings
9703     if test -s conftest.err; then
9704       # Append any errors to the config.log.
9705       cat conftest.err 1>&5
9706       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9707       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9708       if diff conftest.exp conftest.er2 >/dev/null; then
9709         lt_prog_compiler_static_works=yes
9710       fi
9711     else
9712       lt_prog_compiler_static_works=yes
9713     fi
9714   fi
9715   $rm conftest*
9716   LDFLAGS="$save_LDFLAGS"
9717
9718fi
9719echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9720echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9721
9722if test x"$lt_prog_compiler_static_works" = xyes; then
9723    :
9724else
9725    lt_prog_compiler_static=
9726fi
9727
9728
9729echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9730echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9731if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9732  echo $ECHO_N "(cached) $ECHO_C" >&6
9733else
9734  lt_cv_prog_compiler_c_o=no
9735   $rm -r conftest 2>/dev/null
9736   mkdir conftest
9737   cd conftest
9738   mkdir out
9739   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9740
9741   lt_compiler_flag="-o out/conftest2.$ac_objext"
9742   # Insert the option either (1) after the last *FLAGS variable, or
9743   # (2) before a word containing "conftest.", or (3) at the end.
9744   # Note that $ac_compile itself does not contain backslashes and begins
9745   # with a dollar sign (not a hyphen), so the echo should work correctly.
9746   lt_compile=`echo "$ac_compile" | $SED \
9747   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9748   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9749   -e 's:$: $lt_compiler_flag:'`
9750   (eval echo "\"\$as_me:9750: $lt_compile\"" >&5)
9751   (eval "$lt_compile" 2>out/conftest.err)
9752   ac_status=$?
9753   cat out/conftest.err >&5
9754   echo "$as_me:9754: \$? = $ac_status" >&5
9755   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9756   then
9757     # The compiler can only warn and ignore the option if not recognized
9758     # So say no if there are warnings
9759     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9760     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9761     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9762       lt_cv_prog_compiler_c_o=yes
9763     fi
9764   fi
9765   chmod u+w . 2>&5
9766   $rm conftest*
9767   # SGI C++ compiler will create directory out/ii_files/ for
9768   # template instantiation
9769   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9770   $rm out/* && rmdir out
9771   cd ..
9772   rmdir conftest
9773   $rm conftest*
9774
9775fi
9776echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9777echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9778
9779
9780hard_links="nottested"
9781if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9782  # do not overwrite the value of need_locks provided by the user
9783  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9784echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9785  hard_links=yes
9786  $rm conftest*
9787  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9788  touch conftest.a
9789  ln conftest.a conftest.b 2>&5 || hard_links=no
9790  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9791  echo "$as_me:$LINENO: result: $hard_links" >&5
9792echo "${ECHO_T}$hard_links" >&6
9793  if test "$hard_links" = no; then
9794    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9795echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9796    need_locks=warn
9797  fi
9798else
9799  need_locks=no
9800fi
9801
9802echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9803echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9804
9805  runpath_var=
9806  allow_undefined_flag=
9807  enable_shared_with_static_runtimes=no
9808  archive_cmds=
9809  archive_expsym_cmds=
9810  old_archive_From_new_cmds=
9811  old_archive_from_expsyms_cmds=
9812  export_dynamic_flag_spec=
9813  whole_archive_flag_spec=
9814  thread_safe_flag_spec=
9815  hardcode_libdir_flag_spec=
9816  hardcode_libdir_flag_spec_ld=
9817  hardcode_libdir_separator=
9818  hardcode_direct=no
9819  hardcode_minus_L=no
9820  hardcode_shlibpath_var=unsupported
9821  link_all_deplibs=unknown
9822  hardcode_automatic=no
9823  module_cmds=
9824  module_expsym_cmds=
9825  always_export_symbols=no
9826  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9827  # include_expsyms should be a list of space-separated symbols to be *always*
9828  # included in the symbol list
9829  include_expsyms=
9830  # exclude_expsyms can be an extended regexp of symbols to exclude
9831  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9832  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9833  # as well as any symbol that contains `d'.
9834  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9835  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9836  # platforms (ab)use it in PIC code, but their linkers get confused if
9837  # the symbol is explicitly referenced.  Since portable code cannot
9838  # rely on this symbol name, it's probably fine to never include it in
9839  # preloaded symbol tables.
9840  extract_expsyms_cmds=
9841  # Just being paranoid about ensuring that cc_basename is set.
9842  for cc_temp in $compiler""; do
9843  case $cc_temp in
9844    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9845    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9846    \-*) ;;
9847    *) break;;
9848  esac
9849done
9850cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9851
9852  case $host_os in
9853  cygwin* | mingw* | pw32*)
9854    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9855    # When not using gcc, we currently assume that we are using
9856    # Microsoft Visual C++.
9857    if test "$GCC" != yes; then
9858      with_gnu_ld=no
9859    fi
9860    ;;
9861  interix*)
9862    # we just hope/assume this is gcc and not c89 (= MSVC++)
9863    with_gnu_ld=yes
9864    ;;
9865  openbsd*)
9866    with_gnu_ld=no
9867    ;;
9868  esac
9869
9870  ld_shlibs=yes
9871  if test "$with_gnu_ld" = yes; then
9872    # If archive_cmds runs LD, not CC, wlarc should be empty
9873    wlarc='${wl}'
9874
9875    # Set some defaults for GNU ld with shared library support. These
9876    # are reset later if shared libraries are not supported. Putting them
9877    # here allows them to be overridden if necessary.
9878    runpath_var=LD_RUN_PATH
9879    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9880    export_dynamic_flag_spec='${wl}--export-dynamic'
9881    # ancient GNU ld didn't support --whole-archive et. al.
9882    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9883        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9884      else
9885        whole_archive_flag_spec=
9886    fi
9887    supports_anon_versioning=no
9888    case `$LD -v 2>/dev/null` in
9889      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9890      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9891      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9892      *\ 2.11.*) ;; # other 2.11 versions
9893      *) supports_anon_versioning=yes ;;
9894    esac
9895
9896    # See if GNU ld supports shared libraries.
9897    case $host_os in
9898    aix3* | aix4* | aix5*)
9899      # On AIX/PPC, the GNU linker is very broken
9900      if test "$host_cpu" != ia64; then
9901        ld_shlibs=no
9902        cat <<EOF 1>&2
9903
9904*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9905*** to be unable to reliably create shared libraries on AIX.
9906*** Therefore, libtool is disabling shared libraries support.  If you
9907*** really care for shared libraries, you may want to modify your PATH
9908*** so that a non-GNU linker is found, and then restart.
9909
9910EOF
9911      fi
9912      ;;
9913
9914    amigaos*)
9915      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)'
9916      hardcode_libdir_flag_spec='-L$libdir'
9917      hardcode_minus_L=yes
9918
9919      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9920      # that the semantics of dynamic libraries on AmigaOS, at least up
9921      # to version 4, is to share data among multiple programs linked
9922      # with the same dynamic library.  Since this doesn't match the
9923      # behavior of shared libraries on other platforms, we can't use
9924      # them.
9925      ld_shlibs=no
9926      ;;
9927
9928    beos*)
9929      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9930        allow_undefined_flag=unsupported
9931        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9932        # support --undefined.  This deserves some investigation.  FIXME
9933        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934      else
9935        ld_shlibs=no
9936      fi
9937      ;;
9938
9939    cygwin* | mingw* | pw32*)
9940      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9941      # as there is no search path for DLLs.
9942      hardcode_libdir_flag_spec='-L$libdir'
9943      allow_undefined_flag=unsupported
9944      always_export_symbols=no
9945      enable_shared_with_static_runtimes=yes
9946      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9947
9948      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9949        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9950        # If the export-symbols file already is a .def file (1st line
9951        # is EXPORTS), use it as is; otherwise, prepend...
9952        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9953          cp $export_symbols $output_objdir/$soname.def;
9954        else
9955          echo EXPORTS > $output_objdir/$soname.def;
9956          cat $export_symbols >> $output_objdir/$soname.def;
9957        fi~
9958        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9959      else
9960        ld_shlibs=no
9961      fi
9962      ;;
9963
9964    interix3*)
9965      hardcode_direct=no
9966      hardcode_shlibpath_var=no
9967      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9968      export_dynamic_flag_spec='${wl}-E'
9969      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9970      # Instead, shared libraries are loaded at an image base (0x10000000 by
9971      # default) and relocated if they conflict, which is a slow very memory
9972      # consuming and fragmenting process.  To avoid this, we pick a random,
9973      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9974      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9975      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9976      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'
9977      ;;
9978
9979    linux*)
9980      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9981        tmp_addflag=
9982        case $cc_basename,$host_cpu in
9983        pgcc*)                          # Portland Group C compiler
9984          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'
9985          tmp_addflag=' $pic_flag'
9986          ;;
9987        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9988          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'
9989          tmp_addflag=' $pic_flag -Mnomain' ;;
9990        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9991          tmp_addflag=' -i_dynamic' ;;
9992        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9993          tmp_addflag=' -i_dynamic -nofor_main' ;;
9994        ifc* | ifort*)                  # Intel Fortran compiler
9995          tmp_addflag=' -nofor_main' ;;
9996        esac
9997        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998
9999        if test $supports_anon_versioning = yes; then
10000          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10001  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10002  $echo "local: *; };" >> $output_objdir/$libname.ver~
10003          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10004        fi
10005      else
10006        ld_shlibs=no
10007      fi
10008      ;;
10009
10010    netbsd*)
10011      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10012        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10013        wlarc=
10014      else
10015        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10017      fi
10018      ;;
10019
10020    solaris*)
10021      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10022        ld_shlibs=no
10023        cat <<EOF 1>&2
10024
10025*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10026*** create shared libraries on Solaris systems.  Therefore, libtool
10027*** is disabling shared libraries support.  We urge you to upgrade GNU
10028*** binutils to release 2.9.1 or newer.  Another option is to modify
10029*** your PATH or compiler configuration so that the native linker is
10030*** used, and then restart.
10031
10032EOF
10033      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10034        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10035        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10036      else
10037        ld_shlibs=no
10038      fi
10039      ;;
10040
10041    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10042      case `$LD -v 2>&1` in
10043        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10044        ld_shlibs=no
10045        cat <<_LT_EOF 1>&2
10046
10047*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10048*** reliably create shared libraries on SCO systems.  Therefore, libtool
10049*** is disabling shared libraries support.  We urge you to upgrade GNU
10050*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10051*** your PATH or compiler configuration so that the native linker is
10052*** used, and then restart.
10053
10054_LT_EOF
10055        ;;
10056        *)
10057          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10058            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10059            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10060            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10061          else
10062            ld_shlibs=no
10063          fi
10064        ;;
10065      esac
10066      ;;
10067
10068    sunos4*)
10069      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10070      wlarc=
10071      hardcode_direct=yes
10072      hardcode_shlibpath_var=no
10073      ;;
10074
10075    *)
10076      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10077        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10078        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10079      else
10080        ld_shlibs=no
10081      fi
10082      ;;
10083    esac
10084
10085    if test "$ld_shlibs" = no; then
10086      runpath_var=
10087      hardcode_libdir_flag_spec=
10088      export_dynamic_flag_spec=
10089      whole_archive_flag_spec=
10090    fi
10091  else
10092    # PORTME fill in a description of your system's linker (not GNU ld)
10093    case $host_os in
10094    aix3*)
10095      allow_undefined_flag=unsupported
10096      always_export_symbols=yes
10097      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'
10098      # Note: this linker hardcodes the directories in LIBPATH if there
10099      # are no directories specified by -L.
10100      hardcode_minus_L=yes
10101      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10102        # Neither direct hardcoding nor static linking is supported with a
10103        # broken collect2.
10104        hardcode_direct=unsupported
10105      fi
10106      ;;
10107
10108    aix4* | aix5*)
10109      if test "$host_cpu" = ia64; then
10110        # On IA64, the linker does run time linking by default, so we don't
10111        # have to do anything special.
10112        aix_use_runtimelinking=no
10113        exp_sym_flag='-Bexport'
10114        no_entry_flag=""
10115      else
10116        # If we're using GNU nm, then we don't want the "-C" option.
10117        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10118        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10119          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'
10120        else
10121          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'
10122        fi
10123        aix_use_runtimelinking=no
10124
10125        # Test if we are trying to use run time linking or normal
10126        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10127        # need to do runtime linking.
10128        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10129          for ld_flag in $LDFLAGS; do
10130          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10131            aix_use_runtimelinking=yes
10132            break
10133          fi
10134          done
10135          ;;
10136        esac
10137
10138        exp_sym_flag='-bexport'
10139        no_entry_flag='-bnoentry'
10140      fi
10141
10142      # When large executables or shared objects are built, AIX ld can
10143      # have problems creating the table of contents.  If linking a library
10144      # or program results in "error TOC overflow" add -mminimal-toc to
10145      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10146      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10147
10148      archive_cmds=''
10149      hardcode_direct=yes
10150      hardcode_libdir_separator=':'
10151      link_all_deplibs=yes
10152
10153      if test "$GCC" = yes; then
10154        case $host_os in aix4.[012]|aix4.[012].*)
10155        # We only want to do this on AIX 4.2 and lower, the check
10156        # below for broken collect2 doesn't work under 4.3+
10157          collect2name=`${CC} -print-prog-name=collect2`
10158          if test -f "$collect2name" && \
10159           strings "$collect2name" | grep resolve_lib_name >/dev/null
10160          then
10161          # We have reworked collect2
10162          hardcode_direct=yes
10163          else
10164          # We have old collect2
10165          hardcode_direct=unsupported
10166          # It fails to find uninstalled libraries when the uninstalled
10167          # path is not listed in the libpath.  Setting hardcode_minus_L
10168          # to unsupported forces relinking
10169          hardcode_minus_L=yes
10170          hardcode_libdir_flag_spec='-L$libdir'
10171          hardcode_libdir_separator=
10172          fi
10173          ;;
10174        esac
10175        shared_flag='-shared'
10176        if test "$aix_use_runtimelinking" = yes; then
10177          shared_flag="$shared_flag "'${wl}-G'
10178        fi
10179      else
10180        # not using gcc
10181        if test "$host_cpu" = ia64; then
10182        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10183        # chokes on -Wl,-G. The following line is correct:
10184          shared_flag='-G'
10185        else
10186          if test "$aix_use_runtimelinking" = yes; then
10187            shared_flag='${wl}-G'
10188          else
10189            shared_flag='${wl}-bM:SRE'
10190          fi
10191        fi
10192      fi
10193
10194      # It seems that -bexpall does not export symbols beginning with
10195      # underscore (_), so it is better to generate a list of symbols to export.
10196      always_export_symbols=yes
10197      if test "$aix_use_runtimelinking" = yes; then
10198        # Warning - without using the other runtime loading flags (-brtl),
10199        # -berok will link without error, but may produce a broken library.
10200        allow_undefined_flag='-berok'
10201       # Determine the default libpath from the value encoded in an empty executable.
10202       cat >conftest.$ac_ext <<_ACEOF
10203/* confdefs.h.  */
10204_ACEOF
10205cat confdefs.h >>conftest.$ac_ext
10206cat >>conftest.$ac_ext <<_ACEOF
10207/* end confdefs.h.  */
10208
10209#ifdef F77_DUMMY_MAIN
10210
10211#  ifdef __cplusplus
10212     extern "C"
10213#  endif
10214   int F77_DUMMY_MAIN() { return 1; }
10215
10216#endif
10217int
10218main ()
10219{
10220
10221  ;
10222  return 0;
10223}
10224_ACEOF
10225rm -f conftest.$ac_objext conftest$ac_exeext
10226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10227  (eval $ac_link) 2>conftest.er1
10228  ac_status=$?
10229  grep -v '^ *+' conftest.er1 >conftest.err
10230  rm -f conftest.er1
10231  cat conftest.err >&5
10232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233  (exit $ac_status); } &&
10234         { ac_try='test -z "$ac_c_werror_flag"
10235                         || test ! -s conftest.err'
10236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237  (eval $ac_try) 2>&5
10238  ac_status=$?
10239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240  (exit $ac_status); }; } &&
10241         { ac_try='test -s conftest$ac_exeext'
10242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243  (eval $ac_try) 2>&5
10244  ac_status=$?
10245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246  (exit $ac_status); }; }; then
10247
10248aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10249}'`
10250# Check for a 64-bit object if we didn't find anything.
10251if 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; }
10252}'`; fi
10253else
10254  echo "$as_me: failed program was:" >&5
10255sed 's/^/| /' conftest.$ac_ext >&5
10256
10257fi
10258rm -f conftest.err conftest.$ac_objext \
10259      conftest$ac_exeext conftest.$ac_ext
10260if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10261
10262       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10263        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"
10264       else
10265        if test "$host_cpu" = ia64; then
10266          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10267          allow_undefined_flag="-z nodefs"
10268          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"
10269        else
10270         # Determine the default libpath from the value encoded in an empty executable.
10271         cat >conftest.$ac_ext <<_ACEOF
10272/* confdefs.h.  */
10273_ACEOF
10274cat confdefs.h >>conftest.$ac_ext
10275cat >>conftest.$ac_ext <<_ACEOF
10276/* end confdefs.h.  */
10277
10278#ifdef F77_DUMMY_MAIN
10279
10280#  ifdef __cplusplus
10281     extern "C"
10282#  endif
10283   int F77_DUMMY_MAIN() { return 1; }
10284
10285#endif
10286int
10287main ()
10288{
10289
10290  ;
10291  return 0;
10292}
10293_ACEOF
10294rm -f conftest.$ac_objext conftest$ac_exeext
10295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10296  (eval $ac_link) 2>conftest.er1
10297  ac_status=$?
10298  grep -v '^ *+' conftest.er1 >conftest.err
10299  rm -f conftest.er1
10300  cat conftest.err >&5
10301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302  (exit $ac_status); } &&
10303         { ac_try='test -z "$ac_c_werror_flag"
10304                         || test ! -s conftest.err'
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); }; } &&
10310         { ac_try='test -s conftest$ac_exeext'
10311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312  (eval $ac_try) 2>&5
10313  ac_status=$?
10314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315  (exit $ac_status); }; }; then
10316
10317aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10318}'`
10319# Check for a 64-bit object if we didn't find anything.
10320if 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; }
10321}'`; fi
10322else
10323  echo "$as_me: failed program was:" >&5
10324sed 's/^/| /' conftest.$ac_ext >&5
10325
10326fi
10327rm -f conftest.err conftest.$ac_objext \
10328      conftest$ac_exeext conftest.$ac_ext
10329if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10330
10331         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10332          # Warning - without using the other run time loading flags,
10333          # -berok will link without error, but may produce a broken library.
10334          no_undefined_flag=' ${wl}-bernotok'
10335          allow_undefined_flag=' ${wl}-berok'
10336          # Exported symbols can be pulled into shared objects from archives
10337          whole_archive_flag_spec='$convenience'
10338          archive_cmds_need_lc=yes
10339          # This is similar to how AIX traditionally builds its shared libraries.
10340          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'
10341        fi
10342      fi
10343      ;;
10344
10345    amigaos*)
10346      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)'
10347      hardcode_libdir_flag_spec='-L$libdir'
10348      hardcode_minus_L=yes
10349      # see comment about different semantics on the GNU ld section
10350      ld_shlibs=no
10351      ;;
10352
10353    bsdi[45]*)
10354      export_dynamic_flag_spec=-rdynamic
10355      ;;
10356
10357    cygwin* | mingw* | pw32*)
10358      # When not using gcc, we currently assume that we are using
10359      # Microsoft Visual C++.
10360      # hardcode_libdir_flag_spec is actually meaningless, as there is
10361      # no search path for DLLs.
10362      hardcode_libdir_flag_spec=' '
10363      allow_undefined_flag=unsupported
10364      # Tell ltmain to make .lib files, not .a files.
10365      libext=lib
10366      # Tell ltmain to make .dll files, not .so files.
10367      shrext_cmds=".dll"
10368      # FIXME: Setting linknames here is a bad hack.
10369      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10370      # The linker will automatically build a .lib file if we build a DLL.
10371      old_archive_From_new_cmds='true'
10372      # FIXME: Should let the user specify the lib program.
10373      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10374      fix_srcfile_path='`cygpath -w "$srcfile"`'
10375      enable_shared_with_static_runtimes=yes
10376      ;;
10377
10378    darwin* | rhapsody*)
10379      case $host_os in
10380        rhapsody* | darwin1.[012])
10381         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10382         ;;
10383       *) # Darwin 1.3 on
10384         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10385           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10386         else
10387           case ${MACOSX_DEPLOYMENT_TARGET} in
10388             10.[012])
10389               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10390               ;;
10391             10.*)
10392               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10393               ;;
10394           esac
10395         fi
10396         ;;
10397      esac
10398      archive_cmds_need_lc=no
10399      hardcode_direct=no
10400      hardcode_automatic=yes
10401      hardcode_shlibpath_var=unsupported
10402      whole_archive_flag_spec=''
10403      link_all_deplibs=yes
10404    if test "$GCC" = yes ; then
10405        output_verbose_link_cmd='echo'
10406        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10407      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10408      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10409      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}'
10410      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}'
10411    else
10412      case $cc_basename in
10413        xlc*)
10414         output_verbose_link_cmd='echo'
10415         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10416         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10417          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10418         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}'
10419          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}'
10420          ;;
10421       *)
10422         ld_shlibs=no
10423          ;;
10424      esac
10425    fi
10426      ;;
10427
10428    dgux*)
10429      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10430      hardcode_libdir_flag_spec='-L$libdir'
10431      hardcode_shlibpath_var=no
10432      ;;
10433
10434    freebsd1*)
10435      ld_shlibs=no
10436      ;;
10437
10438    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10439    # support.  Future versions do this automatically, but an explicit c++rt0.o
10440    # does not break anything, and helps significantly (at the cost of a little
10441    # extra space).
10442    freebsd2.2*)
10443      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10444      hardcode_libdir_flag_spec='-R$libdir'
10445      hardcode_direct=yes
10446      hardcode_shlibpath_var=no
10447      ;;
10448
10449    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10450    freebsd2*)
10451      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10452      hardcode_direct=yes
10453      hardcode_minus_L=yes
10454      hardcode_shlibpath_var=no
10455      ;;
10456
10457    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10458    freebsd* | kfreebsd*-gnu | dragonfly*)
10459      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10460      hardcode_libdir_flag_spec='-R$libdir'
10461      hardcode_direct=yes
10462      hardcode_shlibpath_var=no
10463      ;;
10464
10465    hpux9*)
10466      if test "$GCC" = yes; then
10467        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'
10468      else
10469        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'
10470      fi
10471      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10472      hardcode_libdir_separator=:
10473      hardcode_direct=yes
10474
10475      # hardcode_minus_L: Not really in the search PATH,
10476      # but as the default location of the library.
10477      hardcode_minus_L=yes
10478      export_dynamic_flag_spec='${wl}-E'
10479      ;;
10480
10481    hpux10*)
10482      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10483        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10484      else
10485        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10486      fi
10487      if test "$with_gnu_ld" = no; then
10488        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10489        hardcode_libdir_separator=:
10490
10491        hardcode_direct=yes
10492        export_dynamic_flag_spec='${wl}-E'
10493
10494        # hardcode_minus_L: Not really in the search PATH,
10495        # but as the default location of the library.
10496        hardcode_minus_L=yes
10497      fi
10498      ;;
10499
10500    hpux11*)
10501      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10502        case $host_cpu in
10503        hppa*64*)
10504          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10505          ;;
10506        ia64*)
10507          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10508          ;;
10509        *)
10510          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10511          ;;
10512        esac
10513      else
10514        case $host_cpu in
10515        hppa*64*)
10516          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10517          ;;
10518        ia64*)
10519          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10520          ;;
10521        *)
10522          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10523          ;;
10524        esac
10525      fi
10526      if test "$with_gnu_ld" = no; then
10527        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10528        hardcode_libdir_separator=:
10529
10530        case $host_cpu in
10531        hppa*64*|ia64*)
10532          hardcode_libdir_flag_spec_ld='+b $libdir'
10533          hardcode_direct=no
10534          hardcode_shlibpath_var=no
10535          ;;
10536        *)
10537          hardcode_direct=yes
10538          export_dynamic_flag_spec='${wl}-E'
10539
10540          # hardcode_minus_L: Not really in the search PATH,
10541          # but as the default location of the library.
10542          hardcode_minus_L=yes
10543          ;;
10544        esac
10545      fi
10546      ;;
10547
10548    irix5* | irix6* | nonstopux*)
10549      if test "$GCC" = yes; then
10550        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'
10551      else
10552        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'
10553        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10554      fi
10555      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10556      hardcode_libdir_separator=:
10557      link_all_deplibs=yes
10558      ;;
10559
10560    netbsd*)
10561      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10562        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10563      else
10564        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10565      fi
10566      hardcode_libdir_flag_spec='-R$libdir'
10567      hardcode_direct=yes
10568      hardcode_shlibpath_var=no
10569      ;;
10570
10571    newsos6)
10572      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573      hardcode_direct=yes
10574      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10575      hardcode_libdir_separator=:
10576      hardcode_shlibpath_var=no
10577      ;;
10578
10579    openbsd*)
10580      hardcode_direct=yes
10581      hardcode_shlibpath_var=no
10582      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10583        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10584        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10585        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10586        export_dynamic_flag_spec='${wl}-E'
10587      else
10588       case $host_os in
10589         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10590           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10591           hardcode_libdir_flag_spec='-R$libdir'
10592           ;;
10593         *)
10594           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10595           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10596           ;;
10597       esac
10598      fi
10599      ;;
10600
10601    os2*)
10602      hardcode_libdir_flag_spec='-L$libdir'
10603      hardcode_minus_L=yes
10604      allow_undefined_flag=unsupported
10605      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'
10606      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10607      ;;
10608
10609    osf3*)
10610      if test "$GCC" = yes; then
10611        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10612        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'
10613      else
10614        allow_undefined_flag=' -expect_unresolved \*'
10615        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'
10616      fi
10617      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10618      hardcode_libdir_separator=:
10619      ;;
10620
10621    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10622      if test "$GCC" = yes; then
10623        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10624        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'
10625        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10626      else
10627        allow_undefined_flag=' -expect_unresolved \*'
10628        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'
10629        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10630        $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'
10631
10632        # Both c and cxx compiler support -rpath directly
10633        hardcode_libdir_flag_spec='-rpath $libdir'
10634      fi
10635      hardcode_libdir_separator=:
10636      ;;
10637
10638    solaris*)
10639      no_undefined_flag=' -z text'
10640      if test "$GCC" = yes; then
10641        wlarc='${wl}'
10642        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10643        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10644          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10645      else
10646        wlarc=''
10647        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10649        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10650      fi
10651      hardcode_libdir_flag_spec='-R$libdir'
10652      hardcode_shlibpath_var=no
10653      case $host_os in
10654      solaris2.[0-5] | solaris2.[0-5].*) ;;
10655      *)
10656        # The compiler driver will combine linker options so we
10657        # cannot just pass the convience library names through
10658        # without $wl, iff we do not link with $LD.
10659        # Luckily, gcc supports the same syntax we need for Sun Studio.
10660        # Supported since Solaris 2.6 (maybe 2.5.1?)
10661        case $wlarc in
10662        '')
10663          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10664        *)
10665          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' ;;
10666        esac ;;
10667      esac
10668      link_all_deplibs=yes
10669      ;;
10670
10671    sunos4*)
10672      if test "x$host_vendor" = xsequent; then
10673        # Use $CC to link under sequent, because it throws in some extra .o
10674        # files that make .init and .fini sections work.
10675        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10676      else
10677        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10678      fi
10679      hardcode_libdir_flag_spec='-L$libdir'
10680      hardcode_direct=yes
10681      hardcode_minus_L=yes
10682      hardcode_shlibpath_var=no
10683      ;;
10684
10685    sysv4)
10686      case $host_vendor in
10687        sni)
10688          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10689          hardcode_direct=yes # is this really true???
10690        ;;
10691        siemens)
10692          ## LD is ld it makes a PLAMLIB
10693          ## CC just makes a GrossModule.
10694          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10695          reload_cmds='$CC -r -o $output$reload_objs'
10696          hardcode_direct=no
10697        ;;
10698        motorola)
10699          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10701        ;;
10702      esac
10703      runpath_var='LD_RUN_PATH'
10704      hardcode_shlibpath_var=no
10705      ;;
10706
10707    sysv4.3*)
10708      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10709      hardcode_shlibpath_var=no
10710      export_dynamic_flag_spec='-Bexport'
10711      ;;
10712
10713    sysv4*MP*)
10714      if test -d /usr/nec; then
10715        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10716        hardcode_shlibpath_var=no
10717        runpath_var=LD_RUN_PATH
10718        hardcode_runpath_var=yes
10719        ld_shlibs=yes
10720      fi
10721      ;;
10722
10723    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10724      no_undefined_flag='${wl}-z,text'
10725      archive_cmds_need_lc=no
10726      hardcode_shlibpath_var=no
10727      runpath_var='LD_RUN_PATH'
10728
10729      if test "$GCC" = yes; then
10730        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732      else
10733        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10735      fi
10736      ;;
10737
10738    sysv5* | sco3.2v5* | sco5v6*)
10739      # Note: We can NOT use -z defs as we might desire, because we do not
10740      # link with -lc, and that would cause any symbols used from libc to
10741      # always be unresolved, which means just about no library would
10742      # ever link correctly.  If we're not using GNU ld we use -z text
10743      # though, which does catch some bad symbols but isn't as heavy-handed
10744      # as -z defs.
10745      no_undefined_flag='${wl}-z,text'
10746      allow_undefined_flag='${wl}-z,nodefs'
10747      archive_cmds_need_lc=no
10748      hardcode_shlibpath_var=no
10749      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10750      hardcode_libdir_separator=':'
10751      link_all_deplibs=yes
10752      export_dynamic_flag_spec='${wl}-Bexport'
10753      runpath_var='LD_RUN_PATH'
10754
10755      if test "$GCC" = yes; then
10756        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10757        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10758      else
10759        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10760        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10761      fi
10762      ;;
10763
10764    uts4*)
10765      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766      hardcode_libdir_flag_spec='-L$libdir'
10767      hardcode_shlibpath_var=no
10768      ;;
10769
10770    *)
10771      ld_shlibs=no
10772      ;;
10773    esac
10774  fi
10775
10776echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10777echo "${ECHO_T}$ld_shlibs" >&6
10778test "$ld_shlibs" = no && can_build_shared=no
10779
10780#
10781# Do we need to explicitly link libc?
10782#
10783case "x$archive_cmds_need_lc" in
10784x|xyes)
10785  # Assume -lc should be added
10786  archive_cmds_need_lc=yes
10787
10788  if test "$enable_shared" = yes && test "$GCC" = yes; then
10789    case $archive_cmds in
10790    *'~'*)
10791      # FIXME: we may have to deal with multi-command sequences.
10792      ;;
10793    '$CC '*)
10794      # Test whether the compiler implicitly links with -lc since on some
10795      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10796      # to ld, don't add -lc before -lgcc.
10797      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10798echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10799      $rm conftest*
10800      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10801
10802      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803  (eval $ac_compile) 2>&5
10804  ac_status=$?
10805  echo "$as_me:$LINENO: \$? = $ac_status" >&5