source: ThirdParty/Mumps/stable/1.5/configure @ 3420

Last change on this file since 3420 was 3420, checked in by tkr, 5 years ago

temporarily committing release candidate

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