source: ThirdParty/Mumps/stable/1.3/configure @ 2285

Last change on this file since 2285 was 2285, checked in by stefan, 9 years ago

rerun autotools; merge fixes in example Makefiles for mingw/cl from trunk

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