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

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

Re-running the autotools

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